/* Menus, panels and overlays */
.menu-layer { display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 14px 26px; background: linear-gradient(180deg, rgba(5,6,9,.92), rgba(5,6,9,.0)); }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: .08em; cursor: pointer; display: flex; align-items: baseline; gap: 4px; }
.brand b { color: var(--accent); font-size: 26px; font-style: italic; }
.brand small { font-family: var(--font); font-size: 11px; color: var(--dim); margin-left: 6px; letter-spacing: .1em; }
.tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tab { white-space: nowrap; padding: 9px 13px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-radius: 8px; transition: color .15s, background .15s; }
.tab:hover:not([disabled]) { color: var(--text); background: rgba(255,255,255,.05); }
.tab.on { color: #111; background: var(--accent); font-weight: 700; }
.tab[disabled] { opacity: .35; cursor: default; }
.tb-right { display: flex; gap: 10px; align-items: center; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; }
.pill.vc i { font-style: normal; font-family: var(--display); color: #111; background: var(--accent); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.pill.who b { font-family: var(--display); color: var(--accent); }
.pill.rep { color: var(--accent); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 16px; }
.screen { flex: 1; display: flex; gap: 22px; padding: 6px 26px 26px; min-height: 0; align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: auto; max-height: calc(100vh - 100px); }
.panel::-webkit-scrollbar { width: 8px; } .panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
h1 { font-family: var(--display); font-size: 38px; margin: 4px 0 14px; letter-spacing: .01em; line-height: 1.05; }
h2 { font-family: var(--display); font-size: 28px; margin: 4px 0 12px; }
h3 { font-family: var(--display); font-size: 20px; margin: 16px 0 8px; }
h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 10px 0 6px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 12px; } .big { font-family: var(--display); font-size: 20px; }
kbd { font-family: var(--font); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: var(--text); }
.row { display: flex; align-items: center; flex-wrap: wrap; } .col { display: flex; flex-direction: column; }
.gap { gap: 10px; } .end { justify-content: flex-end; } .between { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; transition: transform .08s, background .15s, filter .15s; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ffe27a, var(--accent)); color: #121212; border: 0; box-shadow: 0 8px 24px rgba(255,216,74,.25); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.big { padding: 15px 30px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.chip { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip:hover { color: var(--text); } .chip.on { background: var(--accent); color: #111; border-color: transparent; font-weight: 600; }
.chip.ghost { border-style: dashed; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.sw { width: 28px; height: 28px; border-radius: 50%; background: var(--v); border: 2px solid rgba(255,255,255,.15); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,216,74,.6); }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; margin: 8px 0; }
.seg button { padding: 8px 16px; border-radius: 8px; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.seg button.on { background: rgba(255,255,255,.14); color: var(--text); }
.seg.small button { padding: 6px 12px; font-size: 12px; }
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; flex-wrap: wrap; }
.subtabs button { padding: 10px 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button.on { color: var(--text); border-color: var(--accent); }
.text { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 15px; flex: 1; min-width: 0; }
.text.num { max-width: 80px; flex: none; } .text.abbr { max-width: 90px; flex: none; text-transform: uppercase; }
select { background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 8px; }
.bar { position: relative; display: inline-block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); flex: 1; min-width: 60px; overflow: visible; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #8fb6ff, #d4e3ff); }
.bar em { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--accent); }
.bar.pending i { background: linear-gradient(90deg, #ffd84a, #fff0b0); }
.bar.small { height: 4px; } .rep-bar i { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.rep-bar { display: block; margin: 6px 0 2px; }

/* Home */
.home-left { width: min(600px, 48vw); }
.player-name { font-size: 48px; margin-bottom: 6px; }
.ovr-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ovr { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 14px; background: linear-gradient(160deg, #ffe27a, #e6a923); color: #111; }
.ovr b { font-family: var(--display); font-size: 40px; line-height: 1; } .ovr small { font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.ovr.dim { background: rgba(255,255,255,.08); color: var(--text); }
.ovr-side { flex: 1; } .rep-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-family: var(--display); margin-top: 8px; }
.stat-strip { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0 16px; flex-wrap: wrap; }
.stat-strip > div { flex: 1; min-width: 80px; padding: 10px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { display: block; font-family: var(--display); font-size: 22px; } .stat-strip small { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.tile { text-align: left; padding: 16px 18px; border-radius: 14px; background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform .12s, border-color .15s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.tile.big { grid-column: span 2; padding: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 45%, transparent), rgba(255,255,255,.03)); }
.tile-k { font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.tile b { font-family: var(--display); font-size: 22px; } .tile.big b { font-size: 30px; }
.tile small { color: var(--muted); font-size: 13px; }
.tile.proam { background: linear-gradient(140deg, rgba(63,160,255,.18), rgba(255,255,255,.02)); }
.tile.store { background: linear-gradient(140deg, rgba(255,90,54,.18), rgba(255,255,255,.02)); }
.controls-hint { margin-top: 16px; }

/* Builder & MyPlayer */
.builder { width: min(560px, 46vw); }
.builder-side { width: 300px; margin-left: auto; }
.step { border-top: 1px solid var(--line); padding-top: 4px; }
.arch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.arch { text-align: left; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; flex-direction: column; }
.arch b { font-size: 15px; } .arch small { color: var(--muted); font-size: 12px; }
.arch.on { border-color: var(--accent); background: rgba(255,216,74,.1); }
.slider { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted); font-size: 13px; }
.slider b { color: var(--text); font-family: var(--display); min-width: 64px; }
.slider input { flex: 1; accent-color: var(--accent); }
.look { display: flex; flex-direction: column; }
.attr-group { margin-bottom: 8px; }
.attr-row { display: grid; grid-template-columns: 112px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.attr-row b { font-family: var(--display); text-align: right; }
.attr-row.up { grid-template-columns: 120px 1fr 30px 112px; }
.steppers { display: flex; gap: 4px; justify-content: flex-end; }
.steppers button { width: 30px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 13px; }
.steppers button:hover:not(:disabled) { background: var(--accent); color: #111; }
.steppers button:disabled { opacity: .25; }
.mp { width: min(820px, 64vw); }
.mp-head { display: flex; justify-content: space-between; align-items: center; }
.attr-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 26px; margin-top: 10px; }
.sticky-actions { position: sticky; bottom: -22px; background: linear-gradient(0deg, rgba(12,15,20,.98) 70%, transparent); padding: 14px 0 6px; margin-top: 12px; gap: 12px; }
.group-h { margin-top: 16px; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badge { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.badge-icon { width: 46px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); background: #2a2f37; color: #6b7480; }
.badge.bronze .badge-icon { background: linear-gradient(160deg, #e3a06a, #8a5329); color: #2a160a; }
.badge.silver .badge-icon { background: linear-gradient(160deg, #f1f4f8, #8d98a6); color: #1d232b; }
.badge.gold .badge-icon { background: linear-gradient(160deg, #ffe58a, #c8961d); color: #2b1f04; }
.badge.hof .badge-icon { background: linear-gradient(160deg, #e9b6ff, #6f3cd6); color: #fff; }
/* v0.4.7.5 badge art, tier pips and Hall of Fame cards */
.badge-art { width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.badge-art svg { display: block; }
.badge.hof { border: 1.5px solid transparent; background: linear-gradient(180deg, rgba(30,12,52,.92), rgba(14,8,28,.92)) padding-box, var(--hof-grad) border-box; background-size: 100% 100%, 300% 100%; animation: hofShift 6s linear infinite, hofGlow 2.4s ease-in-out infinite; }
.badge.hof .badge-info > b { background: var(--hof-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hofShift 6s linear infinite; }
.badge.gold { border-color: rgba(242,193,78,.45); } .badge.silver { border-color: rgba(213,220,229,.3); } .badge.bronze { border-color: rgba(194,122,67,.35); }
.pips { display: flex; align-items: center; gap: 4px; margin: 2px 0; }
.pips .pip { width: 18px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); }
.pips .pip.on.p1 { background: #c27a43; } .pips .pip.on.p2 { background: #d5dce5; } .pips .pip.on.p3 { background: #f2c14e; }
.pips .pip.on.p4 { background: var(--hof-grad); background-size: 300% 100%; animation: hofShift 6s linear infinite; }
.pips .pip.locked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 3px, rgba(255,255,255,.16) 3px 5px); opacity: .7; }
.pips em { font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.badge-build { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.badge-build span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.badge-build b { font-family: var(--display); font-size: 20px; } .badge-build small { color: var(--muted); font-size: 12px; margin-right: 8px; }
.icon-art-wrap { width: 76px; height: 76px; flex: none; display: grid; place-items: center; }
.icon-unlock { display: flex; align-items: center; gap: 12px; }
.tag.badge-up { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.tag.badge-up svg { flex: none; }
.badge-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.badge-info small { font-size: 11.5px; color: var(--muted); }
.anim-slot { border-top: 1px solid var(--line); padding-top: 4px; }
.player-list { display: flex; flex-direction: column; gap: 8px; }
.player-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: left; }
.player-card b { font-family: var(--display); font-size: 26px; color: var(--accent); width: 44px; }
.player-card span { display: flex; flex-direction: column; font-size: 16px; } .player-card small { color: var(--muted); font-size: 12px; }
.player-card.on { border-color: var(--accent); } .player-card.new { justify-content: center; color: var(--muted); border-style: dashed; }

/* Store */
.store { width: min(660px, 52vw); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: left; transition: border-color .15s, transform .1s; }
.item:hover { transform: translateY(-2px); } .item.on { border-color: var(--accent); background: rgba(255,216,74,.08); }
.item b { font-size: 13px; line-height: 1.2; } .item small { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.item.owned small { color: var(--good); }
.sw-item { height: 64px; border-radius: 8px; background: linear-gradient(135deg, var(--a) 0 62%, var(--b) 62% 70%, var(--a) 70%); position: relative; }
.sw-green { height: 64px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, rgba(54,224,122,.35), rgba(54,224,122,.05) 55%, transparent 70%), linear-gradient(135deg, #17251d, #0f1613); }
.sw-green i { font-style: normal; font-size: 28px; color: #36e07a; text-shadow: 0 0 10px rgba(54,224,122,.8); }
.sw-green.gold { background: radial-gradient(circle at 50% 45%, rgba(232,193,90,.4), rgba(232,193,90,.06) 55%, transparent 70%), linear-gradient(135deg, #2a2312, #15120a); }
.sw-green.gold i { color: #f0cf6a; text-shadow: 0 0 10px rgba(240,207,106,.85); }
.sw-anim { height: 64px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; letter-spacing: .1em; background: linear-gradient(135deg, #2b3340, #1a1f27); color: var(--accent); }
.store-detail { width: 300px; margin-left: auto; align-self: flex-end; }
.price { font-family: var(--display); font-size: 30px; margin: 10px 0; color: var(--accent); }
.lock { color: var(--bad); font-size: 13px; }

/* Modes */
.wide-panel { width: min(780px, 62vw); }
.aff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 18px; }
.aff { text-align: left; padding: 22px 18px; border-radius: 14px; min-height: 170px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #000) , color-mix(in srgb, var(--d) 18%, #0b0d10)); border: 1px solid rgba(255,255,255,.1); transition: transform .12s; }
.aff:hover { transform: translateY(-3px); }
.aff-k { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.75); }
.aff b { font-family: var(--display); font-size: 24px; } .aff small { color: rgba(255,255,255,.75); font-size: 13px; }
.aff-grid.small .aff { min-height: 110px; padding: 14px; } .aff.home { box-shadow: 0 0 0 2px var(--accent); }
/* v0.4.8.5: other parks stay locked until Pro 1 */
.aff.locked { filter: grayscale(.75) brightness(.7); cursor: not-allowed; } .aff.locked:hover { transform: none; }
.proam-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.roster { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.roster-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.roster-row b { font-family: var(--display); font-size: 20px; width: 34px; color: var(--accent); }
.roster-row span { display: flex; flex-direction: column; } .roster-row small { color: var(--muted); font-size: 12px; }
.roster-row.me { border: 1px solid var(--accent); }

/* Park overlay */
.park-top { position: absolute; left: 22px; top: 18px; right: 22px; display: flex; gap: 16px; align-items: center; pointer-events: none; }
.park-badge { padding: 10px 16px; border-radius: 12px; background: rgba(8,10,14,.75); border-left: 4px solid var(--c); display: flex; flex-direction: column; }
.park-badge b { font-family: var(--display); font-size: 20px; } .park-badge small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.park-rep { min-width: 220px; padding: 10px 14px; border-radius: 12px; background: rgba(8,10,14,.6); font-family: var(--display); }
.park-keys { margin-left: auto; background: rgba(8,10,14,.55); padding: 8px 12px; border-radius: 10px; }
.prompt-layer { z-index: 6; pointer-events: none; }
.prompt { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 12px 20px; border-radius: 12px; background: rgba(8,10,14,.82); border: 1px solid rgba(255,255,255,.12); font-size: 16px; letter-spacing: .03em; }

/* Modal, toast, results */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(2,3,5,.55); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 92vw); max-height: 88vh; overflow: auto; background: linear-gradient(180deg, rgba(20,24,31,.98), rgba(12,14,19,.98)); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: rise .22s ease-out; }
.modal-card.wide { width: min(860px, 94vw); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.modal-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.auth .logo-big { font-size: 44px; } .logo-big b { color: var(--accent); font-style: italic; }
.divider { text-align: center; color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 6px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.form input { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--text); font-size: 15px; }
.form-error { color: var(--bad); font-size: 13px; min-height: 18px; }
.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 30; padding: 12px 20px; border-radius: 12px; background: rgba(12,15,20,.94); border: 1px solid var(--line); font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: 80vw; }
.toast.error { border-color: rgba(255,91,87,.6); color: #ffd2d0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.settings-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
table.controls { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
table.controls th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.controls td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.results h1 { font-size: 46px; } .results.win h1 { color: var(--good); } .results.loss h1 { color: #ff8f8a; }
.results .score { color: var(--text); margin-left: 10px; }
.reward-row { display: flex; gap: 10px; margin: 6px 0 12px; }
.reward { flex: 1; padding: 12px; border-radius: 12px; background: rgba(255,216,74,.08); border: 1px solid rgba(255,216,74,.25); text-align: center; }
.reward b { display: block; font-family: var(--display); font-size: 26px; color: var(--accent); } .reward small { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.badge-ups { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08); }
.tag.hot { background: var(--accent); color: #111; font-weight: 700; } .tag.bronze { background: #8a5329; } .tag.silver { background: #8d98a6; color: #111; } .tag.gold { background: #c8961d; color: #111; }
.help-overlay { position: fixed; right: 20px; top: 80px; z-index: 12; width: min(560px, 90vw); max-height: 80vh; overflow: auto; background: rgba(10,12,16,.92); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fps { position: fixed; right: 10px; bottom: 8px; z-index: 40; font-size: 11px; color: #9ff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 4px; pointer-events: none; }

/* Boot */
.boot { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at center, #141821 0%, #06070a 70%); transition: opacity .5s; }
.boot.done { opacity: 0; pointer-events: none; }
.boot-logo { font-family: var(--display); font-size: 52px; letter-spacing: .08em; } .boot-logo b { color: var(--accent); font-style: italic; }
.boot-bar { width: 260px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 5%; background: var(--accent); transition: width .3s; }
.boot-msg { color: var(--muted); font-size: 14px; letter-spacing: .06em; text-align: center; max-width: 80vw; }

/* keep the whole top bar on screen at 1280-1440 px (laptops, 720p TVs) */
.tabs { min-width: 0; }
.tb-right { flex-shrink: 0; }
.icon-btn.quit { color: #ff8a7a; }
@media (max-width: 1460px) {
  .topbar { gap: 12px; padding: 14px 18px; }
  .tab { padding: 9px 9px; letter-spacing: .08em; }
  .brand small { display: none; }
  .tb-right { gap: 8px; }
}
/* v0.4.4: two more tabs and the Social button: shorter labels and fewer pills on narrower screens */
.brand { flex-shrink: 0; }
.tabs { justify-content: safe center; scrollbar-width: none; }
@media (max-width: 1600px) { .tab-lg { display: none; } }
@media (max-width: 1460px) { .tb-right .pill.rep { display: none; } .tab { padding: 8px 8px; font-size: 12.5px; } }
@media (max-width: 1240px) { .tb-right .pill.social { padding: 7px 10px; } .tab { padding: 8px 6px; letter-spacing: .05em; } }
@media (max-width: 1100px) {
  .tabs { justify-content: flex-start; overflow-x: auto; }
  .home-left, .builder, .mp, .store, .wide-panel { width: 100%; }
  .builder-side, .store-detail { display: none; }
  .aff-grid { grid-template-columns: 1fr; }
  .proam-cols, .attr-cols, .badge-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
}
.results .row.end { margin-top: 18px; }
.results .muted.small { margin-top: 6px; line-height: 1.45; }

/* ---- v0.4 controller support ---- */
.pad-focus { outline: none !important; box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(255, 216, 74, .45) !important; position: relative; z-index: 2; transform: translateY(-1px); transition: box-shadow .08s, transform .08s; }
body.pad-mode { cursor: none; }
body.pad-mode *:hover { /* no stale hover highlight while driving with a pad */ }
.pad-glyph { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font: 700 11px/1 var(--font); color: #0b0d10; background: #d9dde3; vertical-align: middle; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.pad-glyph.xbox.b-a { background: #5fbf3a; } .pad-glyph.xbox.b-b { background: #e0412f; } .pad-glyph.xbox.b-x { background: #3b78e0; } .pad-glyph.xbox.b-y { background: #f2c14e; }
.pad-glyph.ps { background: #1d2230; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.pad-glyph.ps.b-a { color: #8fb4ff; } .pad-glyph.ps.b-b { color: #ff7b85; } .pad-glyph.ps.b-x { color: #f49ad6; } .pad-glyph.ps.b-y { color: #57e3c7; }
.pad-glyph.b-lb, .pad-glyph.b-rb, .pad-glyph.b-lt, .pad-glyph.b-rt, .pad-glyph.b-ls, .pad-glyph.b-rs, .pad-glyph.b-view, .pad-glyph.b-menu { border-radius: 5px; background: #2a2f39; color: #fff; border: 1px solid rgba(255,255,255,.2); }
table.controls tr.sec td { color: var(--accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 12px; border-bottom: 1px solid var(--line); }

/* ---- v0.4.1 remapping ---- */
.btn.small { padding: 6px 12px; font-size: 12px; }
.remap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-height: 58vh; overflow: auto; }
.controls.remap td { padding: 3px 8px; }
.controls.remap td:last-child { text-align: right; width: 46%; }
.bind { min-width: 120px; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text, #eee); font-size: 13px; }
.bind:hover { border-color: var(--accent); }
.bind.custom { border-color: rgba(255,216,74,.55); color: var(--accent); }
.bind.listening { background: var(--accent); color: #111; animation: bindpulse .9s infinite alternate; }
@keyframes bindpulse { from { filter: brightness(1); } to { filter: brightness(1.25); } }
@media (max-width: 900px) { .remap-cols { grid-template-columns: 1fr; } }

/* v0.4.1 Locked-In grade on the results card */
.lg-final { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 10px; --gc: #ffd84a; }
.lg-final[data-tier="a"] { --gc: #3ddc84; } .lg-final[data-tier="b"] { --gc: #6fc3ff; } .lg-final[data-tier="d"] { --gc: #ff9b4a; } .lg-final[data-tier="f"] { --gc: #ff5a5a; }
.lg-final small { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.lg-final b { font-family: var(--display); font-size: 34px; color: var(--gc); }
.clash { color: #ff9b4a; font-size: 11px; margin-left: 6px; }

/* ---- v0.4.2 Daily Spin + Boosts ---- */
.wheel-wrap { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 26px; align-items: center; }
.wheel-stage { position: relative; aspect-ratio: 1; }
.wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.wheel-pointer { position: absolute; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--accent); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.wheel-status { margin: 10px 0; font-size: 15px; } .wheel-status .good { color: var(--good); }
.btn.big { padding: 14px 32px; font-size: 16px; }
.wheel-prize { margin: 14px 0; min-height: 60px; } .wheel-prize b { display: block; font-family: var(--display); font-size: 30px; color: var(--accent); }
.wheel-prize b.jackpot { color: #ffd84a; text-shadow: 0 0 18px rgba(255,216,74,.7); }
.odds { font-size: 12px; color: var(--muted); border-collapse: collapse; } .odds td { padding: 2px 10px 2px 0; }
.boost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.boost { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 8px; }
.boost.on { border-color: rgba(61,220,132,.5); background: rgba(61,220,132,.06); }
@media (max-width: 900px) { .wheel-wrap { grid-template-columns: 1fr; } }

/* v0.4.3 post-game outro: full box score + live Rep bar */
.modal-card.outro-card { width: min(1100px, 96vw); max-width: none; background: linear-gradient(180deg, rgba(12,15,20,.96), rgba(7,9,12,.97)); }
.outro h1 { margin: 2px 0 12px; } .outro h1 .score { color: var(--muted); margin-left: 8px; }
.outro.win h1 { color: var(--accent); }
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .ob-grid { grid-template-columns: 1fr; } }
.ob-team { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; --tc: #ffd84a; }
.ob-team.won { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 55%, transparent); }
.ob-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 32%, transparent), transparent); border-bottom: 1px solid var(--line); }
.ob-head b { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.ob-head span { margin-left: auto; font-family: var(--display); font-size: 22px; }
.ob-head em { font-style: normal; font-size: 10px; letter-spacing: .2em; background: var(--tc); color: #111; padding: 2px 6px; border-radius: 4px; }
.ob-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ob-table th { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding: 6px 6px; text-align: center; }
.ob-table th:first-child, .ob-table td:first-child { text-align: left; padding-left: 12px; }
.ob-table td { padding: 6px 6px; text-align: center; border-top: 1px solid rgba(255,255,255,.04); font-variant-numeric: tabular-nums; }
.ob-table tbody tr { animation: obRow .4s ease-out both; animation-delay: var(--d); }
.ob-table td:first-child { white-space: nowrap; }
.ob-table td small { color: var(--dim); margin-left: 6px; font-size: 10px; }
.ob-table tr.me td { background: rgba(255,216,74,.07); }
.ob-ovr { display: inline-block; min-width: 26px; margin-right: 6px; color: var(--tc); font-family: var(--display); }
.ob-you, .ob-mvp { font-style: normal; font-size: 9.5px; letter-spacing: .14em; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.ob-you { background: var(--accent); color: #111; } .ob-mvp { background: rgba(255,255,255,.1); color: #ffe27a; }
.ob-rep { margin: 16px 0 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ob-rep-top { display: flex; align-items: baseline; gap: 10px; }
.ob-rep-k { font-size: 10px; letter-spacing: .24em; color: var(--muted); }
.ob-rep-top b { font-family: var(--display); font-size: 20px; }
.ob-gain { margin-left: auto; font-family: var(--display); font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ob-rankup { font-size: 11px; letter-spacing: .2em; background: var(--accent); color: #111; padding: 2px 8px; border-radius: 5px; font-weight: 800; }
.ob-rankup.pop { animation: rankPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.ob-xp { position: relative; height: 14px; margin: 8px 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.ob-xp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6d7782, #aab3bd); }
.ob-xp i.gain { background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 14px rgba(255,216,74,.55); }
.ob-rep.ranked .ob-xp { box-shadow: 0 0 0 1px rgba(255,216,74,.5); }
.ob-rep-bot { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ob-vc { margin-left: auto; color: var(--good); }
@keyframes obRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rankPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* v0.4.4 lifetime stats */
.stats-panel h4 { margin: 16px 0 6px; }
.st-modes { margin: 4px 0 10px; }
.st-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.st-head b { font-family: var(--display); font-size: 22px; }
.st-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-tiles div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 9px; padding: 8px 6px; text-align: center; }
.st-tiles b { display: block; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.st-tiles small { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-tot { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-tot td { padding: 4px 6px; border-top: 1px solid rgba(255,255,255,.05); } .st-tot td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.st-profile { margin-top: 14px; padding: 12px; border-radius: 10px; background: rgba(255,216,74,.05); border: 1px solid rgba(255,216,74,.18); }
.st-profile h4 { margin: 0 0 4px; }
.st-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 8px; }
.st-bars div { display: grid; grid-template-columns: 170px 1fr 80px; align-items: center; gap: 8px; font-size: 12.5px; }
.st-bars i { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; } .st-bars em { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.st-bars small { color: var(--muted); }
.st-compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-compare th { font-size: 10px; letter-spacing: .14em; color: var(--muted); text-align: center; padding: 6px; } .st-compare th:first-child { text-align: left; }
.st-compare td { padding: 7px 6px; text-align: center; border-top: 1px solid rgba(255,255,255,.05); font-variant-numeric: tabular-nums; cursor: pointer; }
.st-compare td:first-child { text-align: left; } .st-compare td small { display: block; color: var(--muted); font-size: 11px; }
.st-compare tr.on td { background: rgba(255,216,74,.07); }
.modal-card.stats-card { width: min(1000px, 96vw); }
@media (max-width: 900px) { .st-tiles { grid-template-columns: repeat(4, 1fr); } .st-cols, .st-bars { grid-template-columns: 1fr; } }

/* v0.4.4 locker codes */
.code-form { display: flex; gap: 10px; margin: 16px 0 8px; }
.code-input { flex: 1; font-family: var(--display); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; }
.code-win { padding: 14px 16px; border-radius: 12px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.35); margin: 8px 0; }
.code-win b { display: block; font-family: var(--display); font-size: 30px; color: var(--good); }
.code-err { padding: 10px 14px; border-radius: 10px; background: rgba(255,91,87,.08); border: 1px solid rgba(255,91,87,.35); color: #ff9b97; margin: 8px 0; }
.code-list { width: 100%; border-collapse: collapse; } .code-list td { padding: 8px 6px; border-top: 1px solid var(--line); }

/* ---------- v0.4.4 social phone ---------- */
.modal-card.phone-card { width: min(400px, 94vw); padding: 0; background: transparent; border: 0; box-shadow: none; }
.phone-card .modal-x { top: 18px; right: 20px; z-index: 2; }
.phone { position: relative; display: flex; flex-direction: column; height: min(760px, 88vh); padding: 14px 14px 10px; border-radius: 38px; background: linear-gradient(160deg, #1b2029, #0b0d11 60%); border: 2px solid #2b313c; box-shadow: 0 0 0 7px #07080a, 0 0 0 8px #313845, 0 30px 80px rgba(0,0,0,.65); }
.phone::before { content: ''; position: absolute; top: 9px; left: 50%; width: 92px; height: 20px; margin-left: -46px; border-radius: 12px; background: #050607; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 18px 8px; font-size: 12px; color: #cfd6e2; font-weight: 600; }
.ph-status b { font-family: var(--display); letter-spacing: .12em; color: var(--accent); opacity: 0; }
.ph-status span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.ph-head { display: flex; flex-direction: column; padding: 4px 8px 8px; }
.ph-head b { font-family: var(--display); font-size: 28px; letter-spacing: .02em; }
.ph-head small { color: var(--muted); font-size: 12px; }
.ph-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 4px; margin: 0 4px 8px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ph-tabs button { padding: 7px 2px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; }
.ph-tabs button.on { background: var(--accent); color: #111; }
.ph-body { flex: 1; overflow-y: auto; padding: 0 4px; scrollbar-width: thin; }
.ph-foot { text-align: center; padding-top: 6px; }
.ph-sec { margin: 10px 4px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph-note { font-size: 12px; color: var(--muted); margin: 4px 6px 6px; line-height: 1.45; }
.ph-empty { color: var(--muted); font-size: 13px; padding: 10px 8px; }
.ph-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ph-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: left; }
.ph-main:hover, .ph-main:focus-visible { background: rgba(255,255,255,.09); }
.ph-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-who small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-who em { font-style: normal; font-size: 11px; color: #9fc7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-star { font-style: normal; color: var(--accent); font-size: 11px; }
.ph-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4a515d; display: inline-block; }
.ph-dot.on { background: #36e07a; box-shadow: 0 0 6px #36e07a; }
/* the overall + position circle (ring colour = skill tier) */
.ph-ovr { --ring: #8d98a6; flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #222833, #11141a); box-shadow: inset 0 0 0 2px var(--ring), 0 0 8px color-mix(in srgb, var(--ring) 35%, transparent); line-height: 1; }
.ph-ovr b { font-family: var(--display); font-size: 16px; }
.ph-ovr small { font-size: 8.5px; letter-spacing: .12em; color: var(--muted); margin-top: 1px; }
.ph-ovr.big { width: 78px; height: 78px; margin: 0 auto 6px; }
.ph-ovr.big b { font-size: 32px; } .ph-ovr.big small { font-size: 11px; }
.t-casual { --ring: #7d8591; } .t-regular { --ring: #4fc27a; } .t-hooper { --ring: #3f9cf2; } .t-elite { --ring: #a86bff; } .t-legend { --ring: #ffcc3d; }
.ph-act { flex: none; min-width: 64px; padding: 8px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); }
.ph-act.add { background: var(--accent); color: #111; }
.ph-act.inv { background: #36e07a; color: #0b1a10; }
.ph-act.sq { background: rgba(54,224,122,.15); color: #7af0ac; }
.ph-act.fr { color: var(--accent); }
.ph-back { margin: 2px 0 6px; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.06); font-weight: 600; }
.ph-prof { text-align: center; padding: 4px 4px 12px; }
.ph-prof h3 { margin: 4px 0 2px; font-size: 22px; }
.ph-tier { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ring); margin-bottom: 10px; }
.ph-facts { display: grid; gap: 4px; text-align: left; margin: 6px 0 10px; }
.ph-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.04); font-size: 12px; }
.ph-facts span { color: var(--muted); flex: none; } .ph-facts b { text-align: right; font-weight: 600; } .ph-facts b.ok { color: #7af0ac; }
.ph-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 12px; }
.ph-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill.social { cursor: pointer; } .pill.social .ph-dot { width: 7px; height: 7px; }
.tag.sq, .tag.fr { font-style: normal; font-size: 10px; padding: 1px 6px; letter-spacing: .1em; vertical-align: 2px; }
.tag.sq { background: #36e07a; color: #0b1a10; } .tag.fr { background: rgba(255,216,74,.2); color: var(--accent); }
.res-people { margin: 12px 0 4px; display: grid; gap: 6px; }
.res-people .chip small { color: var(--muted); margin-left: 4px; }
/* v0.4.5 Icon badge card */
.icon-badge { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.2); opacity: .75; }
.icon-badge.on { opacity: 1; border: 1px solid #f2c14e; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(242,193,78,.14) 40%, rgba(255,120,60,.06)); box-shadow: 0 0 22px rgba(242,193,78,.25); }
.icon-badge .badge-icon { background: linear-gradient(135deg, #f2c14e, #ff7a3d); color: #111; }
.icon-badge small { display: block; opacity: .85; }
.hof-note { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(242,193,78,.22), rgba(255,120,60,.1)); border: 1px solid rgba(242,193,78,.6); display: flex; flex-direction: column; gap: 4px; }

/* v0.4.5 main menu hub: everything fits on screen (no scrolling) from 1280x720 up */
.home-hub { width: clamp(520px, 44vw, 700px); max-height: calc(100vh - 150px); overflow: hidden; display: flex; flex-direction: column; padding: clamp(14px, 2.2vh, 24px) clamp(18px, 1.8vw, 26px); }
.home-hub .player-name { font-size: clamp(28px, 4.6vh, 48px); margin-bottom: 2px; }
.home-hub .ovr-row { margin-bottom: clamp(6px, 1.2vh, 14px); }
.home-hub .ovr { width: clamp(62px, 9vh, 86px); height: clamp(62px, 9vh, 86px); }
.home-hub .ovr b { font-size: clamp(28px, 4.2vh, 40px); }
.home-hub .stat-strip { margin: clamp(4px, 1vh, 10px) 0 clamp(8px, 1.6vh, 16px); flex-wrap: nowrap; }
.home-hub .stat-strip > div { min-width: 0; padding: clamp(6px, 1vh, 10px) 8px; }
.home-hub .stat-strip b { font-size: clamp(16px, 2.6vh, 22px); }
.hub { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(6px, 1vh, 10px); }
.hub .tile { min-width: 0; min-height: 0; padding: clamp(8px, 1.5vh, 16px) clamp(10px, 1vw, 16px); justify-content: center; gap: 2px; }
.hub .tile b, .hub .tile small, .hub .tile .tile-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hub .tile b { font-size: clamp(15px, 2.3vh, 20px); }
.hub .tile small { font-size: clamp(11px, 1.6vh, 13px); }
.hub .tile.big { grid-column: span 2; grid-row: span 1; padding: clamp(12px, 2vh, 22px); }
.hub .tile.t-prorun { background: linear-gradient(140deg, rgba(255,90,54,.22), rgba(242,193,78,.08) 60%, rgba(255,255,255,.02)); border-color: rgba(255,140,80,.35); }
.hub .tile.big b { font-size: clamp(22px, 3.8vh, 32px); }
.hub .tile.t-proam { grid-column: span 1; background: linear-gradient(140deg, rgba(63,160,255,.18), rgba(255,255,255,.02)); }
.hub .tile.t-prorun { grid-column: span 2; }
.hub .tile.t-social { grid-column: span 2; }
.hub .tile.t-store { background: linear-gradient(140deg, rgba(255,90,54,.18), rgba(255,255,255,.02)); }
.hub .tile.t-stats { background: linear-gradient(140deg, rgba(120,220,160,.14), rgba(255,255,255,.02)); }
.hub .tile.t-codes { background: linear-gradient(140deg, rgba(242,193,78,.16), rgba(255,255,255,.02)); }
.hub .tile.t-social { background: linear-gradient(140deg, rgba(160,120,255,.16), rgba(255,255,255,.02)); }
.home-hub .controls-hint { margin-top: clamp(6px, 1vh, 12px); }
@media (max-height: 800px) { .home-hub .controls-hint { display: none; } }
@media (max-width: 1100px) { .home-hub { width: 100%; max-height: none; overflow: auto; } .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(64px, auto); } .hub .tile.big, .hub .tile.t-prorun, .hub .tile.t-social { grid-column: span 2; } }
/* v0.4.5: the phone's close button stays put when it has controller focus */
.modal-x.pad-focus, .phone-card .modal-x.pad-focus { position: absolute !important; transform: none !important; }


/* ---------- v0.4.5 The King Tut Cup ---------- */
.tile-event { --c: #39ff88; position: absolute; top: 10px; right: 12px; font: 800 10px/1 var(--display); letter-spacing: .14em; color: var(--c); padding: 5px 8px; border-radius: 6px; background: rgba(10,6,20,.78); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }
.tile.park { position: relative; }
/* v0.4.7.5 qp3: the card takes the event's colors (--c main, --d accent); the King Tut Cup's are the defaults */
.event-card { --c: #39ff88; --d: #b14dff; margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, rgba(20,10,40,.95), rgba(12,30,24,.92)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--d) 18%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 6%, transparent); display: flex; flex-direction: column; gap: 4px; }
.event-card.off { --c: #8a8a8a; --d: #6a6a6a; opacity: .75; }
.event-card .ev-k { font: 800 11px/1 var(--display); letter-spacing: .16em; color: var(--d); }
.event-card b { font-family: var(--display); font-size: 24px; color: #e8c15a; text-shadow: 0 0 12px rgba(232,193,90,.4); }
.event-card small { color: #cfc6e8; }
.event-card .ev-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.event-card .ev-stat { font: 700 13px var(--display); color: var(--c); padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 8%, transparent); }
.event-card .ev-row .btn:first-of-type { margin-left: auto; }
.event-card .ev-claim { margin-top: 8px; color: #e8c15a; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cup-chip { --c: #39ff88; padding: 9px 14px; border-radius: 12px; background: rgba(10,6,20,.8); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); display: flex; flex-direction: column; font-family: var(--display); }
.cup-chip b { color: var(--c); font-size: 20px; } .cup-chip small { color: #cfc6e8; font-size: 11px; letter-spacing: .06em; }
.cup-board h2 small { font-weight: 600; }
.cup-board .cup-me { margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(57,255,136,.08); border: 1px solid rgba(57,255,136,.25); }
.cup-board .cup-prev { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(232,193,90,.08); border: 1px solid rgba(232,193,90,.3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cup-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cup-table th { text-align: left; font: 700 11px var(--display); letter-spacing: .1em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cup-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cup-table td small { margin-left: 8px; color: var(--muted); font-size: 11px; }
.cup-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cup-table tr.me td { background: rgba(57,255,136,.12); color: #39ff88; font-weight: 700; }
.cup-table tr:first-child td:first-child { color: #e8c15a; font-weight: 800; }
.cup-table tr.gap td { text-align: center; color: var(--muted); }
.cup-prizes { margin-top: 12px; display: grid; gap: 4px; font-size: 13px; }
.cup-prizes > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.03); }
.cup-prizes > div span:first-child { color: #e8c15a; font-weight: 700; }
.ante-pick .ante-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.ante-pick .ante-grid .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; }
.ante-pick .ante-grid .btn b { font-size: 18px; } .ante-pick .ante-grid .btn small { font-size: 11px; opacity: .8; }
.cup-result { margin: 10px 0; padding: 10px 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; background: rgba(57,255,136,.1); border: 1px solid rgba(57,255,136,.4); }
.cup-result.loss { background: rgba(255,80,80,.08); border-color: rgba(255,80,80,.35); }
.cup-result b { font-family: var(--display); font-size: 22px; color: #39ff88; } .cup-result.loss b { color: #ff6b6b; }
.cup-result small { color: var(--muted); } .cup-result span { margin-top: 4px; color: #e8c15a; }
@media (max-width: 720px) { .ante-pick .ante-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- v0.4.5 Crews ---------- */
.crew-tag { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 12px; background: var(--c, #2457c5); color: var(--ink, #fff); font: 900 20px/1 var(--display); letter-spacing: .04em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.crew-tag.sm { min-width: 0; height: auto; padding: 2px 7px; border-radius: 6px; font-size: 12px; vertical-align: 2px; }
.crew-card .eyebrow { color: color-mix(in srgb, var(--c, #ffd84a) 55%, #fff); }
.crew-head { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; margin-bottom: 12px; }
.crew-head h2 { margin: 2px 0 0; }
.crew-lvl { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 8px; row-gap: 4px; justify-self: end; width: min(320px, 100%); }
.crew-lvl b { font: 800 18px var(--display); color: color-mix(in srgb, var(--c, #ffd84a) 55%, #fff); } .crew-lvl small { color: var(--muted); }
.crew-lvl .bar { grid-column: 1 / -1; height: 8px; } .crew-lvl .bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--c, #ffd84a) 70%, #fff), var(--c, #ffd84a)); }
.crew-lvl > span:last-child { grid-column: 1 / -1; }
.crew-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.crew-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crew-table th { text-align: left; font: 700 11px var(--display); letter-spacing: .1em; color: var(--muted); padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.crew-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.crew-table td b { display: block; } .crew-table td small { color: var(--muted); font-size: 11px; }
.crew-table td.on { color: #3ddc84; } .crew-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.crew-add { display: grid; gap: 4px; max-height: 190px; overflow: auto; padding-right: 4px; }
.crew-add > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.035); }
.crew-add span b { display: block; font-size: 13px; } .crew-add span small { color: var(--muted); font-size: 11px; }
.crew-levels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 170px; overflow: auto; }
.crew-levels > div { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.crew-levels > div.got { background: color-mix(in srgb, var(--c, #ffd84a) 30%, transparent); border-color: color-mix(in srgb, var(--c, #ffd84a) 60%, transparent); }
.crew-levels b { font: 800 14px var(--display); } .crew-levels small { font-size: 9px; color: var(--muted); } .crew-levels em { font-size: 8px; font-style: normal; color: #f2c14e; letter-spacing: .04em; }
.crew-form { display: flex; gap: 8px; margin: 8px 0; } .crew-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); flex: 1; }
.crew-form input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; min-width: 0; }
.crew-form input[data-tag] { text-transform: uppercase; max-width: 110px; } .crew-form label:has(input[data-tag]) { flex: 0 0 110px; }
.crew-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.15); padding: 0; }
.swatch.on { outline: 2px solid #fff; outline-offset: 2px; }
.ph-crew { display: flex; gap: 12px; align-items: center; margin: 6px 6px 8px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--c) 18%, rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.ph-crew .crew-tag { min-width: 46px; height: 46px; font-size: 16px; }
.ph-crew-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ph-crew-main small { color: var(--muted); font-size: 11px; } .ph-crew-main .bar { display: block; height: 5px; } .ph-crew-main .bar i { background: var(--c); }
.crew-badge b .crew-tag { background: var(--c); }
.crew-xp { margin: 8px 0 2px; padding: 8px 12px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: color-mix(in srgb, var(--c) 14%, rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.crew-xp .crew-tag { background: var(--c); } .crew-xp b { font-family: var(--display); }
@media (max-width: 760px) { .crew-cols { grid-template-columns: 1fr; } .crew-levels { grid-template-columns: repeat(5, 1fr); } .crew-head { grid-template-columns: auto 1fr; } .crew-lvl { grid-column: 1 / -1; justify-self: stretch; width: auto; } }

/* ---------- v0.4.5 The Pro Run ---------- */
.pr h4 { margin: 16px 0 8px; }
.pr-team { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pr-team i { display: inline-grid; place-items: center; min-width: 34px; padding: 2px 5px; border-radius: 5px; background: var(--c1); color: #fff; font: 800 11px/1.3 var(--display); font-style: normal; letter-spacing: .04em; box-shadow: inset 0 -2px 0 var(--c2); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.pr-colleges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pr-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 12px; text-align: left; background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, #0b0d10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); }
.pr-col i { font: 900 18px var(--display); font-style: normal; color: var(--c2); }
.pr-col b { font-size: 14px; } .pr-col small { color: var(--muted); font-size: 12px; }
.pr-col.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; }
.pr-settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pr-settings select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
.pr-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 45%, #0b0d10), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--c1) 60%, transparent); }
.pr-head > i { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 8px; border-radius: 14px; background: var(--c1); color: #fff; font: 900 22px var(--display); font-style: normal; box-shadow: inset 0 -4px 0 var(--c2); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.pr-head h1 { margin: 0; font-size: 30px; } .pr-head small { color: var(--muted); }
.pr-head > div:nth-child(2) { flex: 1; min-width: 0; }
.pr-stock { display: flex; flex-direction: column; align-items: flex-end; } .pr-stock small { font-size: 11px; letter-spacing: .14em; color: var(--muted); } .pr-stock b { font: 800 28px var(--display); color: var(--accent); }
.pr-mine { display: flex; gap: 8px; } .pr-mine > div { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.25); } .pr-mine b { font: 800 20px var(--display); } .pr-mine small { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.pr-cgames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.pr-cgame { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.pr-cgame small { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.pr-cgame.next { border-color: var(--accent); } .pr-cgame.w b { color: #3ddc84; } .pr-cgame.l b { color: #ff6b6b; }
.pr-draft { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-height: 52vh; overflow: auto; padding-right: 6px; }
.pr-pick { display: grid; grid-template-columns: 26px 150px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 13px; }
.pr-pick:nth-child(odd) { background: rgba(255,255,255,.025); }
.pr-pick > b { color: var(--muted); text-align: right; } .pr-pick.me { background: rgba(255,216,74,.16); outline: 1px solid rgba(255,216,74,.5); } .pr-pick.me > b { color: var(--accent); }
.pr-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.pr-tabs button { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.04); }
.pr-tabs button.on { background: var(--accent); color: #111; }
.pr-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.pr-next { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.pr-next > small { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.pr-next.champ { background: linear-gradient(120deg, rgba(232,193,90,.18), rgba(255,255,255,.02)); border-color: rgba(232,193,90,.45); }
.pr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-table th { text-align: left; font: 700 11px var(--display); letter-spacing: .08em; color: var(--muted); padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pr-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
.pr-cols.stand { grid-template-columns: 1fr; }
.pr-table tr.me td { background: rgba(255,216,74,.1); } .pr-table b.me { color: var(--accent); }
.pr-table td.w { color: #3ddc84; font-weight: 700; } .pr-table td.l { color: #ff6b6b; font-weight: 700; }
.pr-table tr.cut td { border-bottom: 2px solid rgba(255,216,74,.5); } .pr-table tr.cut2 td { border-bottom: 2px dashed rgba(255,255,255,.25); }
.pr-table.sched { max-height: 56vh; display: block; overflow: auto; }
.pr-body { min-height: 300px; }
.pr-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pr-bracket { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pr-series { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.pr-series small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pr-series > div { display: flex; justify-content: space-between; align-items: center; opacity: .7; } .pr-series > div.won { opacity: 1; font-weight: 700; }
.pr-series.me { outline: 1px solid rgba(255,216,74,.55); }
.ob-pro { margin: 10px 0 0; color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) { .pr-colleges { grid-template-columns: repeat(3, 1fr); } .pr-cols, .pr-draft, .pr-cgames { grid-template-columns: 1fr; } .pr-head { flex-wrap: wrap; } }

/* v0.4.7.5 max OVR track (80 to 90 through The Pro Run) and the Cap Breakers menu */
.attr-seg { margin: 0 0 10px; }
.seg-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #111; font-family: var(--display); font-size: 11px; line-height: 18px; text-align: center; }
.max-ovr { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 12px 16px; margin: 0 0 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,216,74,.08), rgba(255,255,255,.025)); border: 1px solid var(--line); }
.mo-num { display: flex; align-items: baseline; gap: 6px; } .mo-num small { font-size: 10px; letter-spacing: .18em; color: var(--muted); margin-right: 4px; }
.mo-num b { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--accent); } .mo-num span { color: var(--muted); font-family: var(--display); }
.mo-track .bar { display: block; height: 6px; } .mo-ticks { display: flex; justify-content: space-between; margin-top: 4px; }
.mo-ticks i { font-style: normal; font-size: 10px; color: var(--dim); font-family: var(--display); } .mo-ticks i.on { color: var(--text); }
.mo-next { display: flex; flex-direction: column; align-items: flex-end; text-align: right; } .mo-next b { font-size: 14px; } .mo-next small { color: var(--muted); font-size: 11px; display: flex; gap: 4px; align-items: center; }
.mo-next .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-block; } .mo-next .dot.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.cb-locked { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px dashed rgba(255,255,255,.18); }
.cb-locked p { margin: 6px 0 0; }
.cb-count { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.3); }
.cb-count b { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--accent); } .cb-count small { font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.cb-used { font-style: normal; font-size: 10px; color: var(--accent); margin-left: 4px; }
/* the "+1 MAX OVR Unlocked!" card after a Pro Run game */
.ovr-unlock { text-align: center; padding: 8px 6px 2px; }
.ovr-unlock .eyebrow { color: var(--accent); }
.ovr-unlock h2 { font-family: var(--display); font-size: 40px; margin: 6px 0 10px; letter-spacing: .02em; background: linear-gradient(90deg, #ffd84a, #fff3b0, #ffd84a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hofShift 3s linear infinite; }
.ou-nums { display: flex; justify-content: center; align-items: center; gap: 16px; font-family: var(--display); }
.ou-nums span { font-size: 30px; color: var(--muted); } .ou-nums i { font-style: normal; font-size: 22px; color: var(--dim); } .ou-nums b { font-size: 54px; color: var(--accent); text-shadow: 0 0 22px rgba(255,216,74,.45); }
.ovr-unlock p { margin: 10px 0 16px; }
.ovr-unlock .row { justify-content: center; }
.pr-maxovr { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,216,74,.1); border: 1px solid rgba(255,216,74,.3); font-size: 12px; }
.pr-maxovr b { font-family: var(--display); letter-spacing: .06em; color: var(--accent); } .pr-maxovr span { color: var(--muted); }
.pr-maxovr i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); } .pr-maxovr i.on { background: var(--accent); }
/* v0.4.7.5 quick patch: Icon Legend (+1 OVR every 2 Pro Run games after the Icon badge, to 99) */
.legend-line { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 12px 16px; margin: -6px 0 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(160,120,255,.14), rgba(255,216,74,.06) 60%, rgba(255,255,255,.02)); border: 1px solid rgba(190,160,255,.3); }
.legend-line.off { background: rgba(255,255,255,.03); border-style: dashed; border-color: rgba(255,255,255,.16); }
.ll-num { display: flex; align-items: baseline; gap: 6px; } .ll-num small { font-size: 10px; letter-spacing: .18em; color: #c9b5ff; margin-right: 4px; }
.ll-num b { font-family: var(--display); font-size: 30px; line-height: 1; color: #e3d6ff; } .ll-num span { color: var(--muted); font-family: var(--display); }
.ll-text { display: flex; flex-direction: column; gap: 3px; } .ll-text b { font-size: 14px; } .ll-text small { color: var(--muted); font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ll-text .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-block; } .ll-text .dot.on { background: #c9b5ff; box-shadow: 0 0 6px #b79cff; }
.pr-maxovr.legend { background: rgba(160,120,255,.12); border-color: rgba(190,160,255,.38); } .pr-maxovr.legend b { color: #d9c9ff; } .pr-maxovr.legend i.on { background: #c9b5ff; }
.ovr-unlock.legend .eyebrow { color: #c9b5ff; }
.ovr-unlock.legend h2 { background-image: linear-gradient(90deg, #c9b5ff, #fff3b0, #c9b5ff); }
.lu-attrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 12px auto 0; max-width: 460px; }
.lu-attrs span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12.5px; }
.lu-attrs b { color: #7fe25e; font-family: var(--display); margin-right: 2px; } .lu-attrs small { color: var(--muted); margin-left: 2px; }

/* v0.4.7.5 store and inventory: grouped category tabs (Apparel · Animations · Green Releases) */
.cat-groups { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; }
.cat-group { display: flex; align-items: flex-start; gap: 10px; }
.cat-group > span { flex: none; width: 86px; padding-top: 10px; font-size: 10px; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.store { width: min(720px, 54vw); }
.cat-group .subtabs { flex: 1; margin: 0; }
.cat-group .subtabs button { padding: 8px 11px; font-size: 12px; }
.subtabs button em { font-style: normal; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.subtabs button.on em { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); }
.owned-tag { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; background: rgba(61,220,132,.12); color: var(--good); font-size: 13px; letter-spacing: .04em; }
.item.equipped { border-color: rgba(61,220,132,.45); }
.item.equipped small { color: var(--good); }
/* v0.4.8.5: owned, but this build doesn't meet the item's requirements */
.inventory .item.locked { opacity: .62; }
.inventory .item.locked small { color: var(--warn, #f2c14e); }
.inv-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 18px 4px; }

/* ---------- v0.4.7.5 polish: one bar, calmer panels, cleaner controls (same Afterhours look) ---------- */
.topbar { padding: 12px 24px; gap: 16px; background: linear-gradient(180deg, rgba(6,8,11,.94), rgba(6,8,11,.7)); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; z-index: 2; }
.tabs { overflow-x: auto; scrollbar-width: none; gap: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font-size: 12.5px; letter-spacing: .1em; padding: 8px 12px; }
.tab:hover:not(.on):not(:disabled) { color: var(--text); background: rgba(255,255,255,.06); }
.tab:disabled { opacity: .32; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--muted); transition: color .15s, background .15s, border-color .15s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.12); }
.icon-btn.on { color: #111; background: var(--accent); border-color: var(--accent); }
.icon-btn.quit { color: #ff8a7a; }
.pill { transition: background .15s, border-color .15s; }
button.pill:hover { background: rgba(255,255,255,.12); }
.screen { align-items: flex-start; padding-top: 14px; }
.panel { background: linear-gradient(180deg, rgba(16,19,25,.88), rgba(10,12,16,.86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.42); }
.panel > h1:first-child, .panel .eyebrow + h1 { margin-top: 2px; }
h1 { letter-spacing: -.005em; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; }
.muted { line-height: 1.5; }
.btn { border-radius: 9px; }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, .item:focus-visible, .tile:focus-visible, .icon-btn:focus-visible, .pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { accent-color: var(--accent); }
select { background-color: rgba(255,255,255,.06); }
.hub .tile b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; }
.hub .tile small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-grid { gap: 10px; }
.item { transition: border-color .15s, transform .1s, background .15s; }
.item:hover { border-color: rgba(255,255,255,.18); }
.store-detail .price { margin: 10px 0 12px; }
.store-detail .row.gap { flex-wrap: wrap; }
.panel::-webkit-scrollbar { width: 6px; }
/* v0.4.7.5 Report a bug */
.bug-report label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bug-report label small { text-transform: none; letter-spacing: 0; color: var(--dim); }
.bug-report textarea, .bug-report select { font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; resize: vertical; }
/* v0.4.7.5 quick patch: the open dropdown list is drawn by the system with a light background, so its options need a
   dark background and light text of their own (the inherited light text was invisible on it) */
.bug-report select { color-scheme: dark; cursor: pointer; }
.bug-report select option, .bug-report select optgroup { background: #161a22; color: #f1f0ea; }
.bug-report select option:checked { background: #2c3446; color: #fff; }
.bug-report textarea:focus, .bug-report select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.bug-ctx { margin: 6px 0 14px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.modal-card.bug-card { width: min(560px, 92vw); }

/* v0.4.7.5 quick patch: volume sliders in the pause menus */
.pause-vol { margin-top: 14px; padding: 10px 12px 6px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.pause-vol .eyebrow { margin-bottom: 4px; }
.pv-row { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; color: var(--muted); }
.pv-row input[type=range] { width: 100%; accent-color: var(--accent); }
.pv-row b { font-family: var(--display); color: var(--text); text-align: right; font-size: 14px; }

/* ---------- v0.4.7.5 qp3 online play: the Online tab, the room, invites, friends at the park ---------- */
.ph-tabs button[data-tab="online"] { color: #7fd3ff; } .ph-tabs button[data-tab="online"].on { background: #4ac8ff; color: #06131c; }
.ol-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; color: #06131c; background: linear-gradient(135deg, #7fd3ff, #4a8bff); }
.ol-av.host { background: linear-gradient(135deg, #ffe27a, #f2a93b); }
.ol-av.ai { width: 26px; height: 26px; font-size: 13px; background: linear-gradient(135deg, #9aa3ad, #5d6670); color: #0b0f14; }
.ol-mem.ol-ai { padding: 2px 6px 2px 30px; opacity: .9; }
.ol-room { margin: 6px 0 10px; padding: 6px 6px 10px; border-radius: 14px; background: rgba(74,200,255,.07); border: 1px solid rgba(74,200,255,.25); }
.ol-mem { display: flex; align-items: center; gap: 10px; padding: 6px 6px; }
.ol-cfg { display: grid; gap: 6px; margin: 6px 2px 4px; }
.ol-cfg .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ol-cfg .chip { font-size: 12px; padding: 5px 9px; }
.ol-cfg small.muted { margin: 2px 4px -2px; font-size: 11px; }
.ol-add { display: flex; gap: 6px; margin: 10px 4px 8px; }
.ol-add .text { flex: 1; min-width: 0; }
.ol-invite { position: fixed; top: 74px; right: 18px; z-index: 60; width: 300px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, #13202b, #0b0f14); border: 1px solid rgba(74,200,255,.55); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 24px rgba(74,200,255,.18); display: grid; gap: 4px; animation: olIn .25s ease-out; }
.ol-invite b { font-size: 18px; } .ol-invite small { color: var(--muted); font-size: 12px; } .ol-invite .row { justify-content: flex-end; margin-top: 6px; }
@keyframes olIn { from { transform: translateY(-10px); opacity: 0; } }
.friend-tags { position: absolute; inset: 0; pointer-events: none; }
.friend-tag { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #06131c; background: #4ac8ff; box-shadow: 0 2px 10px rgba(0,0,0,.45); white-space: nowrap; }
.friend-tag.sq { background: #ffd84a; }
/* v0.4.7.5 qp3 online: real people on a court, holding it, with next on it */
.ct-real { display: grid; gap: 2px; margin-top: 4px; padding: 5px 8px; border-radius: 9px; background: rgba(6,19,28,.82); border: 1px solid rgba(74,200,255,.45); font-size: 11.5px; color: #dff4ff; white-space: nowrap; }
.ct-real span { display: flex; align-items: center; gap: 5px; } .ct-real b { color: #4ac8ff; font-size: 10.5px; letter-spacing: .06em; }
.ct-real .live-dot { width: 7px; height: 7px; }
.ol-room.crew-online { background: color-mix(in srgb, var(--c) 10%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.ol-host { margin: 2px 6px 8px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; background: rgba(255,255,255,.05); color: var(--muted); }
.ol-host b { color: #fff; user-select: all; } .ol-host.ok { background: rgba(54,224,122,.1); color: #9fe9bd; } .ol-host.warn { background: rgba(255,170,60,.1); color: #ffcf8f; }
.ol-signin { display: grid; gap: 6px; margin: 6px 4px 8px; }
.linkish { background: none; border: 0; padding: 0; color: #7fd3ff; text-decoration: underline; font: inherit; cursor: pointer; }
/* v0.4.8.5 Pro-Am ranks: the rank card (Pro-Am screen), the RP block and banner (results), rank chips (squads) */
.rank-em { flex: none; display: block; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.pa-rank { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(110deg, color-mix(in srgb, var(--rc) 20%, transparent), rgba(255,255,255,.02) 70%); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.pa-rank-main { flex: 1; min-width: 0; }
.pa-rank-k { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.pa-rank-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; }
.pa-rank-name b { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--rc); letter-spacing: .02em; }
.pa-rank-name span { font-family: var(--display); font-size: 20px; }
.pa-rank-name em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(61,220,132,.16); color: var(--good); }
.pa-rank-name em.down { background: rgba(255,91,87,.14); color: #ff8f8a; }
.pa-rank-bar { display: block; height: 8px; border-radius: 4px; }
.pa-rank-bar i { border-radius: 4px; background: linear-gradient(90deg, var(--rd), var(--rc)); }
.pa-rank-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.pa-rank-sub b { color: var(--text); font-weight: 600; }
.pa-ladder { display: flex; gap: 2px; align-self: flex-end; }
.pa-ladder span { opacity: .28; filter: grayscale(.7); transition: opacity .15s; } .pa-ladder span.past { opacity: .6; filter: none; }
.pa-ladder span.on { opacity: 1; filter: none; transform: translateY(-3px) scale(1.12); }
.pa-rank-rule { margin: 4px 2px 10px; }
.rp-line { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--rc) 10%, rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); }
.rp-main { flex: 1; min-width: 0; }
.rp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--display); margin-bottom: 5px; }
.rp-top b { font-size: 20px; color: var(--rc); }
.results .rp-parts { margin-top: 6px; } .rp-parts b { color: var(--text); font-weight: 600; }
.reward.rp { background: rgba(61,220,132,.08); border-color: rgba(61,220,132,.35); } .reward.rp b { color: var(--good); white-space: nowrap; }
.reward.rp b i { font-style: normal; font-size: .62em; letter-spacing: .04em; }
.reward.rp.neg { background: rgba(255,91,87,.08); border-color: rgba(255,91,87,.35); } .reward.rp.neg b { color: #ff8f8a; }
.rank-banner { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 10px; padding: 8px 14px; border-radius: 12px; font-family: var(--display); font-size: 22px; letter-spacing: .1em; background: linear-gradient(90deg, rgba(61,220,132,.04), rgba(61,220,132,.22), rgba(61,220,132,.04)); border: 1px solid rgba(61,220,132,.5); color: #9ff0c2; animation: rankIn .5s ease-out; }
.rank-banner.down { background: linear-gradient(90deg, rgba(255,91,87,.04), rgba(255,91,87,.18), rgba(255,91,87,.04)); border-color: rgba(255,91,87,.45); color: #ffb0ac; }
@keyframes rankIn { from { transform: scale(.92); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rank-banner { animation: none; } }
.rk-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: -3px; font-size: 11px; font-weight: 600; color: var(--text); }
.rk-chip .rank-em { filter: none; }
.rk-chip.r0 { color: #e9a26a; } .rk-chip.r1 { color: #dfe5ec; } .rk-chip.r2 { color: #ffd458; } .rk-chip.r3 { color: #72e8d6; } .rk-chip.r4 { color: #7cc4ff; } .rk-chip.r5 { color: #c792ff; } .rk-chip.r6 { color: #ff7a6b; }
.rk-warn { color: #ffcf8f; }
.btn .rk-cost { font-size: 11px; letter-spacing: .06em; color: #ff8f8a; text-transform: none; }
@media (max-width: 760px) { .pa-ladder { display: none; } .pa-rank { gap: 12px; padding: 12px; } }
