
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --c1: #64d2ff;
  --c2: #bf5af2;
  --c3: #30d158;
  --tx: rgba(255,255,255,.92);
  --tx2: rgba(255,255,255,.45);
  --card-w: min(360px, 92vw);
}

html, body {
  height: 100%;
  font-family: 'Figtree', -apple-system, sans-serif;
  color: var(--tx);
  background: #07070f;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
  #cur, #cur-ring { display: none; }
}

#cur {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  mix-blend-mode: difference;
}
#cur-ring {
  position: fixed; z-index: 9998;
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  transition: width .28s cubic-bezier(.34,1.56,.64,1),
              height .28s cubic-bezier(.34,1.56,.64,1),
              border-color .2s;
}
#cur-ring.big { width: 46px; height: 46px; border-color: rgba(100,210,255,.5); }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-img {
  position: absolute; inset: 0;
  background: url('test.png') center/cover no-repeat;
  animation: bgDrift 30s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: scale(1.05) translate(0,0); }
  to   { transform: scale(1.14) translate(2%,1.5%); }
}
.bg-veil { position: absolute; inset: 0; background: rgba(7,7,15,.45); }
.bl {
  position: absolute; border-radius: 50%;
  filter: blur(100px); mix-blend-mode: screen;
  animation: blD 20s ease-in-out infinite alternate;
}
.bl1 { width:500px;height:500px; background:rgba(100,210,255,.12); top:-100px; left:-80px; animation-duration:18s; }
.bl2 { width:420px;height:420px; background:rgba(191,90,242,.10); bottom:-80px; right:-70px; animation-duration:14s; animation-delay:-6s; }
.bl3 { width:280px;height:280px; background:rgba(48,209,88,.07); bottom:25%; left:6%; animation-duration:24s; animation-delay:-12s; }
@keyframes blD {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,18px) scale(1.1); }
}
.bg-grain {
  position: absolute; inset: 0; opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

#pts { position:fixed; inset:0; z-index:1; pointer-events:none; }

/* ══════════════════════════════════════════
   ENTER SCREEN
══════════════════════════════════════════ */
#enter {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: rgba(7,7,15,.88);
  backdrop-filter: blur(48px);
  cursor: none;
  transition: opacity .8s ease, visibility .8s ease;
}
@media (hover: none) { #enter { cursor: pointer; } }
#enter.gone { opacity:0; visibility:hidden; pointer-events:none; }

.e-orb {
  width: 64px; height: 64px; border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; position: relative;
  animation: ePulse 3s ease-in-out infinite;
}
.e-orb::before {
  content:''; position:absolute; inset:-10px; border-radius:26px;
  background: conic-gradient(from 0deg,rgba(100,210,255,.25),rgba(191,90,242,.25),rgba(100,210,255,.25));
  filter: blur(11px); animation: eSpin 5s linear infinite; z-index:-1;
}
@keyframes ePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes eSpin  { to { transform:rotate(360deg); } }
.e-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--tx2);
}

.scene {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  padding: 20px 64px 100px;
  width: 100%;
  max-width: calc(var(--card-w) + 180px);
  opacity: 0;
  transform: translateY(28px) scale(.97);
  transition: opacity .95s cubic-bezier(.22,1,.36,1) .1s,
              transform .95s cubic-bezier(.22,1,.36,1) .1s;
}
.scene.show { opacity:1; transform:translateY(0) scale(1); }

.card-stage {
  position: relative;
  width: var(--card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-outer {
  position: relative;
  width: 100%;
  border-radius: 30px;
  transform-style: preserve-3d;
}

.big-title {
  width: var(--card-w);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  height: clamp(52px, 13vw, 72px);
}
.big-title::before,
.big-title::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 36px;
  z-index: 2; pointer-events: none;
}
.big-title::before { left:0; }
.big-title::after  { right:0; }

.title-track {
  display: flex;
  width: max-content;
  animation: titleScroll 6s linear infinite;
  will-change: transform;
  align-items: center;
  height: 100%;
}
.title-track span {
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 clamp(24px, 7vw, 48px);
  user-select: none;
  line-height: 1;
  color: #ffffff8f;
  text-shadow: 1px 1px 7px rgba(224,100,255,0.6), -1px -1px 7px rgba(191,90,242,.6), 0 0 14px rgba(250,100,255,0.8);
}
@keyframes titleScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.side-phrase {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center;
  pointer-events: none; z-index: 5;
}
.side-phrase span {
  font-size: clamp(8px, 1.6vw, 10px);
  font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.16); white-space: nowrap; user-select: none;
  text-shadow: 0 0 10px rgba(191,90,242,.5), 0 0 28px rgba(191,90,242,.25);
}
.side-left  { right: calc(100% + 16px); }
.side-left span  { writing-mode: vertical-rl; transform: rotate(180deg); }
.side-right { left: calc(100% + 16px); }
.side-right span { writing-mode: vertical-rl; }
@media (max-width: 560px) { .side-phrase { display: none; } }

.glass-outer::before {
  content:''; position:absolute; inset:-18px; border-radius:46px;
  background: conic-gradient(from var(--rot,0deg), rgba(100,210,255,.18), rgba(191,90,242,.16), rgba(100,210,255,.07), rgba(48,209,88,.09), rgba(100,210,255,.18));
  filter: blur(22px); animation: rSpin 9s linear infinite; z-index:-3;
}
.glass-outer::after {
  content:''; position:absolute; inset:-2px; border-radius:32px;
  background: conic-gradient(from var(--rot,0deg), transparent 0%, transparent 18%, rgba(255,255,255,.88) 30%, rgba(215,245,255,1) 40%, rgba(255,255,255,.88) 50%, transparent 62%, transparent 100%);
  animation: rSpin 9s linear infinite; z-index:-1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
}
@property --rot { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes rSpin { to { --rot:360deg; } }

.ring-halo {
  position:absolute; inset:-12px; border-radius:40px;
  background: rgba(255,255,255,.022);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.05); z-index:-2;
  -webkit-mask: radial-gradient(ellipse calc(100% - 24px) calc(100% - 24px) at 50% 50%, transparent 99%, #fff 100%);
  mask: radial-gradient(ellipse calc(100% - 24px) calc(100% - 24px) at 50% 50%, transparent 99%, #fff 100%);
}
.ring-spec {
  position:absolute; top:-9px; left:10%; right:10%; height:18px; border-radius:50%;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 45%, transparent 100%);
  filter: blur(1.5px); z-index:1; pointer-events:none;
}
.ring-shad {
  position:absolute; bottom:-12px; left:12%; right:12%; height:26px; border-radius:50%;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0,0,0,.48) 0%, transparent 100%);
  filter: blur(9px); z-index:-4; pointer-events:none;
}

.card {
  position: relative; width: 100%; border-radius: 28px; overflow: hidden;
  background: rgba(10,10,20,.65);
  backdrop-filter: blur(50px) saturate(160%); -webkit-backdrop-filter: blur(50px) saturate(160%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 68px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.28);
}

.slide-wrap {
  position: relative; width: 100%; aspect-ratio: 3/4;
  overflow: hidden; border-radius: 28px; background: #0c0c18;
}
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s cubic-bezier(.4,0,.2,1); will-change: opacity;
}
.slide.active { opacity: 1; }
.slide-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.3); transition: background .3s, transform .3s; cursor: pointer;
}
.dot.on { background: #fff; transform: scale(1.3); }

/* ══════════════════════════════════════════
   DOCK (below card)
══════════════════════════════════════════ */
.dock-wrap {
  width: var(--card-w);
  margin-top: 19px;
  display: flex;
  justify-content: center;
}

.dock {
  display: flex; gap: 8px;
  padding: 10px 15px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border-top: 1px solid rgba(255,255,255,.20);
  border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-radius: 22px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
}
.dock::after {
  content:''; position:absolute;
  top:0; left:12%; right:12%; height:1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
}

.di {
  width: clamp(36px,10vw,40px); height: clamp(36px,10vw,40px);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(15px,4vw,17px);
  cursor: none; text-decoration: none; color: #fff;
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:none) { .di { cursor: pointer; } }
.di::before {
  content:''; position:absolute; top:0; left:0; right:0; height:50%;
  background: rgba(255,255,255,.13); border-radius:12px 12px 0 0;
}
.di:hover { transform: translateY(-8px) scale(1.18); }
.di:active { transform: translateY(-4px) scale(1.1); }
.di-dc { background: linear-gradient(135deg,#5865F2,#404eed); }
.di-st { background: linear-gradient(135deg,#2a475e,#1b2838); }
.di-kk { background: linear-gradient(135deg,#53fc18,#2e8a0d); color:#000; }
.di-kk i { color: #000; }

@media (max-width: 400px) { .slide-wrap { aspect-ratio: 2/3; } }
@media (min-width: 600px) { .slide-wrap { aspect-ratio: 4/5; } }
@media (min-height: 900px) and (min-width: 600px) { .slide-wrap { aspect-ratio: 3/4; } }

.family-btn {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 22px; border-radius: 50px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,.20); border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: clamp(10px, 2.8vw, 11.5px); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; overflow: hidden; cursor: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:none) { .family-btn { cursor: pointer; } }
.fam-glow {
  position: absolute; inset: -2px; border-radius: 50px;
  background: conic-gradient(from var(--fg,0deg), rgba(100,210,255,.0), rgba(100,210,255,.5), rgba(191,90,242,.5), rgba(100,210,255,.0));
  animation: famSpin 4s linear infinite; z-index: -1; filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
@property --fg { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes famSpin { to { --fg: 360deg; } }
.family-btn:hover .fam-glow, .family-btn:active .fam-glow { opacity: 1; }
.family-btn:hover, .family-btn:active {
  color: rgba(255,255,255,.95); background: rgba(255,255,255,.07);
  transform: scale(1.03); box-shadow: 0 8px 32px rgba(100,210,255,.15);
}
.fam-arrow { font-size: 10px; opacity: .5; transition: transform .25s, opacity .25s; }
.family-btn:hover .fam-arrow { transform: translateX(4px); opacity: 1; }

.trail {
  position: fixed; width: 4px; height: 4px;
  background: rgba(100,210,255,.55); border-radius: 50%;
  pointer-events: none; z-index: 9000;
  animation: trFade .5s ease forwards;
}
@keyframes trFade { to { opacity:0; transform:scale(3); } }

/* ══════════════════════════════════════════
   FLOATING MUSIC PLAYER
══════════════════════════════════════════ */
.music-player {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 500; width: min(340px, 92vw);
  display: flex; align-items: center; gap: 13px;
  padding: 10px 16px 10px 10px;
  background: rgba(10,10,20,.82);
  backdrop-filter: blur(48px) saturate(180%); -webkit-backdrop-filter: blur(48px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(0,0,0,.20);
  border-radius: 60px;
  box-shadow: 0 12px 48px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .6s ease;
}
.music-player.show { opacity: 1; }

.vinyl {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; position: relative;
  background:
    radial-gradient(circle at 50% 50%, #1a1a2e 0%, #1a1a2e 22%, transparent 22%),
    conic-gradient(#111 0deg, #1c1c2e 40deg, #111 80deg, #222 120deg, #111 160deg, #1c1c2e 200deg, #111 240deg, #222 280deg, #111 320deg, #1c1c2e 360deg);
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(100,210,255,.15), inset 0 0 12px rgba(0,0,0,.6);
  animation: vinylSpin 3s linear infinite; animation-play-state: paused;
}
.vinyl.playing { animation-play-state: running; }
.vinyl::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #64d2ff 0%, #3a8fa8 60%, #1a1a2e 100%);
  box-shadow: 0 0 6px rgba(100,210,255,.7); z-index: 2;
}
.vinyl::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07);
}
@keyframes vinylSpin { to { transform: rotate(360deg); } }

.mp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-title {
  font-size: clamp(11px,3vw,12.5px); font-weight: 700;
  color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-artist {
  font-size: clamp(9px,2.3vw,10.5px); color: rgba(255,255,255,.38);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em;
}
.mp-bar-wrap { height: 3px; background: rgba(255,255,255,.10); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.mp-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--c1), var(--c2)); border-radius: 3px; transition: width .5s linear; }

.mp-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mp-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: all .2s ease; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:none) { .mp-btn { cursor: pointer; } }
.mp-btn:hover, .mp-btn:active { background: rgba(100,210,255,.15); color: var(--c1); transform: scale(1.1); }
.mp-btn.play-btn {
  width: 38px; height: 38px; font-size: 13px;
  background: rgba(100,210,255,.12); border-top-color: rgba(100,210,255,.3);
  color: var(--c1); box-shadow: 0 0 14px rgba(100,210,255,.12);
}
.mp-btn.play-btn:hover { background: rgba(100,210,255,.22); box-shadow: 0 0 20px rgba(100,210,255,.25); }

#yt-frame { position:fixed; bottom:0; right:0; width:1px; height:1px; opacity:0; pointer-events:none; }