@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #aeb8c2;
  --red: #ff364f;
  --red-deep: #8d1329;
  --cyan: #20d9ff;
  --blue: #1678ff;
  --amber: #ffc928;
  --panel: #0a0e12;
  --line: rgba(255, 255, 255, 0.22);
  font-family: "Barlow Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #020304; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

body {
  display: grid;
  place-items: center;
}

.arena {
  position: relative;
  width: min(100vw, 300vh);
  aspect-ratio: 3 / 1;
  max-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #05070a;
  color: var(--ink);
  user-select: none;
}

.arena__background,
.arena__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.arena__background { object-fit: cover; z-index: -3; }
.arena__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 8, 12, 0.5), rgba(2, 4, 6, 0.12) 36%, rgba(2, 4, 6, 0.12) 64%, rgba(4, 8, 12, 0.5)),
    linear-gradient(180deg, rgba(3, 5, 7, 0.22), rgba(3, 5, 7, 0.78));
}
.arena::after {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.72);
}

.setup-screen,
.result-screen {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr 0.8fr 1.05fr;
  padding: 38px 72px 54px;
  gap: 44px;
}

.brand-lockup { align-self: center; }
.brand-lockup > span,
.result-lockup > span {
  display: block;
  color: var(--amber);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}
.brand-lockup h1,
.result-lockup h2 {
  margin: 0;
  font-size: 92px;
  line-height: 0.82;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.brand-lockup h1 b { color: var(--cyan); }
.brand-lockup p,
.result-lockup p {
  margin: 20px 0 0;
  max-width: 470px;
  color: #dce3e9;
  font-size: 28px;
  line-height: 1.2;
}

.mode-control {
  position: absolute;
  top: 34px;
  right: 72px;
  display: flex;
  border: 1px solid var(--line);
  background: rgba(6, 9, 12, 0.86);
}
.mode-control button {
  min-width: 128px;
  height: 62px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.mode-control button:last-child { border-right: 0; }
.mode-control button strong,
.mode-control button span { display: block; letter-spacing: 0; }
.mode-control button strong { font-size: 23px; }
.mode-control button span { color: var(--muted); font-size: 16px; }
.mode-control button[aria-pressed="true"] { background: var(--ink); color: #07090b; }
.mode-control button[aria-pressed="true"] span { color: #273039; }

.kick-gate {
  position: relative;
  justify-self: center;
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(4, 8, 11, 0.72);
  box-shadow: 0 0 0 14px rgba(32, 217, 255, 0.1), 0 0 62px rgba(32, 217, 255, 0.26);
  cursor: crosshair;
  overflow: visible;
}
.kick-gate::before,
.kick-gate::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}
.kick-gate::before { inset: 28px; border: 1px solid rgba(255, 255, 255, 0.28); }
.kick-gate::after {
  inset: -15px;
  border: 2px solid var(--cyan);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: rotate 5s linear infinite;
}
.gate-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
}
.gate-ring img { width: 46px; height: 46px; filter: brightness(0); }
.kick-gate > span:not(.gate-ring) { font-size: 29px; font-weight: 900; }
.kick-gate > strong { color: var(--amber); font-size: 42px; }
.kick-gate:focus-visible { outline: 4px solid var(--amber); outline-offset: 8px; }

.setup-rules {
  align-self: center;
  display: grid;
  gap: 10px;
}
.setup-rules span {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 3px solid var(--amber);
  background: rgba(7, 11, 14, 0.78);
  padding: 0 20px;
  font-size: 24px;
}
.setup-rules b { color: var(--amber); font-size: 18px; }

.game-screen { position: absolute; inset: 0; }
.game-header {
  position: absolute;
  inset: 16px 24px auto;
  height: 54px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
}
.round-meta,
.kick-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 19px;
}
.round-meta strong,
.kick-meta strong { color: var(--ink); font-size: 31px; }
.arena[data-level="1"] .round-meta span { color: #73e4ff; }
.arena[data-level="2"] .round-meta span { color: #83f0b4; }
.arena[data-level="3"] .round-meta span { color: #ffd257; }
.arena[data-level="4"] .round-meta span { color: #ff7474; }
.arena[data-level="golden"] .round-meta span { color: var(--amber); }
.arena[data-view="game"][data-level="1"] { --level-accent: #73e4ff; --level-wash: rgba(115, 228, 255, 0.1); }
.arena[data-view="game"][data-level="2"] { --level-accent: #83f0b4; --level-wash: rgba(131, 240, 180, 0.14); }
.arena[data-view="game"][data-level="3"] { --level-accent: #ffd257; --level-wash: rgba(255, 210, 87, 0.17); }
.arena[data-view="game"][data-level="4"] { --level-accent: #ff7474; --level-wash: rgba(255, 116, 116, 0.22); }
.arena[data-view="game"][data-level="golden"] { --level-accent: #ffc928; --level-wash: rgba(255, 201, 40, 0.18); }
.arena[data-view="game"] .arena__shade {
  box-shadow: inset 0 0 12cqh var(--level-wash), inset 0 -9cqh 8cqh color-mix(in srgb, var(--level-accent) 15%, transparent);
  transition: box-shadow 420ms ease;
}
.kick-meta { justify-self: end; }
.power-label {
  opacity: 0;
  color: #0a0c0f;
  background: var(--amber);
  padding: 8px 24px;
  font-size: 24px;
  font-weight: 900;
  transform: translateY(-16px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.arena[data-power="true"] .power-label { opacity: 1; transform: translateY(0); }
.game-screen .power-label { display: none; }

.board-layer {
  position: absolute;
  z-index: 4;
  left: 3.8%;
  right: 3.8%;
  top: 10.8%;
  height: 54.5%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}
.score-target {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  background: rgba(9, 14, 18, 0.86);
  color: var(--ink);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.04), 0 7px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: crosshair;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.score-target::before {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 5px solid var(--target-accent, #6c7d8a);
  opacity: 0.9;
}
.score-target::after {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.score-target strong {
  position: relative;
  z-index: 2;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: 0;
}
.score-target small {
  position: relative;
  z-index: 2;
  min-height: 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}
.score-target[data-size="S"] { --target-accent: var(--red); }
.score-target[data-size="M"] { --target-accent: var(--cyan); }
.score-target[data-size="L"] { --target-accent: var(--amber); }
.score-target[data-size="S"] strong { font-size: 44px; }
.score-target[data-multiplier="2"],
.score-target[data-multiplier="3"] {
  border-color: var(--amber);
  background: rgba(59, 40, 3, 0.9);
  box-shadow: inset 0 0 30px rgba(255, 201, 40, 0.18), 0 0 18px rgba(255, 201, 40, 0.22);
}
.score-target[data-multiplier="2"]::before,
.score-target[data-multiplier="3"]::before { border-top-color: var(--amber); }
.score-target.is-hit {
  animation: target-hit 620ms cubic-bezier(.18,.86,.24,1);
  background: var(--hit-color);
  border-color: #fff;
}
.score-target.is-hit::after { border-color: rgba(255,255,255,.7); }

.low-wall-layer {
  position: absolute;
  z-index: 5;
  left: 3.8%;
  right: 3.8%;
  top: 65.3%;
  height: 16.7%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 14.6% repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.low-wall-target {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--low-wall-accent, #73e4ff);
  border-radius: 5px;
  background: rgba(8, 16, 20, 0.94);
  color: var(--ink);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--low-wall-accent, #73e4ff) 14%, transparent);
  cursor: crosshair;
  overflow: hidden;
}
.low-wall-target::before {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 5px solid var(--low-wall-accent, #73e4ff);
  opacity: 0.92;
}
.low-wall-target::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--low-wall-accent, #73e4ff) 30%, transparent);
  pointer-events: none;
}
.low-wall-target small,
.low-wall-target strong {
  position: relative;
  z-index: 2;
  letter-spacing: 0;
}
.low-wall-target small {
  color: var(--low-wall-accent, #73e4ff);
  font-size: 16px;
  font-weight: 900;
}
.low-wall-target strong {
  font-size: 42px;
  line-height: 1;
}
.low-wall-target[data-level="1"] { --low-wall-accent: #73e4ff; }
.low-wall-target[data-level="2"] { --low-wall-accent: #83f0b4; }
.low-wall-target[data-level="3"] { --low-wall-accent: #ffd257; }
.low-wall-target[data-level="4"] { --low-wall-accent: #ff7474; }
.low-wall-target.is-hit {
  animation: target-hit 620ms cubic-bezier(.18,.86,.24,1);
  background: var(--hit-color);
  border-color: #fff;
}
.low-wall-target.is-hit::after { border-color: rgba(255,255,255,.7); }

.low-pass-layer {
  position: absolute;
  z-index: 5;
  left: 2.5%;
  right: 2.5%;
  bottom: 0;
  height: 18%;
  display: grid;
  grid-template-columns: 1fr 14.2% 1fr;
  gap: 10px;
}
.low-pass-target {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  padding: 0 4%;
  border: 2px solid rgba(121, 255, 186, 0.72);
  border-top: 7px solid #79ffba;
  border-bottom: 0;
  border-radius: 5px;
  background: rgba(5, 22, 18, 0.92);
  color: var(--ink);
  box-shadow: inset 0 0 24px rgba(121, 255, 186, 0.08), 0 7px 18px rgba(0, 0, 0, 0.42);
  cursor: crosshair;
  overflow: hidden;
}
.low-pass-target::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(121, 255, 186, 0.18);
  pointer-events: none;
}
.low-pass-target[data-lane="LEFT"] { grid-column: 1; }
.low-pass-target[data-lane="RIGHT"] { grid-column: 3; }
.low-pass-target small,
.low-pass-target b {
  position: relative;
  z-index: 2;
  font-weight: 900;
  letter-spacing: 0;
}
.low-pass-target small { justify-self: start; color: #9dfbc8; font-size: 21px; }
.low-pass-target strong { position: relative; z-index: 2; font-size: 54px; line-height: 1; }
.low-pass-target b { justify-self: end; color: var(--muted); font-size: 16px; }
.low-pass-target.is-hit {
  animation: target-hit 620ms cubic-bezier(.18,.86,.24,1);
  background: var(--hit-color);
  border-color: #fff;
}
.low-pass-target.is-hit::after { border-color: rgba(255,255,255,.7); }

.impact-layer { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.impact-marker {
  position: absolute;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  filter: brightness(0) invert(1) drop-shadow(0 0 9px #fff);
  animation: impact 700ms ease-out forwards;
}
.phase-flash {
  position: absolute;
  z-index: 16;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  pointer-events: none;
  min-width: 240px;
  padding: 12px 30px;
  text-align: center;
  border: 2px solid #fff;
  background: rgba(3, 6, 8, 0.9);
  font-size: 58px;
  font-weight: 900;
}
.phase-flash.is-visible { animation: flash 820ms ease-out; }

.match-rail {
  position: absolute;
  z-index: 9;
  inset: 1.2% 25% auto;
  height: 8.4%;
}
.rail-team {
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 2px solid rgba(255,255,255,.26);
  background: rgba(5, 8, 11, 0.94);
}
.rail-team > span { font-size: 20px; color: var(--muted); }
.rail-team > strong { font-size: 44px; line-height: 0.88; }
.rail-team > small { margin-top: 0; font-size: 16px; color: var(--muted); }
.rail-team--red { left: 0; border-left: 7px solid var(--red); }
.rail-team--red > strong { color: #ff6a79; }
.rail-team--blue { right: 0; flex-direction: row-reverse; text-align: right; border-right: 7px solid var(--cyan); }
.rail-team--blue > strong { color: #62e4ff; }

.rail-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 38%;
  height: 100%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  padding-top: 0;
  border-top: 2px solid var(--line);
  background: rgba(2, 4, 6, 0.94);
  text-align: center;
}
.rail-center > span { color: var(--turn-color, var(--ink)); font-size: 18px; font-weight: 900; }
.rail-center > strong { font-size: 34px; line-height: 0.95; }
.rail-center > b { font-size: 18px; color: var(--turn-color, var(--ink)); }
.rail-center > small { color: var(--muted); font-size: 16px; }
.tension {
  width: 74%;
  height: 8px;
  display: flex;
  background: #1b232a;
  margin: 8px 0 5px;
}
.tension i { height: 100%; width: 50%; transition: width 260ms ease; }
.tension i:first-child { background: var(--red); }
.tension i:last-child { background: var(--cyan); }
.tension em { width: 4px; flex: 0 0 4px; background: #fff; }

.launcher-void {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 50%;
  width: 13.5%;
  height: 34.7%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  align-content: start;
  gap: 0.4cqh;
  padding-top: 3.2cqh;
  border: 2px solid rgba(255,201,40,.52);
  border-top: 7px solid var(--amber);
  border-bottom: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,201,40,.09) 0 12px, rgba(3,5,6,.15) 12px 24px),
    #030506;
  box-shadow: 0 -12px 28px rgba(0,0,0,.62);
  pointer-events: none;
}
.launcher-void span { color: #78848d; font-size: 16px; }
.launcher-void b { color: #b7c0c7; font-size: 22px; }

.result-screen { grid-template-columns: 0.9fr 1.35fr 0.8fr; }
.result-lockup h2 { font-size: 72px; }
.result-lockup p { color: var(--ink); font-size: 54px; font-weight: 900; }
.result-scoreboard {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  min-height: 290px;
  border-top: 2px solid rgba(255,255,255,.35);
  border-bottom: 2px solid rgba(255,255,255,.35);
  background: rgba(3,6,8,.74);
}
.result-team { display: grid; text-align: center; }
.result-team span { font-size: 27px; color: var(--muted); }
.result-team strong { font-size: 96px; line-height: 1; }
.result-team--red strong { color: #ff6677; }
.result-team--blue strong { color: #5de2ff; }
.result-scoreboard > b { color: var(--amber); text-align: center; font-size: 29px; }
.kick-gate--replay { width: 270px; height: 270px; }
.kick-gate--replay .gate-ring { width: 64px; height: 64px; }
.kick-gate--replay .gate-ring img { width: 34px; height: 34px; }
.kick-gate--replay > strong { font-size: 34px; }

.operator-tools {
  position: absolute;
  z-index: 20;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 7px;
}
.operator-tools button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 4px;
  background: rgba(3,6,8,.78);
  cursor: pointer;
}
.operator-tools img { width: 21px; height: 21px; }

html[data-embedded="hero"] body {
  background: #03070c;
}

html[data-embedded="hero"] .operator-tools,
html[data-embedded="hero"] .operator-drawer {
  display: none !important;
}

html[data-embedded="hero"] .arena {
  background:
    radial-gradient(circle at 50% 42%, rgba(24, 72, 86, 0.2), transparent 48%),
    linear-gradient(180deg, #070b10 0%, #020405 100%);
}

html[data-embedded="hero"] .score-target,
html[data-embedded="hero"] .low-wall-target,
html[data-embedded="hero"] .low-pass-target {
  border-width: 1px;
  box-shadow:
    inset 0 0 22px color-mix(in srgb, var(--target-accent, #73e4ff) 9%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

html[data-embedded="hero"] .score-target.is-hit,
html[data-embedded="hero"] .low-wall-target.is-hit,
html[data-embedded="hero"] .low-pass-target.is-hit {
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.24), 0 0 28px var(--hit-color);
}
.operator-drawer {
  position: absolute;
  z-index: 25;
  right: 12px;
  bottom: 60px;
  width: 320px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: rgba(4,7,9,.96);
  box-shadow: 0 18px 60px rgba(0,0,0,.7);
}
.operator-drawer header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.operator-drawer header strong { font-size: 20px; }
.operator-drawer header button {
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
}
.operator-drawer dl { margin: 0; padding: 10px 15px 15px; }
.operator-drawer dl div { display: grid; grid-template-columns: 90px 1fr; padding: 5px 0; }
.operator-drawer dt { color: #7f8a93; font-size: 16px; }
.operator-drawer dd { margin: 0; text-align: right; font-size: 16px; overflow-wrap: anywhere; }

.hold-screen {
  position: absolute;
  z-index: 28;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(2,4,6,.94);
}
.hold-screen img { width: 66px; height: 66px; }
.hold-screen div { display: grid; }
.hold-screen span { color: var(--amber); font-size: 24px; }
.hold-screen strong { font-size: 34px; }
.hold-screen button {
  height: 58px;
  padding: 0 28px;
  border: 0;
  background: var(--amber);
  color: #07090b;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.boot-status {
  position: absolute;
  z-index: 29;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #030506;
}
.boot-status strong { font-size: 48px; }
.boot-status span { color: var(--muted); font-size: 20px; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes target-hit {
  0% { transform: scale(1); }
  28% { transform: scale(1.08); filter: brightness(1.6); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes impact {
  0% { opacity: 0; transform: scale(2.1) rotate(-20deg); }
  22% { opacity: 1; transform: scale(.82) rotate(0); }
  100% { opacity: 0; transform: scale(1.35) rotate(18deg); }
}
@keyframes flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(1); }
}

@media (max-height: 560px) {
  .brand-lockup h1 { font-size: 74px; }
  .brand-lockup p { font-size: 23px; }
  .kick-gate { width: 280px; height: 280px; }
  .setup-screen, .result-screen { padding-top: 28px; padding-bottom: 40px; }
  .score-target strong { font-size: 40px; }
  .rail-team > strong { font-size: 68px; }
}

.arena { container-type: size; }
.setup-screen,
.result-screen {
  padding: 5cqh 7cqh 6cqh;
  gap: 5cqh;
}
.brand-lockup > span,
.result-lockup > span { font-size: 4cqh; }
.brand-lockup h1 { font-size: 15cqh; }
.brand-lockup p {
  margin-top: 3cqh;
  max-width: 70cqh;
  font-size: 4.5cqh;
}
.mode-control { top: 5cqh; right: 7cqh; }
.mode-control button { min-width: 20cqh; height: 10cqh; }
.mode-control button strong { font-size: 4cqh; }
.mode-control button span { font-size: 2.7cqh; }
.kick-gate {
  width: 50cqh;
  height: 50cqh;
  gap: 1cqh;
  box-shadow: 0 0 0 2cqh rgba(32, 217, 255, 0.1), 0 0 9cqh rgba(32, 217, 255, 0.26);
}
.kick-gate::before { inset: 4cqh; }
.kick-gate::after { inset: -2.3cqh; }
.gate-ring { width: 13cqh; height: 13cqh; }
.gate-ring img { width: 7cqh; height: 7cqh; }
.kick-gate > span:not(.gate-ring) { font-size: 5cqh; }
.kick-gate > strong { font-size: 7cqh; }
.setup-rules { gap: 1.4cqh; }
.setup-rules span {
  min-height: 10cqh;
  gap: 2.5cqh;
  padding: 0 3cqh;
  font-size: 4.2cqh;
  white-space: nowrap;
}
.setup-rules b { font-size: 3cqh; }

.game-header { inset: 2.5cqh 4cqh auto; height: 8cqh; }
.round-meta,
.kick-meta { gap: 1.5cqh; font-size: 3cqh; }
.round-meta strong,
.kick-meta strong { font-size: 5cqh; }
.power-label { padding: 1.2cqh 4cqh; font-size: 4cqh; }
.board-layer { gap: 1.5cqh; }
.score-target { border-radius: 1cqh; }
.score-target::after { inset: 1.4cqh; }
.score-target strong,
.score-target[data-size="S"] strong { font-size: 7.2cqh; }
.score-target small { min-height: 2.8cqh; font-size: 3cqh; }
.impact-marker {
  width: 11cqh;
  height: 11cqh;
  margin: -5.5cqh 0 0 -5.5cqh;
}
.phase-flash {
  min-width: 38cqh;
  padding: 1.8cqh 5cqh;
  font-size: 9cqh;
}
.match-rail { inset: 1.2% 25% auto; height: 8.4%; }
.rail-team { padding: 0 2cqh; }
.rail-team > span { font-size: 2.5cqh; }
.rail-team > strong { font-size: 5.5cqh; }
.rail-team > small { margin-top: 0; font-size: 2.5cqh; }
.rail-center { gap: 0.1cqh; padding-top: 0; }
.rail-center > span { font-size: 2.2cqh; }
.rail-center > strong { font-size: 4.5cqh; }
.rail-center > b { font-size: 2.5cqh; }
.rail-center > small { font-size: 2.5cqh; }
.tension { height: 1.2cqh; margin: 1.2cqh 0 0.8cqh; }
.launcher-void span { font-size: 2.5cqh; }
.launcher-void b { font-size: 3.5cqh; }

.result-lockup h2 { font-size: 11cqh; }
.result-lockup p { margin-top: 3cqh; font-size: 8cqh; }
.result-scoreboard {
  grid-template-columns: 1fr 14cqh 1fr;
  min-height: 45cqh;
}
.result-team span { font-size: 4.5cqh; }
.result-team strong { font-size: 15cqh; }
.result-scoreboard > b { font-size: 4.5cqh; }
.kick-gate--replay { width: 42cqh; height: 42cqh; }
.kick-gate--replay .gate-ring { width: 10cqh; height: 10cqh; }
.kick-gate--replay .gate-ring img { width: 5cqh; height: 5cqh; }
.kick-gate--replay > strong { font-size: 5.5cqh; }

@media (max-height: 560px) {
  .brand-lockup h1 { font-size: 15cqh; }
  .brand-lockup p { font-size: 4.5cqh; }
  .kick-gate { width: 50cqh; height: 50cqh; }
  .setup-screen, .result-screen { padding: 5cqh 7cqh 6cqh; }
  .score-target strong { font-size: 7.2cqh; }
  .rail-team > strong { font-size: 5.5cqh; }
}

.rail-team > small,
.rail-center > b,
.rail-center > small,
.tension { display: none; }
.rail-center { align-content: center; padding-top: 0; }

.operator-tools {
  right: auto;
  left: 50%;
  bottom: 1.1cqh;
  transform: translateX(-50%);
  gap: 0.8cqh;
}
.operator-tools button {
  width: 5.2cqh;
  height: 5.2cqh;
}
.operator-tools img { width: 2.8cqh; height: 2.8cqh; }
.launcher-void span,
.launcher-void b {
  display: block;
  position: relative;
  z-index: 2;
}
.launcher-void span { color: var(--amber); font-size: 2.2cqh; font-weight: 900; }
.launcher-void b { color: #d7dde1; font-size: 3cqh; }

.low-wall-target small { font-size: 2.4cqh; }
.low-wall-target strong { font-size: 6.2cqh; }
.low-pass-target small { font-size: 3.2cqh; }
.low-pass-target strong { font-size: 8.4cqh; }
.low-pass-target b { font-size: 2.5cqh; }

.score-target strong,
.low-wall-target strong,
.low-pass-target strong,
.rail-center > strong { line-height: 1.05; }
.rail-team > strong { line-height: 0.88; }

/* R6.5 presentation layer: game rules and target geometry remain unchanged. */
.game-screen .power-label {
  position: absolute;
  left: 23cqh;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.2cqh;
  padding: 0.8cqh 1.6cqh;
  border-left: 0.7cqh solid #ffffff;
  box-shadow: 0 0 2.8cqh rgba(255, 201, 40, 0.25);
}
.power-label span,
.power-label b { letter-spacing: 0; }
.power-label span { font-size: 2.7cqh; }
.power-label b { font-size: 3.3cqh; }

.impact-effect {
  position: absolute;
  width: 25cqh;
  height: 25cqh;
  margin: -12.5cqh 0 0 -12.5cqh;
  display: grid;
  place-items: center;
  animation: impact-effect 860ms cubic-bezier(.15,.82,.22,1) forwards;
  transform-origin: center;
}
.impact-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 1.8cqh rgba(255,255,255,.58));
}
.impact-reticle {
  position: relative;
  z-index: 2;
  width: 7cqh;
  height: 7cqh;
  filter: brightness(0) invert(1) drop-shadow(0 0 1.2cqh #fff);
}
.impact-effect strong {
  position: absolute;
  z-index: 3;
  left: 66%;
  top: 8%;
  min-width: 14cqh;
  color: #fff;
  font-size: 5.8cqh;
  line-height: 1;
  text-shadow: 0 0.4cqh 0 #050709, 0 0 2cqh rgba(255,201,40,.7);
  white-space: nowrap;
}
.impact-effect[data-team="red"] .impact-reticle { filter: brightness(0) saturate(100%) invert(42%) sepia(99%) saturate(3181%) hue-rotate(330deg) brightness(111%) contrast(104%) drop-shadow(0 0 1.2cqh #ff364f); }
.impact-effect[data-team="blue"] .impact-reticle { filter: brightness(0) saturate(100%) invert(78%) sepia(77%) saturate(1974%) hue-rotate(156deg) brightness(102%) contrast(104%) drop-shadow(0 0 1.2cqh #20d9ff); }
.impact-effect--miss .impact-burst { opacity: .38; filter: grayscale(1) drop-shadow(0 0 1cqh rgba(255,255,255,.3)); }
.impact-effect--bonus { width: 31cqh; height: 31cqh; margin: -15.5cqh 0 0 -15.5cqh; }
.impact-effect--bonus strong { color: var(--amber); font-size: 6.6cqh; }
.score-target.is-hit[data-hit-tier="bonus"],
.low-wall-target.is-hit[data-hit-tier="bonus"],
.low-pass-target.is-hit[data-hit-tier="bonus"] {
  box-shadow: inset 0 0 5cqh rgba(255,201,40,.45), 0 0 3.5cqh rgba(255,201,40,.75);
}
.score-target.is-hit[data-hit-tier="miss"],
.low-wall-target.is-hit[data-hit-tier="miss"],
.low-pass-target.is-hit[data-hit-tier="miss"] { filter: grayscale(.7); }

.phase-flash {
  min-width: 52cqh;
  max-width: 92cqh;
  padding: 1.8cqh 5cqh;
  font-size: 7.5cqh;
  white-space: nowrap;
}
.level-bumper {
  position: absolute;
  z-index: 18;
  left: 50%;
  top: 43%;
  width: min(96cqh, 54%);
  min-height: 28cqh;
  transform: translate(-50%, -50%) scale(.88);
  display: grid;
  place-items: center;
  align-content: center;
  opacity: 0;
  border-top: 0.5cqh solid var(--level-color, var(--cyan));
  border-bottom: 0.5cqh solid var(--level-color, var(--cyan));
  background: rgba(2, 5, 7, .94);
  box-shadow: 0 0 7cqh color-mix(in srgb, var(--level-color, var(--cyan)) 28%, transparent);
  pointer-events: none;
}
.level-bumper[data-level="2"] { --level-color: #83f0b4; }
.level-bumper[data-level="3"] { --level-color: #ffd257; }
.level-bumper[data-level="4"] { --level-color: #ff7474; }
.level-bumper span { color: var(--level-color); font-size: 3.4cqh; font-weight: 900; }
.level-bumper strong { color: #fff; font-size: 10cqh; line-height: .9; }
.level-bumper small { margin-top: 2cqh; color: #dce3e9; font-size: 3.8cqh; font-weight: 700; }
.level-bumper.is-visible { animation: level-bumper 1.6s cubic-bezier(.16,.78,.2,1) both; }

.rail-streak {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1cqh;
  border-left: 2px solid currentColor;
  background: transparent;
  font-size: 2.2cqh;
  line-height: 1.2;
  white-space: nowrap;
  animation: streak-pulse 720ms ease-out;
}
.rail-team--red .rail-streak { left: 8cqh; color: #ff6a79; }
.rail-team--blue .rail-streak { right: 8cqh; color: #62e4ff; }

.result-scoreboard {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  min-height: 47cqh;
}
.result-score-row {
  display: grid;
  grid-template-columns: 1fr 14cqh 1fr;
  align-items: center;
}
.result-score-row > b { color: var(--amber); text-align: center; font-size: 4.5cqh; }
.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.035);
}
.result-highlights > span {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 1.2cqh 1cqh;
  border-right: 1px solid rgba(255,255,255,.16);
  text-align: center;
}
.result-highlights > span:last-child { border-right: 0; }
.result-highlights small { color: var(--muted); font-size: 2.5cqh; white-space: nowrap; }
.result-highlights strong { color: #fff; font-size: 3.8cqh; line-height: 1.1; white-space: nowrap; }

.operator-tools button {
  border-color: rgba(255,201,40,.45);
  background: rgba(4,7,9,.9);
}
.operator-tools img { filter: brightness(0) invert(1); opacity: .88; }
.operator-tools button:hover img,
.operator-tools button:focus-visible img { opacity: 1; }

@keyframes impact-effect {
  0% { opacity: 0; transform: scale(1.8) rotate(-12deg); }
  18% { opacity: 1; transform: scale(.78) rotate(0); }
  62% { opacity: 1; transform: scale(1.02) rotate(7deg); }
  100% { opacity: 0; transform: scale(1.34) rotate(14deg); }
}
@keyframes level-bumper {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.84); }
  14%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.04); }
}
@keyframes streak-pulse {
  0% { opacity: 0; transform: translateY(-50%) scale(.9); }
  35% { opacity: 1; transform: translateY(-50%) scale(1.08); }
  100% { transform: translateY(-50%) scale(1); }
}
@keyframes impact-reduced {
  0%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes bumper-reduced {
  0%, 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .kick-gate::after { animation: none; }
  .impact-effect { animation: impact-reduced 620ms linear forwards; }
  .level-bumper.is-visible { animation: bumper-reduced 1.6s linear both; }
  .score-target.is-hit,
  .low-wall-target.is-hit,
  .low-pass-target.is-hit,
  .phase-flash.is-visible,
  .rail-streak { animation-duration: 420ms; animation-timing-function: linear; }
  .tension i,
  .power-label { transition: none; }
}
/* R6.6 clutch layer: keep score feedback inside the match rail and expose one tactical route. */
.phase-flash {
  top: 1.2cqh;
  left: 50%;
  width: 19%;
  min-width: 0;
  max-width: none;
  height: 8.4cqh;
  padding: 0 1.5cqh;
  display: grid;
  place-items: center;
  transform: translateX(-50%) scale(.96);
  border: 1px solid rgba(255,255,255,.34);
  border-top: .45cqh solid var(--amber);
  background: rgba(3, 6, 8, .97);
  box-shadow: 0 1cqh 2.5cqh rgba(0,0,0,.52);
  font-size: 4.2cqh;
  line-height: 1;
  white-space: nowrap;
}
.phase-flash.is-visible { animation: rail-flash 1350ms ease-out; }

.arena.is-board-reveal .score-target,
.arena.is-board-reveal .low-wall-target,
.arena.is-board-reveal .low-pass-target {
  animation: board-target-reveal 390ms cubic-bezier(.16,.78,.2,1) both;
  animation-delay: calc(var(--target-order, 0) * 7ms);
}

.score-target.is-clutch-target,
.low-wall-target.is-clutch-target,
.low-pass-target.is-clutch-target {
  border-color: var(--amber);
  box-shadow: inset 0 0 3cqh rgba(255,201,40,.2), 0 0 2.2cqh rgba(255,201,40,.58);
}
.score-target.is-clutch-target::before,
.low-wall-target.is-clutch-target::before { border-top-color: var(--amber); }
.target-goal {
  position: absolute !important;
  z-index: 5 !important;
  right: .8cqh;
  bottom: .65cqh;
  padding: .35cqh .75cqh;
  border: 1px solid rgba(255,201,40,.72);
  background: rgba(5,7,9,.92);
  color: var(--amber) !important;
  font-size: 2cqh !important;
  line-height: 1 !important;
  font-weight: 900;
  letter-spacing: 0;
}
.low-pass-target .target-goal { right: 1.2cqh; bottom: 1cqh; }

.hold-screen .hold-secondary {
  border: 1px solid rgba(255,201,40,.72);
  background: transparent;
  color: var(--amber);
}

@keyframes rail-flash {
  0% { opacity: 0; transform: translateX(-50%) scale(.94); }
  18% { opacity: 1; transform: translateX(-50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1); }
}
/* R6.7 power-core layer: make rare multipliers physically distinct without changing score geometry. */
.score-target[data-multiplier="2"],
.score-target[data-multiplier="3"] {
  isolation: isolate;
  background: rgba(38, 27, 5, .88);
  box-shadow: inset 0 0 4cqh rgba(255,201,40,.2), 0 0 2.6cqh rgba(255,201,40,.34);
}
.target-power-core {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(12.5cqh, 74%);
  height: min(12.5cqh, 88%);
  object-fit: contain;
  opacity: .58;
  transform: translate(-50%, -50%);
  filter: saturate(1.12) drop-shadow(0 0 1.8cqh rgba(255,201,40,.72));
  animation: power-core-charge 1.35s ease-in-out infinite;
  pointer-events: none;
}
.score-target[data-multiplier="3"] .target-power-core {
  opacity: .72;
  filter: saturate(1.28) drop-shadow(0 0 2.3cqh rgba(255,201,40,.9));
}
.score-target[data-multiplier="2"] small,
.score-target[data-multiplier="3"] small {
  color: #fff4c4;
  text-shadow: 0 .25cqh .4cqh #050709;
}
.score-target[data-multiplier="2"] strong,
.score-target[data-multiplier="3"] strong {
  color: #fff;
  text-shadow: 0 .25cqh .5cqh #050709, 0 0 1.4cqh rgba(255,201,40,.8);
}
.score-target.is-hit[data-hit-tier="bonus"] .target-power-core {
  animation: power-core-hit 620ms cubic-bezier(.18,.86,.24,1) both;
}
@keyframes board-target-reveal {
  0% { opacity: .16; filter: brightness(.58) saturate(.72); }
  45% { opacity: 1; filter: brightness(1.36) saturate(1.12); }
  100% { opacity: 1; filter: none; }
}
@keyframes power-core-charge {
  0%, 100% { opacity: .48; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: .76; transform: translate(-50%, -50%) scale(1); }
}
@keyframes power-core-hit {
  0% { opacity: .86; transform: translate(-50%, -50%) scale(.82); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.34); }
}
@media (prefers-reduced-motion: reduce) {
  .arena.is-board-reveal .score-target,
  .arena.is-board-reveal .low-wall-target,
  .arena.is-board-reveal .low-pass-target { animation: none; }
  .target-power-core { animation: none; opacity: .64; transform: translate(-50%, -50%); }
  .score-target.is-hit[data-hit-tier="bonus"] .target-power-core { animation: none; }
}

/* R6.9 Prime-Time Arena: exact physical geometry and brighter adult-social presentation. */
.arena__background {
  filter: brightness(.94) saturate(1.08) contrast(1.03);
}
.arena__shade {
  background:
    linear-gradient(90deg, rgba(3, 7, 10, .28), rgba(3, 7, 10, .08) 35%, rgba(3, 7, 10, .08) 65%, rgba(3, 7, 10, .28)),
    linear-gradient(180deg, rgba(2, 5, 7, .04), rgba(2, 5, 7, .48));
}

.kick-gate {
  width: 69cqh;
  height: 31cqh;
  transform: translateY(-6cqh);
  border-radius: 1.2cqh;
  background: rgba(5, 11, 15, .88);
  box-shadow: 0 0 0 1.2cqh rgba(32, 217, 255, .1), 0 0 7cqh rgba(32, 217, 255, .38);
}
.kick-gate::before { inset: 2.4cqh; border-radius: .8cqh; }
.kick-gate::after {
  inset: -1.2cqh;
  border-radius: 1.6cqh;
  border-color: var(--cyan);
  animation: gate-prime 1.35s ease-in-out infinite;
}
.kick-gate--replay {
  width: 42cqh;
  height: 42cqh;
  transform: none;
  border-radius: 50%;
}
.kick-gate--replay::before,
.kick-gate--replay::after { border-radius: 50%; }

.board-layer,
.low-wall-layer { gap: 0; }
.score-target,
.low-wall-target { border-radius: 0; }
.low-pass-layer {
  left: 3.8%;
  right: 3.8%;
  grid-template-columns: 1fr 14.61% 1fr;
  gap: 0;
}
.low-pass-target { border-radius: 0; }

.score-target { background: rgba(6, 13, 17, .76); }
.low-wall-target { background: rgba(6, 14, 18, .8); }
.low-pass-target {
  background: rgba(4, 24, 19, .84);
  box-shadow: inset 0 0 5cqh rgba(121, 255, 186, .13), 0 -1.2cqh 3cqh rgba(121, 255, 186, .12);
}
.arena[data-level="2"] .score-target { background: rgba(4, 22, 18, .78); }
.arena[data-level="3"] .score-target { background: rgba(28, 21, 5, .8); }
.arena[data-level="4"] .score-target { background: rgba(28, 7, 12, .82); }
.arena[data-power="true"] .game-screen::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 8cqh rgba(255, 201, 40, .28), inset 0 1.2cqh 0 rgba(255, 201, 40, .9);
  animation: power-arena-pulse 1.25s ease-in-out infinite;
}
.arena[data-power="true"] .power-label {
  color: #07090b;
  background: var(--amber);
  border-color: #fff;
  box-shadow: 0 0 4cqh rgba(255, 201, 40, .72);
}
.impact-effect--score strong { font-size: 6.4cqh; }
.impact-effect--bonus {
  filter: saturate(1.2);
}
.impact-effect--bonus strong {
  left: 57%;
  min-width: 26cqh;
  padding: .6cqh 1.2cqh;
  border: .3cqh solid rgba(255,255,255,.82);
  background: rgba(5, 8, 10, .9);
  text-align: center;
}

@keyframes gate-prime {
  0%, 100% { opacity: .58; box-shadow: 0 0 1.5cqh rgba(32, 217, 255, .3); }
  50% { opacity: 1; box-shadow: 0 0 4cqh rgba(32, 217, 255, .75); }
}
@keyframes power-arena-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
@media (max-height: 560px) {
  .kick-gate { width: 69cqh; height: 31cqh; }
  .kick-gate--replay { width: 42cqh; height: 42cqh; }
}
@media (prefers-reduced-motion: reduce) {
  .kick-gate::after,
  .arena[data-power="true"] .game-screen::before { animation: none; }
}
