*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-deep: #0a0e1a;
  --navy: #111827;
  --navy-light: #1a2340;
  --navy-card: #161e33;
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim: #8a7234;
  --text: #e8e4dc;
  --text-muted: #8892a8;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 16px;
  padding-top: max(48px, calc(env(safe-area-inset-top) + 24px));
}

.logo {
  width: 100px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 24px rgba(201, 168, 76, 0.25));
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 20px;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 24px;
  }

  .logo {
    width: 120px;
  }

  h1 {
    font-size: 1.75rem;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  min-height: 160px;
  background: var(--navy-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.game-card:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.1);
}

.game-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.game-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
}

.game-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.game-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.game-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(201, 168, 76, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

footer {
  text-align: center;
  padding: 32px 20px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
