/* ================================================================
   TOKYO NIGHT v3 (Dec 4, 2026) — the quality leap, Numbers edition.
   The constellation now hangs over a real place: a photographed
   rain-wet Tokyo street fills the world (assets/scene.webp),
   nebulas tint it, the moon dims to a neon moon over the city,
   rain falls at two depths, and the street at the bottom of the
   photo reflects the signs. Stones and rooms are thick premium
   glass floating over the street.
   EYE RULE (hard): neon is light, rim, reflection and signage
   only — never a fill behind reading text. Stones, tiles and
   rooms keep their dark calm glass.
   Presentation only — no copy, no layout, no doors move.
   ================================================================ */

body{background:#01020A}

/* ————————————————— the place: a photographed street ————————————————— */
.space::before{
  content:"";position:absolute;inset:-4%;z-index:0;pointer-events:none;
  background:
    linear-gradient(180deg, rgba(3,4,14,.20) 0%, rgba(3,4,14,.04) 30%, rgba(2,3,10,.07) 60%, rgba(1,2,8,.28) 100%),
    url("scene.webp") center 22% / cover no-repeat,
    #01020A;
  animation:tkSceneDrift 88s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes tkSceneDrift{
  from{transform:scale(1.02) translate3d(0,0,0)}
  to  {transform:scale(1.075) translate3d(0,-10px,0)}
}
/* the nebulas become colour wash over the photograph, not the sky itself */
.nebula{opacity:.30}
.neb-a{background:radial-gradient(circle at 42% 42%, rgba(122,10,84,.55), rgba(46,6,54,.22) 55%, transparent 72%)}
.neb-b{background:radial-gradient(circle at 55% 55%, rgba(96,32,190,.30), rgba(30,8,64,.18) 55%, transparent 72%)}
.neb-c{background:radial-gradient(circle, rgba(8,96,150,.26), transparent 68%)}
/* the moon dims to a neon moon hanging over the city */
.moon{opacity:.38}

/* ————————————————— atmosphere inside the world ————————————————— */
.space .tk-signs,.space .tk-street,.space .tk-mist{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.space .tk-signs{z-index:2}
.space .tk-street{z-index:2}
.space .tk-mist{z-index:3}
.space canvas.tk-rain{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
.tk-signs,.tk-mist{will-change:transform}

/* neon signage as ambient light wash — softer and wider over the photo */
.tk-signs i{position:absolute;display:block;border-radius:999px;opacity:var(--o,.4);
  filter:blur(var(--b,26px));animation:tkPulse var(--t,9s) ease-in-out infinite;mix-blend-mode:screen}
.tk-signs .s1{left:-30px;top:13%;width:52px;height:250px;--o:.30;--b:26px;--t:8.5s;
  background:linear-gradient(180deg,#FF2EA6,#B026FF)}
.tk-signs .s2{right:-24px;top:30%;width:44px;height:210px;--o:.26;--b:24px;--t:10s;animation-delay:-3s;
  background:linear-gradient(180deg,#22D3EE,#2E7CF6)}
.tk-signs .s3{right:2%;top:3%;width:150px;height:150px;border-radius:50%;--o:.20;--b:44px;--t:12s;animation-delay:-5s;
  background:#FF5CBE}
.tk-signs .s4{left:1%;top:6%;width:190px;height:36px;--o:.24;--b:22px;--t:11s;animation-delay:-2s;
  background:linear-gradient(90deg,#FF2EA6,#FF9AD5)}
.tk-signs .s5{left:-6px;top:55%;width:24px;height:170px;--o:.20;--b:18px;--t:9.4s;animation-delay:-4s;
  background:linear-gradient(180deg,#FF71C8,#FF2EA6)}
.tk-signs .s6{left:4%;bottom:16%;width:110px;height:110px;border-radius:50%;--o:.16;--b:38px;--t:13s;animation-delay:-6s;
  background:#22D3EE}
.tk-signs .s7{right:0;top:64%;width:28px;height:150px;--o:.19;--b:20px;--t:9.8s;animation-delay:-3.4s;
  background:linear-gradient(180deg,#FFB1DE,#FF2EA6)}
@keyframes tkPulse{0%,100%{opacity:var(--o)}50%{opacity:calc(var(--o)*.45)}}

/* mist veils */
.tk-mist i{position:absolute;display:block;border-radius:50%;filter:blur(30px)}
.tk-mist .m1{width:135%;height:36%;left:-16%;top:18%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(165,200,255,.12),rgba(165,200,255,0) 70%);
  animation:tkMist 52s ease-in-out infinite alternate}
.tk-mist .m2{width:125%;height:32%;left:-10%;top:54%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(255,170,220,.08),rgba(255,170,220,0) 70%);
  animation:tkMist 68s ease-in-out -22s infinite alternate-reverse}
@keyframes tkMist{from{transform:translateX(-30px)}to{transform:translateX(34px)}}

/* the wet street: the photograph reflects already — this only deepens
   the waterline and lets streaks shimmer over it */
.space .tk-street{top:auto;height:36%;
  background:linear-gradient(180deg,rgba(3,6,18,0) 0%,rgba(4,8,24,.14) 40%,rgba(2,3,12,.34) 82%,rgba(1,2,8,.5) 100%)}
.tk-street::before{content:"";position:absolute;left:0;right:0;top:30%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(190,225,255,.15),rgba(255,154,213,.12),transparent)}
.tk-street i{position:absolute;top:29%;display:block;height:71%;border-radius:0 0 999px 999px;
  filter:blur(6px);opacity:.28;animation:tkShimmer var(--t,6s) ease-in-out infinite;mix-blend-mode:screen;
  background:linear-gradient(180deg,var(--c) 0%,rgba(0,0,0,0) 88%)}
.tk-street .r1{left:6%;width:46px;--c:rgba(255,46,166,.5);--t:6.2s}
.tk-street .r2{left:24%;width:22px;--c:rgba(34,211,238,.45);--t:7.4s;animation-delay:-2s}
.tk-street .r3{left:47%;width:58px;--c:rgba(255,92,190,.42);--t:5.6s;animation-delay:-1s}
.tk-street .r4{right:22%;width:24px;--c:rgba(34,211,238,.4);--t:6.8s;animation-delay:-3s}
.tk-street .r5{right:5%;width:42px;--c:rgba(255,46,166,.46);--t:7.9s;animation-delay:-.6s}
@keyframes tkShimmer{0%,100%{opacity:.2;transform:scaleY(.95)}50%{opacity:.42;transform:scaleY(1.04)}}
.tk-street::after{content:"";position:absolute;left:0;right:0;top:36%;bottom:0;
  background-image:
   radial-gradient(circle,rgba(200,230,255,.5) 1px,transparent 1.6px),
   radial-gradient(circle,rgba(255,154,213,.45) 1px,transparent 1.6px);
  background-size:89px 34px,131px 44px;background-position:0 0,37px 12px;
  opacity:.09;animation:tkSparkle 4.2s ease-in-out infinite alternate}
@keyframes tkSparkle{from{opacity:.04}to{opacity:.13}}

/* foreground cinema layer (injected by tokyo.js): near rain + vignette */
.tk-fg{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}
.tk-fg canvas{position:absolute;inset:0;width:100%;height:100%}
.tk-fg .tk-vignette{position:absolute;inset:0;
  background:radial-gradient(120% 88% at 50% 42%, rgba(0,0,0,0) 62%, rgba(0,1,6,.38) 100%)}

/* ————————————————— entrance: the stage settles into the streetlight ————————————————— */
.stage{animation:tkStageIn .9s cubic-bezier(.22,.8,.26,1) both}
@keyframes tkStageIn{from{opacity:0}to{opacity:1}}

/* ————————————————— premium glass: stones ————————————————— */
.stone{
  background:
    linear-gradient(180deg, rgba(198,226,255,.11), rgba(198,226,255,0) 38%),
    linear-gradient(165deg, rgba(38,22,66,.52), rgba(13,8,30,.66) 55%, rgba(6,4,17,.74));
  -webkit-backdrop-filter:blur(16px) saturate(155%) brightness(1.05);
  backdrop-filter:blur(16px) saturate(155%) brightness(1.05);
  border:1px solid rgba(255,150,215,.38);border-radius:19px;
  box-shadow:
    0 24px 44px -14px rgba(0,0,0,.85),
    0 0 26px rgba(255,46,166,.14),
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -14px 24px rgba(0,0,0,.30);
}
.stone::after{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(158deg, rgba(255,190,230,.5), rgba(255,255,255,.06) 32%, rgba(34,211,238,.32) 90%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.stone .t{text-shadow:0 1px 10px rgba(0,0,0,.55)}
.stone:active{
  box-shadow:
    0 12px 24px -10px rgba(0,0,0,.85),
    0 0 30px rgba(255,46,166,.22),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -10px 18px rgba(0,0,0,.3);
}
.stone.suede{
  background:
    linear-gradient(180deg, rgba(255,190,230,.13), rgba(255,190,230,0) 40%),
    linear-gradient(165deg, rgba(66,18,84,.80), rgba(22,8,42,.88) 55%, rgba(9,5,22,.92));
  border-color:rgba(255,110,205,.65);
  box-shadow:
    0 24px 44px -14px rgba(0,0,0,.85),
    0 0 36px rgba(255,46,166,.32),
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -14px 24px rgba(0,0,0,.32);
}
.stone.hero-door{border-color:rgba(103,232,249,.6)}

/* ————————————————— tiles + verified strip: glass chips ————————————————— */
.tile{
  background:
    linear-gradient(180deg, rgba(198,226,255,.09), rgba(198,226,255,0) 40%),
    linear-gradient(165deg, rgba(34,20,60,.45), rgba(9,7,24,.60) 60%);
  -webkit-backdrop-filter:blur(13px) saturate(150%);
  backdrop-filter:blur(13px) saturate(150%);
  border:1px solid rgba(255,150,215,.32);border-radius:15px;
  box-shadow:
    0 16px 30px -12px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -10px 18px rgba(0,0,0,.26);
}
.verified{
  background:
    linear-gradient(180deg, rgba(160,240,255,.10), rgba(160,240,255,0) 38%),
    linear-gradient(168deg, rgba(13,44,62,.48), rgba(6,9,26,.63) 62%);
  -webkit-backdrop-filter:blur(17px) saturate(155%);
  backdrop-filter:blur(17px) saturate(155%);
  border:1px solid rgba(103,232,249,.42);border-radius:19px;
  box-shadow:
    0 22px 40px -14px rgba(0,0,0,.8),
    0 0 30px rgba(34,211,238,.13),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -14px 24px rgba(0,0,0,.28);
}

/* ————————————————— rooms: thick glass screens over the street ————————————————— */
.room{
  background:
    linear-gradient(180deg, rgba(198,226,255,.09), rgba(198,226,255,0) 30%),
    linear-gradient(172deg, rgba(30,17,58,.84), rgba(9,6,25,.92) 58%, rgba(4,3,12,.95));
  -webkit-backdrop-filter:blur(26px) saturate(155%) brightness(1.04);
  backdrop-filter:blur(26px) saturate(155%) brightness(1.04);
  border:1px solid rgba(168,204,255,.22);border-radius:25px;
  box-shadow:
    0 44px 84px -24px rgba(0,0,0,.92),
    0 18px 36px -12px rgba(0,0,0,.6),
    0 0 44px rgba(255,46,166,.10),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 -24px 36px rgba(0,0,0,.32);
}
.room::after{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(158deg, rgba(255,190,230,.45), rgba(255,255,255,.06) 30%, rgba(34,211,238,.34) 88%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.room .back{
  background:
    linear-gradient(180deg, rgba(198,226,255,.12), rgba(198,226,255,0) 45%),
    linear-gradient(165deg, rgba(30,20,58,.8), rgba(9,7,22,.9));
  border:1px solid rgba(255,150,215,.4);
  box-shadow:0 10px 20px -8px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.2);
}
/* inner cards: quieter glass inside the room */
.card,.tank{
  background:
    linear-gradient(180deg, rgba(198,226,255,.07), rgba(198,226,255,0) 36%),
    linear-gradient(168deg, rgba(30,19,56,.52), rgba(8,7,22,.66) 65%);
  border:1px solid rgba(255,150,215,.28);border-radius:19px;
  box-shadow:
    0 16px 30px -14px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -12px 20px rgba(0,0,0,.24);
}
.habit{
  background:
    linear-gradient(180deg, rgba(160,240,255,.08), rgba(160,240,255,0) 40%),
    linear-gradient(168deg, rgba(13,44,62,.5), rgba(7,9,24,.62));
  border:1px solid rgba(103,232,249,.34);border-radius:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 12px 24px -12px rgba(0,0,0,.6);
}
/* the room's gold action: deep plum glass with a pink halo */
.btn-gold{
  background:
    linear-gradient(180deg, rgba(255,190,230,.16), rgba(255,190,230,0) 44%),
    linear-gradient(165deg, rgba(52,16,80,.9), rgba(11,6,24,.95));
  border:1px solid rgba(255,110,205,.62);border-radius:15px;
  box-shadow:
    0 16px 30px -12px rgba(0,0,0,.8),
    0 0 26px rgba(255,46,166,.30),
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -10px 18px rgba(0,0,0,.32);
}
.btn-gold:active{
  box-shadow:
    0 9px 18px -8px rgba(0,0,0,.8),
    0 0 30px rgba(255,46,166,.38),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -8px 14px rgba(0,0,0,.3);
}
.step-btn{
  background:
    linear-gradient(180deg, rgba(198,226,255,.12), rgba(198,226,255,0) 45%),
    linear-gradient(165deg, rgba(48,22,84,.75), rgba(10,7,26,.85));
  border:1px solid rgba(255,150,215,.42);
  box-shadow:0 12px 22px -10px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.2);
}
.pick-ac{
  background:rgba(6,10,24,.66);border:1px solid rgba(168,204,255,.26);border-radius:13px;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.5);
}
.pick-ac:focus{border-color:rgba(103,232,249,.65);box-shadow:inset 0 2px 8px rgba(0,0,0,.5), 0 0 0 3px rgba(34,211,238,.15)}
.deckring{border-color:rgba(255,150,215,.16)}

@media (prefers-reduced-motion: reduce){
  .space::before,.tk-signs i,.tk-mist i,.tk-street i,.tk-street::after,.stage{animation:none}}
