:root {
  --bg: #061219;
  --bg-soft: #0d2430;
  --bg-deep: #020a0e;
  --card: rgba(8, 29, 39, 0.9);
  --card-border: rgba(126, 180, 194, 0.18);
  --text: #f6f7eb;
  --muted: #9fb8c3;
  --accent: #ff8a3d;
  --accent-2: #1fb8a6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top right, rgba(31, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 138, 61, 0.16), transparent 34%),
    linear-gradient(180deg, #071117 0%, #091b23 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.help-open {
  overflow: hidden;
}

body.game-focus {
  background: linear-gradient(180deg, #030d12 0%, #07161d 100%);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

body.game-focus .shell {
  max-width: none;
  padding: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.94;
}

.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.status-card,
.card,
.game-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-card {
  width: min(320px, 100%);
  padding: 18px;
}

.status-copy {
  margin: 14px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

body.game-focus .hero,
body.game-focus .panel-left {
  display: none;
}

body.game-focus .layout {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100vh;
}

.panel {
  min-width: 0;
}

.panel-left,
.panel-right,
.setup-card,
.game-card {
  min-width: 0;
}

.stack {
  display: grid;
  gap: 18px;
}

.card {
  padding: 22px;
}

.card h2,
.game-card h2 {
  margin: 0 0 18px;
}

.setup-card h2 {
  margin-bottom: 10px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.compact-field {
  margin: 0;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: rgba(31, 184, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 184, 166, 0.12);
}

.color-field {
  min-width: 0;
}

.color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: start;
  padding: 14px 16px;
  min-height: 64px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.color-option:hover,
.color-option:focus-visible {
  transform: scale(1.08);
}

.color-option.is-selected {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(31, 184, 166, 0.22);
}

.lobby-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.wide-button {
  min-height: 58px;
  width: 100%;
}

.lobby-actions .field,
.lobby-actions input,
.lobby-actions button {
  width: 100%;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.hud-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
  color: #101820;
  font-weight: 700;
}

.primary-button.alt {
  background: linear-gradient(135deg, var(--accent-2) 0%, #76e4b8 100%);
}

.secondary-button,
.hud-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 14, 0.74);
  backdrop-filter: blur(6px);
}

.help-modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 23, 30, 0.96);
  box-shadow: var(--shadow);
}

.help-modal-card h2 {
  margin: 8px 0 0;
}

.help-rules {
  margin-top: 16px;
  padding-left: 20px;
}

.primary-button:hover,
.secondary-button:hover,
.hud-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.hud-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.badge-online {
  background: rgba(31, 184, 166, 0.15);
  color: #76e4b8;
}

.badge-offline {
  background: rgba(255, 107, 107, 0.15);
  color: #ffb8b8;
}

.highlight-card {
  background:
    linear-gradient(145deg, rgba(255, 138, 61, 0.14), transparent 50%),
    rgba(8, 29, 39, 0.94);
}

.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.share-link {
  margin: 10px 0 16px;
  color: var(--muted);
  word-break: break-all;
}

.room-directory-card {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.room-directory-card h2 {
  margin-bottom: 0;
}

.room-directory-card-compact {
  padding: 16px 18px;
}

.room-directory-card-compact .split-row {
  gap: 12px;
}

.room-directory-card-compact h2 {
  font-size: 1.08rem;
}

.room-directory-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.room-directory-item,
.room-directory-empty {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
}

.room-directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.room-directory-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.room-directory-code {
  font-family: "Courier New", monospace;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.room-directory-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.room-directory-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
}

.room-directory-badge.is-open {
  background: rgba(31, 184, 166, 0.14);
  border-color: rgba(31, 184, 166, 0.22);
  color: #8ef2c8;
}

.room-directory-badge.is-full {
  background: rgba(255, 138, 61, 0.14);
  border-color: rgba(255, 138, 61, 0.24);
  color: #ffd2a3;
}

.room-directory-badge.is-countdown {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.22);
  color: #ffe9a6;
}

.room-directory-badge.is-live {
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.22);
  color: #ffc5c5;
}

.room-directory-empty {
  padding: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.ranking-card {
  margin-bottom: 0;
  padding: 18px 20px;
}

.ranking-card h2 {
  margin-bottom: 0;
}

.ranking-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-item,
.ranking-empty {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.ranking-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.ranking-position {
  min-width: 36px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--muted);
}

.ranking-name {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-points {
  color: var(--muted);
  font-weight: 700;
}

.ranking-item.is-gold {
  border-color: rgba(255, 209, 102, 0.26);
  background: rgba(255, 209, 102, 0.12);
}

.ranking-item.is-gold .ranking-position,
.ranking-item.is-gold .ranking-points {
  color: #ffe08a;
}

.ranking-item.is-silver {
  border-color: rgba(216, 221, 228, 0.24);
  background: rgba(216, 221, 228, 0.1);
}

.ranking-item.is-silver .ranking-position,
.ranking-item.is-silver .ranking-points {
  color: #e7edf6;
}

.ranking-item.is-bronze {
  border-color: rgba(205, 127, 50, 0.24);
  background: rgba(205, 127, 50, 0.12);
}

.ranking-item.is-bronze .ranking-position,
.ranking-item.is-bronze .ranking-points {
  color: #e8b78f;
}

.ranking-empty,
.ranking-self {
  padding: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.ranking-self {
  margin: 12px 0 0;
  border-radius: 18px;
  border: 1px solid rgba(31, 184, 166, 0.14);
  background: rgba(31, 184, 166, 0.08);
}

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

.player-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.player-row.is-you {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.player-row.is-ready {
  border-color: rgba(255, 209, 102, 0.16);
}

.player-row.is-alive {
  border-color: rgba(31, 184, 166, 0.2);
  background: rgba(12, 47, 52, 0.22);
}

.player-row.is-dead {
  border-color: rgba(255, 107, 107, 0.18);
  background: rgba(78, 23, 34, 0.22);
  opacity: 0.84;
}

.player-row.is-immune {
  box-shadow:
    inset 0 0 0 1px rgba(135, 226, 255, 0.16),
    0 0 0 1px rgba(135, 226, 255, 0.08);
}

.player-row.is-boosted {
  box-shadow:
    inset 0 0 0 1px rgba(87, 184, 255, 0.18),
    0 0 0 1px rgba(87, 184, 255, 0.08);
}

.player-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.player-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-name,
.score-chip-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-name {
  font-weight: 700;
}

.name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-crown {
  width: 12px;
  height: 10px;
  flex: 0 0 auto;
  display: inline-block;
  background: linear-gradient(180deg, #ffe38a 0%, #ffb347 100%);
  clip-path: polygon(
    0% 100%,
    8% 44%,
    24% 62%,
    36% 6%,
    50% 42%,
    64% 6%,
    76% 62%,
    92% 44%,
    100% 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.player-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.player-score {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--accent);
}

.rules {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.game-card {
  min-height: 100%;
  padding: clamp(14px, 1.8vw, 20px);
}

body.game-focus .game-card {
  min-height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

body.game-focus .room-directory-card,
body.game-focus .ranking-card {
  display: none;
}

.game-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

body.game-focus .game-header {
  display: none;
}

.game-subtitle {
  margin: 0;
  max-width: 360px;
  text-align: right;
  color: var(--muted);
  line-height: 1.5;
}

.game-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 62vw, 760px);
  padding: 68px 24px 108px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(13, 36, 48, 0.96), rgba(4, 15, 20, 0.98)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.01) 12px,
      rgba(255, 255, 255, 0.01) 24px
    );
  overflow: hidden;
}

body.game-focus .game-stage {
  min-height: 100vh;
  padding: 82px 40px 122px;
  border: 0;
  border-radius: 0;
}

#gameCanvas {
  display: block;
  width: min(100%, 860px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 860px;
  max-height: 860px;
  border-radius: 30px;
  background: #07151b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

body.game-focus #gameCanvas {
  width: min(calc(100vw - 120px), calc(100vh - 120px));
  height: min(calc(100vw - 120px), calc(100vh - 120px));
  max-width: none;
  max-height: none;
  border-radius: 34px;
}

.tv-hud {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 4;
  pointer-events: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: calc(100% - 96px);
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 13, 18, 0.72);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.hud-rule-pill {
  padding-inline: 18px;
  color: #ffe9a6;
  border-color: rgba(255, 209, 102, 0.16);
  background: rgba(37, 23, 7, 0.62);
  text-align: center;
}

.hud-button {
  pointer-events: auto;
  min-height: 42px;
}

.mobile-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px;
  align-items: end;
  z-index: 5;
  pointer-events: auto;
  width: min(calc(100% - 28px), 360px);
}

.mobile-dpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 64px));
  grid-template-areas:
    ". up ."
    "left down right";
  gap: 10px;
}

.mobile-up {
  grid-area: up;
}

.mobile-left {
  grid-area: left;
}

.mobile-right {
  grid-area: right;
}

.mobile-down {
  grid-area: down;
}

.mobile-control,
.mobile-shoot {
  border: 0;
  border-radius: 20px;
  background: rgba(3, 13, 18, 0.84);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.mobile-control {
  min-width: 56px;
  min-height: 56px;
  font-size: 1.2rem;
}

.mobile-shoot {
  min-width: 110px;
  min-height: 110px;
  padding: 14px 18px;
  align-self: stretch;
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.92), rgba(255, 179, 71, 0.9));
  color: #101820;
}

.mobile-control:disabled,
.mobile-shoot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.score-strip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 48px);
  z-index: 4;
  pointer-events: none;
}

body.game-focus .score-strip {
  bottom: 30px;
}

.touch-device .game-stage.has-mobile-controls {
  padding-bottom: 178px;
}

.touch-device .game-stage.has-mobile-controls .score-strip {
  bottom: 118px;
}

body.touch-device.game-focus .game-stage.has-mobile-controls {
  min-height: 100dvh;
  padding: 78px 12px 188px;
}

body.touch-device.game-focus .game-stage.has-mobile-controls #gameCanvas {
  width: min(calc(100vw - 24px), calc(100dvh - 270px));
  height: auto;
}

body.touch-device.game-focus .game-stage.has-mobile-controls .score-strip {
  bottom: 122px;
}

.score-chip {
  min-width: 136px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 13, 18, 0.7);
  display: grid;
  gap: 4px;
}

.score-chip.is-alive {
  border-color: rgba(31, 184, 166, 0.16);
}

.score-chip.is-dead {
  border-color: rgba(255, 107, 107, 0.16);
  opacity: 0.82;
}

.score-chip.is-immune {
  box-shadow: inset 0 0 0 1px rgba(135, 226, 255, 0.14);
}

.score-chip.is-boosted {
  box-shadow: inset 0 0 0 1px rgba(87, 184, 255, 0.18);
}

.score-chip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.score-chip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.score-chip-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.score-chip-name {
  font-weight: 700;
  color: var(--text);
}

.score-chip-score {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--accent);
}

.score-chip-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 13, 0.42);
  z-index: 3;
}

.overlay-card {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 16, 22, 0.9);
  text-align: center;
  box-shadow: var(--shadow);
}

body.game-focus .overlay-card {
  width: min(540px, 100%);
  padding: 36px 34px;
}

.overlay-countdown {
  margin: 10px 0 8px;
  color: #fff2d4;
  font-size: clamp(4.8rem, 12vw, 8rem);
  line-height: 0.9;
  font-weight: 800;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.overlay-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.overlay-card p:last-child {
  margin-bottom: 0;
}

.overlay-card p {
  color: var(--muted);
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

@media (max-width: 1340px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .game-header {
    flex-direction: column;
  }

  .game-subtitle {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .shell {
    padding: 18px;
  }

  .hero {
    flex-direction: column;
  }

  .status-card {
    width: 100%;
  }

  .room-directory-item {
    grid-template-columns: 1fr;
  }

  .room-directory-badge {
    justify-self: start;
  }

  .color-field {
    min-width: 0;
  }

  .game-stage {
    min-height: min(78vw, 660px);
    padding: 72px 14px 112px;
  }

  #gameCanvas {
    width: min(100%, 860px);
    max-width: calc(100% - 16px);
  }

  .tv-hud {
    top: 16px;
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
  }

  .score-strip {
    bottom: 16px;
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .game-stage {
    min-height: min(96vw, 760px);
    padding: 68px 10px 168px;
  }

  #gameCanvas {
    max-width: calc(100% - 8px);
    border-radius: 22px;
  }

  .hud-group {
    gap: 8px;
    max-width: 100%;
  }

  .hud-pill {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .hud-rule-pill {
    width: 100%;
  }

  .score-strip {
    gap: 8px;
  }

  .score-chip {
    min-width: 118px;
    padding: 8px 10px;
  }

  .mobile-controls {
    width: min(calc(100% - 16px), 340px);
    gap: 12px;
  }

  .mobile-dpad {
    grid-template-columns: repeat(3, minmax(52px, 60px));
  }

  .mobile-control {
    min-width: 52px;
    min-height: 52px;
  }

  .mobile-shoot {
    min-width: 96px;
    min-height: 96px;
  }
}
