:root {
  --bg: #0d1512; --panel: #15211c; --panel2: #1b2a24; --line: #26382f; --text: #e8f0ec; --muted: #8fa69a;
  --turf: #2fbf71; --turf-dim: #1f7a4a; --gold: #f2c14e; --red: #ef5b5b; --blue: #5aa9e6; --radius: 12px;
  --line2: #1d2c25; --hover: #18261f; --topbar: #0a110e; --sel: #17301f; --faint: #4f6559; --on-accent: #06140d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, sans-serif; }
a { color: var(--turf); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 9px 14px; background: var(--turf); color: var(--on-accent); font-weight: 700; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
button.small { padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 18px; } h3 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--topbar); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.who { color: var(--muted); font-size: 14px; }
main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.muted { color: var(--muted); } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero { text-align: center; padding: 40px 10px 20px; }
.hero h1 { font-size: 36px; } .hero p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; }
.signin { max-width: 380px; margin: 0 auto; }
.league-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--panel2); color: var(--text); }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.pill.live { background: #3a1414; color: #ffb4b4; border-color: #5a2020; }
.code { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: .15em; color: var(--gold); }
.tabs { display: flex; gap: 6px; margin: 14px 0; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a.on { color: var(--text); border-color: var(--turf); }
.league-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.clock { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sel), var(--panel)); border: 1px solid var(--turf-dim); margin-bottom: 14px; }
.clock.mine { background: linear-gradient(90deg, rgba(242,193,78,.22), var(--panel)); border-color: var(--gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(242,193,78,.15); } }
.clock .time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 80px; }
.clock .time.low { color: var(--red); }
.draft-cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
@media (max-width: 700px) { .draft-cols { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line2); }
tr:hover td { background: var(--hover); }
.players-scroll { max-height: 520px; overflow: auto; }
.pos { display: inline-block; min-width: 34px; text-align: center; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 2px 4px; }
.pos.QB { background: #5a2a6e; } .pos.RB { background: #1f6b52; } .pos.WR { background: #23548a; } .pos.TE { background: #8a5a23; } .pos.K { background: #555; } .pos.DEF { background: #6e2a2a; } .pos.FLEX, .pos.BN { background: #333f39; }
.inj { color: var(--red); font-size: 11px; font-weight: 700; margin-left: 4px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.filters button { padding: 5px 10px; font-size: 13px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.filters button.on { background: var(--turf); color: var(--on-accent); }
.slot { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.slot .empty { color: var(--faint); font-style: italic; }
.board { overflow: auto; margin-top: 16px; }
.board table { font-size: 12px; min-width: 700px; }
.board td { vertical-align: top; border: 1px solid var(--line2); height: 42px; min-width: 96px; }
.board td.just { outline: 2px solid var(--gold); }
.board .bp { font-weight: 600; } .board .bm { color: var(--muted); font-size: 11px; }
.bp-QB { border-left: 3px solid #a855d6 !important; } .bp-RB { border-left: 3px solid #2fbf71 !important; } .bp-WR { border-left: 3px solid #5aa9e6 !important; } .bp-TE { border-left: 3px solid #e09b3d !important; } .bp-K { border-left: 3px solid #999 !important; } .bp-DEF { border-left: 3px solid #e05555 !important; }
/* Chat */
.chat { display: flex; flex-direction: column; height: 640px; padding: 0; overflow: hidden; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { background: var(--panel2); border-radius: 10px; padding: 7px 10px; position: relative; }
.msg .a { font-size: 12px; font-weight: 700; color: var(--turf); } .msg.sys .a { color: var(--gold); }
.msg .t { font-size: 11px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.msg .b { word-wrap: break-word; }
.chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
/* Blur moderation: flag on the play */
.msg.flagged { cursor: pointer; overflow: hidden; min-height: 64px; }
.msg.flagged .b { filter: blur(7px); user-select: none; transition: filter .4s; }
.msg.flagged .cover { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(90deg, rgba(40,32,6,.97), rgba(28,24,8,.9)); }
.msg.flagged .flag { font-size: 30px; display: inline-block; animation: throw .9s cubic-bezier(.2,.9,.3,1.3) both, wave 1.2s 0.9s ease-in-out infinite; transform-origin: 20% 90%; }
@keyframes throw { 0% { transform: translate(140px, -60px) rotate(220deg) scale(.4); opacity: 0; } 70% { opacity: 1; } 100% { transform: none; } }
@keyframes wave { 50% { transform: rotate(-12deg); } }
.msg.flagged .ref { font-size: 12px; line-height: 1.3; }
.msg.flagged .ref strong { color: var(--gold); display: block; font-size: 13px; letter-spacing: .04em; }
.msg.flagged.revealed .b { filter: none; user-select: auto; } .msg.flagged.revealed .cover { display: none; }
.msg.flagged.revealed { outline: 1px dashed #6b5a1c; }
.msg .why { display: none; font-size: 11px; color: var(--gold); margin-top: 4px; } .msg.revealed .why { display: block; }
/* Locker room */
.locker-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); background: radial-gradient(circle at 10% 20%, #1f4a33, #121c18 70%); border: 1px solid var(--line); margin-bottom: 16px; }
.jersey { width: 74px; height: 74px; border-radius: 16px; background: var(--turf); color: var(--on-accent); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.stats { display: flex; gap: 22px; margin-top: 6px; } .stats div { font-size: 12px; color: var(--muted); } .stats b { display: block; font-size: 20px; color: var(--text); }
.trophies { display: flex; gap: 12px; flex-wrap: wrap; }
.trophy { width: 110px; text-align: center; padding: 12px 6px; border: 1px dashed var(--line); border-radius: 10px; color: var(--faint); font-size: 12px; }
.trophy .ic { font-size: 30px; filter: grayscale(1) opacity(.35); }
.teams-list a { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2a1a1a; color: #ffd0d0; border: 1px solid #5a2a2a; padding: 10px 16px; border-radius: 10px; z-index: 20; max-width: 90vw; }
.toast.ok { background: #13301f; color: #c8f5d9; border-color: var(--turf-dim); }
/* Phone layout */
.league-layout > *, .draft-cols > * { min-width: 0; }
@media (max-width: 960px) { .league-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .draft-cols { grid-template-columns: minmax(0, 1fr); }
  .tag { display: none; } .topbar { padding: 10px 16px; gap: 10px; }
  .clock { flex-wrap: wrap; } .clock > div { min-width: 0; }
  #search { width: 100% !important; }
  .locker-hero { flex-direction: column; align-items: flex-start; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 14px; }
}

/* Matchups */
.game { margin-bottom: 12px; padding: 0; }
.game summary { list-style: none; cursor: pointer; } .game summary::-webkit-details-marker { display: none; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 18px; gap: 10px; }
.vs .side:last-child { text-align: right; }
.vs .tn { font-weight: 700; } .vs .sc { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs .side.win .sc { color: var(--turf); } .vs .v { color: var(--muted); font-size: 13px; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 18px 14px; border-top: 1px solid var(--line); }
.bx { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.bx .bn { flex: 1; min-width: 0; } .bx b { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .boxes { grid-template-columns: 1fr; } .vs .sc { font-size: 22px; } }

/* Trades */
.trade-cols, .offer-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 4px; border-bottom: 1px solid var(--line2); color: var(--text); font-size: 14px; cursor: pointer; }
.tp input { width: auto; } .tp .tpn { flex: 1; min-width: 0; }
.tp:has(input:checked) { background: var(--sel); }
.offer { padding: 10px 0; border-bottom: 1px solid var(--line); } .offer h3 { font-size: 11px; margin: 6px 0 4px; }
.offer-sides { font-size: 14px; line-height: 1.9; }
.hist { padding-top: 8px; }
@media (max-width: 700px) { .trade-cols, .offer-sides { grid-template-columns: 1fr; } }

.face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin: 0 6px 0 2px; background: var(--panel2); }

.news { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.news:hover .nt { color: var(--turf); } .news .nt { font-weight: 700; margin: 2px 0; } .news .ns { color: var(--muted); font-size: 14px; }
.news.ours { border-left: 3px solid var(--gold); padding-left: 10px; }

/* Sortable tables, shading and badges */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover, th.sorted { color: var(--text); }
td.num { font-variant-numeric: tabular-nums; border-radius: 4px; }
.teamf { width: auto; padding: 5px 8px; font-size: 13px; }
.legend { font-size: 12px; margin: -2px 0 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; }
.sw.cool { background: hsla(210,75%,55%,.32); } .sw.warm { background: hsla(25,75%,55%,.32); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.badge.hot { background: rgba(240,120,40,.18); color: #ffae7a; border: 1px solid rgba(240,120,40,.4); }
.badge.bust { background: rgba(120,140,160,.15); color: #b9c6d3; border: 1px solid rgba(120,140,160,.35); }
@media (max-width: 700px) { .hide-sm { display: none; } .badge .bt { display: none; } }

/* Consensus ADP and expert notes */
.cadp { color: #ff6b6b; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cadp.none { color: var(--faint); }
.enote { font-size: 11.5px; color: var(--gold); margin-top: 2px; font-style: italic; }
code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* League switcher, account menu, pop-ups */
.lswitch { margin-left: auto; min-width: 0; }
.menu-wrap { position: relative; }
.switch-btn, .acct-btn { display: flex; align-items: center; gap: 8px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; padding: 7px 12px; max-width: 100%; }
.switch-btn:hover, .acct-btn:hover, .switch-btn[aria-expanded=true], .acct-btn[aria-expanded=true] { border-color: var(--turf-dim); }
.switch-btn .sw-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.caret { color: var(--muted); font-size: 11px; }
.acct-btn { padding: 5px 10px 5px 5px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--turf); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; max-width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 30; }
.league-menu { min-width: 340px; max-height: 70vh; overflow: auto; }
.menu-title { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; text-transform: uppercase; letter-spacing: .05em; }
.acct-menu .menu-title { text-transform: none; letter-spacing: 0; font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-item { display: block; padding: 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.menu-item:hover, .pick-league:hover { background: var(--panel2); }
.menu-item.danger { color: #ff9b9b; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.pick-league { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.pick-league.current { background: var(--sel); }
.lg-badge { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--turf-dim), #23548a); display: grid; place-items: center; font-weight: 800; flex: none; }
.lg-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lg-text b, .lg-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-text .muted { font-size: 12px; }
.pick-league .pill { flex: none; }
.check { color: var(--turf); font-weight: 800; }
.last-tag { font-size: 11px; color: var(--gold); margin-left: 8px; font-weight: 600; }
body.modal-open { overflow: hidden; }
.modal-back { position: fixed; inset: 0; background: rgba(3,8,6,.7); display: grid; place-items: center; z-index: 40; padding: 16px; animation: fade .15s ease-out; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 85vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: rise .18s ease-out; }
.modal h2 { font-size: 20px; padding-right: 30px; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 6; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; padding: 4px 10px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; }
.pick-list .pick-league { border: 1px solid var(--line); background: var(--panel2); padding: 12px; }
.pick-list .pick-league.last { border-color: var(--turf-dim); }
.pick-more { display: block; text-align: center; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.seg { display: flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 6px; }
.seg button { flex: 1; background: transparent; color: var(--muted); padding: 8px; font-weight: 600; }
.seg button.on { background: var(--turf); color: var(--on-accent); }
.small-print { font-size: 12px; margin: 12px 0 0; text-align: center; }
@media (max-width: 700px) {
  .brand { font-size: 0; } .brand .ball { font-size: 22px; }
  .acct-name { display: none; } .acct-btn { padding: 4px; } .acct-btn .caret { display: none; }
  .switch-btn { padding: 7px 10px; } .switch-btn .sw-label { max-width: 52vw; }
  .lswitch { flex: 1; display: flex; justify-content: flex-end; }
  .lswitch .menu-wrap { min-width: 0; }
  /* Menus and pop-ups slide up from the bottom on phones */
  .menu { position: fixed; left: 8px !important; right: 8px !important; top: auto; bottom: 8px; max-width: none; min-width: 0; max-height: 75vh; overflow: auto; border-radius: 16px; padding: 8px; animation: rise .18s ease-out; }
  .menu-item, .pick-league { padding: 13px 12px; }
  body.menu-open .topbar { z-index: 26; }
  body.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(3,8,6,.6); z-index: 25; }
  .modal-back { place-items: end center; padding: 8px; }
  .modal { max-height: 88vh; border-radius: 18px; padding: 20px 16px; }
}
.pin-nudge { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; border-color: #5a4a1a; background: #221d0f; padding: 12px 16px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alt-signup { width: 100%; }
.menu-sub { font-size: 12px; color: var(--muted); padding: 0 10px 6px; overflow: hidden; text-overflow: ellipsis; }

/* Free agents and waivers */
.pill.wv { background: #2d2a12; color: #f3d98b; border-color: #5a4f1c; }
.fa-status { border-left: 4px solid var(--turf); }
.fa-status.lock { border-left-color: var(--gold); }

/* Announcement banner */
.banner:empty { display: none; }
.banner { max-width: 1280px; margin: 12px auto 0; padding: 0 16px; display: grid; gap: 8px; }
.ann { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c4a6a; background: #10223a; font-size: 14px; }
.ann.promo { border-color: #6a5420; background: #2a2210; } .ann.alert { border-color: #6a2a2a; background: #2e1414; }
.ann-ic { font-size: 18px; line-height: 1.2; } .ann-text { flex: 1; min-width: 0; } .ann-text span { color: var(--muted); }
.ann-x { background: transparent; color: var(--muted); padding: 0 6px; font-size: 20px; line-height: 1; }

/* Feedback and report */
.ta { width: 100%; font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.fb-kinds button { font-size: 13px; padding: 7px 4px; }
.msg .report { background: transparent; color: var(--muted); padding: 0 4px; font-size: 12px; margin-left: 6px; opacity: .45; font-weight: 400; }
.msg:hover .report, .msg .report:focus { opacity: 1; }
.msg.flagged:not(.revealed) .report { display: none; }

/* Admin panel */
.adm-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { margin: 0; }
.adm-tabs { overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.adm-tabs a { position: relative; }
.adm-tabs .cnt { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.adm-tabs .cnt[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
a.tile:hover { border-color: var(--turf-dim); }
.tile b { font-size: 26px; font-weight: 800; } .tile span { font-size: 13px; font-weight: 600; } .tile i { font-style: normal; font-size: 12px; color: var(--muted); }
.todo { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; border-color: #6a5420; background: #241e0e; }
.health { display: grid; gap: 4px; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hrow:last-child { border-bottom: 0; }
.htext { flex: 1; min-width: 0; } .hfix { font-size: 12px; margin-top: 2px; } .hwhen { font-size: 12px; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot.ok { background: var(--turf); } .dot.warn { background: var(--gold); } .dot.bad { background: var(--red); }
.adm-filters { margin-bottom: 12px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.click { cursor: pointer; } .adm-table tr.click:hover td { background: var(--panel2); }
.sm { font-size: 12px; } .code-sm { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--gold); }
.rpill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.rpill.admin { color: var(--gold); border-color: #6a5420; } .rpill.support { color: var(--blue); border-color: #2c4a6a; } .rpill.expert { color: var(--turf); border-color: var(--turf-dim); }
.rpill.bad { color: #ffb4b4; border-color: #5a2020; background: #3a1414; } .rpill.warn { color: var(--gold); border-color: #6a5420; }
.warnbox { border-color: #6a5420; background: #241e0e; margin-top: 12px; font-size: 14px; }
.roles { display: grid; gap: 6px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.role-opt input { width: auto; margin-top: 3px; } .role-opt span span { display: block; }
.role-opt:has(input:checked) { border-color: var(--turf-dim); background: var(--sel); }
button.danger-btn { background: #8a2b2b; color: #fff; }
.secret { font-family: ui-monospace, monospace; font-size: 28px; letter-spacing: .12em; text-align: center; padding: 14px; background: var(--panel2); border: 1px dashed var(--gold); border-radius: 10px; color: var(--gold); margin: 10px 0; user-select: all; }
.mini-msg { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .mini-msg:last-child { border-bottom: 0; }
.mini-seg { display: inline-flex; margin-bottom: 14px; }
.mini-seg a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.mini-seg a.on { background: var(--turf); color: var(--on-accent); }
.mod-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.modcard, .fbcard { margin-bottom: 12px; }
.modbody, .fbbody { margin: 8px 0; padding: 10px 12px; background: var(--panel2); border-radius: 8px; white-space: pre-wrap; word-wrap: break-word; }
.fbcard.done { opacity: .7; } .fbcard.new { border-color: #6a5420; }
.fbnote { margin-top: 10px; font-size: 13px; }
.ua { margin-top: -2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: var(--panel2); }
.kind.red { color: #ffb4b4; background: #3a1414; } .kind.blue { color: var(--blue); background: #10223a; } .kind.muted { color: var(--muted); }
.small-link { font-size: 13px; margin-left: auto; }
.ann-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ann-row:last-child { border-bottom: 0; } .ann-row.off { opacity: .55; }
.lv button { font-size: 13px; padding: 7px 4px; }
@media (max-width: 760px) {
  .mod-grid { grid-template-columns: 1fr; }
  .adm-table th:nth-child(n+4), .adm-table td:nth-child(n+4) { display: none; }
  #adm .adm-table td:first-child { width: auto; }
}

/* Penalties, team, notices */
.mod-opts { margin-top: 8px; display: grid; gap: 4px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk input { width: auto; }
.pcard { margin-bottom: 10px; }
.rpill.superadmin { color: #1a1206; background: var(--gold); border-color: var(--gold); }
.notice + .notice { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.notice.warning h2 { color: #ffb4b4; }
.notice p { line-height: 1.5; }
/* Family-friendly leagues */
.ff-badge { font-size: 13px; vertical-align: 2px; }
.ff-badge.big { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #13304a; color: #b9dcff; border: 1px solid #24527a; margin-left: 6px; white-space: nowrap; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--text); font-size: 14px; cursor: pointer; }
label.check input { width: auto; margin-top: 3px; flex: none; }
label.check .muted { font-size: 12.5px; font-weight: 400; }
.msg.held { opacity: .8; border: 1px dashed var(--line); background: transparent; }
.msg .held-note { font-size: 12.5px; color: var(--muted); }
/* Locker room photos */
.ph-title { margin: 14px 0 8px; font-size: 15px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ph-grid.poster { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ph { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; }
.ph-grid.poster .ph { aspect-ratio: 3 / 4; border: 3px solid #e8e1cf; box-shadow: 0 6px 14px rgba(0,0,0,.35); transform: rotate(-1deg); }
.ph-grid.poster .ph:nth-child(even) { transform: rotate(1.2deg); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; }
.ph-hidden { display: grid; place-items: center; height: 100%; font-size: 30px; opacity: .6; }
.ph-status { position: absolute; top: 0; left: 0; right: 0; padding: 5px 8px; font-size: 11.5px; background: rgba(13,21,18,.88); color: var(--gold); }
.ph.pending img, .ph.held img { opacity: .45; }
.ph.blurred img { filter: blur(18px); }
.ph.blurred.revealed img { filter: none; }
.ph-cover { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 26px; gap: 2px; }
.ph-cover span { font-size: 12px; color: var(--gold); font-weight: 700; }
.ph.revealed .ph-cover { display: none; }
.ph-acts { position: absolute; top: 4px; right: 4px; }
.ph-x { background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.ph:hover .ph-x, .ph-x:focus, .ph-x.armed { opacity: 1; }
.ph-x.armed { background: var(--red); }
.ph-x:disabled { opacity: .5; }
@media (hover: none) { .ph-x { opacity: .85; } }
.ph-add { aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 4px; background: transparent; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.ph-grid.poster .ph-add { aspect-ratio: 3 / 4; }
.ph-add span { font-size: 26px; color: var(--turf); }
.ph-add:hover { border-color: var(--turf); color: var(--text); }
.ph-prev img { max-width: 100%; max-height: 220px; border-radius: 8px; margin-top: 10px; display: block; }
.ph-big { max-width: 100%; max-height: 75vh; border-radius: 8px; display: block; margin: 0 auto; }
/* Admin: photo review */
.adm-photos { display: grid; gap: 12px; }
.adm-photo { display: flex; gap: 14px; align-items: flex-start; }
.adm-ph-img { width: 150px; flex: none; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--panel2); }
.adm-ph-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.adm-ph-body { flex: 1; min-width: 0; }
button.danger { color: var(--red); border-color: #5a2020; }
@media (max-width: 640px) { .adm-photo { flex-direction: column; } .adm-ph-img { width: 100%; aspect-ratio: 4 / 3; } }
/* Locker room artwork: portrait rooms on phones, landscape stadiums on computers and tablets */
.locker-hero.has-room { position: relative; overflow: hidden; min-height: 380px; align-items: flex-end; isolation: isolate; }
.locker-hero.has-room > .jersey, .locker-hero.has-room > .hero-info { position: relative; z-index: 3; }
.room-bg { position: absolute; inset: 0; z-index: 0; background: var(--stadium) center 40% / cover no-repeat, #121c18; }
.room-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(6,12,10,.9) 88%); }
.f-filter-night .room-bg { filter: saturate(.75) brightness(.78) hue-rotate(-12deg) sepia(.15); }
.f-filter-night .room-bg::before { content: ''; position: absolute; inset: 0; background: rgba(20,50,120,.28); mix-blend-mode: multiply; }
.f-filter-gold .room-bg { filter: sepia(.4) saturate(1.35) brightness(1.04); }
.f-filter-classic .room-bg { filter: grayscale(1) contrast(1.15) brightness(.95); }
.locker-hero.has-room .jersey { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.locker-hero.has-room h1, .locker-hero.has-room .stats b { text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.locker-hero.has-room .muted { color: #c4d3cb; }
.room-btns { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; gap: 6px; }
.room-btns > * { background: rgba(0,0,0,.78); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); color: var(--text); }
.mkt-link { border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; color: var(--gold) !important; border-color: #6b5a1c !important; }
.mkt-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; border-radius: 10px;
  background: linear-gradient(90deg, #000, #1a1406); border: 1px solid #6b5a1c; color: var(--text); }
.mkt-banner b { font-family: Bungee, Inter, sans-serif; color: var(--gold); letter-spacing: .04em; } .mkt-banner span { font-size: 13px; color: var(--muted); }
/* Stadium lights upgrade */
.room-lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.room-lights i { position: absolute; top: -30%; width: 34%; height: 170%; background: linear-gradient(to bottom, rgba(255,248,215,.5), rgba(255,248,215,0) 75%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); transform-origin: 50% 0; animation: sweep 5.5s ease-in-out infinite alternate; filter: blur(3px); }
.room-lights i:first-child { left: 8%; } .room-lights i:last-child { right: 8%; animation-delay: -2.7s; }
@keyframes sweep { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
/* Team banner upgrade */
.pennant { position: absolute; top: 0; left: 22px; z-index: 2; width: 92px; padding: 14px 8px 34px; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.15;
  color: #fff; background: linear-gradient(160deg, var(--turf), var(--turf-dim)); clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); box-shadow: 0 6px 14px rgba(0,0,0,.4);
  text-shadow: 0 1px 3px rgba(0,0,0,.5); animation: pennant 4s ease-in-out infinite; transform-origin: top center; }
@keyframes pennant { 50% { transform: rotate(2deg) skewX(-2deg); } }
/* Trophy shelf */
.shelf { position: absolute; z-index: 2; top: 58px; right: 18px; min-width: 200px; max-width: 46%; }
.shelf-items { display: flex; justify-content: center; align-items: flex-end; gap: 6px; padding: 0 12px; min-height: 70px; }
.shelf .tro { margin: 0; position: relative; filter: drop-shadow(0 6px 6px rgba(0,0,0,.55)); }
.shelf .tro img { height: 96px; display: block; }
.shelf .tro b { position: absolute; right: -6px; bottom: -2px; background: var(--gold); color: #2a1d05; font-size: 11px; border-radius: 99px; padding: 1px 6px; }
.shelf-empty { color: rgba(255,255,255,.55); font-size: 12px; font-style: italic; padding-bottom: 6px; }
.plank { height: 12px; border-radius: 3px; background: linear-gradient(#8a5a2b, #5b3818); box-shadow: 0 6px 10px rgba(0,0,0,.5); }
.shelf.glass { padding: 10px 6px 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 20px rgba(255,255,255,.08), 0 0 30px rgba(242,193,78,.18); backdrop-filter: blur(2px); }
.shelf.glass .plank { background: linear-gradient(#cfd6da, #7d878c); }
.shelf.glass::before { content: ''; position: absolute; left: 10%; right: 10%; top: -40px; height: 60px; background: radial-gradient(ellipse at 50% 0, rgba(255,240,190,.45), transparent 70%); pointer-events: none; }
@media (max-width: 700px) {
  .locker-hero.has-room { min-height: 72vh; justify-content: flex-end; align-items: flex-start; padding: 18px; }
  .room-bg { background: var(--room) center / cover no-repeat, #121c18; }
  .shelf { left: 14px; right: 14px; top: 56px; max-width: none; min-width: 0; }
  .pennant { width: 76px; font-size: 11px; left: 14px; }
  .locker-hero.has-room:has(.pennant) .shelf { left: 100px; }
}
/* Trophy case */
.trophy img { height: 84px; display: block; margin: 0 auto 6px; filter: grayscale(1) opacity(.3); }
.trophy.won { border-style: solid; border-color: #6b5a1c; color: var(--text); background: rgba(242,193,78,.06); }
.trophy.won img { filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.trophy.won i { color: var(--gold); }
/* Confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: .9; } }
/* Collection and shop */
.modal.shop { max-width: 720px; max-height: 90vh; overflow-y: auto; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-right: 30px; }
.coins-pill { background: rgba(242,193,78,.14); color: var(--gold); border: 1px solid #6b5a1c; border-radius: 99px; padding: 3px 10px; font-weight: 700; white-space: nowrap; }
.coins-pill.sm { font-size: 12px; padding: 1px 7px; margin-left: 4px; }
.shop-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.rarity { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
.rarity.elite { background: linear-gradient(90deg, #3b0f4a, #0f2f4a); color: #f6a8ff; box-shadow: 0 0 8px rgba(214,92,255,.45); }
.rarity.common { background: #2a3530; color: #b8c7bf; } .rarity.rare { background: #16304a; color: #8cc4f5; } .rarity.legendary { background: #3d2f08; color: var(--gold); }
.crate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; background: linear-gradient(90deg, #2a2208, #1b2a24); border: 1px solid #6b5a1c; margin: 8px 0 6px; }
.room-opt { position: relative; }
.room-opt { overflow: hidden; } .room-opt.locked img { filter: grayscale(1) brightness(.35) blur(7px); transform: scale(1.15); }
.room-opt.locked em { position: absolute; top: 34%; left: 0; right: 0; font-style: normal; font-size: 22px; }
.room-opt:disabled { opacity: 1; cursor: default; }
.room-opt.locked { cursor: zoom-in; }
.stadium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stadium-opt { background: var(--panel2); border: 2px solid transparent; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.stadium-opt img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.stadium-opt:not(.owned) img { filter: grayscale(.7) brightness(.4) blur(8px); transform: scale(1.15); }
.stadium-opt { position: relative; } .stadium-opt:not(.owned)::after { content: '🔒'; position: absolute; top: 22%; left: 0; right: 0; text-align: center; font-size: 22px; pointer-events: none; }
.stadium-opt.on { border-color: var(--turf); }
.so-text { padding: 6px 8px 2px; font-size: 13px; flex: 1; }
.stadium-opt button { margin: 6px 8px 8px; }
.upg-list { display: flex; flex-direction: column; gap: 8px; }
.upg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); }
.upg-ic { font-size: 26px; }
table.earn td { padding: 6px 4px; border-bottom: 1px solid var(--line); } table.earn .num { text-align: right; color: var(--gold); font-weight: 700; white-space: nowrap; }
.invite-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; }
/* Scratch-off reveal (public/vendor/liquid-reveal.js, scratch style) */
.modal.scratch-modal { max-width: 540px; overflow-x: hidden; }
.scratch-wrap { text-align: center; position: relative; }
.scratch-card { margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); background: #222; }
.scratch-card.lr-root { touch-action: none; cursor: grab; }
.scratch-card.peek.lr-root { cursor: crosshair; }
.stadium-opt img[data-peek] { cursor: zoom-in; }
.scratch-card.portrait { width: min(260px, 62vw, 40vh); aspect-ratio: 2 / 3; }
.scratch-card.landscape { width: min(460px, 84vw, 60vh); aspect-ratio: 3 / 2; }
.scratch-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scratch-card.revealed { animation: pop .6s ease; }
.rare .scratch-card.revealed { box-shadow: 0 0 0 3px #5aa9e6, 0 0 40px rgba(90,169,230,.55); }
.legendary .scratch-card.revealed { box-shadow: 0 0 0 3px var(--gold), 0 0 50px rgba(242,193,78,.7); }
@keyframes pop { 40% { transform: scale(1.05); } }
.scratch-after { margin-top: 12px; } .prize-name { font-size: 17px; margin-bottom: 4px; }
.won-trophies { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 6px 0 12px; }
.won-trophies figure { margin: 0; width: 140px; text-align: center; font-size: 13px; }
.won-trophies img { height: 90px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.room-eras { margin-bottom: 12px; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.room-opt { padding: 0; background: var(--panel2); border: 2px solid transparent; border-radius: 10px; overflow: hidden; color: var(--text); font-weight: 600; font-size: 12px; }
.room-opt img { width: 100%; aspect-ratio: 180 / 268; object-fit: cover; display: block; }
.room-opt span { display: block; padding: 5px 2px; }
.room-opt.on { border-color: var(--turf); }
.ph-hidden span { display: block; font-size: 12px; font-weight: 700; color: var(--gold); text-align: center; }
.ph.adults { cursor: pointer; }

/* ---------- Casual players and computer players ---------- */
.bot-tag { font-size: 12px; opacity: .85; }
.casual-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6fe3d6;
  border: 1px solid #1f5f58; background: #0f2f2c; border-radius: 99px; padding: 0 6px; vertical-align: 1px; }
.casual-card h2 { margin-top: 0; }
.casual-card { border-color: #1f5f58; background: linear-gradient(160deg, #10302d 0%, var(--panel) 55%); }
.cq-wait { display: flex; gap: 12px; align-items: flex-start; }
.cq-wait b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cq-spin { flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; border: 3px solid #1f5f58; border-top-color: #6fe3d6; animation: cqspin 1s linear infinite; }
@keyframes cqspin { to { transform: rotate(360deg); } }
.cq-track { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.cq-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fe3d6, var(--gold)); transition: width 1s linear; }
/* Tiny "the queue is working" animations: a spinning football in the heading and a pulsing dot (Levi, 2026-11-24). */
.cq-ball { display: inline-block; font-size: .8em; animation: cqspin 1.6s linear infinite; }
.cq-live { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); }
.cq-dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe3d6; animation: cqpulse 1.2s ease-in-out infinite; }
@keyframes cqpulse { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.cq-joined { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cq-joined span { font-size: 13px; padding: 3px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.cq-joined span.new { border-color: #6fe3d6; animation: cqin .6s ease-out; }
@keyframes cqin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cq-ball, .cq-dot, .cq-joined span.new { animation: none; } }
.cq-jump { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cq-jump-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.cq-jump-row:first-of-type { border-top: 0; }
.cq-jump-row button { flex: none; }
.summon { margin-top: 14px; padding: 12px; border: 1px dashed #1f5f58; border-radius: 10px; background: #0f2a27; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.summon .check { margin: 0; flex-basis: 100%; }
.autostart { padding: 10px 12px; border-radius: 10px; background: #2a2410; border: 1px solid #6a5420; margin-bottom: 12px; }
.autostart b { color: var(--gold); font-variant-numeric: tabular-nums; }
.counter-note { padding: 8px 10px; border-radius: 8px; background: #10223a; color: var(--blue); font-size: 13px; margin-bottom: 10px; }
.replace-card { margin-bottom: 16px; border-color: #1f5f58; }
.replace-card h2 { margin-top: 0; }
.ptype { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.ptype.league { background: var(--gold); } .ptype.casual { background: #6fe3d6; }
.lb-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
tr.me-row td { background: rgba(242, 193, 78, .07); }

/* ---------- Marketplace (public/market.js): black, arcade-style ---------- */
body.mkt-page { background: #000; }
body.mkt-page main { max-width: none; padding: 0; }
.mkt { position: relative; min-height: calc(100vh - 58px); background: #000; color: #fff; overflow: hidden; font-family: Rajdhani, Inter, system-ui, sans-serif; }
.mkt-bgimg { position: absolute; inset: 0; background: var(--mkt-bg) center top / cover no-repeat; opacity: .8; }
.mkt-bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55) 45%, #000 100%); }
.mkt-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.mkt-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.mkt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mkt-back { font-family: Bungee, sans-serif; color: #9aa4ad; font-size: 14px; letter-spacing: .05em; }
.mkt-back:hover { color: #fff; }
.mkt-wallet { font-family: Bungee, sans-serif; font-size: 20px; padding: 6px 16px; border-radius: 99px; border: 2px solid var(--gold); color: var(--gold);
  background: rgba(242,193,78,.08); box-shadow: 0 0 18px rgba(242,193,78,.35), inset 0 0 12px rgba(242,193,78,.15); transition: transform .2s; }
.mkt-wallet.spent { transform: scale(1.12); color: #ff8a65; border-color: #ff8a65; }
.mkt-coin { display: inline-block; margin-right: 6px; animation: coinspin 3s ease-in-out infinite; }
@keyframes coinspin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.mkt-title { font-family: Bungee, Impact, sans-serif; font-size: clamp(34px, 7vw, 68px); text-align: center; margin: 22px 0 4px; letter-spacing: .04em; line-height: 1;
  background: linear-gradient(180deg, #fff7d1 10%, #f2c14e 55%, #b07a14 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(242,193,78,.45)) drop-shadow(0 4px 0 #3a2a05); }
.mkt-sub { text-align: center; color: #9aa4ad; font-size: 17px; margin: 0 0 26px; font-weight: 600; }
.mkt-small { color: #9aa4ad; font-size: 15px; font-weight: 600; } .mkt-small.center { text-align: center; }
.mkt-h3 { font-family: Bungee, sans-serif; color: #c9d1d7; font-size: 16px; letter-spacing: .06em; margin: 26px 0 10px; text-transform: none; }
/* Category tiles */
.mkt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .mkt-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) { .mkt-tile { aspect-ratio: 1 / 1; } .mkt-tile-label { left: 10px; right: 10px; bottom: 10px; } .mkt-tile-label small { font-size: 12px; display: block; line-height: 1.2; }
  .mkt-tile-label b { font-size: 15px; } .mkt-sub { font-size: 15px; } .mkt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .mkt-grid.wide, .mkt-grid.upgs { grid-template-columns: 1fr; } }
.mkt-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #fff; background: #0b0d10;
  border: 2px solid color-mix(in srgb, var(--glow) 55%, transparent); box-shadow: 0 0 0 1px #000, 0 0 22px color-mix(in srgb, var(--glow) 25%, transparent);
  transform: translateY(0); transition: transform .18s, box-shadow .18s, border-color .18s; animation: tilein .5s var(--d) both cubic-bezier(.2,.9,.3,1.2); }
@keyframes tilein { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.mkt-tile:hover { transform: translateY(-5px) scale(1.02); border-color: var(--glow); box-shadow: 0 0 0 1px #000, 0 0 40px color-mix(in srgb, var(--glow) 60%, transparent), 0 16px 30px rgba(0,0,0,.6); }
.mkt-tile-img { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .4s; display: grid; place-items: center; }
.mkt-tile:hover .mkt-tile-img { transform: scale(1.07); }
.mkt-tile-img i { font-style: normal; font-size: 64px; filter: grayscale(.6) opacity(.5); }
.mkt-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.92)); }
.mkt-tile-label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.mkt-tile-label b { display: block; font-family: Bungee, sans-serif; font-size: clamp(15px, 2.4vw, 22px); letter-spacing: .03em; text-shadow: 0 0 12px var(--glow), 0 2px 0 #000; }
.mkt-tile-label small { font-size: 14px; color: #c9d1d7; font-weight: 600; }
.mkt-tag { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: Bungee, sans-serif; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: #ef5b5b; color: #fff;
  box-shadow: 0 0 14px rgba(239,91,91,.6); animation: blink 1.6s steps(2) infinite; }
.mkt-tag.soon { background: #2a2f35; box-shadow: none; animation: none; color: #c9d1d7; }
@keyframes blink { 50% { opacity: .55; } }
.mkt-tile.soon { cursor: default; filter: saturate(.4); } .mkt-tile.soon:hover { transform: none; }
.mkt-sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.mkt-beams { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.mkt-beams i { position: absolute; top: -30%; width: 30%; height: 160%; background: linear-gradient(to bottom, rgba(255,248,215,.55), transparent 70%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; animation: sweep 4.5s ease-in-out infinite alternate; filter: blur(3px); }
.mkt-beams i:first-child { left: 10%; } .mkt-beams i:last-child { right: 10%; animation-delay: -2.2s; }
/* Item cards */
.mkt-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.mkt-grid.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mkt-grid.upgs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mkt-card { --rc: #6b7780; position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #111419, #07080a); border: 2px solid var(--rc); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 30%, transparent); transition: transform .15s, box-shadow .15s; }
.mkt-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px color-mix(in srgb, var(--rc) 55%, transparent); }
.mkt-card.elite { --rc: #d65cff; } .mkt-card.elite::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(214,92,255,.28) 45%, rgba(90,200,255,.28) 55%, transparent 70%); animation: sheen 3s infinite; }
.mkt-rar.elite, .mkt-card.elite > .mkt-rar { background: linear-gradient(90deg, #5a1470, #13466e); color: #fff; box-shadow: 0 0 12px rgba(214,92,255,.6); }
.elite-credit { color: #ffe08a; font-weight: 700; }
.mkt-h3.elite-h { color: #f6a8ff; text-shadow: 0 0 12px rgba(214,92,255,.7); }
.room-opt.elite-room { box-shadow: 0 0 0 2px #d65cff, 0 0 12px rgba(214,92,255,.45); }
.mkt-card.rare { --rc: #5aa9e6; } .mkt-card.legendary { --rc: #f2c14e; } .mkt-card.mkt-upg { --rc: #2fbf71; }
.mkt-card.legendary::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,240,190,.25) 50%, transparent 65%); animation: sheen 4s infinite; }
.mkt-card-img { aspect-ratio: 3 / 2; background: center / cover no-repeat; position: relative; }
.mkt-card.portrait .mkt-card-img { aspect-ratio: 2 / 3; }
.mkt-card:not(.owned) .mkt-card-img { cursor: zoom-in; overflow: hidden; background-color: #0b0d10; }
/* Locked items stay hidden in smoke until you Peek (the whole point of peeking). */
.mkt-card:not(.owned) .mkt-card-img::before { content: ''; position: absolute; inset: -16px; background: var(--img) center / cover no-repeat; filter: blur(12px) grayscale(.7) brightness(.4); }
.mkt-peek { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: Bungee, sans-serif; font-size: 12px; padding: 4px 10px; border-radius: 99px;
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.3); opacity: 0; transition: opacity .15s; }
.mkt-card-img:hover .mkt-peek, .mkt-card:not(.owned) .mkt-peek { opacity: 1; z-index: 1; }
.mkt-rar { font-family: Bungee, sans-serif; font-size: 10px; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; background: #2a2f35; color: #c9d1d7; }
.mkt-card > .mkt-rar { position: absolute; top: 8px; left: 8px; z-index: 3; }
.mkt-rar.rare, .mkt-card.rare > .mkt-rar { background: #123a5c; color: #a9d6ff; } .mkt-rar.legendary, .mkt-card.legendary > .mkt-rar { background: #4a3608; color: #ffe08a; box-shadow: 0 0 10px rgba(242,193,78,.5); }
.mkt-card-text { padding: 10px 12px 4px; flex: 1; font-size: 15px; line-height: 1.2; }
.mkt-card-text b { display: block; font-weight: 700; } .mkt-card-text small { color: #9aa4ad; font-size: 13px; }
.mkt-card .mkt-btn { margin: 8px 10px 10px; }
.mkt-upg-ic { font-size: 44px; text-align: center; padding: 16px 0 4px; filter: drop-shadow(0 0 12px rgba(47,191,113,.5)); }
.mkt-card.just-bought { animation: bought .7s ease; }
@keyframes bought { 30% { transform: scale(1.06); box-shadow: 0 0 50px var(--rc); } }
/* Buttons */
.mkt-btn { font-family: Bungee, sans-serif; font-size: 14px; letter-spacing: .04em; border-radius: 8px; padding: 8px 12px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.mkt-btn.buy { background: linear-gradient(180deg, #ffd95e, #e0a21e); color: #2a1a00; box-shadow: 0 4px 0 #8a5f12, 0 0 16px rgba(242,193,78,.4); }
.mkt-btn.buy:hover:not(:disabled) { filter: brightness(1.1); } .mkt-btn.buy:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #8a5f12; }
.mkt-btn.buy:disabled { background: #2a2f35; color: #6b7780; box-shadow: none; opacity: 1; }
.mkt-btn.ok { background: #123d27; color: #7ee2a8; } .mkt-btn.ok:disabled { opacity: 1; }
.mkt-btn.ghost { background: transparent; color: #e8f0ec; border: 2px solid #3a4148; }
.mkt-btn.big { font-size: 18px; padding: 14px 22px; }
/* Crate */
.mkt-crate { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; max-width: 880px; margin: 0 auto; }
@media (max-width: 700px) { .mkt-crate { grid-template-columns: 1fr; text-align: center; } }
.mkt-crate-art img { width: 100%; max-width: 380px; display: block; margin: 0 auto; border-radius: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.mkt-crate-art.opening img { animation: shake .9s ease both; }
@keyframes shake { 10%, 30%, 50%, 70% { transform: translateX(-8px) rotate(-3deg); } 20%, 40%, 60%, 80% { transform: translateX(8px) rotate(3deg); } 100% { transform: scale(1.25); opacity: 0; filter: brightness(3); } }
.mkt-crate-info h2 { font-family: Bungee, sans-serif; font-size: 30px; color: var(--gold); margin-bottom: 6px; text-shadow: 0 0 16px rgba(242,193,78,.5); }
.mkt-crate-info p { font-size: 17px; color: #c9d1d7; }
.mkt-odds { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; } @media (max-width: 700px) { .mkt-odds { justify-content: center; } }
/* SuperAdmin background control */
.mkt-admin { margin-top: 40px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; color: #9aa4ad; font-size: 14px; }
.mkt-admin label { cursor: pointer; }
/* Confirm pop-up */
.modal.mkt-modal { background: #07080a; border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(242,193,78,.35); }
.mkt-confirm { text-align: center; font-family: Rajdhani, Inter, sans-serif; font-size: 17px; }
.mkt-confirm-title { font-family: Bungee, sans-serif; color: var(--gold); font-size: 20px; letter-spacing: .05em; }
.mkt-confirm-price { font-family: Bungee, sans-serif; font-size: 34px; color: var(--gold); margin: 6px 0; }
.mkt-confirm-row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
/* HAL 9000 Mode: the only tell */
.hal { position: absolute; right: 7px; bottom: 7px; width: 2px; height: 2px; background: #e01; z-index: 5; pointer-events: none; }
.locker-hero { position: relative; }

/* League locker rooms bar: yours first, tap a face to visit */
.mate-bar { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; }
.mate-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 6px; flex: 1; scrollbar-width: thin; }
.mate { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; flex: none; text-decoration: none; color: var(--muted); scroll-snap-align: center; }
.mate-pic { width: 46px; height: 46px; border-radius: 50%; background: #1b2a22 center/cover; border: 2px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.mate-pic::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.mate-pic b { position: relative; color: #fff; font-size: 14px; letter-spacing: .5px; text-shadow: 0 1px 2px #000; }
.mate-name { font-size: 11px; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mate:hover .mate-pic { transform: translateY(-2px); border-color: var(--muted); }
.mate.mine .mate-pic { border-color: var(--gold); }
.mate.on .mate-pic { border-color: var(--turf); box-shadow: 0 0 0 3px rgba(47,191,113,.3); }
.mate.on .mate-name { color: var(--text); font-weight: 600; }
.mate-step { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; }
@media (max-width: 600px) { .mate-step { display: none; } }

/* Admin › Overview › Smoke peek */
.fx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fx-row { display: grid; grid-template-columns: 1fr 160px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fx-row output { color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 6px; }
.fx-row input[type=range] { width: 100%; accent-color: var(--turf); }
.fx-preview { text-align: center; }
.fx-preview .scratch-card.landscape { width: 100%; max-width: 460px; }
@media (max-width: 800px) { .fx-wrap { grid-template-columns: 1fr; } .fx-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Founding Members (src/founders.js): leather tag with brass stitching ---------- */
.founder-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #f6dc9a; vertical-align: 1px; white-space: nowrap;
  background: linear-gradient(180deg, #7a4526, #4e2a15); border-radius: 4px; padding: 1px 5px; outline: 1px dashed rgba(246,220,154,.55); outline-offset: -3px;
  box-shadow: 0 0 0 1px #2a170b; text-shadow: 0 1px 0 #2a170b; }

/* ---------- FF L Pro ---------- */
.pro-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #241a02; vertical-align: 1px;
  background: linear-gradient(135deg, #ffe08a, #f2c14e 45%, #c9922a); border-radius: 4px; padding: 1px 5px; }
.avatar.pro { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f2c14e, 0 0 10px rgba(242,193,78,.6); }
.pro-ring { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0;
  border: 2px solid #f2c14e; box-shadow: 0 0 6px rgba(242,193,78,.8); }
.msg.pro { box-shadow: inset 2px 0 0 #f2c14e; }
.msg.pro .a { color: #f6d27a; }
.msg.sticker { background: transparent; padding-left: 4px; }
.msg.sticker .b img.stk { width: 112px; height: 112px; display: block; margin-top: 2px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.stk-btn { padding: 6px 10px; font-size: 16px; flex: none; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stk-opt { background: var(--panel2); padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.stk-opt img { width: 100%; aspect-ratio: 1; display: block; }
.stk-opt:disabled { opacity: .55; }
.stk-opt:not(:disabled):hover { border-color: #f2c14e; }
.room-opt.pro-room { border-color: rgba(242,193,78,.45); }
.room-opt.pro-room.locked { cursor: default; }
.menu-item.pro-item { color: #f6d27a; }

.pro-page { max-width: 760px; margin: 0 auto; }
.pro-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 28px 22px; border: 1px solid #5c4513;
  background: radial-gradient(120% 90% at 50% 0%, rgba(242,193,78,.28), transparent 60%), linear-gradient(160deg, #1d1606, #0d1512 70%); }
.pro-hero h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -.01em; }
.pro-hero h1 .gold { background: linear-gradient(135deg, #fff1c2, #f2c14e 50%, #c9922a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-hero .price { font-size: 22px; font-weight: 800; margin: 10px 0 2px; } .pro-hero .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pro-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pro-cta button.gold { background: linear-gradient(135deg, #ffe08a, #f2c14e 50%, #c9922a); color: #241a02; padding: 12px 22px; font-size: 16px; }
.pro-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.pro-perk { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pro-perk .ic { font-size: 24px; } .pro-perk b { display: block; margin: 4px 0 2px; }
.pro-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px dashed #5c4513; background: rgba(242,193,78,.06); font-size: 13.5px; }
.pro-note code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; }
.pro-preview { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; }
.pro-preview img { height: 150px; border-radius: 10px; border: 1px solid #5c4513; flex: none; }
.pro-preview.stk img { height: 72px; border: 0; }
/* Pro page: plan toggle, Free vs Pro, snapshots, testimonials, questions (public/pro.js) */
.plan-toggle { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid #5c4513; }
.plan-toggle button { background: transparent; color: var(--muted); border: 0; border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.plan-toggle button.on { background: linear-gradient(135deg, #ffe08a, #f2c14e 50%, #c9922a); color: #241a02; }
.plan-toggle .save { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--turf); color: #04210f; }
.plan-toggle button.on .save { background: #241a02; color: #ffe08a; }
.gold-t { color: var(--gold); }
.pro-h { font-size: 21px; margin: 28px 0 10px; }
.pro-compare { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); font-size: 14px; }
.pc-head, .pc-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; padding: 10px 14px; align-items: center; }
.pc-head { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel2); position: sticky; top: 0; z-index: 1; }
.pc-head .pc-pro { color: var(--gold); }
.pc-group { padding: 12px 14px 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-row { border-top: 1px solid var(--line); }
.pc-row .pc-free { color: var(--muted); }
.pc-row .pc-pro { background: rgba(242,193,78,.07); margin: -10px -14px -10px 0; padding: 10px 14px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; }
.pc-head .pc-pro { background: rgba(242,193,78,.1); margin: -10px -14px -10px 0; padding: 10px 14px; }
.pc-yes { color: var(--turf); font-weight: 900; font-size: 17px; } .pc-pro .pc-yes { color: var(--gold); }
.pc-no { color: var(--muted); opacity: .6; }
.pc-soon { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 7px; border-radius: 99px; border: 1px solid #5c4513; color: var(--gold); background: rgba(242,193,78,.1); }
.pro-snaps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -2px; }
.pro-snap { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; color: var(--text); font: inherit; cursor: pointer; }
.pro-snap:hover { border-color: #5c4513; }
.pro-snap img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 9px; margin-bottom: 6px; background: var(--panel2); }
.pro-snap.soon { cursor: default; }
.soon-art { aspect-ratio: 3 / 4; border-radius: 9px; margin-bottom: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(90% 80% at 50% 20%, rgba(242,193,78,.25), transparent 70%), repeating-linear-gradient(90deg, #13201a 0 38px, #182820 38px 40px); border: 1px dashed #5c4513; }
.soon-art span:first-child { font-size: 40px; } .soon-art b { font-size: 18px; }
.pro-testi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pro-testi figure { position: relative; margin: 0; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pro-testi figure.sample { border-style: dashed; }
.pro-testi .sample-tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; background: var(--red); color: #fff; }
.pro-testi .stars { color: var(--gold); letter-spacing: 2px; }
.pro-testi blockquote { margin: 0; font-size: 15px; line-height: 1.45; }
.pro-testi figcaption { display: flex; flex-direction: column; gap: 1px; margin-top: auto; }
.pro-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 11px 14px; margin-bottom: 8px; }
.pro-faq summary { cursor: pointer; font-weight: 700; }
.pro-faq p { margin: 8px 0 0; }
.pro-cta-end { justify-content: center; margin-top: 22px; padding: 18px; border-radius: 14px; border: 1px solid #5c4513; background: rgba(242,193,78,.06); }
@media (max-width: 560px) {
  .pro-hero { padding: 22px 16px; } .pro-hero h1 { font-size: 30px; }
  .pro-compare { font-size: 13px; }
  .pc-head, .pc-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
  .pc-row .pc-pro, .pc-head .pc-pro { margin: -9px -10px -9px 0; padding: 9px 10px; }
  .pro-snap { flex-basis: 64%; }
  .pro-testi { grid-template-columns: 1fr; }
}
/* Admin › Pro page */
.prx-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prx-prices .money { display: flex; align-items: center; gap: 6px; } .prx-prices .money input { max-width: 140px; font-size: 18px; font-weight: 700; }
.prx-t { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.prx-t.off { opacity: .55; }
@media (max-width: 560px) { .prx-prices { grid-template-columns: 1fr; } .prx-t { grid-template-columns: 1fr; } }

/* Filling a league with casual players */
.fill-modal { min-width: min(380px, 80vw); }
.fill-top { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.fill-top b { flex: 1; }
.fill-top .muted { font-variant-numeric: tabular-nums; }
.fill-list { list-style: none; padding: 0; margin: 12px 0 4px; max-height: 220px; overflow: auto; }
.fill-list li { padding: 5px 0; border-bottom: 1px solid var(--line); animation: fillIn .35s ease; }
.fill-ok { color: var(--turf); font-weight: 700; margin-right: 6px; }
@keyframes fillIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Name box with "Choose my name for me" */
.name-row { display: flex; gap: 8px; align-items: center; }
.name-row input { flex: 1; min-width: 0; }
.name-row .name-dice { flex: none; white-space: nowrap; }
.name-hint { margin-top: 4px; }
@media (max-width: 480px) { .name-row { flex-direction: column; align-items: stretch; } }

/* Admin › Stickers */
.adm-stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.adm-stk { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.adm-stk img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--panel2); border-radius: 8px; }
.adm-stk.off img { opacity: .35; }
.adm-stk .pill.ok { color: var(--turf); } .adm-stk .pill.warn { color: #f6a35c; }
.adm-stk .row.wrap { flex-wrap: wrap; gap: 4px; }
.stk-up label.chk { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); }
.stk-up label.chk input { width: auto; }
.stk-dates { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.stk-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.stk-dates .muted { flex-basis: 100%; }
.adm-stk button.danger { color: #ff9b9b; }

/* ---------- Sticker collecting: book, crates, trades, locker door, taunts ---------- */
.btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.btn-link:hover { border-color: var(--turf); }
.stk-opt.r-rare { box-shadow: inset 0 0 0 2px #4d86bf; }
.stk-opt.r-legendary { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px rgba(242, 193, 78, .45); }
.stk-opt.dim { opacity: .45; }
.stk-opt.on { outline: 3px solid var(--turf); }
.stk-opt.gift { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; }
.stk-opt.gift small { font-size: 11px; }
@keyframes legend-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(242, 193, 78, .7)); } 50% { filter: drop-shadow(0 0 14px rgba(255, 214, 110, 1)); } }
img.stk.legendary, .door-stk.r-legendary, .stk-detail img.r-legendary, .taunt.r-legendary { animation: legend-glow 2.2s ease-in-out infinite; }

.book { max-width: 980px; margin: 0 auto; }
.book-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.crate-btn { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 16px; background: linear-gradient(135deg, #3b2a6b, #7a3fb0); color: #fff; }
.crate-btn .crate-ic { font-size: 28px; }
.crate-btn small { display: block; opacity: .85; font-weight: 400; }
.book-pack { margin: 22px 0 6px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 10px; }
.book-grid .slot { position: relative; aspect-ratio: 1; padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.book-grid .slot img { width: 100%; height: 100%; object-fit: contain; }
.book-grid .slot.empty img { filter: brightness(0) invert(.25); opacity: .45; }
.book-grid .slot.empty { border-style: dashed; }
.book-grid .slot.have.r-rare { border-color: #4d86bf; }
.book-grid .slot.have.r-legendary { border-color: var(--gold); box-shadow: 0 0 14px rgba(242, 193, 78, .35); }
.book-grid .slot .cnt { position: absolute; top: 4px; right: 6px; font-size: 12px; background: var(--turf); color: #04130b; border-radius: 99px; padding: 0 6px; }
.book-grid .slot .price { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.slot .pro-mini { position: absolute; top: 4px; left: 6px; font-size: 9px; font-weight: 800; background: var(--gold); color: #241a02; border-radius: 4px; padding: 0 4px; }
.offers .offer { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.offers .offer:first-of-type { border-top: 0; }
.offer-stk { display: flex; flex-direction: column; align-items: center; width: 74px; }
.offer-stk img { width: 56px; height: 56px; object-fit: contain; }
.offer-stk small { font-size: 11px; color: var(--muted); text-align: center; }
.offer-x { font-size: 20px; }
.offer-act { margin-left: auto; display: flex; gap: 6px; }
.stk-detail { text-align: center; }
.stk-detail img.big { width: min(260px, 70vw); aspect-ratio: 1; object-fit: contain; }
.stk-detail img.silhouette { filter: brightness(0) invert(.3); opacity: .6; }
.stk-detail .col { display: flex; flex-direction: column; }

.locker-door { position: relative; width: 100%; max-width: 300px; aspect-ratio: 5 / 8; margin: 10px auto 0; background: var(--door) center / cover no-repeat, #59614f;
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); overflow: hidden; }
.door-stk { position: absolute; width: calc(var(--w, 15%) * var(--z, 1)); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); cursor: zoom-in; }
.door-stk:hover { z-index: 5; }
.door-empty { position: absolute; inset: 40% 10% auto; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.door-modal .locker-door { max-width: 280px; touch-action: none; }
.locker-door.editing .door-stk { cursor: grab; touch-action: none; }
.locker-door.editing .door-stk.sel { outline: 2px dashed #fff; outline-offset: 2px; z-index: 6; }
.door-pick { justify-content: center; margin-bottom: 6px; }
.door-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.door-tray { max-height: 170px; overflow-y: auto; margin-top: 8px; }

.game .side { position: relative; }
.game .side .taunt { width: 46px; height: 46px; object-fit: contain; display: block; margin: 0 auto 2px; }
.game .side .taunt-btn { padding: 2px 8px; font-size: 11px; margin-bottom: 4px; }
.scratch-card.square { aspect-ratio: 1; width: min(300px, 76vw); margin: 0 auto; }
.scratch-card.stk-card img { object-fit: contain !important; background: radial-gradient(circle, #24322b, #101713); }

.lockers { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.locker-door.wide { aspect-ratio: 8 / 5; max-width: 480px; --w: 11%; }
.door-tools[hidden] { display: none; }
.lockers .locker-door { margin-top: 0; }
.lockers-slot { min-height: 120px; margin-top: 10px; }
.door-modal .locker-door.wide { max-width: 100%; }
.door-arts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.door-art { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; width: 82px; background: var(--panel2); border: 2px solid transparent; border-radius: 10px; }
.door-art img { height: 70px; max-width: 100%; object-fit: contain; border-radius: 4px; }
.door-art small { font-size: 10px; line-height: 1.2; color: var(--muted); text-align: center; }
.door-art.on { border-color: var(--turf); }
.door-art.locked img { filter: grayscale(1) brightness(.5); }
.top-locked { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--panel2); border-radius: 12px; padding: 12px; }
.top-locked img { width: 180px; max-width: 100%; border-radius: 6px; filter: grayscale(.6) brightness(.6); }
.top-locked > div { flex: 1; min-width: 200px; }
.bt-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bt-form .row { flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.bt-out { margin-top: 8px; min-height: 1.4em; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Help, policies & legal (public/legal.js), footer, cookie banner (public/consent.js) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-nav { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; padding-bottom: 4px; scrollbar-width: thin; }
.legal-nav a { flex: none; font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.legal-nav a.on { background: var(--turf); border-color: var(--turf); color: var(--on-accent); font-weight: 600; }
.legal-doc { padding: 22px 24px; line-height: 1.6; }
.legal-doc h1 { margin: 0 0 4px; }
.legal-doc h2 { margin: 26px 0 6px; font-size: 17px; }
.legal-doc ul { padding-left: 20px; margin: 6px 0; } .legal-doc li { margin: 5px 0; }
.legal-doc details { border-bottom: 1px solid var(--line); padding: 11px 0; }
.legal-doc summary { cursor: pointer; font-weight: 600; }
.legal-doc details p { margin: 8px 0 2px; color: var(--muted); }
.legal-draft { margin: 12px 0 4px; padding: 10px 12px; border-radius: 8px; border: 1px dashed #d9a441; background: rgba(217,164,65,.1); font-size: 13.5px; }
mark.todo-ph { background: rgba(217,164,65,.25); color: inherit; border-radius: 4px; padding: 0 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; }
.legal-table th, .legal-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table td:first-child { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-word; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.legal-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); }
.legal-tile:hover { border-color: var(--turf); }
.legal-form select, .legal-form textarea { width: 100%; }
.legal-sent { padding: 14px; border-radius: 8px; background: var(--panel2); margin: 10px 0; }
@media (max-width: 600px) { .legal-doc { padding: 16px; } .legal-table th:last-child, .legal-table td:last-child { display: none; } }

.sitefoot { max-width: 1280px; margin: 0 auto; padding: 18px 16px 28px; border-top: 1px solid var(--line); font-size: 12.5px; text-align: center; }
.sitefoot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 8px; }
.sitefoot a { color: var(--muted); } .sitefoot a:hover { color: var(--text); }
body.has-ad .sitefoot { padding-bottom: 84px; }
body.has-ad.mkt-page main { padding-bottom: 96px; }
body.drafting .sitefoot, body.mkt-page .sitefoot { display: none; }

.bottom-stack { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 40; width: min(760px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.bottom-stack > * { pointer-events: auto; }
.cookie-bar { box-sizing: border-box;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: linear-gradient(var(--panel), var(--panel)), var(--bg); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: 13.5px; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-btns { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-btns { justify-content: flex-end; flex-wrap: wrap; } }
.cookie-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.cookie-card { width: min(460px, 100%); box-sizing: border-box; }

.signup-age { display: flex; gap: 8px; } .signup-age select { flex: 1; }
.terms-bar { box-sizing: border-box;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: linear-gradient(var(--panel), var(--panel)), var(--bg); border: 1px solid var(--turf); box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: 13.5px; }
.terms-bar > div { flex: 1; }
/* Admin › Casual players */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.cp-grid label { display: flex; flex-direction: column; gap: 4px; }
.cp-table-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px; position: sticky; top: 0; background: var(--card, #15211c); }
.cp-table td { padding: 4px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.cp-table input.cp-name { width: 190px; padding: 6px 8px; }
.cp-table select { padding: 5px 6px; }
.cp-table tr.off td { opacity: .5; }
.cp-table td.cp-story { white-space: normal; min-width: 260px; max-width: 380px; line-height: 1.3; }
/* Admin › Casual players › Bot leagues, and Admin › Issues */
.bl-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; }
.bl-mix { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 6px; }
.bl-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--text); }
.bl-pill.live { background: color-mix(in srgb, var(--turf) 35%, transparent); }
.bl-pill.catch { background: color-mix(in srgb, var(--gold) 35%, transparent); }
.bl-pill.done, .bl-pill.off { opacity: .6; }
.iss-filter { display: flex; gap: 6px; }
.iss-filter a { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.iss-filter a.on { background: var(--turf); border-color: var(--turf); color: var(--on-accent); }
.iss { margin-top: 10px; }
.iss.done { opacity: .6; }
.iss-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.iss-res { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.iss-sev { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--line); }
.iss-sev.red { background: #c0392b; color: #fff; }
.iss-sev.gold { background: var(--gold); color: #1a1a1a; }
.iss-details pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 240px; overflow: auto; background: rgba(0,0,0,.2); padding: 8px; border-radius: 6px; }
.iss-note { width: 100%; margin-top: 6px; padding: 6px 8px; }
.cp-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.cp-msg { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp-msg button { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* Header alerts: 🎁 goodies and 💬 messages (app.js paintAlerts). Grey when there's nothing; lit up with a count when there is. */
.alerts { display: flex; gap: 6px; flex: none; }
.al-btn { position: relative; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, box-shadow .2s; }
.al-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.al-btn:hover, .al-btn[aria-expanded=true] { border-color: var(--turf-dim); color: var(--text); }
.al-btn.al-gift.on { color: #f6c84c; border-color: color-mix(in srgb, #f6c84c 60%, transparent); box-shadow: 0 0 0 0 rgba(246,200,76,.55); animation: al-glow 2.4s ease-out infinite; }
.al-btn.al-gift.on svg { animation: al-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.al-btn.al-chat.on { color: var(--turf); border-color: var(--turf-dim); box-shadow: 0 0 10px var(--glow, rgba(47,191,113,.3)); }
.al-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e5383b; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--topbar, #0a110e); font-variant-numeric: tabular-nums; animation: al-pop .3s ease-out; }
@keyframes al-glow { 0% { box-shadow: 0 0 0 0 rgba(246,200,76,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(246,200,76,0); } }
@keyframes al-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg); } 82% { transform: rotate(10deg); } 88% { transform: rotate(-6deg); } 94% { transform: rotate(3deg); } }
@keyframes al-pop { from { transform: scale(.4); } 70% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .al-btn.al-gift.on, .al-btn.al-gift.on svg, .al-badge { animation: none; } }
.al-menu { min-width: 300px; }
.al-row { display: flex; align-items: center; gap: 12px; }
.al-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.al-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-row small { color: var(--muted); font-size: 12px; font-weight: 400; }
.al-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; font-size: 18px; flex: none; }
.al-empty { color: var(--muted); font-size: 13px; padding: 6px 10px 12px; line-height: 1.45; }
.al-more { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; font-size: 13px; }
.chat.al-flash { animation: al-flash 1.6s ease-out; }
@keyframes al-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--turf); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 700px) {
  .alerts { gap: 4px; }
  .al-btn { width: 36px; height: 36px; }
  .switch-btn .sw-label { max-width: 34vw; }
}
.al-menu { background: color-mix(in srgb, var(--panel) 35%, var(--bg, #0b0d10)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- Game modes (Best Ball, Guillotine, Superflex, Keeper) ---------- */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.modes .mode { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); cursor: pointer; color: var(--text); font-size: 13px; }
.modes .mode input { position: absolute; opacity: 0; pointer-events: none; }
.modes .mode .muted { font-size: 12px; line-height: 1.35; }
.modes .mode.on { border-color: var(--turf); box-shadow: 0 0 0 1px var(--turf) inset; background: var(--sel); }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; gap: 12px; } .modes .mode { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .modes .mode .muted { flex-basis: 100%; } }
.modes .mode.is-popular, .modes .mode.is-hot { padding-top: 16px; }
.modes .mode.is-popular { border-color: #6b5420; }
.modes .mode.is-hot { border-color: #7a2e12; background: linear-gradient(160deg, rgba(255, 90, 20, .13), transparent 60%), var(--panel2); }
.modes .mode.on.is-popular, .modes .mode.on.is-hot { border-color: var(--turf); }
.mode-badge { position: absolute; top: -9px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 900; letter-spacing: .12em; line-height: 14px; font-style: italic; white-space: nowrap; transform: skewX(-8deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.mode-badge[hidden] { display: none; }
.mode-badge.popular { color: #2a1d00; background: linear-gradient(90deg, #f7d46a, #ffefb0 45%, #e6b23a); border: 1px solid #b8892a; }
.mode-badge.popular .star { font-style: normal; font-size: 11px; }
.mode-badge.hot { color: #fff; background: linear-gradient(90deg, #d7261e, #ff6a13 60%, #ffa200); border: 1px solid #a3200f; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.mode-badge .flame { width: 16px; height: 16px; margin: -4px 0 -3px -2px; filter: drop-shadow(0 0 3px rgba(255, 235, 150, .9)); animation: hot-flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes hot-flame { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12, 1.18) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .mode-badge .flame { animation: none; } }
.mode-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.mode-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.mode-tag.m-bestball { color: #9fd4ff; border-color: #2c4b66; }
.mode-tag.m-guillotine, .mode-tag.m-chop { color: #ffb4b4; border-color: #5a2020; }
.mode-tag.m-sf { color: #e0b8f0; border-color: #4e2e5c; }
.mode-tag.m-keep { color: var(--gold); border-color: #5c4a1c; }
.pos.SFLEX { background: #4a2e5a; }
.next-season { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--gold); border-radius: 10px; background: var(--panel2); color: var(--text); font-weight: 600; }
.guillo-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.chop-big { font-size: 30px; line-height: 1; }
.gteam { margin-bottom: 8px; padding: 0; }
.gteam summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.gteam summary::-webkit-details-marker { display: none; }
.gteam .gplace { width: 24px; color: var(--muted); font-weight: 700; text-align: center; }
.gteam .gname { flex: 1; font-weight: 700; min-width: 0; }
.gteam .gsc { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.gteam .gsc .muted { font-size: 11px; font-weight: 400; }
.gteam.danger { border-color: #5a2020; background: linear-gradient(90deg, rgba(239, 91, 91, .12), transparent 60%), var(--panel); }
.gteam .boxes.one { grid-template-columns: 1fr; padding-top: 10px; }
.chop-tag { font-size: 11px; font-weight: 800; color: #fff; background: var(--red); border-radius: 99px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.chop-tag.soft { background: transparent; color: #ffb4b4; border: 1px solid #5a2020; }
tr.chopped-row td { opacity: .6; }
.chopped { text-align: center; padding: 30px 18px; }
.keepers { margin-top: 16px; padding: 14px; border: 1px solid #5c4a1c; border-radius: 10px; background: var(--panel2); }
.keepers h3 { color: var(--gold); }
.kp-list { display: grid; gap: 6px; }
.kp { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.kp input { width: auto; }
.kp .kpn { flex: 1; min-width: 0; }
.kp .kpc { font-size: 13px; font-weight: 700; white-space: nowrap; }
.kp.on { border-color: var(--gold); }
/* Phone widths: nothing may push the page wider than the screen. A wider page lets the phone scroll sideways,
   which cut content off on the left and threw pop-ups (scratch reveals, menus) off-center. */
.tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; white-space: nowrap; }
.tabs.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.tabs.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.tabs.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
select, input, textarea, img, video, canvas, iframe { max-width: 100%; }
select { text-overflow: ellipsis; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.row > select { min-width: 0; }
/* Last line of defense: anything still too wide is clipped instead of widening the whole page. */
main, .sitefoot, #banner { overflow-x: clip; }
@media (max-width: 700px) {
  #partner { width: 100% !important; }
  /* Rewards (scratch-offs, free stickers) pop up in the middle of the screen, not as a bottom sheet. */
  .modal-back:has(.scratch-modal, .stk-modal) { place-items: center; padding: 12px; }
}

.clock-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.clock-pick label { margin: 0; color: var(--text); font-weight: 700; font-size: 14px; }
.clock-pick select { width: auto; }

/* ---------- Yellow NFL scores ticker (public/ticker.js) ---------- */
.ticker { --tk-bg: #ffd21f; --tk-ink: #14110a; position: sticky; top: var(--topbar-h, 0px); z-index: 4; display: flex; align-items: stretch;
  height: 32px; background: var(--tk-bg); color: var(--tk-ink); font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden;
  border-bottom: 1px solid #c9a200; box-shadow: 0 2px 6px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.ticker:empty { display: none; }
.ticker.off { height: auto; background: transparent; box-shadow: none; border: 0; justify-content: flex-end; gap: 6px; padding: 4px 12px 0; }
.ticker .tk-label { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 0; background: var(--tk-ink); color: var(--tk-bg);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; position: relative; z-index: 1; }
.ticker .tk-label::after { content: ''; position: absolute; right: -10px; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, var(--tk-bg), transparent); }
.ticker.off .tk-label, .ticker.off .tk-show { height: 26px; border-radius: 13px; font-size: 12px; padding: 0 11px; }
.ticker.off .tk-label::after { display: none; }
.ticker .tk-show { background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent); }
.tk-track { display: flex; align-items: center; white-space: nowrap; width: max-content; animation: tk-scroll 60s linear infinite; will-change: transform; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
.tk-game { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-right: 1px solid rgba(20,17,10,.22); line-height: 32px; }
.tk-game.fav { background: rgba(20,17,10,.1); }
.tk-team { opacity: .78; }
.tk-team.lead, .tk-game:not(.live) .tk-team.fav { opacity: 1; }
.tk-team.lead b { font-weight: 900; }
.tk-team.fav { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tk-sep { opacity: .5; font-weight: 500; }
.tk-st { font-weight: 500; font-size: 12px; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }
.tk-game.live .tk-st { font-weight: 800; opacity: 1; color: #a3120c; }
.tk-star { font-style: normal; color: #b45309; }
.tk-ball { font-style: normal; color: #6b4e00; margin-left: 2px; }
.tk-ball.rz { color: #c4120c; }
.tk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e3261c; animation: tk-pulse 1.4s ease-in-out infinite; }
.tk-label .tk-dot { background: #ff4a3d; }
@keyframes tk-pulse { 50% { opacity: .3; } }
.tk-gap { display: inline-block; width: 28px; }
.tk-empty { padding: 0 14px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .tk-view { overflow-x: auto; scrollbar-width: none; } .tk-track { animation: none; }
  .tk-dot { animation: none; }
}
@media (max-width: 700px) { .ticker { height: 30px; font-size: 12.5px; } .tk-game { line-height: 30px; padding: 0 11px; } }

/* The scores pop-up */
.modal.scores-modal { max-width: 520px; }
.scores-sheet h2 { display: flex; align-items: baseline; gap: 8px; padding-right: 28px; }
.ss-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.ss-tabs button { background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.ss-tabs button.on { background: #ffd21f; color: #14110a; border-color: #ffd21f; }
.ss-tabs small { font-weight: 500; opacity: .75; margin-left: 4px; }
.ss-games { display: grid; gap: 8px; }
.ss-pane[hidden] { display: none; }
.sg { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.sg.fav { border-color: #ffd21f; box-shadow: inset 3px 0 0 #ffd21f; }
.sg.live { border-color: color-mix(in srgb, #e3261c 55%, var(--line)); }
.sg-teams { display: grid; gap: 6px; min-width: 0; }
.sg-team { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.sg-team.lead { color: var(--text); }
.sg-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-name small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 12px; }
.sg-score { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.sg-team.lead .sg-score { font-weight: 900; }
.sg-st { text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.sg.live .sg-st { color: #ff6b5e; flex-direction: row; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.sg-st small { width: 100%; text-align: right; color: var(--muted); font-weight: 500; font-size: 12px; }
.sg .tk-ball { color: #ffd21f; } .sg .tk-ball.rz { color: #ff6b5e; } .sg .tk-star { color: #ffd21f; }
.tm-dot { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.ss-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.tm-chip { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; text-align: left; border-radius: 10px; }
.tm-chip .tm-dot { width: 26px; height: 26px; font-size: 9.5px; }
.tm-chip.on { border-color: #ffd21f; background: color-mix(in srgb, #ffd21f 16%, var(--panel2)); }
.tm-chip.on::after { content: '★'; margin-left: auto; color: #ffd21f; }
.ss-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
/* Notifications and install (public/push.js) */
.push-nudge { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; border-color: var(--turf-dim); background: color-mix(in srgb, var(--turf) 10%, var(--panel)); padding: 12px 16px; }
.push-nudge > span:first-child { flex: 1 1 260px; }
.push-status { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 14px; }
.push-status.ok { border-color: var(--turf-dim); color: var(--turf); }
.push-status.warn { border-color: #5a4a1a; background: #221d0f; color: var(--gold); }
.push-kinds label.check { margin-top: 10px; }
ol.steps { padding-left: 20px; margin: 8px 0; } ol.steps li { margin: 8px 0; }
/* Opened from the home screen: leave room for the phone's status bar and the gesture bar. */
@media (display-mode: standalone) {
  .topbar { padding-top: max(12px, env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
/* Matchups: one game, side by side by lineup spot, dense like a box score (phone first). */
.mu-nav { justify-content: space-between; margin-bottom: 8px; }
.mu-nav h2 { margin: 0; font-size: 17px; } .mu-nav h2 .muted { font-size: 12px; font-weight: 400; }
.mu-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; margin-bottom: 4px; }
.mu-strip::-webkit-scrollbar { display: none; }
.mu-chip { flex: none; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.mu-chip b { font-variant-numeric: tabular-nums; } .mu-chip .muted { font-size: 10px; }
.mu-chip-n { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; }
.mu-chip.mine .mu-chip-n { color: var(--text); }
.mu-chip.on { border-color: var(--turf); box-shadow: inset 0 0 0 1px var(--turf); }
.card.mu { padding: 0; overflow: hidden; }
.mu-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.mu-team { min-width: 0; }
.mu-team.r { text-align: right; }
.mu-top { display: flex; align-items: center; gap: 6px; }
.mu-team.r .mu-top { flex-direction: row-reverse; }
.mu-taunt { width: 40px; height: 40px; object-fit: contain; flex: none; }
.mu-score b { display: block; font-size: 28px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.mu-team.win .mu-score b { color: var(--turf); }
.mu-score span { font-size: 11px; color: var(--muted); }
.mu-score i { font-style: normal; font-size: 9px; } .mu-score .up { color: var(--turf); } .mu-score .dn { color: var(--red); }
.mu-tn { margin-top: 4px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-own { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-team .taunt-btn { padding: 1px 7px; font-size: 10px; margin-top: 4px; }
.mu-w { color: var(--turf); } .mu-l { color: var(--red); }
.mu-wp { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; font-weight: 700; }
.mu-wp .bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; display: flex; }
.mu-wp .bar.l { justify-content: flex-end; } .mu-wp .bar i { display: block; height: 100%; border-radius: 3px; }
.mu-wp .bar.l i { background: var(--turf); } .mu-wp .bar.r i { background: var(--red); }
.mu-wp-lab { font-size: 10px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 1px 8px; text-transform: uppercase; letter-spacing: .4px; }
.mu-rows { display: grid; }
.mu-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 30px 40px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line2); }
.mu-row:last-child { border-bottom: 0; }
.mu-p { min-width: 0; padding: 5px 4px 5px 8px; line-height: 1.25; }
.mu-p.r { order: 5; text-align: right; padding: 5px 8px 5px 4px; }
.mu-p.empty { display: flex; align-items: center; font-size: 12px; } .mu-p.r.empty { justify-content: flex-end; }
.mu-n { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-n .inj { margin-left: 3px; font-size: 10px; }
.mu-g, .mu-s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-s { color: var(--text); opacity: .85; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mu-g .mu-w, .mu-g .mu-l { color: inherit; }
.mu-live { color: var(--gold); font-weight: 700; }
.mu-ball { font-size: 9px; } .mu-ball.rz { filter: drop-shadow(0 0 2px var(--red)); }
.mu-pts { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 4px; font-variant-numeric: tabular-nums; }
.mu-pts.r { order: 4; align-items: flex-start; }
.mu-pts b { font-size: 14px; line-height: 1.1; } .mu-pts span { font-size: 10px; color: var(--muted); }
.mu-pos { order: 3; display: flex; align-items: center; justify-content: center; background: var(--line2); font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .3px; }
.mu-row > .mu-p.l { order: 1; } .mu-row > .mu-pts.l { order: 2; }
.mu-bench > summary { cursor: pointer; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.mu-bench .mu-row { opacity: .8; }
.mu-note { font-size: 12px; margin-top: 10px; }
@media (min-width: 701px) {
  .card.mu { max-width: 860px; }
  .mu-head { padding: 14px 16px 10px; }
  .mu-score b { font-size: 34px; } .mu-tn { font-size: 15px; } .mu-own { font-size: 12px; }
  .mu-row { grid-template-columns: minmax(0, 1fr) 52px 40px 52px minmax(0, 1fr); }
  .mu-n { font-size: 14px; } .mu-g, .mu-s { font-size: 12px; } .mu-pts b { font-size: 16px; } .mu-pts span { font-size: 11px; } .mu-pos { font-size: 11px; }
  .mu-p { padding: 7px 8px 7px 14px; } .mu-p.r { padding: 7px 14px 7px 8px; }
}
@media (max-width: 380px) { .mu-row { grid-template-columns: minmax(0, 1fr) 34px 26px 34px minmax(0, 1fr); } .mu-n { font-size: 12px; } .mu-g, .mu-s { font-size: 10px; } }

.mu-pts b.mu-on { color: var(--gold); }
.mu-score .mu-livetag { display: inline; font-size: 9px; line-height: 1; padding: 1px 5px; border-radius: 4px; background: var(--red); color: #fff; letter-spacing: .4px; text-transform: uppercase; vertical-align: 1px; }

/* ---------- Start screen (public/start-screen.js) ---------- */
.start-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.start-item .start-now { font-size: 12px; font-weight: 700; color: var(--turf); background: var(--sel); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.start-tip { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border-color: var(--turf); background: var(--sel); }
.link-btn { display: block; width: 100%; margin-top: 10px; background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px; }
.link-btn:hover { color: var(--text); }
.ssp-modal { max-width: 560px; }
.ssp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.ssp-tile { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); cursor: pointer; font: inherit; min-height: 56px; }
.ssp-tile:hover:not(:disabled) { background: var(--hover); }
.ssp-tile.on { border-color: var(--turf); box-shadow: 0 0 0 1px var(--turf) inset; background: var(--sel); }
.ssp-tile:disabled { opacity: .45; cursor: not-allowed; }
.ssp-ic { font-size: 22px; line-height: 1; flex: none; }
.ssp-tx { display: flex; flex-direction: column; min-width: 0; }
.ssp-tx b { font-size: 14px; }
.ssp-tx small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.ssp-def { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.ssp-league { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; font-weight: 600; }
.ssp-league[hidden] { display: none; }
.ssp-preview { padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px dashed var(--line); font-size: 14px; margin-bottom: 12px; }
.ssp-preview b { color: var(--turf); }
@media (max-width: 520px) {
  .ssp-grid { grid-template-columns: 1fr; gap: 6px; }
  .ssp-tile { min-height: 48px; padding: 8px 10px; }
}
/* Which league, the preview and Save stay in view at the bottom of the pop-up while the list scrolls. */
.ssp-foot { position: sticky; bottom: -1px; background: var(--panel); padding-top: 10px; margin: 0 -2px; box-shadow: 0 -10px 14px -8px rgba(0,0,0,.45); }
.ssp-foot .ssp-actions { padding-bottom: 4px; }

/* League chat panel (app.js chatPanel): slides in from the right; docks beside the page on wide screens; a full-screen sheet on phones. */
.lhead-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-open-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 8px 14px; font-weight: 700; }
.chat-open-btn.on { border-color: var(--turf); color: var(--text); box-shadow: 0 0 10px var(--glow, rgba(47,191,113,.3)); }
.chat-open-btn .al-badge { position: static; margin-left: 2px; box-shadow: none; }
body.chat-open .chat-open-btn { background: var(--panel2); border-color: var(--turf-dim); }
.chat-panel { --chat-w: 400px; position: fixed; z-index: 18; top: var(--topbar-h, 62px); right: 0; bottom: 0; width: min(var(--chat-w), 100vw); box-sizing: border-box;
  display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0,0,0,.45);
  transform: translateX(105%); visibility: hidden; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s; }
body.chat-open .chat-panel { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.chat-panel .lchat { flex: 1; min-height: 0; display: flex; }
.chat-panel .chat { flex: 1; height: auto; border: 0; border-radius: 0; background: var(--panel); }
.chat-panel .chat-head { align-items: center; gap: 10px; }
.chat-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title .muted { font-weight: 400; font-size: 12px; }
.chat-x { flex: none; font-size: 24px; line-height: 1; padding: 2px 10px; border: 0; color: var(--muted); }
.chat-x:hover { color: var(--text); }
.chat-panel #chat-form input { font-size: 16px; } /* stops phones zooming in when you type */
.chat-panel .chat.al-flash { animation: al-flash-in 1.6s ease-out; }
@keyframes al-flash-in { 0%, 40% { box-shadow: inset 0 0 0 3px var(--turf); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.chat-else { flex: none; background: var(--panel2); border-bottom: 1px solid var(--line); font-size: 13px; }
.chat-else:empty { display: none; }
.chat-else summary { padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.chat-else summary:hover { color: var(--text); }
.chat-else-list { padding: 0 6px 6px; }
.chat-scrim { position: fixed; inset: 0; z-index: 17; background: rgba(3,8,6,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.chat-open .chat-scrim { opacity: 1; pointer-events: auto; }
/* Wide screens: the panel sits beside the page, nothing is covered. */
@media (min-width: 1240px) {
  body.chat-open main, body.chat-open .sitefoot { margin-right: var(--chat-w, 400px); transition: margin-right .26s; }
  body.chat-open main { margin-left: max(0px, calc((100vw - 400px - 1280px) / 2)); }
  body.chat-open .chat-scrim { opacity: 0; pointer-events: none; }
  body.chat-open .adbar { left: calc(50% - 200px); }
}
/* Phones: a full-screen sheet over everything except pop-ups. */
@media (max-width: 700px) {
  .chat-panel { top: 0; width: 100vw; height: 100dvh; border-left: 0; box-shadow: none; }
  .chat-panel .chat-head { padding: 12px 10px 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
  .chat-panel #chat-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  body.chat-open { overflow: hidden; }
  body.chat-open .adbar, body.chat-open .ticker { visibility: hidden; }
  .chat-open-btn span:not(.al-badge) { display: none; }
  .chat-open-btn { padding: 8px 12px; }
  #lhead > .row { flex-wrap: nowrap; align-items: flex-start; }
  #lhead > .row > div:first-child { min-width: 0; }
}
/* New message while the panel is closed: a short peek bubble, bottom right (above the ad bar). */
.chat-peek { position: fixed; z-index: 19; right: 16px; bottom: 20px; display: flex; align-items: flex-start; gap: 2px; max-width: min(340px, calc(100vw - 32px)); }
body.has-ad .chat-peek { bottom: 80px; }
.chat-peek.in { animation: peek-in .3s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes peek-in { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.chat-peek-in { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--panel); color: var(--text);
  border: 1px solid var(--turf-dim); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-weight: 400; min-width: 0; }
.chat-peek-in.mention { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 30px rgba(0,0,0,.5); }
.chat-peek-in img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.peek-ic { font-size: 22px; flex: none; }
.peek-txt { display: flex; flex-direction: column; min-width: 0; }
.peek-txt b { font-size: 13px; color: var(--turf); } .peek-txt em { font-style: normal; color: var(--gold); font-weight: 600; }
.peek-txt small { font-size: 13px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.peek-x { flex: none; margin-left: -12px; margin-top: -8px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); line-height: 1; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .chat-panel, body.chat-open .chat-panel, .chat-peek.in { transition: none; animation: none; } }

/* Account menu groups + the Look & feel page (#/look) */
.menu-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 10px 10px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.menu-email { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-item small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 0; }
.menu-item.warn-item { color: #ffcf6e; font-weight: 700; }
.acct-list { display: grid; gap: 8px; margin-top: 12px; }
.acct-list button { text-align: left; padding: 12px 14px; }
.look-page { max-width: 760px; margin: 0 auto; }
.look-page h1 { margin-bottom: 10px; }
.look-card { margin-top: 14px; }
.look-card h2 { margin: 0 0 10px; font-size: 18px; }
.look-note { margin: -4px 0 0; font-size: 13px; }
.look-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.look-row + .look-row { border-top: 1px solid var(--line); }
.look-txt { flex: 1; min-width: 0; }
.look-txt b { display: block; }
.look-txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.look-row button { flex: none; }
.look-switch { cursor: pointer; margin: 0; }
.look-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; padding: 0; }
.look-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.look-switch input:checked { background: var(--turf); border-color: var(--turf); }
.look-switch input:checked::after { transform: translateX(20px); background: #fff; }
.look-ball { font-size: 0 !important; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); }
.look-ball .ball { font-size: 26px; }
.look-card .tc-dot { flex: none; }
.look-card .theme-grid { margin-top: 12px; }
.look-card { scroll-margin-top: calc((var(--topbar-h, 60px) + var(--ticker-h, 0px) + 56px) / var(--tz, 1)); }
.look-switch, .look-switch .look-txt b { color: var(--text); font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 700; }
.look-switch .look-txt small { font-weight: 400; }

/* ---------- No pinch-zoom, and "Larger text" (Look & feel page) ---------- */
/* manipulation turns off double-tap zoom (and the tap delay that comes with it) without touching scrolling or swipes. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Phones zoom the page in when you tap a text box with text smaller than 16px. Keep every box at 16px on phones. */
@media (max-width: 820px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
/* Larger text scales the page, pop-ups and chat like a browser zoom, so nothing overflows or gets cut off. The header,
   ticker and bars pinned to the screen edges keep their size so they still fit across a phone. */
html[data-text=large] { --tz: 1.12; }
html[data-text=xl] { --tz: 1.25; }
html[data-text] :is(#app, .sitefoot, .modal, .chat-panel .lchat) { zoom: var(--tz); }
/* A zoomed pop-up measures the screen in zoomed pixels, so shrink its height cap to match. */
html[data-text] .modal { max-height: calc(85dvh / var(--tz)); }
html[data-text] .modal.shop { max-height: calc(90dvh / var(--tz)); }
.look-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.look-size { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; padding: 10px 6px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.look-size .aa { font-weight: 800; line-height: 1.1; }
.look-size[aria-pressed=true] { border-color: var(--turf); background: var(--sel); box-shadow: 0 0 0 1px var(--turf) inset; }
.look-size small { color: var(--muted); font-weight: 500; font-size: 12px; }
/* Dynasty leagues (src/dynasty.js) */
.mode-tag.m-dyn { color: #ffd98a; border-color: #6b5420; background: linear-gradient(90deg, rgba(240, 190, 60, .12), transparent), var(--panel2); }
.pos.PK { background: #6b5420; }
.badge.rk, b.rk { display: inline-block; font-size: 10px; font-weight: 800; color: #1b1b1b; background: #ffd98a; border-radius: 4px; padding: 0 4px; line-height: 15px; vertical-align: 1px; border: 0; }
.dyn-note { margin-top: 14px; padding: 12px 14px; border: 1px solid #6b5420; border-radius: 10px; background: var(--panel2); font-size: 14px; line-height: 1.45; }
.dyn-note b:first-child { color: #ffd98a; }
table.rookie-order td, table.picks-board td { font-size: 13px; }
table.rookie-order td.me, table.picks-board tr.me td { background: var(--sel); }
.picks-board .pk { display: inline-block; margin: 1px 2px 1px 0; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; }
.picks-board .pk.got { border-color: #6b5420; color: #ffd98a; }
.picks-board .pk .muted { font-weight: 400; }
.board .bm.via { color: #ffd98a; }
.card.taxi { border-color: #6b5420; }
.pill.sm { font-size: 10px; padding: 1px 6px; }

/* ---------- Admin > Analytics (public/admin-analytics.js) ---------- */
.an-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.an-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.an-areas a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; background: var(--panel); }
.an-areas a.on { background: var(--turf); border-color: var(--turf); color: var(--on-accent); }
.an-areas a.an-access-link { border-style: dashed; }
.an-range, .an-who { display: flex; gap: 4px; }
.an-notice { margin-bottom: 14px; border-color: var(--gold); }
.an-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.an-chart h2 { margin: 0; font-size: 16px; }
.an-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.an-svg-wrap { position: relative; margin-top: 10px; }
.an-svg { width: 100%; height: 150px; display: block; }
.an-bar-r { fill: var(--turf); opacity: .85; }
.an-hit { fill: transparent; cursor: pointer; }
.an-hit.on { fill: var(--text); fill-opacity: .08; }
.an-axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.an-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.an-max { position: absolute; top: 0; left: 2px; font-size: 11px; }
.an-ticks { display: flex; justify-content: space-between; font-size: 11px; margin-top: 2px; }
.an-tip { position: absolute; top: -6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.an-table { margin-bottom: 14px; }
.an-table h2 { font-size: 16px; }
.an-tw { overflow-x: auto; max-height: 560px; overflow-y: auto; }
.an-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-t th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; position: sticky; top: 0; background: var(--panel); cursor: pointer; white-space: nowrap; user-select: none; }
.an-t th.sorted { color: var(--text); }
.an-t td { padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.an-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.an-person { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.an-person:first-child { border-top: 0; }
#an-found .an-person:first-child { border-top: 1px solid var(--line); margin-top: 8px; }
.an-areas-pick .check { margin: 8px 0; }
@media (max-width: 600px) { .an-range, .an-who { width: 100%; } .an-range button, .an-who button { flex: 1; } .an-charts { grid-template-columns: 1fr; } }

/* Family-friendly word swaps (chat) and Admin › Word list (public/admin-words.js) */
.msg .swapped { font-size: 11px; margin-right: 4px; opacity: .75; cursor: help; }
.ww-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ww-stats .card { padding: 12px 14px; margin: 0; }
.ww-stats b { display: block; font-size: 24px; color: var(--text); }
.ww-stats span { font-size: 12.5px; color: var(--muted); }
.ww-t td { white-space: normal; vertical-align: top; }
.ww-t tr.off td { opacity: .5; }
.ww-swaps { min-width: 220px; }
.ww-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 2px 9px; margin: 2px 4px 2px 0; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.ww-x { background: none; color: var(--muted); padding: 0 0 0 2px; font-size: 11px; }
.ww-x:hover { color: var(--red); }
.pill.ww-slur { color: var(--red); border-color: var(--red); }
.pill.ww-insult { color: var(--gold); }
.ww-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ww-now { font-size: 15px; margin: 4px 0; }
.ww-recent { display: grid; gap: 10px; }
.ww-r { border-top: 1px solid var(--line); padding-top: 8px; }
.ww-was { color: var(--muted); text-decoration: line-through; font-size: 13.5px; margin-top: 2px; word-break: break-word; }
.ww-r .ww-now { word-break: break-word; }

/* ---------- Admin perks (src/roles.js): chat color, ADMIN badge, avatar ring ---------- */
.admin-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; vertical-align: 1px; border-radius: 4px; padding: 1px 5px;
  color: #04121a; background: linear-gradient(135deg, #b9ecff, #4fc3f7 50%, #2b8fc4); box-shadow: 0 0 6px rgba(79,195,247,.45); }
.admin-tag.sup { background: linear-gradient(135deg, #fff, #c8d6e5 30%, #4fc3f7 70%, #2b8fc4); }
.msg.admin { background: color-mix(in srgb, var(--admin-c) 13%, var(--panel2)); box-shadow: inset 3px 0 0 var(--admin-c); }
.msg.admin .a { color: var(--admin-c); }
.msg.admin .b { color: color-mix(in srgb, var(--admin-c) 45%, var(--text)); }
.msg.admin.pro { box-shadow: inset 3px 0 0 var(--admin-c), inset 5px 0 0 #f2c14e; }
.avatar.admin { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--admin-c, #4fc3f7), 0 0 10px color-mix(in srgb, var(--admin-c, #4fc3f7) 60%, transparent); }
.admin-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; }
.admin-swatches.off { opacity: .55; }
.admin-sw { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 99px; }
.admin-sw span { width: 14px; height: 14px; border-radius: 50%; background: var(--admin-c); box-shadow: 0 0 6px var(--admin-c); }
.admin-sw[aria-pressed="true"] { border-color: var(--admin-c); box-shadow: 0 0 0 1px var(--admin-c); }
.look-sub { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 6px; }
.admin-preview { max-width: 420px; }

/* ---------- Settings pages: back arrow + Save / Cancel bar (Look & feel) ---------- */
.page-back-row { margin: 2px 0 6px; }
.page-back { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 10px; font-weight: 700; font-size: 14px; }
.page-back:hover { border-color: var(--turf); }
.settings-page { padding-bottom: 8px; }
.save-bar { position: sticky; z-index: 6; bottom: calc((var(--stack-h, 0px) + 18px) / var(--tz, 1)); margin: 18px 0 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.save-state { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.save-bar button { min-width: 96px; }
.is-dirty .save-bar { border-color: var(--turf); }
.is-dirty .save-state { color: var(--text); font-weight: 600; }
.is-dirty .save-state::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--turf); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 520px) { .save-bar { flex-wrap: wrap; } .save-state { flex-basis: 100%; } .save-bar button { flex: 1; } }
.leave-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.leave-btns button { flex: 1 1 auto; }
.tc-note { margin: 8px 0 0; text-align: right; }

/* ---------- Sticky "jump to" menu on long pages (public/jumpbar.js) ---------- */
.jump-bar { position: sticky; z-index: 3; top: calc((var(--topbar-h, 0px) + var(--ticker-h, 0px)) / var(--tz, 1)); margin: 8px -6px 4px; padding: 8px 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.jump-bar.stuck { box-shadow: 0 8px 14px -10px rgba(0,0,0,.6); border-bottom: 1px solid var(--line); }
.jump-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump-track::-webkit-scrollbar { display: none; }
.jump-track a { flex: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
.jump-track a.on { background: var(--turf); border-color: var(--turf); color: var(--on-accent); }

/* ---------- Founders Gift pop-up (public/founders.js) ----------
   Always leather and brass, whatever theme is on, so it feels like a members' club card. */
.modal.fg-modal { max-width: 560px; background: linear-gradient(180deg, rgba(36,22,14,.94), rgba(26,15,9,.97)), url('/themes/founders-leather.svg') center / 400px;
  color: #f3e7cf; border: 1px solid #6b4a2a; outline: 1px dashed rgba(216,178,106,.4); outline-offset: -8px; }
.fg-modal .modal-x { color: #e6c27a; }
.fg { text-align: center; padding: 4px 4px 2px; }
.fg-crest { width: 84px; height: 96px; margin: 0 auto 4px; background: url('/themes/founders-crest.svg') center / contain no-repeat; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.fg-title { font-family: Graduate, Georgia, serif; font-weight: 400; letter-spacing: .04em; margin: 4px 0 6px;
  background: linear-gradient(180deg, #f6dc9a, #d8b26a 45%, #a9802f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fg-sub { color: #d9c7a6; margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
.fg-sub b { color: #f6dc9a; } .fg-sub a { color: #f6dc9a; }
.fg-picks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; text-align: left; }
.fg-or { align-self: center; font-family: Graduate, Georgia, serif; color: #a9906a; font-size: 13px; text-transform: uppercase; }
.modal .fg-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(58,36,22,.85) !important; background-image: none !important;
  color: #f3e7cf; border: 2px solid #5a3e26; box-shadow: none !important; text-shadow: none !important; font-weight: 400; text-align: left; line-height: 1.35; font-size: 13px; }
.modal .fg-opt b { font-size: 16px; color: #f6dc9a; }
.modal .fg-opt.on { border-color: #e6c27a; box-shadow: 0 0 0 3px rgba(230,194,122,.3), 0 8px 24px rgba(0,0,0,.4) !important; }
.fg-plus { color: #e6c27a; font-size: 12.5px; }
.fg-art { height: 58px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.fg-art-themes i { width: 30px; height: 46px; border-radius: 6px; background: var(--s); border: 1px solid rgba(255,255,255,.18); transform: rotate(-6deg); }
.fg-art-themes i:nth-child(2) { transform: rotate(0) translateY(-3px); } .fg-art-themes i:nth-child(3) { transform: rotate(6deg); }
.fg-art-themes .fg-ex { width: 40px; height: 54px; margin-left: 6px; border: 2px solid #e6c27a; box-shadow: 0 0 12px rgba(230,194,122,.45); transform: none; }
.fg-art-coins { font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.fg-badge { color: #c2ab88; font-size: 13px; margin: 14px 0 10px; }
.fg-modal button#fg-go, .fg-modal button#fg-ok { background: linear-gradient(180deg, #f6dc9a, #d8b26a 35%, #a9802f 70%, #e2c27c); color: #2a1808; border: 0;
  box-shadow: 0 2px 0 #5c3f12, inset 0 1px 0 rgba(255,248,220,.7); text-shadow: 0 1px 0 rgba(255,236,190,.55); font-weight: 800; }
.fg-modal button#fg-go:disabled { filter: grayscale(.7) brightness(.7); }
.fg-later { display: block; margin: 10px auto 0; color: #a9906a; }
.fg-got { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0; }
.fg-th { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 98px; font-size: 12.5px; }
.fg-th i { width: 60px; height: 78px; border-radius: 8px; background: var(--s); border: 1px solid rgba(255,255,255,.2); }
.fg-th.ex i { border: 2px solid #e6c27a; box-shadow: 0 0 14px rgba(230,194,122,.5); }
.fg-th small { color: #e6c27a; font-size: 11px; }
.fg-coins { font: 400 46px/1.1 Graduate, Georgia, serif; color: #f6dc9a; margin: 10px 0; }
@media (max-width: 520px) {
  .fg-crest { width: 58px; height: 66px; }
  .fg-title { font-size: 22px; }
  .fg-picks { grid-template-columns: 1fr; gap: 6px; }
  .fg-or { justify-self: center; font-size: 11px; }
  .modal .fg-opt { display: grid; grid-template-columns: 86px 1fr; column-gap: 12px; row-gap: 3px; align-items: start; padding: 10px; }
  .modal .fg-opt > :not(.fg-art) { grid-column: 2; }
  .fg-art { grid-row: 1 / span 3; height: 100%; min-height: 60px; gap: 2px; }
  .fg-art-themes i { width: 18px; height: 30px; border-radius: 4px; }
  .fg-art-themes .fg-ex { width: 28px; height: 40px; margin-left: 3px; }
  .fg-art-coins { font-size: 36px; }
  .fg-badge { margin: 10px 0 8px; }
  .fg-got { gap: 6px; } .fg-th { width: 72px; font-size: 11.5px; } .fg-th i { width: 50px; height: 66px; }
}
