/* =====================================================================
   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; }
