:root {
  color-scheme: dark;
  --ink: #f8f7ff;
  --muted: #a7a0d8;
  --line: rgba(85, 242, 255, 0.28);
  --paper: #080716;
  --panel: rgba(17, 14, 44, 0.86);
  --mint: #55f2ff;
  --mint-dark: #0bd3ff;
  --coral: #ff3df2;
  --amber: #ffd166;
  --blue: #7c5cff;
  --violet: #9b5cff;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  --neon-pink: #ff3df2;
  --neon-cyan: #55f2ff;
  --neon-yellow: #ffd166;
  --deep: #0b0820;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 61, 242, 0.18), transparent 34%),
    linear-gradient(125deg, rgba(85, 242, 255, 0.13), transparent 42%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(85, 242, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 61, 242, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent 0, black 34%, black 100%);
  transform: perspective(600px) rotateX(58deg) translateY(26vh) scale(1.5);
  transform-origin: center top;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 50%, rgba(255, 255, 255, 0.035) 50% 100%),
    radial-gradient(circle at 50% 12%, rgba(255, 209, 102, 0.32), transparent 13%),
    radial-gradient(circle at 18% 18%, rgba(85, 242, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(255, 61, 242, 0.18), transparent 26%);
  background-size:
    100% 4px,
    100% 100%,
    100% 100%,
    100% 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-panel {
  min-height: 220px;
  padding: clamp(24px, 5vw, 54px);
  display: grid;
  align-items: end;
  gap: 22px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(105deg, rgba(8, 7, 22, 0.96), rgba(18, 13, 54, 0.74)),
    url("data:image/svg+xml,%3Csvg width='1400' height='420' viewBox='0 0 1400 420' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1400' height='420' fill='%23080716'/%3E%3Cdefs%3E%3ClinearGradient id='sun' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23ffd166'/%3E%3Cstop offset='.55' stop-color='%23ff3df2'/%3E%3Cstop offset='1' stop-color='%237c5cff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='1030' cy='145' r='104' fill='url(%23sun)' opacity='.9'/%3E%3Cg stroke='%23080716' stroke-width='12' opacity='.62'%3E%3Cpath d='M924 107h212'/%3E%3Cpath d='M905 143h250'/%3E%3Cpath d='M918 179h224'/%3E%3Cpath d='M957 215h146'/%3E%3C/g%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M725 118l-110 84 110 84' stroke='%2355f2ff' stroke-width='20'/%3E%3Cpath d='M790 118l110 84-110 84' stroke='%23ff3df2' stroke-width='20'/%3E%3Crect x='505' y='111' width='88' height='168' rx='11' stroke='%23ffd166' stroke-width='14'/%3E%3Cpath d='M530 145h38M530 183h38M530 221h22' stroke='%2355f2ff' stroke-width='12'/%3E%3C/g%3E%3Cg opacity='.42' stroke='%2355f2ff'%3E%3Cpath d='M0 337h1400'/%3E%3Cpath d='M0 378h1400'/%3E%3Cpath d='M120 420l420-108M1280 420L860 312M330 420l250-108M1070 420L820 312'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(85, 242, 255, 0.34);
  box-shadow:
    var(--shadow),
    0 0 28px rgba(85, 242, 255, 0.18),
    inset 0 0 36px rgba(255, 61, 242, 0.12);
  transition:
    min-height 0.22s ease,
    padding 0.22s ease;
}

body[data-view="game"] .hero-panel {
  min-height: 136px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 24px 28px;
}

body[data-view="game"] .hero-panel h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

body[data-view="game"] .lede {
  display: none;
}

.title-block {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  opacity: 1;
  text-shadow: 0 0 12px rgba(85, 242, 255, 0.9);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(85, 242, 255, 0.42),
    0 0 34px rgba(255, 61, 242, 0.28);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(248, 247, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.status-strip {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(8, 7, 22, 0.68);
  backdrop-filter: blur(10px);
  font-weight: 750;
  box-shadow: 0 0 22px rgba(85, 242, 255, 0.16);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.18);
}

.status-dot.online {
  background: var(--mint);
  box-shadow:
    0 0 0 4px rgba(85, 242, 255, 0.2),
    0 0 18px rgba(85, 242, 255, 0.92);
}

.status-dot.offline {
  background: var(--coral);
  box-shadow:
    0 0 0 4px rgba(255, 61, 242, 0.2),
    0 0 18px rgba(255, 61, 242, 0.86);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel,
.arena {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-cyan);
  font-size: 0.86rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(85, 242, 255, 0.42);
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(85, 242, 255, 0.34);
  border-radius: 8px;
  background: rgba(8, 7, 22, 0.72);
  color: var(--ink);
  outline: 0;
  box-shadow: inset 0 0 18px rgba(85, 242, 255, 0.04);
}

input:focus {
  border-color: var(--neon-pink);
  box-shadow:
    0 0 0 4px rgba(255, 61, 242, 0.14),
    0 0 20px rgba(255, 61, 242, 0.28);
}

#roomCodeInput {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 850;
}

.actions,
.match-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.primary-action,
.secondary-action,
.danger-action,
.icon-action {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action {
  color: #080716;
  background: linear-gradient(90deg, var(--neon-cyan), #9affff);
  box-shadow: 0 0 20px rgba(85, 242, 255, 0.34);
}

.primary-action:hover:not(:disabled) {
  background: linear-gradient(90deg, #9affff, var(--neon-cyan));
}

.secondary-action,
.icon-action {
  color: var(--ink);
  border: 1px solid rgba(255, 61, 242, 0.34);
  background: rgba(255, 61, 242, 0.12);
  box-shadow: 0 0 18px rgba(255, 61, 242, 0.14);
}

.secondary-action:hover:not(:disabled),
.icon-action:hover:not(:disabled) {
  background: rgba(255, 61, 242, 0.2);
}

.danger-action {
  color: white;
  background: linear-gradient(90deg, #e3229c, var(--neon-pink));
  box-shadow: 0 0 20px rgba(255, 61, 242, 0.28);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lobby-panel {
  display: grid;
  gap: 18px;
}

.lobby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-box {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.code-input {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--neon-yellow);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.58);
}

.code-row {
  margin-bottom: 4px;
}

.player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-chip {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(8, 7, 22, 0.54);
  box-shadow:
    0 0 20px rgba(85, 242, 255, 0.08),
    inset 0 0 20px rgba(85, 242, 255, 0.04);
}

.player-chip span,
.score-card span,
.reveal-grid span,
.recap-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-panel {
  display: grid;
  gap: 18px;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.score-card,
.round-meter {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(85, 242, 255, 0.34);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(145deg, rgba(16, 13, 47, 0.94), rgba(8, 7, 22, 0.96)),
    linear-gradient(rgba(85, 242, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 10px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    0 0 26px rgba(85, 242, 255, 0.14),
    inset 0 0 22px rgba(124, 92, 255, 0.14);
}

.score-card {
  display: grid;
  align-content: center;
  gap: 4px;
}

.score-card.remote {
  text-align: right;
}

.score-card strong {
  color: white;
  font-size: 3.2rem;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(85, 242, 255, 0.78),
    0 0 28px rgba(255, 61, 242, 0.32);
}

.score-card span,
.round-meter span {
  color: rgba(255, 255, 255, 0.72);
}

.player-chip strong,
.score-card span,
.recap-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(85, 242, 255, 0.32);
  border-radius: 999px;
  color: var(--neon-cyan);
  background:
    linear-gradient(90deg, rgba(85, 242, 255, 0.12), rgba(255, 61, 242, 0.08));
  text-shadow:
    0 0 10px rgba(85, 242, 255, 0.82),
    0 0 18px rgba(255, 61, 242, 0.3);
  box-shadow:
    0 0 14px rgba(85, 242, 255, 0.16),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
}

.score-card.remote span {
  margin-left: auto;
}

.recap-card span {
  margin: 0 auto;
}

.round-meter {
  display: grid;
  align-content: center;
  gap: 9px;
  text-align: center;
}

.round-meter strong {
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(255, 209, 102, 0.84),
    0 0 24px rgba(255, 61, 242, 0.35);
}

.phase-label {
  width: fit-content;
  margin: 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(85, 242, 255, 0.32);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(85, 242, 255, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(85, 242, 255, 0.14);
}

.timer-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42);
}

.timer-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-yellow), var(--neon-pink));
  transform-origin: left center;
  transition: transform 0.18s linear;
  box-shadow: 0 0 16px rgba(85, 242, 255, 0.76);
}

.arena {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(17, 14, 44, 0.96), rgba(8, 7, 22, 0.98)),
    linear-gradient(rgba(85, 242, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 61, 242, 0.07) 1px, transparent 1px);
  background-size:
    auto,
    42px 42px,
    42px 42px;
}

.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 5px solid var(--neon-pink);
  box-shadow: inset 0 16px 32px rgba(255, 61, 242, 0.08);
}

.round-status {
  min-height: 32px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 14px rgba(85, 242, 255, 0.36);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-button {
  min-height: 164px;
  padding: 18px 14px;
  border: 2px solid rgba(85, 242, 255, 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(22, 18, 60, 0.92), rgba(10, 8, 28, 0.96)),
    linear-gradient(135deg, rgba(85, 242, 255, 0.08), rgba(255, 61, 242, 0.08));
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    opacity 0.14s ease;
}

.choice-button:hover:not(:disabled),
.choice-button.selected {
  border-color: var(--neon-cyan);
  background:
    linear-gradient(180deg, rgba(31, 26, 82, 0.96), rgba(13, 10, 38, 0.98)),
    linear-gradient(135deg, rgba(85, 242, 255, 0.16), rgba(255, 61, 242, 0.12));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(85, 242, 255, 0.36);
  transform: translateY(-2px);
}

.choice-button.locked {
  border-color: var(--neon-yellow);
  background:
    linear-gradient(180deg, rgba(45, 34, 82, 0.98), rgba(18, 12, 45, 0.98)),
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 61, 242, 0.14));
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.24);
}

.choice-button:disabled:not(.selected) {
  background: rgba(15, 12, 37, 0.82);
  box-shadow: none;
}

.choice-button small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: none;
}

.choice-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #080716;
  background: var(--neon-cyan);
  font-size: 2rem;
  line-height: 1;
  box-shadow:
    0 0 22px rgba(85, 242, 255, 0.6),
    inset 0 -8px 16px rgba(0, 0, 0, 0.16);
}

.choice-icon.paper {
  background: var(--neon-yellow);
  font-size: 1.9rem;
  box-shadow:
    0 0 22px rgba(255, 209, 102, 0.6),
    inset 0 -8px 16px rgba(0, 0, 0, 0.16);
}

.choice-icon.scissors {
  background: var(--neon-pink);
  box-shadow:
    0 0 22px rgba(255, 61, 242, 0.62),
    inset 0 -8px 16px rgba(0, 0, 0, 0.16);
}

.reveal-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reveal-grid div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgba(8, 7, 22, 0.62);
  box-shadow: inset 0 0 16px rgba(85, 242, 255, 0.05);
}

.reveal-grid strong {
  font-size: 1.35rem;
}

.emote-panel {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.emote-panel > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.emote-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.emote-button {
  width: 46px;
  min-height: 40px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.08);
  font-weight: 950;
  box-shadow:
    0 0 16px rgba(255, 209, 102, 0.13),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.emote-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.26);
}

.emote-burst {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  max-width: min(420px, calc(100% - 28px));
  padding: 10px 16px;
  border: 1px solid rgba(85, 242, 255, 0.48);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(85, 242, 255, 0.16), rgba(255, 61, 242, 0.14)),
    rgba(8, 7, 22, 0.94);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 14px rgba(85, 242, 255, 0.46);
  box-shadow:
    0 0 28px rgba(85, 242, 255, 0.24),
    inset 0 0 16px rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  animation: emotePop 1.7s ease both;
}

.emote-burst.remote {
  border-color: rgba(255, 61, 242, 0.5);
  box-shadow:
    0 0 28px rgba(255, 61, 242, 0.24),
    inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.round-cue {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 999px;
  color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.1);
  font-size: clamp(1.1rem, 4vw, 2rem);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow:
    0 0 22px rgba(255, 209, 102, 0.22),
    inset 0 0 14px rgba(255, 209, 102, 0.06);
  animation: cuePop 0.7s ease both;
}

.round-cue.play {
  border-color: rgba(85, 242, 255, 0.55);
  color: var(--neon-cyan);
  background: rgba(85, 242, 255, 0.12);
  box-shadow: 0 0 28px rgba(85, 242, 255, 0.32);
}

.round-cue.round-win,
.round-cue.round-loss,
.round-cue.round-tie {
  position: relative;
  isolation: isolate;
  padding: 12px 24px;
  border-width: 2px;
  letter-spacing: 0;
  animation: roundResultPop 1.15s cubic-bezier(0.2, 1.35, 0.34, 1) both;
}

.round-cue.round-win::before,
.round-cue.round-loss::before,
.round-cue.round-tie::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.7;
  filter: blur(10px);
  animation: roundResultBurst 0.95s ease-out both;
}

.round-cue.round-win {
  border-color: rgba(85, 242, 255, 0.86);
  color: var(--neon-cyan);
  background:
    linear-gradient(135deg, rgba(85, 242, 255, 0.18), rgba(255, 209, 102, 0.12)),
    rgba(8, 7, 22, 0.9);
  box-shadow:
    0 0 34px rgba(85, 242, 255, 0.5),
    0 0 70px rgba(255, 209, 102, 0.18),
    inset 0 0 18px rgba(85, 242, 255, 0.12);
  text-shadow:
    0 0 12px rgba(85, 242, 255, 0.9),
    0 0 28px rgba(85, 242, 255, 0.42);
}

.round-cue.round-win::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(85, 242, 255, 0.8) 0 9deg, transparent 9deg 18deg),
    radial-gradient(circle, rgba(255, 209, 102, 0.42), transparent 66%);
}

.round-cue.round-loss {
  border-color: rgba(255, 61, 242, 0.82);
  color: var(--neon-pink);
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.18), rgba(124, 92, 255, 0.14)),
    rgba(8, 7, 22, 0.92);
  box-shadow:
    0 0 34px rgba(255, 61, 242, 0.46),
    0 0 60px rgba(124, 92, 255, 0.22),
    inset 0 0 18px rgba(255, 61, 242, 0.1);
  text-shadow:
    2px 0 rgba(85, 242, 255, 0.56),
    -2px 0 rgba(255, 209, 102, 0.34),
    0 0 28px rgba(255, 61, 242, 0.52);
}

.round-cue.round-loss::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 61, 242, 0.58) 0 10px, transparent 10px 20px),
    radial-gradient(circle, rgba(124, 92, 255, 0.46), transparent 66%);
}

.round-cue.round-tie {
  border-color: rgba(255, 209, 102, 0.76);
  color: var(--neon-yellow);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(85, 242, 255, 0.1)),
    rgba(8, 7, 22, 0.9);
  box-shadow:
    0 0 30px rgba(255, 209, 102, 0.38),
    inset 0 0 18px rgba(255, 209, 102, 0.08);
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
}

.round-cue.round-tie::before {
  background: radial-gradient(circle, rgba(255, 209, 102, 0.48), transparent 68%);
}

.round-recap {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(85, 242, 255, 0.34);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(16, 13, 47, 0.96), rgba(8, 7, 22, 0.98)),
    linear-gradient(rgba(85, 242, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 12px;
  box-shadow:
    var(--shadow),
    0 0 30px rgba(85, 242, 255, 0.14);
  animation: recapEnter 0.35s ease both;
}

.recap-throws {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.recap-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 6px;
  background: rgba(8, 7, 22, 0.72);
}

.recap-card small {
  color: var(--muted);
  font-weight: 850;
}

.recap-card span {
  color: var(--neon-cyan);
  font-weight: 950;
}

.recap-card strong {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1;
}

.recap-card.winner strong {
  animation: choiceStrike 1.15s ease both;
}

.recap-card.loser strong {
  animation: choiceDefeated 1.15s ease both;
}

.recap-card.winner {
  border-color: rgba(85, 242, 255, 0.72);
  box-shadow:
    0 0 28px rgba(85, 242, 255, 0.28),
    inset 0 0 22px rgba(85, 242, 255, 0.08);
  animation: winnerFlash 0.8s ease-in-out infinite alternate;
}

.recap-card.loser {
  opacity: 0.64;
  filter: saturate(0.7);
}

.recap-card.tie {
  border-color: rgba(255, 209, 102, 0.36);
}

.versus {
  color: var(--neon-pink);
  font-size: 0.9rem;
  font-weight: 950;
  text-shadow: 0 0 14px rgba(255, 61, 242, 0.62);
}

.beat-animation {
  position: relative;
  overflow: hidden;
  width: min(430px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(90deg, rgba(85, 242, 255, 0.08), rgba(255, 209, 102, 0.1), rgba(255, 61, 242, 0.08)),
    rgba(8, 7, 22, 0.7);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(255, 209, 102, 0.12);
}

.beat-animation::before {
  content: "";
  position: absolute;
  inset: 50% 12px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.72), transparent);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.58);
  transform: translateY(-50%);
}

.beat-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #080716;
  background: var(--neon-cyan);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(85, 242, 255, 0.48);
}

.beat-icon.loser {
  background: var(--neon-pink);
  box-shadow: 0 0 22px rgba(255, 61, 242, 0.42);
}

.beat-verb {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 999px;
  color: var(--neon-yellow);
  background: rgba(8, 7, 22, 0.82);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.5);
}

.beat-animation.beat .beat-icon.winner {
  animation: beatWinner 1.25s ease both;
}

.beat-animation.beat .beat-icon.loser,
.beat-animation.timeout .beat-icon.loser {
  animation: beatLoser 1.25s ease both;
}

.beat-animation.tie .beat-icon {
  animation: tiePulse 1.2s ease both;
}

.round-recap h2 {
  margin: 0;
  color: var(--neon-cyan);
  text-shadow: 0 0 18px rgba(85, 242, 255, 0.48);
}

.round-recap p {
  margin-bottom: 0;
}

.round-history {
  padding: 18px;
  border: 1px solid rgba(85, 242, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 13, 47, 0.86), rgba(8, 7, 22, 0.94)),
    linear-gradient(rgba(85, 242, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 100% 11px;
  box-shadow:
    inset 0 0 20px rgba(85, 242, 255, 0.04),
    0 0 24px rgba(85, 242, 255, 0.08);
}

.round-history-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.round-history h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  text-shadow: 0 0 16px rgba(85, 242, 255, 0.3);
}

#roundHistoryCount {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.round-history-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.history-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 7, 22, 0.64);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.03);
}

.history-item.local-win {
  border-color: rgba(85, 242, 255, 0.42);
}

.history-item.remote-win {
  border-color: rgba(255, 61, 242, 0.42);
}

.history-item.tie {
  border-color: rgba(255, 209, 102, 0.32);
}

.history-title,
.history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-title strong {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(85, 242, 255, 0.4);
}

.history-title span,
.history-footer {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.history-throws {
  margin: 10px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.history-throw {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.history-throw b {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #080716;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(85, 242, 255, 0.32);
}

.history-throw span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.history-throw.winner {
  background: rgba(85, 242, 255, 0.08);
}

.history-throw.loser {
  opacity: 0.64;
}

.history-beat {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.round-history-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 28;
  overflow: hidden;
  min-height: 100vh;
  padding: 18px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 61, 242, 0.18), transparent 32%),
    rgba(8, 7, 22, 0.84),
    linear-gradient(rgba(85, 242, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 12px;
  backdrop-filter: blur(14px);
  box-shadow:
    var(--shadow),
    0 0 36px rgba(85, 242, 255, 0.18),
    inset 0 0 36px rgba(255, 255, 255, 0.04);
}

.result-overlay > :not(.result-burst) {
  max-width: min(620px, 100%);
}

.result-overlay::before,
.result-overlay::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
}

.result-overlay::before {
  background: conic-gradient(from 0deg, transparent, rgba(85, 242, 255, 0.34), transparent, rgba(255, 61, 242, 0.32), transparent);
  animation: neonSpin 3.4s linear infinite;
}

.result-overlay::after {
  background:
    linear-gradient(transparent 0 46%, rgba(255, 255, 255, 0.16) 48% 52%, transparent 54%),
    radial-gradient(circle, transparent 0 42%, rgba(8, 7, 22, 0.82) 43%);
  animation: scanDrop 1.8s linear infinite;
}

.result-overlay > * {
  position: relative;
  z-index: 1;
}

.result-overlay h2 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.result-overlay p {
  margin-bottom: 0;
}

.result-burst {
  position: absolute;
  width: min(360px, 70vw);
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.44;
  filter: blur(1px);
}

.result-overlay.victory {
  border-color: rgba(85, 242, 255, 0.64);
}

.result-overlay.victory h2 {
  color: var(--neon-cyan);
  text-shadow:
    0 0 14px rgba(85, 242, 255, 0.9),
    0 0 34px rgba(85, 242, 255, 0.46);
  animation: victoryPulse 0.9s ease-in-out infinite alternate;
}

.result-overlay.victory .result-burst {
  background:
    repeating-conic-gradient(from 0deg, rgba(85, 242, 255, 0.86) 0 8deg, transparent 8deg 16deg),
    radial-gradient(circle, rgba(255, 209, 102, 0.64), transparent 58%);
  animation: neonSpin 2.6s linear infinite;
}

.result-overlay.defeat {
  border-color: rgba(255, 61, 242, 0.58);
}

.result-overlay.defeat h2 {
  color: var(--neon-pink);
  text-shadow:
    2px 0 rgba(85, 242, 255, 0.72),
    -2px 0 rgba(255, 209, 102, 0.48),
    0 0 28px rgba(255, 61, 242, 0.55);
  animation: defeatGlitch 0.9s steps(2, end) infinite;
}

.result-overlay.defeat .result-burst {
  background:
    repeating-linear-gradient(90deg, rgba(255, 61, 242, 0.42) 0 12px, transparent 12px 24px),
    radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 60%);
  animation: defeatDrift 1.4s ease-in-out infinite alternate;
}

.break-countdown {
  padding: 8px 12px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 999px;
  color: var(--neon-yellow);
  background: rgba(255, 209, 102, 0.08);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.16);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.result-actions button {
  min-width: 132px;
}

@keyframes neonSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes scanDrop {
  from {
    transform: translateY(-12%);
  }
  to {
    transform: translateY(12%);
  }
}

@keyframes victoryPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes defeatGlitch {
  0%,
  100% {
    transform: translate(0);
  }
  35% {
    transform: translate(-2px, 1px);
  }
  70% {
    transform: translate(2px, -1px);
  }
}

@keyframes defeatDrift {
  from {
    transform: translateX(-8px) skewX(-4deg);
  }
  to {
    transform: translateX(8px) skewX(4deg);
  }
}

@keyframes recapEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes winnerFlash {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

@keyframes choiceStrike {
  0% {
    transform: translateX(0) scale(0.88) rotate(-5deg);
    filter: brightness(0.9);
  }
  42% {
    transform: translateX(10px) scale(1.16) rotate(4deg);
    filter: brightness(1.35);
  }
  100% {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes choiceDefeated {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  48% {
    transform: translateX(-8px) scale(0.92) rotate(-8deg);
    opacity: 0.58;
  }
  100% {
    transform: translateX(0) scale(0.94);
    opacity: 0.72;
  }
}

@keyframes beatWinner {
  0% {
    transform: translateX(-28px) scale(0.86);
    filter: brightness(0.9);
  }
  44% {
    transform: translateX(14px) scale(1.18);
    filter: brightness(1.5);
  }
  100% {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes beatLoser {
  0% {
    transform: translateX(24px) scale(1);
    opacity: 1;
  }
  46% {
    transform: translateX(-12px) scale(0.84) rotate(-10deg);
    opacity: 0.46;
  }
  100% {
    transform: translateX(0) scale(0.9);
    opacity: 0.62;
  }
}

@keyframes tiePulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
}

@keyframes roundResultPop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.64) rotate(-1deg);
  }
  42% {
    opacity: 1;
    transform: translateY(-4px) scale(1.12) rotate(0.5deg);
  }
  70% {
    transform: translateY(0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes roundResultBurst {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  40% {
    opacity: 0.86;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.16;
    transform: scale(1.34);
  }
}

@keyframes emotePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.06);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.96);
  }
}

@keyframes cuePop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  min-width: min(320px, calc(100vw - 28px));
  padding: 13px 18px;
  border: 1px solid rgba(85, 242, 255, 0.42);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(12, 9, 32, 0.94);
  box-shadow:
    0 0 28px rgba(85, 242, 255, 0.28),
    inset 0 0 18px rgba(85, 242, 255, 0.08);
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ready-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 22, 0.78);
  backdrop-filter: blur(12px);
}

.ready-card {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(18, 13, 54, 0.98), rgba(8, 7, 22, 0.98)),
    linear-gradient(rgba(255, 209, 102, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 12px;
  box-shadow:
    var(--shadow),
    0 0 34px rgba(255, 209, 102, 0.16);
}

.ready-card h2 {
  margin: 0;
  color: var(--neon-yellow);
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.44);
}

.ready-card p {
  margin-bottom: 0;
}

.ready-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ready-status span {
  padding: 10px;
  border: 1px solid rgba(85, 242, 255, 0.28);
  border-radius: 8px;
  background: rgba(85, 242, 255, 0.08);
  font-weight: 850;
}

.message-panel {
  padding: 14px 16px;
  border: 1px solid rgba(255, 61, 242, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 61, 242, 0.16);
  font-weight: 750;
  box-shadow: 0 0 22px rgba(255, 61, 242, 0.18);
}

.message-panel[data-tone="info"] {
  border-color: rgba(85, 242, 255, 0.34);
  background: rgba(85, 242, 255, 0.12);
  box-shadow: 0 0 22px rgba(85, 242, 255, 0.16);
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
    gap: 12px;
  }

  .hero-panel {
    min-height: 190px;
    padding: 22px;
    background-position: 62% center;
  }

  body[data-view="game"] .hero-panel {
    display: none;
  }

  .setup-grid,
  .player-list,
  .scoreboard,
  .choices,
  .reveal-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard {
    grid-template-areas:
      "meter"
      "local"
      "remote";
  }

  .score-card.local {
    grid-area: local;
  }

  .score-card.remote {
    grid-area: remote;
    text-align: left;
  }

  .round-meter {
    grid-area: meter;
  }

  body[data-view="game"] .app-shell {
    min-height: auto;
    padding: 8px;
    gap: 8px;
  }

  body[data-view="game"] .game-panel {
    gap: 8px;
  }

  body[data-view="game"] .scoreboard {
    position: sticky;
    top: 8px;
    z-index: 5;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    grid-template-areas: "local meter remote";
    gap: 8px;
  }

  body[data-view="game"] .score-card,
  body[data-view="game"] .round-meter {
    min-height: 74px;
    padding: 9px;
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.34),
      0 0 18px rgba(85, 242, 255, 0.12);
  }

  body[data-view="game"] .score-card span,
  body[data-view="game"] .round-meter span {
    font-size: 0.64rem;
  }

  body[data-view="game"] .score-card span,
  body[data-view="game"] .player-chip strong,
  body[data-view="game"] .recap-card span {
    padding: 2px 5px;
  }

  body[data-view="game"] .score-card strong {
    font-size: 2rem;
  }

  body[data-view="game"] .round-meter strong {
    font-size: 1.7rem;
  }

  body[data-view="game"] .phase-label {
    padding: 3px 6px;
    font-size: 0.58rem;
  }

  body[data-view="game"] .arena {
    padding: 13px;
  }

  body[data-view="game"] .round-status {
    min-height: auto;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  body[data-view="game"] .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-view="game"] .choice-button {
    min-height: 108px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 6px;
    text-align: center;
  }

  body[data-view="game"] .choice-button small {
    display: none;
  }

  body[data-view="game"] .choice-icon {
    width: 46px;
    height: 46px;
  }

  body[data-view="game"] .reveal-grid {
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-view="game"] .reveal-grid div {
    min-height: 62px;
    padding: 10px;
  }

  body[data-view="game"] .reveal-grid strong {
    font-size: 1rem;
  }

  body[data-view="game"] .emote-panel {
    margin-top: 10px;
    gap: 7px;
  }

  body[data-view="game"] .emote-button {
    width: 38px;
    min-height: 34px;
    padding: 0;
  }

  body[data-view="game"] .emote-burst {
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  body[data-view="game"] .match-actions {
    margin-top: 0;
  }

  body[data-view="game"] .result-overlay {
    min-height: 142px;
    padding: 18px 12px;
  }

  body[data-view="game"] .result-overlay h2 {
    font-size: 2.4rem;
  }

  body[data-view="game"] .round-cue {
    margin-bottom: 8px;
    padding: 7px 14px;
    font-size: 1rem;
  }

  body[data-view="game"] .round-recap {
    padding: 14px;
    gap: 10px;
  }

  body[data-view="game"] .recap-throws {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    gap: 6px;
  }

  body[data-view="game"] .recap-card {
    min-height: 102px;
    padding: 10px 6px;
  }

  body[data-view="game"] .recap-card strong {
    font-size: 2.3rem;
  }

  body[data-view="game"] .beat-animation {
    min-height: 58px;
    padding: 8px;
    gap: 6px;
  }

  body[data-view="game"] .beat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }

  body[data-view="game"] .beat-verb {
    padding: 5px 7px;
    font-size: 0.66rem;
  }

  body[data-view="game"] .round-recap h2 {
    font-size: 1.25rem;
  }

  body[data-view="game"] .round-history {
    padding: 14px;
  }

  body[data-view="game"] .round-history-header {
    align-items: start;
  }

  body[data-view="game"] .history-title,
  body[data-view="game"] .history-footer {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  body[data-view="game"] .history-throws {
    grid-template-columns: 1fr;
  }

  body[data-view="game"] .history-beat {
    width: fit-content;
    margin: 0 auto;
  }

  .ready-card {
    padding: 18px;
  }

  .ready-status {
    grid-template-columns: 1fr;
  }

  .choice-button {
    min-height: 100px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    padding: 14px;
  }

  .choice-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .choice-button small {
    grid-column: 2;
  }

  .join-row {
    grid-template-columns: 1fr;
  }
}
