:root {
  --bg-1: #f4ecd9;
  --bg-2: #d6c2a6;
  --panel: rgba(255, 249, 239, 0.82);
  --ink: #1b1a18;
  --line: rgba(27, 26, 24, 0.12);
  --shadow: 0 24px 70px rgba(52, 35, 20, 0.18);
  --accent: #c7502e;
  --accent-2: #275d52;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199, 80, 46, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(39, 93, 82, 0.17), transparent 24%),
    linear-gradient(145deg, var(--bg-1) 0%, #eadcc5 42%, var(--bg-2) 100%);
}

body[data-page="menu"] {
  overflow-y: auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
p {
  margin: 0;
}

.menu-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 26px 0 30px;
}

.menu-lang-switch {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
}

.lang-btn {
  border: 1px solid rgba(27, 26, 24, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 7px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #1f1a13;
  color: #fff8ea;
  border-color: #1f1a13;
}

.menu-hero,
.mode-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.menu-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  align-items: center;
}

.menu-hero-copy {
  min-width: 0;
}

.menu-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 0.95;
}

.menu-intro {
  margin-top: 14px;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.65;
}

.menu-logo-panel {
  border-radius: 20px;
  border: 1px solid rgba(27, 26, 24, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.menu-logo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
}

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

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

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.82);
  border: 1px solid rgba(27, 26, 24, 0.12);
}

.guide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.guide-head h2 {
  font-size: 1.2rem;
}

.guide-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 93, 82, 0.14);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.guide-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 24, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.guide-help:hover {
  background: #ffffff;
}

.guide-go:hover {
  background: rgba(39, 93, 82, 0.22);
}

.guide-card p {
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(27, 26, 24, 0.85);
  min-height: 72px;
}

.mindset-panel {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(27, 26, 24, 0.12);
}

.mindset-panel h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.mindset-panel p+p {
  margin-top: 10px;
}

.mode-help-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.mode-help-modal.is-visible {
  display: block;
}

.mode-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mode-help-panel {
  position: relative;
  width: min(880px, calc(100% - 24px));
  max-height: min(88vh, 980px);
  overflow: auto;
  margin: 4vh auto 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff8ea;
  border: 1px solid rgba(27, 26, 24, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.mode-help-panel h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.mode-help-body p {
  margin-top: 10px;
  line-height: 1.55;
}

#mode-help-close {
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: #1f1a13;
  color: #fff8ea;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.online-room-list {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(27, 26, 24, 0.12);
}

.online-room-list h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.online-room-list-desc {
  margin: 0 0 10px;
  font-size: 0.86rem;
  opacity: 0.8;
}

#online-room-list {
  margin: 0;
  padding-left: 18px;
}

#online-room-list li {
  margin: 4px 0;
}

#online-room-list a {
  color: #1b1a18;
  text-decoration: underline;
}

.mode-card {
  display: block;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 75px rgba(52, 35, 20, 0.24);
  border-color: rgba(199, 80, 46, 0.22);
}

.mode-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 93, 82, 0.12);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-card h2 {
  margin-top: 13px;
  font-size: 1.6rem;
}

.mode-card p {
  margin-top: 10px;
  line-height: 1.62;
  color: rgba(27, 26, 24, 0.8);
}

.layout {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 380px minmax(320px, 880px);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}

.layout.online-performance {
  grid-template-columns: minmax(320px, 920px);
  justify-content: center;
  width: min(980px, calc(100% - 20px));
}

.layout.online-performance .sidebar {
  display: none;
}

.layout.online-performance .stage {
  width: 100%;
  max-width: 920px;
}

/* Full screen layout for non-admin match view */
body.is-not-admin .layout {
  grid-template-columns: 1fr;
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 0;
  gap: 0;
}

body.is-not-admin .sidebar {
  display: none;
}

body.is-not-admin .stage {
  width: 100vw;
  height: 100vh;
  padding: 24px 0;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #3c2415;
  /* Darker outer background for contrast */
}

body.is-not-admin #game-root {
  position: relative;
  width: auto;
  height: 100%;
  max-width: calc(100vw - 40px);
  aspect-ratio: 760 / 1112;
  border: 10px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f7d79a 0%, #a55d28 100%);
  /* Perfect match with court */
  margin: auto;
}

@media (max-width: 640px) {
  body.is-not-admin .stage {
    padding: 0;
    background: #b06b31;
  }

  body.is-not-admin #game-root {
    width: 100vw;
    max-width: none;
    height: auto;
    max-height: 100vh;
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }
}

body.is-not-admin #game-root canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.sidebar,
.stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar {
  padding: 28px 32px 32px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.sidebar h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.96;
}

.intro {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

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

.score-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 26, 24, 0.08);
}

.score-card.wide {
  grid-column: span 2;
}

.label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 26, 24, 0.56);
}

.score-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(27, 26, 24, 0.08);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel h2 {
  margin-bottom: 0px;
  font-size: 1rem;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}

.toggle-control input {
  margin: 0;
  width: auto;
}

.panel p+p {
  margin-top: 10px;
}

.panel label {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
}

.panel label small {
  display: block;
  font-weight: normal;
  font-size: 0.74rem;
  color: var(--accent-2);
  margin-top: 2px;
}

.panel input[type="range"] {
  width: 150px;
  vertical-align: middle;
}

.panel input[type="number"] {
  width: 80px;
  margin-left: 8px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(27, 26, 24, 0.18);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
}

.move-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.move-cost-grid input[type="number"] {
  width: 56px;
  margin-left: 0;
  justify-self: start;
}

kbd {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.9rem;
}

.stage {
  position: relative;
  padding: 18px;
}

.status-pill {
  position: absolute;
  top: 40px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.is-hidden {
  display: none !important;
}

.status-pill-left {
  left: 24px;
}

.status-pill-mode {
  right: 24px;
  left: auto;
  transform: none;
  font-size: 0.88rem;
  padding: 10px 14px;
}

.match-scoreboard {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.match-scoreboard.is-visible {
  display: inline-flex;
}

.match-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 68px;
  line-height: 1;
}

#match-player-left,
#match-player-right {
  display: inline-block;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-player-right {
  justify-content: flex-end;
}

.match-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.match-dot-red {
  background: #c62828;
}

.match-dot-blue {
  background: #1d4f91;
}

.match-score-current {
  min-width: 14px;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

.match-score-set {
  min-width: 14px;
  text-align: center;
  font-size: 1rem;
  color: #ffd54a;
  line-height: 1;
}

.match-vs {
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.match-set-info {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  line-height: 1;
}

.status-pill-combined {
  gap: 12px;
  padding: 10px 18px;
}

.status-pill-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 246, 232, 0.35);
}

#receive-streak,
#level-indicator {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.restart-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: none;
  min-width: 210px;
  padding: 16px 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #c7502e, #8f2d17);
  color: #fff7ef;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(92, 32, 17, 0.28);
}

.restart-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-index-button {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  display: none;
  min-width: 190px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a3127, #1f1a13);
  color: #fff7ef;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mobile-index-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.match-home-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 8;
  display: none;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.78);
  color: #fff7ef;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.match-home-link.is-visible {
  display: none;
}

.modal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ef;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

body.is-match-mode .sidebar .back-link {
  display: none;
}

.movement-ui-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: none;
  min-width: 260px;
  max-width: 84%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.9);
  color: #fff8ea;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.movement-ui-panel.is-visible {
  display: block;
}

.movement-ui-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.movement-ui-panel p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.movement-ui-panel label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 234, 0.75);
}

.movement-ui-panel select,
.movement-ui-panel button {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ea;
  padding: 9px 10px;
  font: inherit;
}

.movement-ui-panel select {
  background: rgba(255, 255, 255, 0.95);
  color: #1b1a18;
  border-color: rgba(0, 0, 0, 0.24);
}

.movement-ui-panel select option {
  color: #1b1a18;
  background: #ffffff;
}

.movement-ui-panel button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.movement-ui-panel button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.match-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.match-online-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 248, 234, 0.78);
  line-height: 1.45;
}

.match-online-box {
  margin-top: 10px;
  text-align: left;
}

.match-online-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: rgba(255, 248, 234, 0.86);
}

.match-online-box input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: #1b1a18;
  padding: 9px 10px;
  font: inherit;
}

.match-online-marker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: rgba(255, 248, 234, 0.9);
}

.match-online-marker-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.match-online-status {
  margin-top: 10px;
  margin-bottom: 0;
  min-height: 2.8em;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 248, 234, 0.88);
}

.match-setup-panel button.is-selected {
  background: rgba(255, 223, 77, 0.28);
  border-color: rgba(255, 223, 77, 0.68);
}

#event-call-overlay.event-call-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  display: none;
  padding: 14px 24px;
  border-radius: 16px;
  background: rgba(255, 223, 77, 0.95);
  border: 6px solid #111111;
  color: #d93025;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

#event-call-overlay.event-call-overlay.is-visible {
  display: block;
}

#movement-level-down-button,
#movement-level-up-button {
  display: none;
}

#game-root {
  position: relative;
  width: 100%;
  aspect-ratio: 0.684;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #d39a4f 0%, #a55d28 100%);
}

#game-root canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.court-logo {
  position: absolute;
  z-index: 2;
  left: var(--logo-left, 50%);
  top: var(--logo-top, 16%);
  width: var(--logo-width, 34%);
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1120px) {
  .menu-hero {
    grid-template-columns: 1fr;
  }

  .menu-logo-panel {
    min-height: 170px;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-guide {
    grid-template-columns: 1fr;
  }

  .guide-card p {
    min-height: 0;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 16px 0 20px;
  }

  .sidebar {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body[data-page="menu"] {
    overflow: auto;
  }

  .menu-shell {
    width: min(100%, calc(100% - 24px));
    padding: 16px 0 24px;
  }

  .menu-hero,
  .mode-card {
    border-radius: 22px;
  }

  .menu-hero {
    padding: 20px;
    gap: 14px;
  }

  .menu-logo-panel {
    min-height: 130px;
    padding: 10px;
  }

  .menu-intro {
    font-size: 0.95rem;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .guide-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-actions {
    width: 100%;
  }

  .guide-help,
  .guide-go {
    width: 100%;
    justify-content: center;
  }

  .mode-help-panel {
    margin-top: 2vh;
    width: calc(100% - 16px);
    max-height: 92vh;
    padding: 14px;
  }

  .online-room-list {
    padding: 14px;
  }

  #online-room-list {
    padding-left: 14px;
  }

  body[data-page="game"] .layout {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    gap: 0;
  }

  body[data-page="game"] .sidebar {
    display: none;
  }

  body[data-page="game"] .stage {
    width: 100vw;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
  }

  .restart-button {
    min-width: 210px;
    padding: 18px 24px;
    font-size: 1.02rem;
  }

  .mobile-index-button {
    bottom: 14px;
    min-width: 172px;
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .status-pill {
    top: 14px;
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .status-pill-left {
    left: 14px;
  }

  .status-pill-combined {
    left: 14px;
    gap: 10px;
    padding: 10px 14px;
  }

  #training-mode-indicator {
    top: 14px;
    right: 14px;
    left: auto;
    transform: none;
    font-size: 0.78rem;
    padding: 9px 11px;
  }

  .match-scoreboard {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .match-player {
    min-width: 50px;
    gap: 6px;
  }

  #match-player-left,
  #match-player-right {
    display: inline-block;
    max-width: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .match-dot {
    width: 11px;
    height: 11px;
  }

  .match-score-current {
    font-size: 0.9rem;
  }

  .match-score-set {
    font-size: 0.9rem;
  }

  #game-root {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
  }
}