:root {
  color-scheme: dark;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #070a14;
  color: #f8fafc;
  font-family: "Chakra Petch", "Segoe UI", system-ui, -apple-system, sans-serif;
}

#arcade-menu {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 179, 71, 0.16), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.16), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.18), transparent 45%),
    #070a14;
}

#arcade-menu[hidden] {
  display: none;
}

.arcade-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: max(36px, env(safe-area-inset-top)) 20px 56px;
}

.arcade-header {
  text-align: center;
  margin-bottom: 36px;
}

.arcade-kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.arcade-title {
  margin: 14px 0 8px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(90deg, #ffb347 0%, #4ade80 50%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arcade-sub {
  margin: 0 auto;
  max-width: 560px;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
}

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

@media (max-width: 920px) {
  .arcade-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
  transform: translateY(-6px);
}

.game-card[data-theme="cube"]:hover {
  border-color: #ffb347;
  box-shadow: 0 24px 55px rgba(255, 179, 71, 0.2);
}

.game-card[data-theme="dino"]:hover {
  border-color: #4ade80;
  box-shadow: 0 24px 55px rgba(74, 222, 128, 0.2);
}

.game-card[data-theme="road"]:hover {
  border-color: #facc15;
  box-shadow: 0 24px 55px rgba(250, 204, 21, 0.22);
}

.game-banner {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card[data-theme="cube"] .game-banner {
  background: linear-gradient(135deg, #1b1136, #3b1d54);
}

.game-card[data-theme="dino"] .game-banner {
  background: linear-gradient(135deg, #072916, #14532d);
}

.game-card[data-theme="road"] .game-banner {
  background: linear-gradient(135deg, #161d31, #271525);
}

.banner-art {
  font-size: 3.4rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.cube-art {
  width: 58px;
  height: 58px;
  background: #ffb347;
  border: 4px solid #2b1700;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  box-shadow: 0 10px 25px rgba(255, 179, 71, 0.4);
}

.cube-art-eyes {
  display: flex;
  gap: 10px;
}

.cube-art-eyes span {
  width: 9px;
  height: 9px;
  background: #2b1700;
}

.game-key {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.game-stat-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 700;
  color: #f8fafc;
}

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.game-genre {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
}

.game-name {
  margin: 6px 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.game-desc {
  margin: 0 0 16px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.48;
  flex: 1;
}

.game-controls {
  margin-bottom: 18px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #94a3b8;
}

.game-launch-btn {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.game-launch-btn:hover {
  filter: brightness(1.08);
}

.game-launch-btn:active {
  transform: scale(0.98);
}

.game-card[data-theme="cube"] .game-launch-btn {
  background: #ffb347;
  color: #2b1700;
}

.game-card[data-theme="dino"] .game-launch-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
}

.game-card[data-theme="road"] .game-launch-btn {
  background: #facc15;
  color: #111827;
}

.arcade-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
}
