:root {
  --blue: #2f7bff;
  --blue-2: #64a8ff;
  --orange: #ff8a1f;
  --orange-2: #ffc06a;
  --ink: #eef3ff;
  --muted: #93a2c4;
  --glass: rgba(8, 14, 30, 0.72);
  --glass-2: rgba(16, 26, 52, 0.78);
  --line: rgba(130, 170, 255, 0.22);
  --focus: #ffb63a;
  --hud-scale: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #04060c; color: var(--ink); font-family: 'Rajdhani', system-ui, sans-serif; user-select: none; }
#app canvas { display: block; width: 100vw; height: 100vh; }
.hidden { display: none !important; }
button { font-family: inherit; }

/* ------------------------------------------------------------------ loading */
#loading { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 40%, #13254d 0%, #050812 70%); transition: opacity .8s; }
#loading.done { opacity: 0; pointer-events: none; }
#loading img { width: 170px; filter: drop-shadow(0 10px 40px rgba(80,140,255,.5)); animation: float 3s ease-in-out infinite; }
.load-bar { width: 260px; height: 4px; background: rgba(255,255,255,.08); overflow: hidden; border-radius: 2px; }
.load-bar div { width: 40%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); animation: loadbar 1.2s ease-in-out infinite; }
.load-text { color: var(--muted); letter-spacing: 3px; font-weight: 700; font-size: 14px; text-transform: uppercase; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes float { 50% { transform: translateY(-8px); } }

.wordmark { font-family: 'Russo One', sans-serif; font-style: italic; line-height: .9; text-align: center; }
.wordmark .w1, .wordmark .w2 { display: block; font-size: 64px; letter-spacing: 2px; }
.wordmark .w1 { background: linear-gradient(180deg, #fff 20%, #9cc6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .w2 { background: linear-gradient(180deg, #ffe0b5 10%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ screens */
#ui-root { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateX(24px); transition: opacity .28s ease, transform .28s ease; }
.screen.visible { opacity: 1; pointer-events: auto; transform: none; }
.panel-screen { align-items: flex-start; justify-content: center; padding: 0 7vw; background: linear-gradient(90deg, rgba(3,6,14,.9) 0%, rgba(3,6,14,.65) 45%, rgba(3,6,14,0) 85%); }
.screen-header { margin-bottom: 18px; }
.screen-header h1 { margin: 0; font-family: 'Russo One', sans-serif; font-style: italic; font-size: 52px; letter-spacing: 3px; text-shadow: 0 6px 30px rgba(60,120,255,.35); }
.screen-header .sub { color: var(--muted); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.panel { width: min(640px, 92vw); display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.panel.narrow { width: min(420px, 92vw); }
.panel.scroll { max-height: 62vh; overflow-y: auto; }
.panel.tall { max-height: 66vh; }
.panel::-webkit-scrollbar { width: 6px; } .panel::-webkit-scrollbar-thumb { background: rgba(140,170,255,.3); }

/* buttons */
.btn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 22px; cursor: pointer; text-align: left;
  color: var(--ink); background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .12s, background .12s, filter .12s; }
.btn .btn-label { font-family: 'Russo One', sans-serif; font-size: 20px; letter-spacing: 2px; }
.btn .btn-sub { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(90deg, #ff9a2e, #ffc24f); color: #1c0f02; }
.btn.primary .btn-sub { color: rgba(30,15,2,.7); }
.btn.danger .btn-label { color: #ff8a8a; }
.btn.focused, .row.focused, .gitem.focused { outline: none; }
.btn.focused { transform: translateX(8px) scale(1.01); background: linear-gradient(90deg, rgba(90,150,255,.35), rgba(90,150,255,.08)); box-shadow: inset 4px 0 0 var(--focus); }
.btn.primary.focused { background: linear-gradient(90deg, #ffb24a, #ffe08a); box-shadow: 0 0 30px rgba(255,180,60,.45); }

/* main menu */
.main-menu { justify-content: center; padding-left: 7vw; background: linear-gradient(90deg, rgba(3,6,14,.85) 0%, rgba(3,6,14,.4) 40%, rgba(3,6,14,0) 70%); }
.menu-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.menu-brand img { width: 96px; filter: drop-shadow(0 8px 30px rgba(80,140,255,.5)); }
.wordmark.small { text-align: left; }
.wordmark.small .w1, .wordmark.small .w2 { font-size: 46px; }
.menu-col { display: flex; flex-direction: column; gap: 10px; width: min(460px, 86vw); }
.btn.big-menu { padding: 16px 26px; }
.btn.big-menu .btn-label { font-size: 30px; }
.menu-foot, .title-foot { position: absolute; bottom: 18px; left: 7vw; color: var(--muted); font-weight: 700; letter-spacing: 3px; }

/* title */
.title-screen { align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(3,6,14,.2), rgba(3,6,14,.75)); }
.title-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: float 4s ease-in-out infinite; }
.title-logo img { width: 210px; filter: drop-shadow(0 18px 50px rgba(80,140,255,.55)); }
.title-logo .wordmark .w1, .title-logo .wordmark .w2 { font-size: 96px; }
.press-start { margin-top: 40px; font-family: 'Russo One', sans-serif; letter-spacing: 6px; font-size: 22px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hidden-item { display: none; }

/* rows */
.row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 3px; border: 1px solid transparent; transition: background .1s; }
.row.focused { background: rgba(90,150,255,.14); border-color: rgba(120,170,255,.35); box-shadow: inset 3px 0 0 var(--focus); }
.row-label { flex: 0 0 210px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.row-label small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg { display: flex; flex: 1; gap: 4px; flex-wrap: wrap; }
.seg-opt { flex: 1; min-width: 70px; text-align: center; padding: 8px 6px; font-weight: 700; font-size: 15px; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.cycler { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.cyc-val { font-weight: 800; font-size: 16px; letter-spacing: 1px; text-align: center; flex: 1; }
.cyc-arrow { cursor: pointer; opacity: .65; font-size: 13px; padding: 0 4px; }
.cyc-arrow:hover { opacity: 1; }
.cycler-row.blue .row-label { border-left: 3px solid #3d8bff; padding-left: 8px; }
.cycler-row.orange .row-label { border-left: 3px solid #ff8a1f; padding-left: 8px; }
.cycler-row.unused { opacity: .45; }
.seg-opt.on { background: linear-gradient(180deg, #3d8bff, #1f5fd6); border-color: #7ab4ff; box-shadow: 0 0 16px rgba(60,130,255,.4); }
.switch { margin-left: auto; width: 54px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.12); position: relative; cursor: pointer; transition: background .15s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd8ea; transition: left .15s, background .15s; }
.toggle-row.on .switch { background: linear-gradient(90deg, #ff9a2e, #ffc24f); }
.toggle-row.on .switch .knob { left: 31px; background: #fff; }
.slider-track { flex: 1; height: 6px; background: rgba(255,255,255,.12); position: relative; cursor: pointer; border-radius: 3px; }
.slider-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 3px; }
.slider-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(120,170,255,.8); }
.slider-val { flex: 0 0 62px; text-align: right; font-weight: 700; color: var(--orange-2); }

/* tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { padding: 8px 18px; font-family: 'Russo One', sans-serif; letter-spacing: 1px; font-size: 15px; cursor: pointer; background: rgba(255,255,255,.05); border-bottom: 2px solid transparent;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tab.on { background: rgba(80,140,255,.25); border-bottom-color: var(--focus); }

/* keybinds */
.bind-row .row-label { flex: 1; }
.bind { min-width: 150px; padding: 6px 10px; text-align: center; font-weight: 700; background: #141c30; border: 1px solid #34436a; border-bottom-width: 3px; border-radius: 4px; cursor: pointer; }
.bind.listening { color: var(--focus); border-color: var(--focus); animation: blink .8s infinite; }
.bind-row.conflict { box-shadow: inset 3px 0 0 #ff4a4a; }
.bind-row.conflict .row-label { color: #ff8b8b; }
.bind-hint { margin-top: 10px; max-width: 640px; color: var(--muted); font-weight: 600; }


/* pause & end */
.pause { background: rgba(3,6,14,.55); backdrop-filter: blur(6px); align-items: center; }
.end-screen { align-items: center; background: rgba(3,6,14,.72); backdrop-filter: blur(8px); gap: 10px; }
.end-banner { font-family: 'Russo One', sans-serif; font-style: italic; font-size: 72px; letter-spacing: 3px; text-shadow: 0 0 40px currentColor; }
.end-score { font-family: 'Russo One', sans-serif; font-size: 52px; text-align: center; }
.end-score .dash { margin: 0 18px; color: var(--muted); }
.end-score .result { font-family: 'Rajdhani'; font-size: 24px; font-weight: 700; letter-spacing: 6px; }
.end-score .result.win { color: #ffd84a; } .end-score .result.loss { color: #ff8b8b; }
.end-table { width: min(760px, 94vw); }
.end-mvp { font-size: 22px; letter-spacing: 3px; color: var(--muted); }
.end-mvp b { color: #ffd84a; }
.end-buttons { display: flex; gap: 12px; margin-top: 10px; }

/* garage */
.garage-screen { flex-direction: row; justify-content: space-between; padding: 40px 6vw; background: linear-gradient(90deg, rgba(3,6,14,.85), rgba(3,6,14,.2) 45%, transparent 70%); }
.garage-left { width: min(430px, 90vw); display: flex; flex-direction: column; }
.garage-left h1 { font-family: 'Russo One', sans-serif; font-style: italic; font-size: 48px; margin: 0 0 10px; letter-spacing: 3px; }
.garage-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.gtab { padding: 6px 12px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.06); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.gtab.on { background: linear-gradient(180deg, #3d8bff, #1f5fd6); }
.garage-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 62vh; padding-right: 4px; }
.gnote { padding: 8px 14px 10px; font-size: 13px; line-height: 1.35; color: var(--muted, #9aa6bf); background: rgba(8,14,30,.55); border-left: 3px solid #ffb547; margin-bottom: 4px; }
.gitem { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; background: rgba(8,14,30,.7); border: 1px solid rgba(255,255,255,.06); }
.gitem .gl { font-family: 'Russo One', sans-serif; letter-spacing: 1px; font-size: 17px; }
.gitem .gs { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: auto; }
.gitem .eq { display: none; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #1c0f02; background: var(--focus); padding: 2px 6px; margin-left: 8px; }
.gitem.equipped .eq { display: inline-block; }
.gitem.focused { background: rgba(80,140,255,.28); border-color: rgba(140,180,255,.5); box-shadow: inset 3px 0 0 var(--focus); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.garage-info { align-self: flex-end; text-align: right; }
.gi-name { font-family: 'Russo One', sans-serif; font-style: italic; font-size: 64px; letter-spacing: 3px; text-shadow: 0 8px 40px rgba(60,120,255,.5); }
.gi-sub { color: var(--muted); letter-spacing: 4px; font-weight: 700; }

/* hints */
#hints { position: fixed; z-index: 30; right: 28px; bottom: 22px; display: flex; gap: 22px; font-weight: 700; letter-spacing: 1px; color: #dfe7ff; text-shadow: 0 2px 8px #000; }
body:not(.menu-open) #hints { display: none; }
.hint { display: flex; align-items: center; gap: 8px; }
.glyph { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font-weight: 800; font-size: 14px;
  background: #1b2236; border: 2px solid rgba(255,255,255,.35); color: #fff; font-family: 'Rajdhani', sans-serif; }
.glyph.ps-x { color: #7fb2ff; border-color: #7fb2ff; } .glyph.ps-o { color: #ff6b6b; border-color: #ff6b6b; }
.glyph.ps-sq { color: #ff8ad8; border-color: #ff8ad8; } .glyph.ps-tri { color: #5fe0b0; border-color: #5fe0b0; }
.glyph.xb-a { background: #3c9a3c; } .glyph.xb-b { background: #c63a3a; } .glyph.xb-x { background: #2c6fd1; } .glyph.xb-y { background: #c9a227; }
.glyph.shoulder { border-radius: 6px; } .glyph.key { border-radius: 5px; }
.glyph .ps-shape { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* ------------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
body.hud-hidden #hud { display: none; }
#scorebar { position: absolute; top: calc(14px * var(--hud-scale)); left: 50%; transform: translateX(-50%) scale(var(--hud-scale)); transform-origin: top center; display: flex; align-items: stretch; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
#scorebar .team { display: flex; align-items: center; justify-content: center; padding: 0 22px; min-width: 92px; }
#scorebar .score { font-family: 'Russo One', sans-serif; font-size: 40px; }
#scorebar .blue { background: linear-gradient(90deg, rgba(20,60,160,.0), rgba(28,90,230,.92) 30%); clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
#scorebar .orange { background: linear-gradient(270deg, rgba(160,60,10,.0), rgba(235,110,20,.92) 30%); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%); }
.clock-wrap { background: rgba(6,10,20,.9); padding: 4px 22px; text-align: center; min-width: 136px; }
#clock { font-family: 'Russo One', sans-serif; font-size: 34px; letter-spacing: 1px; }
#clock.ot { color: #ffd84a; }
/* last 10 seconds: the clock turns red and pulses once a second */
#clock.final { color: #ff4a4a; animation: clockPulse 1s ease-out infinite; }
@keyframes clockPulse { 0% { transform: scale(1.18); text-shadow: 0 0 18px rgba(255,60,60,.9); } 60% { transform: scale(1); text-shadow: none; } }
#final-count { position: absolute; top: calc(78px * var(--hud-scale)); left: 50%; transform: translateX(-50%); font-family: 'Russo One', sans-serif; font-size: 76px;
  color: #ff4a4a; text-shadow: 0 0 24px rgba(255,50,50,.8), 0 4px 10px rgba(0,0,0,.6); opacity: 0; pointer-events: none; }
#final-count.show { animation: finalPop 1s ease-out forwards; }
@keyframes finalPop { 0% { opacity: 0; transform: translateX(-50%) scale(1.6); } 15% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(.9); } }
#clock-sub { font-size: 11px; letter-spacing: 3px; color: #ffd84a; font-weight: 700; }

#center-msg { position: absolute; top: 28%; left: 0; right: 0; text-align: center; opacity: 0; transform: scale(var(--hud-scale)); }
#center-msg.show { opacity: 1; }
#center-msg .msg-main { font-family: 'Russo One', sans-serif; font-style: italic; font-size: 120px; letter-spacing: 4px; text-shadow: 0 0 40px rgba(80,150,255,.55), 0 8px 0 rgba(0,0,0,.35); }
#center-msg .msg-sub { margin-top: 6px; font-size: 28px; font-weight: 700; letter-spacing: 3px; text-shadow: 0 2px 10px #000; }
#center-msg.anim .msg-main { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
#center-msg.small .msg-main { font-size: 54px; }
#center-msg.demo .msg-main { color: #ff7a3a; font-size: 80px; }
#center-msg.go .msg-main { color: #ffd84a; }
#center-msg.goal .msg-main { font-size: 150px; text-shadow: 0 0 60px currentColor, 0 10px 0 rgba(0,0,0,.35); }
@keyframes pop { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#feed { position: absolute; top: 90px; right: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; transform: scale(var(--hud-scale)); transform-origin: top right; }
.feed-item { padding: 6px 14px; font-weight: 700; font-size: 18px; letter-spacing: 1px; background: rgba(6,10,20,.8); border-left: 4px solid #fff; animation: slidein .25s ease-out; transition: opacity .5s, transform .5s; }
.feed-item.t0 { border-color: var(--blue); } .feed-item.t1 { border-color: var(--orange); }
.feed-item.goal { background: rgba(255,200,60,.2); } .feed-item.item { color: #b9ff8a; }
.feed-item.out { opacity: 0; transform: translateX(30px); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }

#boost-gauge { position: absolute; right: 34px; bottom: 26px; width: 190px; height: 190px; transform: scale(var(--hud-scale)); transform-origin: bottom right; }
/* tilted in 3D like Rocket League's meter (rotationX -2, rotationY 15, focal length 500) */
#boost-gauge .tilt { position: absolute; inset: 0; transform: perspective(500px) rotateX(-2deg) rotateY(15deg); transform-origin: 30% 40%; }
#boost-gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
#boost-gauge circle { fill: none; stroke-width: 15; stroke-linecap: round; }
#boost-gauge .track { stroke: rgba(10,14,26,.75); stroke-dasharray: 377 503; }
#boost-gauge .arc { stroke: url(#bg-grad); stroke-dasharray: 377 503; filter: drop-shadow(0 0 8px rgba(255,150,40,.8)); transition: stroke-dashoffset .1s linear; }
.boost-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Russo One', sans-serif; font-size: 64px; text-shadow: 0 0 18px rgba(255,170,60,.6); }
.boost-label { position: absolute; bottom: 36px; width: 100%; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 3px; color: rgba(255, 210, 150, .85); }
#boost-gauge.empty .boost-num { color: #ff6b6b; }
/* above 80: pink / red "max" look, red glow, blinking label */
#boost-gauge.max .arc { stroke: url(#bg-grad-max); filter: drop-shadow(0 0 10px rgba(255, 50, 90, .9)); }
#boost-gauge.max .boost-num { color: #ffd0dc; text-shadow: 0 0 22px rgba(255, 40, 90, .85); }
#boost-gauge.max .boost-label { color: #ff7d9c; animation: boostBlink .5s steps(2, jump-none) infinite; }
@keyframes boostBlink { 0% { opacity: 1; } 100% { opacity: .25; } }
/* gaining boost: the fill flashes white and the glow pops, settling in 0.8 s */
#boost-gauge.gain .arc { animation: boostGain .8s cubic-bezier(.17, .84, .44, 1); }
#boost-gauge.gain .boost-num { animation: boostGainNum .8s cubic-bezier(.17, .84, .44, 1); }
@keyframes boostGain { 0% { stroke: #fff; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1)); } }
@keyframes boostGainNum { 0% { color: #fff; text-shadow: 0 0 36px rgba(255, 230, 200, 1); } }

#item-slot { position: absolute; left: 34px; bottom: 30px; width: 130px; height: 130px; transform: scale(var(--hud-scale)); transform-origin: bottom left; }
#item-slot svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#item-slot circle { fill: rgba(6,10,20,.6); stroke-width: 8; }
#item-slot .track { stroke: rgba(255,255,255,.1); }
#item-slot .arc { fill: none; stroke: #9cff60; stroke-dasharray: 339; stroke-linecap: round; transition: stroke-dashoffset .2s; }
#item-slot img { position: absolute; left: 15px; top: 15px; width: 100px; height: 100px; }
#item-slot.ready { animation: itempulse 1.2s ease-in-out infinite; }
#item-slot #item-name { position: absolute; left: 140px; bottom: 54px; white-space: nowrap; font-family: 'Russo One', sans-serif; letter-spacing: 1px; font-size: 18px; text-shadow: 0 2px 8px #000; }
#item-slot #item-key { position: absolute; left: 140px; bottom: 22px; }
@keyframes itempulse { 50% { filter: drop-shadow(0 0 14px rgba(160,255,100,.8)); } }

#replay-banner { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .3s; }
#replay-banner.visible { opacity: 1; }
#replay-banner .rp { font-family: 'Russo One', sans-serif; font-style: italic; font-size: 44px; letter-spacing: 10px; padding: 2px 90px;
  background: linear-gradient(90deg, transparent, rgba(220,40,60,.85), transparent); animation: blink 1.4s infinite; }
#replay-banner .skip { margin-top: 8px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; }
#replay-banner .skip .ri { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
#replay-banner .skip b { color: var(--text, #e8edf7); }
body.replaying #boost-gauge, body.replaying #item-slot { opacity: 0; }

#scoretable { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(var(--hud-scale)); min-width: 640px; padding: 16px 22px; background: var(--glass-2); border: 1px solid var(--line); opacity: 0; transition: opacity .12s; backdrop-filter: blur(8px); }
#scoretable.visible { opacity: 1; }
table.stats { width: 100%; border-collapse: collapse; font-size: 19px; }
table.stats th { text-align: right; color: var(--muted); font-size: 13px; letter-spacing: 2px; padding: 4px 10px; }
table.stats td { text-align: right; padding: 7px 10px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.05); }
table.stats td:first-child { text-align: left; font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: 1px; }
table.stats tr.t0 td:first-child { box-shadow: inset 4px 0 0 var(--blue); padding-left: 14px; }
table.stats tr.t1 td:first-child { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
table.stats tr.me td { color: #ffd84a; }

#freeplay-help { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; background: rgba(6,10,20,.75); font-weight: 700; letter-spacing: 1px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
/* Rocket League's ball cam indicator: "BALL CAM" with a dot and the toggle prompt under it, bottom-left */
#ballcam-tag { position: absolute; left: 44px; bottom: 30px; opacity: 0; transition: opacity .2s; transform: scale(var(--hud-scale)); transform-origin: bottom left; }
#ballcam-tag .bc-main { display: flex; align-items: center; gap: 7px; font-family: 'Russo One', sans-serif; font-size: 22px; letter-spacing: 1px; color: #ff6a3d;
  text-shadow: 0 0 10px rgba(255, 90, 50, .55), 0 2px 4px rgba(0, 0, 0, .6); }
#ballcam-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4a2e; box-shadow: 0 0 8px rgba(255, 74, 46, .9); }
#ballcam-tag .bc-sub { display: flex; align-items: center; gap: 5px; margin: 2px 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255, 255, 255, .85); }
#ballcam-tag .bc-sub .glyph { min-width: 20px; height: 20px; font-size: 11px; }
#ballcam-tag.on { opacity: 1; }
#item-slot:not(.hidden) ~ #ballcam-tag { bottom: 172px; }
#fps { position: absolute; left: 10px; top: 8px; font-size: 13px; color: #8f8; font-weight: 700; }
#hud.no-player #boost-gauge, #hud.no-player #item-slot { display: none; }

/* time warp vignette */
#warp-vignette { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(ellipse at center, transparent 55%, rgba(40,200,220,.35) 100%); }
body.time-warp #warp-vignette { opacity: 1; }
body.time-warp #app canvas { filter: saturate(1.25) hue-rotate(-12deg); }

@media (max-width: 900px) {
  .row-label { flex-basis: 130px; font-size: 15px; }
  .screen-header h1 { font-size: 38px; }
  .title-logo .wordmark .w1, .title-logo .wordmark .w2 { font-size: min(64px, 11vw); }
  #center-msg .msg-main { font-size: 70px; }
}

/* photo mode / free camera hint (outside the HUD so it shows while the HUD is hidden) */
#photo-hint { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 10px); z-index: 40; pointer-events: none;
  background: rgba(8, 12, 24, .78); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 18px;
  font: 600 13px/1.3 'Rajdhani', system-ui, sans-serif; letter-spacing: .6px; color: #e8edf7; white-space: nowrap;
  opacity: 0; transition: opacity .35s, transform .35s; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
#photo-hint.show { opacity: 1; transform: translate(-50%, 0); }
/* until the browser lets the page play sound (needs a click or key press) */
#sound-note { position: fixed; top: 16px; right: 16px; z-index: 45; pointer-events: none; cursor: pointer;
  background: rgba(8, 12, 24, .82); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 16px;
  font: 600 13px/1.3 'Rajdhani', system-ui, sans-serif; letter-spacing: .6px; color: #e8edf7; white-space: nowrap;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
#sound-note b { color: #ffb347; font-weight: 700; }
#sound-note.show { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------------------ multiplayer */
.text-row .text-input { flex: 1; min-width: 0; padding: 9px 12px; font: 700 17px 'Rajdhani', system-ui, sans-serif; letter-spacing: 1px; color: var(--ink);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 3px; outline: none; user-select: text; transition: border-color .12s, box-shadow .12s, background .12s; }
.text-row .text-input.upper { font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; }
.text-row .text-input:hover { border-color: rgba(120,170,255,.35); }
.text-row .text-input:focus { border-color: var(--focus); background: rgba(255,255,255,.08); box-shadow: 0 0 0 2px rgba(255,182,58,.22); }
.text-row .text-input::placeholder { color: rgba(147,162,196,.55); letter-spacing: 1px; }
.note { padding: 4px; color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.note b { color: var(--ink); }
.note.who { font-size: 16px; }
.note.status { min-height: 20px; color: var(--orange-2); }
.note.status.empty { display: none; }
.note.bad, .note.status.bad { color: #ff8b8b; }
.note.section { margin-top: 8px; padding: 6px 4px 3px; border-bottom: 1px solid var(--line); font-family: 'Russo One', sans-serif; font-size: 13px; letter-spacing: 3px; color: var(--muted); }
.note.friend-off { font-size: 14px; opacity: .7; }
.note.settings-line { font-size: 16px; }
.btn.invite { box-shadow: inset 4px 0 0 #5fe0b0; }
.btn.blocked { filter: saturate(.25) brightness(.7); }
.btn.blocked.focused { box-shadow: none; }
.action-row .actions { margin-left: auto; display: flex; gap: 6px; }
.chip { padding: 6px 14px; cursor: pointer; font-family: 'Russo One', sans-serif; font-size: 13px; letter-spacing: 1.5px; color: var(--ink);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transition: background .12s, filter .12s; }
.chip:hover { background: rgba(90,150,255,.25); }
.chip:active { filter: brightness(1.3); }
.chip.go { color: #9cffc8; } .chip.no { color: #ff9a9a; }
.row.focused .chip.sel { color: #fff; background: linear-gradient(180deg, #3d8bff, #1f5fd6); border-color: #7ab4ff; box-shadow: 0 0 14px rgba(60,130,255,.4); }
.action-row.online .row-label small { color: #5fe0b0; }
.action-row.offline .row-label { opacity: .7; }

/* lobby */
.lobby-screen { padding: 0 6vw; }
.lobby-head { display: flex; align-items: flex-end; gap: 28px; width: min(1180px, 100%); }
.lobby-code { margin: 0 0 18px auto; display: flex; flex-direction: column; align-items: flex-end; }
.lobby-code span { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 4px; }
.lobby-code b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: 10px; user-select: text;
  background: linear-gradient(180deg, #ffe0b5 10%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(255,140,40,.35)); }
.lobby-body { display: flex; align-items: flex-start; gap: 22px; width: min(1180px, 100%); }
.lobby-left { flex: 1.15; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lobby-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-card { min-height: 250px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.tc-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 18px; }
.team-card.blue .tc-head { background: linear-gradient(90deg, rgba(28,90,230,.92), rgba(28,90,230,.12)); }
.team-card.orange .tc-head { background: linear-gradient(90deg, rgba(235,110,20,.92), rgba(235,110,20,.12)); }
.tc-head b { font-family: 'Russo One', sans-serif; font-weight: 400; font-style: italic; font-size: 24px; letter-spacing: 3px; }
.tc-n { font-weight: 700; letter-spacing: 2px; opacity: .85; }
.tc-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border-left: 3px solid transparent; animation: slidein .25s ease-out; }
.team-card.blue .member { border-left-color: var(--blue); }
.team-card.orange .member { border-left-color: var(--orange); }
.member .mn { font-family: 'Russo One', sans-serif; font-size: 17px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .mc { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.member .dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: #ffb63a; box-shadow: 0 0 8px rgba(255,182,58,.8); animation: blink 1s ease-in-out infinite; }
.member.ok .dot { background: #5fe0b0; box-shadow: 0 0 8px rgba(95,224,176,.8); animation: none; }
.member.failed .dot { background: #ff5a5a; box-shadow: 0 0 8px rgba(255,90,90,.8); animation: none; }
.member.bot { opacity: .6; }
.member.bot .dot { background: var(--muted); box-shadow: none; animation: none; }
.member.empty { justify-content: center; color: var(--muted); font-weight: 700; letter-spacing: 3px; background: none; border: 1px dashed rgba(255,255,255,.12); }
.tag { padding: 1px 6px; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.tag.host { color: #1c0f02; background: var(--focus); }
.tag.you { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.spec-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-weight: 700; }
.spec-line:empty { display: none; }
.spec-line b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 3px; }
.spec-line .spec { color: var(--ink); }
.spec-line .spec.connecting { opacity: .6; }
.lobby-panel { flex: 1; width: auto; gap: 0; padding: 16px 18px 18px; }
.lobby-panel .row-label { flex-basis: 150px; }
.lobby-panel .seg-opt { min-width: 0; }
.lp-settings { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.lp-start { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn.start-btn { padding: 16px 26px; }
.btn.start-btn .btn-label { font-size: 26px; }
.lobby-actions { display: flex; gap: 10px; }
.btn.tile { flex: 1; padding: 14px 22px; background: var(--glass); border-color: var(--line); backdrop-filter: blur(10px); }
.btn.tile.focused { background: linear-gradient(90deg, rgba(90,150,255,.35), rgba(90,150,255,.1)); }
.btn.compact { padding: 7px 18px; }
.btn.compact .btn-label { font-size: 15px; }
.lc-row { display: flex; align-items: center; gap: 12px; }
.lc-copy .btn { background: rgba(255,255,255,.07); }
.lobby-foot { position: absolute; left: 6vw; bottom: 18px; }
.lobby-foot .btn { background: rgba(8,14,30,.6); border-color: rgba(255,120,120,.25); }
.lobby-foot .btn.focused { background: rgba(255,80,80,.18); box-shadow: inset 4px 0 0 #ff6b6b; }
.note.lobby-status { padding: 8px 10px; color: var(--ink); background: rgba(255,182,58,.08); border-left: 3px solid var(--focus); }
.note.lobby-status.bad { background: rgba(255,80,80,.1); border-left-color: #ff5a5a; }
.team-pick .seg-opt:nth-child(2).on { background: linear-gradient(180deg, #ff9a3a, #e0650f); border-color: #ffc08a; box-shadow: 0 0 16px rgba(255,140,40,.4); }
.team-pick .seg-opt:nth-child(3).on { background: linear-gradient(180deg, #59627a, #3a4157); border-color: #9aa6c4; box-shadow: none; }

/* a friend's invite, outside the menus so it shows in a match too */
#invite-toast { position: fixed; left: 24px; top: 22px; z-index: 46; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 12px 18px; max-width: calc(100vw - 48px);
  background: var(--glass-2); border: 1px solid var(--line); box-shadow: inset 4px 0 0 #5fe0b0, 0 20px 50px rgba(0,0,0,.45); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; }
#invite-toast.show { opacity: 1; transform: none; pointer-events: auto; }
#invite-toast .it-main { font-size: 17px; font-weight: 700; } #invite-toast .it-main b { font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: 1px; }
#invite-toast .it-sub { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }
#invite-toast .it-actions { display: flex; gap: 6px; margin-top: 4px; }

@media (max-width: 900px) {
  .lobby-screen { justify-content: flex-start; padding: 24px 16px; overflow-y: auto; }
  .lobby-head { flex-wrap: wrap; gap: 0 16px; }
  .lobby-code { margin: 0 0 14px; align-items: flex-start; }
  .lobby-code b { font-size: 38px; letter-spacing: 6px; }
  .lobby-body { flex-direction: column; }
  .lobby-board { width: 100%; }
  .team-card { min-height: 0; }
  .lobby-panel { width: 100%; }
  .lobby-left { width: 100%; }
  .lobby-foot { position: static; margin-top: 16px; }
}

/* ------------------------------------------------------------------ back button (every menu page) */
.back-btn { position: fixed; top: 18px; left: 24px; z-index: 31; display: flex; align-items: center; gap: 8px; padding: 8px 18px 8px 14px; cursor: pointer;
  font: 400 15px 'Russo One', sans-serif; letter-spacing: 2px; color: var(--ink); background: rgba(8,14,30,.72); border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .25s, transform .25s, background .12s; }
.back-btn .chev { font-size: 22px; line-height: 0; margin-top: -2px; color: var(--focus); }
.back-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.back-btn:hover { background: rgba(90,150,255,.3); }
.back-btn:active { transform: translateX(-2px); }
body:not(.menu-open) .back-btn { display: none; }
.panel-screen { padding-top: 64px; padding-bottom: 24px; }
.garage-screen { padding-top: 72px; }

/* ------------------------------------------------------------------ form fields */
.field-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; }
.field-label { font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.row.focused .field-label { color: var(--focus); }
.field-box { position: relative; display: flex; }
.field-box .text-input { flex: 1; min-width: 0; padding: 12px 14px; font: 700 18px 'Rajdhani', system-ui, sans-serif; letter-spacing: 1px; color: var(--ink);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 3px; outline: none; user-select: text; transition: border-color .12s, box-shadow .12s, background .12s; }
.field-box .text-input:hover { border-color: rgba(120,170,255,.4); }
.field-box .text-input:focus { border-color: var(--focus); background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(255,182,58,.2); }
.field-box .text-input::placeholder { color: rgba(147,162,196,.5); }
.field-box .text-input.upper { font-family: 'Russo One', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 6px; }
.field-box .eye { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; cursor: pointer;
  color: var(--muted); background: none; border: 0; border-radius: 3px; transition: color .12s, background .12s; }
.field-box .eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field-box .eye:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.field-box .eye:focus-visible { outline: 2px solid var(--focus); }
.field-box .eye.on { color: var(--focus); }
.field-box:has(.eye) .text-input { padding-right: 48px; }

/* ------------------------------------------------------------------ multiplayer hub */
.mp-wrap { width: min(980px, 100%); display: flex; flex-direction: column; gap: 14px; }
.mp-banners { display: flex; flex-direction: column; gap: 8px; }
.mp-banners:empty { display: none; }
.mp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.mp-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.mp-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), transparent); }
.mp-card.create::before { background: linear-gradient(90deg, var(--orange), #ffd24a 40%, transparent); }
.mp-card.create { background: linear-gradient(160deg, rgba(255,140,40,.14), rgba(8,14,30,.78) 55%); }
.mp-kicker { font-weight: 800; font-size: 12px; letter-spacing: 4px; color: var(--muted); }
.mp-title { font: italic 400 32px/1 'Russo One', sans-serif; letter-spacing: 2px; }
.mp-text { color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1.35; max-width: 34ch; }
.mp-card .row, .mp-card .btn { margin-top: auto; }
.mp-card .field-row { padding: 0; }
.mp-card .field-row.focused { background: none; border-color: transparent; box-shadow: none; }
.code-field .text-input { font-size: 30px; padding: 10px 16px; text-align: center; letter-spacing: 12px; }
.btn.mp-cta { padding: 16px 24px; }
.btn.mp-cta .btn-label { font-size: 24px; }
.mp-card.join .btn.mp-cta { margin-top: 2px; }
.mp-strip { display: flex; gap: 14px; align-items: stretch; }
.mp-profile { flex: 1.15; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.mp-profile .guest-field { flex: 1; margin-left: auto; max-width: 260px; padding: 0; }
.mp-profile .guest-field.focused { background: none; border-color: transparent; box-shadow: none; }
.mp-profile .guest-field .text-input { padding: 9px 12px; font-size: 16px; }
.avatar { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font: 400 20px 'Russo One', sans-serif; color: #1c0f02;
  background: linear-gradient(180deg, #ffc24f, var(--orange)); box-shadow: 0 0 0 3px rgba(255,180,60,.25), 0 6px 20px rgba(255,140,40,.35); }
.avatar.big { flex-basis: 72px; height: 72px; font-size: 34px; }
.mp-who { display: flex; flex-direction: column; min-width: 0; }
.mp-who span { font-weight: 800; font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.mp-who b { font: 400 22px 'Russo One', sans-serif; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-side { flex: 1; display: flex; gap: 14px; }
.mp-side .btn.tile { flex: 1; justify-content: center; }
.btn.tile.accent { box-shadow: inset 4px 0 0 var(--focus); }
.mp-wrap > .note.status { padding: 8px 12px; background: rgba(255,182,58,.08); border-left: 3px solid var(--focus); }

/* ------------------------------------------------------------------ account */
.auth-card { width: min(460px, 92vw); padding: 22px; gap: 10px; }
.auth-mode .row-label { display: none; }
.auth-mode { padding: 0 0 6px; }
.auth-mode.focused { background: none; border-color: transparent; box-shadow: none; }
.auth-mode .seg-opt { padding: 10px 6px; font-size: 16px; }
.btn.auth-go { margin-top: 6px; padding: 15px 24px; }
.btn.auth-go .btn-label { font-size: 22px; }
.note.fine-print { font-size: 14px; line-height: 1.4; }
.auth-card > .note.status { padding: 8px 12px; background: rgba(255,182,58,.08); border-left: 3px solid var(--focus); }
.auth-profile { display: flex; align-items: center; gap: 16px; padding: 4px 4px 12px; }
.auth-profile .mp-who b { font-size: 30px; }
.auth-card .btn.compact.danger { align-self: flex-start; }

@media (max-width: 900px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-strip { flex-direction: column; }
  .mp-profile { flex-wrap: wrap; }
  .mp-profile .guest-field { max-width: none; flex-basis: 100%; }
  .mp-screen { justify-content: flex-start; overflow-y: auto; }
}
/* the code sits over bright sky: give it a plate */
.lobby-code { padding: 10px 14px 12px 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 3px 0 0 var(--orange); }
.lobby-code b { font-size: 46px; }
.lc-copy .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.lobby-panel .row-label { flex-basis: 170px; }

/* ------------------------------------------------------------------ stat pop-ups (your saves, shots, demos, goals) */
#accolades { position: absolute; left: 50%; top: 58%; transform: translateX(-50%) scale(var(--hud-scale)); transform-origin: top center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.accolade { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 26px 10px 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(8,14,30,.15), rgba(8,14,30,.88) 18%, rgba(8,14,30,.88) 82%, rgba(8,14,30,.15));
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  animation: acIn .42s cubic-bezier(.18,1.5,.4,1) both; }
.accolade::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 100%; border-top: 2px solid var(--ac); border-bottom: 2px solid var(--ac); opacity: .9;
  mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.accolade.t0 { --ac: #4f9bff; --acg: rgba(60,140,255,.75); }
.accolade.t1 { --ac: #ff9a3a; --acg: rgba(255,140,40,.75); }
.ac-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ac); filter: drop-shadow(0 0 8px var(--acg)); animation: acIcon .6s .08s cubic-bezier(.2,1.8,.4,1) both; }
.ac-icon svg { width: 30px; height: 30px; fill: currentColor; }
.ac-icon svg .ln { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ac-icon svg path.ln { fill: none; }
.accolade.save .ac-icon svg path:first-child { fill: currentColor; } .accolade.save .ac-icon svg .ln { stroke: #0b1222; }
.ac-title { font: italic 400 34px/1 'Russo One', sans-serif; letter-spacing: 3px; color: #fff; text-shadow: 0 0 22px var(--acg), 0 3px 0 rgba(0,0,0,.4); white-space: nowrap; }
.ac-pts { font: 400 22px 'Russo One', sans-serif; letter-spacing: 1px; color: #ffd84a; text-shadow: 0 0 14px rgba(255,200,60,.7); animation: acPts .5s .18s cubic-bezier(.2,1.6,.4,1) both; }
.ac-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); animation: acShine .7s .15s ease-out forwards; }
.accolade.big { padding: 13px 32px 13px 22px; }
.accolade.big .ac-title { font-size: 46px; }
.accolade.big .ac-pts { font-size: 28px; }
.accolade.out { animation: acOut .45s ease-in forwards; }
@keyframes acIn { 0% { opacity: 0; transform: scale(1.9) skewX(-8deg); filter: blur(6px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes acIcon { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes acPts { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes acShine { to { transform: translateX(120%); } }
@keyframes acOut { to { opacity: 0; transform: translateY(-14px) scale(.92); } }
body.replaying #accolades { display: none; }

/* online: paused by vote */
#net-pause { position: absolute; left: 0; right: 0; top: 30%; text-align: center; opacity: 0; transform: scale(calc(var(--hud-scale) * 1.06)); transition: opacity .3s, transform .3s; }
#net-pause.show { opacity: 1; transform: scale(var(--hud-scale)); }
#net-pause .np-main { display: inline-block; padding: 8px 60px; font: italic 400 64px/1.1 'Russo One', sans-serif; letter-spacing: 6px;
  background: linear-gradient(90deg, transparent, rgba(8,14,30,.85) 20%, rgba(8,14,30,.85) 80%, transparent); text-shadow: 0 0 30px rgba(80,150,255,.55); }
#net-pause .np-sub { margin-top: 8px; font-weight: 700; font-size: 20px; letter-spacing: 3px; color: #dfe7ff; text-shadow: 0 2px 8px #000; }
body.hud-hidden #net-pause.show { display: block; }
.note.pause-note { padding: 10px 12px; color: var(--ink); background: rgba(255,182,58,.08); border-left: 3px solid var(--focus); }
body.net-paused #center-msg, body.net-paused #final-count { opacity: 0 !important; }
