:root {
  --bg-deep: #07111c;
  --bg-ocean: #0e2b3d;
  --sea-foam: #67d9e8;
  --sunfire: #ff8a3d;
  --warning: #ff4d4d;
  --gold: #ffd166;
  --steel: #d9e2ec;
  --ink: #d6e5f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 138, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #02070d 0%, #08131d 30%, #07111c 100%);
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.game-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hud-column {
  display: grid;
  gap: 18px;
}

.brand h1,
.panel h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0;
}

.brand h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(103, 217, 232, 0.18);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sunfire);
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
}

.tagline,
.panel p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
  color: rgba(214, 229, 242, 0.88);
}

.panel {
  padding: 18px 20px;
  border: 1px solid rgba(103, 217, 232, 0.18);
  background: linear-gradient(180deg, rgba(11, 24, 38, 0.78), rgba(5, 13, 22, 0.88));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.panel h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--sea-foam);
  text-transform: uppercase;
}

.panel span {
  color: white;
  font-weight: 700;
}

.legend p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
}

.chip.red {
  background: #ff595e;
  color: #ff595e;
}

.chip.blue {
  background: #00bbf9;
  color: #00bbf9;
}

.chip.gold {
  background: #ffd166;
  color: #ffd166;
}

.play-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

canvas {
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 2 / 3;
  display: block;
  border: 1px solid rgba(103, 217, 232, 0.28);
  background: linear-gradient(180deg, #153851 0%, #0d2233 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.36),
    0 0 30px rgba(103, 217, 232, 0.1);
}

.cabinet-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 560px);
  height: min(100%, 760px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(103, 217, 232, 0.14), transparent 62%);
  pointer-events: none;
  filter: blur(12px);
}

@media (max-width: 900px) {
  body {
    padding: 12px;
  }

  .game-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hud-column {
    order: 2;
  }

  .play-column {
    order: 1;
  }

  .brand h1 {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }
}
