/* Dot Learners app. Same colours and font as the games (assets/kids-theme.css). */
@font-face{
  font-family:"Fredoka"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("fonts/fredoka.woff2") format("woff2");
}
:root{
  --bg:#FFF8EC; --ink:#33302B; --muted:#7D7568; --card:#FFFFFF;
  --primary:#FF7A2F; --primary-deep:#D85A14; --primary-ink:#8A3A0B; --gold:#FFB619;
  --good:#2FA35A; --good-deep:#23804A; --soft:#F4E9D6; --soft-deep:#E2D1B4; --line:#EDE1CC;
  --danger:#C62F24; --danger-deep:#951F17;
  --lift:0 10px 24px rgba(92,64,20,.10);
  --round:"Fredoka",ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ font-synthesis:none; }
html,body{ margin:0; }
body{
  background-color:var(--bg); color:var(--ink);
  /* confetti dots: every number starts at a dot */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,122,47,.16) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 12%, rgba(62,143,214,.16) 0 9px, transparent 10px),
    radial-gradient(circle at 70% 78%, rgba(47,163,90,.16) 0 8px, transparent 9px),
    radial-gradient(circle at 24% 86%, rgba(212,90,134,.14) 0 6px, transparent 7px),
    radial-gradient(circle at 46% 44%, rgba(255,182,25,.16) 0 5px, transparent 6px);
  background-size:260px 260px;
  font-family:var(--round); font-size:18px; line-height:1.45; letter-spacing:.01em;
}
button, input{ font-family:inherit; }
a{ color:var(--primary-ink); }
h1,h2{ line-height:1.15; margin:0 0 10px; font-weight:700; }
.muted{ color:var(--muted); } .small{ font-size:15px; } .good{ color:var(--good); font-weight:700; }
.error{ background:#FDECEA; color:var(--danger); border-radius:16px; padding:10px 14px; font-weight:600; }
.card{ background:var(--card); border-radius:28px; padding:clamp(18px,4vw,28px); box-shadow:0 6px 0 var(--line), var(--lift); }

/* chunky buttons: a darker bottom edge that squashes when pressed */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; cursor:pointer; text-decoration:none;
      background:var(--primary); color:#fff; font:inherit; font-weight:700; min-height:52px; padding:10px 22px; border-radius:18px;
      box-shadow:0 5px 0 var(--primary-deep); transition:transform .08s, box-shadow .08s; }
.btn:active{ transform:translateY(3px); box-shadow:0 2px 0 var(--primary-deep); }
.btn:focus-visible, .kid:focus-visible, .world:focus-visible, .go:focus-visible, .stop button:focus-visible, .tab:focus-visible{ outline:4px solid #3E8FD6; outline-offset:3px; }
.btn.soft{ background:var(--soft); color:var(--ink); box-shadow:0 5px 0 var(--soft-deep); }
.btn.soft:active{ box-shadow:0 2px 0 var(--soft-deep); }
.btn.danger{ background:var(--danger); color:#fff; box-shadow:0 5px 0 var(--danger-deep); }
.btn.danger:active{ box-shadow:0 2px 0 var(--danger-deep); }
.btn.big{ min-height:64px; padding:14px 32px; font-size:22px; border-radius:22px; box-shadow:0 7px 0 var(--primary-deep); }
.btn.big:active{ box-shadow:0 3px 0 var(--primary-deep); transform:translateY(4px); }
.btn.soft.big{ box-shadow:0 7px 0 var(--soft-deep); }
.btn.sm{ min-height:46px; padding:8px 16px; font-size:17px; border-radius:16px; }
.btn:disabled{ opacity:.6; cursor:default; }
.btns{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- Dot, the mascot ---------- */
.mascot{ display:inline-block; flex:none; width:var(--m,56px); height:var(--m,56px); }
.mascot svg{ display:block; width:100%; height:100%; overflow:visible; }
.mascot .bodyc{ fill:var(--good); }
.mascot.bob svg{ animation:bob 2.4s ease-in-out infinite; }
.mascot .blink{ animation:blink 4.5s infinite; transform-origin:center 43%; transform-box:fill-box; }
@keyframes blink{ 0%,94%,100%{ transform:scaleY(1); } 97%{ transform:scaleY(.1); } }

.brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:21px; color:var(--primary); }
.brand .mascot{ --m:34px; }
.logo{ width:18px; height:18px; border-radius:50%; background:var(--good); box-shadow:0 0 0 5px rgba(47,163,90,.18); }

/* ---------- visitors: grown-up sign up below the games ---------- */
.landing{ max-width:1000px; margin:0 auto; padding:max(14px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:22px; }
.forms{ display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:18px; align-items:start; }
.form h2{ font-size:26px; }
.form label{ display:block; font-weight:600; margin:0 0 14px; }
.form input[type=text], .form input[type=email], .form input[type=password], #loginform input[type=text], #loginform input[type=password]{
  display:block; width:100%; margin-top:6px; font:inherit; padding:13px 16px; border:3px solid var(--line); border-radius:16px; background:#FFFDF9; }
.form input:focus, #loginform input:focus{ outline:none; border-color:var(--primary); background:#fff; }
.form .check{ display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:16px; }
.form .check input{ width:24px; height:24px; margin-top:1px; flex:none; accent-color:var(--primary); }
.form .hp{ position:absolute; left:-9999px; }
#loginform p{ margin:0 0 14px; }
#loginform label{ display:block; font-weight:600; }
#loginform .login-remember label{ font-weight:400; display:flex; gap:8px; align-items:center; }
#loginform .login-remember input{ width:22px; height:22px; accent-color:var(--primary); }
#loginform input[type=submit]{ border:none; cursor:pointer; background:var(--primary); color:#fff; font:inherit; font-weight:700; font-size:21px; min-height:60px; padding:12px 30px; border-radius:20px; box-shadow:0 6px 0 var(--primary-deep); }
#loginform input[type=submit]:active{ transform:translateY(3px); box-shadow:0 3px 0 var(--primary-deep); }
.lfoot{ text-align:center; color:var(--muted); font-size:15px; }

/* ---------- app ---------- */
.is-app{ -webkit-user-select:none; user-select:none; touch-action:manipulation; }
#app{ min-height:100vh; min-height:100dvh; }
.loading{ padding:60px 20px; text-align:center; color:var(--muted); font-size:22px; font-weight:600; display:flex; flex-direction:column; align-items:center; gap:12px; }
.loading .mascot{ --m:84px; }
.bar{ position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:8px;
      padding:max(10px,env(safe-area-inset-top)) 14px 12px; background:rgba(255,248,236,.92); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.spacer{ width:46px; }
.me{ display:flex; align-items:center; gap:6px; font-weight:700; font-size:20px; color:#9A6400; background:#FFF0C7; padding:6px 14px; border-radius:99px; box-shadow:0 4px 0 #F2D489; }
.me .av{ font-size:30px; }

/* ---------- who is learning ---------- */
.kids{ padding:10px 16px 36px; text-align:center; max-width:760px; margin:0 auto; }
.kids h1{ font-size:clamp(28px,6.5vw,42px); margin:10px 0 22px; }
.kidgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,200px)); justify-content:center; gap:16px; }
.kid{ border:none; cursor:pointer; background:var(--card); border-radius:30px; padding:20px 10px 16px; display:flex; flex-direction:column; align-items:center; gap:4px;
      box-shadow:0 7px 0 var(--line), var(--lift); font:inherit; color:var(--ink); transition:transform .1s, box-shadow .1s; }
.kid:active{ transform:translateY(4px); box-shadow:0 3px 0 var(--line); }
.kid .av{ font-size:70px; line-height:1.1; width:104px; height:104px; border-radius:50%; background:var(--soft); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.kid:nth-child(4n+1) .av{ background:#FFE6D3; } .kid:nth-child(4n+2) .av{ background:#D9F1F0; }
.kid:nth-child(4n+3) .av{ background:#E7E3FA; } .kid:nth-child(4n) .av{ background:#DCEBFA; }
.kid .nm{ font-weight:700; font-size:24px; }
.kid .st{ color:#9A6400; font-weight:700; }
.empty{ color:var(--muted); font-size:20px; }

/* ---------- home ---------- */
.home{ padding:6px 16px 44px; max-width:760px; margin:0 auto; }
.hello{ display:flex; align-items:center; gap:14px; margin:6px 0 18px; }
.hello .mascot{ --m:clamp(72px,19vw,96px); }
.hello h1{ position:relative; flex:1; margin:0; font-size:clamp(24px,6vw,36px); background:var(--card); border-radius:26px; padding:14px 20px; box-shadow:0 6px 0 var(--line), var(--lift); }
/* speech-bubble tail pointing at Dot */
.hello h1::before{ content:""; position:absolute; left:-12px; top:50%; margin-top:-12px; border:12px solid transparent; border-left:0; border-right-color:var(--card); }

/* the one big button a child needs: play the next step */
.go{ display:flex; align-items:center; gap:16px; width:100%; border:none; cursor:pointer; font:inherit; text-align:left;
     background:var(--primary); color:#fff; border-radius:32px; padding:16px 24px 16px 16px; margin:0 0 22px;
     box-shadow:0 9px 0 var(--primary-deep), 0 16px 30px rgba(216,90,20,.25); transition:transform .08s, box-shadow .08s; }
.go:active{ transform:translateY(5px); box-shadow:0 4px 0 var(--primary-deep); }
.gplay{ flex:none; width:clamp(70px,19vw,92px); height:clamp(70px,19vw,92px); border-radius:50%; background:#fff; color:var(--primary);
        display:flex; align-items:center; justify-content:center; font-size:clamp(32px,8.5vw,44px); padding-left:6px;
        box-shadow:inset 0 -6px 0 #FFE0CC; animation:pulse 1.6s ease-in-out infinite; }
.gtxt{ display:flex; flex-direction:column; font-weight:700; font-size:clamp(24px,6vw,34px); line-height:1.15; }
.gtxt small{ font-size:.5em; font-weight:600; opacity:.95; text-transform:uppercase; letter-spacing:.08em; }
.gic{ font-size:1.15em; }
@keyframes pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }
.alldone{ background:var(--card); border-radius:26px; padding:16px 20px; font-weight:700; font-size:22px; color:var(--good); text-align:center; box-shadow:0 6px 0 var(--line), var(--lift); }
.pick{ font-size:20px; font-weight:600; color:var(--muted); margin:6px 4px 14px; }

/* topic tiles */
.worlds{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.world{ position:relative; border:none; cursor:pointer; font:inherit; color:#fff; text-align:left; min-height:clamp(158px,40vw,210px);
        background:var(--u); border-radius:32px; padding:18px; display:flex; flex-direction:column; gap:6px; overflow:hidden;
        box-shadow:0 8px 0 color-mix(in srgb, var(--u) 68%, #000), var(--lift); transition:transform .08s, box-shadow .08s; }
/* big soft dots in the corner of each tile */
.world::before{ content:""; position:absolute; right:-34px; bottom:-34px; width:130px; height:130px; border-radius:50%; background:rgba(255,255,255,.14);
                box-shadow:-90px -40px 0 -40px rgba(255,255,255,.12); }
.world:active{ transform:translateY(5px); box-shadow:0 3px 0 color-mix(in srgb, var(--u) 68%, #000); }
.world .wic{ position:relative; font-size:clamp(46px,12vw,66px); line-height:1; filter:drop-shadow(0 4px 0 rgba(0,0,0,.12)); }
.world .wt{ position:relative; font-weight:700; font-size:clamp(19px,4.8vw,25px); line-height:1.15; flex:1; }
.world .wsub{ position:relative; font-weight:700; font-size:16px; }
.wbar{ position:relative; display:block; height:12px; border-radius:99px; background:rgba(255,255,255,.35); overflow:hidden; }
.wbar i{ display:block; height:100%; background:#fff; border-radius:99px; transition:width .4s; }
.world.shut, .world.coming{ filter:grayscale(.5); opacity:.72; }
.world.done::after{ content:"★"; position:absolute; top:10px; right:14px; font-size:32px; color:#FFE27A; text-shadow:0 3px 0 rgba(0,0,0,.15); }
.ubar{ display:block; height:12px; border-radius:99px; background:#EFE4D2; overflow:hidden; }
.ubar i{ display:block; height:100%; background:var(--u,var(--good)); border-radius:99px; transition:width .4s; }

/* ---------- a topic's trail ---------- */
.worldview{ padding:6px 16px 52px; max-width:560px; margin:0 auto; }
.whead{ position:relative; overflow:hidden; display:flex; align-items:center; gap:14px; background:var(--u); color:#fff; border-radius:30px; padding:16px 20px; margin-bottom:22px;
        box-shadow:0 7px 0 color-mix(in srgb, var(--u) 68%, #000); }
.whead::before{ content:""; position:absolute; right:-30px; top:-40px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.14); }
.whead .wic{ position:relative; font-size:52px; line-height:1; }
.whead div{ position:relative; flex:1; }
.whead h1{ font-size:clamp(23px,5.8vw,32px); margin:0 0 8px; }
.btn.home-btn{ font-size:24px; min-width:54px; }
/* a dotted road down the middle: every number starts at a dot */
.trail{ list-style:none; margin:0; padding:6px 0 10px; display:flex; flex-direction:column; align-items:center; gap:clamp(8px,2.5vw,16px);
        background-image:radial-gradient(circle, color-mix(in srgb, var(--u) 45%, transparent) 6px, transparent 7px);
        background-size:26px 28px; background-position:center top; background-repeat:repeat-y; }
.trail li:nth-child(4n+2){ transform:translateX(clamp(50px,17vw,110px)); }
.trail li:nth-child(4n){ transform:translateX(calc(-1 * clamp(50px,17vw,110px))); }
.stop button{ border:none; cursor:pointer; background:none; font:inherit; color:var(--ink); display:flex; flex-direction:column; align-items:center; gap:4px; padding:2px; border-radius:20px; }
.stop .bub{ position:relative; width:clamp(88px,25vw,110px); height:clamp(88px,25vw,110px); border-radius:50%; display:flex; align-items:center; justify-content:center;
            font-size:clamp(40px,11vw,50px); background:#fff; border:6px solid color-mix(in srgb, var(--u) 35%, #fff);
            box-shadow:0 7px 0 color-mix(in srgb, var(--u) 40%, #D9C9AE); transition:transform .08s; }
.stop .num{ position:absolute; top:-6px; left:-6px; width:36px; height:36px; border-radius:50%; background:var(--u); color:#fff; font-size:19px; font-weight:700;
            display:flex; align-items:center; justify-content:center; border:3px solid var(--bg); }
.stop.done .bub{ background:color-mix(in srgb, var(--u) 20%, #fff); border-color:var(--u); }
.stop.done .num{ background:var(--good); }
.stop.now .bub{ border-color:var(--u); box-shadow:0 0 0 8px color-mix(in srgb, var(--u) 28%, transparent), 0 7px 0 color-mix(in srgb, var(--u) 55%, #000); animation:bob 1.2s ease-in-out infinite; }
.stop.shut{ opacity:.55; }
.stop.shut .bub{ background:#EFE6D6; }
.stop button:active .bub{ transform:scale(.93); }
.stop .stt{ font-weight:700; font-size:17px; text-align:center; line-height:1.2; background:var(--bg); padding:1px 8px; border-radius:10px; }
.stop .sst{ color:var(--gold); font-size:20px; letter-spacing:2px; background:var(--bg); padding:0 8px; border-radius:10px; text-shadow:0 2px 0 rgba(160,100,0,.18); }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }
.nudge .bub{ animation:nudge .5s ease-in-out 2 !important; }
@keyframes nudge{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.2); } }

/* ---------- playing ---------- */
.player{ position:fixed; inset:0; z-index:50; background:var(--bg); }
/* while a game is open nothing else on the page shows or scrolls (the grown-ups forms sit below the games) */
body.playing{ overflow:hidden; }
body.playing .landing{ display:none; }
.player iframe{ width:100%; height:100%; border:0; display:block; }
.toast{ position:fixed; left:50%; bottom:max(18px,env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:10; width:min(480px,calc(100% - 24px));
        background:var(--card); border-radius:32px; padding:20px 18px 22px; box-shadow:0 8px 0 var(--line), 0 18px 44px rgba(60,40,10,.25); text-align:center; animation:pop .4s cubic-bezier(.3,1.5,.6,1); overflow:hidden; }
.toast[hidden]{ display:none; }
.toast .mascot{ --m:84px; margin:-4px auto 2px; }
.tmsg{ position:relative; font-size:28px; font-weight:700; color:var(--good); margin-bottom:14px; }
.tbtns{ position:relative; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
@keyframes pop{ from{ transform:translate(-50%,40px) scale(.9); opacity:0; } to{ transform:translate(-50%,0) scale(1); opacity:1; } }
/* confetti falling behind the "well done" message */
.confetti{ position:absolute; inset:0; pointer-events:none; }
.confetti i{ position:absolute; top:-14px; width:12px; height:12px; border-radius:50%; animation:fall 1.6s ease-in forwards; }
.confetti i:nth-child(1){ left:8%;  background:#FF7A2F; animation-delay:.05s; }
.confetti i:nth-child(2){ left:22%; background:#3E8FD6; animation-delay:.3s; width:9px; height:9px; }
.confetti i:nth-child(3){ left:36%; background:#FFB619; animation-delay:.15s; }
.confetti i:nth-child(4){ left:52%; background:#D45A86; animation-delay:.4s; width:10px; height:10px; }
.confetti i:nth-child(5){ left:66%; background:#2FA35A; animation-delay:.1s; }
.confetti i:nth-child(6){ left:80%; background:#7B6CD0; animation-delay:.35s; width:9px; height:9px; }
.confetti i:nth-child(7){ left:92%; background:#FF7A2F; animation-delay:.2s; }
@keyframes fall{ to{ transform:translateY(230px); opacity:0; } }

/* ---------- grown-ups: calmer, same friendly font ---------- */
.gate{ max-width:440px; margin:30px auto; text-align:center; }
.gate p{ font-size:24px; font-weight:600; }
.gate form{ display:flex; gap:10px; justify-content:center; }
.gate input{ width:130px; font:inherit; font-size:28px; font-weight:700; text-align:center; padding:8px; border:3px solid var(--line); border-radius:16px; }
.gate input:focus{ outline:none; border-color:var(--primary); }
.parent{ padding:6px 16px 44px; max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:16px; -webkit-user-select:text; user-select:text; }
.tabs{ display:flex; gap:6px; background:var(--soft); padding:6px; border-radius:20px; }
.tab{ flex:1; border:none; cursor:pointer; font:inherit; font-weight:700; padding:10px 6px; border-radius:15px; background:none; color:var(--ink); min-height:48px; }
.tab.on{ background:var(--card); box-shadow:0 3px 0 var(--soft-deep); }
.row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:2px solid #F4ECDF; }
.row:last-child{ border-bottom:none; }
.row .av{ font-size:38px; width:58px; height:58px; border-radius:50%; background:var(--soft); display:flex; align-items:center; justify-content:center; flex:none; }
.grow{ flex:1; }
.parent label{ font-weight:600; display:block; }
.parent input[name=nickname], .danger-zone input{ display:block; width:100%; font:inherit; padding:13px 16px; margin-top:6px; border:3px solid var(--line); border-radius:16px; background:#FFFDF9; }
.parent input[name=nickname]:focus, .danger-zone input:focus{ outline:none; border-color:var(--primary); background:#fff; }
.avatars{ border:none; padding:0; margin:12px 0 16px; display:grid; grid-template-columns:repeat(auto-fill,minmax(60px,1fr)); gap:10px; }
.avatars legend{ font-weight:600; margin-bottom:10px; }
.avopt{ position:relative; }
.avopt input{ position:absolute; opacity:0; }
.avopt span{ display:flex; align-items:center; justify-content:center; height:60px; font-size:36px; border-radius:18px; background:var(--soft); cursor:pointer; box-shadow:0 4px 0 var(--soft-deep); transition:transform .08s; }
.avopt span:active{ transform:translateY(2px); }
.avopt input:checked + span{ background:#FFE3CC; box-shadow:0 0 0 4px var(--primary), 0 4px 0 var(--primary-deep); transform:scale(1.06); }
.avopt input:focus-visible + span{ outline:3px solid var(--ink); }
.prow{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto; gap:10px; align-items:center; margin:10px 0; font-size:16px; }
.pn{ font-weight:700; color:var(--muted); }
.weak{ background:#FFF3E2; border-radius:18px; padding:12px 16px; }
.weak ul{ margin:6px 0 0; padding-left:20px; }
.parent .toggle{ position:relative; display:flex; gap:12px; align-items:flex-start; padding:10px 0; cursor:pointer; font-weight:400; }
.toggle input{ position:absolute; opacity:0; }
.toggle .sw{ flex:none; width:56px; height:32px; border-radius:99px; background:#DCCFB9; position:relative; transition:background .2s; margin-top:2px; }
.toggle .sw::after{ content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; transition:left .2s; box-shadow:0 2px 0 rgba(0,0,0,.12); }
.toggle input:checked + .sw{ background:var(--good); }
.toggle input:checked + .sw::after{ left:27px; }
.toggle input:focus-visible + .sw{ outline:3px solid var(--ink); }
.danger-zone{ margin-top:16px; }
.danger-zone summary{ cursor:pointer; color:var(--danger); font-weight:700; }
.danger-zone form{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.danger-zone input{ flex:1; min-width:160px; margin:0; }
.welcome{ max-width:600px; }
.welcome .hello h1{ font-size:clamp(24px,6vw,32px); }
.welcome .btn.big{ width:100%; }

/* sign-up / log-in helpers */
.form .hint{ font-weight:400; color:var(--muted); font-size:15px; }
.form .showpass{ margin-top:-4px; }
.form .switch{ text-align:center; margin:14px 0 0; }

/* visitors: games first, grown-up sign-up below */
.is-guest #app{ min-height:0; }
.grownups{ -webkit-user-select:text; user-select:text; margin-top:14px; padding-top:30px; position:relative; }
/* a row of dots divides the kids' part from the grown-ups' part */
.grownups::before{ content:""; position:absolute; top:0; left:16px; right:16px; height:12px;
                   background:radial-gradient(circle, var(--soft-deep) 5px, transparent 6px) center/26px 12px repeat-x; }
.gintro{ text-align:center; max-width:620px; margin:0 auto; }
.gintro h2{ font-size:clamp(26px,5vw,34px); }
.gintro p{ color:var(--muted); margin:0; font-size:19px; }
.privacy h2::before{ content:"🛡️ "; }

@media (max-width:380px){
  .worlds{ gap:12px; }
  .world{ padding:14px; border-radius:26px; }
  .hello{ gap:10px; }
}
@media (prefers-reduced-motion:reduce){
  .gplay, .stop.now .bub, .nudge .bub, .mascot.bob svg, .mascot .blink, .confetti i{ animation:none !important; }
  .confetti{ display:none; }
}

/* loading: Dot bouncing while the app starts */
.loaddot{ width:64px; height:64px; border-radius:50%; background:var(--good); box-shadow:inset 0 -8px 0 var(--good-deep); animation:bob .8s ease-in-out infinite; }

/* ---------- moving from game to game ---------- */
/* intro card: covers the game for a moment while it loads and says its name */
.intro{ position:fixed; inset:0; z-index:8; display:flex; align-items:center; justify-content:center; padding:20px;
        background:var(--bg) radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--u) 22%, transparent) 0 34%, transparent 60%); transition:opacity .35s; }
.intro.out{ opacity:0; pointer-events:none; }
.icard{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; animation:pop-in .45s cubic-bezier(.3,1.5,.6,1); }
.icard .mascot{ --m:72px; margin-bottom:-8px; position:relative; z-index:1; }
.iic{ font-size:clamp(70px,20vw,110px); line-height:1; width:clamp(140px,38vw,190px); height:clamp(140px,38vw,190px); border-radius:50%; background:#fff;
      display:flex; align-items:center; justify-content:center; border:8px solid var(--u); box-shadow:0 9px 0 color-mix(in srgb, var(--u) 60%, #000), var(--lift); }
.itt{ font-size:clamp(30px,8vw,46px); font-weight:700; margin-top:14px; }
.iun{ font-weight:600; color:#fff; background:var(--u); padding:4px 16px; border-radius:99px; font-size:17px; }
@keyframes pop-in{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }

.tnext{ position:relative; font-size:19px; font-weight:600; color:var(--muted); margin:-6px 0 14px; }
.tnext span{ color:var(--ink); font-weight:700; }
/* the Next button fills up, then the next game starts by itself */
.btn.auto{ position:relative; overflow:hidden; }
.btn.auto .cd{ position:absolute; left:0; bottom:0; height:7px; width:100%; background:rgba(255,255,255,.75); transform-origin:left; animation:cd linear forwards; }
@keyframes cd{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce){ .icard{ animation:none; } }
