/* ===== PickCS v6 page pass (14 Nov 2026): my team, results, how it works, account, premium, referral, coupons, auth, errors, admin jobs.
   Loaded after theme.css. Does not touch the locked hero, menu, buttons or prize cards. ===== */

/* shared bits */
.mt-meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mt-total { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 30px; color: #fff; text-shadow: 0 0 18px rgba(255,110,20,.55); display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.mt-total small { font-size: 13px; color: var(--muted); font-style: normal; font-weight: 700; text-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h3 { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 22px 8px; color: #d6cff5; }
.empty-state p { color: #d6cff5 !important; margin: 0 !important; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--gap-sm); justify-content: center; margin-top: var(--gap); }
.field-hint { color: var(--dim); font-size: 12.5px; margin: 6px 0 10px; line-height: 1.45; }
.mini-h { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; color: #e9e3ff; margin: 18px 0 8px; }
.tick-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.tick-list li { position: relative; padding-left: 28px; color: #d6cff5; font-size: 14px; line-height: 1.45; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad-orange); box-shadow: 0 0 12px rgba(255,110,20,.5); }
.tick-list li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.week-pills, .player-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 auto var(--gap); }
.week-pills a, .player-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(190,150,255,.28); background: rgba(20,14,56,.6); color: #cfc8ef; font-weight: 700; font-size: 14px; transition: border-color .15s, color .15s, box-shadow .15s; }
.week-pills a:hover, .player-tabs a:hover { color: #fff; border-color: rgba(255,150,40,.55); }
.week-pills a.is-on, .player-tabs a.is-on { color: #fff; border-color: rgba(255,150,40,.75); background: linear-gradient(180deg, rgba(255,140,30,.2), rgba(255,90,10,.08)); box-shadow: 0 0 16px rgba(255,110,20,.35); }
.player-tabs .ico { width: 16px; height: 16px; color: var(--orange-2); }
.page-v2 .panel h3 .ph-ico { flex: 0 0 auto; }

/* team chips */
.pick-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-sm); margin: 12px 0; }
.pick-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(10,8,34,.7); border: 1px solid rgba(170,120,255,.22); min-width: 0; }
.pick-chip.is-cap { border-color: rgba(255,150,40,.7); box-shadow: 0 0 18px rgba(255,110,20,.28) inset, 0 0 14px rgba(255,110,20,.25); }
.pick-chip .mono { width: 40px; height: 40px; flex: 0 0 auto; font-size: 16px; }
.pc-name { min-width: 0; flex: 1; display: grid; }
.pc-name b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name small { color: var(--muted); font-size: 12px; }
.pick-chip.is-cap .pc-name small { color: #ffb36b; }
.pc-pts { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 3px; }
.pc-pts small { font-size: 12px; color: var(--muted); font-style: normal; }
.mono.mono-sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; padding: 3px; }
.mono.mono-sm.is-cap { box-shadow: 0 0 0 2px #ff8a1f, 0 0 10px rgba(255,110,20,.6); }

/* my team */
.mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.mt-grid .panel { margin: 0; }
.mt-actions { display: flex; flex-wrap: wrap; gap: var(--gap-sm); align-items: center; margin-top: 8px; }
.hist-item { border-top: 1px solid rgba(170,120,255,.14); }
.hist-item:first-of-type { border-top: 0; }
.hist-item > summary { list-style: none; cursor: pointer; }
.hist-item > summary::-webkit-details-marker { display: none; }
.hist-row { display: grid; grid-template-columns: 90px 1fr 80px 80px 90px; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px; color: #d6cff5; font-size: 14px; }
.mt-wins .hist-row { grid-template-columns: 90px 1fr auto; }
.hist-row b { color: #fff; }
.hist-teams { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-rank, .hist-pts { text-align: right; font-variant-numeric: tabular-nums; }
.hist-pts { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 22px; color: #fff; }
.hist-pts small { font-size: 12px; color: var(--muted); font-style: normal; margin-left: 3px; }
.hist-item[open] > summary { color: #fff; }
.hist-item[open] > summary .hist-pts { color: #ffb36b; }
.hist-body { padding: 0 4px 14px; }

/* results */
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.res-layout .panel { margin: 0 0 var(--gap); }
.res-day { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 15px; letter-spacing: .06em; color: #ff9a4d; margin: 16px 0 8px; }
.res-day:first-of-type { margin-top: 4px; }
.res-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(10,8,34,.66); border: 1px solid rgba(170,120,255,.18); margin-bottom: 8px; }
.res-row.is-final { border-color: rgba(170,120,255,.26); }
.res-row.is-running { border-color: rgba(245,193,74,.5); }
.rr-team { display: flex; align-items: center; gap: 10px; min-width: 0; color: #cfc8ef; }
.rr-team .mono { width: 38px; height: 38px; flex: 0 0 auto; font-size: 15px; }
.rr-right { justify-content: flex-end; text-align: right; }
.rr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: 14px; }
.rr-team.won .rr-name { color: #fff; font-weight: 800; }
.rr-pts { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.rr-team.won .rr-pts { color: #fff; background: rgba(255,110,20,.22); box-shadow: 0 0 10px rgba(255,110,20,.3); }
.rr-score { display: grid; justify-items: center; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 26px; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.rr-num { display: inline-flex; align-items: baseline; white-space: nowrap; }
.rr-score i { color: #ff8a1f; margin: 0 4px; font-style: normal; }
.rr-score small { font-family: Inter, sans-serif; font-style: normal; font-size: 12px; font-weight: 700; color: var(--dim); margin-top: 4px; }
.rr-time { font-size: 20px; color: #d6cff5; }
.rr-event { grid-column: 2 / -1; color: var(--dim); font-size: 12px; margin-top: -2px; }
.win-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(170,120,255,.14); }
.win-row:first-of-type { border-top: 0; }
.win-row div { display: grid; }
.win-row b { color: #fff; }
.win-row small { color: var(--muted); font-size: 12px; }
.tt-row { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid rgba(170,120,255,.12); }
.tt-row:first-of-type { border-top: 0; }
.tt-name { color: #e9e3ff; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.tt-pts { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 20px; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

/* how it works */
.how-steps { margin-bottom: var(--gap); }
.how-grid, .acct-grid, .prem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.how-grid .panel, .acct-grid .panel, .prem-grid .panel { margin: 0; }
.rule-table { display: grid; }
.rule-table > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid rgba(170,120,255,.12); color: #d6cff5; font-size: 14px; }
.rule-table > div:first-child { border-top: 0; }
.rule-table b { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255,110,20,.45); }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-sm); }
.ex-card { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(10,8,34,.7); border: 1px solid rgba(170,120,255,.22); }
.ex-card b { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 32px; color: #fff; text-shadow: 0 0 16px rgba(255,110,20,.5); }
.ex-card span { color: #d6cff5; font-size: 14px; }
.ex-card small { color: var(--dim); font-size: 12.5px; }

/* account */
.stack-form { display: grid; gap: 4px; }
.stack-form .btn { margin-top: 10px; justify-self: start; }
.stack-form .field[readonly] { opacity: .7; }
.toggle-row { margin-top: 6px; }
.ledger-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; min-height: 44px; border-top: 1px solid rgba(170,120,255,.12); color: #d6cff5; font-size: 13.5px; }
.ledger-row:first-of-type { border-top: 0; }
.ledger-row span:first-child { color: var(--dim); font-size: 12.5px; }
.ledger-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .src { color: var(--dim); font-size: 12px; text-transform: capitalize; }
.ledger-row b { text-align: right; font-variant-numeric: tabular-nums; }
.ledger-row b.up { color: #5ef0a8; }
.ledger-row b.down { color: #ffb089; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge.is-locked { opacity: .4; filter: grayscale(.6); }
.badge.is-earned { box-shadow: 0 0 12px rgba(245,193,74,.35); }
.acct-links { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.acct-links form { margin: 0; }
.mono-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: #fff; }

/* premium */
.test-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; margin: 0 auto var(--gap); padding: 10px 16px; border-radius: 14px; border: 1px dashed rgba(92,240,255,.55); background: rgba(40,160,255,.08); color: #bfefff; font-size: 13.5px; max-width: 720px; }
.test-banner b { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #5cf0ff; }
.prem-plan { position: relative; overflow: hidden; border-color: rgba(92,240,255,.45) !important; box-shadow: 0 0 0 1px rgba(92,240,255,.12) inset, 0 0 40px rgba(40,160,255,.18), 0 20px 50px rgba(0,0,0,.35) !important; }
.prem-plan::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(92,240,255,.18), transparent 65%); pointer-events: none; }
.prem-title { font-size: clamp(40px, 5vw, 58px); line-height: .95; margin: 14px 0 6px; background: linear-gradient(180deg, #fff 30%, #bfe9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prem-title span { font-family: "Kaushan Script", cursive; font-style: normal; text-transform: none; font-size: .6em; background: linear-gradient(135deg, #5cf0ff, #2a7dff); -webkit-background-clip: text; background-clip: text; }
.prem-status { display: grid; gap: 6px; margin-bottom: 10px; justify-items: start; }
.prem-plan form { margin: 0; }
.prem-subscribe { display: grid; gap: 10px; margin-top: 4px; }
.prem-consent { align-items: flex-start; margin: 0; line-height: 1.45; }
.prem-consent input { margin-top: 2px; flex: 0 0 auto; }
.prem-subscribe .field-error { margin: 0; color: #ff8a8a; font-size: 13px; }
.cmp-table { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid rgba(170,120,255,.2); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; align-items: center; min-height: 46px; padding: 6px 12px; border-top: 1px solid rgba(170,120,255,.12); font-size: 13.5px; color: #d6cff5; }
.cmp-row:first-child { border-top: 0; }
.cmp-head { background: rgba(255,255,255,.03); font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.cmp-head span:nth-child(2) { color: #ffb347; }
.cmp-head span:nth-child(3) { color: #5cf0ff; }

/* referral, coupons */
.copy-row { display: flex; gap: var(--gap-sm); align-items: stretch; }
.copy-row .field { flex: 1; min-width: 0; }
.copy-row .btn { flex: 0 0 auto; }
.copy-row .btn { white-space: nowrap; }
.ref-block { display: grid; gap: 12px; }
.ref-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-sm); }
.ref-stats div { background: rgba(8,6,26,.6); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 10px 12px; text-align: center; }
.ref-stats b { display: block; font-family: var(--font-display), "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.ref-stats span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tokens-panel .ref-block { margin-top: 8px; gap: 8px; }
.tokens-panel .copy-row { flex-direction: column; }
.tokens-panel .copy-row .btn { width: 100%; }
.tokens-panel .ref-stats div { border-radius: 10px; padding: 8px 6px; background: var(--bg-2); border-color: var(--line); }
.tokens-panel .ref-stats b { font-size: 22px; }
.tokens-panel .ref-stats span { font-size: 12px; }
.share-btns { display: flex; gap: var(--gap-sm); margin-top: 10px; }
.share-btns [hidden] { display: none !important; }
.code-field { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.guest-cta { max-width: 620px; margin: 0 auto; }

/* TikTok share step on the pick page */
.tt-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.tt-share .btn { flex: 1 1 auto; }
.tt-share [hidden] { display: none !important; }
.tt-open .ico { width: 16px; height: 16px; }
.mt-link { margin-top: 8px; }

/* auth */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: calc(var(--gap) * 2); align-items: center; max-width: 1000px; }
.auth-split > .auth { margin: 0; max-width: none; width: 100%; }
.auth-split .auth h2 { font-size: 34px; }
.auth-h1 { font-size: clamp(46px, 6vw, 80px); line-height: .86; margin: 14px 0 16px; }
.auth-h1 .h1-top { display: block; background: linear-gradient(180deg, #ffffff 30%, #c9c2ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-h1 .script { display: block; font-size: 1.12em; line-height: 1.02; }
.auth-side .lede { margin: 0 0 6px; max-width: 44ch; }

/* errors */
.error-page { min-height: calc(100svh - 300px); display: grid; align-content: center; }
.err-code { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: clamp(110px, 20vw, 210px); line-height: .8; margin: 10px 0 -10px; background: linear-gradient(180deg, rgba(255,154,31,.95), rgba(139,61,255,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,90,10,.35)); }

/* footer columns */
.footer-cols { display: grid !important; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 4px 40px !important; justify-content: center; }
.fcol { display: grid; align-content: start; }
.fhead { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: #ff9a4d; margin-bottom: 2px; }
.footer-cols a { min-height: 44px; }

/* admin jobs */
.admin-page .week-pills { justify-content: flex-start; }
.match-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 12px; border-radius: 14px; background: rgba(14,10,44,.7); border: 1px solid rgba(170,120,255,.22); margin-bottom: 10px; }
.me-who { display: grid; gap: 3px; align-self: center; }
.me-who b { color: #fff; }
.me-who small { color: var(--muted); font-size: 12px; }
.me-fields { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.me-fields label { display: grid; gap: 4px; }
.me-fields .field { min-height: 44px; }
.me-fields .sc { width: 70px; }
.me-status .field { min-width: 130px; }
.add-match-form { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.week-admin { padding: 14px; border-radius: 14px; background: rgba(14,10,44,.7); border: 1px solid rgba(170,120,255,.22); margin-bottom: 10px; }
.wa-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wa-head b { color: #fff; font-size: 16px; }
.wa-head small { color: var(--muted); font-size: 12px; }
.wa-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.wa-form label:not(.check) { display: grid; gap: 4px; }
.wa-form .admin-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.rule-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-search { display: flex; gap: 8px; margin: 0 0 var(--gap); max-width: 560px; }
.admin-search .field { flex: 1; min-width: 0; }
.user-admin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(14,10,44,.7); border: 1px solid rgba(170,120,255,.22); margin-bottom: 10px; }
.user-admin.is-banned { opacity: .65; }
.ua-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ua-who > div { display: grid; gap: 2px; min-width: 0; }
.ua-who b { color: #fff; }
.ua-who small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ua-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ua-tokens { display: flex; gap: 6px; }
.ua-tokens .sc { width: 76px; }
.ua-actions form { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1024px) {
  .res-layout { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px !important; width: 100%; }
}
@media (max-width: 860px) {
  .mt-grid, .how-grid, .acct-grid, .prem-grid, .example-grid, .auth-split, .rule-cols { grid-template-columns: 1fr; }
  .auth-side { text-align: center; }
  .auth-side .lede { margin: 0 auto 6px; }
  .auth-side .tick-list { display: none; }
  .auth-h1 { font-size: clamp(40px, 12vw, 60px); margin: 8px 0 10px; }
  .auth-split { gap: var(--gap); }
  .match-edit, .user-admin { grid-template-columns: 1fr; }
  .ua-actions { justify-content: flex-start; }
  .wa-form { grid-template-columns: 1fr; }
  .add-match-form { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .pick-chips { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; }
  .hist-row .hist-entry, .hist-row .hist-rank { display: none; }
  .mt-wins .hist-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 4px; }
  .res-row { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); padding: 10px; gap: 6px; }
  .res-row .tier { display: none; }
  .rr-team { flex-direction: column; gap: 4px; text-align: center; }
  .rr-right { flex-direction: column-reverse; }
  .rr-name { white-space: normal; font-size: 13px; line-height: 1.2; }
  .rr-event { grid-column: 1 / -1; text-align: center; }
  .rr-score { font-size: 24px; }
  .ledger-row { grid-template-columns: 48px minmax(0, 1fr) 40px; }
  .ledger-row .src { display: none; }
  .copy-row { flex-direction: column; }
  .cmp-row { font-size: 13px; padding: 6px 10px; }
  .admin-search { flex-wrap: wrap; }
  .ua-tokens { flex-wrap: wrap; }
  .add-match-form { grid-template-columns: 1fr !important; }
  .player-tabs, .week-pills { gap: 6px; }
  .player-tabs a, .week-pills a { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .week-pills a, .player-tabs a { transition: none; }
}
.prem-plan > .tag-pill { align-self: flex-start; justify-self: start; width: max-content; }

/* audit fixes: footer columns and small links reach the tap sizes */
@media (max-width: 860px) { .footer-cols a { min-height: 44px; } }
@media (min-width: 1025px) {
  .head-link { min-height: 28px; }
  .subtabs a, .tab { min-height: 28px; display: inline-flex; align-items: center; }
  .copy-link { display: inline-flex; align-items: center; min-height: 24px; padding: 0 4px; }
}
.team-card .form .w, .team-card .form .l { font-size: 10px; }
@media (max-width: 600px) {
  .ua-tokens { display: grid; grid-template-columns: 84px minmax(0, 1fr); width: 100%; }
  .ua-tokens .btn { grid-column: 1 / -1; }
  .ua-actions > .admin-actions { width: 100%; }
}

/* Admin audit log (14 Nov) */
.audit-log { display: grid; gap: 2px; }
.audit-row { display: grid; grid-template-columns: 110px 160px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid rgba(190,150,255,.12); font-size: 14px; }
.audit-row > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .audit-row { grid-template-columns: 1fr; gap: 2px; } }
.trade-cell { display: grid; gap: 4px; min-width: 0; }
.trade-cell .meta { font-size: 12px; color: var(--muted, #b9b0dc); overflow-wrap: anywhere; }
.trade-cell .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- 15 Nov: monthly rounds ---- */
.round-status { display: grid; gap: 4px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(20,12,52,.72); border: 1px solid rgba(170,120,255,.32); box-shadow: 0 0 18px rgba(140,80,255,.14); }
.round-status strong { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 18px; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.round-status span { color: #c3bce4; font-size: 14px; line-height: 1.45; }
.round-status.is-window, .round-status.is-new { border-color: rgba(251,80,2,.55); box-shadow: 0 0 18px rgba(251,80,2,.16); }
.round-status.is-window strong, .round-status.is-new strong { color: #ff8a3d; }
.round-status.is-done strong, .round-status.is-ended strong { color: #c3bce4; }
.month-rules, .season-rules { margin-bottom: var(--gap); }
.month-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-sm, 12px); margin-bottom: 14px; }
.mt-step { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(10,8,34,.7); border: 1px solid rgba(170,120,255,.22); position: relative; }
.mt-step b { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; color: #ff8a3d; }
.mt-step span { color: #c3bce4; font-size: 14px; line-height: 1.5; }
.info-grid.two, .info-grid.three { margin: 0; }
.info-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 18px; text-transform: uppercase; margin: 0 0 6px; color: #fff; }
.info-grid.two p, .info-grid.three p { color: #c3bce4; font-size: 14px; line-height: 1.55; margin: 0; }
.season-table { display: grid; }
.st-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) repeat(3, 56px) 70px; gap: 8px; align-items: center; min-height: 44px; padding: 6px 10px; border-bottom: 1px solid rgba(170,120,255,.14); }
.st-row .num, .st-row .pts, .st-head span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.st-row .pts { font-weight: 800; color: #fff; }
.st-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-head { color: var(--muted, #9a93c4); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; min-height: 32px; }
.lb-history { margin: 14px 0 0; }
.lb-history a { color: #ff8a3d; display: inline-flex; align-items: center; min-height: 44px; }
.page-hero .lead { color: #c3bce4; max-width: 640px; margin: 10px auto 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) {
  .month-timeline, .info-grid.two, .info-grid.three { grid-template-columns: 1fr; }
  .st-row { grid-template-columns: 30px minmax(0, 1fr) repeat(3, 40px) 52px; gap: 6px; padding: 6px 4px; font-size: 14px; }
}
.entry-opt.is-off { opacity: .45; cursor: default; }
.held-note { margin: 8px 0 0; font-size: 13px; color: #c3bce4; }
.panel .hist-row.held-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 80px; gap: 12px; align-items: center; }
.panel .hist-row.held-row > span:not(.hist-pts) { white-space: nowrap; color: #c3bce4; font-size: 13px; }
.panel .hist-row.held-row .hist-pts { text-align: right; }
@media (max-width: 600px) { .panel .hist-row.held-row { grid-template-columns: 34px minmax(0, 1fr) 64px; row-gap: 2px; } .panel .hist-row.held-row > span:not(.hist-pts) { grid-column: 2; grid-row: 2; } .panel .hist-row.held-row .hist-pts { grid-column: 3; grid-row: 1 / 3; } }

/* ===== 15 Nov late: BETA TEST bar, smooth scrolling, smooth tabs ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target { scroll-margin-top: 90px; }

.beta-bar { position: relative; z-index: 60; background: linear-gradient(90deg, #2a0f4d, #4a1670 45%, #6b2a12); border-bottom: 1px solid rgba(255, 160, 80, .35); color: #f4ecff; font-size: 13px; line-height: 1.2; }
.beta-bar-inner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 34px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.beta-bar strong { color: #ffb067; letter-spacing: .08em; font-weight: 800; }
.beta-bar .bb-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.beta-bar .bb-clock b { font-weight: 800; color: #fff; }
.beta-bar .bb-link { color: #ffd2a8; text-decoration: underline; text-underline-offset: 2px; }
.beta-bar .bb-short { display: none; }
.beta-bar.is-live { background: linear-gradient(90deg, #12402a, #1d5e3a); }
@media (max-width: 560px) {
  .beta-bar { font-size: 12px; }
  .beta-bar-inner { gap: 2px 6px; min-height: 30px; padding-top: 5px; padding-bottom: 5px; }
  .beta-bar .bb-long, .beta-bar .bb-link { display: none; }
  .beta-bar .bb-short { display: inline; }
}
@media (max-width: 340px) { .beta-bar .bb-sec { display: none; } }

/* Tabs and toggles: animate the state change instead of snapping */
.tab, .subtabs a, .sort, .entry-opt, .pill-nav a, .acct-tabs a, .seg a, .round-switch a {
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .22s ease, transform .22s ease;
}
.tab.is-on, .subtabs a.is-on, .round-switch a.is-on { transform: translateZ(0); }
.entry-opt { will-change: auto; }
.entry-opt:active, .tab:active, .subtabs a:active, .sort:active { transform: scale(.98); }
[data-swap] { transition: opacity .18s ease; }
[data-swap].is-swapping { opacity: .55; pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) {
  .tab, .subtabs a, .sort, .entry-opt, .pill-nav a, .acct-tabs a, .seg a, .round-switch a, [data-swap] { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
/* Pre-season round switch on the pick page */
.round-switch { display: inline-flex; gap: 4px; padding: 3px; margin: 0 0 12px; border-radius: 999px; background: rgba(8, 6, 26, .7); border: 1px solid var(--line-strong, rgba(255,255,255,.14)); flex-wrap: wrap; }
.round-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; color: #cfc6ee; font-weight: 700; font-size: 14px; text-decoration: none; }
.round-switch a.is-on { background: var(--grad-orange, linear-gradient(90deg,#ff7a1a,#ff4d2a)); color: #fff; box-shadow: 0 0 12px rgba(255, 90, 10, .4); }
.round-switch a b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #ffd2a8; font-weight: 800; }
.round-switch a.is-on b { color: #fff; }
.round-switch a i { font-style: normal; font-size: 11px; opacity: .8; }
@media (max-width: 480px) { .round-switch { display: flex; } .round-switch a { flex: 1; justify-content: center; font-size: 13px; padding: 6px 10px; } }
.beta-bar .bb-cta { font-weight: 700; color: #fff; }
@media (max-width: 560px) { .beta-bar .bb-cta { display: inline; } }
@media (max-width: 480px) { .round-switch a b { display: none; } }
/* Unverified accounts: activation note on the pick page (Rupert 15 Nov 23:58) */
.verify-first { display: grid; gap: 4px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 140, 60, .55); background: rgba(255, 110, 20, .1); color: #ffe3cc; font-size: 14px; line-height: 1.45; }
.verify-first strong { color: #fff; }
.verify-resend { margin-top: 8px; }

/* Sitewide lineup status chip (Rupert 16 Nov 00:48) */
.ls-group { display: inline-flex; gap: 6px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.ls-chip svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ls-chip.is-locked { color: #b8ffd9; background: linear-gradient(180deg, rgba(40, 220, 130, .2), rgba(20, 160, 90, .1)); border: 1px solid rgba(60, 230, 140, .6); box-shadow: 0 0 12px rgba(40, 220, 130, .22); }
.ls-chip.is-open { color: #fff; background: linear-gradient(90deg, #ff7a1a, #ff4d2a); border: 1px solid rgba(255, 170, 110, .7); box-shadow: 0 0 14px rgba(255, 90, 10, .4); }
.ls-chip.is-unverified { color: #ffe3cc; background: rgba(255, 110, 20, .1); border: 1px dashed rgba(255, 150, 70, .7); }
.ls-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); animation: lsPulse 1.8s ease-in-out infinite; }
@keyframes lsPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
.ls-mob { display: inline-flex; }
.nav-logout { display: none; }
.nav-logout button { width: 100%; text-align: left; padding: 12px 16px; border-radius: 12px; background: transparent; border: 1px solid rgba(190, 150, 255, .3); color: #e6e0ff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1500px) { .ls-desk .ls-chip { padding: 6px 10px; font-size: 12.5px; } }
@media (max-width: 760px) {
  .ls-desk { display: none; }
  .ls-mob { display: inline-flex; min-height: 34px; padding: 5px 10px; font-size: 12.5px; gap: 5px; }
}
/* 390 px fix: logo, status, tokens and menu on one row; Log out moves into the menu */
@media (max-width: 560px) {
  .hdr-logout { display: none; }
  .nav-logout { display: block; }
  .token-chip .tk-word, .token-chip .sub { display: none; }
  .header-actions { gap: 6px; }
  .header .nav-toggle { margin-left: 4px; }
}
@media (max-width: 400px) { .header .logo img { height: 38px; } .ls-mob { padding: 5px 9px; } }
@media (prefers-reduced-motion: reduce) { .ls-dot { animation: none; } }

/* Pick page top lineup bar: locked panel or gaps to fill (Rupert 16 Nov 00:48, 00:49) */
.lineup-bar { margin: 0 0 16px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(30, 22, 70, .85), rgba(14, 10, 40, .85)); border: 1px solid rgba(190, 150, 255, .28); }
.lineup-bar.is-locked { border-color: rgba(60, 230, 140, .6); box-shadow: 0 0 0 1px rgba(60, 230, 140, .15) inset, 0 0 26px rgba(40, 220, 130, .16); background: linear-gradient(180deg, rgba(18, 52, 48, .75), rgba(12, 14, 40, .9)); }
.lineup-bar.is-dirty { border-color: rgba(255, 150, 60, .7); box-shadow: 0 0 22px rgba(255, 110, 20, .2); }
.lineup-bar.is-dirty .lb2-head::after { content: "Unsaved changes, save below"; color: #ffcf9e; font-size: 12.5px; font-weight: 700; }
.lb2-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.lb2-head strong { color: #fff; font-size: 15px; }
.lb2-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #06281a; background: linear-gradient(90deg, #4ff0a0, #22c57d); }
.lb2-badge svg { width: 14px; height: 14px; }
.lb2-badge.is-todo { color: #fff; background: linear-gradient(90deg, #ff7a1a, #ff4d2a); }
.lb2-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-left: auto; color: #d6cdf5; font-size: 13px; font-weight: 600; }
.lb2-pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.lb2-pill.is-free { color: #2a1400; background: linear-gradient(135deg, #ffb347, #ff7a1a); }
.lb2-pill.is-premium { color: #04202e; background: linear-gradient(135deg, #7cf3ff, #3a8dff); }
.lb2-slots { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 8px; }
.lb2-slot { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; min-width: 0; transition: background-color .2s, border-color .2s; }
.lb2-slot img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.lb2-slot .lb2-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13.5px; color: #fff; }
.lb2-slot .lb2-cr { font-size: 12px; font-weight: 800; color: #cfc6ee; }
.lb2-slot.is-filled { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.lb2-slot.is-hero { border-color: rgba(255, 170, 60, .85); box-shadow: 0 0 12px rgba(255, 130, 30, .3); }
.lb2-slot.is-gap { border: 1.5px dashed rgba(200, 175, 255, .45); background: rgba(150, 110, 255, .05); }
.lb2-slot.is-gap .lb2-name { color: #b9aee0; font-weight: 600; }
.lb2-plus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed rgba(200, 175, 255, .6); color: #cbbfff; font-weight: 800; flex: 0 0 auto; }
.lb2-hero { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.lb2-hero .lb2-name { width: 100%; }
.lb2-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb36b; }
.lb2-hero.is-filled { background: linear-gradient(135deg, rgba(255, 140, 40, .18), rgba(255, 80, 20, .06)); border: 1px solid rgba(255, 170, 60, .7); }
@media (max-width: 860px) {
  .lineup-bar { padding: 10px; border-radius: 14px; }
  .lb2-meta { margin-left: 0; width: 100%; font-size: 12.5px; }
  .lb2-slots { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lb2-hero { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .lb2-hero .lb2-tag { flex: 0 0 auto; }
  .lb2-slot { min-height: 40px; padding: 6px 8px; }
  .lb2-slot .lb2-name { font-size: 13px; }
}
/* Leaderboard: your row stands out */
.lb-you .you-tag, .st-row.lb-you .you-tag { display: inline-flex; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #ff7a1a, #ff4d2a); vertical-align: middle; }
.lb-row.lb-you, .st-row.lb-you { position: relative; }
.lb-row.lb-you::before, .st-row.lb-you::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: #ff7a1a; box-shadow: 0 0 10px rgba(255, 110, 20, .8); }
/* My team: status strip */
.mt-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mt-status .ls-chip { min-height: 40px; font-size: 14px; }
.nav-logout button .ico { display: none; }
/* Desktop from 1280 px (header wrap stays 1120 px wide), logged in: make room for the lineup chip. Logo already links home,
   logout becomes an icon in the menu, chip uses its compact form (16 Nov). */
@media (min-width: 1280px) {
  body.has-ls:not(.is-admin) .nav a.nav-user { padding-left: 12px; padding-right: 12px; }
  body.has-ls:not(.is-admin) .nav a.nav-user .nav-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-ls:not(.is-admin) .nav a.nav-home { display: none; }
  body.has-ls:not(.is-admin) .nav a { padding-left: 12px; padding-right: 12px; }
  body.has-ls:not(.is-admin) .hdr-logout { display: none; }
  body.has-ls:not(.is-admin) .nav-logout { display: block; }
  body.has-ls:not(.is-admin) .nav-logout button { width: auto; padding: 10px 12px; border: 0; border-radius: 999px; color: inherit; display: inline-flex; align-items: center; }
  body.has-ls:not(.is-admin) .nav-logout button:hover { background: rgba(255, 255, 255, .06); }
  body.has-ls:not(.is-admin) .nav-logout .ico { display: block; width: 18px; height: 18px; }
  body.has-ls:not(.is-admin) .nav-logout .nl-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-ls:not(.is-admin) .token-chip .tk-word, body.has-ls:not(.is-admin) .token-chip .sub { display: none; }
  body.has-ls .ls-desk { display: none; }
  body.has-ls .ls-mob { display: inline-flex; }
}
/* Admin header (hamburger to 1460): compact chip and no token word so it stays on one row */
@media (min-width: 1025px) and (max-width: 1460px) {
  body.is-admin .ls-desk { display: none; }
  body.is-admin .ls-mob { display: inline-flex; }
  body.is-admin .token-chip .sub { display: none; }
}
/* 1025 to 1279 px hamburger: compact chip */
@media (min-width: 1025px) and (max-width: 1279px) {
  .ls-desk { display: none; }
  .ls-mob { display: inline-flex; }
}
@media (max-width: 420px) {
  .ls-mob .lk-in { display: none; }
  .ls-mob .lk-all { display: inline; }
  .header-inner { flex-wrap: nowrap; }
  .header .logo { flex: 0 1 auto; min-width: 0; }
  .header .logo img { height: 34px; width: auto; }
}
@media (max-width: 520px) { .ls-mob .lk-in { display: none; } }
/* lineup bar spans the full pick layout; name over price */
.lineup-bar-wrap { margin-top: 18px; }
.lb2-slot img { width: 26px; height: 26px; }
.lb2-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.lb2-txt .lb2-name { flex: none; }
.lb2-slot.is-hero .lb2-cr { color: #ffb36b; }
@media (max-width: 860px) { .lineup-bar-wrap { margin-top: 12px; } .lb2-slot img { width: 22px; height: 22px; } }
@media (max-width: 860px) { .lb2-hero.is-filled { display: none; } }
.mt-status .ls-chip { white-space: normal; } .mt-status .ls-chip.ls-mob, .mt-status .ls-chip { display: inline-flex; }

/* One height for every header control (Rupert 16 Nov 10:17: "Icons in menu different heights").
   Status chip (all states), token pill, login pill, hamburger and the desktop icon buttons are all
   exactly 44 px tall (touch target), box-sizing border-box, centred on the same line. */
:root { --hdr-ctl: 44px; }
.header .header-inner, .header .header-actions { align-items: center; }
.header .ls-chip, .header .token-chip, .header .login-pill, .header-actions .sign-in, .header .btn-orange, .header .nav-toggle {
  box-sizing: border-box; height: var(--hdr-ctl); min-height: var(--hdr-ctl); max-height: var(--hdr-ctl);
  padding-top: 0; padding-bottom: 0; line-height: 1; display: inline-flex; align-items: center; align-self: center; flex: 0 0 auto;
}
.header .ls-chip { padding-left: 14px; padding-right: 14px; font-size: 13px; }
.header .token-chip { padding-left: 10px; padding-right: 14px; }
.header .nav-toggle { width: var(--hdr-ctl); justify-content: center; border-radius: 999px; }
.header-actions form { margin: 0; align-self: center; }
@media (max-width: 1024px) { .header .nav-toggle { display: inline-flex; } }
@media (min-width: 1025px) and (max-width: 1279px) { .header .nav-toggle { display: inline-flex; } }
@media (min-width: 1280px) { body:not(.is-admin) .header .nav-toggle { display: none; } }
@media (min-width: 1280px) and (max-width: 1460px) { body.is-admin .header .nav-toggle { display: inline-flex; } }
@media (min-width: 1461px) { body.is-admin .header .nav-toggle { display: none; } }
@media (min-width: 1280px) {
  body.has-ls:not(.is-admin) .nav a.nav-user, body.has-ls:not(.is-admin) .nav-logout button {
    box-sizing: border-box; height: var(--hdr-ctl); width: var(--hdr-ctl); min-height: 0; padding: 0; justify-content: center; align-items: center; display: inline-flex; border-radius: 999px;
  }
  body.has-ls:not(.is-admin) .nav-logout { display: inline-flex; align-items: center; }
}
@media (max-width: 760px) { .header .ls-chip { padding-left: 11px; padding-right: 11px; font-size: 12.5px; } }
@media (max-width: 400px) { .header .ls-chip { padding-left: 9px; padding-right: 9px; } .header .token-chip { padding-left: 8px; padding-right: 10px; } }

/* Cookie consent banner (16 Nov). Bottom, equal buttons, sits above the pick page mobile bar. */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; animation: cbIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.cookie-banner[hidden] { display: none; }
.cb-inner { pointer-events: auto; display: flex; align-items: center; gap: 18px; width: 100%; max-width: 980px; padding: 16px 18px; border-radius: 18px; background: rgba(12, 8, 34, .97); border: 1px solid rgba(190, 150, 255, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 30px rgba(120, 60, 255, .2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cb-copy { flex: 1; min-width: 0; }
.cb-copy strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.cb-copy p { margin: 0; color: #d6cdf5; font-size: 13.5px; line-height: 1.45; }
.cb-copy a { color: #ffb36b; text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cb-btn { box-sizing: border-box; min-width: 150px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(220, 190, 255, .7); background: rgba(139, 61, 255, .18); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cb-btn:hover { background: rgba(139, 61, 255, .32); border-color: #fff; }
.cb-btn:focus-visible { outline: 2px solid #ffb36b; outline-offset: 2px; }
@keyframes cbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cb-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cb-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cb-btn { min-width: 0; padding: 0 10px; font-size: 13.5px; }
}
@media (max-width: 860px) { .pick-page .cookie-banner { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ===== Major format (16 Nov): top bar, prize ladder, stage pick, boards ===== */
.major-bar { position: relative; z-index: 60; background: linear-gradient(90deg, #2a0f4d, #4a1670 45%, #6b2a12); border-bottom: 1px solid rgba(255, 160, 80, .35); color: #f4ecff; font-size: 13px; line-height: 1.2; }
.major-bar.is-live { background: linear-gradient(90deg, #12402a, #1d5e3a); }
.major-bar-inner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 34px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.major-bar strong { color: #ffb067; letter-spacing: .04em; font-weight: 800; }
.major-bar .mb-clock { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; white-space: nowrap; }
.major-bar .mb-clock span { opacity: .6; }
.major-bar .mb-link { color: #ffd2a8; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
@media (max-width: 560px) { .major-bar { font-size: 12px; } .major-bar strong { flex-basis: 100%; } }
.prem-chip { color: #ffe3a3; text-decoration: none; gap: 6px; border-color: rgba(245, 193, 74, .5) !important; }
.prem-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #f5c14a, #ff8a3d); color: #1b0b00; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.entered-tick { display: inline-flex; align-items: center; gap: 4px; color: #3ddc97; font-weight: 800; font-size: 12px; }

.ladder { position: relative; border-radius: 22px; padding: 26px; background: radial-gradient(120% 140% at 100% 0%, rgba(251, 80, 2, .18), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(120, 60, 255, .22), transparent 55%), rgba(10, 8, 34, .9); border: 1px solid rgba(190, 150, 255, .28); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.ladder-kicker { margin: 0 0 6px; color: #ffb067; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.ladder-title { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; }
.ladder-sub { margin: 0 0 18px; color: #c9c1ea; max-width: 760px; }
.ladder-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.lad-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.lad-step.lvl-2 { margin-top: 18px; } .lad-step.lvl-3 { margin-top: 36px; }
@media (min-width: 900px) {
  .lad-step.lvl-1 { transform: translateY(54px); } .lad-step.lvl-2 { transform: translateY(36px); } .lad-step.lvl-3 { transform: translateY(18px); }
  .ladder-steps { padding-bottom: 54px; }
  .lad-step.lvl-2, .lad-step.lvl-3 { margin-top: 0; }
}
.lad-step.is-focus { border-color: rgba(255, 160, 80, .8); box-shadow: 0 0 0 2px rgba(251, 80, 2, .35), 0 12px 30px rgba(251, 80, 2, .18); background: rgba(251, 80, 2, .08); }
.lad-step.is-finished { opacity: .72; }
.lad-overall { background: linear-gradient(180deg, rgba(245, 193, 74, .2), rgba(245, 193, 74, .05)); border-color: rgba(245, 193, 74, .6); box-shadow: 0 0 40px rgba(245, 193, 74, .18); }
.lad-top { display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 4px; }
.lad-name { font-weight: 800; font-size: 16px; display: inline-flex; gap: 6px; align-items: center; }
.lad-name .ico { width: 18px; height: 18px; color: #f5c14a; }
.lad-dates { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; color: #d4ccee; font-size: 14px; letter-spacing: .01em; white-space: nowrap; }
.lad-state { justify-self: end; margin: 0; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(255, 255, 255, .08); color: #d8d0f5; }
.lad-state.st-open { background: rgba(61, 220, 151, .16); color: #6ff0b4; }
.lad-state.st-live { background: rgba(255, 91, 110, .18); color: #ff8d9b; }
.lad-state.st-coming_soon { background: rgba(255, 176, 103, .16); color: #ffc58f; }
.lad-state.st-overall { background: rgba(245, 193, 74, .2); color: #ffe08a; }
.lad-here { position: absolute; top: -12px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #fb5002; color: #fff; font-weight: 800; font-size: 11.5px; box-shadow: 0 6px 16px rgba(251, 80, 2, .45); }
.lad-here .ico { width: 13px; height: 13px; }
.lad-prize { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); }
.lad-prize strong { font-size: 14px; line-height: 1.25; }
.lad-prize.pr-prem { border-color: rgba(245, 193, 74, .35); background: rgba(245, 193, 74, .07); }
.lad-overall .lad-prize strong { font-size: 15.5px; }
.lad-pool { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fb4ff; }
.pr-prem .lad-pool { color: #ffd27a; }
.lad-prize.is-entered { border-color: rgba(61, 220, 151, .7); }
.lad-tick { color: #3ddc97; font-weight: 800; font-size: 12px; }
.ladder-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 16px; align-items: center; }
.lad-upgrade { margin: 0; color: #e6defc; }
.lad-upgrade a { color: #ffb067; font-weight: 800; }
.lad-note { margin: 0; color: #9d93c6; font-size: 12.5px; }
.ladder.is-compact { padding: 16px; }
.ladder.is-compact .ladder-steps { gap: 8px; }
.ladder.is-compact .lad-step { padding: 10px; }
@media (max-width: 899px) {
  .ladder { padding: 18px; }
  .ladder-steps { grid-template-columns: 1fr; gap: 10px; display: flex; flex-direction: column-reverse; }
  .lad-step { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lad-step .lad-top { grid-column: 1 / -1; }
  .lad-state { margin-top: 0; }
  .lad-step.lvl-2, .lad-step.lvl-3 { margin-top: 0; }
  .lad-here { top: -10px; }
}

/* Coming soon and stage status */
.soon-panel { padding: 28px; border-radius: 20px; text-align: center; background: rgba(255, 176, 103, .07); border: 1px dashed rgba(255, 176, 103, .5); }
.soon-panel h2 { margin: 0 0 8px; }
.soon-panel p { margin: 0 auto 10px; color: #d8cff3; max-width: 640px; }
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.stage-tabs a { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #d8d0f5; text-decoration: none; font-weight: 700; font-size: 13px; }
.stage-tabs a.is-on { background: #fb5002; border-color: #fb5002; color: #fff; }
.stage-tabs a i { font-style: normal; color: #6ff0b4; margin-left: 4px; }
.seed-tag, .standin-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .08); color: #cfc6ee; }
.standin-tag { background: rgba(255, 176, 103, .18); color: #ffc58f; }
.lock-clock { font-variant-numeric: tabular-nums; }
.not-elig { color: #9d93c6; font-size: 11.5px; font-weight: 700; }
.mj-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 900px) { .mj-grid { grid-template-columns: 1fr; } }
.mj-stage-list { display: grid; gap: 8px; container-type: inline-size; container-name: stages; }
.mj-stage { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.mj-stage-name { font-weight: 800; font-size: 16px; color: #fff; grid-column: 1; grid-row: 1; }
.mj-stage-dates { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-size: 14px; color: #d4ccee; letter-spacing: .01em; white-space: nowrap; grid-column: 1 / -1; grid-row: 2; }
.mj-stage .lad-state { justify-self: end; align-self: center; margin: 0; white-space: nowrap; grid-column: 2; grid-row: 1; }
.mj-stage-detail { grid-column: 1 / -1; color: #a99fd0; font-size: 12.5px; }
.mj-stage-detail a { color: #ffc58f; }
.mj-stage small { color: #a99fd0; }
@container stages (min-width: 34rem) {
  .mj-stage { grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) auto; column-gap: 16px; }
  .mj-stage-name { grid-column: 1; grid-row: 1; }
  .mj-stage-dates { grid-column: 2; grid-row: 1; }
  .mj-stage .lad-state { grid-column: 3; grid-row: 1; }
}
.mj-rules { margin: 0; padding-left: 18px; color: #d8cff3; line-height: 1.6; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th, .adm-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; vertical-align: middle; }
.adm-table input[type=number] { width: 70px; }
.adm-warn { padding: 10px 12px; border-radius: 10px; background: rgba(255, 176, 103, .12); border: 1px solid rgba(255, 176, 103, .45); color: #ffd9b3; }
.adm-ok { padding: 10px 12px; border-radius: 10px; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .4); color: #b7f5d8; }
/* compact ladder (sidebars, My team): always the stacked layout, overall on top */
.ladder.is-compact .ladder-steps { display: flex; flex-direction: column-reverse; padding-bottom: 0; }
.ladder.is-compact .lad-step { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; transform: none !important; margin-top: 0 !important; }
.ladder.is-compact .lad-top { grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr) auto; column-gap: 10px; }
.ladder.is-compact .lad-dates { font-size: 12.5px; }
@media (max-width: 640px) {
  .lad-top { grid-template-columns: 1fr auto; }
  .lad-name { grid-column: 1; grid-row: 1; }
  .lad-top .lad-state { grid-column: 2; grid-row: 1; }
  .lad-dates { grid-column: 1 / -1; grid-row: 2; }
  .lad-here { grid-column: 1 / -1; }
}
.ladder.is-compact .lad-state { margin-top: 0; }
.ladder.is-compact .lad-prize { padding: 7px 8px; }
.ladder.is-compact .lad-prize strong { font-size: 12.5px; }
.ladder.is-compact .lad-here { top: -10px; }
.ladder.is-compact .ladder-foot { flex-direction: column; align-items: flex-start; font-size: 13px; }
.pick-side .ladder { margin-top: 16px; }

/* Steam sign in (16 Nov 2026): avatars and the header user chip */
img.avatar-img { object-fit: cover; border-radius: 50%; display: inline-block; vertical-align: middle; background: #171a21; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; max-width: 190px; }
.user-chip:hover { border-color: rgba(255, 255, 255, .3); }
.user-chip .avatar { flex: 0 0 auto; }
.user-chip .uc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .user-chip { padding: 0 6px; } .user-chip .uc-name { display: none; } }

/* Info tips (16 Nov 2026) */
.tip-wrap { display: inline; position: relative; }
button.tip { all: unset; cursor: help; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; border-radius: 999px; }
button.tip:focus-visible { outline: 2px solid #ffb067; outline-offset: 2px; }
.tip-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; font: 800 10.5px/1 Inter, system-ui, sans-serif; font-style: italic; color: #ffb067; background: rgba(251, 80, 2, .14); border: 1px solid rgba(251, 80, 2, .45); transition: background .15s, color .15s, transform .15s; }
button.tip:hover .tip-i, button.tip[aria-expanded="true"] .tip-i { background: #fb5002; color: #fff; transform: scale(1.08); }
button.tip-term { text-decoration: underline dotted rgba(255, 176, 103, .8); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font: inherit; color: inherit; border-radius: 4px; }
.tip-box { position: fixed; left: 0; top: 0; z-index: 1000; display: block; width: max-content; max-width: min(270px, calc(100vw - 20px)); padding: 9px 11px; border-radius: 12px; background: linear-gradient(180deg, #241c4e, #1a1438); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(251, 80, 2, .08); color: #ece8ff; font: 500 12.5px/1.45 Inter, system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease, visibility 0s .16s; }
.tip-wrap > .tip-box { position: absolute; left: -9999px; } /* before first use it waits inside the page, off screen */
.tip-box.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
.tip-box::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: #1a1438; border-right: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); transform: rotate(45deg); }
.tip-box.is-below::after { bottom: auto; top: -6px; transform: rotate(225deg); background: #241c4e; }

/* Motion (16 Nov 2026): reveal on scroll, stagger, tilt with glare. Only when motion.js adds .motion. */
a, .btn, .panel, .team-card, .entry-opt, .rung, .v2-step, .faq-item summary, .field, .chip, .token-chip, .user-chip, .sign-in { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.on { opacity: 1; transform: none; }
.motion .stg { opacity: 0; transform: translateY(14px) scale(.98); }
.motion .on .stg, .motion .stg.on, .motion :not(.reveal) > .stg { animation: pk-stg .55s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.motion .reveal:not(.on) .stg { animation: none; }
@keyframes pk-stg { to { opacity: 1; transform: none; } }
.tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.tilt.tilting { transition: transform .08s linear, box-shadow .2s ease; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), rgba(255, 176, 103, .06) 40%, transparent 65%); z-index: 2; }
.tilt.tilting::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } .tilt { transform: none !important; } }

/* Prize skins pulled from the Steam Market (16 Nov 2026) */
.lad-skin { display: block; width: 96px; height: 72px; object-fit: contain; margin: 4px 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.lad-prize .lad-skin + strong { font-size: .92em; }
.ladder.is-compact .lad-skin { width: 64px; height: 48px; }
.major-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--gap); }
.major-switch .chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12)); color: inherit; text-decoration: none; font-size: 14px; }
.major-switch .chip.is-active { border-color: var(--orange); background: var(--orange-soft); }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.mp-card { margin: 0; min-width: 0; }
.mp-card legend { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.pc-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.pc-img { display: grid; place-items: center; background: rgba(255,255,255,.04); border-radius: 10px; min-height: 90px; }
.pc-img img { width: 120px; height: 90px; object-fit: contain; }
.pc-noimg { font-size: 12px; opacity: .6; }
.pc-fields { display: grid; grid-template-columns: minmax(96px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pc-fields select.field { padding-right: 24px; }
.pc-fields .pc-wide { grid-column: 1 / -1; }
.pc-meta { font-size: 13px; opacity: .85; margin: 8px 0 4px; }
.pc-warn { font-size: 13px; color: var(--gold); margin: 0 0 6px; }
.pc-fetch { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pc-fetch-note { font-size: 13px; color: #d8cff3; }
.pc-fields .af-check { min-height: 32px; }
.prize-save { grid-column: 1 / -1; position: sticky; bottom: 8px; }
@media (max-width: 560px) { .prize-grid { grid-template-columns: 1fr; } .pc-body { grid-template-columns: 1fr; } .pc-fields { grid-template-columns: 1fr 1fr; } .pc-fields label:first-child { grid-column: 1 / -1; } }

/* Floating Feedback button and panel (16 Nov 2026) */
.fb-widget { --fb-lift: 0px; position: fixed; right: 16px; bottom: calc(16px + var(--fb-lift) + env(safe-area-inset-bottom, 0px)); z-index: 80; transition: bottom .25s ease; }
.fb-fab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(16,18,24,.92); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.4); backdrop-filter: blur(8px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.fb-fab:hover, .fb-fab:focus-visible { transform: translateY(-2px); border-color: #fb5002; }
.fb-fab svg { color: #fb5002; }
.fb-widget.is-open .fb-fab { background: #fb5002; border-color: #fb5002; }
.fb-widget.is-open .fb-fab svg { color: #fff; }
.fb-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); padding: 16px; border-radius: 16px; background: #12141b; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: fbIn .2s ease; }
@keyframes fbIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } .fb-widget, .fb-fab { transition: none; } }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fb-head h2 { font-size: 18px; margin: 0; }
.fb-close { background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.fb-type { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.fb-type label { position: relative; }
.fb-type input { position: absolute; opacity: 0; }
.fb-type span { display: block; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); font-size: 13px; cursor: pointer; }
.fb-type input:checked + span { border-color: #fb5002; background: rgba(251,80,2,.14); }
.fb-type input:focus-visible + span { outline: 2px solid #fb5002; outline-offset: 2px; }
.fb-form .field { width: 100%; margin-bottom: 8px; }
.fb-form textarea { resize: vertical; min-height: 96px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-note { font-size: 12px; opacity: .65; margin: 0 0 10px; }
.fb-actions { display: flex; justify-content: flex-end; }
.fb-status { font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.fb-widget.is-sent .fb-status { color: var(--green, #3ddc97); }
@media (max-width: 560px) { .fb-fab span { display: none; } .fb-fab { padding: 12px; } }
.admin-page .fb-widget { display: none; }

/* Admin lists: filters, tabs, counts (16 Nov 2026) */
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 var(--gap); padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.af-field { display: grid; gap: 4px; font-size: 12px; min-width: 130px; flex: 0 1 160px; }
.af-field > span:first-child { opacity: .7; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.af-search { flex: 1 1 220px; }
.af-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; min-height: 40px; }
.af-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 640px) {
  .admin-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .af-field, .af-search { min-width: 0; }
  .af-search, .af-actions { grid-column: 1 / -1; }
  .af-actions .btn { flex: 1; }
}
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: inherit; text-decoration: none; font-size: 14px; }
.admin-tabs a.is-active { border-color: #fb5002; background: rgba(251,80,2,.14); }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #fb5002; color: #fff; font-size: 11px; font-weight: 700; }
.admin-tabs .nav-count { background: rgba(255,255,255,.12); }
.admin-tabs a.is-active .nav-count { background: #fb5002; }
.list-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.list-row:last-of-type { border-bottom: 0; }
.list-row small { display: block; opacity: .7; }
.list-row .lr-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.list-row .lr-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.list-row .lr-end { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .list-row { grid-template-columns: 1fr; } .list-row .lr-end { justify-content: flex-start; } }
.todo-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 var(--gap); }
.todo-link { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.todo-link:hover { border-color: #fb5002; transform: translateY(-2px); }
.todo-link b { font-size: 28px; line-height: 1; min-width: 36px; color: #fb5002; }
.todo-link.is-zero { opacity: .55; }
.todo-link.is-zero b { color: inherit; }
.fm-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 10px 0; }
.fm-stage { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 13px; }
.fm-stage.is-unused { opacity: .5; }
.found-major { margin-bottom: 12px; }
.fb-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.fb-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-msg { white-space: pre-wrap; margin: 8px 0; }
.fb-meta { font-size: 12px; opacity: .7; word-break: break-all; }
.fb-dupes { margin: 8px 0 0 14px; padding-left: 12px; border-left: 2px solid rgba(251,80,2,.5); }
.fb-dupes .fb-msg { font-size: 14px; }
.fb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fb-acts select { max-width: 220px; }
.coupon-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.coupon-form .cf-wide { grid-column: 1 / -1; }
.cp-status-active { background: rgba(61,220,151,.14); color: var(--green, #3ddc97); }
.cp-status-paused { background: rgba(245,193,74,.14); color: var(--gold, #f5c14a); }
.cp-status-expired, .cp-status-used_up { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

/* Standard bwired credit strip (same markup and layout as North Ink and Oxcrete; PickCS orange) */
.bwcredit{background:#08090c;border-top:1px solid rgba(251,80,2,.25);text-align:center;padding:.6rem 1rem;font-size:.82rem;letter-spacing:.02em;line-height:1}
.bwcredit a{display:inline-flex;align-items:center;gap:.55rem;color:#fb5002;text-decoration:none;transition:color .2s}
.bwcredit img{display:block;width:90px;height:auto;transition:transform .2s,filter .2s}
.bwcredit a:hover,.bwcredit a:focus-visible{color:#ff7a3d}
.bwcredit a:focus-visible{outline:2px solid #fb5002;outline-offset:4px;border-radius:4px}
.bwcredit a:hover img,.bwcredit a:focus-visible img{transform:translateY(-1px);filter:brightness(1.15) drop-shadow(0 0 8px rgba(251,80,2,.55))}

/* Prize ladder accordion (17 Nov 2026): one column, Overall on top, expandable stages */
.ladder-steps {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding-bottom: 0 !important;
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.lad-step,
.lad-step.lvl-1,
.lad-step.lvl-2,
.lad-step.lvl-3,
.ladder.is-compact .lad-step {
  transform: none !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  gap: 0;
  padding: 0;
  overflow: visible;
}
.lad-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border-radius: var(--radius, 16px);
  background: linear-gradient(180deg, rgba(245, 193, 74, .2), rgba(245, 193, 74, .05));
  border: 1px solid rgba(245, 193, 74, .6);
  box-shadow: 0 0 40px rgba(245, 193, 74, .18);
}
.lad-hero .lad-top {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  grid-template-areas: "name dates state";
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.lad-hero .lad-name { grid-area: name; min-width: 0; }
.lad-hero .lad-dates { grid-area: dates; min-width: 0; }
.lad-hero .lad-state { grid-area: state; justify-self: end; white-space: nowrap; }
.lad-toggle {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto auto;
  grid-template-areas: "name dates state thumbs chevron";
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  color: inherit;
}
.lad-toggle .lad-name { grid-area: name; min-width: 0; }
.lad-toggle .lad-dates { grid-area: dates; min-width: 0; }
.lad-toggle .lad-state { grid-area: state; }
.lad-toggle .lad-thumbs { grid-area: thumbs; }
.lad-toggle .lad-chevron { grid-area: chevron; }
.lad-toggle:focus-visible { box-shadow: var(--focus, 0 0 0 3px rgba(251, 80, 2, .38)); border-radius: 16px; }
.lad-toggle .lad-dates { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; }
.lad-toggle .lad-state { justify-self: end; }
.lad-thumbs { display: inline-flex; align-items: center; gap: 6px; }
.lad-thumbs img { width: 44px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.lad-token-thumb { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; color: #fff; }
.lad-toggle .lad-chevron { width: 18px; height: 18px; color: var(--orange, #fb5002); transition: transform .3s ease; justify-self: end; }
.lad-step.is-open .lad-toggle .lad-chevron { transform: rotate(180deg); }
.lad-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .35s ease, opacity .28s ease;
}
.lad-step.is-open .lad-panel { grid-template-rows: 1fr; opacity: 1; }
.lad-panel-inner { overflow: hidden; }
.lad-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.lad-hero .lad-prizes { padding: 0; }
.lad-prize { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-sm, 12px); min-width: 0; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06); }
.lad-prize-name { display: block; font-size: 14px; line-height: 1.35; font-weight: 800; overflow-wrap: break-word; word-break: normal; hyphens: none; }
.lad-skin, .lad-skin-lg { display: block; width: 100%; max-width: 280px; height: auto; max-height: 160px; object-fit: contain; margin: 4px auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.lad-skin.is-tba, .lad-thumbs img.is-tba { filter: drop-shadow(0 6px 14px rgba(251, 80, 2, .25)); }
.lad-here {
  position: static;
  z-index: 2;
  margin: 8px 10px 0;
  width: max-content;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .lad-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name chevron"
      "dates dates"
      "state state";
    padding: 12px 14px;
  }
  .lad-toggle .lad-dates { white-space: normal; }
  .lad-toggle .lad-state { justify-self: start; }
  .lad-toggle .lad-thumbs { display: none; }
  .lad-hero .lad-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "dates"
      "state";
  }
  .lad-hero .lad-state { justify-self: start; }
  .lad-prizes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lad-panel, .lad-toggle .lad-chevron { transition: none; }
}
.ladder.is-compact { padding: 16px; }
.ladder.is-compact .lad-hero { padding: 14px; margin-bottom: 10px; }
.ladder.is-compact .lad-toggle { padding: 10px 12px; }
.ladder.is-compact .lad-prizes { padding: 0 12px 12px; gap: 8px; }
.ladder.is-compact .lad-skin-lg { max-height: 110px; }

/* 17 Nov 2026: admin hamburger scrolls in the viewport; frequent links in a compact grid.
   Follow-up: opaque panel, pinned header, consistent grid chips, proper scroll lock. */
.header { top: 0; z-index: 75; overflow: visible; }
html { --nav-top: 72px; }
body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
html:has(body.nav-open) { overflow: hidden; }
body.nav-open .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 80;
  background: #08061c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.nav-open .fb-widget,
body.nav-open .mobile-bar { visibility: hidden; pointer-events: none; }
.nav-admin-core { display: contents; }

@media (max-width: 1279px) {
  .nav {
    max-height: calc(100dvh - var(--nav-top) - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    -webkit-mask-image: none;
    mask-image: none;
    background: #08061c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.nav-open .nav {
    position: fixed;
    top: var(--nav-top);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    z-index: 80;
  }
  .nav-admin-core { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-admin-core a {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(190, 150, 255, .22);
    box-shadow: none;
  }
  /* Touch: do not leave a sticky hover outline on a grid chip. */
  .nav a:hover {
    color: inherit;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .nav-admin-core a:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(190, 150, 255, .22);
    box-shadow: none;
  }
  .nav a.is-active,
  .nav a.is-active:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 140, 40, .18), rgba(139, 61, 255, .16));
    border-color: rgba(255, 160, 60, .55);
    box-shadow: 0 0 18px rgba(255, 120, 30, .28), inset 0 0 12px rgba(255, 160, 80, .08);
  }
}
@media (max-width: 1279px) and (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: #fff;
    background: rgba(160, 90, 255, .12);
    border-color: rgba(190, 140, 255, .4);
    box-shadow: 0 0 16px rgba(160, 90, 255, .28);
  }
  .nav-admin-core a:hover {
    background: rgba(160, 90, 255, .12);
    border-color: rgba(190, 140, 255, .4);
    box-shadow: 0 0 16px rgba(160, 90, 255, .28);
  }
  .nav a.is-active:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 140, 40, .18), rgba(139, 61, 255, .16));
    border-color: rgba(255, 160, 60, .55);
    box-shadow: 0 0 18px rgba(255, 120, 30, .28), inset 0 0 12px rgba(255, 160, 80, .08);
  }
}
@media (min-width: 1280px) and (max-width: 1460px) {
  body.is-admin .nav {
    max-height: calc(100dvh - var(--nav-top) - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    -webkit-mask-image: none;
    mask-image: none;
    background: #08061c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-admin.nav-open .nav {
    position: fixed;
    top: var(--nav-top);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    z-index: 80;
  }
  body.is-admin .nav-admin-core { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  body.is-admin .nav-admin-core a {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(190, 150, 255, .22);
    box-shadow: none;
  }
}
@media (max-width: 1024px) {
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 6px;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs a { flex: 0 0 auto; }
}

/* 17 Nov: Play sidebar. How it works no longer sticks over Premium,
   Redeem and Invite. Cards stay in document flow, opaque and spaced. */
.pick-side .checklist,
.pick-side .tokens-panel {
  position: static;
  overflow: hidden;
  background: #110d28;
  background-image: none;
}
.pick-side .tokens-panel { margin-top: 14px; }

/* 17 Nov: Desktop hero skin stack. Smaller AWP, even spacing, keep-out for
   the Feedback button. Mobile (max-width 860px) is unchanged. */
@media (min-width: 861px) {
  .v6-stage { overflow: hidden; }
  .v6-stage .v4-stack { inset: 5% 10% 16% 4%; }
}

/* 17 Nov: Prize ladder fits a narrow sidebar. Title, date and status stack.
   Pills stay on one line. Prize names wrap at word boundaries only. */
.ladder { container-type: inline-size; container-name: ladder; }
.lad-prize-name {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
@container ladder (max-width: 36rem) {
  .lad-hero .lad-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "dates"
      "state";
    margin-bottom: 10px;
  }
  .lad-hero .lad-state { justify-self: start; }
  .lad-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name chevron"
      "dates dates"
      "state state";
  }
  .lad-dates { white-space: normal; }
  .lad-state { white-space: nowrap; max-width: 100%; }
  .lad-toggle .lad-state { justify-self: start; }
  .lad-toggle .lad-thumbs { display: none; }
  .lad-here {
    position: static;
    margin: 8px 10px 0;
    width: max-content;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
  }
  .lad-prizes { min-width: 0; }
  .lad-prize { min-width: 0; }
  .lad-prize-name { font-size: 12.5px; line-height: 1.35; }
}
@container ladder (max-width: 20rem) {
  .lad-hero { padding: 12px; }
  .lad-toggle { padding: 10px 12px; }
  .lad-prizes { grid-template-columns: 1fr; padding: 0 10px 10px; gap: 6px; }
  .lad-skin-lg { max-height: 72px; }
}

/* Desktop header fit 1024-1920 (17 Nov 2026): tighten the bar, keep gutter, one clean active style. */
.header { max-width: 100%; box-sizing: border-box; }
.header .wrap.header-inner {
  width: min(var(--container, 1120px), calc(100% - 2 * var(--gutter, 32px)));
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.header .logo { flex: 0 0 auto; min-width: 0; }
.header .nav { min-width: 0; }
.header .header-actions { flex: 0 1 auto; min-width: 0; gap: 8px; }
.header .user-chip { min-width: 0; max-width: 132px; flex: 0 1 auto; }

/* Active: brand orange text and a single subtle underline bar. No pill, no glow. */
.header .nav a,
.header .nav a:hover,
.header .nav a.is-active,
.header .nav a.is-active:hover,
body.is-admin .nav a,
body.is-admin .nav a:hover,
body.is-admin .nav a.is-active,
body.is-admin .nav a.is-active:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  border-radius: 0;
}
.header .nav a:hover,
body.is-admin .nav a:hover { color: #fff; }
.header .nav a.is-active,
.header .nav a.is-active:hover,
body.is-admin .nav a.is-active,
body.is-admin .nav a.is-active:hover {
  color: var(--orange);
  background: transparent;
  position: relative;
}
.header .nav a.is-active::after,
body.is-admin .nav a.is-active::after {
  content: "";
  display: block;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: none;
}
.header .nav a.is-active .ico,
.header .nav a.is-active .nav-ico { color: var(--orange); filter: none; }

/* Crown + Premium stays visible once there is room for the word. */
@media (min-width: 561px) {
  body.has-ls:not(.is-admin) .header .prem-chip .tk-word,
  body.is-admin .header .prem-chip .tk-word,
  .header .prem-chip .tk-word { display: inline; }
}

/* Desktop header is 88px; the menu must start below it so the first item is not hidden. */
@media (min-width: 1025px) {
  html { --nav-top: var(--header-h, 88px); }
}

/* Log out lives in the menu whenever the hamburger is on the bar (to 1279 px since 21 Nov). */
@media (max-width: 1279px) {
  .header .hdr-logout { display: none; }
  .header .nav-logout { display: block; }
}

/* Phone and tablet menu: same orange underline under the item, not a full-width bar. */
@media (max-width: 1024px) {
  .header .nav a,
  body.is-admin .nav a {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }
  .header .nav a.is-active::after,
  body.is-admin .nav a.is-active::after {
    display: block;
    left: 16px;
    right: 16px;
    bottom: 8px;
  }
}

/* 1025 to 1279: menu for everyone so logo and the user chip stay inside the gutter (was 1439 until 21 Nov). */
@media (min-width: 1025px) and (max-width: 1279px) {
  .header .nav-toggle,
  body:not(.is-admin) .header .nav-toggle,
  body.is-admin .header .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 6px;
  }
  .header-actions { order: 2; margin-left: auto; }
  .header .logo { order: 1; }
  .header .nav,
  body.is-admin .nav {
    display: none;
    position: fixed;
    top: var(--nav-top, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #08061c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(180, 140, 255, 0.4);
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 80;
  }
  body.nav-open .header .nav,
  body.is-admin.nav-open .header .nav { display: flex; }
  .header .nav a,
  body.is-admin .nav a {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    padding: 12px 16px;
    font-size: 15px;
  }
  .header .nav a.is-active::after,
  body.is-admin .nav a.is-active::after {
    display: block;
    left: 16px;
    right: 16px;
    bottom: 8px;
  }
  .nav-sep {
    width: auto;
    height: 1px;
    margin: 4px 8px;
    background: linear-gradient(90deg, transparent, rgba(190,150,255,.45), transparent);
  }
  body.has-ls:not(.is-admin) .header .nav a.nav-user,
  body.has-ls:not(.is-admin) .header .nav-logout button {
    width: auto;
    height: auto;
    min-height: var(--hdr-ctl);
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .header .nav a.nav-user .nav-lbl,
  body.has-ls:not(.is-admin) .header .nav a.nav-user .nav-lbl {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
  .header .nav-logout,
  body.has-ls:not(.is-admin) .header .nav-logout { display: block; }
  .header .nav-logout button,
  body.has-ls:not(.is-admin) .header .nav-logout button {
    width: auto;
    height: auto;
    padding: 12px 16px;
    justify-content: flex-start;
    border-radius: 0;
  }
  .header .nav-logout .nl-lbl,
  body.has-ls:not(.is-admin) .header .nav-logout .nl-lbl {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
  .header .nav-logout .ico,
  body.has-ls:not(.is-admin) .header .nav-logout .ico { display: block; }
  .header .nav-logout { display: block; }
  .header .hdr-logout { display: none; }
  .ls-desk { display: none; }
  .ls-mob { display: inline-flex; }
  .header .wrap.header-inner { gap: 10px; }
    body.has-ls:not(.is-admin) .header .nav a.nav-home { display: flex; }
body.is-admin .nav-admin-core { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  body.is-admin .nav-admin-core a {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(190, 150, 255, .22);
    box-shadow: none;
    border-radius: 12px;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) and (hover: hover) and (pointer: fine) {
  .header .nav a:hover,
  body.is-admin .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border-color: transparent;
    box-shadow: none;
  }
  .header .nav a.is-active:hover,
  body.is-admin .nav a.is-active:hover {
    color: var(--orange);
    background: transparent;
  }
}

/* Admin keeps the menu at every desktop width so the long admin list never overruns the bar. */
@media (min-width: 1280px) {
  body.is-admin .header .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  body.is-admin .header-actions { order: 2; margin-left: auto; }
  body.is-admin .header .logo { order: 1; }
  body.is-admin .nav {
    display: none;
    position: fixed;
    top: var(--nav-top, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    background: #08061c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 80;
  }
  body.is-admin.nav-open .nav { display: flex; }
  body.is-admin .nav a { justify-content: flex-start; width: auto; max-width: 100%; align-self: flex-start; padding: 12px 16px; font-size: 15px; }
  body.is-admin .nav a.is-active::after { display: block; left: 16px; right: 16px; bottom: 8px; }
  body.is-admin .nav-admin-core { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  body.is-admin .nav-admin-core a {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(190, 150, 255, .22);
    box-shadow: none;
    border-radius: 12px;
  }
  body.is-admin .header .hdr-logout { display: none; }
  body.is-admin .header .nav-logout { display: block; }
  body.is-admin .header .wrap.header-inner { gap: 10px; }
}

/* 1280 and up (was 1440 until 21 Nov; the wrap is 1120 px at both), signed out and signed in: inline nav fits the 1120 wrap. */
@media (min-width: 1280px) {
  body:not(.is-admin) .header .nav-toggle { display: none; }
  body:not(.is-admin) .header .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
    max-height: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body:not(.is-admin) .header .wrap.header-inner { gap: 10px; }
  body:not(.is-admin) .header .nav a {
    padding: 8px 9px;
    font-size: 13.5px;
    min-height: var(--hdr-ctl);
  }
  body:not(.is-admin) .header .nav a.nav-home { display: none; }
  body:not(.is-admin) .header .nav a:not(.nav-user) .ico,
  body:not(.is-admin) .header .nav a:not(.nav-user) .nav-ico { display: none; }
  body:not(.is-admin) .header .nav a.nav-user {
    padding: 0;
    width: var(--hdr-ctl);
    height: var(--hdr-ctl);
    justify-content: center;
  }
  body:not(.is-admin) .header .nav a.nav-user .nav-lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  body:not(.is-admin) .header .nav a.nav-user .ico { display: block; width: 18px; height: 18px; }
  body:not(.is-admin) .header .hdr-logout { display: none; }
  body:not(.is-admin) .header .nav-logout { display: inline-flex; align-items: center; }
  body:not(.is-admin) .header .nav-logout button {
    box-sizing: border-box;
    height: var(--hdr-ctl);
    width: var(--hdr-ctl);
    min-height: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
  }
  body:not(.is-admin) .header .nav-logout .ico { display: block; width: 18px; height: 18px; }
  body:not(.is-admin) .header .nav-logout .nl-lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  body.has-ls:not(.is-admin) .header .prem-chip .tk-word { display: inline; }
  body:not(.is-admin) .header .nav a.is-active::after {
    left: 8px;
    right: 8px;
    bottom: 6px;
  }
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  body:not(.is-admin) .header .nav a:hover { color: #fff; background: transparent; box-shadow: none; }
  body:not(.is-admin) .header .nav a.is-active:hover { color: var(--orange); }
}


/* Header menus (17 Nov 2026): short top bar, Help and account dropdowns, grouped Admin. */
.dd { position: relative; }
.dd-btn { cursor: pointer; }
.dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 8px;
  z-index: 90;
  background: #08061c;
  border: 1px solid rgba(190, 150, 255, .28);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.nav-dd .dd-panel { left: 0; right: auto; }
.dd.is-open > .dd-panel { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.dd-panel a,
.dd-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e6e0ff;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dd-panel a:hover,
.dd-panel button:hover,
.dd-panel a:focus-visible,
.dd-panel button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  outline: none;
}
.dd-panel a.is-active { color: var(--orange); background: transparent; }
.dd-panel .nav-sub {
  margin: 8px 8px 2px;
  padding: 0;
  color: #9b93c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dd-panel .nav-count { margin-left: 8px; }
.admin-dd-panel { min-width: 240px; }
.nav-group-label {
  margin: 10px 4px 4px;
  color: #9b93c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-sub {
  margin: 8px 4px 2px;
  color: #9b93c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-admin-group a,
.nav-account-group a,
.nav-admin-group button,
.nav-account-group button {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Hamburger: groups are open, Help is a heading, account and Admin live in the menu. */
@media (max-width: 1279px) {
  .nav .dd-btn { display: none; }
  .nav .dd-panel,
  .nav .dd.is-open > .dd-panel {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav .dd-panel a,
  .nav .nav-account-group a,
  .nav .nav-admin-group a,
  .nav .nav-logout button {
    width: auto;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }
  .header-actions .admin-dd { display: none; }
  .header-actions .user-dd .dd-panel { display: none !important; }
  .header-actions .user-dd .dd-btn { pointer-events: none; }
}

/* 1280 and up (was 1440): short inline nav with icons, Help / account / Admin as dropdowns. Admin no longer needs a hamburger. */
@media (min-width: 1280px) {
  .nav-account-group,
  .nav-admin-group { display: none; }
  .nav .nav-group-label { display: none; }
  .nav .dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    min-height: var(--hdr-ctl);
    border: 0;
    background: transparent;
    color: #d8d1f7;
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
  }
  .nav .dd-btn.is-active { color: var(--orange); position: relative; }
  .nav .dd-btn.is-active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 2px;
    border-radius: 1px;
    background: var(--orange);
  }
  body:not(.is-admin) .header .nav a:not(.nav-user) .ico,
  body:not(.is-admin) .header .nav a:not(.nav-user) .nav-ico,
  body:not(.is-admin) .header .nav .dd-btn .ico { display: block; width: 16px; height: 16px; }
  body.is-admin .header .nav-toggle { display: none; }
  body.is-admin .header-actions { order: 0; margin-left: auto; }
  body.is-admin .header .logo { order: 0; }
  body.is-admin .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    overflow: visible;
    max-height: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.is-admin .nav a {
    width: auto;
    justify-content: center;
    padding: 8px 9px;
    font-size: 13.5px;
    min-height: var(--hdr-ctl);
  }
  body.is-admin .nav a .ico { width: 16px; height: 16px; }
  body.is-admin .header .wrap.header-inner { gap: 10px; }
  .header-actions .admin-dd { display: block; }
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .nav .dd-btn:hover { color: #fff; }
}

/* Admin prizes pages and To do list (17 Nov 2026) */
.prize-index { display: flex; flex-direction: column; gap: 4px; }
.prize-index-row, .prize-todo-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; color: #fff; text-decoration: none;
  border: 1px solid rgba(190,150,255,.18);
}
.prize-index-row:hover, .prize-todo-row:hover { background: rgba(255,255,255,.04); border-color: rgba(190,150,255,.4); }
.prize-todo-row span:last-child { margin-left: auto; color: #cfc8ef; font-weight: 650; font-size: 13px; }
.admin-back { margin: 0 0 6px; }
.admin-back a { color: #cfc8ef; font-weight: 650; }

/* 21 Nov 2026: active page ring, mobile menu groups, Play coming soon layout. */

/* Active page: an orange ring around the item (all widths). No underline. */
.header .nav a.is-active::after,
body.is-admin .nav a.is-active::after,
.header .nav .dd-btn.is-active::after { content: none; display: none; }
.header .nav a.is-active,
.header .nav a.is-active:hover,
body.is-admin .nav a.is-active,
body.is-admin .nav a.is-active:hover,
.header .nav .dd-btn.is-active,
.header .nav .dd-btn.is-active:hover {
  color: var(--orange);
  background: rgba(251, 80, 2, .10);
  border-color: transparent;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--orange);
}
.header .nav a.is-active .ico,
.header .nav .dd-btn.is-active .ico { color: var(--orange); }

/* 1280 px and up: Help is a dropdown in the bar; the menu group chevrons are not needed. */
@media (min-width: 1280px) {
  .nav .nav-chev { display: none; }
  .nav .nav-help-group { display: block; }
}

/* Up to 1279 px (menu): main items with icons, then Account, Help and Admin as groups that start closed. */
@media (max-width: 1279px) {
  .nav .nav-group {
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(190, 150, 255, .18);
  }
  .nav .nav-group + .nav-group { border-top-color: rgba(190, 150, 255, .12); }
  .nav .dd > .dd-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e6e0ff;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
  }
  .nav .dd > .dd-btn .ico { display: none; }
  .nav .dd > .dd-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
  .nav .dd > .dd-btn.is-active { box-shadow: none; background: transparent; color: var(--orange); }
  .nav .nav-chev {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s ease;
  }
  .nav .dd.is-open > .dd-btn .nav-chev { transform: translateY(2px) rotate(-135deg); }
  .nav .dd > .dd-panel { display: none; }
  .nav .dd.is-open > .dd-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 0 10px 12px;
  }
  .nav .dd-panel .nav-sub { margin: 10px 16px 2px; }
  .nav .nav-group-label { display: none; }
}
@media (max-width: 1279px) and (prefers-reduced-motion: reduce) {
  .nav .nav-chev { transition: none; }
}

/* Play, coming soon: the button sits with its card, and the card has room below it. */
#coming-soon.soon-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 4px;
  margin-bottom: 18px;
  padding: 18px 22px;
  text-align: left;
}
#coming-soon h2 { grid-column: 1; margin: 0; }
#coming-soon p { grid-column: 1; margin: 0; max-width: none; }
#coming-soon .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
@media (max-width: 640px) {
  #coming-soon.soon-panel { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; text-align: center; }
  #coming-soon .btn { grid-column: 1; grid-row: auto; justify-self: center; margin-top: 10px; }
}

/* Play sidebar: cards keep their own height and the ladder takes a full row, so no empty cells. */
.pick-layout { align-items: start; }
@media (max-width: 1100px) {
  .pick-side { align-items: start; row-gap: 14px; }
  .pick-side > .ladder { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .header .nav .nav-help .ico { display: block; width: 16px; height: 16px; }
}
