/* =====================================================================
   ENDZONE KINGS — "Primetime Crown" UI
   Night-game navy, gold foil, painted-turf stripes, stencil-cut panels.
   ===================================================================== */
:root {
  --night: #0a1024;
  --night-2: #111a3d;
  --night-3: #1a2554;
  --line: rgba(160, 175, 225, 0.16);
  --line-2: rgba(160, 175, 225, 0.3);
  --chalk: #f3f6fb;
  --steel: #97a3cc;
  --gold: #f6c445;
  --gold-hi: #ffe28a;
  --gold-deep: #c98200;
  --siren: #ff4a5c;
  --turf: #1f7a3f;
  --go: #39d98a;
  --cut: 14px;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: 'Barlow Semi Condensed', 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --stripes: repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0 46px, transparent 46px 92px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--chalk); font-family: var(--body); font-size: 16px; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- screens + panels ---------- */
.screen { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 28px 18px; overflow-y: auto; z-index: 5;
  background: radial-gradient(120% 90% at 50% 15%, rgba(10,16,36,.15), rgba(10,16,36,.86) 72%), linear-gradient(180deg, rgba(10,16,36,.4), rgba(10,16,36,.75)); }
.screen.active { display: flex; }
.center-col { width: min(450px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin: auto; }
.center-col.wide { width: min(780px, 100%); }
.center-col.xwide { width: min(1060px, 100%); }

.panel { position: relative; padding: 24px; background: linear-gradient(165deg, rgba(26,37,84,.94), rgba(10,16,36,.95)); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  box-shadow: 0 30px 70px rgba(0,0,0,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.panel::before { content: ''; position: absolute; left: 0; top: 0; width: 72px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); z-index: 2; }
.panel::after { content: ''; position: absolute; inset: 0; background: var(--stripes); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }

.title { margin: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 66px); line-height: .9; letter-spacing: .5px; text-transform: uppercase; color: var(--chalk);
  text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.title::after { content: ''; display: block; width: 54px; height: 4px; margin: 10px auto 0; background: var(--gold); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.title.sm { font-size: 42px; text-align: left; }
.title.sm::after { margin-left: 0; }
.note { color: var(--steel); font-size: 15px; margin: 6px 0; line-height: 1.45; }
.note.center { text-align: center; }
.note code { color: var(--gold-hi); font-size: 13px; }
.msg { min-height: 20px; margin: 10px 0 0; font-size: 15px; color: var(--gold-hi); text-align: center; }
.msg.err { color: #ff8b97; }
.warn { margin: 0 0 16px; padding: 12px 14px; font-size: 15px; line-height: 1.45; background: rgba(255,74,92,.1); border-left: 3px solid var(--siren); }

/* ---------- splash ---------- */
#splash { background: radial-gradient(80% 60% at 50% 45%, #121b45, #05081a 70%); cursor: pointer; flex-direction: column; }
.studio { display: flex; flex-direction: column; align-items: center; }
.studio-logo { width: min(560px, 86vw); height: auto; overflow: visible; }
.studio-logo .hex { animation: hexin 1s cubic-bezier(.2,1.4,.4,1) both; transform-box: fill-box; transform-origin: center; }
.studio-logo .word { animation: wordin .8s .45s ease both; }
@keyframes hexin { from { opacity: 0; transform: scale(.4) rotate(-40deg) } to { opacity: 1; transform: none } }
@keyframes wordin { from { opacity: 0; transform: translateX(-24px) } to { opacity: 1; transform: none } }
.presents { color: var(--steel); font-size: 17px; font-style: italic; letter-spacing: 1px; margin-top: 16px; animation: wordin .8s 1.1s ease both; }
.skip { position: absolute; bottom: 24px; color: #4f5a8c; font-size: 14px; }

/* ---------- game logo ---------- */
.game-logo { text-align: center; user-select: none; }
.game-logo .crown { width: 96px; height: auto; display: block; margin: 0 auto -4px; filter: drop-shadow(0 8px 22px rgba(246,196,69,.45)); }
.game-logo h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .78; display: flex; flex-direction: column; }
.game-logo .t1 { font-size: clamp(64px, 13vw, 112px); color: var(--chalk); letter-spacing: 1px; text-shadow: 0 5px 0 #1a2554, 0 12px 30px rgba(0,0,0,.6); }
.game-logo .t2 { font-size: clamp(84px, 17vw, 148px); letter-spacing: 6px; font-style: italic;
  background: linear-gradient(180deg, #fff6c9 0%, var(--gold) 42%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #5c3500) drop-shadow(0 16px 30px rgba(246,160,0,.35)); }
.game-logo .by { margin: 14px 0 0; font-size: 15px; color: var(--steel); letter-spacing: 1.5px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .6px; text-transform: uppercase;
  background: linear-gradient(180deg, #24306a, #18214d); border: 1px solid var(--line-2); color: var(--chalk);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .2s, transform .1s, color .2s; }
.btn:hover { background: linear-gradient(180deg, #2f3d84, #1f2a5e); color: var(--gold-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #e69b00); color: #241500; border-color: transparent; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-110%); transition: transform .55s; }
.btn.primary:hover { color: #241500; filter: brightness(1.05); }
.btn.primary:hover::after { transform: translateX(110%); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff9aa4; border-color: rgba(255,74,92,.45); }
.btn.big { padding: 15px 28px; font-size: 24px; }
.btn.sm { padding: 6px 12px; font-size: 15px; }
.link { background: none; border: none; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; padding: 4px; font-size: 14px; }
.link:hover { color: var(--chalk); }
.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.actions .btn { min-width: 130px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--steel); }
input:not([type=range]) { background: rgba(5,8,22,.75); border: 1px solid var(--line-2); padding: 12px 14px; color: var(--chalk); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; border-radius: 0; }
input:not([type=range]):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,196,69,.15); }
input::placeholder { color: #59649a; }
input[type=range] { accent-color: var(--gold); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: none; padding: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--steel); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--chalk); border-bottom-color: var(--gold); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-panel .btn.ghost { width: 100%; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { flex: 1; background: rgba(5,8,22,.6); border: 1px solid var(--line); padding: 9px 10px; color: var(--steel); font-weight: 700; font-size: 15px; white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.seg button:hover { color: var(--chalk); }
.seg button.on { background: var(--gold); color: #241500; border-color: transparent; }
.settings label { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
.settings label > :last-child { flex: 0 1 260px; }

/* ---------- main menu ---------- */
.profile-chip { position: fixed; top: 16px; right: 16px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  background: rgba(10,16,36,.85); border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.profile-chip b { display: block; font-size: 15px; }
.profile-chip small { color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 16px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; color: #241500; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.foot { position: fixed; bottom: 12px; left: 0; right: 0; text-align: center; color: #4f5a8c; font-size: 13px; }
.menu-wrap { width: min(1000px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .menu-wrap { grid-template-columns: 1fr; gap: 20px; } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 112px; padding: 16px 18px; text-align: left;
  background: linear-gradient(160deg, var(--tc1, #1d2860), var(--tc2, #0d1430)); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); transition: transform .15s, border-color .2s; }
.tile::before { content: ''; position: absolute; inset: 0; background: var(--stripes); }
.tile::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent, var(--gold)); transform: scaleX(.18); transform-origin: left; transition: transform .3s; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile:hover::after { transform: scaleX(1); }
.tile > * { position: relative; }
.tile .tl-ico { position: absolute; right: -10px; top: -10px; width: 110px; height: 110px; opacity: .12; transition: opacity .2s, transform .3s; }
.tile .tl-ico svg { width: 100%; height: 100%; fill: currentColor; }
.tile:hover .tl-ico { opacity: .2; transform: rotate(-6deg) scale(1.05); }
.tile .tl-k { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.6vw, 34px); line-height: .95; text-transform: uppercase; letter-spacing: .3px; padding-right: 20px; }
.tile small { color: var(--steel); font-size: 14px; margin-top: 4px; line-height: 1.3; }
.tile.hero { grid-column: span 2; min-height: 160px; color: #241500; --tc1: #ffe28a; --tc2: #f0a400; --accent: #241500; border-color: transparent; }
.tile.hero small { color: rgba(36,21,0,.78); font-weight: 600; }
.tile.hero .tl-k { font-size: clamp(48px, 5.5vw, 68px); font-style: italic; }
.tile.hero .tl-ico { opacity: .18; width: 150px; height: 150px; right: 14px; top: 6px; }
.tile.wide { grid-column: span 2; min-height: 84px; }
.t-season { --tc1: #3d2c08; --tc2: #0d1430; --accent: var(--gold); }
.t-online { --tc1: #0b3f4a; --tc2: #0d1430; --accent: #4cc3ff; }
.t-rosters { --tc1: #22164a; --tc2: #0d1430; --accent: #a78bfa; }
.t-howto { --tc1: #0e3a24; --tc2: #0d1430; --accent: var(--go); }
.t-settings { --tc1: #1d2860; --tc2: #0d1430; --accent: var(--steel); }

/* ---------- team pick / cards ---------- */
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.vs { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 54px; color: var(--gold); text-transform: uppercase; }
.team-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team-pick > small { color: var(--steel); font-weight: 700; font-size: 15px; }
.team-card { position: relative; width: 100%; max-width: 260px; padding: 18px 14px 14px; text-align: center; cursor: pointer; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: transform .15s; }
.team-card:hover { transform: translateY(-2px); }
.team-card::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 10px, transparent 10px 22px); pointer-events: none; }
.team-card .helm { width: 58px; height: 52px; margin: 0 auto 8px; border-radius: 52% 48% 40% 44%; position: relative; box-shadow: inset -6px -6px 0 rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.4); }
.team-card .helm::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 34%; width: 8px; transform: translateX(-50%); background: var(--trim); }
.team-card b { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; }
.team-card span { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 18px; opacity: .9; }
.team-card em { display: block; font-style: normal; font-size: 14px; opacity: .78; margin-top: 2px; }
.team-pick .arrows { display: flex; gap: 8px; }
.team-pick.inline { flex-direction: row; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.team-pick.inline .team-card { max-width: 230px; padding: 12px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 600px) { .opts, .matchup { grid-template-columns: 1fr; } .vs { text-align: center; } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.tg { display: grid; grid-template-columns: 6px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 10px; text-align: left;
  background: rgba(17,26,61,.9); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.tg i { grid-row: span 2; width: 6px; height: 100%; min-height: 32px; background: linear-gradient(180deg, var(--c), var(--c2)); }
.tg b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg small { grid-column: 2; color: var(--steel); font-size: 13px; }
.tg span { grid-row: 1 / span 2; grid-column: 3; font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--gold); }
.tg:hover { border-color: var(--line-2); background: rgba(26,37,84,.95); }
.tg.on { border-color: var(--gold); background: rgba(80,58,8,.55); }
.tg:disabled { opacity: .3; }
.picker { width: min(880px, 100%) !important; }
.pk-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }

/* ---------- online ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 660px) { .two-col { grid-template-columns: 1fr; } }
.box { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: rgba(5,8,22,.45); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.box h3, .howto h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; }
label.mini { font-size: 14px; }
#join-code { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: 12px; text-align: center; text-transform: uppercase; }
.wait { text-align: center; }
.code { font-family: var(--display); font-weight: 900; font-size: 92px; letter-spacing: 16px; padding-left: 16px; color: var(--gold); text-shadow: 0 0 34px rgba(246,196,69,.45); margin: 4px 0; }
.status { color: var(--steel); display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- how to ---------- */
.keys { list-style: none; padding: 0; margin: 12px 0 20px; display: flex; flex-direction: column; gap: 9px; }
.keys li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; font-size: 16px; }
.keys .kk { display: flex; gap: 4px; align-items: center; color: var(--steel); }
.keys li > span:last-child { color: var(--chalk); }
kbd, .mouse { display: inline-block; min-width: 26px; padding: 3px 7px; text-align: center; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--chalk);
  background: linear-gradient(180deg, #2a3570, #1a2350); border: 1px solid #3f4c94; border-bottom-width: 3px; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tips p { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.4; color: var(--steel); background: rgba(5,8,22,.45); border-left: 3px solid var(--go); }
@media (max-width: 700px) { .tips { grid-template-columns: 1fr; } }

/* ---------- season / rosters ---------- */
.hub-top { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
@media (max-width: 780px) { .hub-top { grid-template-columns: 1fr; } }
.hub-team, .roster-head { display: flex; gap: 14px; align-items: center; }
.hub-team b, .roster-head b { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: .9; text-transform: uppercase; }
.hub-team span, .roster-head span { color: var(--steel); font-weight: 600; }
.hb-badge { width: 68px; height: 68px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 30px;
  background: linear-gradient(150deg, var(--c), #000 150%); border-bottom: 4px solid var(--c2); clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); }
.hub-next small { color: var(--gold); font-weight: 700; font-size: 15px; }
.hub-next b { display: block; font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; line-height: 1; }
.hub-next span { display: flex; align-items: center; gap: 6px; color: var(--steel); font-size: 15px; }
.hub-btns { display: flex; flex-direction: column; gap: 8px; }
.hub-cols { margin-top: 14px; }
.h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: middle; transform: rotate(45deg); }
.sched { display: flex; flex-direction: column; gap: 3px; max-height: 46vh; overflow-y: auto; }
.sr { display: grid; grid-template-columns: 38px 16px 1fr auto; align-items: center; padding: 8px 10px; font-size: 15px; background: rgba(5,8,22,.45); }
.sr.po { grid-template-columns: 46px 1fr auto; background: rgba(80,58,8,.35); }
.sr.cur { background: rgba(80,58,8,.5); box-shadow: inset 3px 0 0 var(--gold); }
.sr > span { color: var(--steel); font-family: var(--display); font-weight: 800; }
.sr em { font-style: normal; font-weight: 700; }
.sr em.w { color: var(--go); } .sr em.l { color: #ff8b97; }
.tbl-wrap { max-height: 50vh; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { position: sticky; top: 0; padding: 8px; text-align: left; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--steel); background: #111a3d; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr.me td { background: rgba(246,196,69,.13); font-weight: 700; }
.tbl tr.cut td { border-bottom: 2px solid var(--gold); }
.tbl td.nm { font-weight: 600; }
.tbl td.rt { text-align: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.tbl td.rt.elite { color: var(--go); } .tbl td.rt.good { color: #b7ef5a; } .tbl td.rt.low { color: #ff8b97; }
.team-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; max-height: none; grid-template-columns: none; }
.team-strip .tg { flex: 0 0 156px; }
.roster-head { margin-bottom: 14px; }

/* =====================================================================
   HUD
   ===================================================================== */
#hud { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud .banner, #hud .flash, #hud .hint, #hud .stam, #hud .me-label, #hud .playball { pointer-events: none; }
#hud.intro > * { opacity: 0; pointer-events: none; }

.scorebug { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: stretch; white-space: nowrap;
  font-family: var(--display); font-weight: 800; filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1); }
.scorebug > div { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; background: linear-gradient(180deg, #1c2757, #0b1128); }
.sb-team { min-width: 140px; justify-content: space-between; position: relative; }
.sb-team::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tc, #555); }
#sb-t0 { clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); padding-left: 24px; }
.sb-team .abbr { font-weight: 900; font-size: 30px; color: var(--chalk); }
.sb-team .pts { font-weight: 900; font-size: 40px; min-width: 38px; text-align: center; color: #fff; }
.sb-team .poss { width: 10px; height: 10px; background: transparent; transform: rotate(45deg); }
.sb-team.has .poss { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.sb-mid { flex-direction: column; justify-content: center; gap: 0 !important; line-height: 1; min-width: 84px; background: linear-gradient(180deg, #0d1430, #070b1e) !important; }
.sb-mid span:first-child { font-size: 15px; color: var(--steel); }
.sb-mid span:last-child { font-size: 30px; }
.sb-down { color: var(--gold); font-size: 28px; background: linear-gradient(180deg, #2a2208, #120d02) !important; }
.sb-spot { font-size: 22px; color: #c7d0f0; }
.sb-pc { min-width: 50px; justify-content: center; font-size: 24px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 22px !important; background: linear-gradient(180deg, #3a2d05, #1a1402) !important; }
.sb-pc:empty { display: none !important; }
.sb-pc.low { color: var(--siren); }
@media (max-width: 760px) { .scorebug { bottom: 10px; transform: translateX(-50%) scale(.78); transform-origin: bottom center; } .sb-spot { display: none !important; } }
#hud.pc-open .scorebug { opacity: 0; transform: translate(-50%, 30px) !important; pointer-events: none; }

.stam { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: 170px; height: 5px; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.stam.show { opacity: 1; }
.stam i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); transition: width .1s linear; }
.me-label { position: absolute; left: 50%; bottom: 94px; transform: translateX(-50%); padding: 3px 12px; font-family: var(--display); font-weight: 800; font-size: 18px; background: rgba(10,16,36,.82); border-left: 3px solid var(--gold); }
.me-label:empty { display: none; }
.me-label i { font-style: normal; color: var(--gold); margin-left: 8px; }
#hud.pc-open .me-label, #hud.pc-open .stam { display: none; }

.banner { position: absolute; top: 17%; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .25s; }
.banner.show { opacity: 1; }
.banner b { display: inline-block; padding: 6px 40px 4px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(42px, 7vw, 76px); line-height: 1; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, transparent, rgba(10,16,36,.9) 14%, rgba(10,16,36,.9) 86%, transparent); text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.banner.show b { animation: slidein .45s cubic-bezier(.2,1.2,.4,1); }
.banner small { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; font-size: 19px; font-weight: 700; color: var(--gold-hi); text-shadow: 0 2px 8px #000; }
.banner small span + span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 14px; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.banner.big b { padding: 0 20px; background: none; font-size: clamp(70px, 13vw, 150px);
  background-image: linear-gradient(180deg, #fff6c9, var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 6px 0 #5c3500) drop-shadow(0 0 40px rgba(246,160,0,.55)); animation: pop .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes slidein { from { transform: translateX(-70px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes pop { from { transform: scale(.35) } to { transform: scale(1) } }
.flash { position: absolute; top: 37%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; text-transform: uppercase; color: var(--siren); opacity: 0; transition: opacity .2s; text-shadow: 0 3px 12px #000; }
.flash.show { opacity: 1; }

.playball { position: absolute; left: 50%; top: 58%; display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 10px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) scale(.85); transition: opacity .15s, transform .15s; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 32px; text-transform: uppercase; color: #241500;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.playball.show { opacity: 1; transform: translateX(-50%) scale(1); animation: pbpulse .5s infinite alternate; }
.playball kbd { font-size: 18px; }
@keyframes pbpulse { to { filter: brightness(1.18); } }

.playcall { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(1020px, calc(100vw - 20px)); padding: 14px 14px 12px;
  background: linear-gradient(170deg, rgba(20,29,68,.97), rgba(7,11,28,.97)); border-top: 3px solid var(--gold);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); box-shadow: 0 -10px 40px rgba(0,0,0,.45); animation: pcup .3s cubic-bezier(.2,.9,.3,1); }
@keyframes pcup { from { transform: translate(-50%, 40px); opacity: 0 } to { transform: translateX(-50%); opacity: 1 } }
.pc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 4px 10px; }
.pc-head > div { display: flex; flex-direction: column; }
.pc-head b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; }
.pc-head small { color: var(--steel); font-size: 14px; font-weight: 600; margin-top: 2px; }
.pc-head > span { color: var(--steel); font-size: 15px; font-weight: 600; }
.pc-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.pc-tabs::-webkit-scrollbar { display: none; }
.pc-tab { flex: 0 0 auto; background: none; border: none; padding: 7px 14px; font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--steel); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pc-tab:hover { color: var(--chalk); }
.pc-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.pc-cards { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.pc-card { position: relative; flex: 0 0 156px; scroll-snap-align: start; padding: 8px; text-align: left; background: linear-gradient(180deg, #1d2963, #111840); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: transform .12s, border-color .15s; }
.pc-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pc-card.on { border-color: var(--gold); background: linear-gradient(180deg, #4d3a08, #251a03); }
.pc-card svg { display: block; width: 100%; height: 56px; margin-bottom: 7px; background: linear-gradient(180deg, #23793d, #175a2b); }
.pc-card.special svg { background: linear-gradient(180deg, #5b3e10, #3a2708); }
.pc-card .k { position: absolute; top: 6px; left: 6px; min-width: 20px; padding: 1px 5px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 15px; color: #241500; background: var(--gold); }
.pc-card .k:empty { display: none; }
.pc-card .sigtag { position: absolute; top: 6px; right: 14px; padding: 1px 6px; font-size: 12px; font-weight: 700; color: #241500; background: linear-gradient(90deg, var(--gold-hi), var(--gold)); }
.pc-card b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.pc-card small { display: block; margin-top: 2px; color: var(--steel); font-size: 13px; line-height: 1.25; }
@media (max-height: 560px) { .pc-card svg { height: 38px; } .pc-card small { display: none; } }

.hint { position: absolute; left: 16px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 34vw; font-size: 14px; font-weight: 600; }
.hint span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; background: rgba(10,16,36,.8); border-left: 2px solid var(--gold); }
.hint kbd { padding: 1px 6px; font-size: 12px; }
#hud.pc-open .hint { display: none; }
.pause-btn { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(10,16,36,.85); border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.pause-btn span { width: 5px; height: 16px; background: var(--chalk); }
.net-badge { position: absolute; top: 18px; left: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; background: rgba(10,16,36,.85); border-left: 3px solid var(--go); }

.touch { position: absolute; inset: 0; pointer-events: none !important; }
.touch > * { pointer-events: auto; }
.joy { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: 22px; width: 150px; height: 150px; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 2px solid rgba(255,255,255,.2); }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff5, rgba(246,196,69,.35)); border: 2px solid var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tbtns { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: 22px; display: grid; grid-template-columns: repeat(2, 76px); gap: 10px; justify-content: end; touch-action: none; }
.tbtn { width: 76px; height: 76px; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none;
  font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; color: var(--chalk); background: rgba(10,16,36,.72); border: 2px solid rgba(255,255,255,.28); }
.tbtn.big { grid-column: span 2; width: 100%; border-radius: 0; font-size: 28px; color: #241500; border: none; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.tbtn.r1 { border-color: #22c55e; background: rgba(34,197,94,.35); font-size: 32px; }
.tbtn.r2 { border-color: #3b82f6; background: rgba(59,130,246,.35); font-size: 32px; }
.tbtn.r3 { border-color: #f97316; background: rgba(249,115,22,.35); font-size: 32px; }
.tbtn.hold.down, .tbtn:active { transform: scale(.93); filter: brightness(1.3); }
#hud.touch-mode .hint { display: none; }
#hud.touch-mode .scorebug { top: 8px; bottom: auto; transform: translateX(-50%) scale(.75); transform-origin: top center; }
#hud.touch-mode .me-label { bottom: auto; top: 58px; }
#hud.touch-mode .stam { bottom: auto; top: 88px; }
#hud.touch-mode.pc-open .touch .joy { display: none; }
#hud.touch-mode .playball { top: 38%; }
#hud.touch-mode .playball kbd { display: none; }
@media (max-width: 720px) { .joy { width: 124px; height: 124px; } .tbtn { width: 64px; height: 64px; font-size: 15px; } .tbtns { grid-template-columns: repeat(2, 64px); } }

#intro { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; cursor: pointer;
  background: linear-gradient(180deg, rgba(5,8,22,.6), transparent 30%, transparent 62%, rgba(5,8,22,.8)); }
.in-top { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: #c7d0f0; animation: wordin .6s ease both; }
.in-studio { color: var(--gold); }
.in-sep { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.in-teams { display: flex; align-items: center; gap: 18px; }
.in-team { min-width: min(340px, 38vw); padding: 18px 28px; background: linear-gradient(135deg, var(--c), rgba(0,0,0,.85)); border-bottom: 5px solid var(--c2);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.in-team.l { text-align: right; animation: fromL .7s .2s cubic-bezier(.2,1.1,.3,1) both; }
.in-team.r { animation: fromR .7s .2s cubic-bezier(.2,1.1,.3,1) both; }
.in-team small { display: block; font-size: 15px; font-weight: 700; opacity: .9; }
.in-team b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 5vw, 62px); line-height: .95; text-transform: uppercase; }
.in-team span { font-family: var(--display); font-weight: 800; font-size: 22px; opacity: .75; }
.in-vs { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 60px; color: var(--gold); text-transform: uppercase; text-shadow: 0 0 30px rgba(246,196,69,.6); animation: pop .5s .5s both; }
@keyframes fromL { from { transform: translateX(-80vw) } to { transform: none } }
@keyframes fromR { from { transform: translateX(80vw) } to { transform: none } }
.in-skip { position: absolute; bottom: 24px; color: var(--steel); font-size: 14px; }
@media (max-width: 640px) { .in-teams { flex-direction: column; } }

.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,5,14,.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal .panel { width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; }
.pause-panel .btn { width: 100%; }
.go { width: min(540px, 100%) !important; text-align: center; }
.go-res { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 84px; line-height: .9; text-transform: uppercase; }
.go-res.win { background: linear-gradient(180deg, #fff6c9, var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #5c3500); }
.go-res.loss { color: #ff8b97; }
.go-score { font-family: var(--display); font-weight: 900; font-size: 46px; }
.go-stats { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.go-stats td, .go-stats th { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.go-stats th { font-family: var(--display); font-weight: 800; font-size: 20px; }
.go-stats td:first-child, .go-stats td:last-child { width: 28%; font-family: var(--display); font-weight: 800; font-size: 20px; }
.go-stats td:nth-child(2) { color: var(--steel); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; padding: 10px 18px; font-weight: 600; background: #111a3d; border-left: 3px solid var(--gold); opacity: 0; transform: translate(-50%, 20px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#pc-hint { display: flex; gap: 12px; flex-wrap: wrap; }
#pc-hint span { display: inline-flex; align-items: center; gap: 5px; }
#pc-hint kbd { padding: 1px 6px; font-size: 12px; }
.foot-link { margin-left: 10px; font-size: 13px; color: var(--steel); pointer-events: auto; }
.about h3 { margin: 22px 0 6px; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--gold); }
.about p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: #d6dcf0; max-width: 68ch; }
.about .lead { margin-top: 14px; font-size: 18px; color: var(--chalk); }
.about-list { margin: 0 0 10px; padding-left: 18px; line-height: 1.55; color: #d6dcf0; }
.about-list li { margin-bottom: 4px; }
.about-list b { color: var(--chalk); }
.about .credit { margin-top: 18px; color: var(--steel); font-size: 14px; }

/* =====================================================================
   DROP 2: progression, Ultimate Team, creator, lobby, halftime, chat
   ===================================================================== */
.pc-meta { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.lvl-badge { min-width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 16px; color: #241500; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rank-pill { padding: 3px 8px; font-family: var(--display); font-weight: 800; font-size: 15px; background: rgba(255,255,255,.08); border-left: 3px solid var(--rk, #cd7f32); white-space: nowrap; }
.coins-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; font-family: var(--display); font-weight: 900; font-size: 17px; color: var(--gold-hi); background: rgba(0,0,0,.35); white-space: nowrap; }
.coins-pill.big { font-size: 26px; padding: 6px 14px 6px 10px; }
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c9, var(--gold) 45%, var(--gold-deep)); box-shadow: inset 0 0 0 2px rgba(120,70,0,.5); }
.coins-pill.big .coin { width: 22px; height: 22px; }
@media (max-width: 700px) { .profile-chip { left: 12px; right: 12px; top: 10px; flex-wrap: wrap; } .rank-pill { display: none; } }
.t-ut { --tc1: #5a3d00; --tc2: #160f02; --accent: var(--gold); min-height: 120px; }
.t-ut .tl-k { color: var(--gold-hi); font-size: clamp(34px, 3.6vw, 46px); font-style: italic; }
.t-progress { --tc1: #3a1d4f; --tc2: #0d1430; --accent: #f472b6; }
.t-creator { --tc1: #123a52; --tc2: #0d1430; --accent: #38bdf8; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--chalk); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.dotn { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; font-style: normal; font-size: 13px; line-height: 18px; color: #fff; background: var(--siren); border-radius: 9px; vertical-align: 2px; }

/* ---------- UT player cards ---------- */
.ucard { --c1: #8a5a2b; --c2: #3c220c; --ink: #fff3e2; --edge: #c58a4c; position: relative; width: 150px; height: 214px; flex: 0 0 auto; padding: 10px 10px 8px; overflow: hidden; color: var(--ink); text-align: left; border: none;
  background: linear-gradient(160deg, var(--c1), var(--c2)); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 22px), 50% 100%, 0 calc(100% - 22px), 0 14px);
  box-shadow: inset 0 0 0 2px var(--edge); font-family: var(--body); transition: transform .15s; }
button.ucard:hover { transform: translateY(-3px); }
.ucard::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 6px, transparent 6px 14px); pointer-events: none; }
.ucard.silver { --c1: #dfe5ee; --c2: #6f7a8c; --ink: #10162a; --edge: #f5f7fb; }
.ucard.gold { --c1: #ffe9a3; --c2: #c98200; --ink: #2a1800; --edge: #fff2c4; }
.ucard.elite { --c1: #4b2a9a; --c2: #0b0d2c; --ink: #f2f0ff; --edge: #7df9ff; box-shadow: inset 0 0 0 2px var(--edge), 0 0 22px rgba(125,249,255,.35); }
.ucard.kings { --c1: #2a2108; --c2: #050505; --ink: #ffe9a3; --edge: #f6c445; box-shadow: inset 0 0 0 2px var(--edge), 0 0 26px rgba(246,196,69,.5); }
.ucard.kings::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,233,163,.35) 48%, transparent 62%); background-size: 260% 100%; animation: foil 3s linear infinite; pointer-events: none; }
@keyframes foil { from { background-position: 130% 0 } to { background-position: -130% 0 } }
.uc-ovr { position: absolute; left: 10px; top: 8px; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: .9; }
.uc-pos { position: absolute; left: 11px; top: 44px; font-family: var(--display); font-weight: 800; font-size: 17px; opacity: .85; }
.uc-boost { position: absolute; left: 11px; top: 64px; font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--go); }
.uc-img { position: absolute; right: 2px; top: 6px; width: 108px; height: 108px; }
.uc-name { position: absolute; left: 0; right: 0; top: 116px; padding: 3px 6px; text-align: center; background: rgba(0,0,0,.28); }
.ucard.silver .uc-name, .ucard.gold .uc-name { background: rgba(255,255,255,.3); }
.uc-name small { display: block; font-size: 11px; font-weight: 600; opacity: .85; line-height: 1.1; }
.uc-name b { display: block; font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-stats { position: absolute; left: 10px; right: 10px; top: 160px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.uc-stats span { font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1; }
.uc-stats small { display: block; font-size: 10px; font-weight: 700; opacity: .75; }
.uc-prog { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .5px; opacity: .8; }
.ucard.mini { width: 112px; height: 160px; padding: 6px; }
.ucard.mini .uc-ovr { font-size: 28px; left: 7px; top: 6px; }
.ucard.mini .uc-pos { font-size: 14px; top: 34px; left: 8px; }
.ucard.mini .uc-boost { top: 50px; left: 8px; }
.ucard.mini .uc-img { width: 80px; height: 80px; }
.ucard.mini .uc-name { top: 86px; }
.ucard.mini .uc-name b { font-size: 15px; }
.ucard.mini .uc-stats { top: 120px; left: 6px; right: 6px; }
.ucard.mini .uc-stats span { font-size: 14px; }
.ucard.mini .uc-prog { display: none; }
.ucard.in-lu::after { content: 'IN SQUAD'; position: absolute; right: -24px; top: 12px; padding: 2px 26px; font-size: 9px; font-weight: 800; color: #241500; background: var(--go); transform: rotate(35deg); }
.ucard.empty { --c1: #18214d; --c2: #0b1128; --edge: rgba(160,175,225,.3); display: grid; place-items: center; color: var(--steel); font-family: var(--display); font-weight: 800; font-size: 18px; }

/* ---------- UT screens ---------- */
.ut-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ut-tabs { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; }
.ut-tab { flex: 1; min-width: 110px; padding: 12px; font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--steel); background: rgba(10,16,36,.85); border: 1px solid var(--line); border-bottom: 3px solid transparent; }
.ut-tab:hover { color: var(--chalk); }
.ut-tab.on { color: var(--gold-hi); border-bottom-color: var(--gold); background: rgba(40,30,6,.9); }
.ut-pane { min-height: 380px; }
.squad-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.squad-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; }
.squad-head .note { margin: 2px 0 0; }
.sq-ovr { display: flex; gap: 14px; }
.sq-ovr div { text-align: center; } .sq-ovr b { display: block; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--gold-hi); } .sq-ovr small { color: var(--steel); font-size: 13px; font-weight: 700; }
.pitch { position: relative; padding: 14px 10px; background: linear-gradient(180deg, #1d6b35, #14512a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); overflow-x: auto; }
.pitch::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px); pointer-events: none; }
.pitch-row { position: relative; display: flex; justify-content: center; gap: 8px; margin: 6px 0; }
.pitch-label { position: relative; text-align: center; font-family: var(--display); font-weight: 900; font-size: 16px; color: rgba(255,255,255,.55); text-transform: uppercase; margin: 8px 0 2px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 0; }
.slot > small { font-family: var(--display); font-weight: 800; font-size: 14px; color: #e6f7ea; }
.pick-list { display: flex; gap: 8px; flex-wrap: wrap; max-height: 56vh; overflow-y: auto; padding: 4px; }
.pk-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.pk-filters .seg { flex: 1 1 auto; }
.pk-filters select { padding: 8px 10px; background: rgba(5,8,22,.75); color: var(--chalk); border: 1px solid var(--line-2); font: inherit; }
.club-grid { display: flex; flex-wrap: wrap; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.store { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; text-align: center; background: rgba(5,8,22,.5); border: 1px solid var(--line); }
.pack-art { width: 96px; height: 128px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: .9; color: var(--ink, #fff);
  background: linear-gradient(160deg, var(--c1), var(--c2)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); box-shadow: inset 0 0 0 2px var(--edge); }
.pack-art span { display: block; font-size: 13px; opacity: .8; }
.pack.bronze .pack-art { --c1: #8a5a2b; --c2: #3c220c; --edge: #c58a4c; }
.pack.silver .pack-art { --c1: #dfe5ee; --c2: #6f7a8c; --edge: #fff; --ink: #10162a; }
.pack.gold .pack-art { --c1: #ffe9a3; --c2: #c98200; --edge: #fff2c4; --ink: #2a1800; }
.pack.elite .pack-art { --c1: #4b2a9a; --c2: #0b0d2c; --edge: #7df9ff; }
.pack.kings .pack-art { --c1: #2a2108; --c2: #050505; --edge: #f6c445; --ink: #ffe9a3; }
.pack b { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.pack small { color: var(--steel); font-size: 13px; min-height: 32px; }
.pack .own { position: absolute; top: 8px; right: 8px; padding: 2px 8px; font-weight: 800; font-size: 13px; color: #241500; background: var(--go); }
.pack .btn { width: 100%; }
.store-h { margin: 18px 0 10px; font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; }
.store-h:first-child { margin-top: 0; }
.play-ut { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .play-ut { grid-template-columns: 1fr; } }

/* pack opening */
#packopen { background: radial-gradient(70% 60% at 50% 50%, rgba(40,30,6,.85), rgba(3,5,14,.95)); }
.po-stage { width: min(980px, 100%); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.po-title { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(40px, 7vw, 72px); text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 4px 0 #5c3500; }
.po-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; perspective: 900px; min-height: 230px; }
.flip { width: 150px; height: 214px; position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.9,.3,1.2); cursor: pointer; background: none; border: none; padding: 0; }
.flip.open { transform: rotateY(180deg); cursor: default; }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .ucard { transform: rotateY(180deg); }
.flip .back { display: grid; place-items: center; background: linear-gradient(160deg, #1d2860, #070b1e); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 22px), 50% 100%, 0 calc(100% - 22px), 0 14px); box-shadow: inset 0 0 0 2px var(--gold); }
.flip .back svg { width: 70px; opacity: .9; }
.flip.glow-elite { filter: drop-shadow(0 0 18px #7df9ff); }
.flip.glow-kings { filter: drop-shadow(0 0 26px #f6c445); }
.flip.glow-gold { filter: drop-shadow(0 0 12px rgba(246,196,69,.7)); }
.po-actions { display: flex; gap: 12px; }

/* card detail */
.cd-panel { width: min(640px, 100%) !important; display: grid !important; grid-template-columns: auto 1fr; gap: 20px; }
@media (max-width: 560px) { .cd-panel { grid-template-columns: 1fr; justify-items: center; } }
.cd-info h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
.cd-info .note { margin: 4px 0 10px; }
.cd-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 12px; }
.cd-rate { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; font-size: 14px; color: var(--steel); }
.cd-rate b { text-align: right; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--chalk); }
.cd-rate i { grid-column: 1 / -1; height: 4px; background: rgba(255,255,255,.08); margin-top: -2px; }
.cd-rate i::after { content: ''; display: block; height: 100%; width: var(--v); background: var(--bar, var(--gold)); }
.cd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-acts .btn { flex: 1 1 140px; }

/* ---------- progress ---------- */
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prog-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .prog-grid { grid-template-columns: 1fr; } }
.lv-row { display: flex; align-items: center; gap: 16px; }
.lv-big { width: 82px; height: 92px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 44px; color: #241500; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: 0 0 auto; }
.lv-row h3, .rk-row h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.bar { height: 12px; margin: 10px 0 4px; background: rgba(255,255,255,.08); overflow: hidden; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); transition: width .6s; }
.bar.rk i { background: linear-gradient(90deg, var(--rk2, #7a4a1c), var(--rk, #cd7f32)); }
.rk-row { display: flex; align-items: center; gap: 16px; }
.rk-emblem { width: 82px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 30px; color: #fff; background: linear-gradient(160deg, var(--rk, #cd7f32), var(--rk2, #5a3412)); clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%); text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.ch-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ch { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; background: rgba(5,8,22,.45); border-left: 3px solid var(--line-2); }
.ch.done { border-left-color: var(--go); }
.ch.claimed { opacity: .5; }
.ch b { font-weight: 700; font-size: 15px; }
.ch small { color: var(--gold-hi); font-weight: 700; font-size: 13px; }
.ch .bar { grid-column: 1; margin: 2px 0 0; height: 6px; }
.ch .btn { grid-row: 1 / span 3; grid-column: 2; }
.ch-head { display: flex; justify-content: space-between; align-items: baseline; }
.ch-head .note { margin: 0; font-size: 13px; }
.track { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tk { flex: 0 0 110px; padding: 10px; text-align: center; background: rgba(5,8,22,.45); border-top: 3px solid var(--line-2); }
.tk.got { border-top-color: var(--go); opacity: .55; }
.tk.next { border-top-color: var(--gold); background: rgba(80,58,8,.4); }
.tk b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; }
.tk small { display: block; color: var(--steel); font-size: 13px; line-height: 1.3; }
.tk .pk { color: var(--gold-hi); font-weight: 700; }
.career { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.career div { padding: 10px; background: rgba(5,8,22,.45); text-align: center; }
.career b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; }
.career small { color: var(--steel); font-size: 13px; font-weight: 600; }

/* ---------- game over rewards ---------- */
.go-rewards:empty { display: none; }
.go-rewards { margin-top: 6px; padding: 12px 14px; text-align: left; background: rgba(5,8,22,.5); border-top: 3px solid var(--gold); }
.gr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gr-head b { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.gr-lines { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 14px; font-size: 14px; }
.gr-lines span:nth-child(3n+2), .gr-lines span:nth-child(3n) { text-align: right; font-weight: 700; }
.gr-lines span:nth-child(3n+2) { color: var(--gold-hi); }
.gr-lines span:nth-child(3n) { color: #a5b4fc; }
.gr-tot { border-top: 1px solid var(--line); padding-top: 4px; font-family: var(--display); font-weight: 900; font-size: 18px !important; }
.gr-extra { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.gr-extra .up { color: var(--go); } .gr-extra .down { color: #ff8b97; }

/* ---------- lobby ---------- */
.lobby { margin-top: 16px; }
.lobby-head { display: flex; justify-content: space-between; align-items: baseline; }
.lobby-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; }
.lobby-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 32vh; overflow-y: auto; }
.lob { display: grid; grid-template-columns: 6px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(5,8,22,.5); border: 1px solid var(--line); }
.lob i { width: 6px; height: 100%; min-height: 34px; background: linear-gradient(180deg, var(--c), var(--c2)); }
.lob b { display: block; font-size: 16px; }
.lob small { color: var(--steel); font-size: 13px; }
.lob .rank-pill { font-size: 13px; }
.lob-empty { padding: 18px; text-align: center; color: var(--steel); background: rgba(5,8,22,.35); }

/* ---------- play creator ---------- */
.cr-panel { display: grid !important; grid-template-columns: 300px 1fr; gap: 18px; }
@media (max-width: 820px) { .cr-panel { grid-template-columns: 1fr; } }
.cr-side { display: flex; flex-direction: column; gap: 12px; }
.cr-help { font-size: 14px; line-height: 1.45; color: var(--steel); padding: 10px 12px; background: rgba(5,8,22,.45); border-left: 3px solid var(--go); }
.cr-help b { color: var(--chalk); }
.cr-btns { display: flex; gap: 8px; } .cr-btns .btn { flex: 1; }
.cr-field-wrap { background: #0a1024; padding: 6px; }
.cr-field { width: 100%; height: auto; display: block; touch-action: none; user-select: none; cursor: crosshair; }
.cr-field .who { cursor: pointer; }
.cr-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-role { padding: 6px 10px; font-weight: 700; font-size: 14px; background: rgba(5,8,22,.6); border: 1px solid var(--line); border-left: 4px solid var(--rc); color: var(--chalk); }
.cr-role.on { background: rgba(80,58,8,.6); border-color: var(--gold); border-left-color: var(--rc); }
.cr-assign { display: flex; flex-direction: column; gap: 6px; }
.cr-assign label { flex-direction: row; align-items: center; justify-content: space-between; font-size: 14px; }
.cr-assign select { padding: 6px 8px; background: rgba(5,8,22,.75); color: var(--chalk); border: 1px solid var(--line-2); font: inherit; font-size: 14px; }
.cr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cr-item { padding: 8px; background: rgba(5,8,22,.5); border: 1px solid var(--line); }
.cr-item svg { width: 100%; height: 70px; background: linear-gradient(180deg, #23793d, #175a2b); display: block; }
.cr-item b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.cr-item small { color: var(--steel); font-size: 13px; }
.cr-item .row { display: flex; gap: 6px; margin-top: 6px; } .cr-item .row .btn { flex: 1; }

/* ---------- halftime ---------- */
.halftime { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(90% 80% at 50% 40%, rgba(10,16,36,.55), rgba(5,8,22,.92)); overflow-y: auto; }
.ht-box { width: min(980px, 100%); }
.ht-title { margin: 0; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(56px, 10vw, 110px); line-height: .9; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c9, var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #5c3500); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.ht-score { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 10px 0 16px; font-family: var(--display); font-weight: 900; }
.ht-score .tm { display: flex; align-items: center; gap: 12px; font-size: 34px; text-transform: uppercase; }
.ht-score .tm i { width: 14px; height: 40px; background: var(--c); }
.ht-score .sc { font-size: 64px; }
.ht-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; }
@media (max-width: 860px) { .ht-grid { grid-template-columns: 1fr; } }
.ht-col { padding: 12px; background: rgba(10,16,36,.85); border-top: 3px solid var(--c, var(--gold)); }
.ht-col h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.ldr { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.ldr img { width: 52px; height: 52px; background: rgba(255,255,255,.06); }
.ldr b { display: block; font-size: 15px; } .ldr small { color: var(--steel); font-size: 13px; }
.ht-stats { width: 100%; border-collapse: collapse; font-size: 15px; }
.ht-stats td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ht-stats td:first-child, .ht-stats td:last-child { font-family: var(--display); font-weight: 900; font-size: 20px; width: 26%; }
.ht-stats td:nth-child(2) { color: var(--steel); }
.ht-foot { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--steel); font-weight: 600; }

/* ---------- chat ---------- */
.chat { position: absolute; left: 16px; top: 64px; width: min(340px, 70vw); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.chat-log { display: flex; flex-direction: column; gap: 4px; }
.chat-log p { margin: 0; padding: 5px 10px; font-size: 14px; line-height: 1.35; background: rgba(10,16,36,.78); border-left: 3px solid var(--line-2); animation: chatin .2s ease; transition: opacity .6s; word-wrap: break-word; }
.chat-log p.me { border-left-color: var(--gold); }
.chat-log p.them { border-left-color: #4cc3ff; }
.chat-log p.sys { color: var(--steel); font-style: italic; }
.chat-log p.old { opacity: 0; }
.chat.open .chat-log p.old { opacity: 1; }
.chat-log b { margin-right: 6px; }
.chat-form { pointer-events: auto; }
.chat-form input { width: 100%; padding: 9px 12px; font-size: 15px; background: rgba(5,8,22,.9) !important; }
@keyframes chatin { from { transform: translateX(-12px); opacity: 0 } to { transform: none; opacity: 1 } }
#hud.touch-mode .chat { top: 110px; }
#menu { padding-top: 84px; }
.tile { min-height: 96px; padding: 14px 16px; }
.tile .tl-k { font-size: clamp(24px, 2.3vw, 30px); }
.tile.hero { min-height: 128px; }
.tile.hero .tl-k { font-size: clamp(42px, 4.6vw, 58px); }
.t-ut { min-height: 104px; }
.t-ut .tl-k { font-size: clamp(30px, 3.2vw, 40px); }
.uc-stats { top: 152px; }
.uc-prog { bottom: 9px; font-size: 9px; }
.pack-art { font-size: 18px; }
@media (max-height: 760px) { .tile small { display: none; } .tile { min-height: 74px; } .tile.hero { min-height: 100px; } }
#hud.half-open .scorebug, #hud.half-open .hint, #hud.half-open .me-label, #hud.half-open .stam, #hud.half-open .banner { opacity: 0; pointer-events: none; }
.modal { overflow-y: auto; align-items: flex-start; }
.modal > .panel, .modal > .po-stage { margin: auto; }
.go-res { font-size: 64px; }
.go-score { font-size: 38px; }
.go-stats td, .go-stats th { padding: 4px 8px; }
.banner.pen b { color: #241500; background: linear-gradient(90deg, transparent, #ffd400 14%, #ffd400 86%, transparent); text-shadow: none; font-size: clamp(34px, 5.5vw, 60px); }
.banner.pen b::before { content: ''; display: inline-block; width: 26px; height: 30px; margin-right: 14px; vertical-align: -2px; background: linear-gradient(135deg, #241500 0 30%, transparent 30% 100%); clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%); background-color: #241500; }
.tile.locked { filter: saturate(.35) brightness(.8); }
.tile.locked::after { transform: scaleX(0); }
.tile.locked .tl-k::after { content: ''; display: inline-block; width: 18px; height: 20px; margin-left: 10px; vertical-align: 2px; background: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5v12h-13V10zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5v12h-13V10zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tile.locked small::before { content: 'Free account needed. '; color: var(--gold-hi); font-weight: 700; }
.lock-panel { width: min(460px, 100%) !important; text-align: center; align-items: center; }
.lock-panel .title.sm { text-align: center; } .lock-panel .title.sm::after { margin-left: auto; }
.lock-ico { width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lock-ico svg { width: 30px; fill: #241500; }
.lock-panel .actions { justify-content: center; }
#menu { flex-direction: column; justify-content: flex-start; }
#menu .menu-wrap { margin: auto; }
#menu .foot { position: static; margin: 18px 0 0; flex: 0 0 auto; }
/* ---------- phone + short-screen spacing pass ---------- */
@media (max-width: 640px) {
  .ut-tab { min-width: 0; padding: 10px 4px; font-size: 17px; }
  .ut-top .title.sm { font-size: 34px; }
  .coins-pill.big { font-size: 20px; }
  .pitch { padding: 10px 2px; }
  .pitch-row { gap: 4px; }
  .pitch .slot { zoom: 0.55; }
  .pitch .slot > small { font-size: 20px; }
  .squad-head h3 { font-size: 26px; }
  .sq-ovr b { font-size: 28px; }
  .halftime { padding: 58px 12px 16px; align-items: flex-start; }
  .ht-title { font-size: 52px; }
  .ht-score { gap: 12px; margin: 6px 0 10px; }
  .ht-score .tm { font-size: 24px; }
  .ht-score .sc { font-size: 40px; white-space: nowrap; }
  .ht-foot { flex-wrap: wrap; }
  .club-grid { justify-content: center; }
  .store { grid-template-columns: repeat(2, 1fr); }
  .cd-panel .ucard { margin: 0 auto; }
  .panel { padding: 18px 16px; }
  .title { font-size: 44px; }
  .tiles { gap: 8px; }
}
#hud.touch-mode.pc-open .tbtns { bottom: auto; top: 70px; }
#hud.touch-mode.pc-open .tbtn.big { width: 150px; }
#hud.touch-mode #pc-hint { display: none; }
#hud.touch-mode .playcall { padding-bottom: 10px; }
@media (max-height: 680px) {
  .playcall { padding: 10px 10px 8px; }
  .pc-head { padding-bottom: 6px; }
  .pc-head b { font-size: 24px; }
  .pc-tab { padding: 5px 10px; font-size: 16px; }
}
/* ---------- team logos ---------- */
.team-card .tlogo { display: block; width: 72px; height: 72px; margin: 0 auto 6px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); position: relative; z-index: 1; }
.tg { grid-template-columns: 34px 1fr auto; }
.tg .tg-logo { grid-row: span 2; width: 34px; height: 34px; }
.lob { grid-template-columns: 40px 1fr auto auto; }
.lob .tg-logo { width: 40px; height: 40px; }
.hb-logo { width: 72px; height: 72px; flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.sb-logo { width: 34px; height: 34px; flex: 0 0 auto; }
.sb-team { gap: 8px; }
.in-team { display: flex; align-items: center; gap: 16px; }
.in-team.l { flex-direction: row-reverse; }
.in-logo { width: 96px; height: 96px; flex: 0 0 auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.ht-score .tm img { width: 54px; height: 54px; }
@media (max-width: 640px) { .in-logo { width: 60px; height: 60px; } .ht-score .tm img { width: 36px; height: 36px; } .sb-logo { width: 26px; height: 26px; } }

/* =====================================================================
   DROP 3
   ===================================================================== */
.t-modes { --tc1: #3a2a0c; --tc2: #0d1430; --accent: #fb923c; }
.set-cel { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--steel); }
.seg.wrap { flex-wrap: wrap; } .seg.wrap button { flex: 1 1 28%; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.board { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.board h4 { margin: 6px 0 2px; font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; color: var(--gold-hi); }
.board .row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; font-size: 14px; background: rgba(5,8,22,.5); }
.board .row b { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--gold-hi); }
.board .row.me { box-shadow: inset 3px 0 0 var(--gold); }
/* momentum meter (sits just above the scorebug) */
.mom { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 13px; text-transform: uppercase; color: var(--steel); pointer-events: none; transition: opacity .25s; }
.mom-bar { position: relative; width: 220px; height: 8px; background: rgba(5,8,22,.75); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.mom-bar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--mc, var(--gold)); transition: left .4s, width .4s; box-shadow: 0 0 10px var(--mc, var(--gold)); }
.mom-bar b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #fff; transform: translateX(-1px); }
#hud.pc-open .mom, #hud.half-open .mom, #hud.practice .mom { opacity: 0; }
#hud .stam { bottom: 96px; } #hud .me-label { bottom: 106px; }
/* hot routes */
.hot { position: absolute; right: 16px; top: 72px; width: 260px; padding: 12px; background: rgba(10,16,36,.94); border-top: 3px solid var(--gold); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.hot h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-size: 20px; text-transform: uppercase; }
.hot .who, .hot .kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
.hot .kinds { grid-template-columns: repeat(2, 1fr); }
.hot button { padding: 7px 6px; font-weight: 700; font-size: 14px; background: rgba(5,8,22,.7); border: 1px solid var(--line); color: var(--chalk); border-left: 3px solid var(--rc, var(--line-2)); }
.hot button.on { background: rgba(80,58,8,.7); border-color: var(--gold); }
.hot button kbd { margin-right: 6px; }
.hot small { display: block; color: var(--steel); font-size: 12px; }
.pc-hotbtn { margin-left: 10px; }
/* replay */
.replay-badge { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(10,16,36,.9); border-left: 4px solid var(--siren); }
.replay-badge b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; text-transform: uppercase; color: #fff; }
.replay-badge b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--siren); vertical-align: 3px; animation: pbpulse .6s infinite alternate; }
.replay-badge span { color: var(--steel); font-size: 13px; font-weight: 600; }
#hud.replaying > *:not(#replay-badge) { opacity: 0 !important; pointer-events: none !important; }
/* player of the game + highlights */
.go-potg:empty, .go-hl:empty { display: none; }
.go-potg { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; margin-top: 4px; padding: 10px 12px; text-align: left; background: linear-gradient(90deg, rgba(80,58,8,.55), rgba(5,8,22,.5)); border-left: 3px solid var(--gold); }
.go-potg img { width: 76px; height: 76px; }
.go-potg small { color: var(--gold-hi); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.go-potg b { display: block; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.go-potg span { color: var(--steel); font-size: 14px; }
.go-hl { margin-top: 6px; text-align: left; font-size: 14px; }
.go-hl h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.go-hl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.go-hl div span { color: var(--steel); font-weight: 600; }
.go-hl div b { font-weight: 700; } .go-hl div em { font-style: normal; color: var(--steel); }
/* achievements */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.ach { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 10px; background: rgba(5,8,22,.45); opacity: .5; }
.ach.got { opacity: 1; box-shadow: inset 3px 0 0 var(--gold); }
.ach i { width: 38px; height: 38px; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 900; font-size: 18px; color: #241500; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ach:not(.got) i { background: #2a3366; color: var(--steel); }
.ach b { display: block; font-size: 14px; } .ach small { color: var(--steel); font-size: 12px; line-height: 1.3; }
@media (max-width: 640px) { .hot { right: 8px; left: 8px; width: auto; top: 60px; } .mom-bar { width: 150px; } }
.go-hl div span:first-child { white-space: nowrap; }
#cr-form { flex-wrap: wrap; } #cr-form button { flex: 1 1 22%; }
.hot .kinds button { text-align: left; }

/* play clock + timeouts in the play call */
.pc-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
#pc-timeout { display: inline-flex; align-items: center; gap: 6px; }
#pc-timeout kbd { padding: 0 5px; font-size: 11px; }
#pc-to { display: inline-flex; gap: 3px; }
#pc-to i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
#pc-to i.used { background: var(--line-2); }
.pc-clock { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 2px 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); }
.pc-clock b { font-family: var(--display); font-size: 34px !important; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-clock small { font-size: 10px !important; letter-spacing: .04em; margin: 0 !important; }
.pc-clock.low { border-color: var(--siren); animation: pclow .5s infinite alternate; }
.pc-clock.low b { color: var(--siren); }
@keyframes pclow { to { background: rgba(255,74,92,.18); } }

/* kick meter */
.kickmeter { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); padding: 12px 16px 14px;
  background: linear-gradient(170deg, rgba(20,29,68,.96), rgba(7,11,28,.96)); border-top: 3px solid var(--gold); box-shadow: 0 -8px 30px rgba(0,0,0,.45); }
.km-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.km-top b { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.km-top span { color: var(--gold-hi); font-weight: 700; }
.km-bar { position: relative; height: 26px; background: linear-gradient(90deg, #1b2a55, #22346a 70%, #4a1d2a); border: 1px solid var(--line-2); overflow: hidden; }
.km-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #2fae6a, var(--go) 60%, var(--gold) 85%, var(--siren)); }
.km-need { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px #fff; }
.km-sweet { position: absolute; top: 0; bottom: 0; background: rgba(255,226,138,.45); border-left: 1px solid var(--gold-hi); border-right: 1px solid var(--gold-hi); }
.km-acc { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; background: var(--gold-hi); box-shadow: 0 0 8px var(--gold); display: none; }
.kickmeter.acc .km-acc { display: block; }
.km-aim { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--steel); font-size: 12px; font-weight: 700; }
.km-aim-track { position: relative; flex: 1; height: 6px; background: rgba(255,255,255,.08); }
.km-aim-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.km-aim-track i { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold); }
.km-step { margin: 10px 0 0; color: var(--chalk); font-weight: 600; font-size: 15px; }
.km-step kbd { padding: 1px 6px; font-size: 12px; }
.km-btn { display: none; width: 100%; margin-top: 10px; }
#hud.touch-mode .km-btn { display: block; }

/* ultimate team: solos, sets */
.solo-list { display: flex; flex-direction: column; gap: 8px; }
.solo { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: rgba(5,8,22,.45); border-left: 3px solid var(--gold); }
.solo.done { border-left-color: var(--go); opacity: .65; }
.solo img { width: 48px; height: 48px; object-fit: contain; }
.solo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.solo-txt b { font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.solo-txt small { color: var(--steel); font-size: 14px; }
.solo-txt small.rw { color: var(--gold-hi); font-weight: 700; }
.set-ic { display: grid; place-items: center; width: 44px; height: 44px; font-family: var(--display); font-weight: 900; font-size: 22px; color: #1a1200; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.set-ic.t0 { background: #cd7f32; } .set-ic.t1 { background: #c9d1dd; } .set-ic.t2 { background: var(--gold); } .set-ic.t3 { background: #8ab4ff; } .set-ic.t4 { background: var(--gold-hi); }
@media (max-width: 560px) { .solo { grid-template-columns: 40px 1fr; } .solo .btn { grid-column: 1 / -1; } .solo img, .set-ic { width: 40px; height: 40px; } }

/* field pass */
.fp-prog { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 4px 0 14px; }
.fp-prog b { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.fp-prog .bar { height: 10px; margin: 0; }
.fp-prog small { color: var(--steel); font-weight: 600; }
.fp-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fp-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; min-height: 128px; text-align: center; background: rgba(5,8,22,.5); border: 1px solid var(--line); }
.fp-t small { color: var(--steel); font-size: 12px; font-weight: 700; }
.fp-t b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; margin-top: 4px; }
.fp-t span { color: var(--steel); font-size: 12px; }
.fp-t em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold-hi); }
.fp-t .btn { margin-top: auto; width: 100%; }
.fp-t i { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--go); }
.fp-t.ready { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.fp-t.got { opacity: .55; }
.fp-t.pk-elite { background: linear-gradient(180deg, rgba(138,180,255,.18), rgba(5,8,22,.5)); }
.fp-t.pk-kings { background: linear-gradient(180deg, rgba(255,226,138,.25), rgba(5,8,22,.5)); }
.fp-t.pk-gold { background: linear-gradient(180deg, rgba(246,196,69,.14), rgba(5,8,22,.5)); }
@media (max-width: 560px) { .fp-prog { grid-template-columns: 1fr; gap: 6px; } }

/* market */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mk-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mk-buy { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; }
.mk-buy .btn { width: 100%; }
.mk-buy small { color: var(--steel); font-size: 12px; }
.mk-mines { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.mk-mine { display: flex; gap: 10px; align-items: center; padding: 8px; background: rgba(5,8,22,.45); border: 1px solid var(--line); }
.mk-mine > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.mk-mine b { font-family: var(--display); font-size: 22px; }
.mk-mine small { color: var(--steel); font-size: 12px; }
.mk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 8px; font-weight: 700; }
.mk-price b { font-family: var(--display); font-size: 26px; color: var(--gold-hi); }
.mk-price input { flex-basis: 100%; accent-color: var(--gold); }
.ut-tabs { overflow-x: auto; scrollbar-width: none; }
.ut-tabs::-webkit-scrollbar { display: none; }
.ut-tab { white-space: nowrap; }
@media (max-width: 700px) { .ut-tab { min-width: 92px; flex: 0 0 auto; } }
.tg.rnd-tile { --c: #2a3566; --c2: var(--gold); border-style: dashed; }
.tg .dice { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; font-family: var(--display); font-weight: 900; font-size: 24px; color: #1a1200; background: var(--gold); transform: rotate(-8deg); }
.arrows .rnd { padding-inline: 10px; }
/* spectating */
#hud.spec #playcall, #hud.spec #touch, #hud.spec #km-btn, #hud.spec .hint, #hud.spec #playball, #hud.spec .stam, #hud.spec #me-label, #hud.spec #hot { display: none !important; }
.lob.live { border-left-color: var(--siren); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--siren); animation: pclow .7s infinite alternate; vertical-align: middle; }

/* main menu live leaderboard */
.menu-board { width: min(1000px, 100%); margin: 18px auto 0; padding: 12px 14px; background: rgba(7,11,28,.78); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.mb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.mb-head b { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.mb-head > span { color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.mb-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.mb-list li { display: grid; grid-template-columns: auto 24px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; background: rgba(255,255,255,.04); cursor: pointer; min-width: 0; }
.mb-list li:hover { background: rgba(255,255,255,.09); }
.mb-list .mb-n { grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--gold); }
.mb-list img { grid-row: span 2; width: 24px; height: 24px; object-fit: contain; }
.mb-list b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-list em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--chalk); }
.mb-list .mb-empty { grid-column: 1 / -1; display: block; color: var(--steel); cursor: default; }
@media (max-width: 760px) { .mb-list { grid-template-columns: 1fr; } }

/* community */
.so-top { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.so-tabs { flex: 1 1 520px; margin-bottom: 0; }
.so-find { position: relative; flex: 0 1 240px; }
.so-find input { width: 100%; padding: 12px; background: rgba(5,8,22,.7); border: 1px solid var(--line-2); color: var(--chalk); }
.so-results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; background: #0d1430; border: 1px solid var(--line-2); }
.so-results button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: none; border: 0; text-align: left; }
.so-results button:hover { background: rgba(255,255,255,.07); }
.so-results img { width: 24px; height: 24px; }
.so-results small { margin-left: auto; color: var(--steel); }
.lb-cats { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; }
.lb-group small { display: block; color: var(--steel); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.lb-group .seg { flex-wrap: wrap; }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lb-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; }
.lb-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.lb-list li { display: grid; grid-template-columns: 40px 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; background: rgba(5,8,22,.45); cursor: pointer; }
.lb-list li:hover { background: rgba(255,255,255,.07); }
.lb-list li.me { box-shadow: inset 3px 0 0 var(--gold); }
.lb-list li:nth-child(1) .lb-n { color: var(--gold-hi); } .lb-list li:nth-child(2) .lb-n { color: #d6dde8; } .lb-list li:nth-child(3) .lb-n { color: #e09a5a; }
.lb-n { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--steel); text-align: center; }
.lb-list img { width: 36px; height: 36px; object-fit: contain; }
.lb-list b { font-size: 17px; } .lb-list small { display: block; color: var(--steel); font-size: 13px; }
.lb-list em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 24px; }
.lb-list .mb-empty { display: block; color: var(--steel); cursor: default; }
.pf-head { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 55%, #070b1c), #070b1c 70%); border-left: 4px solid var(--c2); }
.pf-logo { width: 96px; height: 96px; object-fit: contain; }
.pf-id h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; }
.pf-id small { color: var(--steel); font-weight: 600; }
.pf-id p { margin: 6px 0 0; }
.pf-follow { display: flex; gap: 14px; margin-top: 6px; color: var(--steel); font-size: 14px; }
.pf-follow b { color: var(--chalk); }
.pf-acts { display: flex; flex-direction: column; gap: 6px; }
.pf-stats { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 10px; margin-top: 12px; }
.pf-grp { padding: 10px; background: rgba(5,8,22,.45); }
.pf-grp h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--gold-hi); }
.pf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.pf-row b { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.pf-row small { color: var(--steel); font-size: 12px; font-weight: 600; }
@media (max-width: 760px) { .pf-head { grid-template-columns: 64px 1fr; } .pf-logo { width: 64px; height: 64px; } .pf-acts { grid-column: 1 / -1; flex-direction: row; } .pf-stats { grid-template-columns: 1fr; } }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.clip { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; background: rgba(5,8,22,.45); border: 1px solid var(--line); }
.clip-play { width: 64px; height: 44px; border: 0; background: linear-gradient(135deg, var(--c), var(--c2)); display: grid; place-items: center; }
.clip-play span { font-size: 18px; color: #fff; text-shadow: 0 1px 4px #000; }
.clip-txt { min-width: 0; } .clip-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .clip-txt small { color: var(--steel); font-size: 12px; }
.clipbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 14px; width: min(560px, calc(100vw - 32px)); background: rgba(7,11,28,.94); border-top: 3px solid var(--gold); }
.clipbar > div { flex: 1; min-width: 0; } .clipbar b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .clipbar small { color: var(--steel); }
.inbox { display: flex; flex-direction: column; gap: 4px; }
.convo { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: rgba(5,8,22,.45); border: 0; text-align: left; }
.convo img { width: 36px; height: 36px; } .convo small { display: block; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .convo em { font-style: normal; color: var(--steel); font-size: 12px; }
.convo.unread b { color: var(--gold-hi); }
.thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .thread-head .link { font-family: var(--display); font-weight: 900; font-size: 24px; text-transform: uppercase; }
.thread { display: flex; flex-direction: column; gap: 6px; height: min(52vh, 460px); overflow-y: auto; padding: 10px; background: rgba(5,8,22,.45); }
.bubble { max-width: 75%; align-self: flex-start; padding: 8px 12px; background: #1b2550; }
.bubble.mine { align-self: flex-end; background: #2e4596; }
.bubble p { margin: 0; overflow-wrap: anywhere; } .bubble small { color: var(--steel); font-size: 11px; }
.thread-form { display: flex; gap: 8px; margin-top: 8px; } .thread-form input { flex: 1; padding: 12px; background: rgba(5,8,22,.7); border: 1px solid var(--line-2); color: var(--chalk); }
.tl-k .dotn { vertical-align: middle; }
.pw-warn { margin: 0; padding: 8px 10px; font-size: 13px; font-weight: 600; color: #ffd9a0; background: rgba(255,170,60,.1); border-left: 3px solid #ffaa3c; }
.tos h3 { margin: 16px 0 4px; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--gold-hi); }
.tos p { margin: 0 0 6px; line-height: 1.5; max-width: 72ch; }
.ban-panel { max-width: 440px; border-top: 3px solid var(--siren); }
.report-box { margin-bottom: 12px; padding: 12px; background: rgba(255,74,92,.08); border-left: 3px solid var(--siren); }
.report-box textarea, .report-box select { width: 100%; padding: 10px; background: rgba(5,8,22,.7); border: 1px solid var(--line-2); color: var(--chalk); font: inherit; }
.ad-list { display: flex; flex-direction: column; gap: 6px; }
.ad-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: rgba(5,8,22,.45); border-left: 3px solid var(--line-2); }
.ad-row.auto { border-left-color: var(--siren); }
.ad-row small { display: block; color: var(--steel); } .ad-row p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ad-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-tag { display: inline-block; padding: 1px 7px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); }
.ad-tag.st-open { color: var(--gold-hi); } .ad-tag.st-banned { color: #fff; background: var(--siren); } .ad-tag.st-dismissed { color: var(--steel); }

/* franchise */
.fr-top { display: grid; grid-template-columns: 72px 1fr 220px; gap: 14px; align-items: center; margin-bottom: 12px; }
.fr-top img { width: 72px; height: 72px; object-fit: contain; }
.fr-top h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.fr-top h3 small { font-size: 18px; color: var(--steel); }
.fr-cap .bar { margin: 0 0 4px; } .fr-cap small { color: var(--steel); font-weight: 600; }
@media (max-width: 700px) { .fr-top { grid-template-columns: 56px 1fr; } .fr-top img { width: 56px; height: 56px; } .fr-cap { grid-column: 1 / -1; } }
.fr-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; margin-bottom: 12px; background: rgba(5,8,22,.45); border-left: 3px solid var(--gold); }
.fr-next small { color: var(--gold-hi); font-weight: 700; } .fr-next h3 { margin: 2px 0; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; }
.fr-list { display: flex; flex-direction: column; gap: 4px; }
.fr-slot { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; }
.fr-slot > small { font-weight: 800; color: var(--steel); text-align: center; }
.fr-p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: rgba(5,8,22,.45); }
.fr-p > div:nth-child(2) { flex: 1; min-width: 160px; } .fr-p small { display: block; color: var(--steel); font-size: 13px; }
.fr-ovr { display: grid; place-items: center; width: 40px; height: 40px; font-family: var(--display); font-weight: 900; font-size: 22px; background: rgba(246,196,69,.15); color: var(--gold-hi); }
.fr-xp { width: 80px; height: 6px; background: rgba(255,255,255,.08); } .fr-xp i { display: block; height: 100%; background: var(--go); }
.fr-log { margin: 0; padding-left: 18px; color: var(--steel); } .fr-log li { margin: 3px 0; }
.fr-cs { flex-basis: 100%; }
.tbl tr.me td { color: var(--gold-hi); font-weight: 800; }
/* controller */
.pc-card.padfocus { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
body.pad-mode :focus-visible, body.pad-mode button:focus { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.howto-pad { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pad-grid div { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: rgba(5,8,22,.45); }
.pad-grid b { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--gold-hi); }
.pad-grid span { font-size: 14px; color: var(--chalk); }
.tbtn.r4 { border-color: #a855f7; background: rgba(168,85,247,.35); font-size: 32px; }
.tbtn.r5 { border-color: #eab308; background: rgba(234,179,8,.35); font-size: 32px; }
.ut-online { display: flex; margin: 4px 0 12px; }
.invite-pop { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: min(520px, calc(100vw - 32px)); background: rgba(7,11,28,.96); border-top: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.invite-pop > div { flex: 1; min-width: 0; } .invite-pop b { display: block; font-family: var(--display); font-weight: 900; font-size: 20px; text-transform: uppercase; } .invite-pop small { color: var(--steel); }
.friend-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(5,8,22,.45); }
.friend-row img { width: 36px; height: 36px; } .friend-row small { display: block; color: var(--steel); font-size: 13px; }
.friend-row .ad-btns { justify-content: flex-end; }
.bubble.invite { background: linear-gradient(135deg, #3b2a00, #1b2550); border-left: 3px solid var(--gold); }
.kickmeter.theirs .km-bar, .kickmeter.theirs .km-aim { display: none; }

/* throw power meter */
#throw-meter { position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%); width: min(340px, 70vw); height: 16px; border-radius: 9px; background: rgba(0,0,0,.65); border: 2px solid rgba(255,255,255,.85); overflow: hidden; display: none; z-index: 40; pointer-events: none; }
#throw-meter.on { display: block; }
#throw-meter .tm-zone { position: absolute; top: 0; bottom: 0; background: rgba(34,197,94,.35); border-left: 2px solid #22c55e; border-right: 2px solid #22c55e; }
#throw-meter .tm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; opacity: .9; }
#throw-meter span { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font: 800 13px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 3px #000; text-transform: uppercase; }
#throw-meter { overflow: visible; }

/* which real team the card's player comes from */
.uc-team { position: absolute; right: 7px; top: 7px; display: flex; flex-direction: column; align-items: center; gap: 1px; z-index: 2; }
.uc-team img { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px var(--tc); }
.uc-team i { font-style: normal; font: 900 10px/1 var(--display, system-ui); letter-spacing: .02em; color: #fff; background: var(--tc); padding: 2px 4px; border-radius: 4px; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.ucard.mini .uc-team { right: 4px; top: 4px; }
.ucard.mini .uc-team img { width: 18px; height: 18px; }
.ucard.mini .uc-team i { font-size: 8px; padding: 1px 3px; }

/* per-mode records on profiles */
.pf-recs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.pf-recs span { display: flex; flex-direction: column; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.pf-recs small { font-size: 10px; opacity: .7; }
.pf-recs b { font-size: 16px; }

/* packs: foil wrappers with a tear strip, brand line, stars for how good the pull can be */
.pack-art { position: relative; width: 112px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; overflow: hidden;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 6px, transparent 6px 14px), linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 -26px 30px rgba(0,0,0,.35); transition: transform .2s ease; }
.pack-art::after { content: ''; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); transform: translateX(-60%); pointer-events: none; }
.pack:hover .pack-art { transform: translateY(-3px) rotate(-1.5deg); }
.pack:hover .pack-art::after { transition: transform .7s ease; transform: translateX(60%); }
.pack-art .pa-tear { position: absolute; top: 9px; left: 0; right: 0; height: 0; border-top: 2px dashed var(--edge); opacity: .7; }
.pack-art .pa-brand { position: absolute; top: 14px; font-size: 8px; letter-spacing: .12em; opacity: .75; font-family: var(--display); }
.pack-art strong { display: block; font-size: 26px; line-height: .85; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pack-art .pa-2 { font-size: 20px; color: var(--edge); }
.pack.silver .pack-art .pa-2, .pack.gold .pack-art .pa-2 { color: var(--ink); opacity: .8; }
.pack-art .pa-stars { margin-top: 6px; font-size: 12px; letter-spacing: 1px; color: var(--edge); text-shadow: 0 0 6px var(--edge); }
.pack-art .pa-n { position: absolute; bottom: 7px; font-size: 9px; letter-spacing: .08em; opacity: .8; font-family: var(--display); }
.pack.kings .pack-art { box-shadow: inset 0 0 0 2px var(--edge), inset 0 0 22px rgba(246,196,69,.35), 0 0 18px rgba(246,196,69,.25); }
@media (prefers-reduced-motion: reduce) { .pack-art, .pack-art::after { transition: none !important; } }
.pack.silver .pack-art .pa-stars, .pack.gold .pack-art .pa-stars { color: var(--ink); text-shadow: none; opacity: .75; }

.tp-pill { margin-left: 8px; }
.tp-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(160deg, #7df9ff, #2b6cff); color: #04122e; font: 900 9px/1 var(--display, system-ui); font-style: normal; margin-right: 6px; }

/* themed packs */
.pack.boom .pack-art { --c1: #ff6a00; --c2: #2b0a00; --edge: #ffd166; }
.pack.cyclone .pack-art { --c1: #3fd0ff; --c2: #0a1f3a; --edge: #c9f6ff; }
.pack.blizzard .pack-art { --c1: #e8f6ff; --c2: #5a8fbf; --edge: #ffffff; --ink: #0b2440; }
.pack.venom .pack-art { --c1: #7dff3a; --c2: #0b2a06; --edge: #c8ff9a; --ink: #eaffd8; }
.pack.supernova .pack-art { --c1: #ff3dc8; --c2: #1a0638; --edge: #ffd1f4; }
.pack.vortex .pack-art { --c1: #8a5cff; --c2: #06021a; --edge: #00ffd0; }
.pack.legends .pack-art { --c1: #fff0c2; --c2: #7a4a00; --edge: #fff6dc; --ink: #2a1600; box-shadow: inset 0 0 0 2px var(--edge), 0 0 22px rgba(255,214,120,.45); }
.pack.camp .pack-art { --c1: #7df9ff; --c2: #10306b; --edge: #d6fdff; }
.pack.blizzard .pack-art .pa-2, .pack.legends .pack-art .pa-2 { color: var(--ink); opacity: .8; }
.pack.blizzard .pack-art .pa-stars, .pack.legends .pack-art .pa-stars { color: var(--ink); text-shadow: none; }
/* abilities on cards */
.uc-ab, .uc-xf { position: absolute; left: 8px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 900 11px/1 var(--display, system-ui); }
.uc-ab { bottom: 32px; background: #f6c445; color: #2a1800; }
.uc-xf { bottom: 54px; background: #ff3d6e; color: #fff; box-shadow: 0 0 8px #ff3d6e; }
.cd-abs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.cd-abs b { width: 100%; font-size: 12px; opacity: .8; }

/* Locker Room */
.lk { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; width: min(860px, 100%); }
.lk-prev { display: grid; place-items: center; padding: 10px; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 70%); border: 1px solid var(--line); }
.lk-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lk-cols input[type=color] { width: 100%; height: 34px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.lk-acts { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .lk { grid-template-columns: 1fr; } .lk-cols { grid-template-columns: repeat(3, 1fr); } }
#locker .center-col { width: min(900px, 100%); max-width: none; }
#locker .lk-form { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
#locker .lk-form .seg { flex-wrap: wrap; }
#locker .lk-form .seg button { flex: 1 1 auto; min-width: 72px; }

/* playbook folds away after you call a play */
.playcall.collapsed .pc-tabs, .playcall.collapsed .pc-cards { display: none; }
.playcall.collapsed { cursor: pointer; padding-bottom: 10px; }
.playcall.collapsed #pc-title { color: var(--go, #f6c445); }

/* Training Points icon: a hex badge with double up-chevrons (level up) */
.tp-ic { display: inline-block; width: 20px; height: 20px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237df9ff'/%3E%3Cstop offset='1' stop-color='%232b6cff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 1.5 21.5 7v10L12 22.5 2.5 17V7z' fill='url(%23g)' stroke='%23d6fdff' stroke-width='1.2'/%3E%3Cpath d='M7 12.5 12 7.5l5 5' fill='none' stroke='%2304122e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 17 12 12l5 5' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; font-size: 0; color: transparent; vertical-align: -4px; filter: drop-shadow(0 0 4px rgba(125,249,255,.45)); }
.btn .tp-ic { width: 18px; height: 18px; margin-right: 4px; }
/* in-game controls: a slim column on the left edge, clear of the scorebug, meters and play call */
#hud .hint { left: 12px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; max-width: 230px; font-size: 12.5px; opacity: .92; }
#hud .hint span { padding: 4px 8px; }
@media (max-height: 520px) { #hud .hint { font-size: 11px; gap: 2px; } #hud .hint span { padding: 2px 6px; } }
.ask-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* trades */
.tr-new { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-cols > div { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); background: rgba(5,8,22,.35); }
.tr-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-items .ucard.mini { transform: scale(.82); transform-origin: left top; }
.tr-x { background: none; border: 0; padding: 0; cursor: pointer; }
.tr-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 13px; }
.tr-pk { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tr-pk input { width: 56px; }
.tr-num { display: flex; align-items: center; gap: 8px; }
.tr-num input { flex: 1; }
.tr-to { position: relative; }
.tr-qres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tr-qres button { padding: 4px 10px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: inherit; cursor: pointer; }
.tr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.tr-row { display: grid; grid-template-columns: 1.1fr 2fr 2fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); background: rgba(5,8,22,.45); margin-bottom: 8px; }
.tr-who small { display: block; opacity: .7; }
.tr-side > small { display: block; font-size: 11px; opacity: .7; margin-bottom: 4px; }
.tr-acts { display: flex; gap: 6px; }
@media (max-width: 760px) { .tr-cols, .tr-row { grid-template-columns: 1fr; } }

/* notifications */
.notif-btn { position: absolute; top: 16px; right: 16px; z-index: 6; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(10,16,36,.85); border: 1px solid var(--line); color: var(--chalk, #fff); cursor: pointer; }
.notif-btn svg { width: 22px; height: 22px; fill: currentColor; }
.notif-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3d4f; color: #fff; font: 800 12px/20px system-ui, sans-serif; font-style: normal; text-align: center; }
.notif-panel { position: absolute; top: 70px; right: 16px; z-index: 7; width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; padding: 12px; background: rgba(8,12,30,.97); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.np-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.np-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-top: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.np-item:hover { background: rgba(255,255,255,.05); }
.np-item.new { border-left: 3px solid var(--gold, #f6c445); }
.np-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 15px; }
.np-item small { display: block; opacity: .65; font-size: 11px; }
.np-item .btn { margin-left: auto; }
/* clip camera angles */
.clip-views { display: flex; flex-wrap: wrap; gap: 4px; }
.clip-views .btn.on, #clip-like.on { background: var(--gold, #f6c445); color: #241500; }
.clip-like-n { margin-left: 4px; }
#pc-rec { font-size: 12px; line-height: 1.25; display: block; max-width: 300px; white-space: normal; }
/* notifications live top-left (the profile card owns the top-right) */
.notif-btn { position: fixed; left: 16px; right: auto; top: 16px; }
.notif-panel { position: fixed; left: 16px; right: auto; top: 70px; }
@media (max-width: 700px) { .notif-btn { top: auto; bottom: 16px; } .notif-panel { top: auto; bottom: 70px; } }

#stand .div-h th { text-align: left; padding-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--gold, #f6c445); }
#stand .seed { display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--gold, #f6c445); color: #241500; font-weight: 900; font-size: 11px; }

/* celebrations */
.lk-cels { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.lk-cel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.lk-cel { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); background: rgba(5,8,22,.4); }
.lk-cel b { flex: 1; font-size: 13px; }
.lk-cel.on { border-color: var(--gold, #f6c445); }
.cel-pick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 12px; min-width: 220px; background: rgba(8,12,30,.95); border: 1px solid var(--gold, #f6c445); pointer-events: auto; }
.cel-pick #cel-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cel-pick button { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: inherit; cursor: pointer; text-align: left; }
.cel-pick button.on { border-color: var(--gold, #f6c445); }
.cel-pick button.sel { background: var(--gold, #f6c445); color: #241500; }
.cel-pick small { opacity: .6; font-size: 11px; }

/* injuries & subs */
.inj-ask { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(8,12,30,.95); border: 1px solid #ff5a5a; pointer-events: auto; text-align: center; }
.inj-ask div { display: flex; gap: 8px; }
.subs-panel { width: min(560px, 100%) !important; }
.sub-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.sub-row { display: grid; grid-template-columns: 44px 1fr 70px auto; gap: 8px; align-items: center; padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sub-row.hurt b { color: #ff8b8b; }
.sub-row small { display: block; opacity: .65; font-size: 11px; }
.sub-pos { font-weight: 900; font-size: 12px; opacity: .8; }
.fat { display: block; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.fat > i { display: block; height: 100%; }

.wind-note { display: block; margin-top: 4px; font-size: 11.5px; }
.wind-ind { position: absolute; top: 70px; right: 16px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; background: rgba(10,16,36,.8); border-left: 2px solid #7df9ff; font-weight: 800; font-size: 13px; }
.wind-ind i { display: inline-block; font-style: normal; color: #7df9ff; transition: transform .3s; }

/* player count, top left next to the bell */
.player-count { position: fixed; top: 26px; left: 72px; z-index: 6; padding: 5px 10px; background: rgba(10,16,36,.85); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.player-count b { color: var(--gold, #f6c445); }
@media (max-width: 700px) { .player-count { top: auto; bottom: 26px; left: 72px; } }

/* =====================================================================
   PRIMETIME CROWN v2 — the glow-up. Stadium light beams, foil-gold rims, glass with real depth,
   bevelled broadcast buttons. One orchestrated motion: the main menu tiles deal in when it opens.
   ===================================================================== */
:root {
  --foil: linear-gradient(135deg, #fff2b0 0%, #f6c445 22%, #a86a00 50%, #ffe28a 74%, #c98200 100%);
  --glass: linear-gradient(165deg, rgba(34,48,108,.92) 0%, rgba(14,21,52,.94) 48%, rgba(8,12,30,.96) 100%);
  --rim: inset 0 1px 0 rgba(255,255,255,.10), inset 0 0 0 1px rgba(246,196,69,.10), inset 0 -18px 30px rgba(0,0,0,.25);
  --lift: 0 18px 40px rgba(0,0,0,.45), 0 2px 0 rgba(0,0,0,.4);
}

/* stadium light: two soft beams from above and a deeper vignette behind every menu screen */
.screen::before { content: ''; position: fixed; inset: -10% -5% 0; pointer-events: none; z-index: -1;
  background:
    conic-gradient(from 200deg at 18% -8%, transparent 0deg, rgba(255,236,170,.10) 10deg, transparent 24deg),
    conic-gradient(from 140deg at 82% -8%, transparent 0deg, rgba(170,205,255,.09) 12deg, transparent 26deg),
    radial-gradient(80% 60% at 50% 110%, rgba(246,196,69,.07), transparent 60%); }
.screen { background: radial-gradient(120% 90% at 50% 10%, rgba(10,16,36,.10), rgba(6,9,22,.9) 74%), linear-gradient(180deg, rgba(10,16,36,.35), rgba(6,9,22,.8)); }

/* panels: glass with a top gloss, faint gold inner rim, and a foil corner tab */
.panel { background: var(--glass); box-shadow: var(--rim), 0 34px 80px rgba(0,0,0,.55); border-color: rgba(160,175,225,.14); }
.panel::before { width: 96px; height: 3px; background: var(--foil); box-shadow: 0 0 14px rgba(246,196,69,.45); }
.panel > .np-head, .panel > h3:first-child { letter-spacing: .3px; }

/* titles: chalk-to-silver face with a gold foil underline */
.title { background: linear-gradient(180deg, #ffffff 0%, #e6ebf7 55%, #a9b4d6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)) drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.title::after { width: 78px; height: 5px; background: var(--foil); box-shadow: 0 0 16px rgba(246,196,69,.5); }

/* buttons: bevelled like a broadcast lower-third, gold edge light on hover */
.btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.35); background: linear-gradient(180deg, #2a3778 0%, #1b2557 55%, #141c45 100%); }
.btn:hover:not(:disabled) { background: linear-gradient(180deg, #34449a 0%, #223070 55%, #18225a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(246,196,69,.45); }
.btn.primary { background: linear-gradient(180deg, #fff1b3 0%, #ffd760 30%, #f6b40e 62%, #d98a00 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(120,70,0,.45), 0 8px 22px rgba(246,170,0,.28); }
.btn.primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(120,70,0,.45), 0 10px 30px rgba(246,170,0,.45); }
.btn.ghost { background: rgba(10,16,36,.35); box-shadow: inset 0 0 0 1px rgba(160,175,225,.18); }
.btn.danger { background: linear-gradient(180deg, #3a1622, #24101a); }

/* segmented choices: a recessed track with a glowing gold pill */
.seg { padding: 3px; background: rgba(3,6,16,.55); box-shadow: inset 0 1px 3px rgba(0,0,0,.6), inset 0 0 0 1px rgba(160,175,225,.1); }
.seg button { background: transparent; border-color: transparent; transition: color .15s, background .15s; }
.seg button:hover { background: rgba(255,255,255,.05); }
.seg button.on { background: linear-gradient(180deg, #ffe48e, #f6c445 55%, #e3a10a); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 14px rgba(246,196,69,.35); }

/* inputs: inset field with a gold focus ring */
input:not([type=range]), select, textarea { background: rgba(3,6,16,.7); box-shadow: inset 0 2px 6px rgba(0,0,0,.55); }
select { color: var(--chalk); border: 1px solid var(--line-2); padding: 8px 10px; }

/* main menu tiles: glass cards with depth, the mode's colour glowing from the corner, foil edge + shine on hover */
.tile { background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--tc1, #1d2860) 85%, transparent), transparent 62%), linear-gradient(170deg, rgba(20,29,70,.96), rgba(8,12,30,.97));
  box-shadow: var(--rim), var(--lift); border: 1px solid rgba(160,175,225,.13); transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, var(--gold)) 70%, transparent);
  box-shadow: var(--rim), 0 24px 46px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--accent, var(--gold)) 35%, transparent), 0 0 34px color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent); }
.tile .tl-ico { opacity: .16; color: var(--accent, var(--gold)); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent, var(--gold)) 40%, transparent)); }
.tile:hover .tl-ico { opacity: .32; }
.tile .tl-k { font-size: clamp(22px, 2.2vw, 30px); overflow-wrap: normal; word-break: keep-all; hyphens: none; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.tile small { color: #aab4da; }
.tile.hero { background: linear-gradient(115deg, #fff3bf 0%, #ffd760 26%, #f6b40e 58%, #d98a00 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -4px 0 rgba(120,70,0,.4), 0 18px 44px rgba(246,170,0,.3); }
.tile.hero .tl-k { text-shadow: 0 2px 0 rgba(255,255,255,.35); }
.tile.hero:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 0 rgba(120,70,0,.4), 0 22px 54px rgba(246,170,0,.45); }
.tile.t-ut { background: radial-gradient(120% 140% at 100% 0%, rgba(246,196,69,.35), transparent 60%), linear-gradient(170deg, #3a2800, #120c01); border-color: rgba(246,196,69,.35); }

/* corner chrome: profile card, bell, player count, coins — glass with a gold rim */
.profile-chip, .notif-btn, .player-count, .coins-pill, .rank-pill { background: linear-gradient(180deg, rgba(30,42,96,.92), rgba(10,16,36,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(246,196,69,.16), 0 10px 26px rgba(0,0,0,.45); }
.notif-btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(246,196,69,.55), 0 0 20px rgba(246,196,69,.25); }
.notif-n { box-shadow: 0 0 0 2px #0a1024, 0 0 12px rgba(255,61,79,.7); }

/* modals: glassier, with a pop when they open (it answers your click) */
.modal { background: radial-gradient(80% 70% at 50% 40%, rgba(10,16,36,.55), rgba(3,5,14,.82)); }
.modal:not(.hidden) > .panel { animation: ek-pop .22s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ek-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* in-game: scorebug gets a gloss strip and team-colour glow; toasts and hints read like broadcast chyrons */
.scorebug > div { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35); }
.scorebug { filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)); }
.sb-team::before { box-shadow: 0 0 14px var(--tc, #555); }
.hint span { background: linear-gradient(90deg, rgba(14,21,52,.92), rgba(10,16,36,.78)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.toast, #toast { background: linear-gradient(180deg, rgba(30,42,96,.96), rgba(10,16,36,.96)) !important; box-shadow: inset 0 0 0 1px rgba(246,196,69,.3), 0 14px 30px rgba(0,0,0,.5) !important; }
.playcall { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -10px 40px rgba(0,0,0,.45); }
.pc-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; }
.pc-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(246,196,69,.5), 0 14px 26px rgba(0,0,0,.45); }
.pc-card.on { box-shadow: inset 0 0 0 2px var(--gold), 0 0 26px rgba(246,196,69,.35); }

/* Ultimate Team cards: a little more shine */
.ucard { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(0,0,0,.45); }
.ucard:hover { filter: brightness(1.06); }

/* scrollbars to match */
* { scrollbar-width: thin; scrollbar-color: rgba(246,196,69,.45) rgba(5,8,22,.4); }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-track { background: rgba(5,8,22,.4); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffe28a, #c98200); border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { .modal:not(.hidden) > .panel { animation: none !important; } }
/* depth chart / sub picker */
.subs-panel { max-width: 760px; }
.sub-row2 { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sub-row2.focus { background: rgba(255,90,90,.08); outline: 1px solid rgba(255,90,90,.5); border-radius: 8px; padding: 8px; }
.sub-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sub-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.sub-chip b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sub-chip small, .sub-chip span { font-size: 10.5px; opacity: .7; }
.sub-chip:hover:not(:disabled) { border-color: #f6c445; background: rgba(246,196,69,.1); }
.sub-chip.on { border-color: #22c55e; background: rgba(34,197,94,.14); cursor: default; }
.sub-chip.on small::after { content: ' · in'; color: #22c55e; opacity: 1; }
.sub-chip.hurt { opacity: .45; cursor: not-allowed; }
.sub-chip .fat { display: block; width: 100%; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: 3px; }
.sub-chip .fat i { display: block; height: 100%; border-radius: 2px; }
@media (max-width: 560px) { .sub-chips { grid-template-columns: 1fr; } }
/* injury banner up top */
.inj-top { position: absolute; left: 50%; top: 70px; transform: translate(-50%, -16px); z-index: 30; display: flex; gap: 10px; align-items: center; max-width: min(560px, 92vw); padding: 10px 16px; border-radius: 10px; background: rgba(40,8,12,.94); border: 1px solid #ff5a5a; box-shadow: 0 8px 28px rgba(255,60,60,.25); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.inj-top b { color: #ff7a7a; white-space: nowrap; }
.inj-top.opp { background: rgba(10,16,40,.94); border-color: #f6c445; box-shadow: 0 8px 28px rgba(246,196,69,.2); }
.inj-top.opp b { color: #f6c445; }
.inj-top.show { opacity: 1; transform: translate(-50%, 0); }
/* live game on a profile */
.pf-live { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,70,70,.55); background: linear-gradient(90deg, rgba(255,50,50,.14), rgba(255,50,50,.03)); }
.pf-live.hidden { display: none; }
.pf-live div { flex: 1; display: flex; flex-direction: column; }
.pf-live small { opacity: .75; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* injury banner up top */
.inj-top { position: absolute; left: 50%; top: 70px; transform: translate(-50%, -16px); z-index: 30; display: flex; gap: 10px; align-items: center; max-width: min(560px, 92vw); padding: 10px 16px; border-radius: 10px; background: rgba(40,8,12,.94); border: 1px solid #ff5a5a; box-shadow: 0 8px 28px rgba(255,60,60,.25); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.inj-top b { color: #ff7a7a; white-space: nowrap; }
.inj-top.opp { background: rgba(10,16,40,.94); border-color: #f6c445; box-shadow: 0 8px 28px rgba(246,196,69,.2); }
.inj-top.opp b { color: #f6c445; }
.inj-top.show { opacity: 1; transform: translate(-50%, 0); }
/* live game on a profile */
.pf-live { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,70,70,.55); background: linear-gradient(90deg, rgba(255,50,50,.14), rgba(255,50,50,.03)); }
.pf-live.hidden { display: none; }
.pf-live div { flex: 1; display: flex; flex-direction: column; }
.pf-live small { opacity: .75; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
/* celebration wheel */
.cel-pick { min-width: 0; padding: 0; background: none; border: 0; align-items: center; gap: 10px; }
.cel-pick #cel-opts { display: block; position: relative; width: 330px; height: 330px; }
.cel-pick > small { opacity: .85; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(8,12,30,.85); }
.cw-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(8,12,30,.55) 0 30%, rgba(8,12,30,.92) 31% 100%); border: 2px solid rgba(246,196,69,.6); box-shadow: 0 0 40px rgba(246,196,69,.18), inset 0 0 30px rgba(0,0,0,.5); }
.cw-center { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(246,196,69,.1); border: 1px solid rgba(246,196,69,.35); text-align: center; }
.cw-center b { font-size: 14px; color: #f6c445; padding: 0 8px; }
.cw-center small { font-size: 10px; opacity: .6; }
.cel-pick .cw-slot { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; transform: translate(var(--x), var(--y)); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: inherit; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; text-align: center; }
.cw-slot .cw-ic { font-size: 24px; line-height: 1; }
.cw-slot small { font-size: 9.5px; opacity: .85; white-space: nowrap; max-width: 62px; overflow: hidden; text-overflow: ellipsis; }
.cw-slot kbd { position: absolute; top: -4px; right: -2px; font-size: 9px; padding: 1px 4px; border-radius: 6px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); }
.cel-pick .cw-slot.on { border-color: rgba(34,197,94,.8); }
.cel-pick .cw-slot.sel { background: #f6c445; color: #241500; border-color: #fff3c4; transform: translate(var(--x), var(--y)) scale(1.18); box-shadow: 0 0 22px rgba(246,196,69,.6); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .cel-pick .cw-slot { transition: none; } }
.ann-voice { display: flex; gap: 8px; align-items: center; }
.ann-voice select { flex: 1; min-width: 0; }
/* tab badges stay inside their tab: the tab grows to fit label + count */
.ut-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ut-tab .dotn { margin-left: 0; flex: 0 0 auto; vertical-align: 0; }
.gr-tp { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(120,90,255,.22), rgba(120,90,255,.05)); border: 1px solid rgba(150,120,255,.55); }
.gr-tp b { font-size: 16px; }
.gr-tp small { margin-left: auto; opacity: .7; font-size: 11.5px; text-align: right; }
.coins-pill .tp-ic { margin-left: 8px; }

/* ===================== POLISH PASS v3 ===================== */
/* badges: always a neat pill that never spills out of whatever it's in */
.dotn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; line-height: 1; font: 800 12px/1 system-ui, sans-serif; box-sizing: border-box; box-shadow: 0 0 0 2px rgba(10,16,36,.9), 0 0 10px rgba(255,61,79,.55); vertical-align: middle; }
.dotn.hidden { display: none; }
.tile .dotn { position: absolute; top: 10px; right: 12px; margin: 0; z-index: 2; }
.tl-k .dotn { position: absolute; top: 10px; right: 12px; margin: 0; }
.so-tab, .ad-tab { gap: 6px; }

/* terms checkbox reads as one sentence */
label.check { display: block; line-height: 1.55; }
label.check input { vertical-align: -3px; margin: 0 8px 0 0; }
label.check .link { display: inline; padding: 0; }

/* menu tiles: titles never touch the edge, a little lift and shine when you hover */
.tile .tl-k { padding-right: 8px; max-width: 100%; }
.tile:not(.hero):not(.t-ut) .tl-k { font-size: clamp(19px, 1.9vw, 27px); }
.tile { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.13) 48%, transparent 66%); transform: translateX(-120%); transition: transform .6s ease; }
.tile:hover::after, .tile:focus-visible::after { transform: translateX(120%); }
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(246,196,69,.35); }
.tile:focus-visible { outline: 2px solid var(--gold, #f6c445); outline-offset: 2px; }

/* team pickers: full names, no "Balti…" */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.team-grid > * { transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.team-grid > *:hover { transform: translateY(-1px); border-color: rgba(246,196,69,.55); }

/* segmented controls: one row, options squeeze instead of wrapping onto a second line */
.seg { flex-wrap: nowrap; }
.seg button { min-width: 0; padding-left: 6px; padding-right: 6px; overflow: hidden; text-overflow: ellipsis; }
.seg:has(> button:nth-child(6)) button { font-size: 13.5px; }
@media (max-width: 560px) { .seg { flex-wrap: wrap; } .seg button { flex: 1 0 30%; } }

/* celebration shop: proper cards */
.lk-cel-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lk-cel { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(160deg, rgba(30,42,96,.7), rgba(8,12,30,.7)); border: 1px solid rgba(160,175,225,.16); }
.lk-cel b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.lk-cel.on { border-color: rgba(246,196,69,.8); box-shadow: 0 0 16px rgba(246,196,69,.18); }
.lk-cel.on .lk-ic { background: rgba(246,196,69,.18); border-color: rgba(246,196,69,.6); }
.lk-cel.locked .lk-ic { filter: grayscale(.7); opacity: .75; }

/* page titles: chrome with a soft gold glow */
.screen > h2, .screen .scr-title, .screen > header h2 { background: linear-gradient(180deg, #ffffff 0%, #dfe6ff 45%, #9aa6cc 55%, #f2f5ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(246,196,69,.18)); }

/* inputs light up when focused */
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, select:focus, textarea:focus { outline: none; border-color: rgba(246,196,69,.75) !important; box-shadow: 0 0 0 3px rgba(246,196,69,.18); }

/* thin gold scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(246,196,69,.45) rgba(255,255,255,.04); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(246,196,69,.6), rgba(200,140,0,.5)); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }

/* tabs: active tab glows */
.ut-tab { transition: color .15s, background .15s, box-shadow .15s; }
.ut-tab.on { box-shadow: inset 0 -3px 0 var(--gold, #f6c445), 0 6px 18px rgba(246,196,69,.12); }

@media (prefers-reduced-motion: reduce) { .tile, .tile::after, .team-grid > *, .ut-tab { transition: none !important; } .tile:hover { transform: none; } }
.tg.rnd-tile .dice { grid-column: 1; grid-row: 1 / span 2; }
.tg.rnd-tile b, .tg.rnd-tile small { grid-column: 2; overflow: visible; text-overflow: clip; }
/* ---------- sim viewer (Retro Bowl style) ---------- */
.simv .sv-panel { width: min(860px, 100%); gap: 12px; }
.sv-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sv-team { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), rgba(8,12,30,.6)); border: 1px solid rgba(255,255,255,.1); }
.sv-team.r { justify-content: flex-end; background: linear-gradient(270deg, color-mix(in srgb, var(--c) 55%, transparent), rgba(8,12,30,.6)); }
.sv-team img { width: 40px; height: 40px; }
.sv-team div { display: flex; flex-direction: column; line-height: 1.1; }
.sv-team small { opacity: .75; font-size: 12px; }
.sv-team b { font-family: var(--display); font-weight: 900; font-size: 22px; }
.sv-sc { margin-left: auto; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.sv-team.r .sv-sc { margin: 0 auto 0 0; }
.sv-mid { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.sv-mid b { font-family: var(--display); font-size: 18px; color: var(--gold-hi, #ffe08a); }
.sv-mid span { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.sv-mid small { font-size: 12px; opacity: .8; min-height: 16px; text-align: center; }
.sv-field { position: relative; height: 120px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.75);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px calc(100% / 12)), repeating-linear-gradient(90deg, #2f8a3a 0 calc(100% / 24), #2a7d34 calc(100% / 24) calc(100% / 12)); image-rendering: pixelated; }
.sv-ez { position: absolute; top: 0; bottom: 0; width: calc(100% / 12); display: grid; place-items: center; z-index: 1; }
.sv-ez.l { left: 0; } .sv-ez.r { right: 0; }
.sv-ez span { font-family: var(--display); font-weight: 900; font-size: 18px; color: #fff; letter-spacing: 2px; writing-mode: vertical-rl; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.sv-ez.l span { transform: rotate(180deg); }
.sv-num { position: absolute; bottom: 4px; transform: translateX(-50%); font: 800 12px/1 var(--display, sans-serif); color: rgba(255,255,255,.75); font-style: normal; }
.sv-los, .sv-fd { position: absolute; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); z-index: 2; transition: left .25s; }
.sv-los { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.sv-fd { background: #facc15; box-shadow: 0 0 8px #facc15; }
.sv-ball { position: absolute; top: 50%; z-index: 3; transform: translate(-50%, -50%); }
.sv-ball i { display: block; width: 18px; height: 11px; border-radius: 50%; background: #8b4513; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .2s; }
.sv-ball.air i { transform: translateY(-14px) scale(1.25); box-shadow: 0 16px 8px -4px rgba(0,0,0,.35); }
.sv-pos { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 700; }
.sv-pos i { width: 10px; height: 10px; border-radius: 50%; }
.sv-big { align-self: center; padding: 6px 22px; border-radius: 8px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; background: var(--c, #f6c445); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); box-shadow: 0 0 30px color-mix(in srgb, var(--c, #f6c445) 60%, transparent); }
.sv-big.pop { animation: ek-pop .3s cubic-bezier(.2,.9,.3,1.3) both; }
.sv-feed { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sv-feed li { display: grid; grid-template-columns: 82px 1fr; column-gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border-left: 3px solid rgba(255,255,255,.15); }
.sv-feed li small { grid-column: 2; opacity: .75; font-size: 12px; }
.sv-feed .sv-t { grid-row: span 2; font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.sv-feed li.score { border-left-color: #22c55e; background: rgba(34,197,94,.12); }
.sv-feed li.to { border-left-color: #ff5a5a; background: rgba(255,90,90,.1); }
.sv-feed li.big { border-left-color: #f6c445; }
.sv-feed li.inj { border-left-color: #ff8b3d; }
.sv-feed li.k, .sv-feed li.final { border-left-color: #8ea2ff; background: rgba(142,162,255,.1); }
.sv-ctl { display: flex; align-items: center; gap: 10px; }
.sv-ctl .seg { flex: 0 0 auto; }
.sv-ctl .btn:last-child { margin-left: auto; }
.sv-final { font-family: var(--display); font-size: 22px; color: var(--gold-hi, #ffe08a); }
@media (max-width: 600px) { .sv-team b { font-size: 16px; } .sv-sc { font-size: 28px; } .sv-team img { display: none; } .sv-field { height: 90px; } }
/* injuries & form */
.form-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font: 800 11px/16px system-ui, sans-serif; font-style: normal; vertical-align: 1px; white-space: nowrap; }
.form-tag.hot { background: rgba(34,197,94,.18); color: #4ade80; border: 1px solid rgba(34,197,94,.45); }
.form-tag.cold { background: rgba(96,165,250,.16); color: #93c5fd; border: 1px solid rgba(96,165,250,.45); }
.form-tag.ling { background: rgba(255,140,60,.15); color: #ffb36b; border: 1px solid rgba(255,140,60,.45); }
.inj-cross { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 6px; border-radius: 4px; background: #e11d48; color: #fff; font-size: 12px; font-style: normal; vertical-align: 1px; }
.inj-cross.q { background: #f59e0b; }
.fr-p[data-pinfo], .inj-li, [data-sinj] { cursor: pointer; }
.fr-p.is-hurt { border-color: rgba(225,29,72,.5); background: linear-gradient(90deg, rgba(225,29,72,.12), transparent 60%); }
.fr-p.is-ling { border-color: rgba(245,158,11,.4); }
.inj-li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.inj-li small { margin-left: auto; opacity: .55; font-size: 11px; text-decoration: underline; }
.inj-li:hover { background: rgba(255,255,255,.05); }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form-row span { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.05); }
.season-inj { margin: 8px 0 12px; }
.info-card { width: min(440px, 100%) !important; }
.ic { display: flex; flex-direction: column; gap: 10px; }
.ic-status { align-self: flex-start; padding: 3px 12px; border-radius: 6px; font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: 1px; }
.ic-status.out { background: #e11d48; } .ic-status.q { background: #f59e0b; color: #241500; } .ic-status.ok { background: #16a34a; }
.ic-who b { font-size: 20px; display: block; } .ic-who small { opacity: .7; }
.ic-row { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: rgba(225,29,72,.1); border: 1px solid rgba(225,29,72,.35); }
.ic-row b { font-size: 17px; }
.ic-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.ic-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e11d48, #22c55e); }
.ic-meta { display: flex; gap: 16px; font-size: 13px; opacity: .9; }
.ic-meta .hot { color: #4ade80; } .ic-meta .cold { color: #93c5fd; }
/* italic gradient "KINGS": give the slanted last letter room so it isn't clipped */
.game-logo .t2 { align-self: center; padding: 0 .16em 0 .08em; overflow: visible; }
.pf-live.checking, .pf-live.idle { border-color: rgba(160,175,225,.22); background: rgba(255,255,255,.03); }
.live-dot.idle { background: #6b7280; animation: none; box-shadow: none; }

/* ===== no "…" anywhere: text shows in full and wraps instead of getting cut off ===== */
.tg b, .uc-name b, .mb-list b, .clip-txt b, .clipbar b, .convo small, .sub-chip b, .cw-slot small, .seg button, .lk-cel b,
.tg small, .mb-list span, .lb-row b, .lb-name, td, th {
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; word-break: normal;
}
.tg b, .mb-list b, .clip-txt b, .clipbar b, .lk-cel b, .sub-chip b { line-height: 1.15; }
.seg button { line-height: 1.15; padding-top: 7px; padding-bottom: 7px; overflow-wrap: normal; hyphens: none; }
.cw-slot small { max-width: 64px; line-height: 1.05; font-size: 9px; text-align: center; overflow-wrap: normal; }
.uc-name b { overflow-wrap: normal; word-break: keep-all; }
.tg { align-items: center; height: auto; min-height: 56px; }
.seg button { flex: 1 1 auto; }
/* records: the number on top, W / L / T underneath */
.rec-nums { display: inline-flex; align-items: flex-start; gap: 4px; }
.rec-nums i { display: inline-flex; flex-direction: column; align-items: center; font-style: normal; line-height: 1; }
.rec-nums i b { font-family: var(--display); font-weight: 900; }
.rec-nums i em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1px; opacity: .6; margin-top: 2px; }
.rec-nums i.dash { opacity: .45; font-weight: 800; padding-top: 1px; }
.pf-recs .rec-card { gap: 4px; min-width: 96px; }
.pf-recs .rec-card .rec-nums i b { font-size: 22px; }
.pf-recs .rec-card .rec-nums i.dash { font-size: 18px; }
#pc-rec, .pc-rec { display: flex; gap: 10px; margin-top: 2px; font-size: 12px; max-width: none; }
.rec-mini { display: flex; flex-direction: column; gap: 1px; }
.rec-mini > small { font-size: 9.5px; opacity: .65; line-height: 1; }
.rec-mini .rec-nums i b { font-size: 14px; }
.rec-mini .rec-nums i em { font-size: 8px; }
/* bigger main-menu player card */
.profile-chip { gap: 14px; padding: 10px 18px 10px 10px; top: 14px; right: 16px; border-radius: 14px; }
.profile-chip .avatar { width: 56px; height: 56px; font-size: 30px; }
.profile-chip b#pc-name { font-size: 21px; line-height: 1.05; }
.profile-chip .pc-rec { gap: 16px; margin-top: 4px; }
.profile-chip .rec-mini > small { font-size: 11px; }
.profile-chip .rec-mini .rec-nums i b { font-size: 19px; }
.profile-chip .rec-mini .rec-nums i em { font-size: 9.5px; }
.profile-chip .pc-meta { gap: 10px; }
.profile-chip .lvl-badge { min-width: 40px; height: 40px; font-size: 21px; }
.profile-chip .rank-pill { font-size: 19px; padding: 6px 12px; }
.profile-chip .coins-pill { font-size: 21px; padding: 6px 14px 6px 8px; }
.profile-chip .coins-pill .coin { width: 22px; height: 22px; }
.profile-chip #logout { font-size: 15px; }
@media (min-width: 701px) { #menu .menu-wrap { padding-top: 48px; } }
.profile-chip .coins-pill b, .profile-chip #pc-coins { font-size: 21px; }
.profile-chip .rec-mini .rec-nums i b { font-size: 22px !important; }
.profile-chip .rec-mini > small { font-size: 12px !important; }
.rec-nums i.dash { padding-top: 0; }
.rec-nums i.dash b, .rec-nums i.dash em { opacity: .55; }
/* custom celebration icons */
.cel-svg { width: 26px; height: 26px; display: block; }
.cw-slot .cw-ic .cel-svg { width: 28px; height: 28px; }
.cw-slot.sel .cel-svg { color: #241500; }
.lk-ic { color: #ffe08a; }
.lk-ic .cel-svg { width: 24px; height: 24px; }
.lk-cel.locked .lk-ic { color: #9aa3c7; }
.cw-ic { display: grid; place-items: center; color: #ffe08a; }
/* ranked season + weekend league cards */
.comp-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .comp-box { grid-template-columns: 1fr; } }
.comp-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(160deg, rgba(30,42,96,.75), rgba(8,12,30,.8)); border: 1px solid rgba(160,175,225,.18); }
.comp-card small { font-size: 11.5px; opacity: .75; }
.comp-card b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--gold-hi, #ffe08a); }
.comp-card span { font-size: 12.5px; opacity: .85; }
.comp-card.wl.live { border-color: rgba(34,197,94,.6); box-shadow: 0 0 18px rgba(34,197,94,.15); }
.comp-card.wl.live small { color: #4ade80; opacity: 1; }
.comp-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.comp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6c445, #ffe08a); }
.h2h { padding: 2px 10px; border-radius: 99px; background: rgba(246,196,69,.12); border: 1px solid rgba(246,196,69,.35); font-size: 13px; }
/* messages: roomy bubbles, the time sits on its own line away from buttons */
.thread { gap: 12px; padding: 14px; }
.bubble { display: flex; flex-direction: column; gap: 8px; padding: 11px 15px 9px; border-radius: 14px; border-bottom-left-radius: 4px; line-height: 1.4; }
.bubble.mine { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.bubble p { font-size: 15px; }
.bubble > small:last-child { align-self: flex-end; margin-top: 2px; font-size: 11px; opacity: .75; white-space: nowrap; }
.bubble.invite { gap: 10px; padding: 13px 16px 10px; min-width: 220px; }
.bubble.invite p { font-weight: 700; }
.bubble.invite .btn { align-self: flex-start; margin: 2px 0 4px; padding-left: 18px; padding-right: 18px; }
.bubble.invite > small:not(:last-child) { opacity: .8; }
/* notification list: same breathing room */
.np-item { gap: 12px !important; padding: 12px 14px !important; align-items: center; }
.np-item > div small { display: block; margin-top: 4px; opacity: .7; }
.np-item .btn { margin-left: auto; flex: 0 0 auto; }
.convo { gap: 12px; padding: 12px 14px; }
.convo small { margin-top: 3px; }
.login-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0; }
@media (max-width: 520px) { .login-row { grid-template-columns: repeat(4, 1fr); } }
.lg-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.lg-day small { font-size: 10px; opacity: .7; } .lg-day b { font-family: var(--display); font-size: 20px; color: var(--gold-hi, #ffe08a); } .lg-day span { font-size: 9.5px; opacity: .8; line-height: 1.2; }
.lg-day.got { opacity: .5; } .lg-day.now { border-color: #f6c445; background: rgba(246,196,69,.16); box-shadow: 0 0 16px rgba(246,196,69,.3); }
.info-card:has(.login-row) { width: min(560px, 100%) !important; }
.chem { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(160,175,225,.16); }
.chem > b { font-family: var(--display); font-size: 18px; color: #4ade80; margin-right: 4px; }
.chem > span:not(.note) { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 35%, transparent); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); font-size: 12.5px; font-weight: 700; }
.chem img { width: 22px; height: 22px; }
.pack.event { box-shadow: 0 0 0 2px #ff4fd8, 0 0 24px rgba(255,79,216,.35); }
/* playoff bracket */
.bracket { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.bk-col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bk-col h4 { margin: 0 0 2px; font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: var(--gold-hi, #ffe08a); text-align: center; }
.bk-g { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid rgba(160,175,225,.2); background: rgba(8,12,30,.7); }
.bk-g.bye { border-style: dashed; } .bk-g.bye small { padding: 2px 8px 5px; font-size: 10.5px; opacity: .6; }
.bk-g.pending { padding: 14px; text-align: center; font-size: 12px; opacity: .55; }
.bk-t { display: grid; grid-template-columns: 18px 22px 1fr auto; align-items: center; gap: 6px; padding: 6px 9px; font-size: 13.5px; }
.bk-t + .bk-t { border-top: 1px solid rgba(255,255,255,.07); }
.bk-t i { font-style: normal; font-size: 10.5px; opacity: .55; text-align: center; } .bk-t img { width: 22px; height: 22px; }
.bk-t b { font-family: var(--display); font-size: 16px; } .bk-t.won { background: rgba(34,197,94,.12); } .bk-t.won b { color: #4ade80; } .bk-t.lost { opacity: .5; }
.bk-t.me { box-shadow: inset 3px 0 0 #f6c445; } .bk-t.tbd { opacity: .4; }
.bk-champ { text-align: center; font-family: var(--display); font-size: 20px; color: var(--gold-hi, #ffe08a); margin: 10px 0 0; }
.award-row .fr-ovr { font-size: 15px; } .hof-row .fr-ovr { background: linear-gradient(180deg, #ffe08a, #c58a00); color: #241500; font-size: 14px; }
.ht-hl { margin: 12px 0 4px; } .ht-hl h4 { margin: 0 0 6px; font-family: var(--display); color: var(--gold-hi, #ffe08a); letter-spacing: 1px; }
/* quick chat */
.quick-chat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.quick-chat button { padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(246,196,69,.45); background: rgba(10,16,36,.85); color: #ffe08a; font: 700 12.5px/1 system-ui, sans-serif; cursor: pointer; }
.quick-chat button:hover { background: rgba(246,196,69,.18); }
/* film room + crews */
.film-list, .crew-members { display: flex; flex-direction: column; gap: 8px; }
.film-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(160,175,225,.16); }
.film-row > div { flex: 1; display: flex; flex-direction: column; } .film-row small { opacity: .7; }
.crew-mine { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(246,196,69,.14), rgba(10,16,36,.6)); border: 1px solid rgba(246,196,69,.4); }
.crew-mine > div { flex: 1; } .crew-mine h3 { margin: 2px 0; } .crew-mine small, .crew-mine span { opacity: .85; font-size: 13px; }
.crew-members { flex-direction: row; flex-wrap: wrap; margin-bottom: 10px; }
.crew-m { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: inherit; font: inherit; cursor: pointer; }
.crew-m img { width: 22px; height: 22px; } .crew-m small { opacity: .65; margin-left: 2px; }
.crew-make { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .crew-form { display: flex; gap: 8px; flex-wrap: wrap; } .crew-form input { flex: 1; min-width: 120px; }
/* tab bars never hide tabs: they wrap onto a second row instead of scrolling off the edge */
.ut-tabs { flex-wrap: wrap; overflow: visible; }
.ut-tab { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.so-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.so-tabs { flex: 1 1 100%; }
.so-find { flex: 1 1 260px; max-width: 360px; margin-left: auto; }
.so-tabs .ut-tab { font-size: 18px; padding: 10px 14px; }
@media (max-width: 700px) { .so-tabs .ut-tab, .ut-tab { font-size: 15px; padding: 9px 10px; } }
#throw-meter.heat .tm-zone { box-shadow: 0 0 0 2px #ff5a5a inset; }
#throw-meter.heat span, #throw-meter.run span { color: #ffb36b; }

/* spectators get the field, the two teams and the scoreboard. Nothing else. */
#hud.spec > :not(.scorebug):not(#pause-btn):not(#intro) { display: none !important; }
#hud.spec .sb-pc { display: none !important; }
#pause.spec .pause-panel > .btn:not(#resume):not(#quit):not(#p-settings) { display: none !important; }
#gameover.spec #go-stats, #gameover.spec #go-rec, #gameover.spec #go-potg, #gameover.spec #go-hl, #gameover.spec #go-rewards, #gameover.spec #go-clip, #gameover.spec #go-again { display: none !important; }

/* ---------- Online Franchise ---------- */
.lg-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.lg-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10,16,36,.5); }
.lg-box h3, .lg-h { margin: 0; font-size: 17px; }
.lg-h { margin: 16px 0 8px; }
.lg-box input, .lg-trade select { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--night); color: var(--chalk); font: inherit; }
.lg-box small { color: var(--steel); }
.lg-list { display: grid; gap: 8px; }
.lg-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(26,37,84,.55); color: var(--chalk); cursor: pointer; font: inherit; }
.lg-row:hover { border-color: var(--gold); }
.lg-row span { color: var(--gold-hi); font-size: 13px; }
.lg-row small { color: var(--steel); grid-column: 1 / -1; }
.lg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.lg-head h3 { margin: 2px 0 0; font-size: 22px; }
.lg-head small { color: var(--steel); }
.lg-code { color: var(--gold-hi); letter-spacing: .12em; font-size: 18px; }
.lg-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 12px 0; }
.lg-mem { display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(10,16,36,.5); min-height: 52px; }
.lg-mem img { grid-row: span 3; width: 36px; height: 36px; }
.lg-mem span, .lg-mem small { color: var(--steel); font-size: 12px; }
.lg-mem small { color: var(--gold); }
.lg-mem.empty { display: flex; justify-content: center; border-style: dashed; opacity: .6; }
.lg-clock { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(26,37,84,.6); }
.lg-clock.me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.lg-clock div { flex: 1; display: flex; flex-direction: column; }
.lg-clock small { color: var(--steel); }
.lg-clock b { font-size: 18px; }
.lg-secs { font-size: 26px; font-weight: 900; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.lg-recent { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.lg-recent span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: rgba(10,16,36,.6); border: 1px solid var(--line); font-size: 12px; }
.lg-recent i { color: var(--steel); font-style: normal; }
.lg-filter { flex-wrap: wrap; margin-bottom: 8px; }
.lg-filter i { font-style: normal; color: var(--gold); font-size: 11px; }
.lg-pool { max-height: 46vh; overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.lg-pl { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); border-left: 4px solid var(--steel); background: rgba(10,16,36,.55); }
.lg-pl .ovr { font-size: 20px; text-align: center; }
.lg-pl span { display: flex; flex-direction: column; min-width: 0; }
.lg-pl small { color: var(--steel); font-size: 12px; }
.lg-pl.t-silver { border-left-color: #c9d1dd; } .lg-pl.t-gold { border-left-color: var(--gold); } .lg-pl.t-elite { border-left-color: #b57bff; } .lg-pl.t-kings { border-left-color: #ff6b6b; } .lg-pl.t-bronze { border-left-color: #cd7f32; }
label.lg-pl { cursor: pointer; grid-template-columns: auto 44px 1fr; }
label.lg-pl.on { border-color: var(--gold); }
.lg-teams { display: grid; gap: 8px; }
.lg-tm { border: 1px solid var(--line); border-radius: 10px; background: rgba(10,16,36,.5); padding: 4px 10px 8px; }
.lg-tm.me { border-color: var(--gold); }
.lg-tm summary { display: grid; grid-template-columns: 30px 1fr auto; gap: 0 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.lg-tm summary img { grid-row: span 2; width: 30px; height: 30px; }
.lg-tm summary span, .lg-tm summary small { color: var(--steel); font-size: 12px; }
.lg-tm summary small { grid-column: 2 / -1; }
.lg-tm .lg-pl { margin-top: 6px; }
.lg-next, .lg-champ { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px; margin-bottom: 14px; border-radius: 10px; border: 1px solid var(--gold); background: linear-gradient(120deg, rgba(246,196,69,.16), rgba(10,16,36,.4)); }
.lg-next div, .lg-champ div { display: flex; flex-direction: column; }
.lg-next small, .lg-champ small { color: var(--gold-hi); }
.lg-next b { font-size: 20px; } .lg-champ b { font-size: 26px; }
.lg-next span { color: var(--steel); font-size: 13px; }
.lg-champ { justify-content: flex-start; }
.lg-bracket .bk-t img { width: 22px; height: 22px; }
.lg-bracket .bk-t span { overflow-wrap: anywhere; }
.lg-bracket .bk-g small { display: block; color: var(--steel); font-size: 11px; }
.lg-bracket .bk-g .link { font-size: 12px; margin-top: 4px; }
.lg-trade h4 { margin: 14px 0 6px; }
.lg-trade h5 { margin: 8px 0 4px; color: var(--steel); }
.lg-offer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; }
.lg-offer p { flex: 1; margin: 0; min-width: 200px; }
.lg-tcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lg-tcols .lg-pl { margin-bottom: 6px; }
.lg-bracket .bk-t { grid-template-columns: 22px 1fr auto; }
