@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800;1,900&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #090b17;
  --panel: #101321;
  --cyan: #60f6ef;
  --pink: #ff6cbd;
  --lime: #d9ff69;
  --muted: #82899e;
  font-family: "Space Grotesk", Arial, sans-serif;
  background: var(--bg);
  color: #f6f6ff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: clip;
}
button,
select {
  font: inherit;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}
button {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
main {
  position: relative;
  max-width: 1540px;
  padding: 0 4%;
  margin: auto;
}
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.ambient i {
  position: absolute;
  width: 55vw;
  height: 55vw;
  filter: blur(110px);
  opacity: 0.1;
  background: #8752ff;
  border-radius: 50%;
  top: -35vw;
  left: 5%;
  animation: aurora 16s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) {
  background: #22d8d5;
  left: 60%;
  top: 30%;
  opacity: 0.06;
  animation-delay: -7s;
}
.ambient i:nth-child(3) {
  background: #ff3aa6;
  top: 80%;
  left: 0;
  opacity: 0.05;
  animation-delay: -11s;
}
header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.7px;
  font-size: 23px;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--bg);
  width: 39px;
  height: 39px;
  font-size: 35px;
  border-radius: 10px;
  box-shadow: 0 0 24px #d9ff6918;
  transform: rotate(-8deg);
  transition: transform 0.4s;
}
.brand:hover .brand-icon {
  transform: rotate(8deg);
}
.brand small {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: 4px;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.online {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #a8b1c2;
  display: flex;
  align-items: center;
  gap: 7px;
}
.online i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: breathe 3s infinite;
}
.text-button,
.icon-button {
  background: #ffffff05;
  border: 1px solid #ffffff1b;
  color: #c4c8d8;
  font-size: 9px;
  letter-spacing: 1px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
}
.text-button[aria-pressed="true"] {
  border-color: #60f6ef60;
  color: var(--cyan);
  background: #60f6ef08;
}
.icon-button {
  width: 38px;
  padding: 0;
  font-size: 16px;
}
.text-button:hover,
.icon-button:hover {
  background: #ffffff12;
  color: white;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 37px 0 30px;
}
.eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: #a7aec0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow > span {
  width: 16px;
  height: 2px;
  background: var(--pink);
}
h1 {
  position: relative;
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(55px, 6.7vw, 100px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.7px;
}
h1 em {
  display: inline-block;
  font-style: italic;
  color: var(--lime);
  text-shadow: 4px 4px 0 #d9ff6914;
}
.title-spark {
  position: absolute;
  font-size: 30px;
  color: var(--pink);
  top: -18px;
  right: -35px;
  animation: rotate 22s linear infinite;
}
.intro-aside {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
  color: #a4abbd;
  flex-shrink: 0;
}
.arcade-token {
  border: 1px solid #8d72db;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #bd9eff;
  font-size: 17px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 5px #090b17,
    inset 0 0 0 6px #8d72db,
    0 0 30px #8d72db18;
  transform: rotate(-20deg);
  animation: token 6s ease-in-out infinite;
}
.arcade-token span {
  font-size: 9px;
}
.game-section {
  animation: enter 0.7s ease-out both;
  animation-delay: 0.1s;
}
.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 16px;
}
.segmented {
  display: flex;
  gap: 5px;
  background: #131624;
  border: 1px solid #ffffff12;
  padding: 5px;
  border-radius: 9px;
}
.segmented button {
  border: 1px solid transparent;
  background: none;
  color: #9098ae;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 12px 21px;
  border-radius: 5px;
  min-height: 40px;
}
.segmented button span {
  font-size: 7px;
  margin-right: 9px;
  opacity: 0.6;
}
.segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: #131718;
  box-shadow: 0 0 20px #d9ff6918;
}
.segmented button:hover {
  border-color: #d9ff6970;
}
.settings {
  display: flex;
  gap: 25px;
}
.settings label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8d96ad;
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 1px;
}
.settings select {
  min-height: 40px;
  background: #131624;
  color: #e5e9f6;
  border: 1px solid #ffffff18;
  border-radius: 5px;
  font-size: 9px;
  padding: 8px 12px;
  max-width: 150px;
}
.settings select:disabled {
  opacity: 0.35;
}
.arena {
  position: relative;
  padding: 0 22px;
  border: 1px solid #7d72ac65;
  border-radius: 14px;
  background: linear-gradient(135deg, #141827, #0e1120 55%, #171326);
  box-shadow:
    0 24px 90px #0006,
    0 0 50px #6f39de0a;
  isolation: isolate;
}
.arena-corners {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border-top: 1px solid #60f6ef85;
  border-bottom: 1px solid #ff6cbd60;
  mask-image: linear-gradient(
    90deg,
    #000,
    transparent 15%,
    transparent 85%,
    #000
  );
}
.scoreboard {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 14px;
}
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.player-avatar {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  background: #60f6ef0c;
  border: 1px solid #60f6ef50;
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}
.player div > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.player small {
  display: block;
  color: #68868e;
  font-family: "Space Mono", monospace;
  font-size: 6px;
  letter-spacing: 1.5px;
  margin-top: 6px;
}
.player strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 600;
  line-height: 0.9;
  font-size: 66px;
  color: var(--cyan);
  text-shadow: 0 0 30px #60f6ef30;
  margin-left: 18px;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
}
.player-right {
  flex-direction: row-reverse;
  text-align: right;
}
.player-right .player-avatar {
  color: var(--pink);
  border-color: #ff6cbd50;
  background: #ff6cbd0c;
}
.player-right strong {
  color: var(--pink);
  text-shadow: 0 0 30px #ff6cbd30;
  margin-left: 0;
  margin-right: 18px;
}
.player-right small {
  color: #97778f;
}
.score-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.court-label {
  font-family: "Space Mono", monospace;
  font-size: 6px;
  letter-spacing: 2px;
  color: #747f9c;
}
#status {
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: var(--lime);
}
.signal {
  display: flex;
  gap: 3px;
  height: 9px;
  align-items: flex-end;
}
.signal i {
  height: 4px;
  width: 2px;
  background: var(--lime);
  opacity: 0.6;
  animation: equalizer 1.4s ease-in-out infinite alternate;
}
.signal i:nth-child(2) {
  animation-delay: -0.4s;
}
.signal i:nth-child(3) {
  animation-delay: -0.8s;
}
.signal i:nth-child(4) {
  animation-delay: -0.3s;
}
.signal i:nth-child(5) {
  animation-delay: -0.6s;
}
.play-area {
  position: relative;
  width: 100%;
  aspect-ratio: 5/2.65;
  max-height: 570px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #5b578042;
  border-radius: 4px;
  background: #0b1020;
  touch-action: none;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #00000014 3px,
    #00000014 4px
  );
  opacity: 0.5;
}
.court-coordinates {
  position: absolute;
  inset: 12px 15px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font:
    6px "Space Mono",
    monospace;
  letter-spacing: 1.6px;
  color: #8291ab75;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at center, #0b102055 20%, #0b1020ca 90%);
  text-align: center;
  padding: 15px;
  overflow: hidden;
}
.overlay[hidden] {
  display: none;
}
.overlay > p:first-child {
  font:
    7px "Space Mono",
    monospace;
  letter-spacing: 2px;
  color: var(--cyan);
  margin: 0 0 10px;
}
h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(36px, 5.8vw, 82px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  margin: 5px 0;
  color: #fafaff;
  text-transform: uppercase;
}
h2 em {
  font-style: italic;
  color: var(--lime);
}
.overlay > p {
  font-size: 11px;
  color: #959fb9;
  line-height: 1.6;
  margin: 10px 0 20px;
}
.primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
  min-width: 210px;
  border: 0;
  border-radius: 6px;
  padding: 15px 20px;
  background: var(--lime);
  color: #101716;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  box-shadow:
    0 0 0 1px #d9ff6940,
    0 5px 30px #d9ff6920;
  overflow: hidden;
}
.primary b {
  font:
    26px "Space Grotesk",
    sans-serif;
}
.primary:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 35%;
  background: linear-gradient(100deg, transparent, #fff8, transparent);
  transform: skewX(-20deg);
  animation: shine 5s ease-in-out infinite;
}
.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 38px #d9ff6940;
  background: #e5ff98;
}
.primary:active {
  transform: translateY(1px);
}
.start-hint {
  font:
    6px "Space Mono",
    monospace;
  letter-spacing: 1.4px;
  color: #65708d;
  margin-top: 15px;
}
.paddle-scene {
  position: relative;
  width: 180px;
  height: 85px;
  margin: 1px 0 5px;
  perspective: 500px;
}
.paddle {
  position: absolute;
  width: 20px;
  height: 67px;
  top: 7px;
  border-radius: 7px;
  background: var(--cyan);
  box-shadow:
    4px 5px 0 #1d706f,
    0 0 30px #60f6ef40;
  transform: rotate(-22deg) rotateY(-20deg);
  animation: paddle 4s ease-in-out infinite;
}
.paddle-a {
  left: 19px;
}
.paddle-b {
  right: 19px;
  background: var(--pink);
  box-shadow:
    4px 5px 0 #863a6f,
    0 0 30px #ff6cbd40;
  animation-delay: -2s;
  transform: rotate(22deg);
}
.orbit {
  position: absolute;
  inset: 14px -13px;
  border: 1px solid #8a72e440;
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 10px #8a72e410;
}
.orbit-ball {
  position: absolute;
  top: 34px;
  left: 45%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px #d9ff6970;
  animation: volley 2.4s ease-in-out infinite;
}
#countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font:
    italic 900 140px "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--lime);
  text-shadow:
    4px 4px #8c40e7,
    0 0 40px #d9ff6940;
}
#countdown:not(:empty) {
  animation: count-in 0.8s ease-out infinite;
}
#point-pop {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  font:
    italic 800 60px "Barlow Condensed",
    Impact,
    sans-serif;
  white-space: nowrap;
  color: var(--cyan);
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 30px currentColor;
}
.court-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.input-guide {
  display: flex;
  gap: 9px;
  align-items: center;
  font:
    7px "Space Mono",
    monospace;
  color: #8893ae;
  letter-spacing: 0.5px;
}
.input-guide i {
  background: var(--cyan);
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px var(--cyan);
}
.court-footer > div {
  display: flex;
  gap: 22px;
}
.court-footer button {
  border: 0;
  background: none;
  color: #a4acc3;
  font:
    8px "Space Mono",
    monospace;
  letter-spacing: 1px;
  min-height: 40px;
  padding: 6px;
}
.court-footer button:hover {
  color: var(--lime);
}
.below-court {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 65px;
  font:
    7px "Space Mono",
    monospace;
  letter-spacing: 1px;
  color: #737e99;
}
.rally-meter {
  display: flex;
  gap: 12px;
  align-items: center;
}
.meter-track {
  width: 130px;
  height: 4px;
  background: #24293e;
  overflow: hidden;
  border-radius: 3px;
}
.meter-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 9px var(--cyan);
  width: 0;
  transition: width 0.3s;
}
.below-court b {
  font-size: 13px;
  color: #e6edff;
}
.record {
  display: flex;
  gap: 10px;
  align-items: center;
}
.built {
  margin-left: auto;
  font-size: 6px;
}
.rules-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 25px;
  border-top: 1px solid #ffffff13;
  border-bottom: 1px solid #ffffff13;
  padding: 28px 0;
  margin: 10px 0 0;
}
.rules-strip div > span {
  font:
    7px "Space Mono",
    monospace;
  letter-spacing: 1.5px;
  color: var(--pink);
}
.rules-strip p {
  font-size: 17px;
  font-weight: 500;
  margin: 9px 0 5px;
}
.rules-strip small {
  font-size: 10px;
  color: #727e98;
}
.end-mark {
  font-size: 65px;
  line-height: 1;
  color: var(--lime);
  padding-left: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 0 28px;
  font:
    7px "Space Mono",
    monospace;
  letter-spacing: 1px;
  color: #7c849e;
}
footer b {
  font-weight: 400;
  color: #454f6d;
  margin-left: 10px;
}
footer i {
  color: var(--lime);
  font-style: normal;
  margin-left: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dialog {
  color: #e6ebff;
  background: #101526;
  border: 1px solid #6f618a;
  border-radius: 14px;
  width: min(92vw, 550px);
  padding: 35px;
  line-height: 1.6;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #030614d9;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-size: 43px;
  margin: 20px 0;
}
dialog p,
dialog dd {
  font-size: 12px;
  color: #a1acc5;
}
dialog dt {
  font:
    10px "Space Mono",
    monospace;
  color: var(--cyan);
  margin-top: 18px;
}
dialog dd {
  margin: 5px 0;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: white;
  font-size: 28px;
}
.help-note {
  border-top: 1px solid #ffffff15;
  padding-top: 15px;
}
.arena:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 3%;
  border: 0;
  border-radius: 0;
  background: #090b17;
}
.arena:fullscreen .play-area {
  max-height: calc(100dvh - 160px);
  flex: 1;
  aspect-ratio: auto;
}
.arena:fullscreen .court-footer {
  flex-shrink: 0;
}
@keyframes aurora {
  to {
    transform: translate(10vw, 12vh) scale(1.25);
  }
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.4;
    box-shadow: 0 0 3px var(--lime);
  }
}
@keyframes token {
  50% {
    transform: rotate(0deg) translateY(-6px);
  }
}
@keyframes equalizer {
  to {
    height: 9px;
    opacity: 1;
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes paddle {
  50% {
    translate: 0 -9px;
    rotate: 10deg;
  }
}
@keyframes volley {
  0%,
  100% {
    transform: translate(-43px, -18px);
  }
  50% {
    transform: translate(44px, 18px);
  }
}
@keyframes shine {
  0%,
  65% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}
@keyframes count-in {
  from {
    opacity: 0.3;
    scale: 1.15;
  }
  50% {
    opacity: 1;
  }
  to {
    scale: 0.95;
  }
}
@media (min-width: 1600px) {
  .play-area {
    max-height: 640px;
  }
}
@media (max-width: 1050px) {
  .intro-aside p {
    display: none;
  }
  .intro {
    padding-top: 30px;
  }
  h1 {
    font-size: 7.5vw;
  }
  .scoreboard {
    padding: 0;
    min-height: 88px;
  }
  .player {
    gap: 10px;
  }
  .player strong {
    font-size: 56px;
    margin-left: 5px;
  }
  .player-right strong {
    margin-right: 5px;
  }
  .player-avatar {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  .player div > span {
    font-size: 8px;
  }
  .player small {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .settings {
    gap: 12px;
  }
  .settings label {
    gap: 8px;
  }
  .settings select {
    font-size: 8px;
  }
  .built {
    display: none;
  }
  .play-area {
    aspect-ratio: 5/3;
  }
  .rules-strip {
    gap: 18px;
  }
  .rules-strip p {
    font-size: 15px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 4%;
  }
  header {
    height: 72px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand small {
    font-size: 5px;
    letter-spacing: 1.8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 28px;
  }
  .online {
    display: none;
  }
  .text-button {
    font-size: 7px;
    padding: 0 9px;
    min-height: 36px;
  }
  .icon-button {
    width: 32px;
    min-height: 36px;
  }
  .top-actions {
    gap: 6px;
  }
  .intro {
    padding: 26px 0 23px;
  }
  .intro h1 {
    font-size: clamp(48px, 10.2vw, 68px);
    max-width: 600px;
  }
  .intro h1 em {
    display: block;
  }
  .title-spark {
    right: -33px;
    top: 5px;
    font-size: 24px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 1.3px;
    line-height: 1.7;
    max-width: 290px;
    margin-bottom: 12px;
  }
  .intro-aside {
    padding-right: 10px;
  }
  .arcade-token {
    width: 54px;
    height: 54px;
    font-size: 14px;
  }
  .control-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    min-height: 43px;
    padding: 10px 12px;
    font-size: 8px;
  }
  .settings {
    width: 100%;
    justify-content: space-between;
  }
  .settings label {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .settings select {
    min-height: 36px;
  }
  .arena {
    padding: 0 12px;
    border-radius: 10px;
  }
  .scoreboard {
    min-height: 83px;
    gap: 6px;
  }
  .player {
    gap: 7px;
    flex-wrap: wrap;
    flex: 1;
  }
  .player-avatar {
    display: none;
  }
  .player strong {
    font-size: 52px;
    margin: 0;
    min-width: 42px;
  }
  .player div > span {
    font-size: 7px;
  }
  .player small {
    font-size: 4px;
    letter-spacing: 0.6px;
  }
  .player-right strong {
    margin: 0;
  }
  .score-center {
    gap: 6px;
    min-width: 100px;
  }
  .court-label {
    font-size: 5px;
    letter-spacing: 1px;
  }
  #status {
    font-size: 5px;
    letter-spacing: 0.7px;
  }
  .signal {
    height: 7px;
  }
  .play-area {
    aspect-ratio: 1/1;
    min-height: 0;
    max-height: none;
  }
  .court-coordinates {
    inset: 9px 9px auto;
    font-size: 4px;
    letter-spacing: 1px;
  }
  .overlay {
    padding: 12px;
  }
  .overlay > p:first-child {
    font-size: 5px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  .paddle-scene {
    scale: 0.8;
    height: 76px;
    margin-top: -7px;
    margin-bottom: 0;
  }
  .overlay h2 {
    font-size: clamp(34px, 8.7vw, 53px);
    letter-spacing: -0.5px;
  }
  .overlay > p {
    font-size: 8px;
    margin: 8px 0 16px;
    max-width: 240px;
  }
  .primary {
    min-width: 180px;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 9px;
    gap: 32px;
  }
  .primary b {
    font-size: 22px;
  }
  .start-hint {
    font-size: 5px;
    margin-top: 12px;
  }
  .court-footer {
    flex-wrap: wrap;
    gap: 3px;
    padding: 9px 0 4px;
  }
  .input-guide {
    font-size: 5px;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.5px;
  }
  .court-footer > div {
    width: 100%;
    justify-content: center;
    gap: 30px;
  }
  .court-footer button {
    font-size: 6px;
    min-height: 38px;
  }
  .below-court {
    min-height: 60px;
    gap: 15px;
    justify-content: space-between;
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .rally-meter {
    gap: 7px;
  }
  .meter-track {
    width: 60px;
  }
  .record {
    gap: 6px;
  }
  .below-court b {
    font-size: 11px;
  }
  .rules-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 23px 0;
    position: relative;
  }
  .rules-strip > div:not(.end-mark) {
    display: grid;
    grid-template-columns: 95px 1fr;
    column-gap: 10px;
  }
  .rules-strip div > span {
    grid-row: 1/3;
    font-size: 6px;
    padding-top: 4px;
  }
  .rules-strip p {
    margin: 0 0 3px;
    font-size: 13px;
  }
  .rules-strip small {
    font-size: 8px;
  }
  .rules-strip .end-mark {
    display: none;
  }
  footer {
    font-size: 5px;
    line-height: 1.8;
  }
  footer > span:last-child {
    max-width: 170px;
    text-align: right;
  }
  footer i {
    display: block;
    margin: 0;
  }
  #point-pop {
    font-size: 40px;
  }
  #countdown {
    font-size: 96px;
  }
  dialog {
    padding: 30px 24px;
  }
  dialog h2 {
    font-size: 36px;
  }
}
@media (max-width: 380px) {
  .top-actions {
    gap: 4px;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 4px;
  }
  .brand-icon {
    width: 27px;
    height: 29px;
  }
  .text-button {
    padding: 0 6px;
    font-size: 6px;
  }
  .icon-button {
    width: 27px;
  }
  .intro-aside {
    display: none;
  }
  .intro h1 {
    font-size: 55px;
  }
  .title-spark {
    right: -25px;
    top: 5px;
    font-size: 20px;
  }
  .player div {
    max-width: 65px;
  }
  .score-center {
    min-width: 90px;
  }
  .player strong {
    font-size: 44px;
  }
  .paddle-scene {
    height: 65px;
    margin-top: -8px;
  }
  .overlay > p:first-child {
    margin-bottom: 0;
  }
  .overlay h2 {
    font-size: 34px;
  }
  .start-hint {
    margin-top: 10px;
  }
  .record > span:last-child {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 700px) {
  .intro {
    padding: 18px 0;
  }
  .intro h1 {
    font-size: 50px;
  }
  .intro-aside {
    display: none;
  }
  .play-area {
    max-height: 310px;
  }
  .scoreboard {
    min-height: 70px;
  }
}
.motion-off *,
.motion-off *:before,
.motion-off *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-off .ambient {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ambient {
    display: none;
  }
}
.paddle-scene[hidden],
.start-hint[hidden] {
  display: none;
}
.ready-title {
  background: linear-gradient(100deg, #fff 25%, #d9ff69 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.arena[data-state="paused"] .signal i {
  animation-play-state: paused;
}
.arena[data-state="playing"] {
  border-color: #60f6ef50;
}
.arena[data-state="over"] {
  border-color: #d9ff6980;
}
.intro > div:first-child {
  animation: enter 0.6s ease-out both;
}
.intro-aside {
  animation: enter 0.8s ease-out both;
}
/* Readable HUD details and aligned mobile score columns. */
.court-label {
  font-size: 8px;
}
.court-coordinates {
  font-size: 7px;
}
.player small {
  font-size: 7px;
}
.settings label {
  font-size: 8px;
}
.settings select {
  font-size: 10px;
}
.court-footer button {
  font-size: 9px;
}
.input-guide {
  font-size: 8px;
}
.below-court {
  font-size: 8px;
}
.built {
  font-size: 7px;
}
.overlay > p:first-child {
  font-size: 9px;
}
.start-hint {
  font-size: 8px;
}
.online {
  font-size: 9px;
}
@media (max-width: 700px) {
  .player,
  .player-right {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: flex-start;
  }
  .player-right {
    align-items: flex-end;
  }
  .player div,
  .player-right div {
    max-width: none;
  }
  .player div > span {
    font-size: 8px;
  }
  .player small {
    font-size: 5px;
  }
  .player strong {
    font-size: 44px;
  }
  .score-center {
    min-width: 90px;
  }
  .court-label {
    font-size: 5px;
  }
  #status {
    font-size: 6px;
  }
  .settings label {
    font-size: 7px;
  }
  .settings select {
    font-size: 9px;
  }
  .court-coordinates {
    font-size: 5px;
  }
  .input-guide {
    font-size: 7px;
  }
  .court-footer button {
    font-size: 8px;
  }
  .below-court {
    font-size: 6px;
  }
  .overlay > p:first-child {
    font-size: 6px;
  }
  .start-hint {
    font-size: 6px;
  }
  .text-button {
    font-size: 8px;
  }
  .rules-strip div > span {
    font-size: 8px;
  }
  .rules-strip small {
    font-size: 10px;
  }
  footer {
    font-size: 7px;
  }
  .brand small {
    font-size: 6px;
  }
  .court-footer > div {
    gap: 24px;
  }
}
@media (max-width: 380px) {
  .text-button {
    font-size: 7px;
  }
  .brand small {
    font-size: 5px;
  }
  .player div > span {
    font-size: 7px;
  }
  .input-guide {
    font-size: 6px;
  }
}
