/* Pro Football Eleven 2027 — UI */
:root {
  --ink: #060b16; --navy: #0b1d3a; --navy2: #12294f; --red: #ff3b4e; --lime: #d9ff63; --ice: #9fb3d1; --white: #f4f7fb;
  --glass: rgba(7, 14, 28, 0.78); --glass2: rgba(12, 24, 46, 0.86); --line: rgba(159, 179, 209, 0.18);
  --cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; --sans: 'DM Sans', Arial, sans-serif;
  --home: #c8102e; --away: #7fb8e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--white); font-family: var(--sans); -webkit-user-select: none; user-select: none; }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: 50% 50%; overflow: hidden; background: var(--ink); }
canvas#game { position: absolute; inset: 0; width: 1280px; height: 720px; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
kbd { font-family: var(--cond); font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: var(--white); }
.hidden { display: none !important; }
.bt-inline { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-weight: 800; letter-spacing: 0.08em; }
.bt-inline svg { width: 18px; height: 18px; }

/* ---------------- screens */
.screen { position: absolute; inset: 0; display: none; z-index: 10; }
.screen.show { display: block; animation: screenIn 0.35s ease both; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

#splash { background: radial-gradient(ellipse at 50% 40%, #102446 0%, #060b16 70%); display: none; place-items: center; }
#splash.show { display: grid; }
.splash-mark { text-align: center; animation: splashMark 2.4s ease both; }
.bt-mark { width: 92px; height: 92px; filter: drop-shadow(0 10px 40px rgba(255,59,78,0.45)); }
.splash-word { font-family: var(--cond); font-weight: 800; font-size: 64px; letter-spacing: 0.22em; margin-top: 18px; }
.splash-sub { font-family: var(--cond); font-weight: 600; letter-spacing: 0.6em; color: var(--ice); font-size: 14px; margin-top: 6px; }
@keyframes splashMark { 0% { opacity: 0; transform: scale(0.94); letter-spacing: 0.4em; } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 1; } }
.splash-load { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); width: 320px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.splash-load i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--lime)); transition: width 0.2s; }
.splash-note { position: absolute; bottom: 36px; width: 100%; text-align: center; font-size: 12px; color: var(--ice); letter-spacing: 0.08em; }

/* ---------------- title */
#title { background: linear-gradient(180deg, rgba(6,11,22,0.25) 0%, rgba(6,11,22,0.05) 40%, rgba(6,11,22,0.85) 100%); }
.title-logo { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) skewX(-8deg); text-align: center; line-height: 0.82; filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6)); }
.tl-pro { font-family: var(--cond); font-weight: 700; font-size: 44px; letter-spacing: 0.42em; color: var(--white); margin-bottom: 0.35em; padding-left: 0.42em; }
.tl-eleven { font-family: var(--cond); font-weight: 800; font-size: 217.6px; letter-spacing: -0.01em; background: linear-gradient(180deg, #ffffff 0%, #dfe8f5 55%, #9fb3d1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-year { font-family: var(--cond); font-weight: 800; font-size: 89.6px; color: var(--lime); letter-spacing: 0.04em; margin-top: 0.08em; }
.tl-year span { color: var(--red); }
.press { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 0.32em; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.title-foot { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: var(--ice); font-size: 12px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0 16px; }
.title-foot .bt-inline { color: var(--white); font-size: 15px; }

/* ---------------- menus */
#menu, #teamSelect, #settings, #controls, #credits { background: linear-gradient(100deg, rgba(6,11,22,0.94) 0%, rgba(6,11,22,0.78) 45%, rgba(6,11,22,0.35) 100%); }
.menu-head { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 51.2px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(6,11,22,0.8), rgba(6,11,22,0)); }
.mini-logo, .load-logo { font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; transform: skewX(-8deg); }
.mini-logo b, .load-logo b { font-weight: 700; letter-spacing: 0.2em; font-size: 0.7em; margin-right: 6px; color: var(--ice); }
.mini-logo i, .load-logo i { color: var(--lime); font-style: normal; }
.menu-brand { color: var(--white); font-size: 15px; }
.screen-title { font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: 0.08em; transform: skewX(-6deg); }
.screen-sub { color: var(--ice); font-size: 13px; letter-spacing: 0.05em; }
.menu-list { position: absolute; left: 51.2px; top: 120px; width: 520px; display: flex; flex-direction: column; gap: 8px; }
.mi { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 14px 18px; background: rgba(255,255,255,0.035); border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.15s; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.mi-k { grid-row: span 2; font-family: var(--cond); font-weight: 700; color: var(--ice); font-size: 15px; }
.mi-t { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: 0.06em; }
.mi-d { font-size: 12px; color: var(--ice); opacity: 0; max-height: 0; transition: opacity 0.2s, max-height 0.2s; }
.mi.focus, .mi:hover { background: linear-gradient(90deg, rgba(255,59,78,0.22), rgba(255,59,78,0.02)); border-left-color: var(--red); transform: translateX(6px); }
.mi.focus .mi-d, .mi:hover .mi-d { opacity: 1; max-height: 20px; }
.mi.focus .mi-k { color: var(--lime); }
.menu-feature { position: absolute; right: 51.2px; bottom: 90px; width: 380px; padding: 18px 20px; background: var(--glass); border: 1px solid var(--line); border-top: 3px solid var(--lime); }
.menu-feature h4 { margin: 0 0 6px; font-family: var(--cond); font-size: 20px; letter-spacing: 0.06em; }
.menu-feature p { margin: 0; font-size: 13px; color: var(--ice); line-height: 1.5; }
.hints { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 51.2px; font-size: 12px; color: var(--ice); border-top: 1px solid var(--line); background: rgba(6,11,22,0.7); }

/* ---------------- team select */
.ts-wrap { position: absolute; top: 96px; left: 0; right: 0; display: grid; grid-template-columns: 1fr minmax(150px, 220px) 1fr; gap: 16px; padding: 0 51.2px; align-items: stretch; }
.ts-card { position: relative; background: var(--glass2); border: 1px solid var(--line); padding: 18px 20px; overflow: hidden; min-height: 300px; }
.ts-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c1, var(--red)); }
.ts-card.focus { border-color: rgba(217,255,99,0.6); box-shadow: 0 0 0 1px rgba(217,255,99,0.35), 0 20px 50px rgba(0,0,0,0.4); }
.ts-side { font-family: var(--cond); font-weight: 700; letter-spacing: 0.3em; font-size: 13px; color: var(--ice); }
.ts-club { display: flex; align-items: center; gap: 14px; margin: 12px 0 14px; }
.crest { width: 64px; height: 72px; flex: none; display: grid; place-items: center; font-family: var(--cond); font-weight: 800; font-size: 34px; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.ts-name { font-family: var(--cond); font-weight: 800; font-size: 33.28px; letter-spacing: 0.03em; line-height: 1; }
.ts-meta { color: var(--ice); font-size: 12px; margin-top: 4px; }
.ts-arrows { position: absolute; top: 16px; right: 14px; display: flex; gap: 6px; }
.ts-arrows button { width: 30px; height: 30px; background: rgba(255,255,255,0.08); border-radius: 4px; font-weight: 700; }
.ts-arrows button:hover { background: rgba(255,255,255,0.18); }
.bars { display: grid; grid-template-columns: 44px 1fr 30px; gap: 6px 10px; align-items: center; font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--ice); }
.bar { height: 6px; background: rgba(255,255,255,0.08); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #9ae64a); }
.kit-row { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.kit { width: 44px; height: 48px; position: relative; }
.kit svg { width: 100%; height: 100%; }
.kit-row small { color: var(--ice); font-size: 11px; }
.ts-form { margin-top: 12px; font-family: var(--cond); font-size: 15px; color: var(--ice); }
.ts-form b { color: var(--white); font-size: 18px; }
.ts-vs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.ts-vs > span { font-family: var(--cond); font-weight: 800; font-size: 46px; transform: skewX(-8deg); color: var(--ice); }
.ts-vs small { font-size: 11px; color: var(--ice); line-height: 1.4; }
.ts-ctrl { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ctrl-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-family: var(--cond); font-weight: 700; letter-spacing: 0.05em; transition: transform 0.2s; }
.ctrl-chip[data-side="home"] { background: rgba(255,59,78,0.25); border-color: rgba(255,59,78,0.6); }
.ctrl-chip[data-side="home"]::before { content: '◀'; color: var(--red); }
.ctrl-chip[data-side="away"] { background: rgba(127,184,230,0.22); border-color: rgba(127,184,230,0.6); }
.ctrl-chip[data-side="away"]::after { content: '▶'; color: var(--away); }
.ts-options { position: absolute; left: 51.2px; right: 51.2px; bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.opt span { color: var(--ice); font-size: 12px; letter-spacing: 0.12em; }
.opt b { display: flex; align-items: center; gap: 8px; }
.opt b::before, .opt b::after { content: '‹'; color: var(--ice); opacity: 0.5; }
.opt b::after { content: '›'; }
.opt.focus { border-color: var(--lime); background: rgba(217,255,99,0.08); }
.opt.go { justify-content: center; background: var(--red); border-color: var(--red); font-size: 20px; letter-spacing: 0.12em; }
.opt.go.focus { background: #ff5566; box-shadow: 0 0 0 2px var(--lime); }
.opt-list { position: absolute; top: 100px; left: 51.2px; width: 640px; display: flex; flex-direction: column; gap: 6px; max-height: 550px; overflow: auto; }

/* ---------------- controls / credits */
.controls-wrap, .credits-wrap { position: absolute; top: 96px; left: 51.2px; right: 51.2px; bottom: 60px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-content: start; }
.ctl-card { background: var(--glass); border: 1px solid var(--line); padding: 16px 18px; }
.ctl-card h3 { margin: 0 0 10px; font-family: var(--cond); font-size: 20px; letter-spacing: 0.08em; color: var(--lime); }
.ctl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.ctl-card dt { font-family: var(--cond); font-weight: 700; white-space: nowrap; }
.ctl-card dd { margin: 0; color: var(--ice); }
.credits-wrap p { color: var(--ice); font-size: 13px; line-height: 1.6; margin: 0 0 8px; }
.credits-wrap a { color: var(--lime); }

/* ---------------- loading */
#loading { background: radial-gradient(ellipse at 50% 30%, #0f2244 0%, #060b16 75%); }
.load-logo { position: absolute; top: 28px; left: 51.2px; }
.load-fixture { position: absolute; top: 40%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; gap: 64px; }
.load-fixture .lf-team { text-align: center; }
.load-fixture .crest { width: 96px; height: 108px; font-size: 52px; margin: 0 auto 12px; }
.load-fixture .lf-name { font-family: var(--cond); font-weight: 800; font-size: 38px; }
.load-fixture .lf-vs { font-family: var(--cond); font-weight: 800; font-size: 40px; color: var(--ice); transform: skewX(-8deg); }
.load-fixture .lf-venue { position: absolute; top: calc(100% + 26px); left: 0; right: 0; text-align: center; color: var(--ice); font-size: 13px; letter-spacing: 0.2em; font-family: var(--cond); font-weight: 700; }
.load-bar { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); width: 420px; height: 4px; background: rgba(255,255,255,0.1); }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--lime)); transition: width 0.25s; }
.load-tip { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; color: var(--ice); font-size: 13px; padding: 0 16px; }

/* ---------------- HUD */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sb { position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); display: flex; align-items: stretch; height: 38px; font-family: var(--cond); font-weight: 800; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45)); }
.sb > div { display: flex; align-items: center; }
.sb-brand { background: var(--red); padding: 0 9px; font-size: 15px; letter-spacing: 0.06em; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding-right: 14px; }
.sb-team { background: rgba(6,11,22,0.88); padding: 0 12px; font-size: 21px; letter-spacing: 0.04em; gap: 8px; }
.sb-team i { width: 5px; height: 22px; display: block; }
.sb-score { background: #f4f7fb; color: #0b1d3a; padding: 0 12px; font-size: 24px; gap: 6px; }
.sb-score span { opacity: 0.45; }
.sb-time { background: rgba(11,29,58,0.95); padding: 0 12px; font-size: 20px; color: var(--lime); min-width: 74px; justify-content: center; }
.sb-add { background: var(--lime); color: #0b1d3a; padding: 0 7px; font-size: 16px; }
.sb-live { position: absolute; top: calc(max(16px, env(safe-area-inset-top)) + 44px); left: max(16px, env(safe-area-inset-left)); font-family: var(--cond); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 6px; }
.sb-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.cursor { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; will-change: transform; }
.cur-name { font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6); white-space: nowrap; }
.cur-gauge { width: 54px; height: 6px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.5); opacity: 0; transition: opacity 0.1s; }
.cur-gauge.on { opacity: 1; }
.cur-gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #69f06b, #f5e94b 70%, #ff4a3d); }
.cur-tri { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--cur, #ffd400); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
.cursor.p2 .cur-tri { --cur: #4ad6ff; }
.radar-wrap { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 5px; background: rgba(6,11,22,0.55); border: 1px solid rgba(255,255,255,0.15); }
#radar { display: block; width: 236px; height: 152px; }
.ply-card { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: rgba(6,11,22,0.75); border-left: 3px solid var(--lime); font-family: var(--cond); }
.pc-num { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,0.08); font-weight: 800; font-size: 24px; }
.ply-card b { display: block; font-size: 17px; letter-spacing: 0.04em; }
.ply-card small { color: var(--ice); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; }
.pc-sta { width: 110px; height: 4px; background: rgba(255,255,255,0.12); margin-top: 4px; }
.pc-sta i { display: block; height: 100%; width: 100%; background: var(--lime); transition: width 0.3s; }
.notify { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-family: var(--cond); font-weight: 800; font-size: 36px; letter-spacing: 0.18em; padding: 6px 26px; background: linear-gradient(90deg, transparent, rgba(6,11,22,0.85) 15%, rgba(6,11,22,0.85) 85%, transparent); opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.notify.on { opacity: 1; }
.notify.yellow { color: #ffd84a; } .notify.red { color: #ff5a5a; }
.sp-hint { position: absolute; bottom: 190px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #fff; background: rgba(6,11,22,0.75); padding: 7px 14px; border: 1px solid var(--line); white-space: nowrap; }
.cam-label { position: absolute; top: 20px; right: 70px; font-family: var(--cond); font-weight: 700; letter-spacing: 0.14em; background: rgba(6,11,22,0.75); padding: 6px 12px; }
.pause-btn { pointer-events: auto; position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 42px; height: 42px; background: rgba(6,11,22,0.7); border: 1px solid rgba(255,255,255,0.2); font-family: var(--cond); font-weight: 800; font-size: 16px; }

/* goal banner / replay / wipe */
#goalBanner { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 8; pointer-events: none; text-align: center; }
.gb-strip { position: absolute; left: 0; right: 0; top: 50%; height: 120px; transform: translateY(-50%) skewY(-3deg); background: linear-gradient(90deg, transparent, rgba(255,59,78,0.92) 12%, rgba(255,59,78,0.92) 88%, transparent); animation: strip 0.5s cubic-bezier(.2,.9,.2,1) both; }
.gb-word { position: relative; font-family: var(--cond); font-weight: 800; font-size: 190px; letter-spacing: 0.08em; line-height: 1; transform: skewX(-10deg); text-shadow: 0 8px 30px rgba(0,0,0,0.5); animation: goalWord 0.6s cubic-bezier(.2,1.4,.3,1) both; }
.gb-info { position: relative; margin-top: 8px; font-family: var(--cond); font-weight: 700; font-size: 26px; display: flex; gap: 14px; justify-content: center; text-shadow: 0 2px 8px rgba(0,0,0,0.6); animation: screenIn 0.4s 0.3s both; }
.gb-info span { color: var(--lime); }
@keyframes strip { from { transform: translateY(-50%) skewY(-3deg) scaleX(0); } to { transform: translateY(-50%) skewY(-3deg) scaleX(1); } }
@keyframes goalWord { from { opacity: 0; transform: skewX(-10deg) scale(2.2); } to { opacity: 1; transform: skewX(-10deg) scale(1); } }
#replayTag { position: absolute; top: 22px; right: 70px; z-index: 8; font-family: var(--cond); font-weight: 800; font-size: 26px; letter-spacing: 0.2em; display: flex; align-items: center; gap: 10px; background: rgba(6,11,22,0.8); padding: 6px 16px; border-left: 4px solid var(--red); }
#replayTag svg { width: 22px; height: 22px; }
#replayTag small { font-size: 11px; letter-spacing: 0.1em; color: var(--ice); font-weight: 600; margin-left: 10px; }
#wipe { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: grid; place-items: center; transform: translateX(-110%); visibility: hidden; overflow: hidden; }
#wipe.run { visibility: visible; }
#wipe.run { animation: wipe 0.9s cubic-bezier(.6,0,.4,1) both; }
@keyframes wipe { 0% { transform: translateX(-110%); } 40%, 60% { transform: translateX(0); } 100% { transform: translateX(110%); } }
.wipe-in { width: 1800px; height: 720px; background: linear-gradient(90deg, transparent 0, #0b1d3a 12%, #0b1d3a 88%, transparent 100%); display: flex; align-items: center; justify-content: center; gap: 18px; transform: skewX(-12deg); }
.wipe-in svg { width: 70px; height: 70px; }
.wipe-in span { font-family: var(--cond); font-weight: 800; font-size: 34px; letter-spacing: 0.16em; transform: skewX(12deg); }
#fade { position: absolute; inset: 0; z-index: 9; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
#fade.on { opacity: 1; }
#lineup { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 60px 64px; gap: 20px; }
.lu-col { background: rgba(6,11,22,0.8); border-top: 4px solid var(--c1); padding: 16px 20px; animation: screenIn 0.5s both; }
.lu-col h3 { margin: 0 0 4px; font-family: var(--cond); font-size: 28px; letter-spacing: 0.04em; }
.lu-col .f { color: var(--ice); font-family: var(--cond); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 10px; }
.lu-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--cond); font-size: 17px; }
.lu-col li { display: grid; grid-template-columns: 34px 44px 1fr; gap: 6px; }
.lu-col li b { color: var(--lime); }
.lu-col li span { color: var(--ice); font-size: 14px; }

/* overlays */
.overlay { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; background: rgba(4,8,16,0.6); backdrop-filter: blur(4px); }
.overlay.show { display: grid; animation: screenIn 0.2s both; }
.ov-panel { width: 440px; background: var(--glass2); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 22px; max-height: 688px; overflow: auto; }
.ov-panel.wide { width: 720px; }
.ov-title { font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: 0.12em; transform: skewX(-6deg); }
.ov-score { font-family: var(--cond); font-weight: 800; font-size: 22px; color: var(--ice); margin: 6px 0 14px; }
.ov-score.big { font-size: 40px; color: var(--white); display: flex; gap: 18px; align-items: center; }
.ov-list { display: flex; flex-direction: column; gap: 6px; }
.ov-list.row { flex-direction: row; flex-wrap: wrap; margin-top: 16px; }
.ov-list .mi { grid-template-columns: 1fr; padding: 11px 16px; }
.ov-list .mi-t { font-size: 20px; }
.ov-list .mi em { font-style: normal; color: var(--lime); }
.ov-goals { color: var(--ice); font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.stats { width: 100%; border-collapse: collapse; font-family: var(--cond); font-size: 17px; }
.stats td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.stats td:nth-child(1), .stats td:nth-child(3) { width: 22%; font-weight: 800; }
.stats td:nth-child(2) { color: var(--ice); font-weight: 600; letter-spacing: 0.08em; font-size: 14px; }
.stats .sbar { display: flex; height: 4px; margin-top: 3px; background: rgba(255,255,255,0.08); }

/* touch */
#touch { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
#joystick { pointer-events: auto; position: absolute; left: 34px; bottom: 34px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.06), rgba(255,255,255,0.12)); border: 2px solid rgba(255,255,255,0.22); touch-action: none; }
#joystick i { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; border-radius: 50%; background: rgba(255,255,255,0.32); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.t-btns { position: absolute; right: 30px; bottom: 26px; width: 330px; height: 330px; pointer-events: none; }
.tb { pointer-events: auto; position: absolute; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; font-family: var(--cond); font-weight: 800; font-size: 17px; letter-spacing: 0.05em; color: #fff; background: rgba(8,16,32,0.42); border: 3px solid rgba(255,255,255,0.35); touch-action: none; -webkit-user-select: none; user-select: none; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.tb small { font-size: 11px; opacity: 0.75; letter-spacing: 0.08em; }
.tb.on { background: rgba(217,255,99,0.5); color: #0b1d3a; text-shadow: none; }
.tb.a { right: 110px; bottom: 0; border-color: #6fdc6a; }
.tb.b { right: 0; bottom: 100px; border-color: #ff5a5a; }
.tb.x { right: 220px; bottom: 100px; border-color: #4aa8ff; }
.tb.y { right: 110px; bottom: 200px; border-color: #ffd23f; }
.tb.s, .tb.l { width: 78px; height: 78px; font-size: 15px; }
.tb.s { right: 0; bottom: 228px; }
.tb.l { right: 228px; bottom: 228px; }
.tb.f { right: 236px; bottom: 6px; width: 70px; height: 70px; font-size: 14px; }
#error { position: absolute; inset: auto 16px 16px 16px; z-index: 30; background: #3b0d14; border: 1px solid var(--red); padding: 14px; font-size: 13px; }

/* touch layout (set on <body class="touch">) */
body.touch .hints, body.touch .ply-card, body.touch .key-legend { display: none; }
body.touch .radar-wrap { left: auto; right: 118px; top: 14px; bottom: auto; transform: scale(0.72); transform-origin: top right; }
body.touch .sp-hint { bottom: 250px; }
#rotate { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; text-align: center; background: #060b16; color: #f4f7fb; font: 700 20px 'Barlow Condensed', Arial, sans-serif; letter-spacing: 0.08em; padding: 24px; }
#rotate.on { display: grid; }
.key-legend { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 10px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: rgba(255,255,255,0.85); background: rgba(6,11,22,0.6); padding: 6px 10px; border: 1px solid rgba(255,255,255,0.12); pointer-events: none; }
.key-legend kbd { margin-right: 3px; }
.fs-btn { position: absolute; right: 16px; bottom: 6px; z-index: 12; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(6,11,22,0.7); border: 1px solid rgba(255,255,255,0.22); color: #fff; }
.fs-btn:hover { background: rgba(217,255,99,0.25); }
body.in-match .fs-btn { top: max(14px, env(safe-area-inset-top)); bottom: auto; right: 64px; width: 42px; height: 42px; }
body.in-match.touch .fs-btn { right: 64px; }
body.touch .cam-label { top: 140px; right: 14px; }
#rotate p { margin: 14px 0 4px; font-size: 26px; }
#rotate small { font: 500 14px 'DM Sans', Arial, sans-serif; letter-spacing: 0; color: #9fb3d1; }
.key-legend span { display: inline-flex; align-items: center; gap: 4px; }
body.touch { touch-action: none; overscroll-behavior: none; }
body:not(.touch) #touch { display: none !important; }

/* ---------------- menu: 9 items, compact rows */
.menu-list { top: 104px; gap: 5px; }
#menuList .mi { padding: 9px 18px; }
#menuList .mi-t { font-size: 21px; }
#menuList .mi.hot .mi-t::after { content: 'NEW'; margin-left: 10px; padding: 1px 6px; font-size: 11px; letter-spacing: 0.12em; color: #0b1d3a; background: var(--lime); vertical-align: middle; position: relative; top: -3px; }

/* ---------------- ads (test double) */
#fakeAd { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,0.92); color: #fff; font-family: var(--cond); text-align: center; }
#fakeAd b { display: block; font-size: 44px; letter-spacing: 0.1em; }
#fakeAd small { color: var(--ice); font-size: 14px; }
body.ad-playing #stage { pointer-events: none; }

/* ---------------- turbo setup */
.opt-list.narrow { width: 560px; }
.opt.go-row { justify-content: center; background: var(--red); border-color: var(--red); font-size: 20px; letter-spacing: 0.12em; }
.opt.go-row.focus { background: #ff5566; box-shadow: 0 0 0 2px var(--lime); }
.opt.ad-row { justify-content: center; background: rgba(217,255,99,0.12); border-color: rgba(217,255,99,0.6); color: var(--lime); letter-spacing: 0.1em; }
.opt.ad-row.focus { background: rgba(217,255,99,0.24); }
.opt.locked b { color: #ffd23f; }
.turbo-card { position: absolute; right: 51.2px; bottom: 74px; width: 400px; padding: 16px 18px; background: var(--glass); border: 1px solid var(--line); border-top: 3px solid #ff7a18; }
.turbo-card h4 { margin: 0 0 6px; font-family: var(--cond); font-size: 22px; letter-spacing: 0.06em; }
.turbo-card p { margin: 0 0 6px; font-size: 13px; color: var(--ice); line-height: 1.5; }
.turbo-card .lock { color: #ffd23f; font-weight: 700; }

/* ---------------- turbo hud */
#turboHud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
body:not(.turbo) #turboHud { display: none; }
body.turbo .radar-wrap, body.turbo .ply-card, body.turbo .cursor, body.turbo #keyLegend, body.turbo .sb-live, body.turbo .sp-hint { display: none !important; }
#turboHud .boost { position: absolute; right: 22px; bottom: 22px; width: 132px; height: 132px; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, rgba(6,11,22,0.75) 55%, rgba(6,11,22,0) 70%); }
#turboHud .boost svg { position: absolute; inset: 0; transform: rotate(-90deg); }
#turboHud .boost circle { fill: none; stroke-width: 8; }
#turboHud .boost .bg { stroke: rgba(255,255,255,0.12); }
#turboHud .boost .fg { stroke: #ffb21a; stroke-dasharray: 283; stroke-dashoffset: 190; stroke-linecap: round; transition: stroke-dashoffset 0.12s; filter: drop-shadow(0 0 6px rgba(255,178,26,0.8)); }
#turboHud.low .boost .fg { stroke: #ff4d4d; }
#turboHud .boost b { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; }
#turboHud .boost small { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; color: var(--ice); }
#turboHud .speed { position: absolute; right: 160px; bottom: 34px; text-align: right; font-family: var(--cond); }
#turboHud .speed b { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
#turboHud .speed small { color: var(--ice); letter-spacing: 0.2em; font-size: 11px; font-weight: 700; }
#turboHud.super .speed b { color: #9fe7ff; text-shadow: 0 0 10px rgba(110,210,255,0.9); }
#turboHud.spectate .boost, #turboHud.spectate .speed { display: none; }
#turboHud .t-legend { position: absolute; left: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 620px; font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); background: rgba(6,11,22,0.55); padding: 6px 10px; border: 1px solid rgba(255,255,255,0.1); }
#turboHud .t-legend kbd { margin-right: 2px; }
body.touch #turboHud .t-legend { display: none; }
body.touch #turboHud .boost { right: auto; left: 250px; bottom: 30px; width: 104px; height: 104px; }
body.touch #turboHud .boost b { font-size: 34px; }
body.touch #turboHud .speed { right: auto; left: 362px; bottom: 44px; text-align: left; }
#turboHud .respawn { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-family: var(--cond); font-weight: 800; font-size: 28px; letter-spacing: 0.14em; background: rgba(120,10,20,0.75); padding: 6px 20px; }
#turboCount { position: absolute; left: 0; right: 0; top: 34%; text-align: center; z-index: 8; pointer-events: none; font-family: var(--cond); font-weight: 800; font-size: 150px; line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(255,180,40,0.9), 0 8px 30px rgba(0,0,0,0.6); transform: skewX(-8deg); }
#turboCount.pop { animation: countPop 0.6s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes countPop { from { transform: skewX(-8deg) scale(2.2); opacity: 0; } to { transform: skewX(-8deg) scale(1); opacity: 1; } }
body.turbo #goalBanner .gb-strip { background: linear-gradient(90deg, transparent, var(--gb, #ff7a18) 12%, var(--gb, #ff7a18) 88%, transparent); opacity: 0.92; }
.stats.turbo-stats td { width: auto !important; font-size: 15px; }
.stats.turbo-stats tr.th td { color: var(--ice); font-size: 12px; letter-spacing: 0.1em; font-weight: 700; }

/* ---------------- penalty shootout panel (WE style) */
.so-panel { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); min-width: 380px; padding: 10px 16px 8px; background: linear-gradient(180deg, rgba(6,11,22,0.92), rgba(12,24,46,0.88)); border: 1px solid rgba(255,255,255,0.14); border-top: 3px solid var(--lime); font-family: var(--cond); }
.so-panel .so-title { text-align: center; font-weight: 800; font-size: 13px; letter-spacing: 0.3em; color: var(--lime); margin-bottom: 6px; }
.so-panel .so-row { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 10px; padding: 3px 0; }
.so-panel .so-row.turn { background: linear-gradient(90deg, rgba(217,255,99,0.14), transparent); }
.so-panel .so-team { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; }
.so-panel .so-team i { width: 5px; height: 18px; background: var(--c); }
.so-panel .so-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.so-panel .so-dots span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.so-panel .so-dots span.g { background: #1fbf5c; border-color: #6fff9e; }
.so-panel .so-dots span.m { background: #d4283a; border-color: #ff7a85; }
.so-panel .so-dots span.sd { border-style: dashed; }
.so-panel .so-n { text-align: right; font-weight: 800; font-size: 24px; }
.so-panel .so-kicker { margin-top: 6px; text-align: center; font-size: 15px; letter-spacing: 0.06em; color: #fff; }
.so-panel .so-kicker small { color: var(--ice); letter-spacing: 0.14em; margin-right: 6px; }

/* ---------------- cup hub */
.cup-bracket { position: absolute; top: 100px; left: 51.2px; right: 51.2px; height: 330px; display: grid; grid-template-columns: 1fr 1fr 1fr 0.8fr; gap: 18px; }
.cup-col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.cup-col h5 { margin: 0 0 2px; font-family: var(--cond); font-size: 13px; letter-spacing: 0.24em; color: var(--ice); }
.cup-tie { background: var(--glass); border: 1px solid var(--line); font-family: var(--cond); font-weight: 700; font-size: 15px; }
.cup-tie.user { border-color: rgba(217,255,99,0.6); box-shadow: 0 0 0 1px rgba(217,255,99,0.25); }
.cup-tie .r { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 5px 10px; }
.cup-tie .r + .r { border-top: 1px solid var(--line); }
.cup-tie .r i { width: 6px; height: 16px; background: var(--c); }
.cup-tie .r.lose { opacity: 0.45; }
.cup-tie .r.me span { color: var(--lime); }
.cup-tie .r b small { color: var(--ice); font-size: 11px; margin-left: 4px; }
.cup-tie.tbd { opacity: 0.4; }
.cup-champ { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(255,210,63,0.18), transparent 70%); border: 1px solid rgba(255,210,63,0.35); }
.cup-champ svg { width: 90px; height: 90px; filter: drop-shadow(0 0 16px rgba(255,210,63,0.6)); }
.cup-champ b { font-family: var(--cond); font-size: 22px; letter-spacing: 0.06em; }
.cup-champ small { color: var(--ice); font-family: var(--cond); letter-spacing: 0.2em; font-size: 12px; }
.opt-list.cup-opts { top: auto; bottom: 66px; width: 560px; }
#toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 40; padding: 10px 20px; background: rgba(6,11,22,0.92); border: 1px solid var(--lime); color: #fff; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.ov-list .mi.reward .mi-t { color: var(--lime); }
body.turbo #pauseList [data-act="replay"] { display: none; }
body.shootout .notify { top: 30%; }
body.shootout .radar-wrap { display: none; }
.cup-tie { background: rgba(6,11,22,0.9); }
.cup-col h5 { background: rgba(6,11,22,0.85); padding: 4px 8px; display: inline-block; align-self: flex-start; }
.cup-champ { background: radial-gradient(circle at 50% 40%, rgba(255,210,63,0.22), rgba(6,11,22,0.88) 70%); }
body.turbo #touch .tb.s, body.turbo #touch .tb.l, body.turbo #touch .tb.f { display: none; }
