html{--lm-css:1}
/* ============================================================
   LAGOON MANE - app shell
   kawaii arcade, iOS app furniture, liquid glass tab bar
   ============================================================ */

:root{
  --sky1:#7fd4ef; --sky2:#c3ecf8;
  --lag:#37b394;  --lag2:#22876f;
  --sand:#ffe3ad;
  --cream:#fff6e9;
  --ink:#22323e;
  --ink2:#5b7285;
  --pink:#ff74cd;
  --yel:#ffd93d;
  --red:#ff5f52;
  --blue:#2fb6ff;
  --card:#fffdf8;
  --r:26px;

  --brand:"filson-soft",ui-rounded,"SF Pro Rounded",system-ui,sans-serif;
  --tabh:calc(58px + env(safe-area-inset-bottom));
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0;overscroll-behavior:none}
body{
  font-family:var(--brand);
  color:var(--ink);
  background:#0e171d;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  touch-action:manipulation;
}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
input{font:inherit}

/* ---------- boot splash ---------- */
.splash{
  position:fixed;inset:0;z-index:999;display:grid;place-content:center;justify-items:center;gap:12px;
  background:linear-gradient(180deg,var(--sky1),var(--lag));
  transition:opacity .45s ease,visibility .45s;
}
.splash.gone{opacity:0;visibility:hidden}
.splash__icon{width:104px;height:104px;border-radius:24px;box-shadow:0 16px 40px rgba(0,0,0,.3);animation:pop .5s cubic-bezier(.2,1.5,.4,1)}
@keyframes pop{from{transform:scale(.7);opacity:0}}
.splash__name{margin:6px 0 0;font-size:26px;letter-spacing:.06em;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.22)}
.splash__sub{margin:0;font-size:13px;color:rgba(255,255,255,.85)}

/* ---------- desktop header ---------- */
.deskbar{display:none}
@media (min-width:900px){
  .deskbar{
    display:flex;align-items:center;gap:18px;height:46px;padding:0 22px;
    background:rgba(12,22,28,.72);backdrop-filter:blur(20px) saturate(1.6);
    -webkit-backdrop-filter:blur(20px) saturate(1.6);
    border-bottom:1px solid rgba(255,255,255,.09);color:#eaf6fb;
    position:fixed;top:0;left:0;right:0;z-index:50;
  }
  .deskbar__brand{font-size:15px;letter-spacing:.1em}
  .deskbar__tag{font-size:12px;color:#8fb2c4;margin-left:auto}
  .deskbar__mute{
    font-size:10px;letter-spacing:.12em;color:#9fc4d6;
    border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:5px 12px;
  }
  .deskbar__mute:hover{background:rgba(255,255,255,.1)}
}

/* ---------- app shell ---------- */
.phone{position:fixed;inset:0;display:flex;flex-direction:column}
@media (min-width:900px){
  body::before{                       /* blurred lagoon wallpaper on the sides */
    content:"";position:fixed;inset:-60px;z-index:-1;
    background:url("/img/web/bg_lagoon.jpg") center/cover no-repeat;
    filter:blur(46px) saturate(1.3) brightness(.42);
    transform:scale(1.12);
  }
  .phone{
    position:fixed;
    inset:auto;                       /* must reset BEFORE left/top or it wipes them */
    left:50%;
    top:calc(46px + (100dvh - 46px) / 2);
    transform:translate(-50%,-50%);
    width:min(456px, calc((100dvh - 96px) * .58));
    height:min(936px, calc(100dvh - 96px));
    border-radius:34px;overflow:hidden;
    box-shadow:0 34px 90px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.14);
  }
}

.app{position:relative;flex:1;min-height:0;overflow:hidden;background:var(--sky2)}

/* ---------- screens ---------- */
.screen{position:absolute;inset:0;display:none;background:var(--sky2)}
.screen.is-active{display:block}
.screen--scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,#eaf7fb,#dff0f6)}
.screen--scroll::-webkit-scrollbar{width:0}
.pad{padding:calc(18px + env(safe-area-inset-top)) 18px calc(26px + var(--tabh))}

/* ---------- stage ---------- */
.stage{position:absolute;inset:0;overflow:hidden;background:#8fdcf2}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block}

/* ---------- HUD ---------- */
.hud{
  position:absolute;top:0;left:0;right:0;z-index:4;pointer-events:none;
  padding:calc(12px + env(safe-area-inset-top)) 16px 0;
  display:flex;align-items:flex-start;justify-content:space-between;
}
.hud[hidden]{display:none}
.hud__lvl,.hud__left{
  background:rgba(255,255,255,.82);border-radius:999px;padding:6px 12px;
  font-size:11px;letter-spacing:.09em;color:var(--ink2);
  box-shadow:0 3px 0 rgba(0,0,0,.09);
}
.hud__lvl b,.hud__left b{color:var(--ink);font-size:13px}
.hud__score{
  position:absolute;left:50%;top:calc(42px + env(safe-area-inset-top));transform:translateX(-50%);
  font-size:56px;line-height:1;color:#fff;padding:2px 22px;border-radius:999px;
  background:rgba(18,50,66,.38);
  text-shadow:0 3px 0 rgba(12,40,54,.55),0 0 18px rgba(0,0,0,.25);
}

/* toast */
.toast{
  position:absolute;left:50%;top:34%;transform:translate(-50%,-50%) scale(.7);
  z-index:5;font-size:30px;color:#fff;opacity:0;pointer-events:none;white-space:nowrap;
  text-shadow:0 4px 0 rgba(0,0,0,.28);
}
.toast.on{animation:toast 1.5s ease-out}
.toast{color:#ff74cd;text-shadow:0 0 3px #fff,0 0 22px rgba(255,116,205,.9),0 4px 0 rgba(0,0,0,.3);
  font-size:clamp(19px,5.4vw,32px);letter-spacing:.02em;max-width:94%}
@keyframes toast{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}
  20%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}
  72%{opacity:1;transform:translate(-50%,-62%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-82%) scale(.97)}
}

.mute{
  position:absolute;right:14px;top:calc(14px + env(safe-area-inset-top));z-index:8;
  width:34px;height:34px;border-radius:50%;font-size:15px;line-height:1;
  background:rgba(255,255,255,.82);box-shadow:0 2px 0 rgba(0,0,0,.12);
}
@media (min-width:900px){.mute{display:none}}

/* ---------- cards ---------- */
.card{
  position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;text-align:center;
  padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + var(--tabh));
  background:rgba(10,40,52,.42);backdrop-filter:blur(14px) saturate(1.3);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);
  animation:fade .28s ease;
}
.card[hidden]{display:none}
@keyframes fade{from{opacity:0}}

.logo{line-height:.86;filter:drop-shadow(0 6px 0 rgba(0,0,0,.22))}
.logo__a,.logo__b{
  display:block;color:#fff;letter-spacing:.02em;
  -webkit-text-stroke:0;
  text-shadow:
    -3px 0 0 var(--ink),3px 0 0 var(--ink),0 -3px 0 var(--ink),0 3px 0 var(--ink),
    -3px -3px 0 var(--ink),3px -3px 0 var(--ink),-3px 3px 0 var(--ink),3px 3px 0 var(--ink),
    0 9px 0 rgba(34,50,62,.45);
}
.logo__a{font-size:15vmin;max-font-size:64px}
.logo__b{font-size:19vmin;color:var(--yel)}
@media (min-width:900px){.logo__a{font-size:56px}.logo__b{font-size:72px}}

.card__sub{margin:2px 0 0;font-size:13px;color:rgba(255,255,255,.92);letter-spacing:.03em}
.card__best{font-size:12px;color:rgba(255,255,255,.85);letter-spacing:.09em}
.card__best b{color:var(--yel);font-size:15px}
.card__hint{margin:0;font-size:11px;color:rgba(255,255,255,.6);letter-spacing:.14em;animation:blink 1.7s infinite}
@keyframes blink{50%{opacity:.35}}
.titlerow{display:flex;align-items:center;gap:14px;margin-top:2px}

/* buttons */
.bigbtn{
  background:var(--yel);color:var(--ink);border-radius:999px;
  padding:16px 46px;font-size:19px;letter-spacing:.08em;
  box-shadow:0 5px 0 #c9a41f,0 12px 26px rgba(0,0,0,.3);
  transition:transform .1s,box-shadow .1s;
}
.bigbtn:active{transform:translateY(4px);box-shadow:0 1px 0 #c9a41f}
.minibtn{
  background:rgba(255,255,255,.9);color:var(--ink);border-radius:999px;
  padding:10px 20px;font-size:12px;letter-spacing:.1em;
  box-shadow:0 3px 0 rgba(0,0,0,.16);transition:transform .1s,box-shadow .1s;
}
.minibtn:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.16)}
.minibtn--go{background:var(--lag);color:#fff;box-shadow:0 3px 0 #1d7a63}

/* level cleared */
.card--won{background:rgba(15,110,95,.55)}
.splashmark{font-size:60px;animation:bob 1.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-9px) rotate(-5deg)}}
.won__kick{margin:0;font-size:13px;letter-spacing:.2em;color:var(--yel)}
.won__t{margin:0;font-size:34px;line-height:1.05;color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.25)}
.won__t b{color:var(--yel)}
.won__sub{margin:0;font-size:12px;color:rgba(255,255,255,.85)}

/* game over */
.over__kick{margin:0;font-size:13px;letter-spacing:.16em;color:var(--red)}
.scorebox{display:flex;gap:10px;margin:4px 0}
.scorebox div{
  background:rgba(255,255,255,.94);border-radius:16px;padding:10px 16px;min-width:82px;
  box-shadow:0 3px 0 rgba(0,0,0,.16);
}
.scorebox span{display:block;font-size:9px;letter-spacing:.13em;color:var(--ink2)}
.scorebox b{font-size:26px;line-height:1.1}
.over__rank{margin:0;font-size:12px;color:#fff;max-width:24ch;line-height:1.45}
.over__new{margin:0;font-size:12px;letter-spacing:.14em;color:var(--yel);animation:blink 1s infinite}
.over__new[hidden]{display:none}
.ovbtns{display:flex;flex-direction:column;gap:9px;align-items:center;margin-top:2px}

/* submit form */
.submit{
  width:100%;max-width:330px;margin-top:8px;padding-top:14px;
  border-top:1px solid rgba(255,255,255,.24);display:grid;gap:8px;justify-items:center;
}
.submit.collapsed .submit__row,
.submit.collapsed #submitBtn,
.submit.collapsed .submit__fine{display:none}
.submit__h{cursor:pointer}
.submit.collapsed .submit__h::after{content:" ▾"}
.submit__h{margin:0;font-size:11px;letter-spacing:.16em;color:rgba(255,255,255,.85)}
.submit__row{display:grid;gap:7px;width:100%}
.submit input{
  width:100%;border:0;border-radius:13px;padding:12px 14px;font-size:15px;
  background:rgba(255,255,255,.95);color:var(--ink);
}
.submit input::placeholder{color:#9db0be}
.submit input:focus{outline:2px solid var(--yel);outline-offset:1px}
.submit__fine{margin:0;font-size:10px;line-height:1.5;color:rgba(255,255,255,.62);max-width:30ch}
.submit__msg{margin:0;font-size:12px;color:var(--yel)}
.submit__msg[hidden]{display:none}
.submit.done .submit__row,.submit.done #submitBtn,.submit.done .submit__fine{display:none}

/* level select */
.card--levels{justify-content:flex-start;gap:10px;background:rgba(10,40,52,.72)}
.lv__h{margin:0;font-size:16px;letter-spacing:.14em;color:#fff}
.lv__sub{margin:0;font-size:11px;color:rgba(255,255,255,.7);max-width:32ch}
.lvgrid{
  display:grid;grid-template-columns:repeat(6,1fr);gap:7px;width:100%;max-width:330px;
  overflow-y:auto;padding:4px;flex:1;min-height:0;
}
.lvgrid::-webkit-scrollbar{width:0}
.lvcell{
  aspect-ratio:1;border-radius:12px;display:grid;place-items:center;font-size:12px;
  background:rgba(255,255,255,.92);color:var(--ink);box-shadow:0 2px 0 rgba(0,0,0,.18);
}
.lvcell.locked{background:rgba(255,255,255,.16);color:rgba(255,255,255,.4);box-shadow:none}
.lvcell.cur{background:var(--yel);box-shadow:0 2px 0 #c9a41f}

/* ---------- tab bar, liquid glass ---------- */
.tabs{
  position:relative;z-index:20;display:flex;height:var(--tabh);
  padding-bottom:env(safe-area-inset-bottom);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(24px) saturate(1.8);-webkit-backdrop-filter:blur(24px) saturate(1.8);
  border-top:1px solid rgba(0,0,0,.07);
}
.tab{
  flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  color:#96a9b6;font-size:10px;letter-spacing:.03em;transition:color .18s,transform .12s;
}
.tab svg{width:23px;height:23px;fill:currentColor}
.tab.is-active{color:var(--lag2)}
.tab:active{transform:scale(.92)}

/* ---------- scroll screens ---------- */
.ttl{margin:0 0 4px;font-size:26px;letter-spacing:.04em;color:var(--ink)}
.ttl--sm{margin-top:30px;font-size:19px}
.sub{margin:0 0 18px;font-size:13px;line-height:1.55;color:var(--ink2)}
.fine{font-size:11px;line-height:1.6;color:#8ea3b1;margin:12px 0 0}
.fine--foot{margin-top:26px;padding-top:16px;border-top:1px solid rgba(0,0,0,.09)}

/* leaderboard */
.board{display:grid;gap:7px;margin-bottom:16px}
.board__load,.board__empty{font-size:13px;color:var(--ink2);margin:0}
.row{
  display:grid;grid-template-columns:34px 1fr auto auto;gap:10px;align-items:center;
  background:var(--card);border-radius:15px;padding:11px 13px;
  box-shadow:0 2px 0 rgba(0,0,0,.07);
}
.row__r{font-size:14px;color:var(--ink2);text-align:center}
.row:nth-child(1) .row__r{color:#e0a91b}
.row:nth-child(2) .row__r{color:#9aa9b4}
.row:nth-child(3) .row__r{color:#c58a5b}
.row__n{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row__l{font-size:11px;color:var(--ink2);letter-spacing:.06em}
.row__s{font-size:17px;color:var(--lag2)}
.row.me{outline:2px solid var(--yel)}

/* scripture */
.script{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:8px}
.v{
  display:grid;grid-template-columns:22px 1fr 26px;gap:10px;align-items:center;
  background:var(--card);border-radius:16px;padding:13px 14px;
  box-shadow:0 2px 0 rgba(0,0,0,.07);cursor:pointer;transition:transform .12s;
}
.v:active{transform:scale(.985)}
.v.playing{outline:2px solid var(--yel)}
.v--holy{background:linear-gradient(180deg,#fff0fb,#ffe6f7)}
.v__n{font-size:12px;color:#a9bac6;text-align:center}
.v__l{display:flex;flex-wrap:wrap;gap:4px 7px;align-items:baseline}
.v__l em{font-style:normal;font-size:18px;line-height:1.2}
.v__l .big{font-size:24px}
.v__p{font-size:11px;color:#a9bac6;text-align:center}
.c-y{color:#e8a900}
.c-p{color:var(--pink);text-shadow:0 0 12px rgba(255,116,205,.45)}
.c-b{color:var(--blue)}
.strike{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px}

/* dictionary */
.dict{background:var(--card);border-radius:20px;padding:20px;box-shadow:0 2px 0 rgba(0,0,0,.07)}
.dict__hd{display:flex;align-items:center;gap:10px}
.dict__w{margin:0;font-size:30px;color:var(--pink)}
.dict__say{width:34px;height:34px;border-radius:50%;background:#ffe9f8;font-size:15px}
.dict__ph{margin:3px 0 14px;font-size:12px;color:var(--ink2)}
.dict__d{margin:0 0 12px;font-size:14px;line-height:1.6}
.dict__d--hot{color:var(--ink)}
.tag{
  display:inline-block;margin-right:7px;padding:2px 7px;border-radius:6px;
  font-size:9px;letter-spacing:.12em;background:#e9f0f5;color:var(--ink2);vertical-align:middle;
}
.tag--hot{background:var(--pink);color:#fff}
.dict__note{margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);font-size:12px;line-height:1.6;color:var(--ink2)}

.shot{margin:18px 0 0;border-radius:18px;overflow:hidden;box-shadow:0 2px 0 rgba(0,0,0,.07)}
.shot img{width:100%}
.shot figcaption{padding:9px 13px;font-size:10px;letter-spacing:.09em;color:var(--ink2);background:var(--card)}

/* table */
.tblwrap{overflow-x:auto;border-radius:16px;background:var(--card);box-shadow:0 2px 0 rgba(0,0,0,.07)}
.tbl{width:100%;border-collapse:collapse;min-width:420px}
.tbl th,.tbl td{padding:11px 13px;text-align:left;font-size:13px;border-bottom:1px solid rgba(0,0,0,.06)}
.tbl tr:first-child th{font-size:14px;letter-spacing:.04em}
.tbl .win{color:var(--lag2)}
.tbl .lose{color:#9aa9b4;text-decoration:line-through;text-decoration-color:var(--red)}
.tbl tr td:first-of-type{color:var(--ink)}
.tbl tr th:first-child{font-size:10px;letter-spacing:.1em;color:var(--ink2);text-transform:uppercase;width:34%}

/* shop */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tee{margin:0}
.tee__s{
  position:relative;aspect-ratio:1/1.05;border-radius:16px;overflow:hidden;
  background:radial-gradient(ellipse at 50% 32%,#2a2a30,#0f0f12 72%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:11px;
}
.tee__s--pink{background:radial-gradient(ellipse at 50% 32%,#33203040,#0f0f12 72%)}
.tee__s img{height:50%;width:auto;object-fit:contain;
  filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)}
.tee__t{font-size:13px;color:#fff;text-align:center;line-height:1}
.tee__b{font-size:10px;letter-spacing:.1em;color:#e7d6b4;text-align:center}
.tee h3{margin:9px 0 2px;font-size:13px}
.tee__p{margin:0;font-size:10px;letter-spacing:.1em;color:var(--red)}
.tee__p s{color:#a9bac6;margin-right:6px}

/* tour */
.tourbox{margin-top:26px;border-radius:18px;overflow:hidden;background:var(--card);box-shadow:0 2px 0 rgba(0,0,0,.07)}
.tourbox__h{margin:0;padding:13px 16px;background:var(--yel);font-size:13px;letter-spacing:.1em}
.tour{list-style:none;margin:0;padding:0}
.tour li{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;
  padding:12px 16px;border-bottom:1px solid rgba(0,0,0,.06);font-size:13px}
.tour li:last-child{border-bottom:0}
.tour span{font-size:10px;letter-spacing:.09em;color:var(--ink2)}
.tour b{font-size:14px}
.tour em{font-style:normal;font-size:9px;letter-spacing:.12em;color:#a9bac6}
.dead b{text-decoration:line-through;text-decoration-color:var(--red);opacity:.55}
.dead em{color:var(--red)}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important}
}


/* ================= lives ================= */
.hud__lives{display:block;margin-top:3px;font-size:12px;color:#ff6b86;letter-spacing:.06em}

/* ================= bootleg tee logo ================= */
.chrome{
  background:linear-gradient(180deg,#fff 0%,#e6eef6 16%,#9db1c4 38%,#5f7488 49%,#42566a 51%,#b9cad9 62%,#fff 80%,#8fa2b3 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:
    drop-shadow(2px 0 0 #12202b) drop-shadow(-2px 0 0 #12202b)
    drop-shadow(0 2px 0 #12202b) drop-shadow(0 -2px 0 #12202b)
    drop-shadow(0 5px 0 #12202b) drop-shadow(0 0 22px rgba(140,200,255,.4));
}
.boot{display:flex;flex-direction:column;align-items:center;line-height:.84}
.boot__kick{
  margin:0 0 6px;font-size:9px;letter-spacing:.34em;color:#ffe6a8;opacity:.9;
}
.boot__a,.boot__b{display:block;text-transform:uppercase;letter-spacing:.01em}
.boot__a{font-size:clamp(38px,11.5vw,58px)}
.boot__b{font-size:clamp(50px,15vw,76px);margin-top:-.06em}
.boot__cuts{
  display:flex;align-items:flex-end;justify-content:center;gap:0;height:96px;margin:6px 0 2px;
}
.boot__cuts img{
  height:100%;width:auto;
  filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff)
         drop-shadow(0 -2px 0 #fff) drop-shadow(0 8px 16px rgba(0,0,0,.55));
}
.boot__cuts img:nth-child(1){height:74%;margin-right:-14px;opacity:.95}
.boot__cuts img:nth-child(3){height:74%;margin-left:-14px;opacity:.95}
.boot__banner{
  margin:2px 0 0;font-size:clamp(18px,5vw,28px);letter-spacing:.03em;color:var(--yel);
  text-shadow:-2px 0 0 #12202b,2px 0 0 #12202b,0 -2px 0 #12202b,0 2px 0 #12202b,0 5px 0 rgba(0,0,0,.4);
}

/* ================= shop, real brand ================= */
.brandhd{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.brandhd__mark{
  width:62px;height:62px;flex:none;border-radius:16px;background:#0f1b22;
  object-fit:contain;padding:4px;box-shadow:0 3px 0 rgba(0,0,0,.12);
}
.sub--tight{margin-bottom:0}
.shop{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.prod{margin:0}
.prod__shot{
  position:relative;aspect-ratio:1/1.08;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,#e4ded1,#cfc8b8);display:grid;place-items:center;
  box-shadow:0 2px 0 rgba(0,0,0,.07);
}
.prod__tee{width:96%;height:auto;display:block}
.prod__tag{
  position:absolute;top:9px;left:9px;font-size:8px;letter-spacing:.16em;
  background:var(--ink);color:#fff;border-radius:5px;padding:3px 7px;
}
.prod h3{margin:10px 0 2px;font-size:13px;line-height:1.25}
.prod__meta{margin:0 0 4px;font-size:11px;color:var(--ink2)}
.prod__price{margin:0;font-size:11px;letter-spacing:.06em;color:var(--ink)}
.prod__price s{color:#a9bac6;margin-right:6px}
.prod__price b{color:var(--red);letter-spacing:.12em;font-size:10px}

/* ================= drawn icons, no emoji ================= */
.ico{width:19px;height:19px;fill:currentColor;display:block}
.ico__off{opacity:0}
.is-off .ico__wave{opacity:0}
.is-off .ico__off{opacity:1}
.deskbar__mute{display:flex;align-items:center;gap:7px}
.deskbar__mute .ico{width:15px;height:15px}
.mute{display:grid;place-items:center;color:var(--ink2)}
.dict__say{display:grid;place-items:center;color:var(--pink)}

/* level cleared wave */
.splashmark{width:132px;height:auto;animation:bob 1.8s ease-in-out infinite}

/* life pips */
.hud__lives{display:flex;gap:4px;margin-top:5px}
.pip{
  width:11px;height:10px;display:block;background:rgba(255,255,255,.42);
  border-radius:50% 50% 45% 45%;position:relative;
  clip-path:path("M5.5 10C1 6.6 0 4.4 0 2.9 0 1.2 1.2 0 2.8 0c1 0 1.9.5 2.7 1.5C6.3.5 7.2 0 8.2 0 9.8 0 11 1.2 11 2.9c0 1.5-1 3.7-5.5 7.1z");
}
.pip--on{background:#ff5f7a;box-shadow:0 0 8px rgba(255,95,122,.6)}

/* leaderboard medals without emoji */
.row__r--medal{
  font-weight:700;color:#fff;background:#c6a02a;border-radius:50%;
  width:24px;height:24px;line-height:24px;margin:0 auto;font-size:12px;
}
.row:nth-child(1) .row__r--medal{background:#e0b32b}
.row:nth-child(2) .row__r--medal{background:#a9b4bd}
.row:nth-child(3) .row__r--medal{background:#c98b56}

/* ================= power ups ================= */
.hud__right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin-right:42px}
.hud__power{
  font-size:10px;letter-spacing:.14em;color:#fff;border-radius:999px;padding:5px 11px;
  box-shadow:0 3px 0 rgba(0,0,0,.16);animation:powpulse .9s ease-in-out infinite;
}
.hud__power[hidden]{display:none}
.hud__power--star{background:linear-gradient(90deg,#ff5f7a,#ffd93d,#5fe0a0,#6fc8ff,#c98fff);
  background-size:300% 100%;animation:powpulse .9s ease-in-out infinite,rainbow 1.6s linear infinite;color:#22323e}
.hud__power--turbo{background:#37b3ff}
.hud__power--shield{background:#8fe3ff;color:#22323e}
@keyframes powpulse{50%{transform:scale(1.06)}}
@keyframes rainbow{to{background-position:300% 0}}

/* ================= tutorial ================= */
.helpbtn{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.85);box-shadow:0 3px 0 rgba(0,0,0,.16);
}
.helpbtn svg{width:17px;height:17px;fill:var(--ink2)}
.helpbtn:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.16)}

.card--tut{gap:10px;background:rgba(10,40,52,.72)}
.tut__kick{margin:0;font-size:10px;letter-spacing:.3em;color:var(--yel)}
.tut__art{width:132px;height:112px;display:grid;place-items:center}
.tut__art svg{width:100%;height:100%;overflow:visible}
.tut__t{margin:0;font-size:26px;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.28)}
.tut__d{margin:0;font-size:13px;line-height:1.55;color:rgba(255,255,255,.9);max-width:27ch}
.tut__dots{display:flex;gap:6px;margin:4px 0 2px}
.tut__dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.28)}
.tut__dots i.on{background:var(--yel);transform:scale(1.2)}
.boot__sub{
  margin:5px 0 0;font-size:clamp(9px,2.3vw,12px);letter-spacing:.3em;
  color:#fff;opacity:.88;
}
/* tutorial uses the real character */
.tut__art{position:relative;width:150px;height:120px}
.tut__hero{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:96px;height:96px;object-fit:contain;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
.tut__art svg{position:absolute;inset:0;width:100%;height:100%}

/* ================= add to home screen ================= */
.a2hs{
  position:absolute;left:10px;right:10px;bottom:calc(10px + var(--tabh));z-index:40;
  display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:18px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(18px) saturate(1.6);
  -webkit-backdrop-filter:blur(18px) saturate(1.6);
  box-shadow:0 10px 30px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.06);
  animation:a2hsIn .45s cubic-bezier(.2,1.3,.4,1);
}
.a2hs[hidden]{display:none}
@keyframes a2hsIn{from{opacity:0;transform:translateY(14px)}}
.a2hs__icon{width:40px;height:40px;border-radius:11px;flex:none}
.a2hs__txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.a2hs__txt b{font-size:12.5px;color:var(--ink)}
.a2hs__txt span{font-size:11px;color:var(--ink2);line-height:1.35}
.a2hs__go{
  margin-left:auto;flex:none;background:var(--lag);color:#fff;border-radius:999px;
  padding:8px 14px;font-size:11px;letter-spacing:.1em;box-shadow:0 3px 0 #1d7a63;
}
.a2hs__x{flex:none;width:26px;height:26px;color:#9db0be;display:grid;place-items:center;margin-left:auto}
.a2hs__go + .a2hs__x{margin-left:0}
.a2hs__x svg{width:16px;height:16px}

/* bootleg logo now uses the drawn mascot, not photo cutouts */
.boot__cuts{gap:2px}
.boot__cuts img{
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.45));
}
.boot__cuts img:nth-child(1),.boot__cuts img:nth-child(3){height:62%;opacity:.92}
.boot__cuts img:nth-child(1){transform:scaleX(-1)}

/* stop iOS double tap zoom dead */
.stage,#cv{touch-action:none}

/* ================= notify list ================= */
.prod__was{color:#a9bac6;margin-right:8px;font-size:11px}
.notify{
  margin:22px 0 0;padding:18px;border-radius:20px;background:var(--card);
  box-shadow:0 2px 0 rgba(0,0,0,.07);display:grid;gap:9px;justify-items:center;text-align:center;
}
.notify__h{margin:0;font-size:11px;letter-spacing:.18em;color:var(--ink2)}
.notify__row{display:grid;gap:8px;width:100%;max-width:320px}
.notify input{
  width:100%;border:1px solid rgba(0,0,0,.1);border-radius:13px;padding:12px 14px;
  font-size:15px;background:#fff;color:var(--ink);
}
.notify input:focus{outline:2px solid var(--lag);outline-offset:1px}
.notify__fine{margin:0;font-size:10px;line-height:1.5;color:#98abb8;max-width:32ch}
.notify__msg{margin:0;font-size:12px;color:var(--lag2)}
.notify__msg[hidden]{display:none}
.notify.done .notify__row,.notify.done #notifyBtn,.notify.done .notify__fine{display:none}
.row--pinned{margin-top:8px;border:2px dashed rgba(34,135,111,.4);box-shadow:none}

/* ================= the mane himself ================= */
.mane{text-align:center;margin-bottom:20px}
.mane__mark{
  width:96px;height:96px;margin:0 auto 10px;border-radius:26px;
  background:linear-gradient(180deg,#7fd4ef,#37b394);padding:6px;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.mane .sub{margin-left:auto;margin-right:auto;max-width:34ch}

.links{display:grid;gap:10px}
.link{
  display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:18px;
  background:var(--card);box-shadow:0 2px 0 rgba(0,0,0,.08);
  text-decoration:none;color:var(--ink);transition:transform .12s,box-shadow .12s;
}
.link:active{transform:translateY(2px);box-shadow:0 0 0 rgba(0,0,0,.08)}
.link__ic{
  width:42px;height:42px;flex:none;border-radius:13px;display:grid;place-items:center;color:#fff;
}
.link__ic svg{width:23px;height:23px;fill:currentColor}
.link--tt .link__ic{background:#010101}
.link--ig .link__ic{background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7)}
.link--sp .link__ic{background:#1db954}
.link--tr .link__ic{background:#111}
.link__tx{display:flex;flex-direction:column;gap:1px;min-width:0}
.link__tx b{font-size:15px}
.link__tx i{font-style:normal;font-size:11.5px;color:var(--ink2)}
.link__go{margin-left:auto;font-size:22px;color:#c2cfd8;line-height:1}

/* ================= the note ================= */
.note{margin:34px 0 0;padding-top:20px;border-top:1px dashed rgba(0,0,0,.12)}
.note__tab{
  display:flex;align-items:center;gap:9px;width:100%;padding:6px 0;
  font-size:11.5px;letter-spacing:.06em;color:#a4b6c2;transition:color .2s;
}
.note__tab:hover{color:var(--pink)}
.note__seal{width:22px;height:22px;flex:none;color:#c9d6de;transition:color .2s,transform .4s}
.note__tab:hover .note__seal{color:var(--pink)}
.note.open .note__seal{color:var(--pink);transform:rotate(-12deg) scale(1.1)}
.note__seal svg{width:100%;height:100%;fill:currentColor}
.note__body{
  margin-top:12px;padding:18px 18px 16px;border-radius:18px;
  background:linear-gradient(180deg,#fff6fb,#ffeef7);
  box-shadow:0 2px 0 rgba(0,0,0,.06),0 0 0 1px rgba(255,116,205,.18);
  animation:noteIn .4s cubic-bezier(.2,1.2,.4,1);
}
.note__body[hidden]{display:none}
@keyframes noteIn{from{opacity:0;transform:translateY(-6px)}}
.note__body p{margin:0 0 10px;font-size:13.5px;line-height:1.65;color:#5c4a56}
.note__hi{font-size:15px!important;color:var(--pink)!important;letter-spacing:.02em}
.note__ps{font-size:12px!important;color:#a48b9c!important;font-style:italic}
.note__sig{margin-bottom:0!important;font-size:12.5px!important;color:#8c7583!important;text-align:right}


/* buzzed + beer chips */
.hud__power--lit{background:linear-gradient(90deg,#f5b62e,#ffd93d);color:#22323e}
.hud__power--beer{background:#fffdf6;color:#b57e10;box-shadow:0 3px 0 rgba(0,0,0,.1)}

/* quiet legal links */
.finelink{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* cuter follow chips */
.link{border-radius:20px}
.link__ic{border-radius:14px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.14)}
.link:hover .link__ic{transform:rotate(-4deg) scale(1.05);transition:transform .15s}
.mane__mark{background:#dff3f9}

/* the note now lives bottom right of the Getter page */
.note{margin:26px 0 0;padding-top:0;border-top:none;display:flex;flex-direction:column;align-items:flex-end}
.note__tab{
  width:auto;display:flex;align-items:center;gap:9px;
  background:var(--card);border-radius:999px;padding:10px 16px;
  box-shadow:0 3px 0 rgba(0,0,0,.1);font-size:12px;letter-spacing:.08em;color:#8ea3b1;
}
.note__tab:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.1)}
.note__seal{width:26px;height:20px;color:#c2cfd8}
.note__tab:hover{color:var(--pink)}
.note__tab:hover .note__seal{color:var(--pink)}
.note.open .note__seal{color:var(--pink);transform:rotate(-8deg) scale(1.08)}
.note__body{align-self:stretch}

.credit{
  margin:16px 0 0;text-align:right;font-size:10.5px;letter-spacing:.08em;color:#a9bac6;
}
.credit a{color:#8ea3b1;text-decoration:underline;text-underline-offset:2px}

/* ================= settings ================= */
.gear{width:18px;height:18px;fill:#5b7285;display:block}
.settings{position:absolute;inset:0;z-index:70;display:grid;place-items:center;
  background:rgba(10,30,40,.45);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.settings[hidden]{display:none}
.settings__card{position:relative;width:min(320px,86%);background:#fffdf8;border-radius:24px;
  padding:24px 22px 18px;box-shadow:0 20px 50px rgba(0,0,0,.35);animation:a2hsIn .3s cubic-bezier(.2,1.3,.4,1)}
.settings__x{position:absolute;top:10px;right:10px;width:32px;height:32px;color:#8ea3b1;display:grid;place-items:center}
.settings__x svg{width:18px;height:18px}
.settings__h{margin:0 0 12px;font-size:14px;letter-spacing:.16em;color:#22876f;text-align:center}
.settings__row{display:flex;justify-content:space-between;align-items:center;padding:13px 4px;
  border-top:1px solid rgba(0,0,0,.07);font-size:14px;font-weight:700;color:#22323e}
.settings__fine{margin:12px 0 0;font-size:10.5px;color:#a9bac6;text-align:center}
.tgl{width:52px;height:30px;border-radius:999px;background:#cdd8de;position:relative;transition:background .18s;flex:none}
.tgl i{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;
  box-shadow:0 2px 4px rgba(0,0,0,.25);transition:left .18s}
.tgl.on{background:var(--lag)}
.tgl.on i{left:25px}

/* ================= title screen hierarchy ================= */
.boot__kick{font-size:10px;letter-spacing:.42em;color:#eaf7fb;opacity:.8}
.boot__a{font-size:clamp(40px,12vw,60px);letter-spacing:.04em}
.boot__b{font-size:clamp(58px,17vw,86px);letter-spacing:.01em;margin-top:-.04em}
.boot__cuts{height:106px;margin:10px 0 4px}
.boot__banner{font-size:clamp(14px,4vw,21px);letter-spacing:.24em;color:#ffe14d}
.boot__sub{letter-spacing:.42em;font-size:clamp(8px,2vw,10px);opacity:.7;margin-top:6px}
.card--title .bigbtn{margin-top:10px;padding:18px 58px;font-size:21px}
.card--title .card__sub{opacity:.85}
.titlerow{gap:10px}
.card__best{background:rgba(255,255,255,.13);padding:8px 13px;border-radius:999px;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

/* install from settings */
.settings__row--btn{cursor:pointer;color:#22876f}
.settings__row--btn svg{width:20px;height:20px;fill:none;stroke:#22876f}
.settings__row--btn svg rect{fill:#22876f;stroke:none}
.settings__tip{margin:8px 0 0;font-size:11.5px;line-height:1.5;color:#5b7285;text-align:center;
  background:#eaf7fb;border-radius:12px;padding:10px}
.settings__tip[hidden]{display:none}

/* ================= finishing touches ================= */
.gear{width:19px;height:19px;fill:#5b7285;display:block}

/* drawn padlock on locked levels */
.lvcell.locked{position:relative}
.lvcell.locked::after{
  content:"";width:13px;height:15px;
  background:currentColor;opacity:.55;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 15"><rect x="1" y="6.5" width="11" height="8" rx="2.2"/><path d="M3.5 7V4.6a3 3 0 0 1 6 0V7" fill="none" stroke="black" stroke-width="1.9"/></svg>') center/contain no-repeat;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 15"><rect x="1" y="6.5" width="11" height="8" rx="2.2"/><path d="M3.5 7V4.6a3 3 0 0 1 6 0V7" fill="none" stroke="black" stroke-width="1.9"/></svg>') center/contain no-repeat;
  color:#fff;
}

/* tab bar: clearer active state */
.tab{transition:color .18s,transform .12s}
.tab.is-active svg{transform:translateY(-1px) scale(1.08)}
.tab.is-active span{font-weight:700}
.tab svg{transition:transform .15s}

/* keyboard focus everywhere interactive */
.bigbtn:focus-visible,.minibtn:focus-visible,.tab:focus-visible,.tgl:focus-visible,
.helpbtn:focus-visible,.mute:focus-visible,.link:focus-visible,.note__tab:focus-visible,
.settings__x:focus-visible,.settings__row--btn:focus-visible{
  outline:3px solid var(--yel);outline-offset:2px;border-radius:14px;
}

/* calmer for reduced motion users */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* ================= leaderboard, dressed up ================= */
.row{grid-template-columns:34px 1fr auto;border-radius:16px}
.row__pill{
  display:flex;align-items:baseline;gap:5px;background:#eaf7f2;border-radius:999px;
  padding:6px 12px;
}
.row__pill .row__l{font-size:9px;letter-spacing:.12em;color:#57a08c}
.row__pill .row__s{font-size:16px;color:var(--lag2)}
.row--top{padding:14px 15px}
.row--p1{
  background:linear-gradient(135deg,#fff9e3,#fff3c2);
  box-shadow:0 3px 0 rgba(196,158,28,.35),0 8px 22px rgba(224,179,43,.22);
}
.row--p1 .row__n{font-size:16px}
.row--p2{background:linear-gradient(135deg,#f7fafc,#eef3f6)}
.row--p3{background:linear-gradient(135deg,#fbf3ec,#f6e8dc)}

.board__zero{
  display:grid;justify-items:center;gap:8px;text-align:center;
  background:var(--card);border-radius:22px;padding:30px 20px 26px;
  box-shadow:0 2px 0 rgba(0,0,0,.07);
}
.board__zero img{width:110px;height:110px;object-fit:contain;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.14))}
.board__zero-h{margin:2px 0 0;font-size:17px;letter-spacing:.06em;color:var(--ink)}
.board__zero-t{margin:0 0 8px;font-size:13px;color:var(--ink2)}
.bigbtn--sm{padding:13px 30px;font-size:14px}

/* one floating head on the title */
.boot__cuts{height:96px;display:grid;place-items:center}
.boot__solo{height:100% !important;width:auto;animation:heroFloat 2.6s ease-in-out infinite;
  filter:drop-shadow(0 10px 16px rgba(0,20,30,.28))}
@keyframes heroFloat{50%{transform:translateY(-9px) rotate(-3deg)}}
/* the gear floats over every screen, under the modals */
.mute{z-index:40}
.mute--help{right:58px}
.mute--help .gear{fill:#5b7285}
/* clear the two floating buttons */
.hud__right{margin-right:92px}
.boot__cuts{height:88px;margin-bottom:10px}

/* ================= title hierarchy ================= */
.card--title{justify-content:flex-start;padding-top:calc(56px + env(safe-area-inset-top))}
.boot__game{
  margin:10px 0 0;font-size:12px;letter-spacing:.5em;text-indent:.5em;color:#ffe14d;
  text-shadow:0 2px 0 rgba(20,50,62,.4);
}
.boot__cuts{height:92px;margin:18px 0 14px}
.titlebot{margin-top:auto;display:grid;gap:13px;justify-items:center;padding-bottom:6px}
.titlebot .card__sub{margin:0}
.mute--home{right:102px}

/* ================= gentle gloss, zero runtime cost ================= */
.row__r--medal{
  background-image:radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,0) 42%);
  box-shadow:inset 0 -2px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.15);
}
.row:nth-child(1) .row__r--medal{background-color:#e6b829}
.row__pill{background-image:linear-gradient(180deg,#f2fbf7,#e2f3ec);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.link__ic{background-image:radial-gradient(circle at 30% 24%, rgba(255,255,255,.28), rgba(255,255,255,0) 46%)}
.link--ig .link__ic{background-image:radial-gradient(circle at 30% 24%, rgba(255,255,255,.32), rgba(255,255,255,0) 46%),linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7)}
.bigbtn{background-image:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 58%)}
.minibtn{background-image:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 62%)}

/* keep playing, straight off the Getter page */
.bigbtn--keep{display:block;width:100%;margin:16px 0 2px}

/* the head floats fully ABOVE the banner, no overlap */
.card--title .boot__cuts{height:112px;margin:12px 0 8px;display:flex;align-items:flex-end;justify-content:center}
.card--title .boot__solo{height:104px !important;width:auto !important}

/* wide stubby windows made the game trivially easy: letterbox them portrait */
@media (max-width:899px) and (min-aspect-ratio:7/9){
  .phone{inset:auto;left:50%;top:0;transform:translateX(-50%);
    width:calc(100dvh * .62);height:100dvh}
}

/* your best, right under the score, quiet chase energy */
.hud__best{
  position:absolute;left:50%;top:calc(112px + env(safe-area-inset-top));transform:translateX(-50%);
  font-size:10px;letter-spacing:.22em;color:#fff;padding:5px 12px;border-radius:999px;
  background:rgba(18,50,66,.26);text-shadow:0 1px 0 rgba(12,40,54,.5);white-space:nowrap;
}

/* the solo head reads bigger: the drawn canvas has transparent padding */
.card--title .boot__cuts{height:150px;margin:2px 0 0}
.card--title .boot__solo{height:150px !important}

/* the gates pill clears the home/help/gear cluster */
.hud__right{margin-right:148px}

/* the tutorial plays the real thing in miniature */
#tutCv{width:100%;height:100%;display:block;border-radius:16px}

/* leaderboard, but sexier: crowns, ceremony, useless accomplishments */
.row__stack{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.row__stack .row__n{flex:none}
.row__a{font-size:8.5px;letter-spacing:.15em;color:#8ea3b1;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row--p1 .row__a{color:#b08a1e}
.row--p1{background-image:linear-gradient(135deg,#fff8df,#ffedb0);border:1.5px solid #f2cf5b;
  box-shadow:0 3px 10px rgba(220,170,40,.25)}
.row--p2{background-image:linear-gradient(135deg,#fbfcfd,#eef2f6)}
.row--p3{background-image:linear-gradient(135deg,#fdf6f0,#f7e6d8)}
.row__r{position:relative}
.row__crown{position:absolute;width:20px;height:12px;left:50%;top:-9px;transform:translateX(-50%) rotate(-4deg)}
.row--p1 .row__r--medal{box-shadow:0 0 0 3px rgba(255,217,61,.45), inset 0 -2px 3px rgba(0,0,0,.18)}

/* the note to getter breathes so it gets found */
@keyframes notePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.055)}}
.note__tab{animation:notePulse 2.4s ease-in-out infinite;transform-origin:center}
.note__tab[aria-expanded="true"]{animation:none}
@media (prefers-reduced-motion: reduce){.note__tab{animation:none}}

/* medal numbers pop instead of blending into the medal */
.row:nth-child(n) .row__r--medal{
  color:#fff;font-weight:700;
  text-shadow:0 1.5px 2px rgba(20,40,55,.5), 0 0 1px rgba(20,40,55,.4);
}

/* power chip tucks under the home/help/gear cluster, off the score */
.hud__power{position:absolute;right:14px;top:calc(58px + env(safe-area-inset-top));margin:0}

/* the party shows through the win card now */
.card--won{background:rgba(10,40,52,.16);
  backdrop-filter:blur(2.5px) saturate(1.2);-webkit-backdrop-filter:blur(2.5px) saturate(1.2)}

/* gates + power chips stack under the button cluster, off the score */
.hud__right{margin-right:0;position:absolute;right:12px;top:calc(58px + env(safe-area-inset-top));
  display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.hud__left{text-align:center}
.hud__power{position:static;margin:0}

/* useless achievements, displayed with full ceremony */
.ach__t{margin:22px 0 10px;font-size:11px;letter-spacing:.18em;color:var(--ink2)}
.ach{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:10px}
.achip{background:#fff;border-radius:14px;padding:9px 12px;display:flex;flex-direction:column;gap:2px;
  opacity:.42;box-shadow:0 2px 0 rgba(0,0,0,.06);text-align:left}
.achip b{font-size:9.5px;color:var(--ink2);letter-spacing:.14em}
.achip span{font-size:11px;letter-spacing:.03em;color:#22323e}
.achip--got{opacity:1;background:linear-gradient(135deg,#fff8df,#ffedb0);
  box-shadow:0 2px 0 rgba(201,164,31,.3)}

/* achievement chips wear their icons */
.achip{flex-direction:row;align-items:center;gap:10px}
.achip__ic{width:26px;height:26px;flex:none;fill:#9fb2bf}
.achip--got .achip__ic{fill:#c9971c}
.achip__tx{display:flex;flex-direction:column;gap:2px;min-width:0}

/* full blur is back on the win card: the party got its 2 clean seconds first */
.card--won{background:rgba(10,40,52,.42);
  backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3)}

/* soundtrack picker pill in settings */
.settings__val{background:#eef4f7;border:0;border-radius:999px;padding:8px 14px;
  font:700 11px "filson-soft",system-ui,sans-serif;letter-spacing:.08em;color:#22323e;cursor:pointer;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08)}

/* lil player in settings: art, name, controls, our style */
.player{display:flex;align-items:center;gap:10px;background:#eef4f7;border-radius:16px;padding:10px 12px;margin-top:2px}
.player__art{width:42px;height:42px;border-radius:10px;flex:none;box-shadow:0 2px 4px rgba(0,0,0,.18)}
.player__tx{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.player__tx b{font-size:12px;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player__tx i{font-style:normal;font-size:9.5px;letter-spacing:.16em;color:#8ea3b1}
.pbtn{width:34px;height:34px;border:0;border-radius:50%;background:#fff;flex:none;cursor:pointer;
  display:grid;place-items:center;box-shadow:0 2px 0 rgba(0,0,0,.12);color:#22323e}
.pbtn svg{width:17px;height:17px;fill:#22323e}
.pbtn:active{transform:translateY(1px)}
.pbtn--on{background:#22876f;color:#fff}
.pbtn--on svg{stroke:#fff}

/* track names never get cut off: two lines allowed */
.player__tx b{white-space:normal;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pbtn{width:31px;height:31px}

/* bigger head on the title, same float */
.card--title .boot__cuts{height:190px;margin:0}
.card--title .boot__solo{height:190px !important}

/* premium feel: no rubber-band, crisp text, satisfying presses */
html,body{overscroll-behavior:none}
body{-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
.minibtn:active,.pbtn:active,.tab:active{transform:translateY(1.5px)}
.bigbtn{transition:transform .06s ease}
.bigbtn:active{transform:translateY(2.5px) scale(.99)}

/* achievement toast: slides up from the tab bar, never in the way */
.achtoast{
  position:absolute;left:50%;bottom:calc(var(--tabh) + 12px);transform:translate(-50%,16px);
  display:flex;align-items:center;gap:9px;z-index:30;pointer-events:none;opacity:0;
  background:linear-gradient(135deg,#fff8df,#ffedb0);border:1.5px solid #f2cf5b;border-radius:999px;
  padding:8px 16px 8px 12px;box-shadow:0 6px 16px rgba(120,90,10,.25);
  transition:opacity .3s ease, transform .3s ease;max-width:88%;
}
.achtoast--in{opacity:1;transform:translate(-50%,0)}
.achtoast svg{width:20px;height:20px;fill:#c9971c;flex:none}
.achtoast__tx{display:flex;flex-direction:column;gap:0;min-width:0}
.achtoast__tx i{font-style:normal;font-size:8px;letter-spacing:.24em;color:#b08a1e}
.achtoast__tx b{font-size:11.5px;letter-spacing:.05em;color:#22323e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the winner selfie booth */
.selfie{position:absolute;inset:0;z-index:60;background:rgba(8,26,36,.94);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  padding:calc(14px + env(safe-area-inset-top)) 14px calc(14px + var(--tabh))}
.selfie[hidden]{display:none}
.selfie__kick{font-size:11px;letter-spacing:.24em;color:#ffd93d}
.selfie__stage{position:relative;height:min(60vh,520px);aspect-ratio:9/16;max-width:86vw;
  border-radius:22px;overflow:hidden;background:#10222e;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.selfie__stage video,.selfie__stage canvas,.selfie__stage img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.selfie__stage video{transform:scaleX(-1)}
.selfie__msg{position:absolute;left:10px;right:10px;bottom:12px;color:#fff;font-size:12px;text-align:center}
.selfie__row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

/* player: art + names on top, controls on their own row */
.player{flex-wrap:wrap}
.player__tx{flex:1 1 calc(100% - 56px)}
.player .pbtn:first-of-type{margin-left:auto}

/* achievement toast rides top-left under the level pill */
.achtoast{left:12px;right:auto;bottom:auto;top:calc(64px + env(safe-area-inset-top));
  transform:translate(-14px,0);max-width:74%}
.achtoast--in{transform:translate(0,0)}

/* PLAY never touches the tab bar */
.card--title{padding-bottom:calc(26px + var(--tabh) + env(safe-area-inset-bottom))}
.titlebot{gap:10px;padding-bottom:4px}

/* the title always fits: the floating head gives up height first,
   so PLAY can never spill into the tab bar on short screens */
.card--title .boot__cuts{height:auto;flex:0 1 190px;min-height:84px;
  display:flex;align-items:flex-end;justify-content:center}
.card--title .boot__solo{height:100% !important;max-height:190px;width:auto !important}
.card--title .boot{flex:none}
.card--title .titlebot{flex:none}
@media (max-height:780px){
  .card--title{padding-top:calc(36px + env(safe-area-inset-top))}
  .boot__a{font-size:clamp(32px,10vw,48px)}
  .boot__b{font-size:clamp(44px,14vw,66px)}
  .boot__game{margin-top:6px;font-size:11px}
  .boot__banner{font-size:clamp(13px,3.8vw,19px)}
  .boot__sub{font-size:clamp(7px,1.8vw,9px)}
  .titlebot{gap:7px}
  .card--title .bigbtn{margin-top:4px;padding:14px 46px;font-size:19px}
  .titlebot .card__sub{font-size:11px}
}

/* ultra-short screens: trim the garnish, keep the game */
@media (max-height:560px){
  .card--title{padding-top:calc(24px + env(safe-area-inset-top))}
  .card--title .boot__cuts{min-height:60px}
  .boot__sub{display:none}
  #installTitle2{display:none}
  .card__hint{display:none}
}

/* card kickers keep clear of the gear */
.over__kick,.won__kick,.tut__kick{max-width:76%;margin-left:auto;margin-right:auto}

/* selfie booth v2 bits */
.minibtn--ic{display:inline-flex;align-items:center;gap:6px}
.minibtn--ic svg{width:15px;height:15px;fill:#22323e}

/* the gates counter retires: the lagoon shows up when it shows up */
.hud__left{display:none !important}

/* final word: achievement toasts live at the bottom, above the tabs */
.achtoast{left:50%;right:auto;top:auto;bottom:calc(var(--tabh) + 14px);
  transform:translate(-50%,16px);max-width:88%}
.achtoast--in{transform:translate(-50%,0)}
.chipdrink{width:13px;height:13px;vertical-align:-2px}

/* win card: selfie and share up top, NEXT LEVEL where the thumb lives */
.wonrow{display:flex;gap:10px;justify-content:center}
.card--won .bigbtn{margin-top:6px}
.wonrow{flex-wrap:wrap}
.wonrow .minibtn{padding-left:13px;padding-right:13px}

/* filter arrows ride the stage edges */
.selfie__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  background:rgba(255,253,248,.88)}
.selfie__nav--l{left:8px}
.selfie__nav--r{right:8px}

/* tab icons get cartoony when picked: bubble, bounce, their own color */
@keyframes tabPop{0%{transform:scale(.75) rotate(0)}55%{transform:scale(1.3) rotate(-7deg)}80%{transform:scale(.96) rotate(3deg)}100%{transform:scale(1.12) rotate(0)}}
.tab{position:relative}
.tab.is-active::before{
  content:"";position:absolute;top:6px;left:50%;transform:translateX(-50%);
  width:46px;height:30px;border-radius:16px;background:rgba(127,212,239,.35);
}
.tab.is-active svg{animation:tabPop .38s ease;transform:scale(1.12);position:relative}
.tab.is-active span{font-weight:800;letter-spacing:.05em}
.tab:nth-child(1).is-active{color:#1fa86b}
.tab:nth-child(2).is-active{color:#dfa515}
.tab:nth-child(3).is-active{color:#3f97cf}
.tab:nth-child(4).is-active{color:#f4823c}
.tab:nth-child(1).is-active::before{background:rgba(95,224,160,.3)}
.tab:nth-child(2).is-active::before{background:rgba(255,217,61,.35)}
.tab:nth-child(3).is-active::before{background:rgba(111,227,255,.32)}
.tab:nth-child(4).is-active::before{background:rgba(255,158,77,.3)}
@media (prefers-reduced-motion: reduce){.tab.is-active svg{animation:none}}

/* the game-over card never clips: top-anchored, scrolls if it must */
.card--over{justify-content:flex-start;overflow-y:auto;
  padding-top:calc(42px + env(safe-area-inset-top));
  padding-bottom:calc(20px + var(--tabh) + env(safe-area-inset-bottom))}
@media (max-height:800px){
  .card--over{gap:9px;padding-top:calc(26px + env(safe-area-inset-top))}
  .card--over .scorebox b{font-size:30px}
  .card--over .submit__fine{font-size:10.5px}
}

/* the gift blurb dresses like the game */
.giftcard{background:#fffdf8;border-radius:20px;padding:16px 18px 14px;text-align:left;
  box-shadow:0 3px 0 rgba(0,0,0,.07);margin:4px 0 2px}
.giftcard__wave{width:92px;height:13px;display:block;margin:0 0 10px}
.giftcard__big{margin:0 0 8px;font-size:14.5px;line-height:1.5;color:#22323e;font-weight:700}
.giftcard__lug{font-style:normal;color:var(--pink);text-shadow:0 0 10px rgba(255,116,205,.4)}
.giftcard__small{margin:0;font-size:11.5px;line-height:1.55;color:#8ea3b1}
.giftcard__small b{color:#22876f}
.achip{position:relative}
.achip__lock{position:absolute;top:7px;right:8px;width:12px;height:12px;fill:#b9c6cf}

/* the letter sits right under KEEP PLAYING now */
.note{position:static;display:flex;justify-content:center;margin:12px 0 2px}

/* tab icons: proper contrast, glyph always above its bubble */
.tab{color:#7d92a0}
.tab.is-active::before{z-index:0}
.tab.is-active svg,.tab span{position:relative;z-index:1}
.tab.is-active svg{filter:drop-shadow(0 1px 0 rgba(255,255,255,.6))}

/* win buttons ride the bottom edge so NEXT LEVEL is a thumb tap away */
.card--won:not([hidden]){display:flex;flex-direction:column}
.card--won .wonrow{margin-top:auto}

/* run it back cluster sits under the board form, pinned low */
#ovDead:not([hidden]){display:flex;flex-direction:column}
#ovDead .ovbtns{margin-top:auto;padding-top:14px}

/* honeypot: off canvas, invisible, never focusable by a person */
.hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

/* points line under the level cleared title */
.won__pts{font-size:13px;letter-spacing:.16em;color:#ffd93d;margin:-4px 0 6px}
.won__pts b{font-size:18px}

/* the mane himself explains the tutorial, clippy style */
.tut__talk{display:flex;align-items:flex-end;gap:10px;text-align:left;margin-top:4px}
.tut__talk canvas{width:60px;height:60px;flex:none;animation:clipbob 2.1s ease-in-out infinite}
@keyframes clipbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.tut__d{position:relative;background:#f2fafd;color:#41586b;text-shadow:none;border-radius:14px;padding:10px 13px;
  box-shadow:0 2px 0 rgba(0,0,0,.07);margin:0}
.tut__d::before{content:'';position:absolute;left:-7px;bottom:16px;
  border:7px solid transparent;border-right-color:#f2fafd;border-left-width:0}

/* title rides the live scene: no blur, wordmark up top, controls at the bottom */
.card--title{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.card--title .card__sub{margin-top:auto}

/* the canvas hero owns the middle of the title screen */
.card--title .boot__cuts{display:none}
.card--title .boot__banner{margin-top:2px}
.card--title .card__hint{color:rgba(255,255,255,.95);text-shadow:0 2px 6px rgba(10,30,40,.5)}

/* the mane celebrates in the middle of the win card */
#wonFace{width:160px;height:100px;margin:2px auto}
