@font-face{font-family:Inter;src:url(../garage/inter.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{font-family:Inter,system-ui,sans-serif;color:#f8fdff;color-scheme:dark;--ink:#102236;--cyan:#80f3ff;--yellow:#ffcf49}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#arena{height:100%;width:100%;margin:0;overflow:hidden}body{background:#103850}#arena{position:fixed;inset:0;height:100dvh;isolation:isolate}button,a{font:inherit;color:inherit;touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #7ef4ff;outline-offset:3px}#field{display:block;width:100%;height:100%;touch-action:none;outline:0;cursor:crosshair}.cover{position:absolute;inset:0;z-index:4;display:grid;align-items:end;justify-items:center;padding:0 16px max(7vh,env(safe-area-inset-bottom));background:#17344b url(loading.webp) center/cover no-repeat}.cover:before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,#07162de8,transparent 51%)}.load-box{position:relative;width:min(450px,85vw);text-align:center}.mode-tag{display:inline-block;transform:skew(-8deg);padding:3px 9px;color:#183349;background:var(--yellow);font-size:11px;letter-spacing:.08em;font-weight:900;text-transform:uppercase}.load-box h1,.panel h2{font-style:italic;letter-spacing:-.055em;font-weight:900;text-shadow:1px 3px #152843}.load-box h1{font-size:clamp(30px,4vw,66px);margin:3px 0 14px;line-height:1}.load-caption{display:flex;justify-content:space-between;font-weight:700;font-size:13px;text-shadow:0 2px #14213b}progress{height:9px;width:100%;appearance:none;border:2px solid #13243c;border-radius:7px;overflow:hidden;background:#193549}progress::-webkit-progress-bar{background:#18384a}progress::-webkit-progress-value{background:linear-gradient(90deg,#14bfc9,#a8fbff)}progress::-moz-progress-bar{background:#5feafd}#load-error{margin-top:10px}#load-error button,#load-error a{padding:7px}.upper-left,.upper-right,.player-status,.keys,.notice{position:absolute}.upper-left{top:max(13px,env(safe-area-inset-top));left:max(15px,env(safe-area-inset-left));pointer-events:none}.game-badge,.player-status,.upper-right button,.keys{background:#10243be8;border:2px solid #0b182a;box-shadow:inset 0 1px #82b6ca80,0 3px 0 #10233c55}.game-badge{display:flex;align-items:center;gap:9px;padding:8px 13px 9px 9px;border-radius:6px;border-left:4px solid var(--yellow)}.game-badge>.ic{color:var(--yellow);font-size:26px}.game-badge strong{font-size:clamp(14px,1.35vw,22px);font-style:italic;font-weight:850;letter-spacing:-.04em}.game-badge small{display:block;color:var(--cyan);font-size:11px;font-weight:700;margin-top:1px}.upper-right{top:max(13px,env(safe-area-inset-top));right:max(13px,env(safe-area-inset-right));display:flex;gap:6px}.upper-right button{width:37px;height:37px;display:grid;place-items:center;border-radius:6px;font-weight:850;font-size:20px;color:#f3fbfc}.upper-right button:hover{background:#235273}.player-status{bottom:max(15px,env(safe-area-inset-bottom));left:max(15px,env(safe-area-inset-left));width:185px;padding:8px 11px;border-radius:7px}.player-status>div:first-child,.player-status small{display:flex;align-items:center;justify-content:space-between;gap:9px}.player-status strong{font-weight:850;font-size:14px}.player-status b{color:var(--yellow);font-size:12px}.player-status small{font-size:11px}.health{height:7px;border:1px solid #081f27;background:#102832;border-radius:3px;margin:6px 0 3px;overflow:hidden}.health span{height:100%;display:block;background:linear-gradient(90deg,#25ba8b,#84f7ae)}.keys{right:max(14px,env(safe-area-inset-right));bottom:max(15px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:7px;color:#d8e8ed;font-size:12px;border-radius:5px;padding:7px 11px;pointer-events:none}.keys kbd{font:700 11px Inter,system-ui;color:white;border:1px solid #7ca2b4;border-radius:3px;padding:2px 4px}.keys span{opacity:.5}.feed{color:#f3f9fb;margin-top:7px;display:grid;justify-items:start;gap:3px;font-size:11px;text-shadow:0 1px #101b27}.feed div{background:#173249b8;border-radius:3px;padding:3px 6px}.feed b{color:#ffd174}.feed .ic{color:#78ddeb;margin-inline:4px}.notice{left:50%;top:32%;transform:translate(-50%,-50%);color:white;background:#162e47ea;border:2px solid #123247;border-top-color:var(--cyan);box-shadow:0 3px 0 #101e36;border-radius:7px;padding:9px 15px;font-weight:850;font-style:italic;text-align:center;pointer-events:none;font-size:clamp(15px,2.7vw,29px)}
dialog{color:#f5fcff;background:#152c48;padding:0;border:3px solid #102039;border-radius:12px;width:min(475px,calc(100vw - 22px));max-height:calc(100dvh - 23px);overflow:auto;box-shadow:inset 0 2px #5a9cba,0 6px #081a2a,0 19px 70px #081a2a88}dialog::backdrop{background:#071422b8}.panel{padding:20px}.panel h2{font-size:clamp(25px,3.6vw,39px);margin:5px 0 10px;line-height:1}.panel p{line-height:1.45;font-size:14px;color:#d1e5ed}.panel .mode-tag{font-size:9px}#overlay-top{display:flex;justify-content:space-between;align-items:start}#close{background:#214566;color:#e4f6ff;border:1px solid #58819b;font-size:21px;font-weight:700;border-radius:4px;width:29px;height:29px;line-height:1}#overlay-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}#overlay-actions a,#overlay-actions button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:2px solid #0a1b30;color:#152d43;background:var(--yellow);padding:7px 12px;min-height:37px;border-radius:5px;box-shadow:0 2px #081a2a;font-size:14px;font-weight:850}#overlay-actions .secondary{background:#2c526d;color:#e9faff}.scoreboard{border-collapse:collapse;width:100%;text-align:left;font-variant-numeric:tabular-nums}.scoreboard th,.scoreboard td{padding:5px 5px;color:#e7f2f3;font-size:13px;border-bottom:1px solid #2f4b63}.scoreboard th{color:#81cedf;font-size:11px}.scoreboard td:nth-child(n+3),.scoreboard th:nth-child(n+3){text-align:right}.scoreboard tr.mine{background:#246076}.scoreboard tr.medal td:first-child{color:var(--yellow);font-weight:bold}.scoreboard .reward{color:#ffdb79}.standfirst{font-weight:700;margin:3px 0 12px}.panel .tie{font-size:11px;color:#b5cad6;margin:8px 0}
@media(max-width:570px){.upper-left{left:7px;top:max(8px,env(safe-area-inset-top))}.game-badge{gap:4px;padding:4px 7px 5px 5px}.game-badge>.ic{display:none}.game-badge strong{font-size:12px}.game-badge small{font-size:10px}.upper-right{right:7px;top:max(8px,env(safe-area-inset-top));gap:3px}.upper-right button{height:32px;width:32px;font-size:17px}.player-status{width:138px}.keys{display:none}.feed{font-size:9px}.panel{padding:14px}.scoreboard th,.scoreboard td{padding:4px;font-size:11px}}
@media(max-height:490px){.game-badge{padding:4px 7px}.feed div:nth-last-child(n+3){display:none}.panel{padding:12px}.panel h2{font-size:24px}.scoreboard th,.scoreboard td{padding:2px 4px}.panel .tie{margin:3px}.panel #overlay-actions{margin-top:8px}}

/* Mirror the two teams around the score target, with a different crest for each. */
#arena { --team-blue: #83e7ff; --team-red: #ffaaa0; }
.mode-count {
  font-style: italic; font-size: 20px; line-height: 1; letter-spacing: -.09em;
  font-weight: 900; color: #ffe084; white-space: nowrap;
}
.mode-count span { color: #a5aeb2; font-size: .62em; padding: 0 2px; }
.scoreline {
  position: absolute; top: max(13px,env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%); display: grid;
  grid-template-columns: minmax(92px,1fr) auto minmax(92px,1fr);
  padding: 3px; gap: 3px; color: white; background: #101e31ef;
  border: 2px solid #091625; border-radius: 8px;
  box-shadow: inset 0 1px #8caccb77, 0 3px 0 #0c1d3655;
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.team-blue { --team-color: var(--team-blue,#83e7ff); --team-bg: #145684; }
.team-red { --team-color: var(--team-red,#ffaaa0); --team-bg: #863b43; }
.team-strip {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  color: #fff; border-radius: 4px;
  background: var(--team-bg,#26455e); box-shadow: inset 0 2px 0 var(--team-color);
  padding: 3px 7px; white-space: nowrap;
}
.team-strip span { font-size: 11px; font-weight: 760; }
.team-strip b { font-size: clamp(20px,2vw,29px); line-height: 1; font-weight: 900; }
.team-blue b { margin-left: auto; }
.team-red b { margin-right: auto; }
.team-glyph, .own-team:before {
  display: inline-block; flex: none; width: 12px; height: 13px;
  background: var(--team-color);
}
.team-blue .team-glyph, .own-team.team-blue:before {
  clip-path: polygon(0 10%,50% 0,100% 10%,95% 62%,75% 85%,50% 100%,25% 85%,5% 62%);
}
.team-red .team-glyph, .own-team.team-red:before {
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.own-team {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750;
  color: var(--team-color); margin-top: 2px;
}
.own-team:before { content: ""; width: 8px; height: 9px; }
.player-status .health { margin-top: 4px; }
.scoreboard .team-heading th, .scoreboard .team-heading td {
  color: var(--team-color,#d4e8f3); background: var(--team-bg,#23435c);
  font-size: 12px; font-weight: 800; text-align: left;
}
.scoreboard tr.team-blue td:first-child, .scoreboard tr.team-red td:first-child {
  box-shadow: inset 3px 0 var(--team-color); padding-left: 8px;
}
.scoreboard .team-glyph { width: 9px; height: 10px; margin-right: 5px; }
.team-result, .score-summary {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 7px; margin: 6px 0 12px; font-variant-numeric: tabular-nums;
}
.team-result .team-strip, .score-summary .team-strip { flex: 1; padding: 7px 9px; }
@media (max-width: 650px) {
  .upper-left { left: max(7px,env(safe-area-inset-left)); top: max(6px,env(safe-area-inset-top)); }
  .upper-right { right: max(7px,env(safe-area-inset-right)); top: max(6px,env(safe-area-inset-top)); }
  .upper-right button { height: 32px; width: 32px; }
  .game-badge { align-items: center; gap: 6px; padding: 3px 6px; }
  .mode-count { font-size: 16px; }
  .game-badge strong { font-size: 12px; line-height: 1; }
  .game-badge small { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .scoreline {
    top: calc(max(6px,env(safe-area-inset-top)) + 39px);
    grid-template-columns: minmax(77px,1fr) auto minmax(77px,1fr); padding: 2px;
  }
  .team-strip { padding: 3px 5px; gap: 4px; }
  .team-strip b { font-size: 19px; }
  .team-strip span { font-size: 10px; }
  .team-glyph { width: 9px; height: 10px; }
  .feed { margin-top: 42px; }
  .player-status .own-team { font-size: 10px; }
}
@media (min-width: 651px) and (max-width: 840px) {
  .mode-count { font-size: 16px; }
  .game-badge { gap: 5px; padding: 5px 7px; }
  .game-badge strong { font-size: 13px; }
  .game-badge small { max-width: 160px; }
  .scoreline { grid-template-columns: minmax(79px,1fr) auto minmax(79px,1fr); top: max(8px,env(safe-area-inset-top)); }
  .team-strip { padding: 4px 5px; gap: 4px; }
  .team-strip span { font-size: 10px; }
}
@media (max-height: 490px) {
  .player-status .own-team { margin-top: 1px; font-size: 10px; }
  .team-result, .score-summary { margin: 3px 0 6px; }
}

.scoreboard caption{font-weight:750;text-align:left;margin:.7rem 0 .4rem;color:#cbdfe9}
.team-indicator{display:inline-flex;vertical-align:middle;margin-right:2px}
.team-indicator .team-glyph{width:10px;height:11px}
.feed .team-blue{color:#96eaff}.feed .team-red{color:#ffa99e}

.score-goal {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2px 8px;
  color: #ffe7a1;
  line-height: 1.05;
  white-space: nowrap;
}
.score-goal span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.score-goal strong { font-size: 15px; font-weight: 850; }
.load-objective, .load-touch-tip { margin: 0 auto 12px; color: #f7fbff; text-shadow: 0 1px 4px #071422; }
.load-objective strong { color: #ffdf85; }
.load-touch-tip { font-size: 14px; max-width: 38ch; }
.load-box h1 { margin-bottom: 8px; }
.load-touch-tip, #touch-controls { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

#arena {
  --pad-size: clamp(84px, 16vmin, 112px);
  --pad-inset: max(13px, env(safe-area-inset-bottom));
  --drive-left: max(18px, env(safe-area-inset-left));
}
#touch-controls { position: absolute; inset: 0; pointer-events: none; }
.stick {
  position: absolute;
  bottom: calc(var(--pad-inset) + 17px);
  width: var(--pad-size); height: var(--pad-size); padding: 0; margin: 0;
  display: grid; place-items: center;
  border: 2px solid #c3eff2c7; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #46778e85, #0e314799 78%);
  box-shadow: inset 0 0 0 5px #10304755, 0 2px 5px #08233955;
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
#drive { left: var(--drive-left); }
#trigger { right: max(18px, env(safe-area-inset-right)); }
#next-target {
  position: absolute; right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--pad-inset) + var(--pad-size) + 29px);
  width: max-content; min-width: 129px; min-height: 46px; padding: 5px 9px;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #9eaebc; border-radius: 9px;
  box-shadow: inset 0 1px #f2f9ff26, 0 2px 3px #07142266;
  background: #13283ceb; color: #fff; text-align: left; pointer-events: auto;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#next-target > .ic { color: #c5d3dc; font-size: 19px; }
.target-copy { display: grid; min-width: 0; gap: 2px; }
.target-copy strong { font-size: 12px; font-weight: 780; white-space: nowrap; }
#target-label { color: #c5d3dc; font-size: 12px; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#next-target.has-target { border-color: #f6c858; }
#next-target.has-target > .ic, #next-target.has-target #target-label { color: #ffdb78; }
#next-target:active { background: #32475a; }
@media (max-width: 350px) {
  #next-target { right: max(7px, env(safe-area-inset-right)); min-width: 121px; padding-inline: 6px; }
}
.stick .thumb {
  height: 49%; width: 49%; display: grid; place-items: center;
  border: 2px solid #c8edfa; border-radius: 50%; background: #355e73db;
  color: white; font-size: 24px; box-shadow: 0 2px 5px #0c192c80;
  pointer-events: none;
}
.drive-cross { width: 17px; height: 17px; background: #ecfaff; clip-path: polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%); }
.stick.fire { border-color: #ffdf9bd9; background: radial-gradient(circle at 45% 40%, #a57a489e, #604021a3 78%); }
.stick.fire .thumb { border-color: #ffe3a2; background: #a15d28e8; }
.stick.fire:active .thumb,.stick.fire.firing .thumb { background: #ed9a37; box-shadow: 0 0 18px #ffc356a6; }
.stick.fire.firing { border-color: #fff1b6; }
.stick.fire > strong small { display: block; font-size: 10px; color: #ffdb91; }
.stick > strong {
  position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%);
  padding: 1px 7px 2px; border-radius: 4px; background: #0b2037e6;
  font: 750 12px/1.2 Inter,system-ui,sans-serif; color: white; pointer-events: none;
}
#arena.touch #touch-controls, #arena.touch .load-touch-tip { display: block; }
#arena.touch .keys { display: none; }
#arena.touch .player-status {
  bottom: calc(var(--pad-inset) + var(--pad-size) + 25px); width: 160px; padding: 5px 8px;
}
.upper-right button { min-width: 40px; min-height: 40px; }
@media (any-pointer: coarse) {
  #touch-controls, .load-touch-tip { display: block; }
  .keys { display: none; }
  .player-status { bottom: calc(var(--pad-inset) + var(--pad-size) + 25px); width: 160px; padding: 5px 8px; }
  .upper-right button { min-width: 44px; min-height: 44px; }
  #close { height: 40px; width: 40px; }
}
@media (max-width: 650px) {
  .scoreline { top: calc(max(6px,env(safe-area-inset-top)) + 49px); }
  .score-goal { padding: 1px 4px; }
  .score-goal strong { font-size: 13px; }
  .feed { margin-top: 54px; }
  .game-badge small { max-width: 105px; }
}
@media (max-height: 440px) {
  #arena { --pad-size: 74px; --pad-inset: max(5px,env(safe-area-inset-bottom)); }
  .load-box h1 { margin-bottom: 3px; font-size: 28px; }
  .load-objective, .load-touch-tip { margin-bottom: 5px; }
  .load-touch-tip { max-width: none; }
  .player-status .health { margin-top: 2px; }
}

.player-status small > * { white-space: nowrap; }

.load-supply-tip {
  max-width: 38ch; margin: 0 auto 12px; font-size: 14px;
  color: #f7fbff; text-shadow: 0 1px 4px #071422;
}
#arena.touch .load-supply-tip { display: none; }
@media (any-pointer: coarse) { .load-supply-tip { display: none; } }

.player-status { pointer-events: none; }
.weapon-status, .pickup-gain { --supply-panel: #324f63; --supply-ink: #d7f5ff; }
[data-kind="repair"] { --supply-panel: #147755; --supply-ink: #f7ffed; }
[data-kind="missile"] { --supply-panel: #ae412a; --supply-ink: #fff2d6; }
[data-kind="machinegun"] { --supply-panel: #285779; --supply-ink: #ffdc78; }
.weapon-status {
  display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.1;
  border-top: 1px solid #9bc0cd40; margin-top: 5px; padding-top: 4px;
  font-weight: 760; pointer-events: none;
}
.supply-glyph {
  position: relative; flex: none; display: grid; place-items: center;
  width: 22px; height: 20px; border: 1px solid #e4eff344; border-radius: 4px;
  color: var(--supply-ink); background: var(--supply-panel);
}
.supply-glyph::before { content: ""; display: block; background: currentColor; }
[data-kind="cannon"] .supply-glyph::before {
  width: 13px; height: 8px; transform: rotate(-30deg);
  clip-path: polygon(0 8%, 70% 8%, 100% 50%, 70% 92%, 0 92%, 0 70%, 9% 70%, 9% 30%, 0 30%);
}
[data-kind="repair"] .supply-glyph::before {
  width: 12px; height: 12px;
  clip-path: polygon(32% 0, 68% 0, 68% 32%, 100% 32%, 100% 68%, 68% 68%, 68% 100%, 32% 100%, 32% 68%, 0 68%, 0 32%, 32% 32%);
}
[data-kind="missile"] .supply-glyph::before {
  width: 11px; height: 14px; transform: rotate(38deg);
  clip-path: polygon(50% 0, 70% 21%, 70% 51%, 96% 72%, 96% 94%, 61% 80%, 58% 98%, 42% 98%, 39% 80%, 4% 94%, 4% 72%, 30% 51%, 30% 21%);
}
[data-kind="machinegun"] .supply-glyph::before {
  width: 14px; height: 11px;
  clip-path: polygon(0 100%, 0 28%, 11% 5%, 22% 28%, 22% 100%, 38% 100%, 38% 23%, 50% 0, 62% 23%, 62% 100%, 78% 100%, 78% 28%, 89% 5%, 100% 28%, 100% 100%);
}
#weapon-ammo {
  min-width: 23px; margin-left: auto; text-align: center; font-size: 15px;
  color: var(--supply-ink); font-weight: 850; font-variant-numeric: tabular-nums;
}
.pickup-gain {
  position: absolute; top: 2px; right: 3px; left: 3px; z-index: 1;
  display: flex; align-items: center; gap: 6px; min-height: 35px; padding: 2px 6px;
  border-left: 3px solid var(--supply-ink); border-radius: 4px;
  background: #10263a; box-shadow: inset 0 0 0 1px #b5d4dd36;
  pointer-events: none; opacity: 0;
}
.pickup-gain.visible { opacity: 1; animation: gain-in .17s ease-out; }
.pickup-gain strong, .pickup-gain small { display: block; line-height: 1.18; }
.pickup-gain strong { font-size: 12px; color: #fff; }
.pickup-gain small { font-size: 11px; font-weight: 750; color: var(--supply-ink); }
@keyframes gain-in { from { transform: translateY(3px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pickup-gain.visible { animation: none; } }
@media (min-width: 571px) and (max-width: 760px) {
  .keys { max-width: calc(100% - 228px); flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-height: 440px) {
  .load-supply-tip { margin-bottom: 5px; }
  .weapon-status { margin-top: 3px; padding-top: 2px; }
  .pickup-gain { min-height: 32px; }
}
@media (max-width: 650px) and (max-height: 360px) {
  .feed div:nth-last-child(n+2) { display: none; }
}


#desktop-target {
  display: grid; place-items: center; padding: 0;
  color: #fff; pointer-events: auto;
}
#desktop-target.has-target { border-color: var(--yellow); color: var(--yellow); }
#desktop-target-label { opacity: 1; white-space: nowrap; }
#arena.touch #desktop-target { display: none; }
@media (any-pointer: coarse) { #desktop-target { display: none; } }

/* The instrument surrounds share the copper finish of the hangar. Team and
   supply colours inside the instruments retain their distinct meanings. */
#arena { --instrument: linear-gradient(154deg,#49313efa,#281e32f5 70%); }
.game-badge, .player-status, .keys, .upper-right button, .scoreline {
  background: var(--instrument);
  border-color: #231723;
  box-shadow: inset 0 1px #f8c59f8c,0 3px #1b1125a6;
}
.game-badge { border-left-color: #ffae57; }
.game-badge small { color: #ffdba1; }
.keys kbd { color: #fff5db; border-color: #b9a195; }
.score-goal { color: #fff1ce; }
.upper-right button:hover, #desktop-target:hover { background: #654051; }
#desktop-target { background: #321f35; border-color: #8f7280; }
#desktop-target.has-target { border-color: #ffd36a; }
.health { background: #1c1728; }
.health span {
  background: repeating-linear-gradient(90deg,transparent 0 13px,#122a2e66 13px 15px),
    linear-gradient(90deg,#20c792,#9dffd1);
}
#health-fill[data-level="low"] {
  background: repeating-linear-gradient(90deg,transparent 0 13px,#48112d66 13px 15px),
    linear-gradient(90deg,#ff6851,#ffc067);
}
.pickup-gain { background-color: #302337; }
#overlay { background: #30253b; border-color: #211427; box-shadow: inset 0 2px #c68b91,0 6px #1c1425,0 19px 70px #20132c88; }
#overlay .panel p, #overlay .scoreboard th { color: #f3dcc8; }
#overlay .scoreboard tr.mine { background: #724055; }
#overlay .scoreboard :is(th,td) { border-bottom-color: #654658; }

/* Holding the score button is only a view; it never takes combat input or focus. */
#overlay{position:absolute;z-index:3;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(475px,calc(100vw - 22px));max-height:calc(100dvh - 23px);overflow:hidden;color:#f5fcff;border:3px solid #211427;border-radius:12px;pointer-events:none}
#overlay *{pointer-events:none}#overlay-actions:empty{display:none}
#battle-sound[data-state="off"]{color:#ffd47d;box-shadow:inset 0 0 0 1px #ffd47d,0 3px 0 #10233c55}
#battle-sound[data-state="off"] #battle-sound-symbol{text-decoration:line-through;opacity:.65}

/* Combat scoreboard: enamel team plates, gold objective, live progress rails. */
.game-badge[hidden]{display:none!important}
.scoreline{top:max(12px,env(safe-area-inset-top));width:min(470px,calc(100% - 28px));grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr);padding:5px;gap:5px;border:2px solid #ffda75;border-radius:15px;background:linear-gradient(145deg,#44223e,#211229);box-shadow:0 5px 0 #160d24,0 8px 25px #16082088,inset 0 1px #fff7ce;}
.scoreline .team-strip{position:relative;overflow:hidden;padding:8px 12px 12px;border-radius:9px;border:1px solid #ffffff88;box-shadow:inset 0 2px #fff7,inset 0 -5px #0003;gap:7px;}
.scoreline .team-blue{background:linear-gradient(140deg,#08c8f5,#087bbf 60%,#264ac6)}
.scoreline .team-red{background:linear-gradient(140deg,#ff6774,#ed2755 60%,#9b165b)}
.scoreline .team-strip:after{content:'';position:absolute;bottom:0;left:0;height:4px;width:var(--score-progress,0%);background:#fff3ae;box-shadow:0 0 9px #fff5ae;transition:width .3s}
.scoreline .team-strip b{font-size:44px;line-height:1;font-weight:950;font-style:italic;text-shadow:0 3px #15203a88;-webkit-text-stroke:.5px #fff8}
.scoreline .team-strip span{font-size:13px;font-weight:850;text-shadow:0 2px #12274588}
.score-goal{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px;color:#fff2bd;background:radial-gradient(ellipse,#a4632344,transparent 75%);text-shadow:0 2px #1b0b26}
.score-goal span{font-size:12px;letter-spacing:.17em;color:#ffd668}
.score-goal strong{font-size:18px;font-weight:950;font-style:italic;line-height:1.1}
.upper-left{top:106px}.feed{margin-top:0;font-size:12px}
.player-status #kills{font-size:22px;font-style:italic;color:#ffe27b;text-shadow:0 2px #6c2c27;white-space:nowrap}
.critical-status{display:flex;justify-content:space-between;gap:5px;border-top:1px solid #ff577c55;padding-top:5px;margin-top:5px;font-size:11px;color:#ffc5c9;font-weight:750}
.critical-status b{color:#ff7085;font-size:11px}
@media(max-width:900px){.scoreline{top:58px;width:min(420px,calc(100% - 20px))}.upper-left{top:145px}.feed{font-size:11px}.scoreline .team-strip b{font-size:36px}.scoreline .team-strip{padding:7px 7px 10px}.scoreline .team-strip span{font-size:12px}.scoreline .team-glyph{display:none}}
@media(max-width:420px){.scoreline{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}.scoreline .team-strip b{font-size:33px}.score-goal strong{font-size:16px}.critical-status{flex-wrap:wrap}.player-status #kills{font-size:19px}}
@media(max-height:440px){.scoreline{top:6px;width:350px}.scoreline .team-strip b{font-size:30px}.upper-left{top:85px}.score-goal strong{font-size:15px}.critical-status{padding-top:2px;margin-top:2px}}
@media(prefers-reduced-motion:reduce){.scoreline .team-strip:after{transition:none}}
.player-status small{flex-wrap:wrap;row-gap:2px}.player-status #kills{margin-left:auto}.critical-status{flex-wrap:wrap}
