/* =====================================================
   BASE PAGE
===================================================== */

/* =====================================================
   GAME CORE – COLOR TOKENS (DO NOT STYLE HERE)
===================================================== */

:root {
  --accent: #999;               /* fallback */
  --accent-soft: rgba(153,153,153,.25);
  --accent-glow: rgba(153,153,153,.45);
  --accent-text: #000;
}

.game-main {
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 50% -200px, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #0b1e3d 0%, #07162d 100%);
}

/* REAL CENTERED CONTAINER */
.game-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
}

/* =========================
   HERO (FULLER)
========================= */

.game-hero {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.game-hero img {
  width: 100%;
  height: 260px;           /* mobile */
  object-fit: cover;
}

/* overlay stronger for tall banners */
.game-hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.25),
    transparent
  );
}

.game-hero h1 {
  font-size: 1.35rem;
  margin: 0;
}

.game-hero p {
  margin: 4px 0 0;
  font-size: .9rem;
  opacity: .9;
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
  .game-hero img {
    height: 340px;
  }

  .game-hero h1 {
    font-size: 1.6rem;
  }
}

/* =========================
   DESKTOP (fills page better)
========================= */
@media (min-width: 1024px) {
  .game-hero img {
    height: 460px;   /* 🔥 BIG FIX */
  }

  .game-hero {
    margin-bottom: 20px;
  }
}

/* =====================================================
   STEPS – MOBILE FIRST (TIGHT)
===================================================== */

.game-step {
  margin-bottom: 4px;
}

.game-step + .game-step {
  margin-top: -10px;
}

.game-step-card {
  background: rgba(12,18,32,.72);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;

  color: #06210f;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.step-help-btn {
  margin-left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(34,197,94,.25);

  font-weight: 700;
  cursor: pointer;
}

/* INPUT */
#player_id {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: #020617;
  color: #fff;
}

#player_id::placeholder {
  color: rgba(255,255,255,.6);
}

.error-box {
  margin-top: 6px;
  font-size: .85rem;
  color: #f87171;
}

/* =====================================================
   PRODUCTS
===================================================== */

.game-product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-product-card {
  background: #020617;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}

.game-product-card.selected {

  box-shadow: 0 0 0 2px rgba(34,197,94,.4);
}

/* =====================================================
   PAYMENT
===================================================== */

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.payment-option {
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.payment-option img {
  max-height: 32px;
}

.payment-option span {
  font-size: .85rem;
  font-weight: 600;
}

.payment-option input {
  display: none;
}

.payment-option.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.4);
}

.pay-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg,#22c55e,#16a34a);
  border: none;
  font-weight: 700;
  color: #000;
}

/* =====================================================
   TABLET
===================================================== */

@media (min-width: 640px) {
  .game-product-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-hero img {
    height: 280px;
  }
}

/* =====================================================
   DESKTOP (FIXED CENTER + WIDTH)
===================================================== */

@media (min-width: 1024px) {

  .game-container {
    max-width: 1280px;
    padding: 28px 24px;
  }

  .game-hero img {
    height: 420px;
  }

  .game-product-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .game-step-card {
    padding: 18px;
  }
}




.id-help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
}

.id-help-overlay.active {
  display: block;
}

/* =========================
   ID HELP – SOFT MODAL
========================= */

.id-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 23, 0.55); /* soft dark */
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn .2s ease;
}

.id-help-overlay.active {
  display: flex;
}

/* Modal card */
.id-help-sheet {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 14px;
  max-width: 92%;
  max-height: 88vh;
  box-shadow:
    0 20px 40px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(255,255,255,.08);
  animation: popIn .2s ease;
}

/* Image */
.id-help-sheet img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes popIn {
  from {
    transform: scale(.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   SERVER SELECT (GLOBAL)
========================= */

#server {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: #020617;
  color: #fff;
  font-size: 14px;
  appearance: none;
}

/* Fix dropdown arrow look */
#server:focus {
  outline: none;
  border-color: #60a5fa;
}

/* Remove default bright style in some browsers */
#server option {
  background: #0f172a;
  color: #fff;
}