
  /* Deliberately dark-first, single-theme: a late-night gym under the fluorescents,
     hardwood and leather rather than a generic neon-on-black dashboard —
     warm near-black like a dim locker room, burnt-orange like a worn game
     ball, and a deep clay red carried over from old varsity ink for anything
     that needs to read as "down" or "danger". */
  :root{
    --bg:#09090b;
    --surface:#101014;
    --surface-2:#1a1a20;
    --ink:#F4EFE8;
    --muted:#978C81;
    --accent:#F5A623;
    --accent-2:#E13A4B;
    --accent-2-ink:#FF6B78;  /* clay red when it is text, not fill: keeps 4.5:1 on every surface */
    --good:#33C97A;
    --line:rgba(244,239,232,.10);
    --shadow:rgba(0,0,0,.55);
    --ease-out:cubic-bezier(.22,1,.36,1);
    /* Structure from DESIGN.md (4px spacing base, radius ladder, surface ladder); palette stays ours. */
    --surface-3:#232329;
    --line-strong:rgba(244,239,232,.18);
    --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px;
    --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-pill:999px;
    --nav-h:56px;
  }

  *{box-sizing:border-box;}
  html{color-scheme:dark; scroll-behavior:smooth; scroll-padding-top:72px;}
  body{margin:0; background:var(--bg); color:var(--ink); font-family:'Manrope',system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased;}
  /* Film grain behind everything (z-index:-1 keeps it under every panel, so text contrast is untouched). */
  body::before{content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.05;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");}
  button, a, input, select, label{touch-action:manipulation; -webkit-tap-highlight-color:rgba(245,166,35,.18);}
  ::selection{background:rgba(245,166,35,.35); color:var(--ink);}
  .skip-link{position:absolute; left:12px; top:-60px; z-index:100; padding:10px 16px; border-radius:10px; background:var(--accent); color:#1a1100; font:800 13px/1 'Sora',sans-serif; text-decoration:none; transition:top .15s var(--ease-out);}
  .skip-link:focus{top:10px;}
  h1,h2,h3{font-family:'Sora',system-ui,sans-serif; text-transform:uppercase; letter-spacing:.01em; text-wrap:balance; margin:0;}
  .mono{font-family:'IBM Plex Mono',ui-monospace,monospace; font-variant-numeric:tabular-nums;}
  .ovr-badge .ov, .pc-meta .pm-val, .total-value, .dp-mock-num, .draft-pick-num, .ds-pick, .tc-count b, .recap-tot b, .recap-val b, .sum-legacy b, .alloc-pts{font-variant-numeric:tabular-nums;}
  button{font-family:inherit;}
  button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}

  .scorebug{
    position:sticky; top:0; z-index:40; min-height:var(--nav-h);
    display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
    padding:8px max(clamp(14px,4vw,32px), env(safe-area-inset-right)) 8px max(clamp(14px,4vw,32px), env(safe-area-inset-left)); background:rgba(16,16,20,.86); border-bottom:1px solid var(--line);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  }
  .wordmark{display:flex; align-items:center; gap:10px;}
  .wordmark svg{flex:none;}
  .wordmark .wm-name{margin:0; font-family:'Sora',system-ui,sans-serif; text-transform:uppercase; letter-spacing:.01em; font-size:clamp(17px,3.2vw,24px); font-weight:900; line-height:1;}
  .wordmark span{display:block; font-size:10.5px; letter-spacing:.15em; color:var(--muted); font-weight:600;}
  .status-strip{display:none; align-items:center; gap:8px; flex-wrap:wrap;}
  .status-strip.show{display:flex;}
  .status-chip{
    font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600;
    padding:6px 11px; border-radius:999px; border:1px solid var(--line);
    background:var(--bg); color:var(--muted); white-space:nowrap;
  }
  .status-chip b{color:var(--ink);}
  /* Persistent top-right achievements button — lives in the sticky header
     so it's reachable from every screen, including the very first
     academy-offer choice, not just once a season dashboard exists. */
  .scorebug-challenges-btn{
    display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex:none;
    border-radius:50%; border:1px solid var(--line); background:var(--surface-2); color:var(--ink);
    cursor:pointer; margin-left:auto; transition:border-color .15s ease, color .15s ease, background-color .15s ease;
  }
  .scorebug-challenges-btn:hover{border-color:var(--accent); color:var(--accent); background:var(--surface-3);}
  .scorebug-challenges-btn svg{width:18px; height:18px;}
  .scorebug-challenges-btn.auth-btn{margin-left:8px;}
  .scorebug-challenges-btn.lang-btn{width:auto; min-width:40px; padding:0 12px; border-radius:var(--r-pill); margin-left:8px; font:700 12px/1 'IBM Plex Mono',monospace; letter-spacing:.06em; text-decoration:none;}
  .scorebug-challenges-btn.auth-btn.in{border-color:var(--accent); background:transparent; padding:0; overflow:hidden;}
  .auth-av{display:grid; place-items:center; width:100%; height:100%; border-radius:50%; background:var(--accent); color:#1a1100; font:800 14px/1 'Sora',sans-serif; text-transform:uppercase;}
  .auth-av.has-photo{position:relative; overflow:hidden;}
  .auth-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%;}

  main{max-width:1220px; margin:0 auto; padding:clamp(10px,2vw,18px) clamp(14px,4vw,32px) clamp(12px,2.5vw,22px);}
  .view{display:none;}
  .view.active{display:block;}
  .lede{max-width:70ch; margin:0 0 10px;}
  .lede p{color:var(--muted); font-size:13px; line-height:1.45; margin:6px 0 0;}

  .panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:20px clamp(16px,3vw,26px);}
  .field label{display:block; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:7px;}
  input[type="text"], input[type="number"]{
    width:100%; padding:11px 12px; border-radius:var(--r-md); border:1px solid var(--line);
    background:var(--bg); color:var(--ink); font-size:15px; font-family:'Manrope',sans-serif;
    transition:border-color .15s ease;
  }
  input[type="text"]:hover, input[type="number"]:hover, .country-search:hover{border-color:var(--line-strong);}
  input[type="number"]{font-family:'IBM Plex Mono',monospace; text-align:center;}
  .name-row{display:flex; gap:8px; align-items:stretch;}
  .name-row input{flex:1; min-width:0;}
  .dice-btn{
    flex:none; width:44px; padding:0; border-radius:var(--r-md);
    border:1px solid var(--line); background:var(--surface-2); color:var(--accent); cursor:pointer; display:grid; place-items:center;
    transition:transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .dice-btn:hover{background:var(--accent); color:#111; border-color:var(--accent); transform:scale(1.07);}
  .dice-btn:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
  .dice-btn svg{width:22px; height:22px; display:block;}
  .dice-btn.rolling svg{animation:diceRoll .5s cubic-bezier(.3,1.4,.5,1);}
  @keyframes diceRoll{0%{transform:rotate(0) scale(1);} 40%{transform:rotate(200deg) scale(.8);} 100%{transform:rotate(360deg) scale(1);}}
  @media (prefers-reduced-motion:reduce){ .dice-btn.rolling svg{animation:none;} }

  /* ---------- creation: 3-up layout ---------- */
  .create-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; padding:14px clamp(14px,2.5vw,22px);}
  @media (max-width:880px){ .create-grid{grid-template-columns:1fr;} }
  .create-col{display:flex; flex-direction:column; gap:16px;}
  .create-grid h3{font-size:13px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:9px; text-align:center;}

  .jersey-wrap{display:flex; flex-direction:column; align-items:center; gap:10px;}
  /* Jersey stage: a small perspective container so the detailed jersey SVG can
     tilt gently with the mouse (guarded by reducedMotion() in JS) without the
     rest of the layout needing 3D context. */
  .jersey-stage{position:relative; width:180px; max-width:100%; margin:0 auto; perspective:1000px;}
  .jersey-floor{position:absolute; left:16%; right:16%; bottom:-6px; height:16px; border-radius:50%;
    background:radial-gradient(closest-side, rgba(0,0,0,.55), transparent); pointer-events:none;}
  .j-stage-inner{transform-style:preserve-3d; transition:transform .25s ease-out; will-change:transform;}
  /* Direct-child combinator only — the jersey nests a second, small <svg> for
     its flag chip, and a plain descendant selector here would stretch that
     one to fill the whole stage too. */
  .j-stage-inner > svg{display:block; width:100%; height:auto; overflow:visible;
    filter:drop-shadow(0 14px 16px var(--shadow));}
  .cx-idc .j-stage-inner, .cx-idc .j-stage-inner > svg{height:100%;}
  @media (prefers-reduced-motion: reduce){ .j-stage-inner{transition:none;} }
  /* Brief pulse when the country (and so the jersey colors) changes. */
  .j-swap{animation:jerseySwap .35s ease;}
  @keyframes jerseySwap{0%{opacity:.4; transform:scale(.985);} 100%{opacity:1; transform:scale(1);}}
  @media (prefers-reduced-motion: reduce){ .j-swap{animation:none;} }
  .jersey-fields{width:100%; max-width:310px; display:grid; grid-template-columns:1fr 104px; gap:10px;}
  .num-stepper{display:flex; align-items:stretch; border-radius:10px; border:1px solid var(--line); background:var(--bg); overflow:hidden;}
  .num-stepper input{border:0; border-radius:0; text-align:center; padding:11px 0; background:none; min-width:0; flex:1;}
  .num-btn{
    flex:none; width:28px; border:0; background:none; color:var(--muted); cursor:pointer;
    font-family:'Manrope',sans-serif; font-size:16px; font-weight:800; line-height:1; transition:color .15s ease, background .15s ease;
  }
  .num-btn:hover{color:var(--ink); background:var(--surface-2);}

  /* A dedicated card for search + results, instead of the two just floating
     in the panel — gives the scroll area a visible boundary and enough
     height to show several countries at once. */
  .country-card{
    background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); padding:10px;
  }
  .country-search{
    width:100%; padding:10px 12px; border-radius:var(--r-md); border:1px solid var(--line);
    background:var(--surface); color:var(--ink); font-size:13.5px; margin-bottom:8px;
  }
  .country-list{max-height:216px; overflow-y:auto; display:flex; flex-direction:column; gap:3px; padding-right:2px;}

  .country-list, .trophy-list, .table-scroll{
    scrollbar-width:thin; scrollbar-color:var(--accent) var(--surface-2);
  }
  .country-list::-webkit-scrollbar, .trophy-list::-webkit-scrollbar, .table-scroll::-webkit-scrollbar{
    width:8px; height:8px;
  }
  .country-list::-webkit-scrollbar-track, .trophy-list::-webkit-scrollbar-track, .table-scroll::-webkit-scrollbar-track{
    background:var(--surface-2); border-radius:8px;
  }
  .country-list::-webkit-scrollbar-thumb, .trophy-list::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb{
    background:var(--accent); border-radius:8px; border:2px solid var(--surface-2);
  }
  .country-list::-webkit-scrollbar-thumb:hover, .trophy-list::-webkit-scrollbar-thumb:hover, .table-scroll::-webkit-scrollbar-thumb:hover{
    background:var(--accent-2);
  }
  .country-row{
    display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:var(--r-md); cursor:pointer;
    border:1.5px solid transparent; font-size:13px; font-weight:600;
    width:100%; flex:none; background:none; color:inherit; font-family:inherit; text-align:left; transition:background .12s ease, border-color .12s ease;
  }
  .country-row:hover{background:var(--surface-2);}
  .country-row.selected{border-color:var(--ink); background:var(--surface-2);}
  .flag-chip{flex:none; width:26px; height:19px; border-radius:3px; overflow:hidden; box-shadow:0 0 0 1px var(--line) inset; background:var(--surface-2);}
  .flag-chip svg, .flag-chip img{display:block; width:100%; height:100%; object-fit:cover;}
  .country-row .ccode{margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--muted);}

  .court-wrap{
    position:relative; width:100%; max-width:280px; margin:0 auto; border-radius:var(--r-lg); overflow:hidden;
    box-shadow:0 10px 26px var(--shadow), inset 0 0 0 1px var(--line);
  }
  .court-wrap svg.court-bg{display:block; width:100%; height:auto;}
  /* Position pins are plain HTML overlaid on the court, not SVG text — that
     way the label size is a fixed CSS pixel value and stays legible no
     matter how the court itself gets scaled to fit the layout. */
  .position-pins{position:absolute; inset:0;}
  .position-pin{
    position:absolute; transform:translate(-50%,-50%); width:40px; height:40px; border-radius:50%;
    border:2px solid var(--line); background:var(--surface-2); color:var(--ink);
    font-family:'Sora',sans-serif; font-weight:800; font-size:13.5px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; box-shadow:0 3px 8px var(--shadow);
    transition:background .15s ease, border-color .15s ease, color .15s ease;
  }
  .position-pin:hover{background:var(--surface);}
  .position-pin.selected{background:var(--accent); border-color:var(--accent); color:#2A1B00;}
  .position-pin.selected::after{
    content:''; position:absolute; inset:-8px; border-radius:50%; border:2px solid var(--accent);
    opacity:.55; animation:posRingPulse 1.6s ease-out infinite; pointer-events:none;
  }
  @keyframes posRingPulse{0%{transform:scale(.7); opacity:.6;} 100%{transform:scale(1.55); opacity:0;}}
  @media (prefers-reduced-motion: reduce){ .position-pin.selected::after{animation:none; opacity:.35;} }
  .position-name{text-align:center; margin-top:6px; font-size:13.5px; font-weight:800; font-family:'Sora',sans-serif;}
  .position-desc{text-align:center; margin-top:2px; font-size:11px; color:var(--muted); min-height:2em; line-height:1.3;}

  .start-btn{
    margin-top:14px; width:100%; padding:13px; border-radius:var(--r-md); border:1.5px solid var(--ink); cursor:pointer;
    background:var(--ink); color:var(--bg); font-weight:900; font-size:14px;
    letter-spacing:.05em; text-transform:uppercase; font-family:'Sora',sans-serif;
    transition:background .15s ease, color .15s ease, transform .1s ease;
  }
  .start-btn:hover{background:transparent; color:var(--ink);}
  .start-btn:active{transform:scale(.99);}
  /* daily challenge */
  .cx-actions{display:flex; gap:10px; align-items:stretch; margin-top:14px; flex:none;}
  .cx-actions .start-btn{flex:1 1 0; width:auto; margin-top:0;}
  .daily-box{flex:1.7 1 0; min-width:0; padding:8px 12px; border-radius:var(--r-lg); border:1.5px solid rgba(245,166,35,.45);
    background:linear-gradient(135deg, rgba(245,166,35,.14), rgba(245,166,35,.03)); display:flex; flex-direction:row; align-items:center; gap:12px;}
  .dly-info{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px;}
  .dly-obj-line{font-size:13px; line-height:1.25;}
  .dly-obj-line b{font-weight:800;}
  .dly-obj-line em{font-style:normal; color:var(--accent); font-size:10.5px; font-weight:800; margin-left:6px; white-space:nowrap;}
  .dly-who-line{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .dly-side{display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex:none;}
  @media (max-width:760px){ .cx-actions{flex-direction:column;} .daily-box{flex:none; flex-wrap:wrap;} .dly-btn{width:100%;} }
  .dly-head{display:flex; align-items:center; gap:8px; font-size:11px;}
  .dly-ttl{font-weight:900; letter-spacing:.12em; text-transform:uppercase; color:var(--accent);}
  .dly-date{color:var(--muted); font-family:'IBM Plex Mono',monospace;}
  .dly-streak{margin-left:auto; font-weight:800; color:#ffb347;}
  .dly-body{display:flex; align-items:center; gap:10px;}
  .dly-flag{width:18px; height:12px; border-radius:4px; overflow:hidden; flex:none; display:inline-flex;}
  .dly-flag img{width:100%; height:100%; object-fit:cover;}
  .dly-who{display:flex; flex-direction:column; gap:2px; min-width:0;}
  .dly-who b{font-size:13px;}
  .dly-who span{font-size:11px; color:var(--muted);}
  .dly-done{font-size:12px; color:var(--ink);}
  .dly-btn{flex:none; padding:9px 14px; min-height:40px; border-radius:var(--r-md); border:1.5px solid var(--accent); background:var(--accent); color:#1a1000; font-weight:900; font-size:12px; letter-spacing:.05em; text-transform:uppercase; cursor:pointer; font-family:'Sora',sans-serif; transition:background .15s ease, color .15s ease, transform .1s ease;}
  .dly-btn:hover{background:transparent; color:var(--accent);}
  .dly-btn:active{transform:scale(.97);}
  .dly-obj{display:flex; flex-direction:column; gap:2px; padding:8px 10px; border-radius:10px; background:rgba(0,0,0,.28); border:1px dashed rgba(245,166,35,.5);}
  .dly-obj span{font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);}
  .dly-obj b{font-size:14px;}
  .dly-obj em{font-style:normal; font-size:11px; color:var(--muted);}
  .dly-goal{margin:8px 0; padding:8px 10px; border-radius:10px; border:1px solid rgba(245,166,35,.5); background:rgba(245,166,35,.08);}
  .dly-goal.done{border-color:rgba(51,201,122,.6); background:rgba(51,201,122,.1);}
  .dly-goal-top{display:flex; justify-content:space-between; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--accent);}
  .dly-goal.done .dly-goal-top{color:var(--good);}
  .dly-goal-top b{color:var(--ink); font-family:'IBM Plex Mono',monospace; letter-spacing:0;}
  .dly-goal-txt{font-size:13px; font-weight:700; margin:3px 0 6px;}
  .dly-goal-bar{height:5px; border-radius:3px; background:rgba(255,255,255,.1); overflow:hidden;}
  .dly-goal-bar i{display:block; height:100%; background:var(--accent);}
  .dly-goal.done .dly-goal-bar i{background:var(--good);}
  .dly-result{margin-top:10px; padding:10px 12px; border-radius:12px; border:1.5px solid rgba(245,166,35,.45); background:rgba(245,166,35,.08); display:flex; align-items:center; justify-content:space-between; gap:10px;}
  .dly-result div{display:flex; flex-direction:column; gap:2px; font-size:12px;}
  .dly-result span{color:var(--muted); font-size:11px;}
  .dly-result em{font-style:normal; color:#ffb347; font-size:11px;}
  .start-btn:disabled{opacity:.4; cursor:not-allowed;}
  .start-hint{font-size:11px; color:var(--muted); margin-top:6px; text-align:center;}


  /* ---------- creation: single-screen 2x2 layout ---------- */
  main:has(#view-create.active){max-width:none; padding:10px clamp(12px,2vw,20px) 18px;}
  .cx-shell{display:grid; grid-template-columns:minmax(0,1fr); gap:16px; justify-content:center;}
  .cx-ad{display:none;}
  @media (min-width:1280px){
    .cx-shell{grid-template-columns:160px minmax(0,1240px) 160px;}
    .cx-ad{display:flex; flex-direction:column; align-items:center; gap:6px; min-height:0;}
  }
  .cx-ad small{font-size:9px; font-weight:800; letter-spacing:.16em; color:var(--muted); opacity:.8;}
  /* Ad column stays an empty reserved space until a real ad is loaded (needs consent + AdSense IDs in site.js). */
  .cx-ad:not(.ad-live) small{visibility:hidden;}
  .cx-ad ins.adsbygoogle{display:block; width:160px; height:600px;}
  .cx-ad .slot{
    width:160px; height:600px; max-height:calc(100% - 20px); border:1px dashed var(--line); border-radius:10px;
    display:grid; place-items:center; text-align:center; color:var(--muted); opacity:.75;
    font-family:'IBM Plex Mono',monospace; font-size:11px;
    background:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 8px,transparent 8px 16px);
  }
  .cx-main{display:flex; flex-direction:column; gap:10px; min-width:0; min-height:0;}
  .cx-bar{display:flex; justify-content:space-between; align-items:baseline; gap:6px 14px; flex-wrap:wrap; flex:none;}
  .cx-bar h2{font-size:15px; font-weight:900; letter-spacing:.1em; color:var(--ink);}
  .lb{font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted);}
  #identity-panel{display:flex; flex-direction:column; gap:12px; min-height:0; flex:1;}
  .cx-box{
    flex:1; min-height:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:16px 20px;
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr); gap:14px 26px;
  }
  .cx-cell{display:flex; flex-direction:column; gap:8px; min-height:0; min-width:0;}
  .cx-ttl{font-family:'Sora',sans-serif; font-weight:800; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); text-align:center; flex:none;}
  .cx-idc{display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:16px; align-items:center; flex:1; min-height:0;}
  .cx-ctrl{display:flex; flex-direction:column; gap:10px;}
  .cx-idrow{display:flex; gap:8px; flex-wrap:wrap;}
  .cx-idrow #f-name{flex:1; min-width:110px; border-radius:var(--r-md); font-weight:700;}
  .cx-idrow .num-stepper{flex:none; border-radius:var(--r-md); height:44px;}
  .cx-idrow .num-btn{width:34px; font-size:18px;}
  .cx-idrow .num-stepper input{width:44px; flex:none; padding:0; font-weight:800; font-size:15px;}
  #view-create .dice-btn{position:static; margin:0; flex:none; width:44px; height:44px; border-radius:var(--r-md); background:var(--bg); color:var(--accent);}
  #view-create .dice-btn:hover{background:var(--bg); border-color:var(--accent); color:var(--accent); transform:none;}

  /* jersey + court scale to the cell (container units), never the other way round */
  .cx-idc .jersey-wrap{height:100%; min-height:0; container-type:size; justify-content:center; align-items:center; gap:0;}
  .cx-idc .jersey-stage{width:min(100cqw, calc(100cqh * .8)); aspect-ratio:4/5; max-width:none; margin:0;}
  .cx-posc{display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:16px; align-items:center; flex:1; min-height:0;}
  .cx-courtslot{height:100%; min-height:0; container-type:size; display:flex; align-items:center; justify-content:center;}
  .cx-courtslot .court-wrap{width:min(100cqw, calc(100cqh * 1.1018)); max-width:none; margin:0; aspect-ratio:498/452;}
  .cx-courtslot .court-wrap svg.court-bg{height:100%; width:100%;}
  .cx-pd{display:flex; flex-direction:column; min-width:0;}
  .cx-pd .position-name{text-align:left; margin:0; font-size:15px;}
  .cx-pd .position-desc{text-align:left; margin-top:2px; font-size:11.5px; min-height:0; line-height:1.35;}
  .cx-pls{display:grid; gap:5px; margin-top:10px;}
  .cx-pl{
    display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--bg);
    width:100%; cursor:pointer; color:var(--ink); text-align:left; font-family:'Manrope',sans-serif; transition:border-color .12s, background .12s;
  }
  .cx-pl b{font-family:'Sora',sans-serif; width:28px; font-weight:800; font-size:13px;}
  .cx-pl span{color:var(--muted); font-size:12px;}
  .cx-pl:hover{border-color:var(--line-strong); background:var(--surface-2);}
  .cx-pl.on{border-color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,var(--bg));}
  .cx-pl.on span{color:var(--ink);}

  #view-create .country-card{flex:1; min-height:0; display:flex; flex-direction:column; padding:8px;}
  #view-create .country-search{margin-bottom:6px; border-radius:var(--r-md); padding:11px 13px; background:var(--bg);}
  #view-create .country-list{flex:1; min-height:0; max-height:none; gap:2px;}
  #view-create .country-row.selected{border-color:color-mix(in srgb,var(--accent) 50%,transparent); background:color-mix(in srgb,var(--accent) 12%,transparent);}
  #view-create .country-row.selected .ccode{color:var(--accent);}

  .cx-stc{flex:1; min-height:0; display:flex; flex-direction:column; gap:10px; overflow:auto; scrollbar-width:thin; container-type:inline-size; container-name:cxs;}
  #view-create .combine-list{gap:8px 14px;}
  #view-create .combine-q .cq-text{font-size:11px; font-weight:500; margin-bottom:4px;}
  #view-create .combine-opts{border-radius:var(--r-md);}
  #view-create .combine-opt{padding:6px 8px; font-size:11.5px; font-weight:600; border-radius:var(--r-sm);}
  #view-create .combine-opt.selected{background:var(--surface-2); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent);}
  #view-create .combine-result{display:grid; grid-template-columns:auto 1fr; gap:2px 12px; align-items:center; margin-top:0; padding-top:10px;}
  #view-create .combine-result .cr-icon{grid-row:1 / 3; width:40px; height:40px;}
  #view-create .cr-main{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap;}
  #view-create .cr-name{margin-top:0; font-size:17px;}
  #view-create .cr-sub{grid-column:2; margin-top:0; font-size:11px;}
  #view-create .cr-bonus{font-size:11px; margin-top:2px;}
  #view-create .cr-tags{display:none;}
  .cx-bars{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; flex:none;}
  .cx-at .atr{display:flex; justify-content:space-between; align-items:baseline; font-size:11px; margin-bottom:5px; gap:4px;}
  .cx-at .atr span{color:var(--muted);}
  .cx-at .atr em{font-style:normal;}
  .cx-at .atr .s{display:none;}
  @container cxs (max-width:520px){ .cx-at .atr .s{display:inline;} .cx-at .atr .f{display:none;} }
  .cx-at .atr b{font-family:'IBM Plex Mono',monospace; font-weight:600;}
  .cx-at .atr i{font-style:normal; margin-left:4px; font-size:10.5px; color:var(--accent);}
  .cx-at .atr i.neg{color:var(--accent-2-ink);}
  .cx-atb{position:relative; height:6px; border-radius:6px; background:var(--line); overflow:hidden;}
  .cx-atb u{position:absolute; inset:0 auto 0 0; background:#6e6258; width:50%;}
  .cx-atb s{position:absolute; top:0; bottom:0; background:var(--accent); transition:width .3s, left .3s;}
  .cx-atb s.neg{background:var(--accent-2);}

  #view-create .start-btn{margin-top:0; flex:none; padding:14px; border-radius:var(--r-md); font-size:15px; letter-spacing:.06em;}

  /* Small screens / short windows: fall back to a normal scrolling page. */
  @media (min-width:1100px) and (min-height:600px){
    .cx-shell{height:var(--cxh, calc(100vh - 84px)); height:var(--cxh, calc(100dvh - 84px));}
    .cx-ad .slot{height:600px;}
  }
  /* Medium-height windows: same layout, tighter spacing and less secondary text. */
  @media (min-width:1100px) and (min-height:600px) and (max-height:899px){
    .cx-main{gap:6px;}
    #identity-panel{gap:8px;}
    .cx-box{padding:10px 16px; gap:8px 22px; grid-template-rows:minmax(0,.46fr) minmax(0,.54fr);}
    .cx-cell{gap:5px;}
    .cx-ttl{font-size:11px;}
    .cx-ctrl{gap:8px;}
    .cx-pd .position-desc{display:none;}
    .cx-pls{margin-top:6px; gap:4px;}
    .cx-pl{padding:5px 9px;}
    .cx-stc{gap:7px;}
    #view-create .combine-list{gap:6px 12px;}
    #view-create .combine-q .cq-text{margin-bottom:3px; font-size:10.5px;}
    #view-create .combine-opt{padding:5px 6px; font-size:11px; gap:6px;}
    #view-create .combine-result{padding-top:7px;}
    #view-create .cr-desc{display:none;}
    #view-create .combine-result .cr-icon{width:34px; height:34px;}
    #view-create .start-btn{padding:11px; font-size:14px;}
    .cx-bars{gap:10px;}
  }
  @media (min-width:1100px) and (min-height:600px) and (max-height:819px){
    #view-create .combine-opt svg{display:none;}
    #view-create .cr-bonus{display:none;}
    #view-create .cr-sub{display:none;}
    #view-create .combine-list{gap:4px 10px;}
    #view-create .combine-q .cq-text{margin-bottom:2px;}
    #view-create .combine-result{padding-top:2px;}
    #view-create .combine-result .cr-icon, #view-create .cr-label{display:none;}
    #view-create .cr-name{font-size:15px;}
    .cx-stc{gap:5px;}
  }
  @media (min-width:1100px) and (min-height:600px) and (max-height:749px){ #view-create .combine-q .cq-text{display:none;} }
  @media (min-width:1100px) and (max-height:599px){
    .cx-box{grid-template-rows:none;}
    .cx-idc .jersey-wrap{container-type:normal; height:auto;}
    .cx-idc .jersey-stage{width:190px; height:auto; aspect-ratio:auto;}
    .cx-courtslot{container-type:normal; height:auto;}
    .cx-courtslot .court-wrap{width:100%; max-width:290px; margin:0 auto;}
    #view-create .country-list{flex:none; height:210px; max-height:210px; min-height:0; overflow-y:auto;}
    .cx-stc{overflow:visible;}
  }
  @media (max-width:1099px){
    .cx-box{grid-template-columns:1fr; grid-template-rows:none;}
    .cx-idc, .cx-posc{grid-template-columns:1fr;}
    .cx-idc .jersey-wrap{container-type:normal; height:auto;}
    .cx-idc .jersey-stage{width:min(70%,260px); height:auto; aspect-ratio:auto;}
    .cx-courtslot{container-type:normal; height:auto;}
    .cx-courtslot .court-wrap{width:100%; max-width:340px; margin:0 auto;}
    #view-create .country-list{max-height:260px;}
    .cx-stc{overflow:visible;}
    .cx-bars{grid-template-columns:repeat(2,minmax(0,1fr));}
  }
  @media (max-width:520px){ #view-create .combine-list{grid-template-columns:1fr;} .cx-idrow #f-name{min-width:0;} }

  .starter-panel{margin-top:4px;}
  .hof-head{margin:34px 0 12px;}
  .hof-head h2{font-size:19px; font-weight:800;}
  .hof-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px;}
  .hof-more{grid-column:1 / -1;} .hof-more > .hof-grid{margin-top:10px;}
  .hof-more summary{cursor:pointer; width:max-content; padding:7px 14px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-size:12.5px; font-weight:800;}
  .hof-more summary:hover{border-color:var(--accent);} .hof-more[open] summary{border-color:var(--accent);}
  .hof-card{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:13px 14px;}
  .hof-card .hname{font-size:14px; font-weight:800;}
  .hof-card .htag{font-size:11.5px; color:var(--muted); margin-top:2px;}
  .hof-legacy{display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:8px 0 2px; font-size:12px; color:var(--muted);}
  .hof-legacy b{color:var(--ink);} .hof-legacy .hl-rank{padding:3px 10px; border-radius:999px; background:rgba(245,166,35,.14); color:var(--accent); font-weight:800; font-size:10.5px; letter-spacing:.05em; text-transform:uppercase;}
  .hof-legacy .hl-bar{flex:1 1 140px; max-width:260px; height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden;}
  .hof-legacy .hl-bar i{display:block; height:100%; background:linear-gradient(90deg,#f5a623,#ffd27a);}
  .hof-card .hleg{margin-top:6px; font-size:11px; color:var(--muted);} .hof-card .hleg b{color:#ffb347;}
  /* streak frames: gradient borders (padding-box/border-box trick); the 50+ day ones move */
  @property --fa{syntax:'<angle>'; inherits:false; initial-value:0deg;}
  @keyframes frSpin{to{--fa:360deg;}}
  @keyframes frPulse{50%{box-shadow:0 0 24px rgba(255,110,0,.5);}}
  .hof-card[class*=" fr-"]{border:2px solid transparent;}
  .hof-card.fr-silver{background:linear-gradient(var(--surface),var(--surface)) padding-box, linear-gradient(135deg,#f4f7fb,#8d97a5 40%,#e9eef4 60%,#7d8794) border-box; box-shadow:0 0 10px rgba(201,209,220,.15);}
  .hof-card.fr-gold{background:linear-gradient(160deg,rgba(245,197,66,.08),var(--surface) 55%) padding-box, linear-gradient(135deg,#fff1b8,#c8901c 35%,#ffe28a 55%,#a86b10) border-box; box-shadow:0 0 16px rgba(245,197,66,.22);}
  .hof-card.fr-diamond{background:linear-gradient(160deg,rgba(127,227,255,.1),var(--surface) 55%) padding-box, linear-gradient(135deg,#dffaff,#38c6f4 30%,#ffffff 50%,#38c6f4 70%,#b9f1ff) border-box; box-shadow:0 0 20px rgba(127,227,255,.28);}
  .hof-card.fr-fire{background:linear-gradient(0deg,rgba(255,90,0,.14),var(--surface) 60%) padding-box, linear-gradient(0deg,#ff3d00,#ff9a00 50%,#ffe14d) border-box; animation:frPulse 2.4s ease-in-out infinite;}
  .hof-card.fr-platinum{background:linear-gradient(160deg,rgba(229,228,226,.1),var(--surface) 55%) padding-box, conic-gradient(from var(--fa),#e5e4e2,#8a9099,#ffffff,#8a9099,#e5e4e2) border-box; box-shadow:0 0 20px rgba(229,228,226,.25); animation:frSpin 6s linear infinite;}
  .hof-card.fr-legend{background:linear-gradient(160deg,rgba(178,107,255,.12),var(--surface) 55%) padding-box, conic-gradient(from var(--fa),#ff4d4d,#f5c542,#5cff8a,#3fa9ff,#b26bff,#ff4d4d) border-box; box-shadow:0 0 24px rgba(178,107,255,.32); animation:frSpin 4s linear infinite;}
  /* achievement frames */
  @keyframes frNeon{50%{box-shadow:0 0 8px rgba(255,46,196,.35),0 0 20px rgba(0,240,255,.25);}}
  .hof-card.fr-neon{background:linear-gradient(160deg,rgba(255,46,196,.08),var(--surface) 55%) padding-box, linear-gradient(135deg,#ff2ec4,#00f0ff) border-box; box-shadow:0 0 14px rgba(255,46,196,.5),0 0 28px rgba(0,240,255,.35); animation:frNeon 2s ease-in-out infinite;}
  .hof-card.fr-ice{background:linear-gradient(180deg,rgba(191,239,255,.14),var(--surface) 50%) padding-box, linear-gradient(160deg,#ffffff,#9fe4ff 30%,#e9fbff 55%,#5cc8f0) border-box; box-shadow:0 0 18px rgba(159,228,255,.35), inset 0 0 18px rgba(191,239,255,.12);}
  .hof-card.fr-holo{background:linear-gradient(160deg,rgba(255,182,255,.08),var(--surface) 55%) padding-box, conic-gradient(from var(--fa),#ffb3f5,#b3f5ff,#d6ffb3,#fff0b3,#c9b3ff,#ffb3f5) border-box; box-shadow:0 0 20px rgba(201,179,255,.3); animation:frSpin 5s linear infinite;}
  @media (prefers-reduced-motion:reduce){ .hof-card.fr-neon,.hof-card.fr-holo{animation:none;} }
  /* streak flame next to the player's name */
  .stk-flame{display:inline-flex; align-items:center; gap:2px; margin-left:6px; padding:1px 7px 1px 4px; border-radius:999px; font-size:11px; font-weight:900; vertical-align:middle; line-height:1.4; letter-spacing:0; text-transform:none; color:var(--fc); background:color-mix(in srgb,var(--fc) 16%,transparent); border:1px solid color-mix(in srgb,var(--fc) 45%,transparent);}
  .stk-flame svg{width:13px; height:13px; fill:currentColor; filter:drop-shadow(0 0 3px var(--fc));}
  .stk-flame.t1{--fc:#ff8a1f;} .stk-flame.t2{--fc:#3fa9ff;} .stk-flame.t3{--fc:#b26bff;} .stk-flame.t4{--fc:#f5c542;}
  .dly-risk{font-size:11.5px; font-weight:700; color:#ffb347;}
  .rs-card{width:min(400px,100%); text-align:center; border-color:rgba(255,107,107,.45); box-shadow:0 0 40px rgba(255,107,107,.18);}
  .rs-card p{font-size:13px; line-height:1.5; margin:8px 0;}
  .rs-shield{font-size:44px; line-height:1; margin-bottom:6px; animation:rsBob 1.6s ease-in-out infinite;}
  @keyframes rsBob{50%{transform:translateY(-4px);}}
  .rs-streak{margin:6px 0;} .rs-streak .stk-flame{font-size:22px; padding:4px 14px 4px 10px; margin:0;} .rs-streak .stk-flame svg{width:24px; height:24px;}
  .rs-play{width:100%; margin-top:10px; min-height:44px;}
  @media (prefers-reduced-motion:reduce){ .rs-shield{animation:none;} }
  .dly-next{font-size:11.5px; color:var(--muted);}
  .dly-timer{font-size:10.5px; color:var(--muted); white-space:nowrap;} .dly-timer b{font-family:'IBM Plex Mono',monospace; color:var(--ink); font-weight:700;}
  .dly-shield{font-weight:800; font-size:12px; color:#7fc8ff;}
  .pl-title{display:inline-block; margin-top:3px; padding:1px 8px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; color:#2a1700; background:linear-gradient(135deg,#fff1b8,#f5b53f 55%,#c8901c); box-shadow:0 0 10px rgba(245,181,63,.3);}
  .lk-num{font-size:30px; font-weight:900; color:var(--ink); line-height:1;} .lk-num.glow{color:#fff; text-shadow:0 0 6px var(--gc,var(--accent)),0 0 14px var(--gc,var(--accent));}
  .lk-achprog{margin-top:10px;}
  .lk-bg{display:block; width:62px; height:46px; border-radius:8px; border:1px solid var(--line); background:#09090b;}
  .lk-bg.bg-parquet{background:repeating-linear-gradient(90deg,#8a5a2b 0 14px,#a06a35 14px 28px,#7a4e24 28px 42px);}
  .lk-bg.bg-street{background:radial-gradient(circle at 50% 120%,transparent 38%,rgba(255,255,255,.5) 39% 41%,transparent 42%),#2a2c31;}
  .lk-bg.bg-sunset{background:radial-gradient(circle at 50% 78%,#ffd36b 0 14%,transparent 15%),linear-gradient(180deg,#2b1055 0%,#d6336c 55%,#ff9a3c 100%);}
  .lk-bg.bg-snow{background:radial-gradient(circle,#fff 0 1.2px,transparent 1.6px) 0 0/9px 9px,linear-gradient(180deg,#a9c6e8,#eaf3ff);}
  .lk-bg.bg-space{background:radial-gradient(circle,#fff 0 1px,transparent 1.4px) 0 0/11px 13px,radial-gradient(ellipse at 30% 40%,rgba(178,107,255,.55),transparent 60%),#05020d;}
  .lk-bg.bg-arena{background:radial-gradient(ellipse at 25% 0,rgba(255,255,255,.55),transparent 55%),radial-gradient(ellipse at 75% 0,rgba(255,255,255,.55),transparent 55%),#101a33;}
  .lk-cal{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; max-width:300px;}
  .lk-day{display:grid; place-items:center; aspect-ratio:1; border-radius:6px; font-size:11px; font-style:normal; background:var(--line);}
  .lk-day.p{background:#2f9e5b;} .lk-day.g{background:#2f9e5b; color:#ffe28a;} .lk-day.s{background:#1f4f7a;} .lk-day.m{background:#26262c;} .lk-day.t{background:transparent; outline:2px dashed var(--muted); outline-offset:-2px;}
  .lk-legend{display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:6px; font-size:11px; color:var(--muted);} .lk-legend > span{display:inline-flex; align-items:center; gap:4px;} .lk-legend .lk-day{width:14px; font-size:8px;}
  .rk-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px;}
  .rk-row{display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:var(--r-md); background:var(--bg); border:1px solid var(--line); font-size:13px;}
  .rk-row.me{border-color:var(--accent); background:rgba(245,166,35,.1);}
  .rk-pos{width:28px; text-align:center;} .rk-name{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:800;}
  .rk-meta{font-size:11px; color:var(--muted);} .rk-score{font-family:'IBM Plex Mono',monospace; color:var(--accent);}
  .rk-msg{padding:14px; text-align:center; color:var(--muted); font-size:13px;}
  .rk-foot{margin-top:10px; font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap;} .rk-foot b{color:var(--ink);} .dly-risk b,.dly-next b{color:var(--ink);}
  /* animated summary card for streaks of 7+ days */
  @keyframes fxShine{from{background-position:130% 0;} to{background-position:-130% 0;}}
  @keyframes fxTwinkle{from{opacity:.2;} to{opacity:1;}}
  .recap-me.recap-fx{border:2px solid transparent; background:linear-gradient(135deg,var(--surface-2),var(--bg)) padding-box, conic-gradient(from var(--fa),var(--fx),transparent 30%,var(--fx) 50%,transparent 80%,var(--fx)) border-box; box-shadow:0 0 26px color-mix(in srgb,var(--fx) 30%,transparent); animation:frSpin 5s linear infinite;}
  .recap-me.recap-fx::after{content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.1) 50%,transparent 60%); background-size:250% 100%; animation:fxShine 3.5s ease-in-out infinite;}
  .recap-fx.t3::before,.recap-fx.t4::before{content:''; position:absolute; inset:0; pointer-events:none; animation:fxTwinkle 1.8s ease-in-out infinite alternate;
    background-image:radial-gradient(2px 2px at 12% 30%,#fff,transparent),radial-gradient(1.5px 1.5px at 78% 22%,#fff,transparent),radial-gradient(2px 2px at 40% 82%,var(--fx),transparent),radial-gradient(1.5px 1.5px at 90% 70%,#fff,transparent),radial-gradient(2px 2px at 62% 48%,var(--fx),transparent),radial-gradient(1.5px 1.5px at 25% 65%,#fff,transparent);}
  @media (prefers-reduced-motion:reduce){ .hof-card[class*=" fr-"], .recap-fx, .recap-fx::before, .recap-fx::after{animation:none !important;} }
  .sum-legacy{margin:12px 0; padding:12px 16px; border-radius:14px; border:1px solid rgba(245,166,35,.35); background:rgba(245,166,35,.07); display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; font-size:12.5px; color:var(--muted);}
  .sum-legacy b{color:var(--ink); font-size:18px;} .sum-legacy .hl-rank{color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.05em; font-size:11px;}
  .offer-card.homecoming{border-color:rgba(245,166,35,.7) !important;}
  .offer-card .ohome{font-size:9.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#ffb347; margin-top:4px;}
  .dly-locker{background:none; border:1px solid rgba(255,255,255,.18); border-radius:8px; color:var(--ink); font-size:11px; padding:1px 7px; cursor:pointer;}
  .dly-locker:hover{border-color:var(--accent);}
  .lk-overlay{position:fixed; inset:0; z-index:9000; background:rgba(0,0,0,.66); display:flex; align-items:center; justify-content:center; padding:16px; overscroll-behavior:contain;}
  .lk-card{width:min(520px,100%); max-height:90vh; max-height:90dvh; overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:var(--s-5);}
  .lk-card h3{font-size:17px; margin:0 0 4px;} .lk-card p{font-size:12px; color:var(--muted); margin:0 0 12px;}
  .lk-card h4{font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:14px 0 6px;}
  .lk-row{display:flex; flex-wrap:wrap; gap:6px;}
  .lk-card{width:min(560px,100%);}
  .lk-how{display:flex; flex-direction:column; gap:2px; margin:8px 0 12px; padding:10px 12px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--bg); font-size:12.5px; line-height:1.45; color:var(--muted);}
  .lk-how b{color:var(--ink);}
  .lk-prog{font-size:12.5px; color:var(--muted);} .lk-prog b{color:var(--ink);}
  .lk-bar{height:8px; margin:8px 0 6px; border-radius:8px; background:var(--line); overflow:hidden;}
  .lk-bar i{display:block; height:100%; border-radius:8px; background:var(--accent);}
  .lk-next b{color:var(--accent);}
  .lk-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); gap:8px;}
  .lk-tile{display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 6px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--bg); color:var(--ink); font:inherit; cursor:pointer; transition:border-color .15s ease, transform .1s ease;}
  .lk-tile:hover:not(:disabled){border-color:var(--muted);}
  .lk-tile:active:not(:disabled){transform:scale(.98);}
  .lk-tile.on{border-color:var(--accent); background:rgba(245,166,35,.12);}
  .lk-tile.locked{cursor:not-allowed;} .lk-tile.locked .lk-art{opacity:.6;} .lk-tile.locked .lk-name{color:var(--muted);}
  .lk-art{height:66px; display:grid; place-items:center;} .lk-art svg{height:66px; width:auto;}
  .lk-name{font-size:12px; font-weight:800; line-height:1.2; text-align:center;}
  .lk-state{font-size:10.5px; color:var(--muted);} .lk-tile.on .lk-state{color:var(--accent); font-weight:800;}
  .lk-mini.hof-card{width:54px; height:62px; padding:9px 7px; display:flex; flex-direction:column; gap:6px; border-radius:8px;}
  .lk-mini i{display:block; height:5px; border-radius:3px; background:var(--line);}
  .lk-mini i:nth-child(1){width:85%; background:var(--muted);} .lk-mini i:nth-child(2){width:60%;} .lk-mini i:nth-child(3){width:45%; background:#ffb347;}
  .cx-idc .jersey-wrap{position:relative;}
  .lk-open{position:absolute; left:0; bottom:2px; z-index:2; display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:999px; border:1px solid var(--line); background:color-mix(in srgb,var(--bg) 85%,transparent); color:var(--ink); font-size:11.5px; font-weight:800; cursor:pointer; transition:border-color .15s ease;}
  .lk-open:hover{border-color:var(--accent);}
  .lk-close{margin-top:16px; width:100%; padding:10px; min-height:44px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--bg); color:var(--ink); font-weight:800; cursor:pointer; transition:background-color .15s ease, border-color .15s ease;}
  .lk-close:hover{background:var(--surface-2); border-color:var(--line-strong);}
  .nk-input{width:100%; padding:11px 12px; min-height:44px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--bg); color:var(--ink); font:600 15px 'Manrope',system-ui,sans-serif;}
  .nk-input:focus{outline:2px solid var(--accent); outline-offset:-1px; border-color:transparent;}
  .lk-card .nk-hint{margin:6px 0 8px; font-size:11.5px;}
  .nk-save{width:100%; margin-top:10px; min-height:44px;} .nk-save:disabled{opacity:.6; cursor:wait;}
  .nk-edit{background:none; border:0; padding:4px 2px; color:var(--accent); font:inherit; font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:2px;}
  .hof-card .hsec{margin-top:6px; font-size:11px; font-weight:800; color:#c9a7ff;}
  .status-chip.sec{color:#c9a7ff; border-color:rgba(201,167,255,.45);}
  .sec-overlay{position:fixed; inset:0; z-index:9100; background:radial-gradient(circle at 50% 40%, rgba(120,70,220,.38), rgba(0,0,0,.86)); display:flex; align-items:center; justify-content:center; padding:18px; animation:secIn .45s ease; overscroll-behavior:contain;}
  @media (prefers-reduced-motion:reduce){ .sec-overlay{animation:none;} }
  @keyframes secIn{from{opacity:0;} to{opacity:1;}}
  .sec-card{width:min(440px,100%); text-align:center; background:linear-gradient(160deg,#1b1330,#0f0c1c 70%); border:1px solid rgba(201,167,255,.55); border-radius:20px; padding:26px 22px; box-shadow:0 0 60px rgba(150,100,255,.35);}
  .sec-card .sec-ico{font-size:46px; line-height:1;} .sec-card .sec-k{margin-top:10px; font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; color:#c9a7ff; font-weight:800;}
  .sec-card h3{margin:6px 0 8px; font-size:24px; color:#fff;} .sec-card p{margin:0 0 6px; font-size:13px; line-height:1.45; color:rgba(255,255,255,.78);}
  .sec-card .sec-n{font-size:11px; color:rgba(255,255,255,.55);}
  .sec-card button{margin-top:16px; width:100%; padding:12px; border-radius:12px; border:0; background:#c9a7ff; color:#1a1030; font-weight:900; letter-spacing:.05em; cursor:pointer; transition:filter .15s ease;}
  .sec-card button:hover{filter:brightness(1.08);}
  .hof-card .htier{display:inline-block; margin-top:8px; padding:3px 9px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:var(--surface-2); color:var(--accent);}
  .empty-hint{text-align:center; color:var(--muted); font-size:13px; padding:22px 10px; border:1.5px dashed var(--line); border-radius:var(--r-lg);}

  /* ---------- dashboard layout ---------- */
  .dash-grid{display:grid; grid-template-columns:420px 1fr; gap:14px; align-items:start;}
  @media (max-width:900px){ .dash-grid{grid-template-columns:1fr;} }
  .dash-left{display:flex; flex-direction:column; gap:10px; min-width:0;}
  .dash-right{min-width:0;}

  /* ---------- no-scroll dashboard (desktop) ----------
     The whole career dashboard fits one screen: both columns are bound to
     the viewport height, and the season list sizes its rows to fit every
     age from 14 to 40 (see fitSeasonTable) instead of scrolling. */
  @media (min-width:901px){
    .dash-grid{height:calc(100vh - 94px); height:calc(100dvh - 94px); min-height:520px; align-items:stretch;}
    .dash-left{overflow-y:auto; scrollbar-width:none; min-height:0;}
    .dash-left::-webkit-scrollbar{display:none;}
    .dash-right{height:100%; min-height:0;}
    :is(#view-dashboard,#view-summary) .table-wrap{height:100%; display:flex; flex-direction:column;}
    :is(#view-dashboard,#view-summary) .table-head{padding:9px 14px 5px; flex:none;}
    :is(#view-dashboard,#view-summary) .dash-challenges-btn{padding:4px 10px;}
    :is(#view-dashboard,#view-summary) .table-scroll{flex:1; min-height:0; overflow-y:auto;}
    :is(#view-dashboard,#view-summary) table.season-table thead th{padding:5px 8px;}
    :is(#view-dashboard,#view-summary) table.season-table td{height:var(--rowh,40px); padding-top:0; padding-bottom:0; line-height:1;}
    :is(#view-dashboard,#view-summary) table.season-table .team-crest-wrap, :is(#view-dashboard,#view-summary) table.season-table .team-crest-wrap img, :is(#view-dashboard,#view-summary) table.season-table .team-crest{
      width:min(20px, calc(var(--rowh,40px) - 7px)); height:min(20px, calc(var(--rowh,40px) - 7px));}
    :is(#view-dashboard,#view-summary) table.season-table .league-logo{width:min(18px, calc(var(--rowh,40px) - 8px)); height:min(18px, calc(var(--rowh,40px) - 8px)); vertical-align:middle;}
    :is(#view-dashboard,#view-summary) table.season-table .tt-art{height:min(22px, calc(var(--rowh,40px) - 4px));}
    :is(#view-dashboard,#view-summary) table.season-table .ovr-chip{padding:1px 6px; line-height:1.25;}
  }

  .player-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:9px 14px 7px;}
  .fx-spark{position:fixed; width:7px; height:7px; margin:-3.5px 0 0 -3.5px; border-radius:50%; pointer-events:none; z-index:9500; box-shadow:0 0 8px currentColor;}
  .ovr-delta{font-size:12px; font-weight:700; margin-top:2px;}
  .ovr-delta.up{color:var(--good);} .ovr-delta.down{color:var(--accent-2-ink);} .ovr-delta.flat{color:var(--muted);}
  .pc-top{display:flex; align-items:flex-start; gap:10px;}
  .ovr-badge{
    position:relative; flex:none; width:72px; height:72px; border-radius:16px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; font-family:'Sora',sans-serif; overflow:hidden;
  }
  .ovr-badge.tier-bronze{ background:linear-gradient(135deg,#e0975c 0%,#8a4f26 45%,#c9793f 65%,#e0975c 100%); box-shadow:0 4px 16px rgba(140,80,30,.5), inset 0 1px 1px rgba(255,255,255,.35); }
  .ovr-badge.tier-silver{ background:linear-gradient(135deg,#f3f6f9 0%,#9aa3ad 45%,#dde2e7 65%,#f3f6f9 100%); box-shadow:0 4px 16px rgba(140,150,165,.5), inset 0 1px 1px rgba(255,255,255,.6); }
  .ovr-badge.tier-gold{ background:linear-gradient(135deg,#ffe38a 0%,#b8860b 45%,#ffd24a 65%,#ffe38a 100%); box-shadow:0 4px 18px rgba(232,180,40,.6), inset 0 1px 1px rgba(255,255,255,.6); }
  .ovr-badge .ob-shine{
    position:absolute; top:-50%; left:-60%; width:40%; height:200%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,.85), transparent);
    transform:rotate(20deg); animation:ovrShine 3.2s ease-in-out infinite;
  }
  @keyframes ovrShine{ 0%,20%{ left:-60%; } 60%,100%{ left:140%; } }
  @media (prefers-reduced-motion:reduce){ .ovr-badge .ob-shine{ animation:none; display:none; } }
  .ovr-badge .ob-label{position:relative; font-size:8.5px; font-weight:800; letter-spacing:.1em; opacity:.85; margin-bottom:1px;}
  .ovr-badge .ov{position:relative; font-size:28px; font-weight:900; line-height:1;}
  .pc-id{flex:1; min-width:0;}
  .pc-id .pname{font-size:16px; font-weight:900; line-height:1.15; margin-bottom:3px;}
  .pc-badges{display:flex; align-items:center; gap:6px; flex-wrap:wrap;}
  .mini-flag{width:22px; height:16px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px var(--line) inset; flex:none; background:var(--surface-2);}
  .mini-flag svg, .mini-flag img{display:block; width:100%; height:100%; object-fit:cover;}
  .badge-pill{
    font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:700; padding:2px 7px;
    border-radius:999px; background:var(--surface-2); color:var(--muted);
  }
  .pos-pill{background:var(--accent-2); color:#fff;}
  .team-crest{width:20px; height:20px; border-radius:5px; flex:none;}
  .team-crest-wrap{width:20px; height:20px; flex:none; display:inline-block;}
  .team-crest-wrap img{width:20px; height:20px; border-radius:5px; object-fit:cover; display:block;}
  .league-logo{width:18px; height:18px; object-fit:contain; vertical-align:-4px; margin-right:4px; flex:none;}
  .pc-team{display:flex; align-items:center; gap:7px; margin-top:4px; font-size:12px; font-weight:700;}
  .pc-freeagent{color:var(--muted); font-weight:700;}
  .fa-dot{width:8px; height:8px; border-radius:50%; border:1.5px solid var(--muted); flex:none;}
  .pc-age{font-size:11.5px; color:var(--muted); margin-top:6px;}
  .pc-meta{flex:none; text-align:right;}
  .pc-meta .pm-label{font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-top:4px;}
  .pc-meta .pm-label:first-child{margin-top:0;}
  .pc-meta .pm-val{font-size:18px; font-weight:800; line-height:1.1;}

  .pc-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:6px 0;}
  .pc-stats .pst{background:var(--surface-2); border-radius:9px; padding:5px 4px; text-align:center;}
  .pc-stats .pst .v{font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:13.5px;}
  .pc-stats .pst .l{font-size:8.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-top:2px;}

  .trophy-case{border-top:1px solid var(--line); padding-top:4px;}
  .trophy-case h4{font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:5px;}
  .trophy-list{display:flex; flex-wrap:nowrap; overflow-x:auto; gap:9px; padding-bottom:3px; align-items:flex-end;}
  .ti-ico{width:12px; height:12px; fill:currentColor; flex:none;}
  /* Small illustrated trophies, side by side — the same TC_ART renders the
     big cabinet uses, just shrunk down, instead of flat glyph icons. */
  .tcase-item{position:relative; flex:none; width:38px;}
  .tcase-art{width:100%; height:auto; display:block; filter:drop-shadow(0 3px 7px rgba(0,0,0,.55));}
  .tcase-count{
    position:absolute; top:-3px; right:-3px; z-index:1; background:var(--accent-2); color:#210a0d;
    font-size:8px; font-weight:900; padding:1px 4px; border-radius:999px; line-height:1.3; box-shadow:0 1px 4px rgba(0,0,0,.5);
  }
  .trophy-empty{display:flex; flex-direction:column; align-items:center; gap:2px; padding:0; color:var(--muted); font-size:10.5px; text-align:center;}
  .trophy-empty svg{width:15px; height:15px; fill:var(--muted); opacity:.55;}
  .tt-ico{width:9px; height:9px; fill:var(--accent); flex:none;}
  .tt-wrap{display:inline-flex; align-items:center; gap:5px; padding:0;}
  /* Deliberately smaller than the sidebar trophy case (38px) — this column
     sits inside a dense table row, not a showcase panel, so the trophies
     read as compact icons rather than dominating the row height. Sized (and
     centered via table.season-table td below) to fit the SAME fixed row
     height every other row uses — a trophy no longer makes its row taller
     than an empty one, so the table keeps one consistent rhythm top to
     bottom instead of some rows suddenly running tall. */
  /* Constrained by HEIGHT, not width: different trophy art (league shields,
     medals, conference trophies...) isn't all drawn on the exact same
     viewBox proportions, so sizing by width let a differently-shaped icon
     render taller than its neighbours and made that one row grow. Fixing
     the height instead means every icon — whatever its own shape — is
     exactly this tall, so the row height stays the same regardless of
     which trophies happen to land in it. */
  .tt-art{display:inline-block; height:22px; width:auto; flex:none; line-height:0;}
  .tt-art svg{height:100%; width:auto; display:block; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));}
  .tt-art-flat{width:15px; padding-bottom:0;}
  .tt-art-flat svg{width:15px; height:15px; fill:var(--accent);}
  .tt-more{font-size:9px; color:var(--muted); font-family:'IBM Plex Mono',monospace; align-self:center; padding-bottom:0;}
  .crest-shield{width:100%; height:auto; display:block;}
  .crest-shield-wrap{width:100%; height:100%; display:block; overflow:hidden;}
  .crest-shield-wrap img{width:100%; height:100%; object-fit:contain; display:block;}

  .abandon-row{margin-top:6px; border-top:1px solid var(--line); padding-top:6px;}
  .abandon-link{background:none; border:none; padding:0; color:var(--muted); font-size:11.5px; text-decoration:underline; text-underline-offset:2px; cursor:pointer; transition:color .15s ease;}
  .abandon-link:hover{color:var(--ink);}
  .confirm-row{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); flex-wrap:wrap;}
  .confirm-row button{border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:var(--r-sm); padding:5px 10px; font-size:11.5px; font-weight:700; cursor:pointer; transition:border-color .15s ease, background-color .15s ease;}
  .confirm-row button:hover{border-color:var(--line-strong); background:var(--surface-2);}
  .confirm-row button.danger{border-color:var(--accent-2-ink); color:var(--accent-2-ink);}

  /* ---------- action panel + offer cards ---------- */
  .action-panel{margin-bottom:8px;}
  .sim-btn{
    width:100%; padding:20px; border-radius:var(--r-md); border:1.5px solid var(--ink); cursor:pointer;
    background:var(--ink); color:var(--bg); font-weight:900; font-size:17px;
    letter-spacing:.04em; text-transform:uppercase; font-family:'Sora',sans-serif;
    transition:background .15s ease, color .15s ease, transform .1s ease;
  }
  .sim-btn:hover{background:transparent; color:var(--ink);}
  .sim-btn:active{transform:scale(.99);}
  .recap{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:7px clamp(14px,3vw,20px) 6px; margin-top:10px;}
  .recap-head{display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:2px;}
  .recap h3{font-size:14px; font-weight:800; margin-bottom:0;}
  .recap-head .ovr-delta{margin-top:0;}
  .recap .rline{font-size:12px; color:var(--muted); margin:1px 0; line-height:1.25;}
  .recap .revents-line{font-size:13px; color:var(--ink); margin:3px 0 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .recap .revents-more{color:var(--muted); font-style:italic; font-size:12px;}

  .offer-intro{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl) var(--r-xl) 0 0; border-bottom:none; padding:6px 14px 2px;}
  .offer-intro h3{font-size:14px; font-weight:800;}
  .offer-intro p{font-size:11.5px; color:var(--muted); margin:1px 0 0; line-height:1.25;}



  @media (min-width:901px){
    #view-summary .chart-wrap{margin-top:0; padding:8px 12px 4px;}
    #view-summary .chart-wrap h3{font-size:11px; margin-bottom:2px;}
    #view-summary .chart-wrap svg{max-height:120px;}
    #view-summary .dash-left{gap:8px;}
  }
  @media (min-width:901px) and (max-height:760px){
    #view-summary .chart-wrap{display:none;}
  }

  /* shorter screens: tighten the left column in steps so it still fits without scrolling */
  @media (min-width:901px) and (max-height:900px){
    .player-card{padding:7px 12px 5px;}
    .trophy-case h4{display:none;}
    .trophy-list{zoom:.8; padding-bottom:0;}
    .abandon-row{margin-top:3px; padding-top:3px;}
    .offer-intro p{display:none;}
    .offer-grid{padding:9px;}
    .offer-card .ocrest{width:44px; height:44px; margin:2px 0 6px;}
    .recap{margin-top:6px;}
  }
  @media (min-width:901px) and (max-height:800px){
    main{padding-top:10px; padding-bottom:8px;}
    .dash-grid{height:calc(100vh - 76px); height:calc(100dvh - 76px);}
    .ovr-badge{width:58px; height:58px;}
    .ovr-badge .ov{font-size:23px;}
    .pc-stats{margin:4px 0;}
    .pc-stats .pst{padding:3px 4px;}
    .attr-row{margin:0 0 4px;}
    .trophy-list{zoom:.66;}
    .offer-grid{padding:7px;}
    .offer-card .ocrest{width:34px; height:34px; margin:0 0 3px;}
    .offer-card .onote{display:none;}
    .offer-card .oname{margin-top:2px; font-size:13px;}
    .retire-row{margin-top:3px;}
    .recap{padding-top:5px; padding-bottom:4px;}
    .recap .rline{font-size:11px;}
  }
  @media (min-width:901px) and (max-height:730px){
    .offer-card{padding-top:5px; padding-bottom:5px;}
    .offer-card .otag{padding:1px 7px;}
    .trophy-case{display:none;}
  }
  @media (min-width:901px) and (max-height:650px){
    .pc-extra-meta{display:none;}
    .pc-stats{display:none;}
  }

  /* ---------- NBA draft night: panel screens ---------- */
  .draft-card{
    background:var(--surface); border:1px solid var(--line); border-top:none; border-radius:0 0 var(--r-xl) var(--r-xl);
    padding:12px 14px; display:flex; flex-direction:column; gap:10px; margin-bottom:10px;
  }
  .dp-elig{display:flex; gap:6px; flex-wrap:wrap;}
  .dp-chip{font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px; border:1px solid var(--line); color:var(--muted);}
  .dp-chip.ok{color:var(--good); border-color:rgba(51,201,122,.4); background:rgba(51,201,122,.08);}
  .dp-mock{display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:12px; background:var(--surface-2);}
  .dp-mock-num{font-family:'Sora',sans-serif; font-weight:900; font-size:30px; color:var(--accent); line-height:1; min-width:64px; text-align:center;}
  .dp-mock-txt{font-size:11.5px; color:var(--muted); line-height:1.3;}
  .dp-mock-txt b{color:var(--ink); font-size:12.5px;}
  .dp-top{font-size:11px; color:var(--muted); line-height:1.5;}
  .dp-top b{color:var(--ink); font-weight:700;}
  .dp-result{display:flex; align-items:center; gap:12px;}
  .dp-result-crest{width:64px; height:64px; flex:none;}
  .dp-result-crest .crest-shield-wrap{width:100%; height:100%;}
  .dp-result-main{min-width:0; flex:1;}
  .draft-pick-num{font-size:34px; font-weight:900; color:var(--accent); font-family:'Sora',sans-serif; letter-spacing:-.01em; line-height:1;}
  .draft-pick-label{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; font-weight:700; margin-top:3px;}
  .draft-team{font-size:13.5px; font-weight:800; font-family:'Sora',sans-serif; margin-top:2px;}
  .draft-flavor{font-size:11.5px; color:var(--muted); line-height:1.35;}
  .dp-verdict{font-size:11.5px; padding:6px 10px; border-radius:10px; background:var(--surface-2); color:var(--ink);}
  .dp-verdict.up{color:var(--good);} .dp-verdict.down{color:var(--accent-2-ink);}
  .db-board{display:grid; grid-template-columns:1fr 1fr; gap:2px 10px;}
  .db-row{display:flex; align-items:center; gap:6px; font-size:11px; padding:2px 6px; border-radius:6px; color:var(--muted); min-width:0; white-space:nowrap;}
  .db-row .db-n{font-family:'IBM Plex Mono',monospace; width:22px; text-align:right; flex:none;}
  .db-row .team-crest-wrap, .db-row .team-crest-wrap img{width:15px; height:15px;}
  .db-row .db-name{overflow:hidden; text-overflow:ellipsis; color:var(--ink);}
  .db-row.me{background:var(--accent); color:#1a1208; font-weight:800;}
  .db-row.me .db-name{color:#1a1208;}
  .db-gap{grid-column:1 / -1; text-align:center; font-size:10px; letter-spacing:.2em; color:var(--muted); line-height:1;}

  /* ---------- NBA draft night: full-screen stage ---------- */
  .draft-reveal-overlay{
    position:fixed; inset:0; z-index:66; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:radial-gradient(ellipse at 50% 0%, #2a2140 0%, #0c0b14 62%); opacity:0; pointer-events:none; transition:opacity .3s ease;
    overflow:hidden;
  }
  .draft-reveal-overlay{visibility:hidden;}
  .draft-reveal-overlay.show{ opacity:1; pointer-events:auto; visibility:visible; }
  .ds-lights{position:absolute; inset:0; pointer-events:none;
    background:
      conic-gradient(from 195deg at 18% -8%, transparent 0 8deg, rgba(255,214,150,.13) 12deg, transparent 20deg),
      conic-gradient(from 165deg at 82% -8%, transparent 0 8deg, rgba(255,214,150,.13) 12deg, transparent 20deg),
      conic-gradient(from 178deg at 50% -12%, transparent 0 6deg, rgba(160,190,255,.12) 10deg, transparent 16deg);
    animation:ds-sweep 6s ease-in-out infinite alternate;}
  @keyframes ds-sweep{ from{opacity:.6; transform:translateX(-1.5%);} to{opacity:1; transform:translateX(1.5%);} }
  .ds-skip{position:absolute; top:16px; right:18px; z-index:3; background:rgba(255,255,255,.08); color:var(--ink); border:1px solid var(--line);
    border-radius:99px; padding:6px 14px; font-size:12px; font-weight:700; cursor:pointer;}
  .ds-skip:hover{background:rgba(255,255,255,.16);}
  .ds-banner{position:relative; z-index:2; font-family:'Sora',sans-serif; font-weight:800; font-size:13px; letter-spacing:.32em; text-transform:uppercase; color:var(--accent); margin-bottom:12px;}
  .ds-main{position:relative; z-index:2; display:grid; grid-template-columns:minmax(150px,210px) minmax(300px,560px) minmax(150px,210px); gap:18px; align-items:end; width:min(1040px,96vw);}
  .ds-screen{
    background:linear-gradient(180deg,#171a2a,#0d0f1b); border:2px solid rgba(255,255,255,.14); border-radius:18px;
    box-shadow:0 0 0 6px rgba(255,255,255,.04), 0 0 60px rgba(120,140,255,.18), inset 0 0 40px rgba(120,140,255,.08);
    padding:14px 16px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px; min-height:min(58vh,440px);
  }
  .ds-label{font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); min-height:16px;}
  .ds-crest{width:min(31vh,250px); height:min(31vh,250px); margin:2px auto; transition:transform .2s ease;}
  .ds-crest .crest-shield-wrap{width:100%; height:100%;}
  .ds-team{font-family:'Sora',sans-serif; font-weight:800; font-size:clamp(15px,2.4vh,20px); min-height:26px;}
  .ds-who{font-size:12.5px; color:var(--muted); min-height:17px;}
  .ds-pick{font-family:'Sora',sans-serif; font-weight:900; font-size:clamp(34px,7vh,58px); color:var(--accent); line-height:1; min-height:clamp(34px,7vh,58px);
    opacity:0; visibility:hidden;}
  .ds-side{display:flex; flex-direction:column; gap:6px; justify-content:flex-end; min-height:200px;}
  .ds-commish{position:relative; display:flex; flex-direction:column; align-items:center;}
  .ds-commish svg{width:min(150px,20vh); height:auto;}
  .ds-speech{background:#f4f1ea; color:#1b1b22; border-radius:12px; padding:8px 11px; font-size:12px; font-weight:700; line-height:1.3; text-align:center; position:relative; margin-bottom:10px; min-height:34px; width:100%;}
  .ds-speech::after{content:''; position:absolute; bottom:-7px; left:50%; margin-left:-7px; border:7px solid transparent; border-top-color:#f4f1ea; border-bottom:0;}
  .ds-ticker{display:flex; flex-direction:column; gap:5px; justify-content:flex-end;}
  .ds-tk{display:flex; align-items:center; gap:7px; font-size:11.5px; background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:9px; padding:5px 8px; color:var(--ink); white-space:nowrap; overflow:hidden;}
  .ds-tk .tk-n{font-family:'IBM Plex Mono',monospace; color:var(--accent); font-weight:600; min-width:24px;}
  .ds-tk .team-crest-wrap, .ds-tk .team-crest-wrap img{width:18px; height:18px;}
  .ds-tk span.tk-t{overflow:hidden; text-overflow:ellipsis; color:var(--muted);}
  .ds-jersey{display:none; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--muted);}
  .dj-wrap{width:min(190px,25vh); transform-origin:50% 0;}
  .dj-wrap > svg{display:block; width:100%; height:auto; overflow:visible; filter:drop-shadow(0 12px 14px rgba(0,0,0,.55));}
  .ds-side.reveal .ds-ticker{display:none;} .ds-side.reveal .ds-jersey{display:flex;}
  .ds-flavor{position:relative; z-index:2; margin-top:14px; font-size:13px; color:var(--ink); max-width:560px; text-align:center; line-height:1.4; min-height:18px; opacity:0; visibility:hidden;}
  .ds-go{position:relative; z-index:2; margin-top:12px; opacity:0; visibility:hidden;}
  /* GSAP-driven stage dressing: swinging spotlights, camera flashes, white-out and the giant pick number */
  .ds-beams{position:absolute; inset:0; pointer-events:none; overflow:hidden;}
  .ds-beams i{position:absolute; top:-12%; width:24vw; height:135%; transform-origin:50% 0; clip-path:polygon(44% 0,56% 0,100% 100%,0 100%); filter:blur(3px);
    background:linear-gradient(180deg,rgba(255,226,170,.26),rgba(255,226,170,0) 78%);}
  .ds-beams i:nth-child(1){left:2%;} .ds-beams i:nth-child(3){left:74%;}
  .ds-beams i:nth-child(2){left:38%; background:linear-gradient(180deg,rgba(170,195,255,.24),rgba(170,195,255,0) 78%);}
  .ds-flashes i{position:absolute; width:9px; height:9px; border-radius:50%; background:#fff; box-shadow:0 0 18px 9px rgba(255,255,255,.7); opacity:0; visibility:hidden; pointer-events:none;}
  .ds-whiteout{position:absolute; inset:0; z-index:5; background:#fff; opacity:0; visibility:hidden; pointer-events:none;}
  .ds-bignum{position:absolute; left:50%; top:45%; z-index:6; pointer-events:none; white-space:nowrap; opacity:0; visibility:hidden;
    font-family:'Sora',sans-serif; font-weight:900; font-size:clamp(90px,30vh,280px); line-height:1; letter-spacing:-.03em; color:var(--accent);
    text-shadow:0 0 50px rgba(245,166,35,.6), 0 12px 0 rgba(0,0,0,.4);}
  .ds-bignum.gold{color:#ffe28a; text-shadow:0 0 80px rgba(255,214,90,.95), 0 0 20px rgba(255,255,255,.6), 0 12px 0 rgba(0,0,0,.4);}
  .ds-bignum.small{font-size:clamp(46px,12vh,110px); color:var(--ink); text-shadow:0 0 30px rgba(255,255,255,.25);}
  @media (max-width:820px){
    .ds-main{grid-template-columns:1fr; }
    .ds-commish, .ds-side{display:none;}
  }
  @media (prefers-reduced-motion:reduce){ .draft-reveal-overlay{ display:none; } .ds-crest.spin{ animation:none; } }
  /* All 3 offer cards sit in one row (not 2+1) so choosing your next team
     never needs a third row of vertical space. */
  .offer-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
    background:var(--surface); border:1px solid var(--line); border-top:none; border-radius:0 0 var(--r-xl) var(--r-xl); padding:14px;
  }
  .offer-card{
    text-align:left; padding:16px 10px 14px; border-radius:var(--r-lg); border:1.5px solid var(--line);
    background:var(--surface-2); cursor:pointer; color:var(--ink);
    display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0;
    transition:border-color .15s, box-shadow .15s, transform .1s ease;
  }
  .offer-card:hover{border-color:var(--ink); background:var(--surface-3); box-shadow:0 6px 18px var(--shadow);}
  .offer-card:active{transform:translateY(1px) scale(.995);}
  .offer-card.stay{border-style:dashed;}
  .offer-card .osign{font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); align-self:flex-start;}
  .offer-card .oname{font-weight:800; font-size:14px; line-height:1.25; margin-top:6px; width:100%; white-space:normal; overflow-wrap:anywhere;}
  .offer-card .ocrest{width:54px; height:54px; margin:4px 0 8px; overflow:hidden;}
  .offer-card .otag{display:inline-block; max-width:100%; white-space:normal; overflow-wrap:anywhere; line-height:1.25; text-align:center; padding:3px 10px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; background:var(--surface); color:var(--accent);}
  .offer-card .onote{font-size:11px; color:var(--muted); margin-top:6px; line-height:1.3;}
  .retire-row{margin-top:6px; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;}

  /* ---------- life events (stay-on-team narrative choices) ---------- */
  .event-grid{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    background:var(--surface); border:1px solid var(--line); border-top:none; border-radius:0 0 var(--r-xl) var(--r-xl); padding:14px 16px 16px;
  }
  .event-card{
    text-align:center; padding:14px 12px; border-radius:var(--r-lg); border:1.5px solid var(--line);
    background:var(--surface-2); cursor:pointer; color:var(--ink); font-family:inherit;
    display:flex; flex-direction:column; align-items:center;
    transition:border-color .15s, background-color .15s, transform .15s var(--ease-out);
  }
  .event-card:hover{border-color:var(--ink); background:var(--surface-3); transform:translateY(-2px);}
  .ec-eyebrow{font-size:9.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted);}
  .ec-title{font-weight:800; font-size:14px; line-height:1.2; margin-top:3px;}
  .ec-visual{width:100%; height:84px; display:flex; align-items:center; justify-content:center; margin:10px 0; border-radius:10px; overflow:hidden; background:var(--surface);}
  .ec-visual svg{width:40px; height:40px;}
  .ec-visual img{width:100%; height:100%; object-fit:cover; display:block;}
  .ec-flag{width:78px; height:50px; border-radius:6px; overflow:hidden; box-shadow:0 0 0 1px var(--line) inset; background:var(--surface-2);}
  .ec-flag svg, .ec-flag img{width:100%; height:100%; object-fit:cover; display:block;}
  .ec-badges{display:flex; flex-direction:column; gap:6px; width:100%;}
  .ec-badge{font-size:10.5px; font-weight:800; padding:6px 8px; border-radius:999px; text-align:center;}
  .ec-badge.up{background:rgba(51,201,122,.14); color:var(--good);}
  .ec-badge.down{background:rgba(225,58,75,.14); color:var(--accent-2-ink);}
  .ec-badge.neutral{background:var(--surface); color:var(--muted);}
  .ec-footer{
    margin-top:auto; padding-top:10px; width:100%; font-size:10.5px; font-weight:700; color:var(--muted);
    display:flex; align-items:center; justify-content:center; gap:5px;
  }
  .ec-footer svg{width:11px; height:11px; flex:none;}

  /* ---------- training / injury / perk screens ---------- */
  .prep-panel{margin-top:16px;}
  .prep-h{font-size:13px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:10px;}
  .combine-list{display:grid; grid-template-columns:1fr 1fr; gap:9px 12px;}
  @media (max-width:520px){ .combine-list{grid-template-columns:1fr;} }
  .combine-q .cq-text{font-size:10.5px; font-weight:700; color:var(--muted); margin-bottom:5px; line-height:1.2;}
  /* Segmented-control look: a single shared track per question, with the
     active choice lifted onto its own pill instead of two separately
     bordered boxes fighting for attention. */
  .combine-opts{
    display:grid; grid-template-columns:1fr 1fr; gap:4px;
    background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:4px;
  }
  .combine-opt{
    display:flex; align-items:center; gap:7px;
    padding:8px 7px; border-radius:7px; border:0; background:none;
    color:var(--muted); font-family:'Manrope',sans-serif; font-size:10.5px; font-weight:700; cursor:pointer;
    text-align:left; line-height:1.2; transition:background .15s ease, color .15s ease;
  }
  .combine-opt svg{width:16px; height:16px; flex:none; color:var(--muted); transition:color .15s ease;}
  .combine-opt:hover{color:var(--ink);}
  .combine-opt.selected{background:var(--surface); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line);}
  .combine-opt.selected svg{color:var(--accent);}

  /* Archetype readout: synthesizes the six answers into one label, so the
     combine feels like it adds up to something instead of six isolated
     toggles. */
  .combine-result{
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
    margin-top:14px; padding-top:14px; border-top:1px solid var(--line);
  }
  .cr-icon{
    width:38px; height:38px; border-radius:10px; background:rgba(245,166,35,.12);
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .cr-icon svg{width:19px; height:19px; color:var(--accent);}
  .cr-label{font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);}
  .cr-name{font-family:'Sora',sans-serif; font-weight:800; font-size:17px; margin-top:2px;}
  .cr-sub{font-size:11px; color:var(--muted); margin-top:3px; line-height:1.35;}
  .cr-bonus{margin-top:3px; font-family:'IBM Plex Mono',monospace; font-size:10px;}
  .cr-bonus b{font-weight:600;} .cr-bonus .up{color:var(--good);} .cr-bonus .down{color:var(--accent-2-ink);}
  .cr-tags{margin-left:auto; display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-end; max-width:280px;}
  .cr-tags span{font-size:10.5px; color:var(--muted); border:1px solid var(--line); border-radius:6px; padding:3px 8px;}

  .training-panel{margin-top:0; border-radius:0 0 var(--r-xl) var(--r-xl);}
  .intensity-row{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px;}
  .intensity-btn{
    text-align:center; padding:11px 8px; border-radius:12px; border:1.5px solid var(--line);
    background:var(--surface-2); cursor:pointer; color:var(--ink); font-family:inherit;
    transition:border-color .15s ease, background-color .15s ease, transform .15s ease;
  }
  .intensity-btn:hover{transform:translateY(-2px); border-color:var(--line-strong);}
  .intensity-btn.selected{border-color:var(--ink); background:var(--bg);}
  .intensity-btn .ib-label{font-weight:800; font-size:13.5px;}
  .intensity-btn .ib-meta{font-size:10.5px; color:var(--muted); margin-top:3px;}
  .alloc-grid{display:flex; flex-direction:column; gap:10px;}
  .alloc-row{display:grid; grid-template-columns:1fr 2fr auto; align-items:center; gap:10px;}
  .alloc-name{font-size:13px; font-weight:700; display:flex; flex-direction:column; gap:1px;}
  .alloc-name .alloc-cur{font-size:10.5px; color:var(--muted); font-weight:600;}
  .alloc-bar{height:6px; border-radius:999px; background:var(--surface-2); overflow:hidden;}
  .alloc-bar-fill{height:100%; background:var(--accent); border-radius:999px; transition:width .3s ease;}
  .alloc-stepper{display:flex; align-items:center; gap:8px; justify-self:end;}
  .alloc-btn{
    width:26px; height:26px; border-radius:8px; border:1.5px solid var(--line); background:var(--surface-2);
    color:var(--ink); font-size:15px; font-weight:800; cursor:pointer; line-height:1; display:flex; align-items:center; justify-content:center;
    transition:border-color .15s ease, color .15s ease;
  }
  .alloc-btn:not(:disabled):hover{border-color:var(--accent); color:var(--accent);}
  .alloc-btn:disabled{opacity:.35; cursor:not-allowed;}
  .alloc-pts{font-size:12.5px; font-weight:800; color:var(--accent); min-width:22px; text-align:center;}
  .alloc-remaining{margin-top:12px; font-size:12px; color:var(--muted); text-align:center;}
  .alloc-remaining b{color:var(--ink);}

  .pk-had{font-size:12px; color:var(--muted); margin:0 0 8px;} .pk-had b{color:var(--ink);}
  .pk-list{display:flex; flex-direction:column; gap:8px;}
  .pk-row{display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:10px; width:100%; min-height:52px; padding:7px 10px; border-radius:var(--r-lg); border:1.5px solid var(--line); background:var(--surface-2); color:var(--ink); font-family:inherit; text-align:left; cursor:pointer; transition:border-color .15s ease, background-color .15s ease;}
  .pk-row:hover, .pk-row:focus-visible{border-color:var(--accent); background:var(--surface-3); outline:none;}
  .pk-row .perk-ico{width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(150deg, var(--surface-2), var(--surface)); box-shadow:inset 0 0 0 1.5px var(--line);}
  .pk-row .perk-ico svg{width:20px; height:20px;}
  .pk-list{flex:1; min-height:0;}
  /* laptops: the decisions panel is short, so the one-line description goes and the attribute change stays */
  @media (min-width:901px) and (max-height:800px){ .pk-txt > span{display:none;} .pk-row{min-height:44px; padding:5px 10px;} .pk-list{gap:6px;} }
  .pk-txt{display:flex; flex-direction:column; gap:2px; min-width:0;} .pk-txt b{font-size:14px;} .pk-txt > span{font-size:11.5px; color:var(--muted); line-height:1.35;}
  .pk-attr{display:flex; flex-direction:column; align-items:flex-end; gap:1px; font-size:10.5px; color:var(--muted); text-align:right; white-space:nowrap;}
  .pk-attr b{font-size:12px; color:var(--ink);} .pk-attr b.up{color:#4ade80;}
  @media (max-width:480px){
    .pk-row{grid-template-columns:36px 1fr; gap:10px; padding:9px 10px;}
    .pk-row .perk-ico{width:36px; height:36px;} .pk-row .perk-ico svg{width:18px; height:18px;}
    .pk-attr{grid-column:2; flex-direction:row; gap:6px; align-items:baseline; justify-content:flex-start;}
  }


  .attr-row{display:grid; grid-template-columns:repeat(2,1fr); gap:5px 14px; margin:2px 0 8px;}
  .attr-item .attr-top{display:flex; justify-content:space-between; font-size:10.5px; color:var(--muted); margin-bottom:2px;}
  .attr-item .attr-top span:last-child{color:var(--ink); font-weight:700;}
  .attr-bar{height:4px; border-radius:999px; background:var(--surface-2); overflow:hidden;}
  .attr-bar-fill{height:100%; background:var(--accent-2); border-radius:999px;}
  .pc-extra-meta{display:flex; flex-wrap:wrap; gap:6px 12px; font-size:11px; color:var(--muted); margin:0 0 6px;}
  .pc-extra-meta b{color:var(--ink); font-weight:700;}

  /* ---------- roulette (life-event gamble reveal) ---------- */
  .roulette-overlay{
    position:fixed; inset:0; z-index:65; display:flex; align-items:center; justify-content:center;
    background:rgba(10,10,14,.55); opacity:0; pointer-events:none; transition:opacity .25s ease;
  }
  .roulette-overlay{visibility:hidden;}
  .roulette-overlay.show{ opacity:1; pointer-events:auto; visibility:visible; }
  .roulette-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:var(--s-5); max-width:300px; width:90%;
    text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.4);
  }
  .roulette-title{font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:16px;}
  .roulette-pills{display:flex; flex-direction:column; gap:8px;}
  .roulette-pill{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:12px 16px; border-radius:12px; border:1.5px solid var(--line); background:var(--surface-2);
    font-size:13px; font-weight:700; transition:background .12s, border-color .12s, transform .12s;
  }
  .roulette-pill .rp-pct{font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:11px; color:var(--muted);}
  .roulette-pill.tone-up{ color:var(--good); }
  .roulette-pill.tone-down{ color:var(--accent-2-ink); }
  .roulette-pill.tone-neutral{ color:var(--ink); }
  .roulette-pill.active{ background:var(--ink); border-color:var(--ink); color:var(--bg); transform:scale(1.04); }
  .roulette-pill.active .rp-pct{ color:var(--bg); opacity:.75; }
  .roulette-pill.hit{ background:rgba(245,166,35,.18); border-color:var(--accent); transform:scale(1.05); }
  .roulette-pill.hit .rp-pct{ color:var(--muted); }
  .roulette-result{margin-top:12px; font-size:16px; font-weight:900; min-height:20px; opacity:0; transform:translateY(4px); transition:opacity .3s, transform .3s;}
  .roulette-result.show{opacity:1; transform:translateY(0);}
  @media (prefers-reduced-motion:reduce){ .roulette-overlay{ display:none; } }

  /* ---------- season-award celebration ----------
     No boxed card: the trophies float directly on a translucent black
     scrim so the game underneath stays visible, several side by side
     when more than one was won in the same season. */
  .award-overlay{
    position:fixed; inset:0; z-index:70; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:16px; padding:28px 20px; text-align:center;
    background:rgba(6,7,11,.8); opacity:0; pointer-events:none; transition:opacity .3s ease; cursor:pointer;
  }
  .award-overlay{visibility:hidden;}
  .award-overlay.show{ opacity:1; pointer-events:auto; visibility:visible; }
  .acx-kicker{
    font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);
    text-shadow:0 2px 12px rgba(0,0,0,.7);
    opacity:0; transform:translateY(10px); transition:opacity .4s ease, transform .4s ease;
  }
  .acx-heading{
    font-family:'Sora',sans-serif; font-size:21px; font-weight:900; color:var(--ink);
    text-shadow:0 4px 20px rgba(0,0,0,.7);
    opacity:0; transform:translateY(10px); transition:opacity .4s ease .05s, transform .4s ease .05s;
  }
  .award-overlay.show .acx-kicker{ opacity:1; transform:translateY(0); }
  .award-overlay.show .acx-heading{ opacity:1; transform:translateY(0); }
  .acx-row{display:flex; flex-wrap:wrap; gap:20px 24px; justify-content:center; max-width:560px;}
  .acx-trophy{
    position:relative; width:108px; display:flex; flex-direction:column; align-items:center; gap:6px;
    opacity:0; transform:translateY(18px) scale(.82);
    transition:opacity .5s cubic-bezier(.34,1.56,.64,1), transform .5s cubic-bezier(.34,1.56,.64,1);
  }
  .award-overlay.show .acx-trophy{ opacity:1; transform:translateY(0) scale(1); }
  .acx-many .acx-trophy{width:84px;}
  .acx-many .acx-row{max-width:640px; gap:14px 16px;}
  .acx-art{width:100%; height:auto; filter:drop-shadow(0 14px 26px rgba(0,0,0,.6));}
  .acx-label{font-size:11px; font-weight:800; color:var(--ink); text-shadow:0 2px 10px rgba(0,0,0,.8); line-height:1.25;}
  .acx-count{
    position:absolute; top:-2px; right:2px; z-index:1; background:var(--accent-2); color:#210a0d;
    font-size:10px; font-weight:900; padding:1px 6px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.5);
  }
  .acx-flaticon{width:48px; height:48px; display:flex; align-items:center; justify-content:center; flex:none;}
  .acx-flaticon .ti-ico{width:40px; height:40px; fill:var(--accent); filter:drop-shadow(0 8px 16px rgba(0,0,0,.6));}
  .acx-hint{font-size:10.5px; color:var(--muted); text-shadow:0 2px 10px rgba(0,0,0,.8);}
  @media (prefers-reduced-motion:reduce){
    .award-overlay, .acx-kicker, .acx-heading, .acx-trophy{ transition:none !important; }
  }
  .nt-callup-flag{
    width:76px; height:57px; border-radius:6px; overflow:hidden; box-shadow:0 10px 26px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.15);
    opacity:0; transform:translateY(14px) scale(.85); transition:opacity .45s cubic-bezier(.34,1.56,.64,1) .08s, transform .45s cubic-bezier(.34,1.56,.64,1) .08s;
  }
  .nt-callup-flag img, .nt-callup-flag svg{width:100%; height:100%; object-fit:cover; display:block;}
  .award-overlay.show .nt-callup-flag{opacity:1; transform:translateY(0) scale(1);}
  .nt-callup-sub{
    max-width:320px; font-size:12.5px; color:var(--ink); text-shadow:0 2px 10px rgba(0,0,0,.8); line-height:1.35;
    opacity:0; transition:opacity .4s ease .16s;
  }
  .award-overlay.show .nt-callup-sub{opacity:1;}
  @media (prefers-reduced-motion:reduce){
    .nt-callup-flag, .nt-callup-sub{ transition:none !important; }
  }

  /* ---------- trophy cabinet (big illustrated award showcase) ---------- */
  .tc-shell{
    max-width:960px; margin:0 auto; border-radius:var(--r-xl); padding:22px clamp(18px,3vw,30px) 30px;
    background:var(--surface); border:1px solid var(--line); position:relative;
  }
  .tc-back{
    display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; padding:7px 15px; min-height:36px; border-radius:var(--r-md);
    border:1px solid var(--line); background:var(--surface-2); color:var(--ink); font-family:'Manrope',sans-serif;
    font-weight:700; font-size:12.5px; cursor:pointer; transition:border-color .15s ease, background .15s ease;
  }
  .tc-back:hover{border-color:var(--accent);}
  .tc-head{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:2px;}
  .tc-head h2{font-family:'Sora',sans-serif; font-weight:800; font-size:22px; text-transform:uppercase; letter-spacing:-.01em;}
  .tc-head p{color:var(--muted); font-size:12.5px; margin-top:5px;}
  .tc-count{font-family:'Sora',sans-serif; font-weight:800; font-size:11px; color:var(--muted); letter-spacing:.1em; text-transform:uppercase;}
  .tc-count b{color:var(--accent); font-size:19px; margin-right:5px;}
  .tc-h3{
    font-family:'Sora',sans-serif; font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.14em;
    color:var(--muted); margin:24px 0 12px; display:flex; align-items:center; gap:12px;
  }
  .tc-h3::after{content:''; flex:1; height:1px; background:linear-gradient(90deg,var(--line),transparent);}
  .tc-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:12px;}
  .tc-card{
    --r:#f5b53f; position:relative; border-radius:var(--r-lg); padding:10px 10px 13px; text-align:center; overflow:hidden; cursor:pointer;
    background:radial-gradient(70% 45% at 50% 38%, color-mix(in srgb, var(--r) 20%, transparent), transparent 70%),
      linear-gradient(180deg, var(--surface-2), var(--bg));
    border:1px solid var(--line); transition:transform .25s ease, border-color .25s, box-shadow .25s;
  }
  .tc-card:hover{border-color:color-mix(in srgb, var(--r) 45%, var(--line)); box-shadow:0 16px 40px -18px color-mix(in srgb, var(--r) 45%, transparent);}
  .tc-card svg.tc-art{width:100%; height:180px; display:block; position:relative;}
  .tc-card h4{font-family:'Sora',sans-serif; font-weight:800; font-size:12px; text-transform:uppercase; margin-top:2px;}
  .tc-card p{font-size:10.5px; color:var(--muted); margin-top:2px;}
  .tc-card.tc-locked{filter:grayscale(1) brightness(.6); opacity:.55;}
  .tc-card.tc-locked:hover{opacity:.8; filter:grayscale(1) brightness(.7);}
  .tc-card.tc-locked h4{color:var(--muted);}
  .tc-rar{
    position:absolute; top:9px; left:9px; z-index:2; font-size:8.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
    padding:3px 8px; border-radius:999px; color:var(--r); background:color-mix(in srgb, var(--r) 16%, transparent);
    border:1px solid color-mix(in srgb, var(--r) 38%, transparent);
  }
  .tc-rar-locked{color:var(--muted); background:rgba(244,239,232,.08); border:1px solid var(--line);}
  .tc-count-badge{
    position:absolute; top:9px; right:9px; z-index:2; font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:600;
    color:var(--ink); background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:2px 7px;
  }
  .tc-spk{
    position:absolute; width:8px; height:8px; background:#fff; opacity:0; pointer-events:none; animation:tcTwinkle 3s ease-in-out infinite;
    clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
  }
  @keyframes tcTwinkle{0%,100%{opacity:0; transform:scale(.3) rotate(0);} 50%{opacity:.85; transform:scale(1) rotate(45deg);}}
  .tc-shine{animation:tcShine 5s ease-in-out infinite;}
  @keyframes tcShine{0%,62%{transform:translateX(-90px) skewX(-22deg);} 100%{transform:translateX(190px) skewX(-22deg);}}
  .tc-float{animation:tcFloat 4s ease-in-out infinite;}
  @keyframes tcFloat{50%{transform:translateY(-3px);}}
  @media (prefers-reduced-motion:reduce){ .tc-spk, .tc-shine, .tc-float{animation:none;} }
  .tc-empty{color:var(--muted); font-size:12.5px; padding:8px 0 2px;}

  .tc-detail{position:fixed; inset:0; z-index:81; display:none; place-items:center; background:rgba(6,8,12,.78); backdrop-filter:blur(6px); padding:20px; overscroll-behavior:contain;}
  .tc-detail.show{display:grid;}
  .tc-dbox{
    --r:#f5b53f; width:min(720px,100%); display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:center;
    border-radius:24px; padding:22px; border:1px solid color-mix(in srgb, var(--r) 35%, var(--line)); position:relative;
    background:radial-gradient(60% 60% at 30% 40%, color-mix(in srgb, var(--r) 22%, transparent), transparent 70%),
      linear-gradient(180deg, var(--surface-2), var(--bg));
  }
  .tc-dbox svg{width:100%; height:min(56vh,420px);}
  .tc-dbox .tc-rar{position:static; display:inline-block;}
  .tc-dbox h3{font-family:'Sora',sans-serif; font-weight:800; font-size:26px; text-transform:uppercase; line-height:1; margin:12px 0 9px;}
  .tc-dbox p{color:var(--muted); line-height:1.55; font-size:13px;}
  .tc-dbox dl{display:grid; grid-template-columns:auto 1fr; gap:7px 14px; margin-top:15px; font-size:12.5px;}
  .tc-dbox dt{color:var(--muted);}
  .tc-dbox dd{font-weight:700;}
  .tc-dclose{position:absolute; top:14px; right:16px; font-size:22px; color:var(--muted); background:none; border:0; cursor:pointer; padding:6px;}
  .tc-dclose:hover{color:var(--ink);}
  .tc-dclose:focus-visible, .tc-card:focus-visible, .chd-info:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
  @media(max-width:640px){ .tc-dbox{grid-template-columns:1fr;} .tc-dbox svg{height:40vh;} }

  .trophy-cabinet-btn{
    margin-top:8px; width:100%; padding:8px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface-2);
    color:var(--accent); font-family:'Manrope',sans-serif; font-weight:700; font-size:11px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:6px; transition:border-color .15s ease, background .15s ease;
  }
  .trophy-cabinet-btn:hover{border-color:var(--accent); background:var(--surface);}
  .trophy-cabinet-btn svg{width:13px; height:13px;}

  /* ---------- season table ---------- */
  /* Capped and internally scrollable — a 25-season career shouldn't push the
     chart (or the third offer card, on the left column) off the bottom of
     the screen. Only this box scrolls; the page itself doesn't need to. */
  .table-wrap{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); overflow:hidden;}
  .table-scroll{overflow-x:auto;}
  .table-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px 0;}
  .table-head h3{font-family:'Sora',sans-serif; font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--muted);}
  .dash-challenges-btn{
    display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:var(--r-md); flex:none;
    border:1px solid var(--line); background:var(--surface-2); color:var(--accent);
    font-family:'Manrope',sans-serif; font-weight:700; font-size:11.5px; cursor:pointer;
    transition:border-color .15s ease, background .15s ease;
  }
  .dash-challenges-btn:hover{border-color:var(--accent); background:var(--surface);}
  .dash-challenges-btn svg{width:14px; height:14px;}
  table.season-table{width:100%; border-collapse:collapse; font-size:11.5px; min-width:660px;}
  table.season-table thead th{
    position:sticky; top:0; background:var(--surface); z-index:2;
    text-align:left; font-size:9.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
    color:var(--muted); padding:8px 8px; border-bottom:1px solid rgba(244,239,232,.22); white-space:nowrap;
  }
  /* height here is a full (border-box) row height, not just a content
     minimum — the page sets box-sizing:border-box globally, so this value
     already includes the cell's own padding/border. It's picked to be at
     least as tall as the biggest thing any cell ever holds (a trophy icon),
     so every row — with trophies or without — ends up exactly this tall
     instead of a trophy row quietly growing past a plain one. */
  table.season-table td{padding:7px 8px; height:40px; vertical-align:middle; border-bottom:1px solid rgba(244,239,232,.16); white-space:nowrap; font-family:'IBM Plex Mono',monospace;}
  table.season-table tbody tr:nth-child(even):not(.current) td{background:rgba(244,239,232,.03);}
  table.season-table tr.future td{color:var(--muted); opacity:.45;}
  table.season-table tr.current{background:var(--surface-2);}
  table.season-table tr.current td{font-weight:700;}
  table.season-table tr:last-child td{border-bottom:none;}
  .club-inner{display:flex; align-items:center; gap:8px;}
  .row-team{display:flex; align-items:center; gap:6px; font-family:'Manrope',sans-serif; font-weight:600;}
  .el-tag{display:inline-block; margin-left:5px; padding:0 5px; border-radius:4px; font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:9px; line-height:14px; letter-spacing:.06em; color:#ffb067; background:rgba(255,138,42,.14); border:1px solid rgba(255,138,42,.45); vertical-align:middle;}
  .row-league{display:inline-flex; align-items:center; font-family:'Manrope',sans-serif; font-weight:500; font-size:10px; color:var(--muted); white-space:nowrap;}
  .tt-none{color:var(--muted); opacity:.5;}
  .ovr-chip{
    display:inline-block; padding:2px 7px; border-radius:6px; font-weight:800; font-size:11.5px;
  }

  .new-career-btn{
    width:100%; padding:16px; border-radius:var(--r-md); border:1.5px solid var(--ink); cursor:pointer;
    background:var(--ink); color:var(--bg); font-weight:900; font-size:15px;
    letter-spacing:.04em; text-transform:uppercase; font-family:'Sora',sans-serif;
    transition:background .15s ease, color .15s ease, transform .1s ease;
  }
  .new-career-btn:hover{background:transparent; color:var(--ink);}
  .new-career-btn:active, .offer-cta.ready:active, .event-card:active, .intensity-btn:active, .tc-back:active, .recap-again:active{transform:scale(.98);}
  .legacy-badge{display:inline-block; margin-top:9px; padding:6px 14px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; background:var(--accent-2); color:#fff;}
  .chart-wrap{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:14px clamp(12px,3vw,18px) 8px; margin-top:18px;}

  .totals-panel{margin-bottom:14px;}
  .tc-shell .totals-panel{margin:16px 0 8px;}
  .totals-head{font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:12px;}
  .totals-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(78px,1fr)); gap:8px;}
  @media (max-width:560px){ .totals-grid{grid-template-columns:repeat(2,1fr);} }
  .total-tile{background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:12px 6px; text-align:center;}
  .total-value{font-size:19px; font-weight:800; color:var(--ink); letter-spacing:-.01em;}
  .total-label{font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-top:4px;}

  /* ---------- retirement page: national team / individual awards ---------- */
  .hl-row{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px;}
  @media (max-width:640px){ .hl-row{grid-template-columns:1fr;} }
  .hl-box{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px clamp(14px,3vw,22px);}
  .hl-head{display:flex; align-items:center; gap:8px; margin-bottom:12px;}
  .hl-title{font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); flex:1;}
  .hl-flag{flex:none; width:22px; height:15px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px var(--line) inset;}
  .hl-flag img, .hl-flag svg{display:block; width:100%; height:100%; object-fit:cover;}
  .hl-sub{font-size:11px; font-weight:700; color:var(--ink);}
  .hl-grid{display:flex; flex-wrap:wrap; gap:14px 12px;}
  .hl-item{position:relative; flex:none; width:56px; text-align:center;}
  .hl-art{width:56px; height:auto; display:block; filter:drop-shadow(0 3px 6px rgba(0,0,0,.5));}
  .hl-label{font-size:9px; font-weight:700; color:var(--muted); line-height:1.25; margin-top:2px; overflow-wrap:break-word;}
  .hl-count{
    position:absolute; top:-3px; right:2px; z-index:1; background:var(--accent-2); color:#210a0d;
    font-size:8px; font-weight:900; padding:1px 4px; border-radius:999px; line-height:1.3; box-shadow:0 1px 4px rgba(0,0,0,.5);
  }
  .hl-empty{font-size:10.5px; color:var(--muted);}
  .chart-wrap h3{font-size:14px; font-weight:800; margin-bottom:6px;}

  /* ---------- retirement: team-by-team recap ---------- */
  .trecap-wrap{margin-bottom:18px;}
  .trecap-wrap h3{font-size:14px; font-weight:800; margin-bottom:10px;}
  .trecap-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px;}
  .trecap-card{
    position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--r-lg); padding:14px 14px 12px;
  }
  .trecap-card::before{
    content:''; position:absolute; top:0; left:0; right:0; height:4px;
    background:linear-gradient(90deg,var(--tp),var(--ts));
  }
  .trecap-top{display:flex; align-items:center; gap:10px; margin-top:2px;}
  .trecap-crest{width:40px; height:40px; flex:none;}
  .trecap-id{min-width:0; flex:1;}
  .trecap-name{font-weight:800; font-size:13px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .trecap-league{display:flex; align-items:center; gap:4px; font-size:10px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .trecap-league .league-logo{width:11px; height:11px; flex:none;}
  .trecap-span{
    flex:none; font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700; color:var(--muted);
    background:var(--surface-2); border-radius:7px; padding:3px 7px; white-space:nowrap;
  }
  .trecap-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:12px 0 10px;}
  .trecap-stats .pst{background:var(--surface-2); border-radius:9px; padding:5px 4px; text-align:center;}
  .trecap-stats .pst .v{font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:13px; color:var(--ink);}
  .trecap-stats .pst .l{font-size:8.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-top:2px;}
  .trecap-trophies{display:flex; flex-wrap:wrap; gap:6px;}
  .trecap-trophy{
    display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; color:var(--ink);
    background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:4px 9px 4px 6px;
  }
  .trecap-trophy .ti-ico{width:13px; height:13px; fill:var(--accent); flex:none;}
  .trecap-trophy .trecap-art{width:16px; height:auto; flex:none; filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));}
  .trecap-trophy b{color:var(--accent); font-weight:900;}
  .trecap-empty{font-size:10.5px; color:var(--muted);}
  .chart-wrap svg{width:100%; height:auto; display:block;}

  /* ---------- career-complete recap (shareable poster-style summary) ---------- */
  .recap-shell{max-width:1180px; margin:0 auto;}
  .recap-frame{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); padding:20px clamp(14px,3vw,22px);}
  .recap-top{display:grid; grid-template-columns:1.35fr 1fr 1.1fr; gap:12px;}
  @media (max-width:900px){ .recap-top{grid-template-columns:1fr;} }
  .recap-box{position:relative; border-radius:var(--r-lg); padding:14px 16px; overflow:hidden; border:1px solid var(--line);}
  .recap-lb{font-family:'Sora',sans-serif; font-size:9.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);}
  .recap-me{background:linear-gradient(135deg,var(--surface-2),var(--bg));}
  .recap-me-row{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap;}
  .recap-me h2{font-family:'Sora',sans-serif; font-weight:800; font-size:24px; text-transform:uppercase; letter-spacing:-.01em; line-height:1.1; margin-top:4px;}
  .recap-chips{display:flex; gap:6px; margin-top:8px; align-items:center; flex-wrap:wrap;}
  .recap-chip{font-size:10.5px; font-weight:800; padding:3px 9px; border-radius:99px; background:rgba(244,239,232,.08); color:var(--ink);}
  .recap-chip.pos{background:var(--accent-2); color:#fff;}
  .recap-val{text-align:right;}
  .recap-val b{display:block; font-family:'Sora',sans-serif; font-weight:800; font-size:18px; color:var(--ink);}
  .recap-ovr{
    width:58px; height:62px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:linear-gradient(145deg,#fff1b8,#f5b53f 45%,#a86b10); color:#2a1700; box-shadow:0 8px 24px rgba(245,181,63,.35); flex:none;
  }
  .recap-ovr small{font-size:8.5px; font-weight:900; letter-spacing:.1em;}
  .recap-ovr b{font-family:'Sora',sans-serif; font-weight:800; font-size:25px; line-height:1;}
  .recap-stats{display:grid; grid-template-columns:repeat(4,1fr); background:rgba(0,0,0,.24); border-radius:10px; margin-top:12px;}
  .recap-stats div{text-align:center; padding:6px 0;}
  .recap-stats div+div{border-left:1px solid var(--line);}
  .recap-stats span{display:block; font-size:8.5px; font-weight:800; letter-spacing:.1em; color:var(--muted);}
  .recap-stats b{font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:13.5px; color:var(--ink);}
  .recap-sub{font-size:11px; color:var(--muted); margin-top:8px;}
  .recap-nat{background:linear-gradient(135deg,rgba(225,58,75,.18),rgba(225,58,75,.03));}
  .recap-nat-head{display:flex; gap:12px; align-items:center;}
  .recap-flagL{flex:none; width:42px; height:29px; border-radius:4px; overflow:hidden; box-shadow:0 0 0 1px var(--line) inset; display:block;}
  .recap-flagL img, .recap-flagL svg{display:block; width:100%; height:100%; object-fit:cover;}
  .recap-nat h2{font-family:'Sora',sans-serif; font-weight:800; font-size:15px; margin-top:1px;}
  .recap-aw{background:radial-gradient(80% 90% at 70% 60%, rgba(245,166,35,.16), transparent 70%);}
  /* Trophies overlap like a fanned stack of coins — each one sits partly
     behind the next (z-index climbs left→right via --i) and lifts clear
     of its neighbours on hover, where a custom tooltip names it (native
     title tooltips are slow and plain, so this uses a data-tip + ::after
     bubble instead). */
  .recap-tr{display:flex; flex-wrap:wrap; justify-content:center; margin-top:12px; padding:0 8px;}
  .recap-t{
    position:relative; display:inline-block; text-align:center; width:44px; height:52px;
    margin-left:-8px; z-index:var(--i,1); cursor:default;
    transition:transform .18s cubic-bezier(.34,1.56,.64,1), z-index 0s;
  }
  .recap-t:first-child{margin-left:0;}
  .recap-t:hover{transform:translateY(-7px) scale(1.16); z-index:90;}
  .recap-t svg{display:block; width:44px; height:auto; filter:drop-shadow(0 3px 5px rgba(0,0,0,.45));}
  .recap-t em{
    position:absolute; top:-2px; right:-2px; font-style:normal; font-family:'IBM Plex Mono',monospace; font-size:9px; font-weight:700;
    background:var(--accent-2); color:#fff; border-radius:99px; padding:1px 5px; line-height:1.3;
  }
  .recap-t[data-tip]::after{
    content:attr(data-tip); position:absolute; bottom:calc(100% + 7px); left:50%;
    transform:translateX(-50%) translateY(5px); background:var(--ink); color:var(--bg);
    font-size:10px; font-weight:800; font-family:'Manrope',sans-serif; white-space:nowrap;
    padding:5px 9px; border-radius:7px; pointer-events:none; box-shadow:0 4px 14px rgba(0,0,0,.45);
    opacity:0; visibility:hidden; transition:opacity .15s ease, transform .15s ease;
  }
  .recap-t:hover[data-tip]::after{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);}
  .recap-empty{font-size:10px; color:var(--muted); text-align:center; margin-top:10px; letter-spacing:.05em; text-transform:uppercase;}

  .recap-clubs{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px;}
  @media (max-width:900px){ .recap-clubs{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .recap-clubs{grid-template-columns:1fr;} }
  .recap-club{
    position:relative; isolation:isolate; border-radius:var(--r-lg); padding:14px; overflow:hidden; min-height:190px;
    display:flex; flex-direction:column; align-items:center; border:1px solid var(--line); background:var(--surface-2); transition:transform .2s;
  }
  .recap-club:hover{transform:translateY(-3px);}
  .rc-wm{
    position:absolute; right:-20px; bottom:-20px; width:160px; height:160px; z-index:-1;
    opacity:.16; pointer-events:none;
  }
  .rc-wm img{width:100%; height:100%; object-fit:contain; display:block;}
  .rc-yr{position:absolute; top:12px; left:14px; font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700; color:var(--muted);}
  .rc-lg{position:absolute; top:12px; right:14px; font-size:9px; font-weight:800; letter-spacing:.06em; padding:3px 8px; border-radius:99px; background:rgba(0,0,0,.3); color:var(--ink); max-width:44%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .rc-crest{width:44px; height:48px; margin-top:6px; filter:drop-shadow(0 6px 10px rgba(0,0,0,.4));}
  .recap-club h3{font-family:'Sora',sans-serif; font-weight:800; font-size:13px; margin-top:6px; text-align:center;}
  .recap-club .recap-stats{width:100%; margin-top:10px;}
  .rc-per{font-size:10px; color:var(--muted); margin-top:6px; font-family:'IBM Plex Mono',monospace;}
  .recap-club .recap-tr{margin-top:auto; padding-top:8px;}
  /* Many clubs: switch to compact cards in more columns so a long career still reads as one board. */
  .recap-clubs.dense{grid-template-columns:repeat(4,1fr); gap:10px;}
  .recap-clubs.dense2{grid-template-columns:repeat(5,1fr); gap:8px;}
  .recap-clubs.dense .recap-club, .recap-clubs.dense2 .recap-club{min-height:0; padding:10px 10px 9px; border-radius:14px;}
  .recap-clubs.dense .rc-wm, .recap-clubs.dense2 .rc-wm{width:96px; height:96px; right:-14px; bottom:-14px;}
  .recap-clubs.dense .rc-yr, .recap-clubs.dense2 .rc-yr{top:9px; left:10px; font-size:9px;}
  .recap-clubs.dense .rc-lg, .recap-clubs.dense2 .rc-lg{top:8px; right:9px; font-size:8px; padding:2px 6px;}
  .recap-clubs.dense .rc-crest, .recap-clubs.dense2 .rc-crest{width:34px; height:38px; margin-top:12px;}
  .recap-clubs.dense h3, .recap-clubs.dense2 h3{font-size:11.5px; margin-top:4px; line-height:1.2;}
  .recap-clubs.dense .recap-club .recap-stats, .recap-clubs.dense2 .recap-club .recap-stats{margin-top:7px;}
  .recap-clubs.dense .recap-stats div, .recap-clubs.dense2 .recap-stats div{padding:3px 0;}
  .recap-clubs.dense .recap-stats span, .recap-clubs.dense2 .recap-stats span{font-size:7.5px;}
  .recap-clubs.dense .recap-stats b, .recap-clubs.dense2 .recap-stats b{font-size:11.5px;}
  .recap-clubs.dense .rc-per, .recap-clubs.dense2 .rc-per{margin-top:4px; font-size:9px;}
  .recap-clubs.dense .recap-club .recap-tr, .recap-clubs.dense2 .recap-club .recap-tr{padding-top:6px; margin-top:auto;}
  .recap-clubs.dense .recap-t{width:30px; height:36px; margin-left:-6px;}
  .recap-clubs.dense .recap-t svg{width:30px;}
  .recap-clubs.dense2 .recap-t{width:26px; height:32px; margin-left:-6px;}
  .recap-clubs.dense2 .recap-t svg{width:26px;}
  .recap-clubs.dense .recap-t em, .recap-clubs.dense2 .recap-t em{font-size:8px; padding:0 4px;}
  .recap-clubs.dense .recap-empty, .recap-clubs.dense2 .recap-empty{margin-top:6px; font-size:8.5px;}
  @media (max-width:1000px){ .recap-clubs.dense, .recap-clubs.dense2{grid-template-columns:repeat(3,1fr);} }
  @media (max-width:700px){ .recap-clubs.dense, .recap-clubs.dense2{grid-template-columns:1fr 1fr;} }
  @media (max-width:420px){ .recap-clubs.dense, .recap-clubs.dense2{grid-template-columns:1fr;} }

  .recap-foot{display:flex; justify-content:space-between; align-items:center; margin-top:16px; gap:16px; flex-wrap:wrap;}
  .recap-tot{font-size:12px; color:var(--muted);}
  .recap-tot b{color:var(--accent); font-family:'Sora',sans-serif; font-size:16px; margin-right:4px;}
  .recap-again{
    display:inline-flex; align-items:center; gap:8px; padding:12px 24px; min-height:44px; border-radius:var(--r-md); border:1.5px solid var(--ink);
    color:var(--ink); background:none; font-weight:800; font-size:14px; font-family:'Sora',sans-serif; cursor:pointer; transition:background .15s ease, color .15s ease, transform .1s ease;
  }
  .recap-again:hover{background:var(--ink); color:var(--bg);}

  .recap-topbar{display:flex; align-items:center; justify-content:space-between; gap:10px;}
  .recap-topbar .tc-back{margin-bottom:0;}
  .challenges-btn{
    display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; flex:none;
    border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface-2); color:var(--ink);
    cursor:pointer; margin-bottom:16px; transition:border-color .15s ease, color .15s ease;
  }
  .challenges-btn:hover{border-color:var(--accent); color:var(--accent);}
  .challenges-btn svg{width:19px; height:19px;}

  /* ---------- challenges dialog (achievements mockup) ---------- */
  .challenges-overlay{
    position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center;
    background:rgba(6,6,8,.74); opacity:0; pointer-events:none; padding:20px; visibility:hidden; transition:opacity .2s ease, visibility 0s linear .2s;
    overscroll-behavior:contain;
  }
  .challenges-overlay.show{opacity:1; pointer-events:auto; visibility:visible; transition:opacity .2s ease;}
  .challenges-dialog{
    --md:#18181b; --row:#232327; --row2:#1c1c20; --ln:#2c2c31; --mute:#9a8f84; --dim:#8f857b;
    width:min(780px,100%); height:min(760px,calc(100vh - 40px)); height:min(760px,calc(100dvh - 40px)); display:flex; flex-direction:column; overflow:hidden;
    background:var(--md); border:1px solid var(--ln); border-radius:var(--r-xl); box-shadow:0 30px 80px rgba(0,0,0,.65);
    transform:translateY(12px) scale(.98); transition:transform .25s var(--ease-out); font-family:'Manrope',system-ui,sans-serif; color:var(--ink);
  }
  .challenges-overlay.show .challenges-dialog{transform:none;}
  .challenges-dialog button{font:inherit; color:inherit; background:none; border:0; cursor:pointer;}
  .chd-hd{display:flex; align-items:center; gap:10px; padding:16px 22px; border-bottom:1px solid var(--ln); flex:none;}
  .chd-hd h3{font-family:'Sora',sans-serif; font-weight:700; font-size:20px; text-transform:none; letter-spacing:0;}
  .chd-info{position:relative; color:var(--mute); display:grid; place-items:center;}
  .chd-info{border-radius:50%; cursor:help;}
  .chd-info .chd-tip{position:absolute; top:26px; left:-20px; width:230px; background:#000; border:1px solid var(--ln); border-radius:8px; padding:8px 10px; font-size:11.5px; color:#e6ddd2; opacity:0; pointer-events:none; transition:opacity .15s ease; z-index:5; text-align:center;}
  .chd-info:hover .chd-tip, .chd-info:focus-visible .chd-tip{opacity:1;}
  .chd-tools{margin-left:auto; display:flex; align-items:center; gap:4px;}
  .chd-tools .chd-sep{width:1px; height:20px; background:var(--ln); margin:0 8px;}
  .chd-tb{width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:var(--mute); transition:background .15s ease, color .15s ease, transform .1s ease;}
  .chd-tb:active{transform:scale(.92);}
  .chd-tb:hover{color:var(--ink); background:var(--row);}
  .chd-tb.on{background:var(--ink); color:#1a1612;}
  .chd-tb.chd-x{margin-left:6px;}
  .chd-sum{display:flex; align-items:center; gap:14px; padding:12px 22px; border-bottom:1px solid var(--ln); font-size:12.5px; color:var(--mute); flex:none;}
  .chd-sum b{color:var(--ink);}
  .chd-prog{flex:1; height:6px; border-radius:6px; background:var(--row); overflow:hidden;}
  .chd-prog i{display:block; height:100%; background:linear-gradient(90deg,#c2570c,var(--accent),#ffd27a); transition:width .5s var(--ease-out);}

  /* ---------- account dialog + guest note ---------- */
  .chd-note{display:flex; align-items:center; gap:12px; padding:9px 22px; background:#1d1d22; border-bottom:1px solid var(--ln); font-size:12.5px; color:var(--mute); flex:none;}
  .chd-note[hidden]{display:none;}
  .chd-note .chd-note-btn{margin-left:auto; padding:6px 14px; border-radius:999px; background:var(--ink); color:#1a1612; font-weight:700; font-size:12px; white-space:nowrap;}
  .challenges-dialog .chd-note .chd-note-btn{color:#1a1612;}
  .auth-dialog{width:min(400px,100%); height:auto; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px);}
  .auth-body{padding:20px 22px 24px; overflow:auto; display:flex; flex-direction:column; gap:14px;}
  .auth-lead{font-size:13.5px; line-height:1.5; color:var(--mute);}
  .auth-dialog .auth-google{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:11px 14px; border-radius:10px; background:#fff; color:#1f1f1f; font-weight:700; font-size:14px;}
  .auth-dialog .auth-google:hover{background:#f0f0f2;}
  .auth-dialog .auth-google svg{width:18px; height:18px;}
  .auth-or{display:flex; align-items:center; gap:12px; color:var(--dim); font-size:11px; letter-spacing:.12em; text-transform:uppercase;}
  .auth-or::before,.auth-or::after{content:""; flex:1; height:1px; background:var(--ln);}
  .auth-form{display:flex; flex-direction:column; gap:12px;}
  .auth-form label{display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:600; color:var(--mute);}
  .auth-form input{width:100%; padding:11px 12px; border-radius:10px; border:1px solid var(--ln); background:var(--row); color:var(--ink); font:500 14px 'Manrope',system-ui,sans-serif;}
  .auth-form input:focus{outline:2px solid var(--accent); outline-offset:-1px; border-color:transparent;}
  .auth-dialog .auth-primary{width:100%; padding:12px 14px; border-radius:10px; background:var(--accent); color:#1a1100; font-weight:800; font-size:14px;}
  .auth-dialog .auth-primary:hover{filter:brightness(1.08);}
  .auth-dialog button:disabled{opacity:.55; cursor:default; filter:none;}
  .auth-dialog button:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
  .auth-links{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;}
  .auth-dialog .auth-link{font-size:12.5px; font-weight:600; color:var(--mute); padding:2px 0;}
  .auth-dialog .auth-link:hover{color:var(--ink); text-decoration:underline;}
  .auth-msg{min-height:0; font-size:12.5px; line-height:1.45; color:#fca5a5;}
  .auth-msg:empty{display:none;}
  .auth-msg.ok{color:#86efac;}
  .auth-note{font-size:12px; line-height:1.5; color:var(--dim);}
  .auth-who{display:flex; align-items:center; gap:14px;}
  .auth-who .auth-av{width:48px; height:48px; flex:none; font-size:20px;}
  .auth-who div{display:flex; flex-direction:column; min-width:0;}
  .auth-who b{font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .auth-who span{font-size:12.5px; color:var(--mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .auth-stat{display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; background:var(--row2); border:1px solid var(--ln); font-size:13px; color:var(--mute);}
  .auth-stat b{color:var(--ink); font-size:16px;}
  .auth-dialog .auth-sec{width:100%; padding:11px 14px; border-radius:10px; border:1px solid var(--ln); font-weight:700; font-size:14px;}
  .auth-dialog .auth-sec:hover{background:var(--row);}
  .chd-body{flex:1; overflow:auto; padding:16px 18px 20px;}
  .chd-body::-webkit-scrollbar{width:8px;} .chd-body::-webkit-scrollbar-thumb{background:#3a3a40; border-radius:8px;}
  .chg{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  .ach{position:relative; display:flex; gap:14px; align-items:center; padding:12px 14px; border-radius:var(--r-lg); background:var(--row); min-height:88px; transition:transform .15s;}
  .ach:hover{transform:translateY(-1px);}
  .ach-ic{width:64px; height:64px; border-radius:12px; flex:none; display:grid; place-items:center; background:var(--g); position:relative; overflow:hidden; box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -8px rgba(0,0,0,.6);}
  .ach-ic::before{content:''; position:absolute; inset:0; background:radial-gradient(120% 80% at 20% 0%,rgba(255,255,255,.45),transparent 55%), repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 3px,transparent 3px 9px);}
  .ach-ic::after{content:''; position:absolute; left:-60%; top:0; width:40%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent); transform:skewX(-20deg); transition:left .6s;}
  .ach:hover .ach-ic::after{left:130%;}
  .ach-ic svg{position:relative; width:46px; height:46px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.3));}
  .ach-tx{min-width:0; flex:1;}
  .ach-tx h4{font-family:'Sora',sans-serif; font-weight:700; font-size:16.5px; letter-spacing:-.01em; margin:0; text-transform:none;}
  .ach-tx p{font-size:12.5px; color:var(--mute); margin:3px 0 0; line-height:1.35;}
  .ach-date{position:absolute; top:10px; right:10px; font-size:11px; font-weight:800; background:#36363c; color:#efe7dd; padding:2px 8px; border-radius:99px;}
  .ach.dn .ach-tx h4{padding-right:84px;} .chg.tiles .ach.dn .ach-tx h4{padding-right:0;}
  .ach-rar{display:inline-block; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; margin-left:6px; vertical-align:2px; color:var(--rc);}
  .ach-pb{display:flex; align-items:center; gap:8px; margin-top:7px;}
  .ach-pb .t{flex:1; height:4px; border-radius:4px; background:#2e2e33; overflow:hidden;}
  .ach-pb .t i{display:block; height:100%; background:#7a5a2c; border-radius:4px;}
  .ach-pb span{font-size:10.5px; font-weight:700; color:var(--dim); font-variant-numeric:tabular-nums;}
  .ach.lk{background:var(--row2);}
  .ach.lk .ach-ic{background:#26262a; box-shadow:none;}
  .ach.lk .ach-ic::before, .ach.lk .ach-ic::after{display:none;}
  .ach.lk .ach-ic svg{filter:grayscale(1) brightness(.32) contrast(.9); opacity:.85;}
  .ach.lk .ach-tx h4{color:#e6ddd2;}
  .ach.lk .ach-tx p{color:var(--dim);}
  .chg.tiles{grid-template-columns:repeat(4,1fr);}
  .chg.tiles .ach{flex-direction:column; text-align:center; padding:18px 12px 14px;}
  .chg.tiles .ach-date{position:static; margin-top:6px;}
  .chg.tiles .ach-pb{width:100%;}
  .chd-empty{text-align:center; color:var(--dim); padding:40px; grid-column:1/-1;}
  @media (max-width:640px){ .chg{grid-template-columns:1fr;} .chg.tiles{grid-template-columns:1fr 1fr;} .chd-tools .chd-sep, .chd-tools .chd-hide-sm{display:none;} }
  @media (prefers-reduced-motion:reduce){ .ach, .ach-ic::after{transition:none;} }

  /* unlock toast */
  .ach-toasts{position:fixed; right:max(18px, env(safe-area-inset-right)); bottom:max(18px, env(safe-area-inset-bottom)); z-index:90; display:flex; flex-direction:column; gap:10px; pointer-events:none;}
  .ach-toast{
    display:flex; align-items:center; gap:12px; min-width:260px; max-width:340px; padding:10px 14px 10px 10px; border-radius:var(--r-lg); color:var(--ink);
    background:#18181b; border:1px solid #2c2c31; box-shadow:0 14px 40px -10px rgba(0,0,0,.75); opacity:0; transform:translateX(30px) scale(.96);
    transition:opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
  }
  .ach-toast.show{opacity:1; transform:none;}
  .ach-toast .ach-ic{width:54px; height:54px;}
  .ach-toast .ach-ic svg{width:38px; height:38px;}
  .ach-kicker{font-size:9.5px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; color:#fbbf24;}
  .ach-name{font-family:'Sora',sans-serif; font-weight:700; font-size:14px; margin-top:1px;}
  .ach-sub{font-size:11px; color:#9a8f84; margin-top:1px; line-height:1.3;}

  #confetti-canvas{position:fixed; inset:0; pointer-events:none; z-index:60;}
  @media (prefers-reduced-motion: reduce){ *{scroll-behavior:auto !important;} }

  /* ---------- dashboard: single-container layout (academy offer design) ---------- */
  main:has(#view-dashboard.active){max-width:none; padding-left:clamp(12px,2vw,20px); padding-right:clamp(12px,2vw,20px);}
  .dsh-shell{display:grid; grid-template-columns:minmax(0,1fr); gap:16px; justify-content:center;}
  .dsh-shell .cx-ad{display:none;}
  @media (min-width:1480px){ .dsh-shell{grid-template-columns:160px minmax(0,1240px) 160px;} .dsh-shell .cx-ad{display:flex;} }
  #view-dashboard .dash-grid{gap:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); overflow:hidden; grid-template-columns:410px minmax(0,1fr);}
  @media (max-width:900px){ #view-dashboard .dash-grid{grid-template-columns:1fr;} }
  #view-dashboard .dash-left{gap:0; border-right:1px solid var(--line);}
  @media (max-width:900px){ #view-dashboard .dash-left{border-right:0; border-bottom:1px solid var(--line);} }
  #view-dashboard .player-card{background:none; border:0; border-radius:0; padding:16px 18px 12px; flex:none;}
  #view-dashboard .action-panel{margin:0; flex:1; min-height:0; display:flex; flex-direction:column; border-top:1px solid var(--line); padding:14px 18px 16px;}
  #view-dashboard .offer-intro{background:none; border:0; padding:0 0 8px; flex:none;}
  #view-dashboard .offer-intro h3{font-size:14px; letter-spacing:.04em; text-transform:uppercase;}
  #view-dashboard .offer-intro p{font-size:12px; margin-top:3px;}
  #view-dashboard .offer-grid{background:none; border:0; border-radius:0; padding:0; gap:10px; flex:1; min-height:0; align-items:stretch;}
  #view-dashboard .offer-card{
    position:relative; overflow:hidden; justify-content:center; padding:12px 8px; border-radius:var(--r-lg);
    background:var(--surface); border:1.5px solid var(--line); gap:0;
  }
  #view-dashboard .offer-card::before{content:''; position:absolute; inset:0; pointer-events:none; opacity:.3;
    background:radial-gradient(120% 75% at 50% 0%, var(--c1), transparent 72%); transition:opacity .15s;}
  /* dark crest (black/navy): the whole card brightens, light grey at the top fading to dark at the bottom */
  #view-dashboard .offer-card.logo-dark{border-color:rgba(255,255,255,.35);}
  #view-dashboard .offer-card.logo-dark::before{opacity:1; background:linear-gradient(180deg, rgba(235,238,245,.62) 0%, rgba(150,156,170,.30) 55%, rgba(16,16,20,0) 100%);}
  #view-dashboard .offer-card.logo-dark .osign{color:rgba(255,255,255,.8);}
  #view-dashboard .offer-card.logo-dark .oname{text-shadow:0 1px 3px rgba(0,0,0,.55);}
  #view-dashboard .offer-card > *{position:relative;}
  #view-dashboard .offer-card:hover{border-color:rgba(244,239,232,.35); box-shadow:none;}
  #view-dashboard .offer-card:hover::before{opacity:.34;}
  #view-dashboard .offer-card.logo-dark:hover::before{opacity:1;}
  #view-dashboard .offer-card.sel{border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset, 0 8px 26px rgba(245,166,35,.14);}
  #view-dashboard .offer-card.sel::before{opacity:.42;}
  #view-dashboard .offer-card.logo-dark.sel::before{opacity:1;}
  #view-dashboard .offer-card .osign{align-self:center; letter-spacing:.14em; font-size:9.5px; opacity:.9;}
  #view-dashboard .offer-card .oname{min-height:2.5em; display:flex; align-items:center; justify-content:center; margin-top:4px; font-size:14px;}
  #view-dashboard .offer-card .ocrest{width:clamp(40px,8.5vh,62px); height:clamp(40px,8.5vh,62px); margin:8px 0 10px;}
  #view-dashboard .offer-card .otag{background:rgba(245,166,35,.14); color:var(--accent); white-space:nowrap; font-size:9.5px; padding:3px 8px; letter-spacing:.02em;}
  #view-dashboard .offer-card.tg-growth .otag{background:rgba(51,201,122,.14); color:var(--good);}
  #view-dashboard .offer-card.tg-contender .otag{background:rgba(225,58,75,.16); color:#ff6b78;}
  #view-dashboard .offer-card .onote{margin-top:8px;}
  .offer-cta{
    flex:none; margin-top:12px; width:100%; padding:14px; border-radius:var(--r-md); border:1.5px solid var(--line);
    background:var(--surface-2); color:var(--muted); font-family:'Sora',sans-serif; font-weight:800; font-size:14px;
    letter-spacing:.03em; cursor:pointer; transition:background .15s, color .15s, border-color .15s, transform .1s ease;
  }
  .offer-cta:disabled{cursor:default; opacity:.8;}
  .offer-cta.ready{background:var(--accent); border-color:var(--accent); color:#1a1204;}
  .offer-cta.ready:hover{filter:brightness(1.07);}
  .offer-cta.done{background:rgba(51,201,122,.14); border-color:rgba(51,201,122,.4); color:var(--good); opacity:1;}

  /* player banner */
  .pc-hero{display:flex; gap:12px; align-items:stretch;}
  .pc-hero .ovr-badge{width:78px; height:auto; min-height:80px; border-radius:var(--r-xl);}
  .pc-hero .ovr-badge .ov{font-size:30px;}
  .pc-ban{position:relative; flex:1; min-width:0; min-height:80px; overflow:hidden; border-radius:var(--r-xl); border:1px solid var(--line); background:var(--surface-2);
    padding:9px 12px; display:flex; justify-content:space-between; gap:8px;}
  .pc-ban::before{content:''; position:absolute; inset:0; background:linear-gradient(120deg,var(--c1),var(--c2)); opacity:.5;}
  .pc-ban::after{content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(9,9,11,.66),rgba(9,9,11,.18));}
  .pc-wm{position:absolute; right:-12px; top:-10px; bottom:-10px; width:130px; opacity:.2; display:grid; place-items:center; color:#fff; pointer-events:none; z-index:1;}
  .pc-wm img, .pc-wm svg, .pc-wm .crest-shield-wrap{width:100%; height:100%; object-fit:contain; display:block;}
  .pc-bl{position:relative; z-index:2; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px;}
  .pc-ban .pc-meta{position:relative; z-index:2; align-self:center;}
  .pc-ban .pc-meta .pm-label{color:rgba(244,239,232,.7);}
  .pc-ban .badge-pill{background:rgba(9,9,11,.55); color:rgba(244,239,232,.85);}
  .pc-ban .pos-pill{background:var(--accent-2); color:#fff;}
  .pc-title{font-family:'Sora',sans-serif; font-weight:800; font-size:17px; line-height:1.15; display:flex; align-items:center; gap:7px; min-width:0; text-shadow:0 1px 8px rgba(0,0,0,.4);}
  .pc-title > span:last-child{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-width:0;}
  .pc-sub{font-size:11.5px; color:rgba(244,239,232,.78); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .attr-item.lv-lo .attr-bar-fill{background:var(--accent-2);} .attr-item.lv-lo .attr-top span:last-child{color:#ff6b78;}
  .attr-item.lv-mid .attr-bar-fill{background:var(--accent);} .attr-item.lv-mid .attr-top span:last-child{color:var(--accent);}
  .attr-item.lv-hi .attr-bar-fill{background:var(--good);} .attr-item.lv-hi .attr-top span:last-child{color:var(--good);}
  .pc-phys{display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); overflow:hidden; margin:2px 0 6px;}
  .pc-phys > div{padding:6px 10px; border-left:1px solid var(--line); min-width:0; white-space:nowrap;}
  .pc-phys > div:first-child{border-left:0;}
  .pc-phys span{display:block; font-size:8.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:2px;}
  .pc-phys span .growing-tag{color:var(--good); font-style:normal; letter-spacing:0;}
  .pc-phys b{font-size:13px; font-weight:700;}
  .pc-phys i{font-style:normal; color:var(--good); font-size:10px; margin-left:4px; font-family:'IBM Plex Mono',monospace;}
  .pc-rival{font-size:11px; color:var(--muted); margin:0 0 6px;} .pc-rival b{color:var(--ink);}
  .pc-trow{display:flex; align-items:center; justify-content:space-between; gap:6px 10px; flex-wrap:wrap; min-height:26px;}
  .pc-trow .trophy-case{border-top:0; padding:0; flex:1; min-width:0;}
  .pc-trow .trophy-empty{flex-direction:row; justify-content:flex-start; gap:6px;}
  #view-dashboard .pc-trow .trophy-case{display:block;}
  #view-dashboard .offer-card .ocrest{display:flex; justify-content:center; align-items:center;}
  #view-dashboard .offer-card .ocrest .crest-shield{width:auto; height:100%; max-width:100%;}
  #view-dashboard .attr-row{margin:2px 0 8px;}

  /* season table (right) */
  #view-dashboard .table-wrap{background:none; border:0; border-radius:0;}
  #view-dashboard .table-head{padding:14px 18px 10px; border-bottom:1px solid var(--line);}
  #view-dashboard .table-head h3{color:var(--ink); font-size:13px;}
  #view-dashboard .dash-challenges-btn{border-color:rgba(245,166,35,.45); background:rgba(245,166,35,.08); border-radius:999px; padding:5px 12px;}
  #view-dashboard table.season-table thead th{background:var(--surface); border-bottom:1px solid var(--line);}
  #view-dashboard table.season-table td{border-bottom:1px solid var(--line);}
  #view-dashboard table.season-table tr.current{background:rgba(245,166,35,.09);}
  #view-dashboard table.season-table tr.current td{color:var(--ink);}
  #view-dashboard table.season-table tr.current td:first-child{box-shadow:inset 3px 0 0 var(--accent); color:var(--accent);}
  .dots{display:inline-flex; gap:3px; margin-left:6px; vertical-align:middle;}
  .dots i{width:4px; height:4px; border-radius:50%; background:var(--accent); opacity:.3; animation:dotsB 1.2s infinite ease-in-out;}
  .dots i:nth-child(2){animation-delay:.2s;} .dots i:nth-child(3){animation-delay:.4s;}
  @keyframes dotsB{0%,80%,100%{opacity:.25;} 40%{opacity:1;}}
  @media (prefers-reduced-motion:reduce){ .dots i{animation:none; opacity:.7;} }

  /* shorter windows: tighten the dashboard column in steps */
  @media (min-width:901px) and (max-height:900px){
    #view-dashboard .player-card{padding:12px 16px 8px;}
    #view-dashboard .action-panel{padding:10px 16px 12px;}
    #view-dashboard .offer-intro p{display:none;}
    #view-dashboard .offer-card .ocrest{margin:5px 0 6px;}
    .offer-cta{margin-top:9px; padding:11px;}
    .pc-hero .ovr-badge, .pc-ban{min-height:70px;}
  }
  @media (min-width:901px) and (max-height:800px){
    #view-dashboard .player-card{padding:10px 14px 6px;}
    #view-dashboard .offer-card .ocrest{margin:3px 0 4px;}
    #view-dashboard .offer-card .onote{display:none;}
    #view-dashboard .offer-card .oname{font-size:13px;}
    #view-dashboard .pc-phys > div{padding:4px 9px;}
    .pc-hero .ovr-badge, .pc-ban{min-height:62px;}
    .pc-title{font-size:15px;}
  }
  @media (min-width:901px) and (max-height:700px){
    #view-dashboard .pc-trow .trophy-list{display:none;}
    #view-dashboard .offer-card{padding:6px 6px;}
    .offer-cta{padding:9px;}
  }

  #view-dashboard .action-panel .event-grid{background:none; border:0; border-radius:0; padding:0; flex:1; min-height:0; align-content:start;}

  /* ---------- phones: bigger tap targets and text, no empty future seasons, start button always in reach ---------- */
  @media (max-width:760px){
    .dly-who-line{white-space:normal; flex-wrap:wrap; row-gap:2px;}
    /* creation as steps (createSteps): one cell per screen, intro and daily box on the first step only */
    #view-create{padding-bottom:88px;}
    #view-create .cx-box > .cx-cell:not(.cx-on){display:none;}
    #view-create:not([data-step="1"]) :is(.cx-intro, .cx-bar, .cx-actions){display:none;}
    #view-create[data-step="4"] .cx-sinfo{visibility:hidden;}
    #view-create .cx-actions .start-btn{display:none;}
    .cx-steps{position:fixed; left:0; right:0; bottom:0; z-index:60; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:rgba(9,9,11,.94); border-top:1px solid var(--line); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);}
    .cx-steps button{min-height:48px; border-radius:var(--r-md); font:800 14px 'Sora',sans-serif; letter-spacing:.03em; cursor:pointer;}
    .cx-sback{padding:0 14px; background:var(--surface-2); color:var(--ink); border:1px solid var(--line);}
    .cx-snext{padding:0 18px; background:var(--accent); color:#1a1000; border:0; text-transform:uppercase;}
    .cx-sinfo{display:flex; flex-direction:column; align-items:center; gap:5px; min-width:0;}
    .cx-sname{font-size:12px; color:var(--ink); text-align:center; line-height:1.2; max-width:100%;}
    .cx-sdots{display:flex; gap:5px;} .cx-sdots i{width:18px; height:4px; border-radius:2px; background:var(--line);} .cx-sdots i.on{background:var(--accent);}
    .abandon-link{display:inline-flex; align-items:center; min-height:44px; padding:0 6px; font-size:13px;}
    .abandon-row{margin-top:0; padding-top:0;}
    #jersey-locker-btn, #dash-challenges-btn, #chd-note-btn{min-height:44px;}
    .cx-idrow .num-btn{width:44px; min-height:44px;}
    .cx-pl, .country-row{min-height:44px;}
    .ds-skip{min-height:44px; min-width:64px;}
    table.season-table{font-size:12.5px;} table.season-table thead th{font-size:10.5px;}
    .attr-item .attr-top{font-size:12px;}
    .offer-card .osign, .offer-card .otag, .badge-pill, .ccode{font-size:11px;}
    .pc-meta .pm-label, .ovr-badge .ob-label, .pst .l{font-size:10.5px;}
  }
  @media (max-width:900px){ table.season-table tr.future{display:none;} }
  @media (min-width:761px){ .cx-steps{display:none;} }
  /* narrow phones: long club names ("Rio Grande Valley Vipers") get a smaller size and a third line instead of "…" */
  @media (max-width:420px){ .pc-title{font-size:14px;} .pc-title > span:last-child{-webkit-line-clamp:3; overflow-wrap:anywhere;} }
  /* short phones: smaller court and tighter style questions so each step still fits */
  @media (max-width:760px) and (max-height:780px){
    #view-create .court-wrap{max-width:230px; margin:0 auto;}
    #view-create .cr-sub{display:none;}
    #view-create .combine-list{gap:6px;}
    #view-create .combine-opt{padding:5px 8px;}
    #view-create .cx-stc{gap:5px;} #view-create .cx-bars{gap:4px 12px;}
  }

  /* ---------- site footer (SEO text + legal links) ---------- */
  .site-foot{border-top:1px solid var(--line); background:var(--surface); margin-top:24px;}
  .site-foot-in{max-width:1220px; margin:0 auto; padding:var(--s-7) clamp(16px,4vw,32px); display:grid; gap:var(--s-4); font-size:13.5px; color:var(--muted); line-height:1.65;}
  .site-foot h2{font-size:20px; text-transform:none; letter-spacing:-.015em; color:var(--ink); margin:0;}
  .site-foot p{margin:0; max-width:78ch;}
  .site-foot a{color:var(--accent);}
  .site-foot-links{display:flex; flex-wrap:wrap; gap:6px 18px;}
  .site-foot-links a,.site-foot-links button{display:inline-flex; align-items:center; min-height:32px; color:var(--muted); text-decoration:none; font:inherit; background:none; border:0; padding:0; cursor:pointer; transition:color .15s ease;}
  .site-foot-links a:hover,.site-foot-links button:hover{color:var(--ink); text-decoration:underline;}
  .site-foot small{font-size:12px; color:var(--muted); line-height:1.6;}
  .site-foot h3{font-size:14px; text-transform:none; letter-spacing:0; color:var(--ink); margin:6px 0 0;}
  .site-foot ul{margin:0; padding-left:18px; columns:2 260px;}
  .site-foot li{margin:3px 0;}
  .site-foot .faq p{margin:0 0 8px;}
  /* intro above the creation screen: the page's visible H1 and its only body copy above the fold */
  .cx-intro{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 16px; margin:0 0 10px;}
  .cx-intro h1{font-size:clamp(16px,1.6vw,20px); font-weight:900; line-height:1.2; letter-spacing:.02em; color:var(--ink);}
  .cx-intro p{margin:0; font-size:13px; line-height:1.4; color:var(--muted);}
  @media (max-width:640px){ .cx-intro p{display:none;} }
  /* line up with the panel column, which sits between the two 160px ad rails */
  @media (min-width:1280px){ .cx-intro{width:min(1240px, calc(100% - 352px)); margin-inline:auto;} }
  /* short windows: keep the intro to one line so the play-style panel fits without scrolling */
  @media (min-width:1100px) and (min-height:600px) and (max-height:899px){ .cx-intro{flex-wrap:nowrap; margin-bottom:6px;} .cx-intro h1{white-space:nowrap;} .cx-intro p{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;} }
  /* the longer description lives under the creation screen, so the game stays above the fold */
  .cx-about{max-width:80ch; margin:var(--s-6) auto 0; padding-top:var(--s-5); border-top:1px solid var(--line);}
  .cx-about p{margin:0; font-size:14px; line-height:1.65; color:var(--muted); text-wrap:pretty;}
  .cx-about a{color:var(--accent);}
  .sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;}
    /* ==== mobile polish (phones) ==== */
  @media (max-width:640px){
    /* header: logo + 3 buttons on one row, status chips on a slim scrolling row */
    .scorebug{gap:6px 8px; padding:8px 12px; flex-wrap:wrap; align-items:center; justify-content:flex-start;}
    .scorebug .wordmark{flex:1 1 0; min-width:0; gap:8px;}
    .scorebug .wordmark svg{width:24px; height:24px;}
    .scorebug .wordmark .wm-name{font-size:17px; white-space:nowrap;}
    .scorebug .wordmark span{display:none;}
    .scorebug .scorebug-challenges-btn{width:40px; height:40px; margin-left:0;}
    .scorebug .scorebug-challenges-btn.auth-btn{margin-left:0;}
    .scorebug .scorebug-challenges-btn.lang-btn{width:auto; min-width:40px; padding:0 10px; font-size:11px; margin-left:0;}
    .status-strip{order:5; flex:0 0 100%; flex-wrap:nowrap; overflow-x:auto; gap:6px; scrollbar-width:none;}
    .status-strip::-webkit-scrollbar{display:none;}
    .status-chip{font-size:10px; padding:4px 9px; flex:none;}

    /* season-by-season: fit the screen (no sideways scroll); keep ovr + PPG/APG/RPG */
    table.season-table{min-width:0; font-size:11px;}
    table.season-table :is(th,td):is(:nth-child(5),:nth-child(9),:nth-child(10)){display:none;}
    table.season-table thead th{padding:7px 5px;}
    table.season-table td{padding:5px; height:42px;}
    table.season-table .club-inner{flex-direction:column; align-items:flex-start; gap:2px;}
    table.season-table .tt-wrap .tt-art:nth-child(n+4), table.season-table .tt-more{display:none;}
    table.season-table .tt-art{height:20px;}

    /* physical-stats strip: labels in Spanish are longer */
    .pc-phys{grid-template-columns:1fr 1fr 1.7fr .8fr;}
    .pc-phys > div{padding:6px 7px; overflow:hidden;}
    .pc-phys span{letter-spacing:.03em; font-size:8px;}
    .pc-phys b{font-size:12px;}

    /* trophy case gets the full row; "Abandon" drops below it */
    .pc-trow .trophy-case{flex:1 1 100%;}

    /* draft board: one readable column */
    .db-board{grid-template-columns:1fr;}

    /* draft-night stage: breathing room at the screen edges */
    .ds-main{padding-left:14px; padding-right:14px;}

    /* academy offers: stacked rows (crest left, text right) instead of 3 squeezed columns */
    .offer-grid, #view-dashboard .offer-grid{grid-template-columns:1fr; gap:8px; flex:none; align-items:stretch;}
    .offer-card, #view-dashboard .offer-card{
      display:grid; grid-template-columns:52px minmax(0,1fr); grid-auto-rows:auto; column-gap:14px; row-gap:0;
      align-items:center; justify-items:start; text-align:left; padding:12px 14px; border-radius:var(--r-lg);
    }
    .offer-card .ocrest, #view-dashboard .offer-card .ocrest{grid-column:1; grid-row:1 / span 4; width:48px; height:48px; margin:0; justify-self:center; align-self:center;}
    .offer-card .osign, #view-dashboard .offer-card .osign{grid-column:2; align-self:end; letter-spacing:.1em;}
    .offer-card .oname, #view-dashboard .offer-card .oname{grid-column:2; width:auto; min-height:0; display:block; justify-content:flex-start; margin:2px 0 6px; font-size:15px; text-align:left;}
    .offer-card .otag, #view-dashboard .offer-card .otag{grid-column:2; white-space:normal; letter-spacing:.02em; line-height:1.25; font-size:10px; padding:3px 9px; text-align:left;}
    .offer-card .onote, #view-dashboard .offer-card .onote{grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; margin-top:7px; text-align:left;}

    /* dialogs become full-height sheets */
    .challenges-overlay{padding:10px;}
    .challenges-dialog:not(.auth-dialog){height:calc(100dvh - 20px);}
  }
  /* Touch screens: grow the small controls to a 44px target (DESIGN.md touch targets). */
  @media (pointer:coarse){
    .scorebug-challenges-btn, .scorebug .scorebug-challenges-btn{width:44px; height:44px;}
    .scorebug-challenges-btn.lang-btn, .scorebug .scorebug-challenges-btn.lang-btn{width:auto; min-width:44px;}
    .chd-tb{width:44px; height:44px;}
    .alloc-btn{width:40px; height:40px;}
    .num-btn{width:40px;}
    .site-foot-links a, .site-foot-links button{min-height:44px;}
  }
  @media (max-width:400px){
    table.season-table{font-size:10.5px;}
    table.season-table thead th{padding:7px 3px; letter-spacing:0;}
    table.season-table td{padding:5px 3px;}
    table.season-table .tt-wrap .tt-art:nth-child(n+3){display:none;}
  }
  /* ==== game feel layer: game colours, player-card OVR, stat bars, unlocks, trophy cabinet, screen moves ====
     Purely presentational. Every movement lives inside prefers-reduced-motion:no-preference. */
  :root{
    /* Game palette: one colour per kind of thing, all bright enough to read on the dark surfaces. */
    --gold:#F5C542;
    --info:#5AB8F2;
    --good-2:#5BE39A;
    --muted:#A89C90;
    --line:rgba(244,239,232,.12);
  }

  .wordmark .wm-name{font-weight:900; letter-spacing:-.005em;}

  /* Status chips: each readout has its own colour */
  .status-chip{--k:var(--accent); border-color:color-mix(in srgb, var(--k) 45%, transparent); background:color-mix(in srgb, var(--k) 10%, var(--bg)); color:var(--ink);}
  .status-chip b{color:var(--k);}
  .status-chip.szn{--k:var(--gold);}
  .status-chip.age{--k:var(--info);}
  .status-chip.team{--k:var(--accent);}

  /* Higher-contrast section labels */
  .cx-ttl{color:#D2C7BA;}

  /* Heavier titles */
  .cx-bar h2{font-size:clamp(16px,1.5vw,20px); font-weight:900; letter-spacing:.04em;}
  .hof-head h2{font-size:clamp(22px,2.6vw,30px); font-weight:900; letter-spacing:-.005em; line-height:1.05;}
  .tc-head h2{font-size:clamp(28px,4vw,42px); font-weight:900; letter-spacing:-.015em; line-height:1;}
  .recap-me h2{font-size:clamp(24px,2.6vw,32px); font-weight:900;}
  .tc-dbox h3{font-size:clamp(26px,3.4vw,34px); font-weight:900;}
  .chd-hd h3{font-weight:800; letter-spacing:-.01em;}
  .offer-intro h3, .recap h3, .table-head h3{font-weight:900;}

  /* Player card: bigger rating, colour-coded stat tiles */
  .ovr-badge .ov{text-shadow:0 1px 0 rgba(255,255,255,.35), 0 2px 8px rgba(0,0,0,.28); letter-spacing:-.02em;}
  .pc-hero .ovr-badge .ov{font-size:34px;}
  .pc-stats .pst{--k:var(--muted); box-shadow:inset 0 2px 0 var(--k);}
  .pc-stats .pst .v{font-size:14.5px;}
  .pc-stats .pst .l{color:var(--k); font-weight:800;}
  .pc-stats .pst:nth-child(1){--k:var(--info);}
  .pc-stats .pst:nth-child(2){--k:var(--accent);}
  .pc-stats .pst:nth-child(3){--k:var(--good-2);}
  .pc-stats .pst:nth-child(4){--k:var(--gold);}

  /* Stat bars: thicker, segmented, brighter fills per level (elite = gold) */
  .attr-bar{position:relative; height:5px;}
  .attr-bar::after, .cx-atb::after{content:''; position:absolute; inset:0; pointer-events:none;
    background:repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(12,10,9,.85) calc(10% - 1px) 10%);}
  .attr-item.lv-lo .attr-bar-fill{background:linear-gradient(90deg, #C92F40, #FF6B78);}
  .attr-item.lv-mid .attr-bar-fill{background:linear-gradient(90deg, #E0841A, #FFB547);}
  .attr-item.lv-hi .attr-bar-fill{background:linear-gradient(90deg, #22A463, var(--good-2));}
  .attr-item.lv-hi .attr-top span:last-child{color:var(--good-2);}
  .attr-item.lv-elite .attr-bar-fill{background:linear-gradient(90deg, #D9A21F, #FFE48A); box-shadow:0 0 8px rgba(245,197,66,.55);}
  .attr-item.lv-elite .attr-top span:last-child{color:var(--gold);}
  .attr-bar-fill, .dly-goal-bar i{transition:width .7s var(--ease-out);}

  /* Achievements */
  .ach:not(.lk){box-shadow:inset 0 0 0 1px rgba(245,166,35,.16);}
  .ach-toast{position:relative; border-color:rgba(245,197,66,.5);}
  .ach-toast::before{content:''; position:absolute; inset:-1px; border-radius:inherit; border:2px solid var(--gold); opacity:0; pointer-events:none;}
  .ach-kicker{color:var(--gold); text-shadow:0 0 12px rgba(245,197,66,.45);}

  /* Trophy cabinet: a lit display case */
  .tc-shell{max-width:1080px; background:radial-gradient(70% 260px at 50% 0, rgba(245,197,66,.10), transparent 70%), var(--surface);}
  .tc-count b{font-size:clamp(24px,3vw,32px); font-family:'Sora',sans-serif; color:var(--gold); font-variant-numeric:tabular-nums;}
  .tc-h3{color:var(--ink);}
  .tc-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px;}
  .tc-card:not(.tc-locked){border-color:color-mix(in srgb, var(--r) 40%, var(--line)); box-shadow:inset 0 1px 0 rgba(255,255,255,.06);}
  .tc-card::after{content:''; position:absolute; left:18%; right:18%; top:176px; height:16px; border-radius:50%; pointer-events:none;
    background:radial-gradient(closest-side, color-mix(in srgb, var(--r) 35%, rgba(0,0,0,.6)), transparent);}
  .tc-card:not(.tc-locked):hover{box-shadow:0 18px 44px -16px color-mix(in srgb, var(--r) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.08);}
  .tc-card svg.tc-art{z-index:1;}
  .tc-card h4{font-size:12.5px; font-weight:900;}

  /* Phones/tablets: the pending decision (offers, events, season recap) comes first, the player card below it,
     so all three team offers fit on screen without scrolling. */
  @media (max-width:900px){
    #view-dashboard .action-panel{order:-1; border-top:0; border-bottom:1px solid var(--line);}
  }
  @media (max-width:640px){
    #view-dashboard .action-panel{padding:12px 14px 14px;}
    #view-dashboard .offer-intro p{margin-top:2px;}
    .offer-card, #view-dashboard .offer-card{padding:9px 12px;}
    .offer-card .ocrest, #view-dashboard .offer-card .ocrest{width:42px; height:42px;}
    .offer-card .oname, #view-dashboard .offer-card .oname{margin:1px 0 4px;}
    .offer-card .onote, #view-dashboard .offer-card .onote{margin-top:5px;}
  }
  @media (prefers-reduced-motion:no-preference){
    /* Short screen moves. The creation screen only fades: its height is measured from its on-screen position. */
    .view.active{animation:viewIn .34s var(--ease-out) backwards;}
    #view-create.active{animation-name:viewFade;}
    .challenges-overlay.show .challenges-dialog, .lk-card, .sec-card{animation:popIn .3s var(--ease-out) backwards;}

    /* Level up: when a simulated season raises the OVR, the badge pops */

    /* Achievement unlock: icon bursts in, a ring expands off the toast */
    .ach-toast.show .ach-ic{animation:achPop .7s cubic-bezier(.34,1.56,.64,1) .12s backwards;}
    .ach-toast.show::before{animation:ringOut 1.1s var(--ease-out) .2s;}
    .ach-toast.show .ach-kicker{animation:kickerIn .45s var(--ease-out) .25s backwards;}

    /* Trophy cabinet: cards rise onto their shelves */
    .tc-grid .tc-card{animation:shelfIn .5s var(--ease-out) backwards;}
    .tc-grid .tc-card:nth-child(2){animation-delay:.04s;} .tc-grid .tc-card:nth-child(3){animation-delay:.08s;}
    .tc-grid .tc-card:nth-child(4){animation-delay:.12s;} .tc-grid .tc-card:nth-child(5){animation-delay:.16s;}
    .tc-grid .tc-card:nth-child(n+6){animation-delay:.2s;}
  }
  @media (prefers-reduced-motion:reduce){
    .attr-bar-fill, .dly-goal-bar i{transition:none;}
    .ach-toast, .ach-toast.show, .challenges-dialog{transform:none;}
    .recap-t:hover, .recap-club:hover, .event-card:hover, .intensity-btn:hover, .ach:hover, .dice-btn:hover{transform:none;}
  }
  @keyframes viewIn{from{opacity:0; transform:translateY(10px);}}
  @keyframes viewFade{from{opacity:0;}}
  @keyframes popIn{from{opacity:0; transform:translateY(8px) scale(.97);}}
  @keyframes achPop{0%{transform:scale(.4) rotate(-12deg); opacity:0;} 60%{transform:scale(1.15) rotate(3deg); opacity:1;} 100%{transform:none;}}
  @keyframes ringOut{0%{opacity:.9; transform:scale(1);} 100%{opacity:0; transform:scale(1.12);}}
  @keyframes kickerIn{from{opacity:0; transform:translateX(-6px);}}
  @keyframes shelfIn{from{opacity:0; transform:translateY(14px);}}
  /* ---- mobile fixes: achievements header + daily result card must never widen the page ---- */
  .dly-result > div{flex:1 1 auto; min-width:0;}
  .dly-result .dly-btn{width:auto; flex:none;}
  @media (max-width:560px){
    .chd-hd{flex-wrap:wrap; gap:6px 8px; padding:12px 14px;}
    .chd-hd h3{font-size:18px; min-width:0; flex:1 1 auto;}
    .chd-tools{flex:1 1 100%; margin-left:0; justify-content:flex-end;}
    .chd-sum{padding:10px 14px;}
    .chd-note{padding:9px 14px;}
  }
  /* Trophy cabinet page switched off for now: its entry buttons are hidden (code kept, easy to bring back). */
  .trophy-cabinet-btn{display:none !important;}
  /* compact daily-challenge box on phones: one slim row instead of a tall block */
  @media (max-width:760px){
    .cx-actions{gap:8px; margin-top:10px;}
    .daily-box{flex-wrap:nowrap; padding:6px 10px; gap:10px;}
    .daily-box .dly-btn{width:auto; min-height:36px; padding:7px 12px; font-size:11px;}
    .daily-box .dly-head{gap:6px;}
    .daily-box .dly-head{flex-wrap:nowrap; white-space:nowrap;}
    .daily-box .dly-ttl{font-size:10px; letter-spacing:.08em;}
    .daily-box .dly-date{font-size:10px;}
    .daily-box .dly-locker{padding:1px 6px; font-size:10px;}
    /* phones: the head keeps title, countdown, icon buttons and the flame; date, labels and shields move out (shields are in the locker) */
    .daily-box .dly-date, .daily-box .dly-wide, .daily-box .dly-shield, .daily-box .dly-timer{display:none;}
    .daily-box .dly-head{gap:4px;} .daily-box .dly-ttl{letter-spacing:.02em;} .daily-box .dly-locker{border:0; padding:0 2px; font-size:12px;}
    .daily-box .dly-btn{padding:7px 10px;}
    .dly-obj-line{font-size:12px; line-height:1.2;}
    .dly-obj-line em{display:none;}
  }
  /* summary page: the two end buttons share one row and the chart is a bit shorter, so everything fits without scrolling */
  .sum-btns{display:flex; gap:8px;}
  .sum-btns .sum-share-btn{background:var(--accent); border-color:var(--accent); color:#111;}
  .sum-btns .sum-share-btn:hover{background:transparent; color:var(--accent);}
  .hof-card{position:relative;}
  .hof-share{position:absolute; top:9px; right:9px; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer; transition:color .15s, border-color .15s;}
  .hof-share:hover{color:var(--accent); border-color:var(--accent);}
  .hof-card .hname{padding-right:34px;}
  .challenges-dialog.share-dialog{width:min(560px,100%); height:auto; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px);}
  .share-body{padding:14px 20px 20px; overflow:auto; display:flex; flex-direction:column; gap:12px;}
  .share-sizes{display:flex; gap:6px;}
  .challenges-dialog .share-sizes button{flex:1; padding:8px 10px; border-radius:999px; border:1px solid var(--ln); font-size:12.5px; font-weight:700; color:var(--mute);}
  .challenges-dialog .share-sizes button[aria-pressed="true"]{border-color:var(--accent); color:var(--ink); background:color-mix(in srgb,var(--accent) 14%,transparent);}
  .share-preview{position:relative; display:grid; place-items:center; min-height:180px; padding:10px; border-radius:14px; background:#09090b;}
  .share-preview canvas{display:block; width:auto; height:auto; max-width:100%; max-height:min(50vh,440px); max-height:min(50dvh,440px); border-radius:8px;}
  .share-wait{position:absolute; font-size:13px; color:var(--mute);}
  .share-wait[hidden]{display:none;}
  .share-msg{margin:0; font-size:12.5px; line-height:1.45; color:#fca5a5;} .share-msg.ok{color:#86efac;} .share-msg:empty{display:none;}
  .share-actions{display:flex; flex-wrap:wrap; gap:8px;}
  .challenges-dialog .share-main{flex:1 1 100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; border-radius:var(--r-md); background:var(--accent); color:#111; font-weight:800;}
  .challenges-dialog .share-main[hidden]{display:none;}
  .challenges-dialog .share-sec{flex:1 1 0; padding:11px; border-radius:var(--r-md); border:1px solid var(--ln); font-weight:700;}
  .challenges-dialog .share-sec:hover:not(:disabled){border-color:var(--accent);}
  .challenges-dialog .share-sec:disabled{opacity:.45; cursor:default;}
  .sum-btns .new-career-btn{flex:1 1 0; margin:0; min-width:0; padding-left:8px; padding-right:8px;}
  @media (min-width:901px){
    #view-summary .chart-wrap svg{max-height:92px;}
    #view-summary .sum-legacy{margin:0; padding:9px 14px;}
  }
