/* Fives page styles, in their original cascade order. Each section keeps its old <style> id as a heading. */

/* ── base ── */
    :root{
      --bg:#f3efe5;
      --paper:#fffaf0;
      --paper-2:#fbf5ea;
      --ink:#101010;
      --muted:#6b665d;
      --line:#1a1a1a;
      --soft-line:#d8cfbf;
      --x:#6547ff;
      --o:#ff5d4c;
      --lime:#d6ef40;
      --shadow:0 16px 38px rgba(20,16,10,.10);
      --radius:28px;
    }
    *{box-sizing:border-box}
    html,body{min-height:100%}
    body{
      margin:0;
      font-family: ui-rounded, "SF Pro Rounded", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color:var(--ink);
      background:var(--bg);
      -webkit-font-smoothing:antialiased;
      position:relative;
      overflow-x:hidden;
    }
    body::before, body::after{content:"";position:fixed;pointer-events:none;z-index:-1}
    body::before{width:340px;height:340px;border:46px solid rgba(255,93,76,.95);border-radius:50%;left:-170px;bottom:-150px}
    body::after{width:360px;height:360px;right:-160px;top:-90px;background:var(--x);border-radius:36px;transform:rotate(45deg)}
    button,input{font:inherit}
    button{-webkit-tap-highlight-color:transparent}
    button:focus-visible,input:focus-visible{outline:3px solid rgba(101,71,255,.22);outline-offset:2px}
    .shell{width:min(100% - 24px, 980px);margin:0 auto;padding:24px 0 38px}

    .brandbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
    .wordmark{display:flex;flex-direction:column;gap:6px}
    .logo{font-size:clamp(46px,8vw,80px);font-weight:1000;letter-spacing:-.08em;line-height:.84;margin:0;text-transform:uppercase}
    .tag{font-size:clamp(15px,2.7vw,24px);font-weight:800;line-height:1.08;max-width:240px}
    .tag .brush{display:block;width:92px;height:7px;background:var(--ink);border-radius:999px;transform:rotate(-8deg);margin-top:10px}
    .brand-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .floating-badge{align-self:center;border:2px solid var(--ink);border-radius:999px;padding:10px 14px;background:rgba(255,250,240,.95);font-size:12px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
    .sound-toggle,.reminder-toggle{width:42px;height:42px;border:2px solid var(--ink);border-radius:14px;background:var(--paper);display:grid;place-items:center;cursor:pointer;font-size:18px;font-weight:1000;position:relative}
    .reminder-toggle.on{background:var(--lime)}.reminder-toggle.attention::after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:var(--o);border:2px solid var(--ink);right:-3px;top:-3px}

    .hero-panel,.card,.board-card,.waiting,dialog{background:var(--paper);border:2px solid var(--ink);box-shadow:var(--shadow)}
    .home{display:grid;grid-template-columns:1.08fr .92fr;gap:16px;align-items:start}
    .hero-panel{border-radius:34px;padding:24px 22px 20px;overflow:hidden;position:relative}
    .hero-panel::after{content:"";position:absolute;right:-36px;top:-28px;width:140px;height:140px;border:20px solid rgba(101,71,255,.12);border-radius:26px;transform:rotate(45deg)}
    .eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--lime);border:2px solid var(--ink);font-size:12px;font-weight:1000;letter-spacing:.04em;text-transform:uppercase}
    .eyebrow i{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#111;color:#fff;font-style:normal;font-size:11px}
    .hero-title{font-size:clamp(58px,8vw,88px);font-weight:1000;letter-spacing:-.08em;line-height:.86;margin:16px 0 10px;text-transform:uppercase}
    .lede{font-size:18px;line-height:1.35;color:#2e2a25;margin:0 0 20px;max-width:520px;font-weight:720}
    .primary-stack{display:grid;gap:12px;margin-bottom:16px}
    .main-cta,.sub-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:72px;border-radius:20px;padding:15px 18px;border:2px solid var(--ink);cursor:pointer;font-weight:1000;letter-spacing:-.03em;box-shadow:0 8px 0 rgba(16,16,16,.08)}
    .main-cta{background:var(--x);color:#fff}
    .sub-cta{background:var(--o);color:#fff}
    .daily-cta{background:var(--lime);color:#111}
    .daily-cta .cta-icon{background:#fff;color:#111;border-color:#111}
    .bot-cta{background:#141414;color:#fff}
    .bot-cta .cta-icon{background:var(--lime);color:#111;border-color:#111}
    .bot-levels{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-3px 2px 3px;padding:0 4px}
    .bot-level-label{font-size:10px;font-weight:1000;letter-spacing:.10em;text-transform:uppercase;color:var(--muted);margin-right:2px}
    .bot-level{border:2px solid var(--ink);border-radius:999px;background:var(--paper);padding:7px 10px;font-size:10px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
    .bot-level.active{background:var(--lime);box-shadow:0 3px 0 rgba(16,16,16,.10)}
    .bot-gauntlet{border:2px solid var(--ink);border-radius:22px;background:#fff;padding:14px;box-shadow:0 7px 0 rgba(16,16,16,.07);display:grid;gap:10px}
    .bot-gauntlet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
    .bot-gauntlet-head strong{display:block;font-size:15px;font-weight:1000;letter-spacing:.06em;text-transform:uppercase}
    .bot-gauntlet-head small{display:block;color:var(--muted);font-weight:800;line-height:1.25;margin-top:3px}
    .boss-chip{border:2px solid var(--ink);border-radius:999px;padding:5px 8px;background:var(--lime);font-size:9px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
    .bot-ladder{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
    .bot-rung{border:2px solid var(--ink);border-radius:16px;background:var(--paper-2);padding:10px;min-height:92px;text-align:left;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;gap:7px}
    .bot-rung.active{background:#fff;box-shadow:inset 0 6px 0 var(--lime)}
    .bot-rung[data-level="casual"].cleared{box-shadow:inset 0 6px 0 #c7e9ff}
    .bot-rung[data-level="sharp"].cleared{box-shadow:inset 0 6px 0 var(--o)}
    .bot-rung[data-level="brutal"].cleared{box-shadow:inset 0 6px 0 var(--x);background:#f8f6ff}
    .bot-rung .rung-top{display:flex;justify-content:space-between;gap:5px;align-items:center}
    .bot-rung b{font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.04em}
    .bot-rung em{font-style:normal;font-size:10px;font-weight:1000}
    .bot-rung small{font-size:10px;color:var(--muted);font-weight:800;line-height:1.25}
    .brutal-panel{border:2px solid var(--ink);border-radius:18px;background:#141414;color:#fff;padding:13px;display:grid;gap:10px}
    .brutal-panel-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
    .brutal-panel strong{display:block;font-size:18px;font-weight:1000;text-transform:uppercase;letter-spacing:-.02em}
    .brutal-panel small{display:block;color:#ddd6c9;font-weight:800;line-height:1.3;margin-top:3px}
    .brutal-statline{font-size:11px;font-weight:950;line-height:1.35;color:#fff}
    .brutal-statline .lime{color:var(--lime)}
    .brutal-cta{border:2px solid #fff;border-radius:14px;background:var(--lime);color:#111;padding:11px 13px;font-size:12px;font-weight:1000;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;white-space:nowrap}
    .brutal-cta:disabled{opacity:.55;cursor:not-allowed}
    .cta-left{display:flex;align-items:center;gap:14px}
    .cta-icon{width:40px;height:40px;border-radius:12px;border:2px solid rgba(255,255,255,.65);display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:20px;font-weight:1000}
    .cta-text{font-size:clamp(24px,4vw,34px);text-transform:uppercase;line-height:1}
    .cta-arrow{font-size:34px;line-height:1}

    .how-card{border:2px solid var(--ink);border-radius:22px;background:var(--paper-2);padding:14px;overflow:hidden;position:relative}
    .how-card::after{content:"";position:absolute;width:120px;height:120px;border:18px solid rgba(101,71,255,.07);border-radius:28px;right:-54px;bottom:-62px;transform:rotate(24deg);pointer-events:none}
    .how-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;position:relative;z-index:1}
    .how-title{font-size:13px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}
    .how-note{font-size:11px;color:var(--muted);font-weight:900;background:#fff;border:1.5px solid var(--ink);border-radius:999px;padding:6px 9px}
    .rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;position:relative;z-index:1}
    .rule-tile{border:2px solid var(--ink);border-radius:16px;background:#fff;padding:11px;min-height:116px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}
    .rule-tile.violet{box-shadow:inset 0 7px 0 var(--x)}
    .rule-tile.coral{box-shadow:inset 0 7px 0 var(--o)}
    .rule-tile.lime{box-shadow:inset 0 7px 0 var(--lime)}
    .rule-kicker{font-size:10px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase;margin-top:5px}
    .rule-big{font-size:20px;font-weight:1000;letter-spacing:-.045em;line-height:.95;text-transform:uppercase;margin-top:5px}
    .rule-small{font-size:10px;line-height:1.2;color:#5f594f;font-weight:820;margin-top:4px}
    .rule-marks{display:flex;gap:5px;align-items:center;margin-top:10px;min-height:25px}
    .rule-mark{width:20px;height:20px;border-radius:999px;border:2px solid var(--ink);display:grid;place-items:center;background:#fff;font-size:10px;font-weight:1000;line-height:1}
    .rule-mark.x{color:#fff;background:var(--x);border-color:var(--ink)}
    .rule-mark.o{color:#fff;background:var(--o);border-color:var(--ink)}
    .rule-mark.out{background:#eee7da;color:#81796e;border-style:dashed;text-decoration:line-through}
    .rule-arrow{font-size:16px;font-weight:1000}
    .rule-line{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:10px}
    .rule-line span{aspect-ratio:1;border-radius:5px;background:var(--x);border:2px solid var(--ink)}
    .how-copy{margin-top:10px;text-align:left;font-size:12px;font-weight:860;letter-spacing:.005em;line-height:1.35;position:relative;z-index:1}
    .mini-flow{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;align-items:start}
    .mini-step{display:grid;gap:6px;justify-items:center}
    .mini-board{width:100%;aspect-ratio:1;border:2px solid var(--ink);border-radius:10px;background:var(--paper);padding:2px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:2px}
    .mini-cell{border-radius:4px;background:#ece4d5;position:relative}
    .mini-x::before,.mini-x::after{content:"";position:absolute;left:16%;top:44%;width:68%;height:2.5px;background:var(--x);border-radius:999px;transform:rotate(45deg)}
    .mini-x::after{transform:rotate(-45deg)}
    .mini-o::before{content:"";position:absolute;inset:16%;border:2px solid var(--o);border-radius:50%}
    .mini-exp::after{content:"";position:absolute;inset:6%;border:1.6px dashed rgba(16,16,16,.55);border-radius:6px}
    .mini-num{width:24px;height:24px;border-radius:999px;border:2px solid var(--ink);display:grid;place-items:center;background:#fff;font-size:11px;font-weight:1000}
    .how-copy{margin-top:8px;text-align:center;font-size:12px;font-weight:850;letter-spacing:.01em}

    .idea-panel{border-radius:34px;padding:18px;background:#141414;color:#fff;position:relative;overflow:hidden;min-height:100%}
    .idea-panel::before{content:"";position:absolute;inset:auto -70px -70px auto;width:180px;height:180px;border:20px solid rgba(255,255,255,.08);border-radius:50%}
    .idea-top{display:flex;gap:12px;align-items:center;margin-bottom:18px}
    .stack-icons{display:grid;gap:14px;justify-items:start;align-content:start}
    .stack-icons span{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;border:2px solid rgba(255,255,255,.16);font-size:34px;font-weight:1000;background:rgba(255,255,255,.04)}
    .stack-icons span.x{color:var(--x)}
    .stack-icons span.o{color:var(--o)}
    .stack-icons span.g{font-size:28px}
    .panel-copy h2{margin:0 0 6px;font-size:32px;line-height:.95;letter-spacing:-.05em;text-transform:uppercase}
    .panel-copy p{margin:0;color:#ddd5ca;font-weight:720;line-height:1.35}
    .idea-grid{display:grid;gap:12px;margin-top:16px}
    .idea-card{background:rgba(255,255,255,.06);border:2px solid rgba(255,255,255,.14);border-radius:22px;padding:16px}
    .idea-card .kicker{font-size:11px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;color:#bcb6ae;margin-bottom:8px}
    .idea-card strong{display:block;font-size:23px;letter-spacing:-.03em;margin-bottom:5px;text-transform:uppercase}
    .idea-card p{margin:0;color:#ddd5ca;font-size:14px;line-height:1.34;font-weight:730}
    .mode-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
    .mode-pill{border:2px solid rgba(255,255,255,.16);border-radius:16px;padding:11px 12px;background:#1f1f1f;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
    .mode-pill b{color:#fff}.soon{display:inline-block;font-size:10px;font-weight:1000;background:var(--x);color:#fff;border-radius:999px;padding:4px 7px;margin-left:7px;vertical-align:1px}
    .mode-pill.party .soon{background:var(--o)}
    .poster-note{margin-top:18px;color:#f2ecdf;text-align:right;font-size:18px;font-weight:900;letter-spacing:.02em;line-height:1.08;text-transform:uppercase}
    .poster-note small{display:block;font-size:11px;letter-spacing:.08em;color:#cfc7bb;margin-top:4px}

    .home.hide{display:none}
    .game-wrap{display:none}
    .game-wrap.show{display:block}
    .game-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
    .match-head{display:grid;grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr);gap:10px;align-items:stretch}
    .player{border:2px solid var(--ink);border-radius:24px;background:var(--paper);padding:14px 16px;display:flex;flex-direction:column;justify-content:center;min-width:0}
    .player.right{text-align:right}
    .player.active{background:#fff6df}
    .name{font-size:26px;font-weight:1000;letter-spacing:-.05em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .sub{font-size:12px;color:var(--muted);font-weight:850;text-transform:uppercase;letter-spacing:.06em;margin-top:3px}
    .live-pips{display:flex;gap:7px;margin-top:11px}
    .player.right .live-pips{justify-content:flex-end}
    .pip{width:14px;height:14px;border:2px solid var(--ink);border-radius:50%;background:transparent}
    .pip.x.fill{background:var(--x);border-color:var(--x)}
    .pip.o.fill{background:var(--o);border-color:var(--o)}
    .rivalry{background:#141414;color:#fff;border:2px solid var(--ink);border-radius:24px;padding:12px 10px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-width:0;overflow-wrap:anywhere}
    .rivalry .label{font-size:10px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;color:#bfb8ae}
    .scoreline{font-size:68px;line-height:.86;font-weight:1000;letter-spacing:-.08em;margin:4px 0}
    .scoreline .x-score{color:var(--x)}
    .scoreline .o-score{color:var(--o)}
    .scoreline i{font-style:normal;color:#fff;padding:0 8px}
    .round-label{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#d7d2c9}
    .rivalry-streak{font-size:11px;font-weight:950;letter-spacing:.045em;text-transform:uppercase;color:var(--lime);margin-top:3px;line-height:1.18}

    .status{min-height:88px;min-width:0;overflow-wrap:anywhere;border:2px solid var(--ink);background:#fff6df;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:10px 16px;gap:4px}
    .status strong{font-size:25px;letter-spacing:-.05em;text-transform:uppercase}
    .status small{font-size:14px;color:#4f4a43;font-weight:760;line-height:1.28}

    .board-card{border-radius:34px;padding:16px;background:var(--paper);min-width:0}
    .board{width:100%}
    .board-stage{position:relative}
    .board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:0;aspect-ratio:1;border:4px solid var(--ink);border-radius:24px;overflow:hidden;background:var(--paper-2)}
    .cell{position:relative;min-width:0;min-height:0;border:0;border-right:4px solid var(--ink);border-bottom:4px solid var(--ink);background:var(--paper-2);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
    .cell:nth-child(6n){border-right:0}
    .cell:nth-child(n+31){border-bottom:0}
    .cell:disabled{cursor:default}
    .cell.last{background:#fff3ea}
    .cell.win{background:#eff8d1}
    .cell.expiring::after{content:"";position:absolute;inset:9px;border:3px solid var(--ink);border-radius:50%;box-shadow:0 0 0 8px rgba(16,16,16,.07),0 0 0 15px rgba(16,16,16,.035);pointer-events:none}
    .cell.expiring::before{content:"NEXT OUT";position:absolute;top:5px;left:50%;transform:translateX(-50%);z-index:4;background:var(--ink);color:#fff;border-radius:999px;padding:3px 6px;font-size:7px;font-weight:1000;letter-spacing:.06em;white-space:nowrap;pointer-events:none}
    .cell.expiring-x::after{border-color:var(--x);box-shadow:0 0 0 8px rgba(101,71,255,.14),0 0 0 15px rgba(101,71,255,.07)}
    .cell.expiring-o::after{border-color:var(--o);box-shadow:0 0 0 8px rgba(255,93,76,.14),0 0 0 15px rgba(255,93,76,.07)}
    .cell.expiring.expiry-quiet::before{display:none}
    .piece{width:68%;aspect-ratio:1 / 1;height:auto;position:relative;z-index:1;flex:0 0 auto;box-sizing:border-box}
    .piece.x::before,.piece.x::after{content:"";position:absolute;left:0;top:44%;width:100%;height:11px;background:var(--x);border-radius:999px;transform:rotate(45deg)}
    .piece.x::after{transform:rotate(-45deg)}
    .piece.o{border:9px solid var(--o);border-radius:50%;box-sizing:border-box}
    .win-strike{position:absolute;height:12px;border-radius:999px;background:rgba(16,16,16,.66);box-shadow:0 0 0 5px var(--lime);transform-origin:left center;pointer-events:none;z-index:8;opacity:0}
    .win-strike.show{opacity:1;animation:strikeIn .34s cubic-bezier(.18,.82,.24,1) both}
    .piece.win-pop{animation:winPop .46s cubic-bezier(.2,.9,.25,1.3) calc(var(--k,0) * 70ms) both}
    .board-stage.win-hit{animation:boardWin .42s ease-out both}
    .rivalry.score-hit{animation:scoreHit .34s cubic-bezier(.2,.9,.22,1.2) both}
    .board-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:0 2px;font-size:13px;font-weight:850;color:#46413b;text-transform:uppercase;letter-spacing:.03em}
    .expiry-key{display:flex;align-items:center;gap:8px}.dash-sample{width:22px;height:22px;border:2px dashed var(--ink);border-radius:7px;display:inline-block}

    .fair-card{margin-top:12px;border:2px solid var(--ink);background:#fffaf0;border-radius:24px;padding:18px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}
    .fair-copy strong{display:block;font-size:19px;font-weight:1000;letter-spacing:-.04em;text-transform:uppercase}
    .fair-copy small{display:block;font-size:14px;line-height:1.35;color:#4f4a43;font-weight:760;margin-top:5px;max-width:440px}
    .fair-copy .accent{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
    .fair-copy .coin{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;border:2px solid var(--ink);background:#fff}
    .fair-actions{display:grid;gap:10px;min-width:220px}
    .btn{border:2px solid var(--ink);border-radius:18px;padding:14px 18px;min-height:54px;font-weight:1000;cursor:pointer;letter-spacing:-.02em;background:#fff;color:var(--ink)}
    .btn.primary{background:var(--x);color:#fff;border-color:var(--ink)}
    .btn.secondary{background:var(--o);color:#fff}
    .btn.soft{background:var(--paper-2)}
    .btn.ghost{background:transparent}
    .btn.black{background:#141414;color:#fff}
    .btn:disabled{opacity:.45;cursor:not-allowed}
    .is-working{cursor:wait!important;filter:saturate(.82)}
    .is-ack{background:var(--lime)!important;color:var(--ink)!important}
    .utility-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}

    .end-panel{margin-top:12px;border:2px solid var(--ink);background:var(--paper);border-radius:24px;padding:16px}
    .end-primary{display:grid;grid-template-columns:1.1fr .9fr;gap:10px}
    .end-links{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:14px}
    .link-btn{border:0;background:transparent;font-weight:950;cursor:pointer;font-size:14px;text-transform:uppercase;letter-spacing:.04em}

    .reactions-wrap{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;flex-wrap:wrap}
    .reactions-wrap[hidden]{display:none!important}
    .reactions-label{font-size:11px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;color:#5d574f}
    .reactions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
    .reaction{width:44px;height:44px;border-radius:14px;border:2px solid var(--ink);background:#fff;cursor:pointer;font-size:20px}

    .share-card-dialog{width:min(94vw,760px);max-width:760px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:visible}
    .share-card-dialog::backdrop{background:rgba(16,16,16,.48);backdrop-filter:blur(3px)}
    .share-dialog-shell{background:var(--paper);border:2px solid var(--ink);border-radius:26px;padding:14px;box-shadow:0 22px 60px rgba(0,0,0,.22)}
    .share-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 2px 10px}
    .share-dialog-title{font-size:13px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}
    .share-close{width:34px;height:34px;border:2px solid var(--ink);border-radius:11px;background:#fff;font-size:20px;line-height:1;cursor:pointer;font-weight:900}
    .share-canvas-wrap{border:2px solid var(--ink);border-radius:20px;overflow:hidden;background:var(--bg);line-height:0}
    .share-canvas{display:block;width:100%;height:auto;aspect-ratio:1200/630;background:var(--bg)}
    .share-dialog-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:9px;margin-top:10px}
    .share-dialog-note{font-size:10px;color:var(--muted);font-weight:800;text-align:center;margin-top:8px}
    .toast{position:fixed;left:50%;top:84px;transform:translateX(-50%);background:#111;color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:900;opacity:0;pointer-events:none;z-index:50;white-space:nowrap}.toast.show{opacity:1}
    .reaction-bubble{position:fixed;left:50%;top:46%;transform:translate(-50%,-50%);font-size:80px;z-index:40;opacity:0;pointer-events:none;text-shadow:0 10px 35px rgba(0,0,0,.18)}.reaction-bubble.go{opacity:1}
    .reaction-bubble.text{max-width:min(86vw,420px);padding:13px 20px;border:3px solid var(--ink);border-radius:999px;background:var(--lime);color:var(--ink);font-size:20px;font-weight:1000;line-height:1.1;text-align:center;text-shadow:none;box-shadow:6px 7px 0 var(--ink)}
    .setup{display:none;margin-bottom:14px;padding:12px 14px;border-radius:16px;background:#fff0ca;border:2px solid var(--ink);color:#6a5118;font-size:13px;line-height:1.4;font-weight:700}.setup.show{display:block}

    .waiting{text-align:center;padding:34px 20px;border-radius:30px}
    .waiting .orb{width:66px;height:66px;margin:0 auto 17px;border-radius:21px;background:#111;position:relative}
    .waiting .orb::before,.waiting .orb::after{content:"";position:absolute;width:35px;height:7px;border-radius:99px;background:#fff;left:16px;top:29px;transform:rotate(45deg)}
    .waiting .orb::after{transform:rotate(-45deg)}
    .waiting h2{margin:0 0 7px;letter-spacing:-.045em;font-size:25px;text-transform:uppercase}
    .waiting p{margin:0 auto 18px;color:var(--muted);max-width:430px;line-height:1.45}
    .match-search-art{width:86px;height:86px;margin:0 auto 15px;position:relative;border:2px solid var(--ink);border-radius:26px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 7px #f7f2e8}
    .match-search-art::before{content:'5';position:absolute;inset:0;display:grid;place-items:center;font-size:26px;font-weight:1000;color:var(--ink);z-index:1}
    .match-search-x,.match-search-o{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px;z-index:2;animation:matchOrbit 2.2s linear infinite}
    .match-search-x{display:grid;place-items:center;border-radius:8px;background:var(--x);color:#fff;font-size:20px;font-weight:1000;transform-origin:12px 12px}
    .match-search-o{border:6px solid var(--o);border-radius:50%;animation-delay:-1.1s}
    .match-search-art i{position:absolute;inset:12px;border:2px dashed #cfc6b8;border-radius:50%;animation:matchSpin 4.4s linear infinite}
    @keyframes matchOrbit{from{transform:rotate(0deg) translateX(31px) rotate(0deg)}to{transform:rotate(360deg) translateX(31px) rotate(-360deg)}}
    @keyframes matchSpin{to{transform:rotate(360deg)}}
    .match-search-timer{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--ink);border-radius:999px;background:var(--paper-2);padding:7px 11px;margin:-4px auto 15px;font-size:11px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase}
    .match-search-timer::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--lime);border:1.5px solid var(--ink);animation:matchPulse 1.15s ease-in-out infinite}
    @keyframes matchPulse{50%{transform:scale(.68);opacity:.55}}
    .match-search-nudge{margin:16px auto 0;max-width:500px;border:2px solid var(--ink);border-radius:20px;background:#fff;padding:14px;text-align:left;box-shadow:inset 0 6px 0 var(--lime)}
    .match-search-nudge[hidden]{display:none!important}.match-search-nudge strong{display:block;font-size:15px;font-weight:1000;text-transform:uppercase}.match-search-nudge small{display:block;color:var(--muted);font-size:11px;font-weight:800;line-height:1.4;margin-top:4px}.match-search-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin-top:12px}.match-search-actions .btn{min-width:0;padding:10px 9px;font-size:11px}
    @media(max-width:540px){.match-search-actions{grid-template-columns:1fr 1fr}.match-search-actions .keep{grid-column:1/-1;grid-row:1}.match-search-art{width:78px;height:78px}}
    .share-row{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
    .code{display:inline-block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:950;letter-spacing:.11em;padding:9px 12px;border-radius:11px;background:#eee9df;border:2px solid var(--ink);margin-bottom:15px}

    dialog{border-radius:24px;width:min(92vw,420px);padding:0;background:var(--paper)}
    dialog::backdrop{background:rgba(20,18,15,.38)}
    .dialog-body{padding:24px}.dialog-body h2{margin:0 0 7px;letter-spacing:-.04em;text-transform:uppercase}.dialog-body p{margin:0 0 18px;color:var(--muted);line-height:1.45}.name-input{width:100%;border:2px solid var(--ink);background:#fff;border-radius:14px;padding:14px 15px;font-size:17px;outline:none;margin-bottom:10px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}

    .footer{text-align:center;margin-top:24px;color:#655f56;font-size:11px;font-weight:760;letter-spacing:.05em;text-transform:uppercase}.footer a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(16,16,16,.32)}.footer a:hover{border-bottom-color:currentColor}

    @media (max-width: 820px){
      .home{grid-template-columns:1fr}
      .idea-panel{order:2}
      .hero-panel{order:1}
      .scoreline{font-size:52px}
    }
    @media (max-width: 620px){
      .shell{width:min(100% - 16px, 980px);padding-top:14px}
      .brandbar{align-items:flex-start;gap:10px}
      .floating-badge{display:none}
      .brand-actions{gap:6px}
      .sound-toggle{width:38px;height:38px;border-radius:12px}
      .hero-panel,.idea-panel,.board-card,.waiting{border-radius:28px}
      .main-cta,.sub-cta{min-height:64px;padding:14px 14px}
      .cta-text{font-size:24px}
      .mini-flow{grid-template-columns:repeat(3,1fr)}
      .rule-grid{grid-template-columns:1fr}
      .rule-tile{min-height:100px}
      .share-dialog-actions{grid-template-columns:1fr}
      .match-head{grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr);gap:8px}
      .player{padding:11px 10px;border-radius:20px}
      .name{font-size:18px}
      .live-pips{gap:5px;margin-top:8px}
      .pip{width:11px;height:11px}
      .scoreline{font-size:40px}
      .status strong{font-size:21px}
      .piece.x::before,.piece.x::after{height:9px}
      .piece.o{border-width:8px}
      .fair-card{grid-template-columns:1fr}
      .fair-actions{min-width:0}
      .end-primary{grid-template-columns:1fr}
      .board-foot{font-size:11px;align-items:flex-start;flex-direction:column}
    }
    /* Motion system: short, one-shot feedback only. Nothing loops. */
    @keyframes enterUp{
      from{opacity:0;transform:translateY(10px) scale(.992)}
      to{opacity:1;transform:translateY(0) scale(1)}
    }
    @keyframes pieceLand{
      0%{opacity:.15;transform:scale(.72) rotate(-3deg)}
      68%{opacity:1;transform:scale(1.07) rotate(1deg)}
      100%{opacity:1;transform:scale(1) rotate(0)}
    }
    @keyframes pieceOut{
      0%{opacity:1;transform:scale(1) translate(0,0) rotate(0)}
      55%{opacity:.9;transform:scale(.9) translate(4px,-3px) rotate(5deg)}
      100%{opacity:0;transform:scale(.55) translate(18px,-13px) rotate(18deg)}
    }
    @keyframes strikeIn{
      0%{opacity:0;transform:rotate(var(--angle)) scaleX(0)}
      35%{opacity:1}
      100%{opacity:1;transform:rotate(var(--angle)) scaleX(1)}
    }
    @keyframes winPop{
      0%{transform:scale(1)}
      45%{transform:scale(1.24)}
      100%{transform:scale(1)}
    }
    @keyframes boardWin{
      0%{filter:brightness(1)}
      35%{filter:brightness(1.13)}
      100%{filter:brightness(1)}
    }
    @keyframes scoreHit{
      0%{transform:scale(1)}
      48%{transform:scale(1.08) rotate(-1deg)}
      100%{transform:scale(1)}
    }
    @keyframes softPop{
      0%{opacity:0;transform:translateY(5px) scale(.97)}
      100%{opacity:1;transform:translateY(0) scale(1)}
    }
    @keyframes reactionPop{
      0%{opacity:0;transform:translate(-50%,-50%) scale(.55) rotate(-6deg)}
      62%{opacity:1;transform:translate(-50%,-50%) scale(1.14) rotate(3deg)}
      100%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
    }

    .wordmark{animation:enterUp .34s cubic-bezier(.2,.8,.2,1) both}
    .hero-panel{animation:enterUp .42s .05s cubic-bezier(.2,.8,.2,1) both}
    .idea-panel{animation:enterUp .42s .11s cubic-bezier(.2,.8,.2,1) both}
    .game-shell{animation:enterUp .32s cubic-bezier(.2,.8,.2,1) both}
    .fair-card,.end-panel{animation:softPop .22s cubic-bezier(.2,.8,.2,1) both}
    .piece.enter{animation:pieceLand .20s cubic-bezier(.2,.9,.25,1.25) both}
    .piece.exit{animation:pieceOut .17s cubic-bezier(.5,0,.9,.4) both}

    .main-cta,.sub-cta,.btn,.reaction,.link-btn{
      transition:transform .11s ease,box-shadow .11s ease,filter .11s ease,background-color .11s ease,border-color .11s ease;
      transform:translateZ(0);
    }
    .cell{
      transition:background-color .11s ease,border-color .11s ease;
      transform:none;
    }
    .main-cta:active,.sub-cta:active{
      transform:translateY(4px) scale(.988);
      box-shadow:0 2px 0 rgba(16,16,16,.08);
      filter:saturate(1.08) brightness(.98);
    }
    .btn:active,.reaction:active,.link-btn:active{
      transform:translateY(2px) scale(.975);
    }
    .cell:not(:disabled):active{transform:none;background:#f3eadc}
    .reaction:active{background:#f0eadf}
    .toast{transition:opacity .16s ease,transform .16s ease;transform:translate(-50%,-6px)}
    .toast.show{transform:translate(-50%,0)}
    .reaction-bubble.go{animation:reactionPop .34s cubic-bezier(.2,.9,.2,1.25) both}

    @media (hover:hover) and (pointer:fine){
      .main-cta:hover,.sub-cta:hover{transform:translateY(-2px);box-shadow:0 11px 0 rgba(16,16,16,.09);filter:saturate(1.06)}
      .btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 0 rgba(16,16,16,.08)}
      .reaction:hover{transform:translateY(-2px) rotate(-2deg);box-shadow:0 5px 0 rgba(16,16,16,.08)}
      .cell:not(:disabled):hover{background:#f7eddf}
      .link-btn:hover{transform:translateY(-1px)}
    }

    @media (prefers-reduced-motion:reduce){
      *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
    }

    .party-cta{background:var(--lime);color:var(--ink)}
    .party-cta .cta-icon{background:#fff;color:var(--ink);border-color:var(--ink)}
    .home-progress{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}
    .progress-card{border:2px solid var(--ink);border-radius:18px;background:var(--paper-2);padding:13px 14px;cursor:pointer;text-align:left}
    .progress-card strong{display:block;font-size:18px;letter-spacing:-.03em;text-transform:uppercase}
    .progress-card small{display:block;margin-top:3px;color:var(--muted);font-weight:800}
    .progress-card.daily-progress{box-shadow:inset 7px 0 0 var(--lime)}
    .progress-card.achievement-progress{box-shadow:inset 7px 0 0 var(--x)}
    .week-dots{display:flex;gap:5px;margin-top:8px;align-items:center}.week-dot{width:11px;height:11px;border:1.5px solid var(--ink);border-radius:50%;background:transparent}.week-dot.played{background:#fff}.week-dot.won{background:var(--lime)}.week-dot.today{outline:2px solid var(--x);outline-offset:2px}
    .progress-meter{height:8px;border:1.5px solid var(--ink);border-radius:999px;overflow:hidden;background:#fff;margin-top:8px}.progress-meter>i{display:block;height:100%;background:var(--x);width:0;transition:width .18s ease}
    .rung-meter{height:6px;border:1.5px solid var(--ink);border-radius:999px;overflow:hidden;background:#fff;margin-top:2px}.rung-meter i{display:block;height:100%;background:var(--lime);width:0}
    .mastery-card{border:2px solid var(--ink);border-radius:20px;background:#fff;padding:14px 15px;margin-bottom:10px;box-shadow:inset 7px 0 0 var(--lime)}
    .mastery-card.brutal{box-shadow:inset 7px 0 0 var(--x);background:#faf8ff}.mastery-kicker{font-size:10px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}.mastery-card strong{display:block;margin-top:4px;font-size:18px;letter-spacing:-.025em;text-transform:uppercase}.mastery-card small{display:block;margin-top:4px;color:var(--muted);font-weight:800;line-height:1.35}.mastery-stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.mastery-pill{border:1.5px solid var(--ink);border-radius:999px;padding:5px 8px;background:var(--paper-2);font-size:10px;font-weight:1000;text-transform:uppercase}.turning-card{box-shadow:inset 7px 0 0 var(--o)}.turning-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.turning-actions .btn{flex:1;min-width:140px}.practice-chip{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--ink);border-radius:999px;padding:5px 9px;background:var(--lime);font-size:10px;font-weight:1000;text-transform:uppercase;margin-bottom:6px}
    .coach-tip{display:none;border:2px solid var(--ink);border-radius:18px;background:var(--lime);padding:11px 14px;font-weight:900;text-transform:uppercase;letter-spacing:.025em;line-height:1.25}
    .coach-tip.show{display:block}
    .achievement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}
    .achievement-card{border:2px solid var(--ink);border-radius:18px;background:var(--paper-2);padding:14px;opacity:.48}
    .achievement-card.unlocked{opacity:1;background:#fff}
    .achievement-card .a-icon{font-size:24px;margin-bottom:6px}
    .achievement-card strong{display:block;text-transform:uppercase;font-size:14px;letter-spacing:.02em}
    .achievement-card small{display:block;color:var(--muted);font-weight:760;line-height:1.3;margin-top:4px}
    .achievement-card.unlocked::after{content:'UNLOCKED';display:inline-block;margin-top:8px;border:2px solid var(--ink);border-radius:999px;padding:3px 7px;background:var(--lime);font-size:9px;font-weight:1000;letter-spacing:.08em}
    .party-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
    .party-players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
    .party-player{border:2px solid var(--ink);border-radius:20px;background:var(--paper);padding:10px 11px;min-width:0}
    .party-player.active{background:#fff6df;box-shadow:inset 0 -6px 0 var(--lime)}
    .party-player.me{outline:3px solid rgba(101,71,255,.16);outline-offset:2px}
    .party-player .party-name{font-size:14px;font-weight:1000;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .party-id{display:flex;align-items:center;gap:7px;margin-top:5px;font-size:11px;font-weight:900;color:var(--muted);text-transform:uppercase}
    .party-symbol{display:inline-grid;place-items:center;width:23px;height:23px;border:2px solid var(--ink);border-radius:8px;background:#fff;font-size:15px;font-weight:1000;line-height:1}
    .party-symbol.s1{color:var(--x)}.party-symbol.s2{color:var(--o)}.party-symbol.s3{background:var(--lime);color:#111}.party-symbol.s4{background:#111;color:#fff}
    .party-pips{display:flex;gap:4px;margin-top:7px}.party-pips i{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink);background:transparent}.party-pips i.fill{background:currentColor}
    .party-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));gap:3px;aspect-ratio:1;background:var(--ink);padding:3px;border:3px solid var(--ink);border-radius:24px;overflow:hidden}
    .party-cell{position:relative;min-width:0;min-height:0;border:0;background:var(--paper-2);display:grid;place-items:center;padding:0;cursor:pointer}
    .party-cell:disabled{cursor:default}.party-cell.last{background:#fff3ea}.party-cell.win{background:#eff8d1}
    .party-cell.expiring::after{content:'';position:absolute;inset:7px;border:3px solid currentColor;border-radius:50%;box-shadow:0 0 0 5px rgba(16,16,16,.06);pointer-events:none}
    .party-cell.expiring::before{content:'NEXT';position:absolute;top:3px;left:50%;transform:translateX(-50%);z-index:4;background:var(--ink);color:#fff;border-radius:999px;padding:2px 4px;font-size:6px;font-weight:1000;letter-spacing:.05em;pointer-events:none}
    .party-piece{width:62%;height:62%;position:relative;z-index:1;display:grid;place-items:center;font-weight:1000}
    .party-piece.s1::before,.party-piece.s1::after{content:'';position:absolute;left:4%;top:45%;width:92%;height:9px;background:var(--x);border-radius:999px;transform:rotate(45deg)}
    .party-piece.s1::after{transform:rotate(-45deg)}
    .party-piece.s2{border:9px solid var(--o);border-radius:50%}
    .party-piece.s3{font-size:clamp(22px,7vw,52px);color:#aac10a;-webkit-text-stroke:2px var(--ink)}
    .party-piece.s4{font-size:clamp(23px,7vw,52px);color:#111}
    .party-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;padding:0 2px;font-size:12px;font-weight:900;text-transform:uppercase;color:#514b43}
    .party-room-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
    .party-slot{border:2px solid var(--ink);border-radius:15px;padding:10px;background:var(--paper-2);font-weight:900;text-align:center;min-height:58px;display:grid;place-items:center}
    .party-slot.empty{border-style:dashed;color:var(--muted)}
    .user-chip{border:2px solid var(--ink);border-radius:999px;background:var(--paper);padding:9px 12px;font-size:11px;font-weight:1000;letter-spacing:.03em;cursor:pointer;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .user-chip.empty{color:var(--muted)}
    .consent-box{border:2px solid var(--ink);border-radius:16px;background:#fff8e8;padding:11px 12px;margin:8px 0 12px;font-size:12px;line-height:1.4;font-weight:750}
    .consent-box label,.setting-row{display:flex;align-items:flex-start;gap:9px}
    .consent-box input,.setting-row input{margin-top:2px;accent-color:var(--x);width:18px;height:18px;flex:0 0 auto}
    .setting-list{display:grid;gap:10px;margin:12px 0}.setting-row{justify-content:space-between;align-items:center;border:2px solid var(--ink);border-radius:16px;background:var(--paper-2);padding:12px}.setting-copy strong{display:block;font-size:13px;text-transform:uppercase}.setting-copy small{display:block;color:var(--muted);font-weight:760;margin-top:3px;line-height:1.35}
    .safety-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.safety-links a{color:var(--ink);font-weight:950}
    .blocked-list{display:grid;gap:7px;margin-top:8px}.blocked-item{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1.5px solid var(--ink);border-radius:12px;padding:8px 10px;background:#fff;font-size:12px;font-weight:900}.blocked-item button{border:0;background:transparent;text-decoration:underline;font-weight:900;cursor:pointer}
    .report-target{border:2px solid var(--ink);border-radius:14px;padding:10px 12px;background:var(--paper-2);font-weight:1000;margin:8px 0 12px}.report-grid{display:grid;gap:9px}.report-grid select,.report-grid textarea{width:100%;border:2px solid var(--ink);border-radius:13px;background:#fff;padding:10px 11px;font:inherit}.report-grid textarea{min-height:84px;resize:vertical}
    .safety-note{font-size:11px;line-height:1.4;color:var(--muted);font-weight:760}
    .settings-dialog-body{max-height:min(86dvh,760px);overflow:auto}.settings-section-label{margin:17px 2px 7px;font-size:10px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase;color:#6c655c}.settings-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}.settings-section-head .reminder-status{margin:5px 0 0}.settings-account-label{margin-top:20px}
    .reminder-note{border:2px solid var(--ink);border-radius:16px;background:#fff8e8;padding:12px 13px;font-size:12px;line-height:1.45;font-weight:760;margin:10px 0}.reminder-note strong{display:block;text-transform:uppercase;margin-bottom:3px}.reminder-status{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--ink);border-radius:999px;padding:5px 9px;background:#fff;font-size:10px;font-weight:1000;text-transform:uppercase;margin-bottom:6px}.reminder-status.on{background:var(--lime)}
    .player.blocked .name,.party-player.blocked .party-name{filter:blur(4px);user-select:none}.player.blocked::after,.party-player.blocked::after{content:'BLOCKED';display:inline-block;margin-top:6px;border:1.5px solid var(--ink);border-radius:999px;padding:2px 6px;background:var(--lime);font-size:8px;font-weight:1000;letter-spacing:.08em}
    @media(max-width:620px){.home-progress{grid-template-columns:1fr}.party-players{grid-template-columns:repeat(2,1fr)}.achievement-grid{grid-template-columns:1fr}.bot-ladder{grid-template-columns:1fr}.bot-rung{min-height:74px}.brutal-panel-top{align-items:center}.party-piece.s2{border-width:7px}}
  
/* Home cleanup: move rules into a lightweight bottom sheet. */
.how-help-toggle{width:42px;height:42px;border:1.75px solid #1a1a1a;border-radius:14px;background:#fbf7ef;display:grid;place-items:center;cursor:pointer;font-size:20px;font-weight:1000;line-height:1;box-shadow:none}
.how-help-toggle:hover{background:#fff}.how-help-toggle:active{transform:translateY(1px)}
.how-sheet{position:fixed;inset:auto 0 0 0;margin:auto;width:min(100%,760px);max-width:none;border:0!important;border-radius:28px 28px 0 0!important;padding:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}
.how-sheet[open]{display:block;animation:howSheetIn .26s cubic-bezier(.2,.8,.2,1)}
.how-sheet.closing{animation:howSheetOut .22s ease-in forwards}
.how-sheet::backdrop{background:rgba(16,16,16,.48);backdrop-filter:blur(2px);animation:howBackdropIn .2s ease-out}
.how-sheet.closing::backdrop{animation:howBackdropOut .22s ease-in forwards}
.how-sheet-shell{background:var(--paper);border:2px solid var(--ink);border-bottom:0;border-radius:28px 28px 0 0;padding:10px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -18px 60px rgba(16,16,16,.22);max-height:min(84dvh,760px);overflow:auto}
.how-sheet-handle{width:48px;height:5px;border-radius:999px;background:#b8afa1;margin:2px auto 12px}
.how-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.how-sheet-kicker{font-size:10px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;color:var(--x);margin-bottom:3px}
.how-sheet-head h2{margin:0;font-size:clamp(24px,5vw,34px);line-height:1;letter-spacing:-.045em;text-transform:uppercase}
.how-sheet-close{border:2px solid var(--ink);border-radius:14px;background:#fff;min-height:42px;padding:8px 11px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.how-sheet-close span:first-child{font-size:20px;line-height:.7}.how-sheet-close:hover{background:var(--lime)}
.how-sheet .how-card{border:0;background:transparent;padding:0;overflow:visible}.how-sheet .how-card::after{display:none}
.how-sheet-rules .how-head{margin-bottom:10px}.how-sheet-done{width:100%;margin-top:14px}
@keyframes howSheetIn{from{transform:translateY(105%)}to{transform:translateY(0)}}
@keyframes howSheetOut{from{transform:translateY(0)}to{transform:translateY(105%)}}
@keyframes howBackdropIn{from{opacity:0}to{opacity:1}}@keyframes howBackdropOut{from{opacity:1}to{opacity:0}}
@media (max-width:700px){
  .how-help-toggle{width:38px;height:38px;border-radius:12px;font-size:18px}
  .how-sheet{width:100%}.how-sheet-shell{padding:9px 14px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
  .how-sheet .premium-how .rule-grid{grid-template-columns:1fr}.how-sheet .premium-how .rule-tile{min-height:auto;padding:14px 4px!important;display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.how-sheet .premium-how .rule-tile + .rule-tile{border-left:0;border-top:1px solid #d9d0c2}
}
@media (prefers-reduced-motion:reduce){.how-sheet[open],.how-sheet.closing,.how-sheet::backdrop,.how-sheet.closing::backdrop{animation:none!important}.how-help-toggle:active,.settings-toggle:active{transform:none}}

/* ── #flat-premium-v28 ── */
/* Fives v28 — flat premium home. Gameplay logic unchanged. */
body{background:#f5efe4}
body::before{display:none}
body::after{
  width:270px;height:270px;right:-125px;top:-115px;background:transparent;
  border:28px solid rgba(101,71,255,.085);border-radius:56px;transform:rotate(45deg)
}
.shell{width:min(100% - 24px,860px);padding-top:26px}
.brandbar{margin:0 2px 26px;align-items:flex-start}
.logo{font-size:clamp(50px,9vw,74px);line-height:.82}
.tag{font-size:clamp(16px,2.8vw,22px);max-width:210px;margin-top:5px}
.tag .brush{width:105px;height:6px;margin-top:11px}
.brand-actions{gap:10px;max-width:55%}
.floating-badge{display:none}
.settings-toggle{width:42px;height:42px;border:1.75px solid #1a1a1a;border-radius:14px;background:#fbf7ef;display:grid;place-items:center;cursor:pointer;font-size:20px;font-weight:1000;line-height:1;box-shadow:none}
.settings-toggle:hover{background:#fff}.settings-toggle:active{transform:translateY(1px)}
.home{display:block}
.hero-panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.hero-panel::after{display:none}
.premium-home-stack{display:grid;gap:18px}
.premium-play-card{
  width:100%;min-height:218px;padding:30px 34px;border:2px solid var(--ink);border-radius:30px;
  background:var(--x);color:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;
  cursor:pointer;box-shadow:none;position:relative;overflow:hidden
}
.premium-play-card::after{
  content:"";position:absolute;width:250px;height:250px;border:32px solid rgba(255,255,255,.065);
  border-radius:54px;right:-82px;top:-118px;transform:rotate(45deg)
}
.premium-play-copy{display:grid;gap:12px;position:relative;z-index:1}
.premium-rule-pill{width:max-content;border:1.5px solid rgba(255,255,255,.86);border-radius:999px;padding:7px 14px;font-size:14px;font-weight:900;letter-spacing:.05em}
.premium-play-copy strong{font-size:clamp(38px,7vw,58px);font-weight:1000;letter-spacing:-.05em;text-transform:uppercase;line-height:.92}
.premium-play-copy small{font-size:18px;font-weight:650;opacity:.94}
.premium-play-arrow{width:104px;height:104px;border-radius:50%;background:#fbf7ef;color:var(--x);display:grid;place-items:center;font-size:56px;font-weight:900;position:relative;z-index:1;flex:none}
.premium-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.premium-action{
  min-height:118px;border:1.75px solid var(--ink);border-radius:24px;background:#fbf7ef;padding:20px 18px;
  display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:14px;text-align:left;cursor:pointer;box-shadow:none;color:var(--ink)
}
.premium-action-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:18px;font-weight:1000;letter-spacing:-.18em;padding-right:3px}
.premium-action-icon.violet{background:var(--x)}
.premium-action-icon.coral{background:var(--o);font-size:34px;letter-spacing:0;padding:0}
.premium-action strong{display:block;font-size:18px;text-transform:uppercase;letter-spacing:-.025em;font-weight:1000;line-height:1}
.premium-action small{display:block;color:var(--muted);font-size:13px;line-height:1.3;margin-top:7px;font-weight:720}
.premium-action>b{font-size:30px}
.premium-party-link{
  margin-top:-5px;border:0;background:transparent;padding:4px 8px;display:flex;justify-content:space-between;align-items:center;
  color:#5e584e;cursor:pointer;font-size:12px;text-transform:uppercase;letter-spacing:.07em
}
.premium-party-link span:first-child{display:flex;align-items:baseline;gap:10px}.premium-party-link small{font-weight:700;text-transform:none;letter-spacing:0;color:#8a8277}
.visually-hidden-action{display:none!important}
.premium-progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
.progress-card{
  min-height:172px;border:1.75px solid var(--ink)!important;border-radius:24px!important;background:#fbf7ef!important;
  padding:22px!important;text-align:left;box-shadow:none!important;position:relative;overflow:hidden
}
.daily-progress{box-shadow:inset 4px 0 0 var(--lime)!important}
.achievement-progress{box-shadow:inset 4px 0 0 var(--x)!important}
.premium-card-label{display:block;font-size:11px;font-weight:1000;letter-spacing:.10em;text-transform:uppercase;margin-bottom:12px}
.premium-card-label.lime{color:#8daa00}.premium-card-label.violet-text{color:var(--x)}
.progress-card strong{font-size:clamp(20px,4vw,28px)!important;line-height:1.02!important;letter-spacing:-.035em!important;text-transform:uppercase}
.progress-card small{font-size:13px!important;color:var(--muted)!important;line-height:1.35!important;font-weight:720!important;margin-top:8px!important}
.week-dots{margin-top:14px!important}.progress-meter{margin-top:16px!important}
.premium-gauntlet{
  border:1.75px solid var(--ink);border-radius:24px;background:#fbf7ef;padding:20px 22px;box-shadow:none;gap:14px
}
.premium-gauntlet-title{display:flex;gap:14px;align-items:center}
.premium-crossed{width:50px;height:50px;border-radius:16px;background:#171717;color:#fff;display:grid;place-items:center;font-size:23px}
.bot-gauntlet-head strong{font-size:18px;letter-spacing:-.02em}
.bot-gauntlet-head small{font-size:13px;letter-spacing:0;font-weight:700;max-width:360px}
.boss-chip{border:0;background:var(--lime);padding:7px 12px;font-size:10px}
.bot-levels{margin:0 0 0 64px;padding:0;gap:9px}.bot-level-label{display:none}
.bot-level{border:1.5px solid #c7bfae;background:#fbf7ef;border-radius:999px;padding:7px 15px;box-shadow:none}
.bot-level.active{background:var(--lime);border-color:var(--lime);box-shadow:none}
.premium-rungs{grid-template-columns:repeat(3,1fr);gap:10px;margin-left:64px}
.bot-rung{min-height:74px;border:1.5px solid #d5cdbf;border-radius:15px;background:transparent;padding:10px 12px;box-shadow:none!important}
.bot-rung.active{background:#fff;box-shadow:inset 0 -3px 0 var(--x)!important}.bot-rung small{font-size:10px}.bot-rung b{font-size:11px}.rung-meter{height:3px!important}
.premium-brutal{
  border:0;border-radius:24px;background:#151515;color:#fff;padding:22px;display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:18px;box-shadow:none
}
.premium-brutal-icon{font-size:34px;opacity:.62;text-align:center}.premium-brutal-copy{min-width:0}
.premium-brutal strong{font-size:20px}.premium-brutal small{font-size:13px}.premium-brutal .brutal-statline{margin-top:7px;color:#bdb6ab;font-size:11px}
.premium-brutal .brutal-cta{border:0;border-radius:999px;padding:14px 20px;background:var(--lime);color:#111;box-shadow:none;font-size:11px}
.premium-how{border:1.75px solid var(--ink);border-radius:24px;background:#fbf7ef;padding:22px;box-shadow:none}
.premium-how::after{display:none}.premium-how .how-head{margin-bottom:18px}.premium-how .how-title{font-size:18px;letter-spacing:-.02em}
.premium-how .how-note{border:1.2px solid #c9c0b0;background:transparent;font-size:10px;padding:6px 10px}
.premium-how .rule-grid{gap:0}.premium-how .rule-tile{border:0;border-radius:0;background:transparent;box-shadow:none!important;min-height:145px;padding:8px 22px;overflow:visible}
.premium-how .rule-tile:first-child{padding-left:4px}.premium-how .rule-tile:last-child{padding-right:4px}
.premium-how .rule-tile + .rule-tile{border-left:1px solid #d9d0c2}
.premium-step{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:1000;margin-bottom:14px}
.violet-step{background:#e5dfff;color:var(--x)}.coral-step{background:#ffe0dc;color:#e83f31}.lime-step{background:#ebf7b6;color:#607000}
.premium-how .rule-big{font-size:17px;line-height:1.02}.premium-how .rule-small{font-size:11px;line-height:1.35;margin-top:8px}.premium-how .rule-line,.premium-how .rule-marks{margin-top:14px}
.premium-how .rule-line span{border:0;border-radius:50%}.premium-how .rule-mark{width:19px;height:19px;border-width:1.5px;font-size:9px}
.idea-panel{display:none!important}

/* Fives v29 — contextual Active Games inbox. Hidden completely when nothing is resumable. */
.active-games-section{border:1.75px solid var(--ink);border-radius:22px;background:#fbf7ef;padding:16px 18px;box-shadow:none;display:grid;gap:10px}
.active-games-section[hidden]{display:none!important}
.active-games-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 2px 2px}
.active-games-title{display:flex;align-items:center;gap:9px;min-width:0}
.active-games-title>span:first-child{font-size:11px;font-weight:1000;letter-spacing:.11em;text-transform:uppercase}
.active-games-count{min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:var(--x);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:1000}
.active-games-sub{font-size:11px;color:var(--muted);font-weight:720;white-space:nowrap}
.active-games-list{display:grid;gap:8px}
.active-game-swipe-shell{position:relative;border-radius:15px;overflow:hidden;background:#f6d8d3;touch-action:pan-y}
.active-game-swipe-bg{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding:0 18px;background:#f6d8d3;color:#b82e24;font-size:10px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;opacity:.45;pointer-events:none}
.active-game-row{position:relative;z-index:1;width:100%;border:1.35px solid #d5cdbf;border-radius:15px;background:#fffaf2;color:var(--ink);padding:0;display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:stretch;box-shadow:none;overflow:hidden;transform:translateX(0);transition:transform .18s ease,opacity .18s ease}
.active-game-row.is-swiping{transition:none}.active-game-row.is-removing{transform:translateX(-112%)!important;opacity:0}
.active-game-swipe-shell.is-armed .active-game-swipe-bg{opacity:1}
.active-game-row:hover{border-color:#aaa092}.active-game-resume:focus-visible,.active-game-remove:focus-visible{outline:3px solid rgba(101,71,255,.28);outline-offset:-3px}
.active-game-resume{min-width:0;border:0;background:transparent;color:inherit;padding:12px 10px 12px 13px;display:grid;grid-template-columns:10px 1fr auto auto;gap:11px;align-items:center;text-align:left;cursor:pointer}
    .active-game-remove{border:0;border-left:1px solid #e6ddcf;background:transparent;color:#8b8378;font-size:20px;font-weight:900;line-height:1;cursor:pointer;display:grid;place-items:center}
    .active-game-remove:hover{background:#f4ede3;color:var(--o)}
    .active-game-swipe-shell.is-armed .active-game-remove{background:#f4ede3;color:var(--o)}
    .active-game-dot{width:9px;height:9px;border-radius:50%;background:#a8a095}
.active-game-row.is-turn .active-game-dot{background:var(--lime);box-shadow:0 0 0 3px rgba(214,239,64,.28)}
.active-game-row.is-rematch .active-game-dot{background:var(--o)}
.active-game-row.is-party .active-game-dot{background:var(--x)}
.active-game-copy{min-width:0;display:grid;gap:3px}.active-game-copy strong{font-size:12px;font-weight:1000;letter-spacing:.035em;text-transform:uppercase;line-height:1.05}.active-game-copy small{font-size:11px;color:var(--muted);font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.active-game-score{font-size:12px;font-weight:1000;color:#6c655c;white-space:nowrap}.active-game-arrow{font-size:22px;font-weight:900;line-height:1}
.active-games-more{justify-self:center;border:0;background:transparent;color:var(--x);font-size:10px;font-weight:1000;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;cursor:pointer}
@media(max-width:700px){
  .active-games-section{border-radius:18px;padding:13px 13px;gap:8px}
  .active-games-sub{display:none}.active-game-row{grid-template-columns:minmax(0,1fr) 38px;border-radius:13px}.active-game-resume{padding:11px 8px 11px 10px;grid-template-columns:9px 1fr auto auto;gap:8px}.active-game-remove{font-size:18px}.active-game-copy strong{font-size:11px}.active-game-copy small{font-size:10px}.active-game-score{font-size:10px}.active-game-arrow{font-size:19px}
}

/* Fives v29.9 — Active Games lives in the header instead of leading the homepage. */
.brandbar{position:relative;z-index:30}
.active-games-toggle{position:relative;width:42px;height:42px;border:1.75px solid #1a1a1a;border-radius:14px;background:#fbf7ef;display:grid;place-items:center;cursor:pointer;font-size:19px;font-weight:1000;line-height:1;box-shadow:none}
.active-games-toggle:hover{background:#fff}.active-games-toggle:active{transform:translateY(1px)}
.active-games-badge{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--paper);border-radius:999px;background:var(--x);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:1000;line-height:1}
.active-games-badge[hidden]{display:none!important}
.active-games-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:min(430px,calc(100vw - 18px));max-height:min(72dvh,620px);overflow:auto;border:2px solid var(--ink);border-radius:20px;background:var(--paper);padding:14px;box-shadow:0 18px 50px rgba(16,16,16,.2)}
.active-games-menu[hidden]{display:none!important}
.active-games-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:2px 2px 11px}
.active-games-menu-head strong{display:block;font-size:15px;font-weight:1000;letter-spacing:.04em;text-transform:uppercase}.active-games-menu-head small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:760}
.active-games-menu-close{width:32px;height:32px;border:1.5px solid var(--ink);border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer;font-size:19px;font-weight:900;line-height:1}.active-games-menu-close:hover{background:var(--lime)}
.active-games-menu .active-games-section{border:0;border-radius:0;background:transparent;padding:0;gap:8px}
.active-games-empty{border:1.35px dashed #cfc6b8;border-radius:14px;background:#fffaf2;padding:16px 12px;text-align:center;color:var(--muted);font-size:11px;font-weight:800}
.active-games-empty[hidden]{display:none!important}
.active-games-expiry-note{margin-top:10px;padding:9px 10px;border-radius:12px;background:#eee9df;color:#6d665d;font-size:9px;font-weight:800;line-height:1.35;text-align:center}
@media(max-width:700px){.active-games-menu{right:-4px;width:min(400px,calc(100vw - 18px));padding:12px}.active-games-toggle{width:38px;height:38px;border-radius:13px;font-size:17px}}


.games-menu-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 11px;padding:4px;border:1.5px solid var(--ink);border-radius:14px;background:#eee9df}
.games-menu-tab{border:0;border-radius:9px;background:transparent;padding:8px 10px;font-size:10px;font-weight:1000;letter-spacing:.07em;text-transform:uppercase;cursor:pointer;color:var(--muted)}
.games-menu-tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 0 rgba(16,16,16,.08)}
.rival-challenge-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;padding:0 5px;border:1.5px solid var(--ink);border-radius:999px;background:var(--lime);color:var(--ink);font-size:8px;vertical-align:middle}
.rivals-panel[hidden]{display:none!important}.rivals-list{display:grid;gap:8px}
.rival-card{border:1.75px solid var(--ink);border-radius:16px;background:#fff;padding:11px 12px;display:grid;gap:8px}
.rival-card.received{box-shadow:inset 5px 0 0 var(--lime)}.rival-card.sent{background:#faf7f0}
.rival-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rival-card-copy{min-width:0}
.rival-card-name{font-size:14px;font-weight:1000;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rival-card-meta{margin-top:3px;color:var(--muted);font-size:9px;font-weight:850;line-height:1.3}
.rival-record{text-align:right;white-space:nowrap;font-size:19px;font-weight:1000;letter-spacing:-.04em}.rival-record small{display:block;font-size:8px;letter-spacing:.07em;color:var(--muted);text-transform:uppercase;margin-top:2px}
.rival-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.rival-streak{min-width:0;color:#4f4941;font-size:9px;font-weight:900;line-height:1.25}
.rival-actions{display:flex;align-items:center;gap:6px;flex:none}.rival-action{border:1.5px solid var(--ink);border-radius:10px;background:var(--ink);color:#fff;padding:7px 9px;font-size:9px;font-weight:1000;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}.rival-action.accept{background:var(--lime);color:var(--ink)}.rival-action.decline{background:#fff;color:var(--muted)}.rival-action:disabled{opacity:.5;cursor:default}
@media(max-width:540px){.rival-card{padding:10px}.rival-card-name{font-size:13px}.rival-record{font-size:17px}.rival-card-bottom{align-items:flex-end}.rival-action{padding:7px 8px}}

/* Retain existing game layouts below home, but quiet their background treatment. */
.game-wrap.show{max-width:860px;margin:0 auto}
@media (max-width:700px){
  .shell{width:min(100% - 18px,860px);padding-top:18px}
  .brandbar{flex-wrap:nowrap}.wordmark{min-width:145px}.brand-actions{flex-wrap:nowrap;max-width:190px}.user-chip{max-width:102px!important;padding:0 9px!important;font-size:10px!important}
  .premium-progress-grid{grid-template-columns:1fr 1fr!important}
  .premium-rungs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .brandbar{margin-bottom:20px}.brand-actions{gap:7px}.user-chip{padding:0 12px!important}
  .premium-home-stack{gap:12px}
  .premium-play-card{min-height:166px;padding:22px 20px;border-radius:24px}
  .premium-play-copy strong{font-size:39px}.premium-play-copy small{font-size:15px}.premium-rule-pill{font-size:12px;padding:6px 11px}
  .premium-play-arrow{width:76px;height:76px;font-size:42px}
  .premium-action-grid{gap:10px}.premium-action{min-height:102px;padding:14px 12px;grid-template-columns:48px 1fr auto;gap:10px;border-radius:20px}
  .premium-action-icon{width:46px;height:46px;font-size:14px}.premium-action-icon.coral{font-size:28px}.premium-action strong{font-size:14px}.premium-action small{font-size:11px}.premium-action>b{font-size:24px}
  .premium-progress-grid{gap:10px}.progress-card{min-height:156px;padding:17px!important;border-radius:20px!important}.progress-card strong{font-size:19px!important}.progress-card small{font-size:11px!important}
  .premium-gauntlet{padding:16px;border-radius:20px}.premium-crossed{width:44px;height:44px}.bot-gauntlet-head strong{font-size:15px}.bot-gauntlet-head small{font-size:11px}.boss-chip{font-size:8px;padding:6px 8px}
  .bot-levels{margin-left:0}.premium-rungs{margin-left:0;gap:6px}.bot-rung{padding:9px;min-height:70px}.bot-rung small{display:none}
  .premium-brutal{grid-template-columns:46px 1fr;gap:12px;padding:17px;border-radius:20px}.premium-brutal .brutal-cta{grid-column:1/-1;width:100%;margin-top:2px}.premium-brutal small{font-size:11px}
  .premium-how{padding:16px;border-radius:20px}.premium-how .how-title{font-size:15px}.premium-how .how-note{font-size:8px}
  .premium-how .rule-grid{grid-template-columns:1fr}.premium-how .rule-tile{min-height:auto;padding:14px 4px!important;display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.premium-how .rule-tile + .rule-tile{border-left:0;border-top:1px solid #d9d0c2}.premium-step{margin-bottom:8px}.premium-how .rule-line,.premium-how .rule-marks{min-width:112px;justify-content:flex-end}.premium-how .rule-big{font-size:16px}.premium-how .rule-small{font-size:10px}
}
@media (max-width:470px){
  .logo{font-size:49px}.tag{font-size:15px}.tag .brush{width:78px;height:5px}.brand-actions{max-width:none}.settings-toggle{width:38px;height:38px;font-size:18px}
  .premium-play-card{min-height:146px}.premium-play-copy strong{font-size:34px}.premium-play-arrow{width:66px;height:66px;font-size:36px}
  .premium-action{grid-template-columns:42px 1fr auto}.premium-action-icon{width:40px;height:40px}.premium-action small{display:none}
  .progress-card{min-height:146px}.premium-card-label{font-size:9px}.progress-card strong{font-size:17px!important}
  .premium-rungs{grid-template-columns:1fr 1fr 1fr}.bot-rung{min-height:58px}.bot-rung b{font-size:9px}.bot-rung em{font-size:9px}
}

/* ── #identity-leaderboard-v29-13 ── */
.alias-choice{border:1.75px solid var(--ink);border-radius:18px;background:#f7f2e8;padding:14px 15px;display:flex;align-items:center;gap:10px;margin:10px 0 12px}
.alias-choice-copy{display:grid;gap:2px;min-width:0;flex:1}.alias-choice-copy small{font-size:10px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}.alias-choice-copy strong{font-size:19px;font-weight:1000;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alias-shuffle{border:1.5px solid var(--ink);border-radius:999px;background:#fff;padding:8px 11px;font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;white-space:nowrap}.alias-shuffle:hover{background:var(--lime)}
.player-name-editor{display:grid;gap:7px}.identity-explainer{font-size:11px;color:var(--muted);font-weight:750;line-height:1.35}
.leaderboard-dialog-body{width:min(92vw,620px);max-height:min(84dvh,760px);overflow:auto}.leaderboard-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.leaderboard-dialog-head h2{margin:0}.leaderboard-dialog-head p{margin:5px 0 0}.leaderboard-close{border:1.75px solid var(--ink);border-radius:12px;background:#fff;width:38px;height:38px;font-size:22px;font-weight:900;cursor:pointer;flex:none}
.daily-leaderboard-list{display:grid;gap:7px;margin:16px 0}.leader-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;border:1.5px solid #d6cdbf;border-radius:14px;background:#fff;padding:10px 12px}.leader-row.you{border:2px solid var(--x);background:#f5f1ff}.leader-rank{font-size:14px;font-weight:1000;color:var(--muted)}.leader-name{font-size:14px;font-weight:950;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-name small{display:block;font-size:9px;color:var(--x);letter-spacing:.08em;text-transform:uppercase;margin-top:2px}.leader-stats{text-align:right;font-size:12px;font-weight:1000;white-space:nowrap}.leader-stats small{display:block;font-size:9px;color:var(--muted);font-weight:850;margin-top:2px}.leaderboard-you-pin{margin:12px 0}.leaderboard-empty{border:1.5px dashed #bdb3a4;border-radius:16px;padding:22px;text-align:center;color:var(--muted);font-weight:850;line-height:1.4}.leaderboard-rule{margin-top:10px}.leaderboard-identity{width:100%;margin-top:5px}
.live-pulse{width:100%;border:2px solid var(--ink);border-radius:19px;background:#151515;color:#fff;padding:12px 14px;margin:12px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;box-shadow:0 6px 0 rgba(16,16,16,.08)}
.live-pulse:hover{transform:translateY(-1px)}.live-pulse-left{min-width:0;display:grid;gap:3px}.live-pulse-top{display:flex;align-items:center;gap:8px}.live-badge{display:inline-flex;align-items:center;gap:6px;color:var(--lime);font-size:9px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--o);box-shadow:0 0 0 4px rgba(255,93,76,.16)}
.live-pulse strong{font-size:13px;font-weight:1000;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-pulse small{font-size:10px;color:#cfc8bc;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-records{font-size:10px;font-weight:1000;letter-spacing:.06em;text-transform:uppercase;color:var(--lime);white-space:nowrap}
.records-dialog-body{width:min(94vw,690px);max-height:min(88dvh,820px);overflow:auto}.records-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.records-head h2{margin:0}.records-head p{margin:5px 0 0}.records-your-card{border:2px solid var(--ink);border-radius:18px;background:var(--lime);padding:13px 14px;margin:15px 0}.records-your-card strong{display:block;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.07em}.records-your-stats{display:flex;gap:14px;flex-wrap:wrap;margin-top:7px}.records-your-stats span{font-size:11px;font-weight:900}.records-section{margin-top:18px}.records-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.records-section-head strong{font-size:12px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}.records-section-head small{font-size:9px;color:var(--muted);font-weight:850}.record-group{border:1.5px solid #d5ccbe;border-radius:16px;background:#fff;margin-bottom:9px;overflow:hidden}.record-group-title{padding:9px 11px;border-bottom:1px solid #e3dbcf;background:#f8f3e9;font-size:10px;font-weight:1000;letter-spacing:.07em;text-transform:uppercase}.record-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 11px;border-top:1px solid #eee7dc}.record-group-title+.record-row{border-top:0}.record-row.you{background:#f5f1ff}.record-rank{font-size:11px;color:var(--muted);font-weight:1000}.record-name{font-size:12px;font-weight:950;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-value{text-align:right;font-size:11px;font-weight:1000;white-space:nowrap}.record-value small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.records-note{margin-top:13px}
@media(max-width:540px){.alias-choice{align-items:flex-start}.leader-row{grid-template-columns:34px minmax(0,1fr) auto;padding:9px 10px;gap:7px}.leader-name{font-size:12px}.leader-stats{font-size:11px}.leader-rank{font-size:12px}.live-pulse{padding:11px 12px}.live-pulse strong{font-size:12px}.live-records{font-size:9px}.record-row{grid-template-columns:30px minmax(0,1fr) auto;padding:8px 9px}}

/* ── #identity-choice-v29-16 ── */
#nameDialog{width:min(92vw,560px);max-width:560px;max-height:min(90dvh,780px);overflow:hidden}
#nameDialog .dialog-body{width:100%;max-width:100%;max-height:min(90dvh,780px);overflow-y:auto;overflow-x:hidden;padding:22px}
#nameDialog .dialog-body>*{min-width:0}
.identity-custom-card{border:2px solid var(--ink);border-radius:19px;background:#fff;padding:14px 15px;margin:12px 0 10px;box-shadow:inset 0 6px 0 var(--lime)}
.identity-option-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:11px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}
.identity-recommended{border:1.5px solid var(--ink);border-radius:999px;background:var(--lime);padding:5px 8px;font-size:8px;letter-spacing:.09em}
.identity-or{display:flex;align-items:center;gap:9px;margin:3px 0;color:var(--muted);font-size:9px;font-weight:1000;text-transform:uppercase;letter-spacing:.12em}
.identity-or::before,.identity-or::after{content:'';height:1px;background:#cfc6b8;flex:1}.identity-or span{padding:0 3px}
#nameDialog .alias-choice{margin:8px 0 7px;background:#f7f2e8}
#nameDialog .identity-anon-note{margin:0 3px 12px}
#nameDialog .dialog-actions{gap:8px;grid-template-columns:1fr 1fr 1.2fr}
#nameDialog #saveNameBtn{background:var(--x);color:#fff}
@media(max-width:520px){#nameDialog{width:min(94vw,560px);max-height:92dvh}#nameDialog .dialog-body{max-height:92dvh;padding:18px}#nameDialog .dialog-actions{grid-template-columns:1fr 1fr}#nameDialog #saveNameBtn{grid-column:1/-1;grid-row:1}}

/* ── #consolidated-achievements-v29-15 ── */
/* One visual container per concept: social play, Your Fives, live pulse, bot challenge. */
.tag .brush{background:var(--x)!important}
.premium-home-stack{gap:11px!important}
.home-section-label{font-size:10px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:5px 3px -2px}
.premium-action-grid{gap:9px!important}.premium-action{min-height:92px!important;border-radius:18px!important;padding:13px 14px!important}.premium-action-icon{width:44px!important;height:44px!important}.premium-action strong{font-size:13px!important}.premium-action small{font-size:10px!important}.premium-party-link{margin-top:0!important;min-height:48px!important;padding:10px 14px!important;border-radius:16px!important}
.your-fives-label{margin-top:5px}
.premium-progress-grid{border:1.75px solid var(--ink)!important;border-radius:20px!important;background:#fbf7ef!important;overflow:hidden!important;gap:0!important;box-shadow:none!important}
.premium-progress-grid .progress-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:142px!important;padding:16px!important}
.premium-progress-grid .progress-card + .progress-card{border-left:1px solid #d8cfbf!important}.premium-progress-grid .progress-card:hover{background:#fff!important}.progress-card strong{font-size:17px!important}.progress-card small{font-size:10px!important;line-height:1.35!important}
.achievement-mini-badges{display:flex;align-items:center;gap:5px;min-height:33px;margin-top:7px;overflow:hidden}.achievement-mini-badges .achievement-badge.mini{width:29px;height:29px;flex:0 0 29px;border-width:1.5px}.achievement-mini-badges .achievement-badge.mini i{display:none}.achievement-mini-badges .achievement-badge.mini b{font-size:11px}.achievement-mini-badges .achievement-badge.locked{opacity:.28}
.live-pulse{min-height:55px!important;padding:9px 13px!important;border-radius:16px!important}.live-pulse-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}.live-pulse-top{flex:none!important}.live-pulse-left strong{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-pulse-left small{display:none!important}.live-records{font-size:9px!important}.live-badge{padding:5px 8px!important;font-size:8px!important}
.bot-section-label{margin-top:5px}.premium-gauntlet{border:1.75px solid var(--ink)!important;border-radius:20px!important;background:#fbf7ef!important;padding:15px!important;gap:11px!important}.premium-gauntlet .bot-levels{display:none!important}.premium-rungs{margin-left:0!important;gap:7px!important}.premium-rungs .bot-rung{min-height:68px!important;background:#fff!important;border:1.5px solid #d2c9bb!important;border-radius:14px!important;padding:9px 10px!important}.premium-rungs .bot-rung.active{border-color:var(--ink)!important;box-shadow:inset 0 -4px 0 var(--x)!important}.premium-rungs .bot-rung small{font-size:9px!important}.premium-rungs .rung-meter{margin-top:6px!important}.premium-gauntlet-title{align-items:center}.premium-gauntlet .boss-chip{background:transparent!important;border:1px solid #c8bfae!important;color:var(--muted)!important}
.premium-gauntlet .premium-brutal{display:none;margin-top:2px;border-radius:16px!important;padding:14px!important;grid-template-columns:38px 1fr auto!important;gap:10px!important}.premium-gauntlet[data-selected="brutal"] .premium-brutal{display:grid}.premium-gauntlet .premium-brutal-icon{font-size:24px!important}.premium-gauntlet .premium-brutal strong{font-size:15px!important}.premium-gauntlet .premium-brutal small,.premium-gauntlet .brutal-statline{font-size:9px!important}.premium-gauntlet .brutal-cta{padding:10px 12px!important;font-size:9px!important}
/* Collectible badge system. */
.achievement-badge{--badge:#8ed4ff;width:48px;height:48px;display:grid;place-items:center;position:relative;flex:0 0 48px;border:2px solid var(--ink);border-radius:50%;background:var(--badge);box-shadow:inset 0 -6px 0 rgba(16,16,16,.08)}.achievement-badge::before{content:"";position:absolute;inset:5px;border:1.5px solid rgba(255,255,255,.78);border-radius:50%}.achievement-badge i{position:absolute;width:26px;height:13px;background:var(--ink);bottom:-9px;left:9px;clip-path:polygon(0 0,42% 0,50% 100%,58% 0,100% 0,78% 100%,50% 76%,22% 100%);z-index:-1}.achievement-badge b{font-size:18px;font-weight:1000;line-height:1;position:relative;z-index:1}.achievement-badge.badge-bots{--badge:var(--x);color:#fff}.achievement-badge.badge-daily{--badge:var(--lime)}.achievement-badge.badge-social{--badge:var(--o);color:#fff}.achievement-badge.badge-party{--badge:#151515;color:#fff}.achievement-badge.badge-strategy{--badge:#8ed4ff}.achievement-badge.locked{--badge:#e7e0d4!important;color:#8b8378!important;filter:none}.achievement-badge.locked i{background:#b9b0a3}
.achievement-library-body{width:min(94vw,680px);max-height:min(88dvh,820px);overflow:auto;padding:22px!important}.achievement-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.achievement-library-head h2{margin:2px 0 4px;font-size:30px;letter-spacing:-.04em}.achievement-library-head p{margin:0!important}.achievement-library-kicker{font-size:9px;font-weight:1000;letter-spacing:.14em;text-transform:uppercase;color:var(--x)}.achievement-library-count{display:inline-flex;margin-top:14px;border:1.5px solid var(--ink);border-radius:999px;padding:7px 11px;background:var(--lime);font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.06em}.achievement-grid{display:grid!important;grid-template-columns:1fr!important;gap:15px!important;margin-top:17px}.achievement-group{display:grid;gap:7px}.achievement-group-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:0 3px}.achievement-group-title span{font-size:9px}.achievement-group-list{border:1.5px solid #cfc5b6;border-radius:17px;overflow:hidden;background:#fff}.achievement-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px}.achievement-row + .achievement-row{border-top:1px solid #ddd4c7}.achievement-row.locked{background:#faf7f0}.achievement-row-copy{min-width:0;display:grid;gap:2px}.achievement-row-copy strong{font-size:13px;font-weight:1000}.achievement-row-copy small{font-size:10px;color:var(--muted);font-weight:800;line-height:1.3}.achievement-earned-state{font-size:8px;font-weight:1000;color:var(--x);text-transform:uppercase;letter-spacing:.06em;margin-top:3px}.achievement-row-progress{display:flex;align-items:center;gap:7px;margin-top:5px}.achievement-row-progress .progress-meter{height:4px;flex:1}.achievement-row-progress span{font-size:8px;font-weight:1000;color:var(--muted)}.achievement-share-btn{border:1.5px solid var(--ink);border-radius:999px;background:#fff;padding:7px 10px;font-size:8px;font-weight:1000;text-transform:uppercase;letter-spacing:.06em;cursor:pointer}.achievement-share-btn:hover{background:var(--lime)}.achievement-lock-mark{font-size:18px;color:#aca396}.achievement-library-note{margin-top:15px}
@media(max-width:620px){.premium-action-grid{grid-template-columns:1fr 1fr!important}.premium-action{grid-template-columns:39px 1fr auto!important;padding:11px!important;min-height:82px!important}.premium-action-icon{width:38px!important;height:38px!important}.premium-action small{display:none!important}.premium-progress-grid{grid-template-columns:1fr 1fr!important}.premium-progress-grid .progress-card{min-height:132px!important;padding:13px!important}.premium-progress-grid .progress-card strong{font-size:15px!important}.achievement-mini-badges{gap:3px}.achievement-mini-badges .achievement-badge.mini{width:25px;height:25px;flex-basis:25px}.premium-rungs .bot-rung{padding:8px!important}.premium-rungs .bot-rung small{display:none!important}.premium-gauntlet .premium-brutal{grid-template-columns:32px 1fr!important}.premium-gauntlet .premium-brutal .brutal-cta{grid-column:1/-1;width:100%}.achievement-library-body{padding:17px!important}.achievement-row{grid-template-columns:48px minmax(0,1fr) auto;padding:10px;gap:8px}.achievement-badge{width:43px;height:43px;flex-basis:43px}.achievement-badge i{left:7px}.achievement-share-btn{padding:6px 8px}.live-pulse-left strong{max-width:210px}}
@media(max-width:390px){.premium-progress-grid{grid-template-columns:1fr!important}.premium-progress-grid .progress-card + .progress-card{border-left:0!important;border-top:1px solid #d8cfbf!important}.achievement-mini-badges .achievement-badge.mini{width:27px;height:27px;flex-basis:27px}.live-pulse-left strong{max-width:150px}}

/* ── #play-your-way-home-v29-19 ── */
/* Homepage direction: one continuous social-play strip, three dashboard cards, then LIVE and Bot Challenge. */
.premium-home-stack{gap:14px!important}
.home-section-label{margin:7px 4px -3px!important;font-size:10px!important;letter-spacing:.13em!important}
.play-your-way-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;border:1.75px solid var(--ink)!important;border-radius:22px!important;overflow:hidden!important;background:#fff!important}
.play-your-way-strip .premium-action{border:0!important;border-radius:0!important;min-height:112px!important;padding:16px 15px!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:11px!important;box-shadow:none!important;transition:background .15s ease,transform .15s ease!important}
.play-your-way-strip .premium-action + .premium-action{border-left:1px solid #d8cfbf!important}
.play-your-way-strip .playway-find{background:#f5f1ff!important}.play-your-way-strip .playway-friend{background:#f5fae7!important}.play-your-way-strip .playway-party{background:#eef7ff!important}
.play-your-way-strip .premium-action:hover{background:#fff!important}.play-your-way-strip .premium-action:active{transform:translateY(1px)}
.playway-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;flex:none}.playway-icon svg{width:32px;height:32px;display:block;overflow:visible}.playway-icon.find{background:var(--x)}.playway-icon.friend{background:#79a82e}.playway-icon.party{background:#2679c9}.playway-icon.find svg{fill:#fff}.playway-icon.friend svg,.playway-icon.party svg{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.playway-icon.party svg circle{fill:#fff;stroke:none}.playway-icon.party svg path{stroke:#fff}
.playway-copy{min-width:0;display:grid;gap:4px}.play-your-way-strip .premium-action strong{font-size:14px!important;line-height:1.05!important;letter-spacing:-.02em!important}.play-your-way-strip .premium-action small{font-size:10px!important;line-height:1.3!important;color:#49443d!important;font-weight:800!important}.playway-arrow{font-size:25px!important;line-height:1!important}.playway-find strong,.playway-find .playway-arrow{color:var(--x)}.playway-friend strong,.playway-friend .playway-arrow{color:#668f20}.playway-party strong,.playway-party .playway-arrow{color:#1f70b7}
.your-fives-label{margin-top:7px!important}
.premium-progress-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;box-shadow:none!important}
.premium-progress-grid .progress-card{position:relative!important;border:1.75px solid var(--ink)!important;border-radius:18px!important;background:#fbf7ef!important;box-shadow:none!important;min-height:174px!important;padding:16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:left!important}
.premium-progress-grid .progress-card + .progress-card{border-left:1.75px solid var(--ink)!important}.premium-progress-grid .progress-card:hover{background:#fff!important}
.premium-progress-grid .daily-progress{box-shadow:inset 0 5px 0 #8ca62e!important}.premium-progress-grid .achievement-progress{box-shadow:inset 0 5px 0 var(--x)!important}.premium-progress-grid .records-progress{box-shadow:inset 0 5px 0 #2679c9!important}
.premium-card-label.blue-text{color:#2679c9!important}.home-card-link{margin-top:auto;padding-top:10px;font-size:9px;font-weight:1000;letter-spacing:.07em;text-transform:uppercase;color:#6f861f}.home-card-link.violet-link{color:var(--x)}.home-card-link.blue-link{color:#2679c9}
.home-record-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:15px 0 8px}.home-record-stats>span{min-width:0;text-align:center;padding:0 5px}.home-record-stats>span+span{border-left:1px solid #d7cec1}.home-record-stats b{display:block;font-size:22px;line-height:1;font-weight:1000;letter-spacing:-.04em}.home-record-stats small{display:block!important;font-size:8px!important;line-height:1.15!important;color:var(--muted)!important;margin-top:5px;font-weight:900!important;text-transform:uppercase;letter-spacing:.03em}
.live-pulse{margin:2px 0 3px!important;min-height:58px!important;border-radius:17px!important;box-shadow:none!important}.bot-section-label{margin-top:9px!important}.premium-gauntlet{border-width:1.75px!important;border-radius:20px!important;background:#fbf7ef!important;box-shadow:none!important}
@media(max-width:700px){
  .play-your-way-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;border-radius:18px!important}
  .play-your-way-strip .premium-action{min-height:94px!important;padding:11px 6px!important;grid-template-columns:1fr!important;grid-template-rows:38px auto!important;justify-items:center!important;align-content:center!important;text-align:center!important;gap:7px!important}
  .play-your-way-strip .premium-action + .premium-action{border-left:1px solid #d8cfbf!important}
  .playway-icon{width:38px;height:38px}.playway-icon svg{width:27px;height:27px}.playway-copy{display:block}.play-your-way-strip .premium-action strong{display:block;font-size:10px!important;line-height:1.08!important}.play-your-way-strip .premium-action small,.playway-arrow{display:none!important}
  .premium-progress-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}.premium-progress-grid .progress-card{min-height:150px!important;padding:13px!important}.premium-progress-grid .records-progress{grid-column:1/-1;min-height:128px!important}.home-record-stats{margin:12px 0 5px}.home-record-stats b{font-size:20px}.home-record-stats small{display:block!important}
}
@media(max-width:390px){
  .premium-progress-grid{grid-template-columns:1fr 1fr!important}.premium-progress-grid .progress-card + .progress-card{border-top:1.75px solid var(--ink)!important}.premium-progress-grid .records-progress{grid-column:1/-1}.premium-progress-grid .progress-card{min-height:145px!important}.premium-progress-grid .records-progress{min-height:124px!important}
  .play-your-way-strip .premium-action{padding-left:4px!important;padding-right:4px!important}.play-your-way-strip .premium-action strong{font-size:9px!important}
}

/* ── #records-clickability-v29-20 ── */
/* Make the three-way play strip read as three unmistakable actions. */
.play-your-way-strip{border-width:2px!important}
.play-your-way-strip .premium-action + .premium-action{border-left:2px solid var(--ink)!important}
.playway-arrow{width:30px!important;height:30px!important;border:1.5px solid currentColor!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.58)!important;font-size:20px!important;font-weight:1000!important}
@media (hover:hover) and (pointer:fine){
  .play-your-way-strip .premium-action:hover{box-shadow:inset 0 -5px 0 rgba(16,16,16,.10)!important;filter:saturate(1.06)!important}
}
.play-your-way-strip .premium-action:active{box-shadow:inset 0 4px 0 rgba(16,16,16,.12)!important;transform:translateY(1px)!important}

/* Records was wider inside than the generic dialog shell. Keep the shell centered and every child constrained to it. */
#recordsDialog{width:min(94vw,700px)!important;max-width:700px!important;padding:0!important;margin:auto!important;overflow:hidden!important}
#recordsDialog .records-dialog-body{width:100%!important;max-width:100%!important;max-height:min(88dvh,820px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:24px!important}
#recordsDialog .records-dialog-body,#recordsDialog .records-dialog-body *{min-width:0;box-sizing:border-box}
#recordsDialog .records-head{width:100%;max-width:100%}
#recordsDialog .records-head>div{min-width:0}
#recordsDialog .records-head p{overflow-wrap:anywhere}
#recordsDialog .records-your-card{width:100%;max-width:100%;overflow:hidden}
#recordsDialog .records-your-card strong{overflow-wrap:anywhere;line-height:1.2}
#recordsDialog .records-your-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 12px!important;width:100%;max-width:100%}
#recordsDialog .records-your-stats span{white-space:normal!important;line-height:1.25;overflow-wrap:anywhere}
#recordsDialog #recordsContent,#recordsDialog .records-section,#recordsDialog .record-group{width:100%;max-width:100%}
#recordsDialog .record-row{grid-template-columns:36px minmax(0,1fr) minmax(62px,auto)!important;width:100%;max-width:100%}
#recordsDialog .record-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#recordsDialog .record-value{max-width:180px;white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:700px){
  .play-your-way-strip .premium-action + .premium-action{border-left:2px solid var(--ink)!important}
  .playway-arrow{display:none!important}
  #recordsDialog{width:min(96vw,700px)!important}
  #recordsDialog .records-dialog-body{padding:18px!important}
  #recordsDialog .records-your-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 10px!important}
}
@media(max-width:430px){
  #recordsDialog .records-dialog-body{padding:15px!important}
  #recordsDialog .records-your-stats{grid-template-columns:1fr 1fr!important}
  #recordsDialog .record-row{grid-template-columns:28px minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important}
  #recordsDialog .record-value{max-width:96px;font-size:10px!important}
}

/* ── #clear-popup-exits-v29-21 ── */
/* Universal escape hatch: every modal has an obvious upper-right exit. */
dialog>.dialog-body,dialog>form.dialog-body{position:relative}
.universal-dialog-close{position:absolute;right:14px;top:14px;z-index:8;width:38px;height:38px;border:1.75px solid var(--ink);border-radius:12px;background:#fff;color:var(--ink);display:grid;place-items:center;padding:0;cursor:pointer;font-size:23px;font-weight:1000;line-height:1;box-shadow:none}
.universal-dialog-close:hover{background:var(--lime)}.universal-dialog-close:active{transform:translateY(1px)}
dialog:has(.universal-dialog-close)>.dialog-body>h2:first-of-type,dialog:has(.universal-dialog-close)>form.dialog-body>h2:first-of-type{padding-right:48px}
/* Existing purpose-built close controls should read with the same visual weight. */
.leaderboard-close{width:38px!important;height:38px!important;border:1.75px solid var(--ink)!important;background:#fff!important;color:var(--ink)!important}.leaderboard-close:hover{background:var(--lime)!important}
@media(max-width:520px){.universal-dialog-close{right:11px;top:11px;width:36px;height:36px}.leaderboard-close{width:36px!important;height:36px!important}}

/* ── #avatar-system-v29-22 ── */
/* Fives profile badges: deliberately flat, papery, and collectible rather than photo-like. */
.profile-chip{appearance:none;display:inline-flex!important;align-items:center;gap:8px;cursor:pointer;min-height:42px;padding:5px 10px 5px 6px!important;text-transform:none!important;letter-spacing:0!important;max-width:210px;box-shadow:none!important}
.profile-chip:hover{background:#fff!important}.profile-chip:active{transform:translateY(1px)}
.profile-chip-avatar{display:grid;place-items:center;flex:0 0 auto}.profile-chip-name{font-size:11px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.fives-avatar{--av:#6547ff;display:inline-grid;place-items:center;width:42px;height:42px;border:2px solid var(--ink);border-radius:50%;background:var(--av);position:relative;overflow:hidden;line-height:1;isolation:isolate}
.fives-avatar.sm{width:34px;height:34px;border-width:1.75px}.fives-avatar.lg{width:82px;height:82px;border-width:2.5px}
.fives-avatar .avatar-glyph{position:relative;z-index:2;font-size:22px;filter:none}.fives-avatar.sm .avatar-glyph{font-size:18px}.fives-avatar.lg .avatar-glyph{font-size:43px}
.fives-avatar[data-item="x"] .avatar-glyph,.fives-avatar[data-item="o"] .avatar-glyph,.fives-avatar[data-item="five"] .avatar-glyph,.fives-avatar[data-item="star"] .avatar-glyph{font-family:inherit;font-weight:1000;color:#111;text-shadow:none}
.fives-avatar[data-style="ring"]{background:var(--paper);box-shadow:inset 0 0 0 6px var(--av)}.fives-avatar.sm[data-style="ring"]{box-shadow:inset 0 0 0 4px var(--av)}.fives-avatar.lg[data-style="ring"]{box-shadow:inset 0 0 0 10px var(--av)}
.fives-avatar[data-style="split"]{background:linear-gradient(135deg,var(--av) 0 49%,var(--paper) 50% 100%)}
.fives-avatar[data-color="violet"]{--av:#6547ff}.fives-avatar[data-color="coral"]{--av:#ff5d4c}.fives-avatar[data-color="lime"]{--av:#d6ef40}.fives-avatar[data-color="blue"]{--av:#4b84e6}.fives-avatar[data-color="gold"]{--av:#f2bd39}.fives-avatar[data-color="pink"]{--av:#ef7f9b}.fives-avatar[data-color="slate"]{--av:#87919c}.fives-avatar[data-color="silver"]{--av:#c8c9c5}
.avatar-builder{border:2px solid var(--ink);border-radius:18px;background:#fff;padding:14px;margin-top:12px;box-shadow:inset 0 6px 0 var(--o)}
.avatar-builder-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.avatar-builder-head small{display:block;text-transform:uppercase;letter-spacing:.10em;font-size:9px;font-weight:1000;color:var(--o)}.avatar-builder-head strong{display:block;font-size:17px;font-weight:1000;letter-spacing:-.02em}.avatar-surprise{border:1.75px solid var(--ink);border-radius:999px;background:var(--lime);padding:8px 11px;font-size:10px;font-weight:1000;cursor:pointer;white-space:nowrap}
.avatar-builder-layout{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px;align-items:start}.avatar-preview-card{display:grid;justify-items:center;text-align:center;gap:6px;padding:12px 8px;border:1.5px solid #d8cfbf;border-radius:16px;background:var(--paper-2)}.avatar-preview-card strong{font-size:11px;line-height:1.15}.avatar-preview-card small{font-size:9px;color:var(--muted);font-weight:800;line-height:1.25}
.avatar-controls{min-width:0}.avatar-control-label{font-size:9px;font-weight:1000;letter-spacing:.10em;text-transform:uppercase;margin:3px 0 6px;display:flex;justify-content:space-between;gap:8px}.avatar-control-label span{color:var(--muted);letter-spacing:0;text-transform:none;font-weight:800}
.avatar-item-grid{display:grid;grid-template-columns:repeat(6,minmax(36px,1fr));grid-auto-rows:48px;gap:7px;max-height:165px;overflow-y:auto;overflow-x:hidden;padding:3px 9px 7px 3px;scroll-padding-block:3px 7px;scrollbar-width:thin}.avatar-item-btn{min-width:0;height:48px;border:1.5px solid #d3c9ba;border-radius:11px;background:var(--paper);display:grid;place-items:center;font-size:20px;cursor:pointer;padding:4px;overflow:hidden}.avatar-item-btn:hover{border-color:var(--ink);background:#fff}.avatar-item-btn.selected{border:2px solid var(--ink);box-shadow:inset 0 -4px 0 var(--x);background:#fff}
.avatar-color-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.avatar-color-btn{width:29px;height:29px;border:2px solid var(--ink);border-radius:50%;background:var(--swatch);cursor:pointer;padding:0;position:relative}.avatar-color-btn.selected::after{content:'';background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat;position:absolute;inset:0;display:grid;place-items:center;font-size:14px;font-weight:1000;color:#111}.avatar-color-btn[data-color="violet"].selected::after,.avatar-color-btn[data-color="blue"].selected::after{color:#fff}
.avatar-style-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.avatar-style-btn{border:1.5px solid #d3c9ba;border-radius:11px;background:var(--paper);padding:7px 5px;cursor:pointer;font-size:9px;font-weight:1000;text-transform:uppercase;display:grid;gap:5px;justify-items:center}.avatar-style-btn.selected{border:2px solid var(--ink);background:#fff;box-shadow:inset 0 -4px 0 var(--lime)}.avatar-style-sample{width:24px;height:24px;border:2px solid var(--ink);border-radius:50%;background:var(--x)}.avatar-style-sample.ring{background:var(--paper);box-shadow:inset 0 0 0 5px var(--x)}.avatar-style-sample.split{background:linear-gradient(135deg,var(--x) 0 49%,var(--paper) 50%)}
.profile-setting-row{grid-template-columns:auto minmax(0,1fr) auto!important}.settings-profile-avatar{display:grid;place-items:center}
.rival-card-name{display:flex!important;align-items:center;gap:8px}.rival-avatar{display:grid;place-items:center;flex:0 0 auto}
@media(max-width:700px){.profile-chip{max-width:150px}.profile-chip-name{display:none}.avatar-builder{padding:11px}.avatar-builder-layout{grid-template-columns:1fr}.avatar-preview-card{grid-template-columns:auto 1fr;justify-items:start;text-align:left;align-items:center}.avatar-preview-card .avatar-preview{grid-row:1/3}.avatar-preview-card small{grid-column:2}.avatar-item-grid{grid-template-columns:repeat(6,minmax(35px,1fr));grid-auto-rows:46px;max-height:159px}}
@media(max-width:430px){.avatar-item-grid{grid-template-columns:repeat(5,minmax(35px,1fr));grid-auto-rows:44px;max-height:153px}.avatar-item-btn{height:44px}.profile-setting-row{grid-template-columns:auto 1fr!important}.profile-setting-row .btn{grid-column:1/-1;width:100%}.fives-avatar.lg{width:70px;height:70px}.fives-avatar.lg .avatar-glyph{font-size:37px}}

/* ── #premium-paper-v29-23 ── */
/* Premium paper pass: flat, tactile, colorful, and restrained. */
:root{--shadow:0 6px 0 rgba(16,16,16,.065),0 18px 42px rgba(20,16,10,.055);--paper:#fffaf0;--paper-2:#fbf5ea;--x:#6547ff;--o:#ff5d4c;--lime:#d6ef40}
body{background-color:var(--bg);background-image:radial-gradient(rgba(16,16,16,.032) .65px,transparent .75px);background-size:7px 7px}
.shell{padding-top:22px}
.logo{letter-spacing:-.075em}.tag{font-weight:900}.tag .brush{height:6px;width:98px;transform:rotate(-6deg);background:var(--x)}
.hero-panel,.card,.board-card,.waiting,dialog{box-shadow:var(--shadow)}
.hero-panel{border-radius:28px;padding:22px 20px 20px;background:rgba(255,250,240,.97)}
.hero-panel::after{width:112px;height:112px;border-width:15px;right:-42px;top:-36px;opacity:.72}
.home-section-label{font-size:11px!important;letter-spacing:.13em!important;font-weight:1000!important;color:var(--o)!important;margin:18px 2px 9px!important;position:relative;width:max-content}
.home-section-label::after{content:'';position:absolute;left:0;right:-12px;bottom:-3px;height:3px;border-radius:99px;background:currentColor;transform:rotate(-1.5deg);opacity:.72}
.your-fives-label{color:var(--x)!important}.bot-section-label{color:var(--o)!important}
.premium-action-grid,.play-your-way-strip{background:#fffdf8!important;border-radius:20px!important;overflow:hidden!important}
.play-your-way-strip .premium-action{min-height:122px!important;padding:17px 16px!important;background:#fffdf8!important;transition:transform .12s ease,background .14s ease,box-shadow .14s ease}
.playway-find{box-shadow:inset 0 -7px 0 var(--x)!important}.playway-friend{box-shadow:inset 0 -7px 0 var(--o)!important}.playway-party{box-shadow:inset 0 -7px 0 var(--lime)!important}
.playway-find .playway-icon{background:var(--x)!important}.playway-friend .playway-icon{background:var(--o)!important}.playway-party .playway-icon{background:var(--lime)!important;color:var(--ink)!important}
.playway-copy strong{font-size:14px!important;letter-spacing:-.01em!important}.playway-copy small{font-size:11px!important;line-height:1.35!important;color:#4d473f!important}
.playway-arrow{background:#fffdf8!important;box-shadow:none!important}
.premium-progress-grid{gap:10px!important}.progress-card{border-width:2px!important;border-radius:18px!important;background:#fffdf8!important;padding:14px!important;box-shadow:0 4px 0 rgba(16,16,16,.055)!important;transition:transform .12s ease,box-shadow .12s ease}
.daily-progress{box-shadow:inset 0 6px 0 var(--o),0 4px 0 rgba(16,16,16,.055)!important}.achievement-progress{box-shadow:inset 0 6px 0 var(--x),0 4px 0 rgba(16,16,16,.055)!important}.records-progress{box-shadow:inset 0 6px 0 var(--lime),0 4px 0 rgba(16,16,16,.055)!important}
.premium-card-label{letter-spacing:.09em!important}.premium-card-label.lime{color:var(--o)!important}.blue-text,.blue-link{color:var(--ink)!important}
.live-pulse{border:2px solid var(--ink)!important;border-radius:16px!important;background:#151515!important;box-shadow:0 5px 0 rgba(101,71,255,.22)!important}.live-badge{color:var(--o)!important}.live-dot{background:var(--o)!important}.live-records{color:var(--lime)!important}
.premium-gauntlet{border-radius:20px!important;background:#fffdf8!important;box-shadow:0 5px 0 rgba(16,16,16,.06)!important}.premium-brutal{border-color:var(--o)!important;box-shadow:inset 7px 0 0 var(--o)!important}.premium-brutal .brutal-cta{background:var(--o)!important;color:#fff!important}
.bot-level.active{background:var(--lime)!important}.boss-chip{background:var(--o)!important;color:#fff!important}
/* Avatar artwork: one black-ink icon language instead of platform emoji. */
.avatar-glyph{display:grid!important;place-items:center!important;width:84%!important;height:84%!important;color:var(--ink)!important}.avatar-glyph .avatar-icon{width:100%;height:100%;display:block;object-fit:contain}.avatar-item-btn{font-size:0!important;background:#fffaf0!important}.avatar-item-btn .avatar-icon{width:36px;height:36px;display:block;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(21,21,21,.16))}.avatar-item-btn:hover .avatar-icon{transform:translateY(-1px) scale(1.05)}.avatar-item-btn.selected{background:var(--lime)!important;box-shadow:inset 0 -5px 0 var(--x)!important}.fives-avatar.sm .avatar-glyph{width:86%!important;height:86%!important}.fives-avatar.lg .avatar-glyph{width:82%!important;height:82%!important}
.fives-avatar::after{content:"";position:absolute;inset:3px;border:1.5px solid rgba(255,255,255,.72);border-radius:50%;z-index:1;pointer-events:none}.fives-avatar[data-style="ring"]::after{border-color:var(--ink);opacity:.18}.fives-avatar[data-style="split"]::after{border-color:rgba(21,21,21,.28)}
.fives-avatar{box-shadow:0 2px 0 rgba(16,16,16,.10)}.fives-avatar[data-style="ring"]{background:#fffaf0!important}.fives-avatar[data-style="split"]{background:linear-gradient(135deg,var(--av) 0 48%,#fffaf0 49% 100%)!important}
.avatar-builder{border-radius:16px!important;background:#fffdf8!important;box-shadow:inset 0 6px 0 var(--o),0 4px 0 rgba(16,16,16,.05)!important}.avatar-preview-card{background:var(--paper)!important;border-color:#d8cfbf!important}.avatar-item-btn,.avatar-style-btn{background:#fffaf0!important;transition:transform .1s ease,box-shadow .1s ease}.avatar-item-btn.selected{box-shadow:inset 0 -4px 0 var(--o)!important}.avatar-style-btn.selected{box-shadow:inset 0 -4px 0 var(--lime)!important}.avatar-surprise{background:var(--lime)!important}
/* Dialogs: centered, framed, no sideways scroll, mobile-safe. */
dialog{border-radius:22px!important;overflow:hidden!important;max-height:90dvh!important}
dialog>.dialog-body,dialog>form.dialog-body{width:100%!important;max-width:100%!important;max-height:88dvh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:22px!important}
#nameDialog{width:min(96vw,760px)!important;max-width:760px!important;padding:0!important;margin:auto!important}#safetyDialog{width:min(94vw,620px)!important;max-width:620px!important;padding:0!important;margin:auto!important}
#achievementDialog{width:min(95vw,780px)!important;max-width:780px!important}#shareCardDialog{width:min(95vw,760px)!important;max-width:760px!important}
dialog h2{letter-spacing:-.035em!important}.settings-section-label{color:var(--o)!important}.setting-row{background:#fffdf8!important;border-radius:14px!important}.universal-dialog-close,.leaderboard-close,.share-close{border-radius:11px!important;box-shadow:none!important}
/* Game screen: paper board first, score/rivalry second. */
.game-shell,.party-shell{width:min(100%,760px);margin-inline:auto}.match-head{border:2px solid var(--ink);border-radius:18px;background:#fffaf0;padding:12px 14px;box-shadow:0 4px 0 rgba(16,16,16,.06);gap:12px}.match-head .player{min-width:0}.match-head .name{font-weight:1000!important;letter-spacing:-.035em!important;overflow:hidden;text-overflow:ellipsis}.rivalry{padding:0 10px}.rivalry .label,.round-label{letter-spacing:.08em!important;text-transform:uppercase;font-size:9px!important}.scoreline{font-weight:1000!important}.status{font-weight:950!important;letter-spacing:-.02em!important}.coach-tip{border-radius:12px!important;background:#fffdf8!important}
.board-card{border-radius:22px!important;background:#fffdf8!important;padding:13px!important;box-shadow:0 6px 0 rgba(16,16,16,.065)!important}.board,.party-board{background:#fffdf8!important}.board-foot,.party-meta{font-size:10px!important;color:#625b52!important;font-weight:850!important}.game-actions .btn,.party-shell .btn{border-radius:13px!important}.reactions{gap:7px!important}.reactions button{border-radius:12px!important;background:#fffdf8!important}
/* Achievement/trophy surfaces feel stamped, not glossy. */
.achievement-mini-badges>*{filter:saturate(.96)}.achievement-grid>*{box-shadow:0 3px 0 rgba(16,16,16,.055)!important}
/* Tactile microfeedback without bouncy/mobile-janky animation. */
button,.progress-card,.premium-action,.bot-rung{transform-origin:center;transition:transform .10s ease,box-shadow .12s ease,background-color .12s ease,filter .12s ease}
button:active,.progress-card:active,.premium-action:active,.bot-rung:active{transform:translateY(1px) scale(.995)!important}
.avatar-item-btn:active,.avatar-style-btn:active,.avatar-color-btn:active{transform:scale(.94)!important}
@media(hover:hover) and (pointer:fine){.progress-card:hover,.premium-action:hover,.bot-rung:hover{transform:translateY(-1px);filter:saturate(1.03)}.avatar-item-btn:hover,.avatar-style-btn:hover{transform:translateY(-1px)}}
@media(max-width:700px){.shell{width:min(100% - 16px,980px);padding-top:14px}.brandbar{gap:8px;margin-bottom:14px}.hero-panel{padding:16px 12px 16px;border-radius:22px}.home-section-label{margin-top:15px!important}.play-your-way-strip .premium-action{min-height:90px!important;padding:13px 10px!important}.progress-card{padding:12px!important}.match-head{padding:10px;border-radius:15px}.board-card{padding:8px!important;border-radius:18px!important}dialog>.dialog-body,dialog>form.dialog-body{padding:17px!important}.avatar-builder-layout{gap:10px}.avatar-item-grid{max-height:174px!important}}
@media(max-width:430px){.profile-chip{max-width:58px!important;padding:4px!important}.playway-copy strong{font-size:12px!important}.playway-copy small{font-size:10px!important}.premium-progress-grid{gap:8px!important}.match-head{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}.rivalry{padding:0 5px}.board-foot{gap:6px!important;flex-wrap:wrap}.avatar-item-grid{grid-template-columns:repeat(5,minmax(38px,1fr))!important}}
@media(prefers-reduced-motion:reduce){button,.progress-card,.premium-action,.bot-rung,.avatar-item-btn,.avatar-style-btn{transition:none!important;transform:none!important}}

/* ── #color-discipline-v29-24 ── */
/* Color has a job now: violet=primary/player, coral=social/opponent, lime=success/active, black=system. */
.home-section-label,.your-fives-label,.bot-section-label{color:var(--ink)!important}
.home-section-label::after{background:var(--ink)!important;opacity:.24!important;height:2px!important;transform:rotate(-1deg)!important}

/* Play your way: only the two clearly color-coded actions carry brand color. Party stays neutral/systemic. */
.playway-find{box-shadow:inset 0 -6px 0 var(--x)!important}
.playway-friend{box-shadow:inset 0 -6px 0 var(--o)!important}
.playway-party{box-shadow:inset 0 -2px 0 var(--ink)!important}
.playway-find .playway-icon{background:var(--x)!important;color:#fff!important}
.playway-friend .playway-icon{background:var(--o)!important;color:#fff!important}
.playway-party .playway-icon{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--ink)!important}

/* Your Fives: Daily=progress, Achievements=brand, Records=system. */
.daily-progress{box-shadow:inset 0 5px 0 var(--lime),0 4px 0 rgba(16,16,16,.055)!important}
.achievement-progress{box-shadow:inset 0 5px 0 var(--x),0 4px 0 rgba(16,16,16,.055)!important}
.records-progress{box-shadow:inset 0 3px 0 var(--ink),0 4px 0 rgba(16,16,16,.055)!important}
.premium-card-label.lime{color:#61720e!important}
.violet-text,.violet-link{color:var(--x)!important}
.blue-text,.blue-link{color:var(--ink)!important}

/* LIVE is a system surface; lime means live/active rather than coral meaning 'another accent'. */
.live-pulse{box-shadow:0 4px 0 rgba(16,16,16,.14)!important}
.live-badge{color:var(--lime)!important}.live-dot{background:var(--lime)!important}.live-records{color:#fff!important}

/* Bot ladder is black/system. Coral is reserved for the opponent/danger cue on Brutal, not the whole component. */
.premium-brutal{border-color:var(--ink)!important;box-shadow:inset 5px 0 0 var(--o)!important}
.premium-brutal .brutal-cta{background:var(--lime)!important;color:var(--ink)!important;border-color:#fff!important}
.boss-chip{background:var(--paper)!important;color:var(--ink)!important}

/* Settings and generic chrome are neutral; identity/game meaning supplies color where needed. */
.settings-section-label{color:var(--muted)!important}
.avatar-builder{box-shadow:inset 0 4px 0 var(--x)!important}
.avatar-builder-head small{color:var(--x)!important}

/* Keep colored background gestures quiet so the UI carries the palette, not the wallpaper. */
body::before{opacity:.42!important}
body::after{opacity:.50!important}

/* Selection uses lime consistently as active/success. */
.avatar-item-btn.selected{box-shadow:inset 0 -4px 0 var(--lime)!important}
.avatar-style-btn.selected{box-shadow:inset 0 -4px 0 var(--lime)!important}
.bot-level.active{background:var(--lime)!important}

/* No extra saturation on hover; preserve the disciplined palette. */
@media(hover:hover) and (pointer:fine){.progress-card:hover,.premium-action:hover,.bot-rung:hover{filter:none!important}}

/* ── #reference-home-v29-25 ── */
/* Return the homepage to the calmer, papery v29.22 visual anchor while keeping newer systems intact. */
.hero-panel{
  border:0!important;border-radius:34px!important;padding:38px 20px 28px!important;
  background:rgba(255,250,240,.97)!important;box-shadow:none!important;overflow:hidden!important
}
.hero-panel::after{display:none!important}
.premium-home-stack{gap:14px!important}
.home-section-label,.your-fives-label,.bot-section-label{
  margin:7px 4px -3px!important;font-size:10px!important;font-weight:1000!important;
  letter-spacing:.13em!important;text-transform:uppercase!important;color:var(--ink)!important;
  position:relative!important;width:max-content!important
}
.home-section-label::after,.your-fives-label::after,.bot-section-label::after{
  content:''!important;display:block!important;position:absolute!important;left:0!important;right:-28px!important;
  bottom:-5px!important;height:2px!important;border-radius:99px!important;background:#aaa59b!important;
  opacity:.62!important;transform:rotate(-.6deg)!important
}
.your-fives-label{margin-top:10px!important}
.bot-section-label{margin-top:9px!important}

.play-your-way-strip{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;
  border:2px solid var(--ink)!important;border-radius:22px!important;overflow:hidden!important;
  background:#fffdf8!important;box-shadow:none!important
}
.play-your-way-strip .premium-action{
  border:0!important;border-radius:0!important;min-height:116px!important;padding:16px 15px!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;gap:11px!important;background:#fffdf8!important;
  box-shadow:none!important;filter:none!important
}
.play-your-way-strip .premium-action + .premium-action{border-left:2px solid var(--ink)!important}
.playway-icon{
  width:46px!important;height:46px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
  border:0!important;box-shadow:none!important
}
.playway-icon svg{width:32px!important;height:32px!important}
.playway-find .playway-icon{background:var(--x)!important}.playway-find .playway-icon svg{fill:#fff!important}
.playway-friend .playway-icon{background:var(--o)!important}.playway-friend .playway-icon svg{fill:none!important;stroke:#fff!important}
.playway-party .playway-icon{background:#4b84e6!important;color:#fff!important;border:0!important}
.playway-party .playway-icon svg circle{fill:#fff!important;stroke:none!important}.playway-party .playway-icon svg path{stroke:#fff!important;fill:none!important}
.playway-copy{min-width:0!important;display:grid!important;gap:4px!important}
.play-your-way-strip .premium-action strong{font-size:14px!important;line-height:1.05!important;letter-spacing:-.02em!important}
.play-your-way-strip .premium-action small{font-size:10px!important;line-height:1.3!important;color:#49443d!important;font-weight:800!important}
.playway-find strong,.playway-find .playway-arrow{color:var(--x)!important}
.playway-friend strong,.playway-friend .playway-arrow{color:var(--o)!important}
.playway-party strong,.playway-party .playway-arrow{color:#3f70bd!important}
.playway-arrow{
  width:30px!important;height:30px!important;border:1.5px solid currentColor!important;border-radius:999px!important;
  display:grid!important;place-items:center!important;background:#fffdf8!important;font-size:20px!important;font-weight:1000!important
}
.playway-find,.playway-friend,.playway-party{box-shadow:none!important}

/* Dashboard returns to quiet paper cards; color is only an identifying edge/label. */
.premium-progress-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important;background:transparent!important;border:0!important;overflow:visible!important}
.premium-progress-grid .progress-card{
  border:2px solid var(--ink)!important;border-radius:18px!important;background:#fbf7ef!important;box-shadow:none!important;
  min-height:174px!important;padding:16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:left!important
}
.premium-progress-grid .progress-card + .progress-card{border-left:2px solid var(--ink)!important}
.daily-progress{box-shadow:inset 0 5px 0 var(--lime)!important}.daily-progress .premium-card-label,.daily-progress .home-card-link{color:#728826!important}
.achievement-progress{box-shadow:inset 0 5px 0 var(--x)!important}.achievement-progress .premium-card-label,.achievement-progress .home-card-link{color:var(--x)!important}
.records-progress{box-shadow:inset 0 4px 0 var(--ink)!important}.records-progress .premium-card-label,.records-progress .home-card-link{color:var(--ink)!important}
.live-pulse{box-shadow:none!important}

@media(hover:hover) and (pointer:fine){
  .play-your-way-strip .premium-action:hover,.premium-progress-grid .progress-card:hover{background:#fff!important;filter:none!important;transform:translateY(-1px)!important}
}
@media(max-width:700px){
  .hero-panel{padding:25px 12px 18px!important;border-radius:24px!important}
  .play-your-way-strip{border-radius:18px!important}
  .play-your-way-strip .premium-action{min-height:94px!important;padding:11px 6px!important;grid-template-columns:1fr!important;grid-template-rows:38px auto!important;justify-items:center!important;align-content:center!important;text-align:center!important;gap:7px!important}
  .playway-icon{width:38px!important;height:38px!important}.playway-icon svg{width:27px!important;height:27px!important}
  .play-your-way-strip .premium-action strong{display:block!important;font-size:10px!important;line-height:1.08!important}
  .play-your-way-strip .premium-action small,.playway-arrow{display:none!important}
  .premium-progress-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}.premium-progress-grid .progress-card{min-height:150px!important;padding:13px!important}.premium-progress-grid .records-progress{grid-column:1/-1!important;min-height:128px!important}
}
@media(max-width:390px){
  .hero-panel{padding-left:9px!important;padding-right:9px!important}
  .premium-progress-grid{grid-template-columns:1fr 1fr!important}.premium-progress-grid .records-progress{grid-column:1/-1!important}
}

/* ── #reference-faithful-v29-26 ── */
/* Screenshot-faithful homepage direction: bold, papery, calm, and mobile-first. */
body{background:#f7f1e7!important;background-image:none!important}
body::before,body::after{display:none!important}
.shell{width:min(100% - 28px,900px)!important;padding-top:22px!important}
.brandbar{margin:0 0 34px!important;align-items:flex-start!important}
.logo{color:var(--x)!important;font-size:clamp(58px,9vw,84px)!important;letter-spacing:-.075em!important;line-height:.86!important}
.tag{font-size:clamp(17px,2.5vw,23px)!important;max-width:none!important;margin-top:9px!important;line-height:1.05!important;font-weight:900!important;white-space:nowrap}
.tag .brush{display:none!important}
.hero-panel{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.hero-panel::after{display:none!important}
.premium-home-stack{gap:26px!important}
.home-section-label,.your-fives-label{margin:0 2px -12px!important;color:var(--ink)!important;font-size:18px!important;font-weight:1000!important;letter-spacing:.055em!important;text-transform:uppercase!important;line-height:1!important}
.home-section-label::after{display:none!important}

/* PLAY WITH PEOPLE: three independent paper cards, like the reference. */
.play-your-way-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{
  min-height:116px!important;padding:18px 18px!important;border:2px solid var(--ink)!important;border-radius:24px!important;
  background:#fffaf0!important;box-shadow:none!important;grid-template-columns:58px minmax(0,1fr) auto!important;gap:14px!important;text-align:left!important
}
.playway-find,.playway-friend,.playway-party{box-shadow:none!important}
.playway-icon{width:56px!important;height:56px!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important}
.playway-icon.find{background:var(--x)!important}.playway-icon.friend{background:var(--o)!important}.playway-icon.party{background:var(--lime)!important}
.playway-icon svg{width:34px!important;height:34px!important}
.playway-icon.find svg{fill:#fff!important}.playway-icon.friend svg{fill:none!important;stroke:#fff!important}.playway-icon.party svg{fill:none!important;stroke:var(--ink)!important}
.playway-icon.party svg circle{fill:var(--ink)!important;stroke:none!important}.playway-icon.party svg path{stroke:var(--ink)!important}
.play-your-way-strip .premium-action strong,.playway-find strong,.playway-friend strong,.playway-party strong{color:var(--ink)!important;font-size:16px!important;line-height:1.02!important;letter-spacing:-.025em!important;text-transform:uppercase!important}
.play-your-way-strip .premium-action small{font-size:11px!important;line-height:1.3!important;color:#4d473f!important;font-weight:760!important;margin-top:5px!important}
.playway-arrow,.playway-find .playway-arrow,.playway-friend .playway-arrow,.playway-party .playway-arrow{color:var(--ink)!important;border:0!important;background:transparent!important;width:auto!important;height:auto!important;font-size:29px!important}

/* YOUR Fives: Daily + Achievements are one paired module. Records lives in LIVE below. */
.premium-progress-grid{display:grid!important;grid-template-columns:1fr 1.12fr!important;gap:0!important;border:2px solid var(--ink)!important;border-radius:24px!important;background:#fffaf0!important;overflow:hidden!important;box-shadow:none!important}
.premium-progress-grid .records-progress{display:none!important}
.premium-progress-grid .progress-card{min-height:225px!important;padding:24px 24px 22px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;text-align:left!important}
.premium-progress-grid .progress-card + .progress-card{border-left:2px solid var(--ink)!important}
.daily-progress{box-shadow:inset 7px 0 0 var(--lime)!important}
.achievement-progress{box-shadow:inset 7px 0 0 var(--x)!important}
.daily-progress .premium-card-label{display:inline-flex!important;align-self:flex-start!important;width:max-content!important;background:rgba(214,239,64,.48)!important;color:#5f7410!important;border-radius:999px!important;padding:6px 12px!important;margin-bottom:18px!important}
.achievement-progress .premium-card-label{color:var(--x)!important;margin-bottom:18px!important}
.premium-card-label{font-size:10px!important;letter-spacing:.11em!important;font-weight:1000!important;text-transform:uppercase!important}
.premium-progress-grid .progress-card strong{font-size:clamp(21px,3.7vw,31px)!important;line-height:1!important;letter-spacing:-.035em!important}
.premium-progress-grid .progress-card small{font-size:12px!important;line-height:1.35!important;margin-top:10px!important}
.week-dots{margin-top:auto!important;padding-top:20px!important;gap:8px!important}.week-dot{width:15px!important;height:15px!important;border-width:1.8px!important}
.achievement-mini-badges{margin-top:15px!important;gap:7px!important;min-height:42px!important}.achievement-mini-badges .achievement-badge.mini{width:38px!important;height:38px!important;flex-basis:38px!important}
.progress-meter{margin-top:18px!important;height:8px!important}.home-card-link{margin-top:auto!important;padding-top:16px!important;font-size:10px!important}

/* LIVE: white outlined strip with a lime status pill and purple Records link. */
.live-pulse{min-height:58px!important;margin:0!important;padding:8px 12px!important;border:2px solid var(--ink)!important;border-radius:16px!important;background:#fffaf0!important;color:var(--ink)!important;box-shadow:none!important}
.live-pulse-left{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
.live-pulse-top{flex:none!important}.live-badge{display:inline-flex!important;align-items:center!important;gap:5px!important;background:var(--lime)!important;color:var(--ink)!important;border-radius:999px!important;padding:7px 11px!important;font-size:9px!important;letter-spacing:.08em!important}
.live-dot{width:7px!important;height:7px!important;background:var(--ink)!important;box-shadow:none!important}.live-pulse strong{color:var(--ink)!important;font-size:12px!important}.live-pulse small{display:none!important}.live-records{color:var(--x)!important;font-size:10px!important}

/* BOT CHALLENGE: one outlined card, three rungs, one persistent lime boss action. */
.bot-section-label{display:none!important}
.premium-gauntlet{border:2px solid var(--ink)!important;border-radius:24px!important;background:#fffaf0!important;padding:22px!important;gap:16px!important;box-shadow:none!important}
.premium-gauntlet-title{gap:15px!important}.premium-crossed{width:52px!important;height:52px!important;border-radius:50%!important;background:#151515!important;color:#fff!important;font-size:24px!important}
.bot-gauntlet-head{align-items:center!important}.bot-gauntlet-head strong{font-size:21px!important;text-transform:uppercase!important;letter-spacing:-.02em!important}.bot-gauntlet-head small{font-size:12px!important;margin-top:4px!important}.boss-chip{display:none!important}
.premium-gauntlet .bot-levels{display:none!important}.premium-rungs{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important;gap:10px!important}
.premium-rungs .bot-rung{min-height:92px!important;padding:13px!important;border:1.5px solid #d0c7b9!important;border-radius:16px!important;background:#fffaf0!important;box-shadow:none!important}.premium-rungs .bot-rung.active{border:4px solid var(--lime)!important;background:#fffdf7!important;box-shadow:none!important;padding:10.5px!important}
.premium-rungs .bot-rung b{font-size:12px!important;color:#2875d8!important}.premium-rungs .bot-rung small{font-size:10px!important;line-height:1.25!important}
.premium-brutal{display:grid!important;grid-template-columns:1fr!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;gap:0!important}
.premium-brutal-icon,.premium-brutal-copy{display:none!important}.premium-brutal .brutal-cta{grid-column:1!important;width:100%!important;min-height:50px!important;border:2px solid var(--ink)!important;border-radius:999px!important;background:var(--lime)!important;color:var(--ink)!important;font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important;font-weight:1000!important}

/* Keep desktop avatar identity; mobile matches the three-button reference header. */
@media(max-width:700px){
  .shell{width:min(100% - 30px,900px)!important;padding-top:22px!important}
  .brandbar{margin-bottom:34px!important;gap:12px!important}
  .wordmark{min-width:0!important;flex:1!important}.logo{font-size:54px!important}.tag{font-size:16px!important;margin-top:8px!important}
  .profile-chip{display:none!important}
  .brand-actions{display:grid!important;grid-template-columns:repeat(3,62px)!important;gap:9px!important;max-width:none!important;align-items:start!important}
  .how-help-toggle,.active-games-toggle,.settings-toggle{width:62px!important;height:72px!important;border:2px solid var(--ink)!important;border-radius:15px!important;background:#fffaf0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;font-size:25px!important;line-height:1!important;position:relative!important}
  .how-help-toggle::after,.active-games-toggle::after,.settings-toggle::after{font-size:8px!important;font-weight:1000!important;letter-spacing:.04em!important;color:var(--ink)!important;line-height:1!important}
  .how-help-toggle::after{content:'HELP'}.active-games-toggle::after{content:'GAMES'}.settings-toggle::after{content:'SETTINGS'}
  .active-games-badge{right:-5px!important;top:-7px!important}
  .premium-home-stack{gap:25px!important}.home-section-label,.your-fives-label{font-size:17px!important;margin-bottom:-12px!important}
  .play-your-way-strip{gap:10px!important}
  .play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{min-height:102px!important;padding:13px 10px!important;border:2px solid var(--ink)!important;border-radius:19px!important;grid-template-columns:47px minmax(0,1fr) auto!important;gap:9px!important;justify-items:stretch!important;text-align:left!important}
  .playway-icon{width:46px!important;height:46px!important}.playway-icon svg{width:30px!important;height:30px!important}.play-your-way-strip .premium-action strong{font-size:12px!important;display:block!important}.play-your-way-strip .premium-action small{display:none!important}.playway-arrow{display:block!important;font-size:23px!important}
  .premium-progress-grid{grid-template-columns:1fr 1.12fr!important;border-radius:21px!important}.premium-progress-grid .progress-card{min-height:230px!important;padding:18px 17px!important}.premium-progress-grid .progress-card + .progress-card{border-left:2px solid var(--ink)!important}.daily-progress,.achievement-progress{box-shadow:inset 6px 0 0 var(--lime)!important}.achievement-progress{box-shadow:inset 6px 0 0 var(--x)!important}.premium-progress-grid .progress-card strong{font-size:18px!important}.premium-progress-grid .progress-card small{font-size:10px!important}.daily-progress .premium-card-label,.achievement-progress .premium-card-label{font-size:9px!important;margin-bottom:14px!important}.achievement-mini-badges .achievement-badge.mini{width:31px!important;height:31px!important;flex-basis:31px!important}.week-dots{gap:6px!important}.week-dot{width:13px!important;height:13px!important}
  .live-pulse{min-height:52px!important;padding:7px 9px!important}.live-badge{padding:6px 9px!important}.live-pulse strong{font-size:10px!important}.live-records{font-size:9px!important}
  .premium-gauntlet{padding:16px!important;border-radius:20px!important;gap:13px!important}.premium-crossed{width:44px!important;height:44px!important}.bot-gauntlet-head strong{font-size:17px!important}.bot-gauntlet-head small{font-size:10px!important}.premium-rungs{gap:7px!important}.premium-rungs .bot-rung{min-height:80px!important;padding:10px!important}.premium-rungs .bot-rung.active{padding:7.5px!important}.premium-rungs .bot-rung b{font-size:10px!important}.premium-rungs .bot-rung small{font-size:8px!important}.premium-brutal .brutal-cta{min-height:46px!important;font-size:10px!important}
}
@media(max-width:470px){
  .shell{width:min(100% - 22px,900px)!important}.brandbar{gap:8px!important}.logo{font-size:46px!important}.tag{font-size:14px!important}.brand-actions{grid-template-columns:repeat(3,54px)!important;gap:6px!important}.how-help-toggle,.active-games-toggle,.settings-toggle{width:54px!important;height:66px!important;font-size:22px!important}
  .play-your-way-strip{gap:7px!important}.play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{padding:10px 7px!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:6px!important;min-height:92px!important}.playway-icon{width:40px!important;height:40px!important}.playway-icon svg{width:26px!important;height:26px!important}.play-your-way-strip .premium-action strong{font-size:10px!important}.playway-arrow{font-size:19px!important}
  .premium-progress-grid .progress-card{padding:15px 13px!important;min-height:218px!important}.premium-progress-grid .progress-card strong{font-size:16px!important}.achievement-mini-badges{gap:3px!important}.achievement-mini-badges .achievement-badge.mini{width:27px!important;height:27px!important;flex-basis:27px!important}.home-card-link{font-size:8px!important}
}
@media(prefers-reduced-motion:reduce){.play-your-way-strip .premium-action,.premium-progress-grid .progress-card{transition:none!important}}

/* ── #reference-fidelity-v29-27 ── */
/* One more literal pass against the supplied mobile reference. */
:root{--ref-blue:#3478f6}

/* Header: slightly more presence and breathing room, with the compact three-button cluster. */
.brandbar{margin-bottom:42px!important}
.logo{font-weight:1000!important}
.tag{font-weight:850!important;letter-spacing:-.025em!important}

/* Social cards: black typography, color only in the circular marks, like printed game pieces. */
.play-your-way-strip{gap:16px!important}
.play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{
  min-height:120px!important;border-radius:23px!important;padding:19px 18px!important;background:#fffaf0!important
}
.playway-icon{width:58px!important;height:58px!important}
.play-your-way-strip .premium-action strong{font-size:16px!important;font-weight:1000!important}
.play-your-way-strip .premium-action small{font-size:11px!important;color:#423d36!important}

/* The reference's Daily card reads as a status panel, not a dashboard summary. */
.daily-progress{position:relative!important;box-shadow:inset 8px 0 0 var(--lime)!important}
.daily-progress .premium-card-label{background:rgba(214,239,64,.54)!important;color:#66820d!important;padding:6px 13px!important;font-size:10px!important}
#dailyProgressTitle{display:flex!important;align-items:center!important;gap:10px!important;color:var(--ref-blue)!important;font-size:28px!important;margin-top:1px!important;text-transform:uppercase!important}
.daily-sun-mark{font-size:33px!important;line-height:1!important;color:#f6bd19!important;filter:saturate(1.05)}
#dailyProgressText{display:grid!important;gap:11px!important;margin-top:16px!important;color:var(--ink)!important;font-style:normal!important}
#dailyProgressText .daily-streak-line,#dailyProgressText .daily-status-line{display:grid!important;gap:2px!important}
#dailyProgressText b{font-size:17px!important;line-height:1.05!important;color:var(--ink)!important;font-weight:1000!important}
#dailyProgressText i{font-size:10px!important;line-height:1.25!important;color:var(--muted)!important;font-style:normal!important;font-weight:800!important}
#dailyProgressText .daily-divider{height:1.5px!important;background:#d6cdbf!important;width:100%!important;margin:1px 0!important}
.week-dots{padding-top:17px!important;margin-top:auto!important}

/* Achievements: label and earned count share the header; badges own the center of the card. */
.achievement-progress{box-shadow:inset 8px 0 0 var(--x)!important}
.achievement-home-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:10px!important;margin-bottom:4px!important}
.achievement-home-heading .premium-card-label{margin:0!important;color:var(--x)!important;font-size:11px!important}
#achievementProgressTitle{margin:0!important;color:#57514a!important;font-size:13px!important;letter-spacing:.02em!important;text-transform:uppercase!important;white-space:nowrap!important}
.achievement-mini-badges{margin:17px 0 11px!important;gap:9px!important;min-height:46px!important}
.achievement-mini-badges .achievement-badge.mini{width:42px!important;height:42px!important;flex-basis:42px!important}
#achievementProgressText{border-top:1.5px solid #d7cec1!important;padding-top:14px!important;margin-top:2px!important;color:var(--ink)!important;font-weight:850!important}
#achievementProgressText::first-line{color:var(--x)!important}
.achievement-progress .progress-meter{height:8px!important;margin-top:12px!important}
.achievement-progress .home-card-link{color:var(--x)!important;font-size:10px!important}

/* LIVE is intentionally skinny and graphic. */
.live-pulse{min-height:54px!important;border-radius:16px!important;padding:7px 11px!important}
.live-badge{background:var(--lime)!important;color:var(--ink)!important;border-radius:999px!important;padding:7px 12px!important;font-size:9px!important}
.live-dot{background:var(--ink)!important;box-shadow:none!important}
.live-pulse strong{font-size:11px!important;font-weight:850!important}
.live-records{color:var(--x)!important;font-size:10px!important}

/* Bot card: the selected rung gets the lime halo from the reference. */
.bot-section-label{display:none!important}
.premium-gauntlet{border:2px solid var(--ink)!important;border-radius:23px!important;padding:20px 20px 18px!important;background:#fffaf0!important;gap:14px!important}
.premium-gauntlet-title strong{font-size:20px!important;text-transform:uppercase!important;letter-spacing:-.02em!important}
.premium-gauntlet-title small{font-size:12px!important;color:#686159!important}
.premium-gauntlet .boss-chip{display:none!important}
.premium-rungs{gap:11px!important}
.premium-rungs .bot-rung{min-height:92px!important;border:1.5px solid #d5cdbf!important;border-radius:16px!important;background:#fffaf0!important;box-shadow:none!important;position:relative!important}
.premium-rungs .bot-rung b{color:var(--ref-blue)!important;font-size:11px!important}
.premium-rungs .bot-rung.active{border:2px solid var(--lime)!important;outline:5px solid rgba(214,239,64,.72)!important;outline-offset:-1px!important;background:#fffaf0!important;box-shadow:none!important}
.premium-rungs .bot-rung.active .rung-meter i{background:var(--x)!important}
.premium-rungs .rung-meter{height:5px!important;margin-top:8px!important}
.premium-brutal{display:grid!important;background:transparent!important;color:var(--ink)!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;grid-template-columns:1fr!important}
.premium-brutal-icon,.premium-brutal-copy{display:none!important}
.premium-brutal .brutal-cta{grid-column:1!important;width:100%!important;min-height:50px!important;background:var(--lime)!important;color:var(--ink)!important;border:2px solid var(--ink)!important;border-radius:999px!important;font-size:11px!important;font-weight:1000!important;letter-spacing:.08em!important}

@media(max-width:700px){
  .shell{width:min(100% - 28px,900px)!important;padding-top:24px!important}
  .brandbar{margin-bottom:42px!important}
  .logo{font-size:58px!important}.tag{font-size:16px!important;margin-top:8px!important}
  .premium-home-stack{gap:28px!important}
  .home-section-label,.your-fives-label{font-size:18px!important;margin-bottom:-13px!important}
  .play-your-way-strip{gap:9px!important}
  .play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{min-height:104px!important;padding:13px 10px!important;border-radius:20px!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:9px!important}
  .playway-icon{width:47px!important;height:47px!important}.playway-icon svg{width:30px!important;height:30px!important}
  .play-your-way-strip .premium-action strong{font-size:12px!important}.playway-arrow{font-size:23px!important}
  .premium-progress-grid{grid-template-columns:1fr 1.1fr!important;border-radius:22px!important}
  .premium-progress-grid .progress-card{min-height:258px!important;padding:19px 18px!important}
  #dailyProgressTitle{font-size:22px!important}.daily-sun-mark{font-size:28px!important}
  #dailyProgressText b{font-size:15px!important}.achievement-mini-badges{gap:5px!important}.achievement-mini-badges .achievement-badge.mini{width:34px!important;height:34px!important;flex-basis:34px!important}
  .premium-gauntlet{padding:17px!important}.premium-gauntlet-title strong{font-size:18px!important}.premium-rungs{gap:8px!important}.premium-rungs .bot-rung{min-height:88px!important;padding:11px 9px!important}.premium-rungs .bot-rung.active{outline-width:4px!important}
}
@media(max-width:470px){
  .shell{width:min(100% - 22px,900px)!important}.brandbar{margin-bottom:36px!important}
  .logo{font-size:48px!important}.tag{font-size:14px!important}.brand-actions{grid-template-columns:repeat(3,54px)!important}
  .premium-home-stack{gap:25px!important}.home-section-label,.your-fives-label{font-size:16px!important}
  .play-your-way-strip{gap:7px!important}.play-your-way-strip .premium-action,.play-your-way-strip .premium-action + .premium-action{min-height:96px!important;padding:11px 7px!important;grid-template-columns:41px minmax(0,1fr) auto!important;gap:6px!important}.playway-icon{width:41px!important;height:41px!important}.playway-icon svg{width:26px!important;height:26px!important}.play-your-way-strip .premium-action strong{font-size:10px!important}.playway-arrow{font-size:18px!important}
  .premium-progress-grid .progress-card{min-height:246px!important;padding:16px 13px!important}.daily-progress .premium-card-label{font-size:8px!important;padding:5px 9px!important}#dailyProgressTitle{font-size:18px!important;gap:6px!important}.daily-sun-mark{font-size:23px!important}#dailyProgressText b{font-size:13px!important}#dailyProgressText i{font-size:8px!important}.week-dots{gap:5px!important}.week-dot{width:11px!important;height:11px!important}
  .achievement-home-heading .premium-card-label{font-size:9px!important}#achievementProgressTitle{font-size:10px!important}.achievement-mini-badges .achievement-badge.mini{width:29px!important;height:29px!important;flex-basis:29px!important}#achievementProgressText{font-size:9px!important;padding-top:11px!important}.home-card-link{font-size:8px!important}
  .premium-gauntlet-title strong{font-size:16px!important}.premium-gauntlet-title small{font-size:9px!important}.premium-rungs .bot-rung{min-height:78px!important;padding:9px 7px!important}.premium-rungs .bot-rung b{font-size:9px!important}.premium-rungs .bot-rung small{display:none!important}
}

/* ── #your-fives-hotfix-v29-28 ── */
/* Fix cascade regression: Records belongs in the LIVE strip, not inside the paired Your Fives module. */
#home .premium-progress-grid > .records-progress{
  display:none!important;
}
#home .premium-progress-grid{
  grid-template-columns:1fr 1.12fr!important;
  grid-template-rows:auto!important;
  grid-auto-rows:auto!important;
  align-items:stretch!important;
  min-height:0!important;
}
#home .premium-progress-grid > .daily-progress,
#home .premium-progress-grid > .achievement-progress{
  display:flex!important;
  min-width:0!important;
}
@media(max-width:700px){
  #home .premium-progress-grid{
    grid-template-columns:1fr 1.12fr!important;
    grid-template-rows:auto!important;
  }
  #home .premium-progress-grid > .records-progress{
    display:none!important;
  }
}

/* ── #bot-results-v29-29 ── */
/* Bot results use score, rings, and comparison rails instead of paragraph-heavy summaries. */
.rung-result{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:8px;width:100%}
.bot-mini-ring,.bot-rate-ring,.boss-rate-ring{--rate:0%;--ring:var(--x);position:relative;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--ring) var(--rate),#e8e0d4 0);isolation:isolate}
.bot-mini-ring::before,.bot-rate-ring::before,.boss-rate-ring::before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fffaf0;z-index:-1}
.bot-mini-ring{width:42px;height:42px;flex:0 0 42px}.bot-mini-ring::before{inset:5px}.bot-mini-ring b{font-size:9px!important;color:var(--ink)!important;letter-spacing:-.03em!important}
.rung-score{display:grid;gap:1px;min-width:0}.rung-score b{font-size:18px!important;color:var(--ink)!important;line-height:1!important;letter-spacing:-.05em!important}.rung-score i{font-size:8px;font-style:normal;font-weight:1000;letter-spacing:.08em;color:var(--muted)}
.rung-empty{display:block;min-height:42px;padding-top:4px}.premium-rungs .rung-meter{background:#e7dfd2!important;border:0!important;height:6px!important}.premium-rungs .rung-meter i{background:var(--rung-color,var(--x))!important}
.bot-rung[data-level="casual"]{--rung-color:#62b7f3}.bot-rung[data-level="sharp"]{--rung-color:var(--o)}.bot-rung[data-level="brutal"]{--rung-color:var(--x)}
.bot-field-tick{position:relative;display:block;height:7px;margin-top:-7px;pointer-events:none}.bot-field-tick i{position:absolute;top:-1px;width:2px;height:8px;border-radius:2px;background:var(--ink);transform:translateX(-1px)}
.premium-gauntlet .premium-brutal{display:grid!important;grid-template-columns:1fr!important;align-items:center!important;gap:12px!important;border:2px solid var(--ink)!important;border-radius:18px!important;background:#171717!important;color:#fff!important;padding:15px!important}
.premium-brutal-copy{display:block!important}.premium-brutal-icon{display:none!important}.premium-brutal strong{font-size:15px!important;color:#fff!important}.premium-brutal small{display:block!important;color:#cfc8bb!important;font-size:10px!important}.premium-brutal .brutal-statline{display:block!important;margin-top:9px!important;color:#fff!important}
.premium-gauntlet .premium-brutal .brutal-cta{grid-column:1!important;width:100%!important;min-height:44px!important;padding:10px 14px!important}
.home-boss-visual{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center}.boss-rate-ring{width:52px;height:52px;--ring:var(--lime)}.boss-rate-ring::before{inset:6px;background:#171717}.boss-rate-ring strong{font-size:13px!important;line-height:1!important;color:#fff!important}.boss-rate-ring small{font-size:6px!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:#cfc8bb!important}
.boss-bars{display:grid;gap:5px}.boss-bar{display:grid;grid-template-columns:35px minmax(70px,1fr) 34px;gap:6px;align-items:center}.boss-bar span,.boss-bar em{font-size:8px;font-style:normal;font-weight:1000;letter-spacing:.06em;text-transform:uppercase}.boss-bar em{text-align:right;color:var(--lime)}.boss-bar i{display:block;height:7px;border-radius:999px;background:#3b3936;overflow:hidden}.boss-bar i b{display:block;height:100%;border-radius:inherit;background:var(--lime)}.boss-bar.field i b{background:var(--x)}
.bot-result-visual{display:grid;grid-template-columns:minmax(245px,.9fr) minmax(190px,1.1fr);gap:18px;align-items:center;margin-top:11px}.bot-score-lockup{display:flex;align-items:center;gap:13px;min-width:0}.bot-rate-ring{width:78px;height:78px;flex:0 0 78px}.bot-rate-ring::before{inset:9px;background:#fff}.mastery-card.brutal .bot-rate-ring::before{background:#faf8ff}.bot-rate-ring strong{font-size:19px!important;line-height:1!important;margin:0!important}.bot-rate-ring small{font-size:7px!important;line-height:1!important;margin:2px 0 0!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.bot-wld{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.bot-wld span{display:grid;justify-items:center;min-width:38px;border:1.5px solid var(--ink);border-radius:11px;padding:7px 5px;background:#fffaf0}.bot-wld b{font-size:20px;line-height:1}.bot-wld small{font-size:7px!important;margin:2px 0 0!important;letter-spacing:.1em!important;text-transform:uppercase!important}
.bot-visual-detail{display:grid;gap:7px}.bot-compare-title{font-size:8px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.bot-compare-row{display:grid;grid-template-columns:40px minmax(0,1fr) 38px;gap:7px;align-items:center}.bot-compare-row span,.bot-compare-row strong{font-size:9px;font-weight:1000;text-transform:uppercase}.bot-compare-row strong{text-align:right}.bot-compare-row i{height:10px;border-radius:999px;background:#e6ded2;overflow:hidden}.bot-compare-row i b{display:block;height:100%;border-radius:inherit;background:var(--lime)}.bot-compare-row.field i b{background:var(--x)}
.bot-threat-graphic{display:grid;gap:6px}.bot-threat-graphic>span{display:flex;gap:5px}.bot-threat-graphic i{display:block;width:17px;height:17px;border:1.5px solid var(--ink);border-radius:50%;background:#ebe3d7}.bot-threat-graphic i.on{background:var(--o)}
.bot-result-caption{font-size:9px;font-weight:900;color:var(--muted);line-height:1.25}
.daily-difficulty-chip{display:inline-flex;align-items:center;gap:6px;width:max-content;border:1.5px solid var(--ink);border-radius:999px;padding:5px 9px;background:#fff;font-size:8px!important;font-style:normal!important;font-weight:1000!important;letter-spacing:.09em;text-transform:uppercase;color:var(--ink)!important}.daily-difficulty-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--lime);border:1px solid var(--ink)}.daily-difficulty-chip.hard::before{background:var(--o)}.daily-difficulty-chip.expert::before{background:var(--x)}
@media(max-width:620px){.premium-brutal{grid-template-columns:1fr!important}.premium-brutal .brutal-cta{width:100%!important}.bot-result-visual{grid-template-columns:1fr}.bot-score-lockup{justify-content:space-between}.bot-visual-detail{border-top:1.5px solid #d7cec1;padding-top:10px}.premium-rungs .bot-rung{min-height:94px!important}.premium-rungs .bot-rung small{display:block!important}.rung-result{grid-template-columns:35px minmax(0,1fr)}.bot-mini-ring{width:35px;height:35px;flex-basis:35px}.rung-score b{font-size:15px!important}}

/* ── #header-action-polish-v29-33 ── */
/* Compact, optically matched utility controls. */
.brand-actions .top-action-icon{
  width:26px;height:26px;display:block;fill:none;stroke:var(--ref-blue,#3478f6);stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .15s cubic-bezier(.2,.8,.2,1)
}
.brand-actions .top-action-icon .icon-dot{fill:var(--ref-blue,#3478f6);stroke:none}
.how-help-toggle,.active-games-toggle,.settings-toggle{
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .14s ease,background-color .14s ease!important
}
@media(hover:hover) and (pointer:fine){
  .how-help-toggle:hover,.active-games-toggle:hover,.settings-toggle:hover{
    background:#fff!important;transform:translateY(-2px)!important;box-shadow:0 3px 0 var(--ink)!important
  }
  .how-help-toggle:hover .top-action-icon,.active-games-toggle:hover .top-action-icon{transform:scale(1.08)!important}
  .settings-toggle:hover .top-action-icon{transform:rotate(7deg) scale(1.06)!important}
}
.how-help-toggle:active,.active-games-toggle:active,.settings-toggle:active{
  transform:translateY(1px) scale(.97)!important;box-shadow:none!important;background:#f0e9dd!important
}
.how-help-toggle:focus-visible,.active-games-toggle:focus-visible,.settings-toggle:focus-visible{
  outline:3px solid var(--x)!important;outline-offset:3px!important
}
@media(max-width:700px){
  .brand-actions{grid-template-columns:repeat(3,52px)!important;gap:6px!important}
  .brand-actions .profile-chip{
    display:inline-flex!important;grid-column:1/-1!important;justify-self:end!important;min-height:30px!important;
    max-width:168px!important;padding:2px 9px 2px 3px!important;border:1.5px solid var(--ink)!important;
    border-radius:999px!important;background:#fffaf0!important;gap:6px!important
  }
  .brand-actions .profile-chip-name{display:block!important;max-width:124px!important;font-size:8.5px!important;line-height:1!important}
  .brand-actions .profile-chip .fives-avatar.sm{width:24px!important;height:24px!important;border-width:1.5px!important}
  .how-help-toggle,.active-games-toggle,.settings-toggle{
    width:52px!important;height:60px!important;border-radius:14px!important;gap:4px!important
  }
  .brand-actions .top-action-icon{width:24px!important;height:24px!important}
  .how-help-toggle::after,.active-games-toggle::after,.settings-toggle::after{font-size:7.5px!important}
}
@media(max-width:390px){
  .brand-actions{grid-template-columns:repeat(3,48px)!important;gap:5px!important}
  .brand-actions .profile-chip{max-width:154px!important;min-height:28px!important;padding-right:7px!important}
  .brand-actions .profile-chip-name{max-width:114px!important;font-size:8px!important}
  .brand-actions .profile-chip .fives-avatar.sm{width:22px!important;height:22px!important}
  .how-help-toggle,.active-games-toggle,.settings-toggle{width:48px!important;height:57px!important;border-radius:13px!important}
  .brand-actions .top-action-icon{width:23px!important;height:23px!important}
  .how-help-toggle::after,.active-games-toggle::after,.settings-toggle::after{font-size:7px!important}
}

/* ── #header-utility-dock-v29-34 ── */
/* One connected identity-and-utility dock keeps secondary controls quiet and coherent. */
.brand-actions{
  display:flex!important;align-items:stretch!important;gap:0!important;padding:0!important;
  max-width:min(58%,340px)!important;border:2px solid var(--ink)!important;border-radius:16px!important;
  background:#fffaf0!important;box-shadow:0 3px 0 rgba(16,16,16,.08)!important;overflow:visible!important
}
.brand-actions .profile-chip{
  display:inline-flex!important;flex:1 1 auto!important;min-width:0!important;min-height:48px!important;height:48px!important;
  max-width:170px!important;padding:3px 9px 3px 4px!important;border:0!important;border-radius:14px 0 0 14px!important;
  background:transparent!important;gap:7px!important
}
.brand-actions .profile-chip-name{display:block!important;min-width:0!important;max-width:104px!important;font-size:9px!important}
.brand-actions .profile-chip .fives-avatar.sm{width:28px!important;height:28px!important;flex-basis:28px!important;border-width:1.5px!important}
.brand-actions .how-help-toggle,.brand-actions .active-games-toggle,.brand-actions .settings-toggle{
  flex:0 0 44px!important;width:44px!important;height:48px!important;min-height:48px!important;padding:0!important;
  border:0!important;border-left:1.5px solid var(--ink)!important;border-radius:0!important;background:transparent!important;
  display:grid!important;place-items:center!important;box-shadow:none!important
}
.brand-actions .settings-toggle{border-radius:0 14px 14px 0!important}
.brand-actions .how-help-toggle::after,.brand-actions .active-games-toggle::after,.brand-actions .settings-toggle::after{content:none!important;display:none!important}
.brand-actions .top-action-icon{width:22px!important;height:22px!important}
@media(hover:hover) and (pointer:fine){
  .brand-actions .profile-chip:hover,.brand-actions .how-help-toggle:hover,.brand-actions .active-games-toggle:hover,.brand-actions .settings-toggle:hover{
    background:rgba(101,71,255,.09)!important;transform:none!important;box-shadow:none!important
  }
  .brand-actions .settings-toggle:hover .top-action-icon{transform:rotate(7deg)!important}
}
.brand-actions .profile-chip:active,.brand-actions .how-help-toggle:active,.brand-actions .active-games-toggle:active,.brand-actions .settings-toggle:active{
  background:rgba(101,71,255,.16)!important;transform:none!important;box-shadow:inset 0 2px 0 rgba(16,16,16,.13)!important
}
.brand-actions .profile-chip:focus-visible,.brand-actions .how-help-toggle:focus-visible,.brand-actions .active-games-toggle:focus-visible,.brand-actions .settings-toggle:focus-visible{
  outline:2px solid var(--x)!important;outline-offset:-4px!important
}
@media(max-width:700px){
  .brandbar{align-items:center!important;margin-bottom:18px!important}
  .brand-actions{flex:0 0 auto!important;max-width:190px!important;border-radius:15px!important}
  .brand-actions .profile-chip{
    grid-column:auto!important;justify-self:auto!important;flex:0 1 82px!important;width:82px!important;max-width:82px!important;
    min-height:46px!important;height:46px!important;padding:3px 6px 3px 3px!important;border-radius:13px 0 0 13px!important;gap:5px!important
  }
  .brand-actions .profile-chip-name{max-width:45px!important;font-size:8px!important}
  .brand-actions .profile-chip .fives-avatar.sm{width:26px!important;height:26px!important;flex-basis:26px!important}
  .brand-actions .how-help-toggle,.brand-actions .active-games-toggle,.brand-actions .settings-toggle{
    flex-basis:36px!important;width:36px!important;height:46px!important;min-height:46px!important;border-radius:0!important
  }
  .brand-actions .settings-toggle{border-radius:0 13px 13px 0!important}
  .brand-actions .top-action-icon{width:21px!important;height:21px!important}
}
@media(max-width:390px){
  .brand-actions{max-width:180px!important}
  .brand-actions .profile-chip{flex-basis:75px!important;width:75px!important;max-width:75px!important}
  .brand-actions .profile-chip-name{max-width:39px!important;font-size:7.5px!important}
  .brand-actions .how-help-toggle,.brand-actions .active-games-toggle,.brand-actions .settings-toggle{flex-basis:35px!important;width:35px!important}
}

/* ── #your-fives-mockup-fidelity-v30 ── */
/* Approved paired Daily + Achievements composition, powered by the existing live data. */
#home .premium-progress-grid{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important;border:2.5px solid var(--ink)!important;border-radius:24px!important;background:#fffaf0!important}
#home .premium-progress-grid>.progress-card{min-height:244px!important;padding:22px 22px 18px!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
#home .premium-progress-grid>.achievement-progress{border-left:2.5px solid var(--ink)!important}
.daily-progress .premium-card-label{display:none!important}
#dailyProgressTitle{display:inline-flex!important;width:max-content!important;max-width:100%!important;align-items:center!important;gap:8px!important;margin:0 0 17px!important;padding:8px 15px!important;border:2px solid var(--ink)!important;border-radius:999px!important;background:var(--lime)!important;color:var(--ink)!important;font-size:21px!important;line-height:1!important;letter-spacing:.035em!important;white-space:nowrap!important}
.daily-sun-mark{font-size:24px!important;line-height:1!important;filter:none!important}
.daily-difficulty{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:8px;min-height:37px;padding:5px 13px 5px 9px;border:2px solid var(--ink);border-radius:999px;color:var(--ink);font-size:10px;font-weight:950;letter-spacing:.06em;line-height:1;text-transform:uppercase;white-space:nowrap}
.daily-difficulty-dot{width:18px;height:18px;flex:0 0 18px;border:2px solid var(--ink);border-radius:50%;background:var(--lime)}
.daily-difficulty b{font:inherit;font-weight:1000}.daily-progress-rule{width:100%;height:1.5px;margin:17px 0 14px;background:#d7cec1}
#dailyProgressText{display:block!important;margin:0!important;color:var(--ink)!important;font-size:15px!important;font-weight:1000!important;line-height:1.1!important;letter-spacing:.025em!important;text-transform:uppercase!important}
.daily-streak-value{display:flex;align-items:center;gap:7px}.daily-streak-value .streak-flame{font-size:21px;line-height:1}
.week-dots{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;margin:13px 0 0!important;padding:0!important}
.week-dot{width:19px!important;height:19px!important;flex:0 0 19px!important;border:2px solid var(--ink)!important;border-radius:50%!important;background:#fffaf0!important;box-shadow:none!important}.week-dot.played,.week-dot.won{background:var(--lime)!important}.week-dot.today{outline:3px solid var(--x)!important;outline-offset:2px!important}
.daily-week-label{display:block;margin-top:8px;color:#81796f;font-size:9px;font-weight:1000;letter-spacing:.12em;text-align:center;text-transform:uppercase}
.daily-progress .home-card-link{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:44px!important;margin-top:auto!important;padding:8px 12px!important;border:2px solid var(--ink)!important;border-radius:999px!important;background:var(--x)!important;color:#fff!important;font-size:13px!important;font-weight:1000!important;letter-spacing:.055em!important;text-transform:uppercase!important}
.achievement-home-heading{align-items:center!important;margin:0 0 13px!important;padding-bottom:13px!important;border-bottom:1.5px solid #d7cec1!important}.achievement-home-heading .premium-card-label{color:var(--x)!important;font-size:15px!important;letter-spacing:.035em!important}#achievementProgressTitle{color:var(--ink)!important;font-size:14px!important;font-weight:1000!important}
#achievementProgressText{margin:0!important;padding:0!important;border:0!important;color:var(--x)!important;font-size:12px!important;font-weight:1000!important;line-height:1.25!important;text-transform:uppercase!important}
.achievement-mini-badges{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:42px!important;margin:16px 0 10px!important}.achievement-mini-badges .achievement-badge.mini{width:40px!important;height:40px!important;flex-basis:40px!important}
.achievement-progress .progress-meter{height:9px!important;margin:11px 0 0!important;border:2px solid var(--ink)!important;background:#fffaf0!important}.achievement-progress .progress-meter i{background:var(--x)!important}.achievement-progress .home-card-link{margin-top:auto!important;padding-top:15px!important;color:var(--x)!important;font-size:12px!important;font-weight:1000!important;letter-spacing:.055em!important;text-transform:uppercase!important}
#home .premium-progress-grid>.progress-card{transition:transform .16s ease,background-color .16s ease!important}@media(hover:hover){#home .premium-progress-grid>.progress-card:hover{background:#fffdf7!important;transform:translateY(-2px)}}#home .premium-progress-grid>.progress-card:active{transform:scale(.985)!important}#home .premium-progress-grid>.progress-card:focus-visible{outline:4px solid rgba(86,62,245,.34)!important;outline-offset:3px!important}
@media(max-width:700px){
  #home .premium-progress-grid{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important;border-radius:21px!important}#home .premium-progress-grid>.progress-card{min-height:226px!important;padding:16px 14px 14px!important}
  #dailyProgressTitle{gap:5px!important;margin-bottom:13px!important;padding:7px 10px!important;font-size:16px!important}.daily-sun-mark{font-size:19px!important}.daily-difficulty{min-height:31px;padding:4px 8px 4px 6px;gap:5px;font-size:8px;letter-spacing:.035em}.daily-difficulty-dot{width:15px;height:15px;flex-basis:15px}.daily-progress-rule{margin:13px 0 11px}
  #dailyProgressText{font-size:11px!important}.daily-streak-value{gap:4px}.daily-streak-value .streak-flame{font-size:17px}.week-dots{gap:6px!important;margin-top:10px!important}.week-dot{width:14px!important;height:14px!important;flex-basis:14px!important}.daily-week-label{margin-top:6px;font-size:7px}.daily-progress .home-card-link{min-height:36px!important;padding:6px!important;font-size:9px!important}
  .achievement-home-heading{margin-bottom:10px!important;padding-bottom:10px!important}.achievement-home-heading .premium-card-label{font-size:11px!important}#achievementProgressTitle{font-size:11px!important}#achievementProgressText{font-size:9px!important}.achievement-mini-badges{gap:5px!important;margin:14px 0 8px!important}.achievement-mini-badges .achievement-badge.mini{width:31px!important;height:31px!important;flex-basis:31px!important}.achievement-progress .progress-meter{height:8px!important;margin-top:9px!important}.achievement-progress .home-card-link{padding-top:12px!important;font-size:9px!important}
}
@media(max-width:390px){#home .premium-progress-grid>.progress-card{min-height:218px!important;padding:14px 11px 12px!important}#dailyProgressTitle{font-size:14px!important;padding:6px 8px!important}.daily-difficulty{font-size:7px;letter-spacing:.02em}.week-dots{gap:5px!important}.week-dot{width:13px!important;height:13px!important;flex-basis:13px!important}.achievement-mini-badges{gap:4px!important}.achievement-mini-badges .achievement-badge.mini{width:28px!important;height:28px!important;flex-basis:28px!important}}

/* ── #your-fives-layout-v30-1 ── */
/* Keep the activity pulse inside Achievements and make the Daily week hierarchy explicit. */
#home .premium-progress-grid{
  position:relative!important;
  align-items:stretch!important;
}
#home .premium-progress-grid>.progress-card{
  min-width:0!important;
}
#home .daily-progress{
  align-items:stretch!important;
}
#home .daily-progress>#dailyProgressTitle,
#home .daily-progress>.daily-difficulty{
  align-self:center!important;
}
#home .daily-progress>.daily-progress-rule{
  margin-top:14px!important;
  margin-bottom:13px!important;
}
#home .premium-progress-grid>.achievement-progress{
  grid-column:2!important;
  grid-row:1!important;
  padding-bottom:88px!important;
}
#home .premium-progress-grid>.live-pulse{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  justify-self:stretch!important;
  z-index:3!important;
  width:auto!important;
  min-width:0!important;
  min-height:52px!important;
  margin:0 18px 18px!important;
  background:#151515!important;
  color:#fff!important;
  border-radius:14px!important;
}
#home .premium-progress-grid>.live-pulse .live-badge{
  background:var(--lime)!important;
  color:var(--ink)!important;
}
#home .premium-progress-grid>.live-pulse strong{color:#fff!important}
#home .premium-progress-grid>.live-pulse .live-records{color:var(--lime)!important}
.daily-week-label{
  width:100%!important;
  margin:auto 0 0!important;
  color:#6f685f!important;
  font-size:9px!important;
  line-height:1!important;
  letter-spacing:.12em!important;
  text-align:left!important;
}
.week-dots{
  margin:8px 0 0!important;
}
.daily-progress .home-card-link{
  margin-top:15px!important;
}

@media(max-width:700px){
  #home .premium-progress-grid>.achievement-progress{padding-bottom:72px!important}
  #home .premium-progress-grid>.live-pulse{min-height:46px!important;margin:0 12px 12px!important;padding:6px 8px!important}
  #home .premium-progress-grid>.live-pulse .live-pulse-left{gap:7px!important}
  #home .premium-progress-grid>.live-pulse strong{font-size:9px!important}
  #home .premium-progress-grid>.live-pulse .live-records{font-size:8px!important}
  .daily-week-label{font-size:7px!important}
  .week-dots{margin-top:6px!important}
  .daily-progress .home-card-link{margin-top:11px!important}
}
@media(max-width:390px){
  #home .premium-progress-grid{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important}
  #home .premium-progress-grid>.daily-progress{padding-left:12px!important;padding-right:10px!important}
  #home .premium-progress-grid>.achievement-progress{padding:14px 10px 68px!important}
  #home .premium-progress-grid>.live-pulse{margin:0 8px 9px!important;min-height:44px!important}
  #home .premium-progress-grid>.live-pulse strong{max-width:76px!important;font-size:8px!important}
  #home .premium-progress-grid>.live-pulse .live-records{font-size:7px!important}
  #home .premium-progress-grid>.live-pulse .live-badge{padding:5px 7px!important;font-size:7px!important}
}
@media(max-width:340px){
  .brandbar{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;align-items:start!important}
  .brand-actions{display:grid!important;grid-template-columns:minmax(0,1fr) repeat(3,38px)!important;gap:6px!important;width:100%!important;max-width:none!important}
  .brand-actions .profile-chip{grid-column:auto!important;grid-row:auto!important;width:auto!important;max-width:none!important;min-width:0!important}
  .brand-actions .how-help-toggle,.brand-actions .active-games-toggle,.brand-actions .settings-toggle{width:38px!important;min-width:38px!important;max-width:38px!important}
  #home .premium-progress-grid{grid-template-columns:1fr!important}
  #home .premium-progress-grid>.achievement-progress{grid-column:1!important;grid-row:2!important;border-left:0!important;border-top:2.5px solid var(--ink)!important;padding-bottom:76px!important}
  #home .premium-progress-grid>.live-pulse{grid-column:1!important;grid-row:2!important;margin:0 12px 12px!important}
  #home .premium-progress-grid>.live-pulse strong{max-width:none!important;font-size:9px!important}
}

/* ── #bot-challenge-redesign-v30-2 ── */
/* Four readable robot tiers with one expandable, data-backed detail panel. */
#home .premium-gauntlet{padding:22px!important;gap:18px!important;background:#fffaf0!important}
#home .premium-gauntlet-title{align-items:center!important}
#home .premium-crossed{width:58px!important;height:58px!important;padding:0!important;overflow:hidden!important;background:#151515!important}
#home .premium-crossed img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
#home .premium-rungs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
#home .premium-rungs .bot-rung{
  --bot-accent:#3478f6;
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  min-width:0!important;min-height:252px!important;padding:14px 10px 12px!important;gap:8px!important;
  border:2px solid var(--ink)!important;border-radius:20px!important;background:#fffaf0!important;text-align:center!important;box-shadow:none!important;overflow:visible!important
}
#home .premium-rungs .bot-rung[data-level="medium"]{--bot-accent:var(--o)}
#home .premium-rungs .bot-rung[data-level="sharp"]{--bot-accent:var(--x)}
#home .premium-rungs .bot-rung[data-level="brutal"]{--bot-accent:#151515}
#home .premium-rungs .bot-rung.active{border-color:var(--bot-accent)!important;outline:6px solid color-mix(in srgb,var(--bot-accent) 22%,transparent)!important;outline-offset:-1px!important;background:#fffdf7!important;padding:14px 10px 12px!important}
.bot-rung-art{display:block;width:min(100%,148px);aspect-ratio:1;object-fit:contain;margin:-4px auto 0}
.bot-rung-name{color:var(--bot-accent);font-size:24px;font-weight:1000;line-height:1;letter-spacing:.025em;text-transform:uppercase}
.bot-threat{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--bot-accent);line-height:1}
.bot-threat i{display:block;width:14px;height:14px;border:2px solid currentColor;border-radius:50%;background:transparent;box-sizing:border-box}
.bot-threat i.filled{background:currentColor}
.bot-rung[data-level="brutal"] .bot-threat{color:var(--lime)}
.bot-rung[data-level="brutal"] .bot-threat i{border-color:var(--ink)}
.bot-rung-state{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:38px;margin-top:auto;border:1.5px solid var(--ink);border-radius:999px;background:#fff;font-size:12px;font-weight:1000;letter-spacing:.065em;text-transform:uppercase}
.bot-rung.cleared .bot-rung-state{background:var(--lime)}
.bot-rung[data-level="brutal"].locked .bot-rung-state{color:#fff;background:#151515}
.bot-detail{--bot-detail-accent:#3478f6;display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr);grid-template-areas:"identity stats" "identity compare" "identity action";gap:14px 20px;padding:18px;border:2px solid var(--ink);border-radius:20px;background:#fffdf7}
#botGauntlet[data-selected="medium"] .bot-detail{--bot-detail-accent:var(--o)}
#botGauntlet[data-selected="sharp"] .bot-detail{--bot-detail-accent:var(--x)}
#botGauntlet[data-selected="brutal"] .bot-detail{--bot-detail-accent:var(--lime)}
.bot-detail-identity{grid-area:identity;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:12px 18px 12px 0;border-right:1.5px solid #d7cec1;min-width:0;text-align:center}
.bot-detail-identity img{display:block;flex:0 0 148px;width:148px;height:148px;object-fit:contain}
.bot-detail-identity strong{display:block;color:var(--bot-detail-accent);font-size:29px;font-weight:1000;line-height:1;text-transform:uppercase;letter-spacing:-.025em}
.bot-detail-identity small{display:block;margin-top:8px;color:var(--ink);font-size:15px;font-weight:850;line-height:1.35}
.bot-detail-stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bot-detail-stats>span{display:grid;align-content:center;gap:5px;min-width:0;min-height:72px;padding:9px;border:1.5px solid var(--ink);border-radius:13px;background:#fffaf0;text-align:center}
.bot-detail-stats small{font-size:11px;font-weight:1000;letter-spacing:.04em;line-height:1.15;text-transform:uppercase}
.bot-detail-stats strong{color:var(--bot-detail-accent);font-size:25px;font-weight:1000;line-height:1;text-transform:uppercase}
.bot-detail-compare{grid-area:compare;display:grid;gap:7px;padding:10px 12px;border:1.5px solid var(--ink);border-radius:14px;background:#fffaf0}
.bot-detail-compare>span{display:grid;grid-template-columns:38px minmax(0,1fr) 35px;align-items:center;gap:8px}
.bot-detail-compare b,.bot-detail-compare strong{font-size:11px;font-weight:1000;text-transform:uppercase}.bot-detail-compare strong{text-align:right}
.bot-detail-compare i{display:block;height:9px;border-radius:999px;background:#ddd6ca;overflow:hidden}.bot-detail-compare em{display:block;width:0;height:100%;border-radius:inherit;background:var(--bot-detail-accent);transition:width .22s ease}.bot-detail-compare>span+span em{background:#9c9a95}
.bot-detail-cta{grid-area:action;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border:2px solid var(--ink);border-radius:999px;background:var(--bot-detail-accent);color:#fff;font-size:15px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
#botGauntlet[data-selected="medium"] .bot-detail-cta{color:#fff}
#botGauntlet[data-selected="brutal"] .bot-detail{color:var(--lime);border-color:#151515;background:#151515}
#botGauntlet[data-selected="brutal"] .bot-detail-identity{margin:-4px 0 -4px -4px;padding:16px 18px;border:1.5px solid #555b42;border-radius:16px;background:#292a27}
#botGauntlet[data-selected="brutal"] .bot-detail-identity img{filter:drop-shadow(2px 0 0 var(--lime)) drop-shadow(-2px 0 0 var(--lime)) drop-shadow(0 2px 0 var(--lime)) drop-shadow(0 -2px 0 var(--lime))}
#botGauntlet[data-selected="brutal"] .bot-detail-identity small{color:var(--lime)}
#botGauntlet[data-selected="brutal"] .bot-detail-stats>span,
#botGauntlet[data-selected="brutal"] .bot-detail-compare{border-color:#656958;background:#20201f}
#botGauntlet[data-selected="brutal"] .bot-detail-stats small,
#botGauntlet[data-selected="brutal"] .bot-detail-compare b{color:#fff}
#botGauntlet[data-selected="brutal"] .bot-detail-cta{border-color:var(--lime);background:#151515;color:var(--lime)}
.bot-detail-cta:hover{transform:translateY(-1px)}.bot-detail-cta:disabled{cursor:not-allowed;opacity:.58;transform:none}

@media(max-width:760px){
  #home .premium-gauntlet{padding:16px!important;gap:15px!important}
  #home .premium-rungs{gap:8px!important}
  #home .premium-rungs .bot-rung{min-height:205px!important;padding:10px 7px!important;border-radius:16px!important}
  #home .premium-rungs .bot-rung.active{padding:10px 7px!important;outline-width:4px!important}
  .bot-rung-art{width:min(100%,108px)}.bot-rung-name{font-size:18px}.bot-threat{gap:6px}.bot-threat i{width:12px;height:12px}.bot-rung-state{min-height:32px;font-size:10px}
  .bot-detail{grid-template-columns:190px minmax(0,1fr);gap:11px 13px;padding:13px}
  .bot-detail-identity{gap:9px;padding:10px 11px 10px 0}.bot-detail-identity img{flex-basis:108px;width:108px;height:108px}.bot-detail-identity strong{font-size:22px}.bot-detail-identity small{font-size:11px}
  .bot-detail-stats{gap:5px}.bot-detail-stats>span{padding:6px 4px;min-height:64px}.bot-detail-stats small{font-size:9px}.bot-detail-stats strong{font-size:19px}
}
@media(max-width:520px){
  #home .premium-rungs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #home .premium-rungs .bot-rung{min-height:202px!important}
  .bot-rung-art{width:112px}.bot-rung-name{font-size:19px}.bot-threat i{width:13px;height:13px}
  .bot-detail{grid-template-columns:1fr;grid-template-areas:"identity" "stats" "compare" "action";gap:11px}
  .bot-detail-identity{padding:4px 0 14px;border-right:0;border-bottom:1.5px solid #d7cec1}.bot-detail-identity img{flex-basis:118px;width:118px;height:118px}.bot-detail-identity strong{font-size:23px}
  .bot-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-detail-stats>span{min-height:64px}.bot-detail-stats small{font-size:9px}.bot-detail-stats strong{font-size:19px}
}
@media(max-width:340px){#home .premium-rungs .bot-rung{min-height:184px!important}.bot-rung-art{width:92px}.bot-rung-name{font-size:17px}.bot-threat{gap:5px}.bot-threat i{width:11px;height:11px}.bot-detail-identity img{flex-basis:104px;width:104px;height:104px}}
.footer{display:grid;justify-items:center;gap:7px;margin-top:24px;text-align:center;text-transform:uppercase}
.footer-slogan{color:#655f56;font-size:11px;font-weight:900;letter-spacing:.075em;line-height:1.2;white-space:nowrap}
.footer-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;color:#79736b;font-size:8px;font-weight:800;letter-spacing:.08em;line-height:1.2}
.footer-links .link-btn,.footer-links a{color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit}
@media(max-width:420px){.footer-slogan{font-size:8px;letter-spacing:.035em;white-space:normal}.footer-links{gap:5px;font-size:7px}}
/* Achievement medals: generated enamel art with a shared collectible presentation. */
.achievement-badge{width:62px;height:62px;flex:0 0 62px;border:0;background:transparent;box-shadow:0 3px 0 var(--ink);isolation:isolate}
.achievement-badge::before{display:none}.achievement-badge>i,.achievement-badge>b{display:none}
.achievement-badge img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%;position:relative;z-index:1}
.achievement-badge.earned::after{display:none}
.achievement-badge.locked{opacity:.52!important;filter:grayscale(1) saturate(0)!important;box-shadow:0 2px 0 rgba(16,16,16,.13)}
.achievement-badge.locked img{opacity:.78}
.achievement-row{grid-template-columns:68px minmax(0,1fr) auto}
.achievement-row.unlocked{background:#fff}
.achievement-row.unlocked .achievement-badge{transform:rotate(-2deg)}
.achievement-mini-badges .achievement-badge.mini{border:0!important;background:transparent!important;box-shadow:0 2px 0 rgba(16,16,16,.15)!important}
.achievement-mini-badges .achievement-badge.mini:nth-child(even){transform:rotate(3deg)}
@media(max-width:620px){.achievement-row{grid-template-columns:60px minmax(0,1fr) auto}.achievement-badge{width:54px;height:54px;flex-basis:54px}}
/* A short, shareable reward moment when a badge is earned. */
.achievement-celebration{width:min(92vw,550px)!important;max-width:550px!important;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}.achievement-celebration::backdrop{background:rgba(21,21,21,.62);backdrop-filter:blur(4px)}
.achievement-celebration-card{position:relative;width:100%;box-sizing:border-box;overflow:hidden;border:3px solid var(--ink);border-radius:28px;background:var(--paper);box-shadow:0 10px 0 var(--ink);padding:34px 32px 28px;text-align:center}
.achievement-celebration-kicker{display:inline-flex;border:2px solid var(--ink);border-radius:999px;background:var(--lime);padding:7px 12px;font-size:10px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}
.achievement-celebration-badge{position:relative;width:180px;height:180px;margin:18px auto 12px;filter:drop-shadow(0 8px 0 rgba(21,21,21,.18));animation:badge-arrive .7s cubic-bezier(.18,.9,.25,1.25) both}
.achievement-celebration-badge::before,.achievement-celebration-badge::after{content:"";position:absolute;inset:-14px;border:5px solid var(--x);border-radius:50%;animation:badge-ring 1.2s ease-out both}.achievement-celebration-badge::after{inset:-27px;border-color:var(--lime);animation-delay:.12s}
.achievement-celebration-badge img{position:relative;z-index:2;display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.achievement-celebration-card h2{margin:8px 0 5px;font-size:36px;line-height:.95;letter-spacing:-.04em;text-transform:uppercase}.achievement-celebration-card p{margin:0 auto;max-width:340px;color:var(--muted);font-size:14px;font-weight:800;line-height:1.4}
.achievement-celebration-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.achievement-celebration-actions .btn{min-height:48px}
.achievement-confetti{position:absolute;inset:0;pointer-events:none}.achievement-confetti i{--x:50%;--c:var(--x);position:absolute;left:var(--x);top:-18px;width:9px;height:18px;border:2px solid var(--ink);background:var(--c);transform:rotate(18deg);animation:badge-confetti 1.25s ease-out both}.achievement-confetti i:nth-child(2){--x:12%;--c:var(--lime);animation-delay:.08s}.achievement-confetti i:nth-child(3){--x:24%;--c:var(--o);animation-delay:.18s}.achievement-confetti i:nth-child(4){--x:38%;--c:#8ed4ff;animation-delay:.04s}.achievement-confetti i:nth-child(5){--x:62%;--c:var(--lime);animation-delay:.15s}.achievement-confetti i:nth-child(6){--x:76%;--c:var(--o);animation-delay:.02s}.achievement-confetti i:nth-child(7){--x:89%;--c:var(--x);animation-delay:.2s}.achievement-confetti i:nth-child(8){--x:95%;--c:#8ed4ff;animation-delay:.1s}
@keyframes badge-arrive{0%{opacity:0;transform:scale(.35) rotate(-18deg)}70%{opacity:1;transform:scale(1.08) rotate(3deg)}100%{transform:scale(1) rotate(0)}}@keyframes badge-ring{0%{opacity:.9;transform:scale(.55)}100%{opacity:0;transform:scale(1.18)}}@keyframes badge-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translateY(430px) rotate(520deg)}}
@media(max-width:520px){.achievement-celebration-card{padding:27px 20px 22px;border-radius:23px}.achievement-celebration-badge{width:145px;height:145px}.achievement-celebration-card h2{font-size:29px}.achievement-celebration-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.achievement-celebration-badge,.achievement-celebration-badge::before,.achievement-celebration-badge::after,.achievement-confetti i{animation:none}.achievement-celebration-badge::before,.achievement-celebration-badge::after,.achievement-confetti{display:none}}

/* ── #identity-flow-v29-33 ── */
#nameDialog{overflow:hidden!important;height:min(92dvh,860px)!important;max-height:min(92dvh,860px)!important;box-sizing:border-box!important}
#nameDialog .dialog-body{display:flex;flex-direction:column;padding:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important}
.identity-dialog-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:22px 22px 18px;scroll-padding-bottom:18px}
.identity-dialog-scroll>h2,.identity-dialog-scroll>p{margin-left:0!important;margin-right:0!important}
.identity-dialog-scroll>h2{margin-top:0!important}
.identity-tabs{display:grid;grid-template-columns:1fr 1fr;border:2px solid var(--ink);border-radius:15px;padding:4px;background:#eee7db;gap:4px;margin-top:2px!important}
.identity-tab{min-height:45px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.035em;cursor:pointer}
.identity-tab.selected{background:#fff;box-shadow:0 2px 0 rgba(16,16,16,.15);color:var(--x)}
.identity-tab:focus-visible{outline:3px solid var(--x);outline-offset:1px}
#nameDialog .identity-custom-card{margin-top:10px!important;margin-bottom:0!important}
#nameDialog .anonymous-panel{border:2px solid var(--ink);border-radius:19px;background:#fff;padding:14px 15px;margin-top:10px!important;margin-bottom:0!important;box-shadow:inset 0 6px 0 var(--lime)}
#nameDialog .anonymous-panel .alias-choice{display:grid;justify-items:center;text-align:center;margin:2px 0 9px!important;background:transparent;border:0;padding:10px 4px 4px}
#nameDialog .anonymous-panel .alias-choice-copy{justify-items:center;width:100%}
#nameDialog .anonymous-panel .alias-choice-copy strong{white-space:normal;text-align:center}
#nameDialog .anonymous-panel .alias-shuffle{margin-top:8px;min-width:128px}
#nameDialog .identity-anon-note{text-align:center!important;margin:0 auto 4px!important;max-width:480px}
.username-error{border:2px solid #a83224;border-radius:12px;background:#fff0ed;color:#8b281d;padding:10px 12px;font-size:11px;font-weight:900;margin-top:10px!important}
.identity-dialog-actions{position:relative;z-index:12;flex:0 0 auto;grid-template-columns:minmax(110px,.7fr) minmax(190px,1.3fr)!important;padding:13px 22px calc(13px + env(safe-area-inset-bottom));margin-top:0;background:var(--paper);border-top:2px solid var(--ink);box-shadow:0 -10px 24px rgba(16,16,16,.14)}
.identity-dialog-actions .btn{min-height:50px}
.identity-dialog-actions #useAnonymousBtn,.identity-dialog-actions #saveNameBtn{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%;padding-inline:18px}
.identity-dialog-actions #useAnonymousBtn[hidden],.identity-dialog-actions #saveNameBtn[hidden]{display:none!important}
.legal-receipt-row{align-items:center!important}.legal-policy-links{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap}.legal-policy-links a{color:var(--x);font-weight:950}.legal-receipt-badge{flex:0 0 auto;border:1.5px solid var(--ink);border-radius:999px;background:#fff;padding:6px 9px;font-size:9px;font-weight:1000;text-transform:uppercase;letter-spacing:.05em}.legal-receipt-badge.accepted{background:var(--lime)}
/* Equal-weight rule diagrams: every live piece uses the same footprint. */
.how-sheet .premium-how{--rule-piece:30px}
.how-sheet .premium-how .rule-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.how-sheet .premium-how .rule-tile{display:grid;min-width:0;padding:8px 10px!important;grid-template-rows:1fr auto;align-items:stretch}
.how-sheet .premium-how .rule-line,.how-sheet .premium-how .rule-marks{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:var(--rule-piece);margin-top:18px}
.how-sheet .premium-how .rule-line{grid-template-columns:none}
.how-sheet .premium-how .rule-line span,.how-sheet .premium-how .rule-mark{box-sizing:border-box;flex:0 0 var(--rule-piece);width:var(--rule-piece);height:var(--rule-piece);aspect-ratio:1;border-radius:50%;font-size:15px}
.how-sheet .premium-how .rule-line span{border:2px solid var(--ink)}
.how-sheet .premium-how .rule-mark{border-width:2px}
.how-sheet .premium-how .rule-arrow{width:30px;text-align:center;font-size:25px;line-height:1}
@media(max-width:700px){.how-sheet .premium-how{--rule-piece:30px}.how-sheet .premium-how .rule-line,.how-sheet .premium-how .rule-marks{gap:6px;min-width:174px;margin-top:0}.how-sheet .premium-how .rule-line span,.how-sheet .premium-how .rule-mark{font-size:11px}.how-sheet .premium-how .rule-arrow{width:22px;font-size:19px}}
@media(max-width:900px){
  .how-sheet .premium-how{--rule-piece:30px}
  .how-sheet .premium-how .rule-grid{grid-template-columns:1fr}
  .how-sheet .premium-how .rule-tile{min-height:auto;padding:14px 4px!important;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;align-items:end;gap:14px}
  .how-sheet .premium-how .rule-tile + .rule-tile{border-left:0;border-top:1px solid #d9d0c2}
  .how-sheet .premium-how .rule-line,.how-sheet .premium-how .rule-marks{gap:6px;min-width:174px;margin-top:0;justify-content:flex-end}
  .how-sheet .premium-how .rule-line span,.how-sheet .premium-how .rule-mark{font-size:11px}
  .how-sheet .premium-how .rule-arrow{width:22px;font-size:19px}
}
.identity-dialog-actions [hidden]{display:none!important}
@media(max-width:520px){
  #nameDialog{width:min(100vw - 14px,760px)!important;height:96dvh!important;max-height:96dvh!important}
  #nameDialog .dialog-body{height:100%!important;max-height:100%!important}
  .identity-dialog-scroll{padding:18px 14px 14px}
  .identity-tab{font-size:10px;min-height:43px}
  .identity-dialog-actions{padding-left:14px;padding-right:14px;grid-template-columns:.75fr 1.25fr!important}
}
@media(max-width:360px){.identity-dialog-actions{grid-template-columns:1fr!important}.identity-dialog-actions .btn{min-height:45px}}

/* ── #gameplay-polish-v30 ── */
/* Streamlined gameplay: one rivalry rail, board-first hierarchy, quiet utilities. */
#gameWrap{max-width:1180px;margin:0 auto}
#gamePanel.game-shell{grid-template-columns:minmax(0,1fr);gap:14px}
#gamePanel .match-head{display:grid;grid-template-columns:minmax(0,1fr) 260px minmax(0,1fr);gap:0;align-items:stretch;max-width:940px;width:100%;margin:0 auto;border:3px solid var(--ink);border-radius:28px;overflow:hidden;background:var(--paper);box-shadow:0 5px 0 rgba(16,16,16,.09)}
#gamePanel .player{min-height:104px;padding:17px 22px;display:grid;align-content:center;gap:5px;border:0!important;border-radius:0!important;background:color-mix(in srgb,var(--x) 88%,white);color:var(--ink)}
#gamePanel .player.right{background:color-mix(in srgb,var(--o) 88%,white);text-align:right}
#gamePanel .player.active{box-shadow:inset 0 -7px 0 var(--lime)!important}
#gamePanel .player .name{font-size:25px!important;line-height:1;font-weight:1000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gamePanel .player .sub{font-size:11px!important;font-weight:900;opacity:.78;text-transform:uppercase;letter-spacing:.055em}
#gamePanel .live-pips{display:flex;gap:7px;margin-top:5px}
#gamePanel .player.right .live-pips{justify-content:flex-end}
#gamePanel .live-pips .pip{width:15px!important;height:15px!important;border:2px solid var(--ink)!important;background:transparent!important}
#gamePanel .live-pips .pip.fill.x{background:var(--ink)!important}
#gamePanel .live-pips .pip.fill.o{background:var(--ink)!important}
#gamePanel .rivalry{order:0;display:grid;place-items:center;align-content:center;min-height:104px;padding:12px 16px;border-left:3px solid var(--ink);border-right:3px solid var(--ink);background:var(--ink);color:#fff;text-align:center}
#gamePanel .rivalry .label{font-size:12px!important;color:#ddd!important;letter-spacing:.14em}
#gamePanel .scoreline{font-size:34px!important;line-height:1!important;margin:2px 0}
#gamePanel .scoreline i{color:#fff!important;padding:0 9px}
#gamePanel .round-label{font-size:12px!important;color:var(--lime)!important;letter-spacing:.12em}
#gamePanel .rivalry-streak{font-size:9px!important;color:#ddd!important;margin-top:3px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
#gamePanel>.status{order:2;max-width:740px;width:100%;margin:0 auto;padding:14px 22px;border:3px solid var(--ink);border-radius:999px;background:var(--paper);text-align:center;box-shadow:none}
#gamePanel>.status strong{font-size:24px!important;line-height:1!important}
#gamePanel>.status small{display:block;margin-top:4px;font-size:12px!important;color:var(--muted)}
#gamePanel>.coach-tip{order:4;max-width:740px;margin:0 auto;text-align:center;font-size:11px}
#gamePanel>.board-card{order:1;display:grid;grid-template-columns:minmax(0,760px) 190px;align-items:center;justify-content:center;gap:24px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#gamePanel .board-stage{grid-column:1;grid-row:1}
#gamePanel .board{border:4px solid var(--ink)!important;border-radius:23px!important;overflow:hidden;background:var(--paper);box-shadow:0 7px 0 rgba(16,16,16,.08)}
#gamePanel .board-foot{grid-column:2;grid-row:1;display:grid!important;gap:15px;align-content:center;padding:20px 16px!important;border:3px solid var(--ink);border-radius:22px;background:var(--paper);font-size:11px!important;line-height:1.35;text-transform:none!important}
#gamePanel .board-foot::before{content:"LIVE SIX";display:block;padding-bottom:11px;border-bottom:2px solid var(--ink);font-size:17px;font-weight:1000;letter-spacing:.08em;text-align:center}
#gamePanel .expiry-key,#gamePanel .live-key{display:block!important}
#gamePanel .live-key{font-weight:1000;color:var(--x)}
#gamePanel>.game-actions{order:3;max-width:740px;width:100%;margin:0 auto}
#gamePanel .utility-actions{margin:0;gap:8px}
#gamePanel .utility-actions .btn{min-height:42px;padding:8px 17px;font-size:11px}
#gamePanel>.reactions-wrap{order:5}
#gamePanel .reaction.taunt{width:auto;height:auto;min-height:38px;padding:7px 12px;border-radius:999px;font-size:11px;font-weight:950;white-space:nowrap}
@media(max-width:540px){#gamePanel .reactions-wrap{gap:6px;margin-top:7px}#gamePanel .reactions-label{font-size:8px}#gamePanel .reactions{gap:5px}#gamePanel .reaction.taunt{min-height:34px;padding:6px 9px;font-size:9px}.reaction-bubble.text{font-size:16px;padding:11px 16px}}

/* Premium match console: restrained surfaces, mark medallions, readable metadata. */
#gamePanel .match-head{grid-template-columns:minmax(0,1fr) 220px minmax(0,1fr);max-width:900px;padding:8px;background:var(--paper);border-width:2.5px;border-radius:25px;gap:8px;box-shadow:0 4px 0 rgba(16,16,16,.07)}
#gamePanel .player{position:relative;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:13px;min-height:91px;padding:13px 17px;border:2px solid #d8d0c4!important;border-radius:18px!important;background:color-mix(in srgb,var(--x) 8%,#fff);box-shadow:inset 0 4px 0 var(--x)}
#gamePanel .player.right{grid-template-columns:minmax(0,1fr) 48px;background:color-mix(in srgb,var(--o) 8%,#fff);box-shadow:inset 0 4px 0 var(--o);text-align:right}
#gamePanel .player::before{content:"X";grid-column:1;grid-row:1/4;align-self:center;width:44px;height:44px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:var(--x);color:#fff;font-size:25px;font-weight:1000;line-height:1}
#gamePanel .player.right::before{content:"O";grid-column:2;background:var(--o)}
#gamePanel .player .name,#gamePanel .player .sub,#gamePanel .player .live-pips{grid-column:2}
#gamePanel .player.right .name,#gamePanel .player.right .sub,#gamePanel .player.right .live-pips{grid-column:1}
#gamePanel .player .name{font-size:20px!important;letter-spacing:.015em}
#gamePanel .player .sub{font-size:9px!important;color:#716a62!important;opacity:1;letter-spacing:.075em}
#gamePanel .live-pips{gap:5px;margin-top:4px}
#gamePanel .live-pips .pip{width:11px!important;height:11px!important;border-width:1.7px!important}
#gamePanel .live-pips .pip.fill.x{background:var(--x)!important;border-color:var(--ink)!important}
#gamePanel .live-pips .pip.fill.o{background:var(--o)!important;border-color:var(--ink)!important}
#gamePanel .player.active{border-color:var(--ink)!important;box-shadow:inset 0 4px 0 var(--x),0 0 0 3px color-mix(in srgb,var(--lime) 65%,transparent)!important}
#gamePanel .player.right.active{box-shadow:inset 0 4px 0 var(--o),0 0 0 3px color-mix(in srgb,var(--lime) 65%,transparent)!important}
#gamePanel .rivalry{min-height:91px;padding:10px 12px;border:0;border-radius:18px;background:var(--ink)}
#gamePanel .rivalry .label{font-size:9px!important;letter-spacing:.16em;color:#cfcac2!important}
#gamePanel .scoreline{font-size:28px!important;margin:3px 0}
#gamePanel .scoreline i{font-size:18px;padding:0 7px;opacity:.8}
#gamePanel .round-label{font-size:10px!important;letter-spacing:.1em}
#gamePanel .rivalry-streak{font-size:8px!important;max-width:185px;color:#bdb7ae!important}

/* Turn state is the only colored surface; inactive players stay calm and neutral. */
#gamePanel .player,#gamePanel .player.right{grid-template-columns:58px minmax(0,1fr);column-gap:14px;background:var(--paper);border:2px solid var(--ink)!important;box-shadow:none!important}
#gamePanel .player.right{grid-template-columns:minmax(0,1fr) 58px}
#gamePanel .player.active{background:color-mix(in srgb,var(--x) 9%,#fff);box-shadow:inset 5px 0 0 var(--x),inset 0 5px 0 var(--x)!important}
#gamePanel .player.right.active{background:color-mix(in srgb,var(--o) 9%,#fff);box-shadow:inset -5px 0 0 var(--o),inset 0 5px 0 var(--o)!important}
#gamePanel .player::before{justify-self:center}
#gamePanel .player .name{align-self:end}
#gamePanel .player .sub{align-self:center;white-space:nowrap}

/* Live-six guidance is supporting copy, not a competing card. */
#gamePanel>.board-card{grid-template-columns:minmax(0,760px);gap:10px}
#gamePanel .board-stage{grid-column:1;grid-row:1}
#gamePanel .board-foot{grid-column:1;grid-row:2;display:flex!important;align-items:center;justify-content:center;gap:14px;width:100%;min-height:42px;padding:8px 14px!important;border:2px solid #cfc7bb;border-radius:14px;background:color-mix(in srgb,var(--paper) 86%,#fff);font-size:10px!important}
#gamePanel .board-foot::before{content:"LIVE SIX";flex:0 0 auto;padding:0 14px 0 0;border:0;border-right:2px solid var(--ink);font-size:11px;font-weight:1000;letter-spacing:.1em}
#gamePanel .expiry-key,#gamePanel .live-key{width:auto!important;margin:0!important}
#gamePanel .expiry-key{color:var(--muted)}
#gamePanel .live-key{color:var(--x)}

/* Balanced match rail: neutral peers, with a single top-edge turn signal. */
#gamePanel .match-head{grid-template-columns:minmax(0,1fr) 174px minmax(0,1fr);max-width:940px;padding:8px;gap:10px}
#gamePanel .player,#gamePanel .player.right{min-height:96px;padding:13px 18px;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;background:var(--paper);border:2px solid var(--ink)!important;border-radius:19px!important;box-shadow:none!important}
#gamePanel .player.right{grid-template-columns:minmax(0,1fr) 58px}
#gamePanel .player.active{padding-top:13px;background:color-mix(in srgb,var(--x) 9%,#fff);box-shadow:inset 0 6px 0 var(--x)!important}
#gamePanel .player.right.active{background:color-mix(in srgb,var(--o) 9%,#fff);box-shadow:inset 0 6px 0 var(--o)!important}
#gamePanel .player.active::after{content:none}
#gamePanel .player::before{width:48px;height:48px;font-size:26px}
#gamePanel .player .name{align-self:end;font-size:21px!important;line-height:1.05}
#gamePanel .player .sub{align-self:center;font-size:9px!important;line-height:1.2;white-space:nowrap}
#gamePanel .live-pips{align-self:start;margin-top:5px;gap:6px}
#gamePanel .live-pips .pip{width:13px!important;height:13px!important;border-width:2px!important}
#gamePanel .rivalry{min-height:96px;border-radius:19px}

/* One useful Live Six sentence; no duplicate label or competing rule card. */
#gamePanel .board-foot{min-height:38px;padding:7px 10px 1px!important;border:0;background:transparent;justify-content:center;font-size:11px!important;text-transform:none!important}
#gamePanel .board-foot::before{display:none!important;content:none!important}
#gamePanel .expiry-key{display:flex!important;align-items:center;gap:9px;color:var(--muted)}
#gamePanel .expiry-key strong{color:var(--ink)}
#gamePanel .live-key{display:none!important}
#gamePanel .expiry-key .dash-sample{width:20px;height:20px;flex:0 0 20px;border-radius:50%}

dialog.game-result-dialog{width:min(700px,calc(100vw - 28px));max-width:700px;padding:0;border:0;border-radius:28px;background:transparent;overflow:visible}
dialog.game-result-dialog::backdrop{background:rgba(16,16,16,.72);backdrop-filter:blur(2px)}
.result-close{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;padding:0}
.result-close:hover{background:var(--lime)}.result-close:focus-visible{outline:3px solid var(--x);outline-offset:2px}
.game-result-card{position:relative;padding:22px 26px 20px;border:4px solid var(--ink);border-radius:28px;background:var(--paper);box-shadow:10px 11px 0 var(--ink);text-align:center}
.result-kicker{display:inline-flex;align-items:center;min-height:34px;padding:5px 17px;border:2px solid var(--ink);border-radius:999px;background:var(--lime);font-size:12px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}
.result-kicker.rivalry{background:var(--o);color:var(--ink)}
.result-kicker.bot{background:var(--ink);color:var(--lime)}
.game-result-card h2{margin:10px 0 2px;font-size:52px;line-height:.95;letter-spacing:-.035em;text-transform:uppercase}
.game-result-sub{margin:0 0 14px;color:var(--muted);font-size:15px;font-weight:850}
.result-score-rail{display:grid;grid-template-columns:1fr 150px 1fr;align-items:stretch;margin:0 4px 15px;border:3px solid var(--ink);border-radius:22px;overflow:hidden}
.result-side{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 15px;background:var(--x);font-size:18px;font-weight:1000;text-transform:uppercase}
.result-side.right{justify-content:flex-end;background:var(--o)}
.result-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:2px solid var(--ink);border-radius:50%;background:var(--paper);font-size:20px}.result-avatar{overflow:hidden}.result-avatar>img{width:100%;height:100%;object-fit:cover;background:#fff}.result-avatar>*:not(img):not(svg){transform:scale(.92)}.result-mark{width:62%;height:62%;fill:none;stroke-width:3.4;stroke-linecap:round}.result-mark.x{stroke:#613ef0}.result-mark.o{stroke:#ef6455}
.result-score{display:grid;place-items:center;background:var(--ink);color:#fff;font-size:34px;font-weight:1000;letter-spacing:.05em}
.result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 4px 14px}
.result-stat{min-height:86px;display:grid;place-items:center;align-content:center;padding:10px 6px;border:2px solid var(--ink);border-radius:16px;background:#fff}
.result-stat small{font-size:10px;font-weight:1000;letter-spacing:.065em;text-transform:uppercase}
.result-stat strong{margin-top:4px;color:var(--x);font-size:25px;line-height:1}
.result-context{margin:0 4px 14px;padding:13px 15px;border:2px solid var(--ink);border-radius:17px;background:#fff}
.result-context-title{font-size:10px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}
.result-context-copy{margin-top:5px;font-size:13px;font-weight:850;color:var(--muted)}
.result-history{display:flex;justify-content:center;gap:10px;margin-top:9px}
.result-history i{width:33px;height:33px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:var(--x);color:#fff;font-style:normal;font-weight:1000}
.result-history i.loss{background:var(--o)}
.result-progress{height:13px;margin-top:10px;border:2px solid var(--ink);border-radius:999px;overflow:hidden;background:#eee}
.result-progress i{display:block;height:100%;background:var(--x)}
.result-turning{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;text-align:left}
.result-turning-mark{width:66px;height:66px;display:grid;place-items:center;border:3px solid var(--ink);border-radius:18px;background:var(--lime);font-size:31px;font-weight:1000}
.result-actions{display:grid;gap:9px}
.result-actions .result-primary{width:100%;min-height:58px;border:3px solid var(--ink);border-radius:16px;background:var(--x);color:#fff;font-size:20px;font-weight:1000;text-transform:uppercase}
.result-actions .result-primary.black{background:var(--ink);color:#fff}
.result-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.result-actions-row .btn{min-height:48px}
.result-home{margin-top:2px}

@media(max-width:820px){
 #gamePanel .match-head{grid-template-columns:1fr 114px 1fr;padding:6px;gap:5px;border-radius:20px}
 #gamePanel .player{grid-template-columns:38px minmax(0,1fr);min-height:76px;padding:10px 8px;column-gap:8px}.game-shell .player.right{grid-template-columns:minmax(0,1fr) 38px}.game-shell .player::before{width:31px;height:31px;font-size:17px}.game-shell .player .name{font-size:14px!important}.game-shell .player .sub{font-size:7px!important}
 #gamePanel .rivalry{min-height:76px;padding:8px 5px}.game-shell .rivalry .label,.game-shell .rivalry-streak{display:none}.game-shell .scoreline{font-size:23px!important}.game-shell .round-label{font-size:8px!important}
 #gamePanel>.board-card{grid-template-columns:1fr;gap:9px}
 #gamePanel .board-stage{grid-column:1;grid-row:1}
 #gamePanel .board-foot{grid-column:1;grid-row:2;padding:8px 11px!important}
 #gamePanel .board-foot::before{padding-right:10px;font-size:10px}
 #gamePanel>.status strong{font-size:20px!important}
 .game-result-card{padding:18px 15px 16px}.game-result-card h2{font-size:39px}
 .result-score-rail{grid-template-columns:1fr 88px 1fr}.result-side{padding:9px 8px;font-size:12px}.result-avatar{width:34px;height:34px;flex-basis:34px}
 .result-score{font-size:24px}.result-stats{grid-template-columns:1fr 1fr}.result-stat{min-height:72px}
}
@media(max-width:480px){
 #gamePanel .match-head{grid-template-columns:1fr 92px 1fr}#gamePanel .player{grid-template-columns:29px minmax(0,1fr);padding:8px 6px;column-gap:5px}.game-shell .player.right{grid-template-columns:minmax(0,1fr) 29px}.game-shell .player::before{width:25px;height:25px;font-size:14px}.game-shell .player .name{font-size:12px!important}
 #gamePanel .player .sub{display:none}#gamePanel .live-pips{gap:3px}#gamePanel .live-pips .pip{width:7px!important;height:7px!important;border-width:1.3px!important}
 #gamePanel .board-foot{flex-wrap:wrap;gap:5px 9px;font-size:8px!important}#gamePanel .board-foot::before{font-size:9px}.game-shell .expiry-key .dash-sample{width:14px!important;height:14px!important}
 #gamePanel>.status{padding:11px 14px}#gamePanel>.status strong{font-size:17px!important}
 .game-result-card{box-shadow:6px 7px 0 var(--ink)}.game-result-card h2{font-size:34px}.game-result-sub{font-size:12px}
 .result-side span:not(.result-avatar){overflow:hidden;text-overflow:ellipsis}.result-actions-row{grid-template-columns:1fr}
}

/* ── #shared-live-foundation-v30-3 ── */
/* Daily and Achievements share equal space; LIVE is their persistent full-width foundation. */
#home .premium-progress-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
}
#home .premium-progress-grid>.daily-progress{
  grid-column:1!important;
  grid-row:1!important;
}
#home .premium-progress-grid>.achievement-progress{
  grid-column:2!important;
  grid-row:1!important;
  padding-bottom:22px!important;
  border-left:2.5px solid var(--ink)!important;
}
#home .premium-progress-grid>.live-pulse{
  grid-column:1/-1!important;
  grid-row:2!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px 18px!important;
  border:0!important;
  border-top:2.5px solid var(--ink)!important;
  border-radius:0 0 21px 21px!important;
  background:#151515!important;
  color:#fff!important;
}
#home .premium-progress-grid>.live-pulse .live-pulse-left{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
#home .premium-progress-grid>.live-pulse .live-pulse-top{min-width:max-content!important}
#home .premium-progress-grid>.live-pulse .live-badge{
  background:var(--lime)!important;
  color:var(--ink)!important;
}
#home .premium-progress-grid>.live-pulse strong{
  min-width:0!important;
  max-width:none!important;
  overflow:hidden!important;
  color:#fff!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#home .premium-progress-grid>.live-pulse .live-records{
  margin-left:14px!important;
  color:var(--lime)!important;
  white-space:nowrap!important;
}
#home .live-dot{
  animation:fives-live-pulse 1.6s ease-in-out infinite!important;
  transform-origin:center!important;
}
@keyframes fives-live-pulse{
  0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 0 0 rgba(21,21,21,.38)}
  50%{opacity:.42;transform:scale(.72);box-shadow:0 0 0 5px rgba(21,21,21,0)}
}

@media(max-width:700px){
  #home .premium-progress-grid>.progress-card{
    min-height:244px!important;
    padding:16px 13px 18px!important;
  }
  #home .premium-progress-grid>.achievement-progress{padding:16px 13px 18px!important}
  #home .daily-progress>#dailyProgressTitle,
  #home .daily-progress>.daily-difficulty{align-self:flex-start!important}
  #home .week-dots{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    justify-items:center!important;
    gap:0!important;
    padding-inline:3px!important;
  }
  #home .achievement-mini-badges{
    display:grid!important;
    grid-template-columns:repeat(3,31px)!important;
    grid-auto-rows:31px!important;
    align-content:center!important;
    justify-content:start!important;
    gap:6px 9px!important;
    min-height:68px!important;
    margin:11px 0 8px!important;
  }
  #home .achievement-mini-badges .achievement-badge.mini{
    width:31px!important;
    height:31px!important;
    flex-basis:31px!important;
  }
  #home .premium-progress-grid>.live-pulse{
    min-height:52px!important;
    padding:7px 11px!important;
    border-radius:0 0 18px 18px!important;
  }
  #home .premium-progress-grid>.live-pulse .live-pulse-left{gap:9px!important}
  #home .premium-progress-grid>.live-pulse strong{font-size:10px!important}
  #home .premium-progress-grid>.live-pulse .live-records{margin-left:9px!important;font-size:8px!important}
}
@media(max-width:470px){
  #home .premium-progress-grid>.progress-card,
  #home .premium-progress-grid>.achievement-progress{min-height:238px!important;padding:14px 11px 17px!important}
  #home #dailyProgressTitle{font-size:14px!important;padding:6px 8px!important}
  #home .daily-difficulty{max-width:100%!important;padding:4px 6px 4px 5px!important;font-size:7px!important;letter-spacing:.015em!important}
  #home .week-dots{padding-inline:1px!important}
  #home .week-dot{width:13px!important;height:13px!important;flex-basis:13px!important}
  #home .achievement-home-heading{gap:5px!important}
  #home .achievement-home-heading .premium-card-label{font-size:10px!important}
  #home #achievementProgressTitle{font-size:10px!important}
  #home #achievementProgressText{font-size:8px!important;line-height:1.2!important}
  #home .achievement-mini-badges{grid-template-columns:repeat(3,28px)!important;grid-auto-rows:28px!important;gap:5px 8px!important;min-height:61px!important}
  #home .achievement-mini-badges .achievement-badge.mini{width:28px!important;height:28px!important;flex-basis:28px!important}
  #home .premium-progress-grid>.live-pulse{grid-template-columns:minmax(0,1fr) auto!important;padding:7px 9px!important}
  #home .premium-progress-grid>.live-pulse .live-badge{padding:5px 8px!important;font-size:7px!important}
  #home .premium-progress-grid>.live-pulse strong{font-size:9px!important}
  #home .premium-progress-grid>.live-pulse .live-records{margin-left:7px!important;font-size:7px!important}
}
@media(max-width:340px){
  #home .premium-progress-grid{grid-template-columns:1fr!important}
  #home .premium-progress-grid>.daily-progress{grid-column:1!important;grid-row:1!important}
  #home .premium-progress-grid>.achievement-progress{grid-column:1!important;grid-row:2!important;border-left:0!important;border-top:2.5px solid var(--ink)!important}
  #home .premium-progress-grid>.live-pulse{grid-column:1!important;grid-row:3!important}
}
@media(prefers-reduced-motion:reduce){#home .live-dot{animation:none!important}}

/* Final homepage legibility pass: one centered Daily status and clearer LIVE copy. */
#home .daily-status-stack{
  display:grid!important;
  justify-items:center!important;
  align-content:start!important;
  width:100%!important;
}
#home .daily-status-stack>#dailyProgressTitle{
  align-self:auto!important;
  margin-bottom:8px!important;
}
#home .daily-status-stack>.daily-difficulty{
  align-self:auto!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:10px!important;
  letter-spacing:.045em!important;
}
#home .daily-status-stack>.daily-difficulty .daily-difficulty-dot{
  width:13px!important;
  height:13px!important;
  flex-basis:13px!important;
  border-width:2px!important;
}
#home .daily-status-stack>.daily-difficulty[data-level="standard"] .daily-difficulty-dot{background:#5c7cf0!important}
#home .daily-status-stack>.daily-difficulty[data-level="hard"] .daily-difficulty-dot{background:var(--o)!important}
#home .daily-status-stack>.daily-difficulty[data-level="expert"] .daily-difficulty-dot{background:var(--x)!important}
#home .premium-progress-grid>.live-pulse strong{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:750!important;
  letter-spacing:0!important;
  line-height:1.2!important;
}
#home .premium-progress-grid>.live-pulse .live-records{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.025em!important;
}
.bot-sheet-close{
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  transition:background-color .14s ease,color .14s ease,transform .14s ease,box-shadow .14s ease!important;
}
.bot-sheet-close>span{display:block;line-height:1;transform:translateY(-1px)}
.bot-sheet-close:hover,.bot-sheet-close:focus-visible{background:var(--lime)!important;color:var(--ink)!important;box-shadow:0 0 0 4px rgba(214,239,64,.32)!important}
.bot-sheet-close:active{transform:scale(.94)!important}

@media(max-width:700px){
  #home .daily-status-stack>#dailyProgressTitle{margin-bottom:7px!important}
  #home .daily-status-stack>.daily-difficulty{font-size:8px!important;gap:6px!important}
  #home .daily-progress>.daily-progress-rule{margin-top:10px!important;margin-bottom:11px!important}
  #home .premium-progress-grid>.live-pulse strong{font-size:11px!important}
  #home .premium-progress-grid>.live-pulse .live-records{font-size:9px!important}
}
@media(max-width:470px){
  #home .premium-progress-grid>.progress-card,
  #home .premium-progress-grid>.achievement-progress{min-height:224px!important}
  #home .daily-status-stack>#dailyProgressTitle{font-size:14px!important}
  #home .daily-status-stack>.daily-difficulty{font-size:8px!important;letter-spacing:.025em!important}
  #home .daily-status-stack>.daily-difficulty .daily-difficulty-dot{width:12px!important;height:12px!important;flex-basis:12px!important}
  #home .premium-progress-grid>.live-pulse strong{font-size:11px!important}
  #home .premium-progress-grid>.live-pulse .live-records{font-size:10px!important}
}

/* Identity footer and legal validation remain visible and actionable on phones. */
.identity-action-error{
  grid-column:1/-1;
  margin:0 0 2px;
  padding:9px 11px;
  border:2px solid #a43b2d;
  border-radius:11px;
  background:#fff0ed;
  color:#822f24;
  font-size:10px;
  font-weight:1000;
  line-height:1.25;
  text-align:center;
}
.legal-consent-error{
  margin-top:11px;
  padding:9px 10px;
  border-radius:10px;
  background:#fff0ed;
  color:#822f24;
  font-size:10px;
  font-weight:1000;
  line-height:1.3;
}
#legalConsentBox.needs-attention{
  border-color:#a43b2d!important;
  background:#fff8f5!important;
  box-shadow:0 0 0 5px rgba(164,59,45,.14)!important;
  animation:legal-attention .32s ease-out both;
}
#legalConsentBox.needs-attention label:first-child{color:#6f241c}
@keyframes legal-attention{0%{transform:translateX(0)}30%{transform:translateX(-4px)}65%{transform:translateX(4px)}100%{transform:translateX(0)}}
@media(max-width:520px){
  .identity-dialog-actions{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)!important;grid-auto-flow:row dense!important;gap:9px!important}
  .identity-dialog-actions .btn{grid-row:auto!important;width:100%!important;min-width:0!important;min-height:50px!important}
  .identity-dialog-actions #saveNameBtn,
  .identity-dialog-actions #useAnonymousBtn{grid-column:2!important;grid-row:auto!important;order:1!important}
  .identity-dialog-actions .btn[value="cancel"]{grid-column:1!important;grid-row:auto!important;order:2!important}
  .identity-action-error{grid-column:1/-1!important;grid-row:auto!important;order:0!important}
}
@media(max-width:360px){
  .identity-dialog-actions{grid-template-columns:1fr!important}
  .identity-dialog-actions #saveNameBtn,.identity-dialog-actions #useAnonymousBtn,.identity-dialog-actions .btn[value="cancel"]{grid-column:1!important}
}
@media(prefers-reduced-motion:reduce){#legalConsentBox.needs-attention{animation:none!important}}

/* Mobile bot details: a dismissible bottom sheet replaces the long inline scroll. */
.bot-detail-sheet{
  width:min(100%,620px)!important;
  max-width:none!important;
  height:auto!important;
  max-height:min(88dvh,760px)!important;
  margin:auto auto 0!important;
  padding:0!important;
  border:0!important;
  border-radius:24px 24px 0 0!important;
  background:transparent!important;
  color:var(--ink)!important;
  overflow:visible!important;
}
.bot-detail-sheet::backdrop{background:rgba(16,16,16,.58);backdrop-filter:blur(3px)}
.bot-detail-sheet[open]{animation:bot-sheet-up .24s cubic-bezier(.2,.85,.25,1) both}
.bot-detail-sheet.closing{animation:bot-sheet-down .2s ease-in both}
.bot-sheet-shell{
  display:flex;
  flex-direction:column;
  max-height:min(88dvh,760px);
  overflow:hidden;
  border:2.5px solid var(--ink);
  border-bottom:0;
  border-radius:24px 24px 0 0;
  background:var(--paper);
  box-shadow:0 -16px 50px rgba(16,16,16,.24);
  transform:translateY(var(--bot-sheet-drag,0));
  transition:transform .18s ease;
}
.bot-detail-sheet.dragging .bot-sheet-shell{transition:none}
.bot-sheet-toolbar{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:52px;
  padding:6px 12px;
  border-bottom:1.5px solid #d7cec1;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.bot-sheet-toolbar:active{cursor:grabbing}
.bot-sheet-handle{grid-column:2;display:block;width:48px;height:5px;border-radius:999px;background:#aaa39a}
.bot-sheet-label{grid-column:1;grid-row:1;color:#70695f;font-size:9px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}
.bot-sheet-close{grid-column:3;grid-row:1;justify-self:end;width:36px;height:36px;padding:0;border:2px solid var(--ink);border-radius:50%;background:#fff;color:var(--ink);font-size:24px;font-weight:800;line-height:1;cursor:pointer}
.bot-sheet-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 14px calc(14px + env(safe-area-inset-bottom))}
.bot-detail-sheet .bot-detail{
  grid-template-columns:1fr!important;
  grid-template-areas:"identity" "stats" "compare" "action"!important;
  gap:10px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.bot-detail-sheet .bot-detail-identity{
  flex-direction:row!important;
  justify-content:flex-start!important;
  gap:13px!important;
  min-height:82px!important;
  padding:0 0 10px!important;
  border:0!important;
  border-bottom:1.5px solid #d7cec1!important;
  text-align:left!important;
}
.bot-detail-sheet .bot-detail-identity img{flex:0 0 78px!important;width:78px!important;height:78px!important}
.bot-detail-sheet .bot-detail-identity strong{font-size:24px!important}
.bot-detail-sheet .bot-detail-identity small{margin-top:5px!important;font-size:12px!important}
.bot-detail-sheet .bot-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.bot-detail-sheet .bot-detail-stats>span{min-height:58px!important;padding:7px!important}
.bot-detail-sheet .bot-detail-stats small{font-size:8px!important}
.bot-detail-sheet .bot-detail-stats strong{font-size:18px!important}
.bot-detail-sheet .bot-detail-compare{padding:8px 10px!important}
.bot-detail-sheet .bot-detail-cta{position:sticky;bottom:0;min-height:52px!important;margin-top:2px;font-size:13px!important}
.bot-detail-sheet[data-selected="medium"] .bot-detail{--bot-detail-accent:var(--o)}
.bot-detail-sheet[data-selected="sharp"] .bot-detail{--bot-detail-accent:var(--x)}
.bot-detail-sheet[data-selected="brutal"] .bot-detail{--bot-detail-accent:var(--lime);color:var(--lime);background:#151515!important;padding:10px!important;border-radius:16px!important}
.bot-detail-sheet[data-selected="brutal"] .bot-detail-identity{border-color:#555b42!important;background:#292a27!important;border-radius:13px!important;padding:8px!important}
.bot-detail-sheet[data-selected="brutal"] .bot-detail-identity small{color:var(--lime)!important}
.bot-detail-sheet[data-selected="brutal"] .bot-detail-stats>span,
.bot-detail-sheet[data-selected="brutal"] .bot-detail-compare{border-color:#656958!important;background:#20201f!important}
.bot-detail-sheet[data-selected="brutal"] .bot-detail-stats small,
.bot-detail-sheet[data-selected="brutal"] .bot-detail-compare b{color:#fff!important}
.bot-detail-sheet[data-selected="brutal"] .bot-detail-cta{border-color:var(--lime)!important;background:#151515!important;color:var(--lime)!important}
@keyframes bot-sheet-up{from{opacity:.35;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}
@keyframes bot-sheet-down{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}
@media(min-width:521px){.bot-detail-sheet{display:none!important}}
@media(max-width:520px){#home #botDetailHome+.bot-detail{display:none!important}}
@media(prefers-reduced-motion:reduce){.bot-detail-sheet[open],.bot-detail-sheet.closing{animation:none!important}.bot-sheet-shell{transition:none!important}}

/* ── #records-color-theme-v30-4 ── */
/* Records use the game palette to make each record family easier to scan. */
#recordsDialog .records-dialog-body{box-shadow:inset 0 7px 0 var(--x)}
#recordsDialog .records-head h2{color:var(--x)}
#recordsDialog .records-your-card{
  background:linear-gradient(135deg,var(--lime) 0%,#e7f879 100%);
  box-shadow:5px 5px 0 rgba(101,71,255,.22)
}
#recordsDialog .records-your-stats span:nth-child(1),
#recordsDialog .records-your-stats span:nth-child(3){color:#4f35d8}
#recordsDialog .records-your-stats span:nth-child(2),
#recordsDialog .records-your-stats span:nth-child(4),
#recordsDialog .records-your-stats span:nth-child(5){color:#b43f32}
#recordsDialog .records-section{--record-accent:var(--x);--record-tint:#f3efff;--record-shadow:rgba(101,71,255,.16)}
#recordsDialog .records-section:nth-child(2){--record-accent:var(--o);--record-tint:#fff0ec;--record-shadow:rgba(255,93,76,.16)}
#recordsDialog .records-section-head{border-bottom:3px solid var(--record-accent);padding:0 2px 7px}
#recordsDialog .records-section-head strong{color:var(--record-accent)}
#recordsDialog .record-group{border-color:var(--record-accent);box-shadow:3px 3px 0 var(--record-shadow)}
#recordsDialog .record-group-title{background:var(--record-tint);border-bottom-color:var(--record-accent);color:var(--record-accent)}
#recordsDialog .record-rank{color:var(--record-accent)}
#recordsDialog .record-row:first-of-type{background:linear-gradient(90deg,var(--record-tint),#fff 55%)}
#recordsDialog .record-row.you{background:var(--record-tint);box-shadow:inset 4px 0 0 var(--record-accent)}
#recordsDialog .leaderboard-close{display:grid;place-items:center;line-height:1;color:var(--x)}
#recordsDialog .leaderboard-close:hover,#recordsDialog .leaderboard-close:focus-visible{background:var(--x);color:#fff;box-shadow:0 0 0 3px rgba(101,71,255,.2)}
@media(max-width:540px){
  #recordsDialog{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;box-sizing:border-box!important}
  #recordsDialog .records-dialog-body{box-shadow:inset 0 5px 0 var(--x)}
  #recordsDialog .record-group{box-shadow:2px 2px 0 var(--record-shadow)}
}

/* ── #mobile-game-fit-v30-5 ── */
/* Keep the complete play surface usable when mobile browser chrome shortens the viewport. */
@media(max-width:540px){
  .site-footer,.footer-slogan{max-width:100%;min-width:0}
  .footer-slogan{white-space:normal;text-align:center;overflow-wrap:anywhere}
  #gameWrap.show{scroll-margin-top:0}
  #gamePanel.game-shell{gap:10px}
  #gamePanel .match-head{width:100%;max-width:100%}
  #gamePanel .player,#gamePanel .player.right{grid-template-columns:30px minmax(0,1fr)!important;column-gap:5px!important;min-height:66px!important;padding:6px 6px!important}
  #gamePanel .player.right{grid-template-columns:minmax(0,1fr) 30px!important}
  #gamePanel .player::before{width:26px!important;height:26px!important;font-size:15px!important;border-width:1.5px!important}
  #gamePanel .player .name{font-size:12px!important;letter-spacing:0!important}
  #gamePanel .player .sub{display:none!important}
  #gamePanel .live-pips{gap:3px!important;margin-top:3px!important}
  #gamePanel .live-pips .pip{width:7px!important;height:7px!important;border-width:1.25px!important}
  #gamePanel .rivalry{min-height:66px!important;padding:5px 3px!important}
  #gamePanel .scoreline{font-size:21px!important}
  #gamePanel .scoreline i{font-size:13px!important;padding:0 3px!important}
  #gamePanel .round-label{font-size:7px!important;line-height:1.15!important;letter-spacing:.06em!important}
  #gamePanel>.board-card{width:100%;max-width:100%;gap:5px}
  #gamePanel .board-stage{width:min(100%,80vw,300px);max-width:100%;margin-inline:auto}
  #gamePanel>.status{order:1;min-height:42px;padding:8px 12px}
  #gamePanel>.board-card{order:2}
  #gamePanel>.game-actions{order:3}
}
@media(max-width:540px) and (max-height:760px){
  #gamePanel .match-head{grid-template-columns:1fr 86px 1fr!important;padding:4px;gap:4px}
  #gamePanel .player,#gamePanel .player.right,#gamePanel .rivalry{min-height:66px!important}
  #gamePanel .player{padding:6px 5px!important}
  #gamePanel .board-stage{width:min(80vw,300px,calc(100dvh - 330px))}
  #gamePanel .board-foot{min-height:24px!important;padding:4px 8px 0!important}
  #gamePanel>.status{min-height:36px;padding:6px 10px}
  #gamePanel>.status strong{font-size:15px!important}
  #gamePanel>.status small{font-size:9px!important;margin-top:2px}
}
/* Some embedded/high-DPI iPhone previews expose device pixels as CSS pixels.
   Portrait geometry is the dependable fallback in that environment. */
@media(min-width:541px) and (max-width:1100px) and (orientation:portrait){
  #gamePanel.game-shell{gap:12px}
  #gamePanel .match-head{grid-template-columns:1fr 150px 1fr;max-width:760px;padding:6px;gap:6px;border-radius:22px}
  #gamePanel .player,#gamePanel .player.right,#gamePanel .rivalry{min-height:82px;padding:9px 10px}
  #gamePanel .player{grid-template-columns:42px minmax(0,1fr)}
  #gamePanel .player.right{grid-template-columns:minmax(0,1fr) 42px}
  #gamePanel .player::before{width:36px;height:36px;font-size:20px}
  #gamePanel .player .name{font-size:16px!important}
  #gamePanel .player .sub{font-size:8px!important}
  #gamePanel .live-pips .pip{width:9px!important;height:9px!important}
  #gamePanel .rivalry{padding:7px}
  #gamePanel .scoreline{font-size:25px!important}
  #gamePanel>.status{order:1;max-width:620px;padding:9px 14px}
  #gamePanel>.board-card{order:2;width:100%;grid-template-columns:1fr;gap:6px}
  #gamePanel .board-stage{width:min(54vw,500px,calc(100dvh - 440px));margin-inline:auto}
  #gamePanel .board-foot{grid-column:1;grid-row:2}
  #gamePanel>.game-actions{order:3;max-width:620px}
}

/* ── #fresh-winner-celebration ── */
.winner-burst{position:absolute;inset:0 8px auto;height:170px;overflow:hidden;border-radius:24px;pointer-events:none;z-index:2}
.winner-burst>span{position:absolute;top:7px;left:var(--start);width:5px;height:10px;border-radius:2px;background:var(--color);opacity:0;animation:winnerSpark 1.25s ease-out var(--delay) both}
.game-result-card.winner-celebrating{animation:winnerGlow 1.6s ease-out}
@keyframes winnerSpark{0%{opacity:0;transform:translate(0,-14px) rotate(0deg)}12%{opacity:.86}100%{opacity:0;transform:translate(var(--drift),138px) rotate(var(--turn))}}
@keyframes winnerGlow{0%,100%{border-color:var(--ink)}25%,60%{border-color:var(--x)}}
@media(prefers-reduced-motion:reduce){.winner-burst{display:none}.game-result-card.winner-celebrating{animation:none}}
