@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;700;800&display=swap");

/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 137, 61, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 98, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #090c16, #111936 48%, #10101d);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* =========================
   PAGE TITLE
========================= */
.page-title {
  padding: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   GAMES CONTAINER
========================= */
.games-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* =========================
   GAME BUTTONS
========================= */
.game-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #1f6bff, #5a8dff);
  color: #fff;

  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.game-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.game-btn:hover {
  opacity: 0.92;
}

.game-btn-title {
  display: block;
  width: 100%;
}

.game-btn-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.demir-arena-btn {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.28), transparent 34%),
    linear-gradient(135deg, #6d1e12, #b63c1f 46%, #f59f2f);
  box-shadow: 0 18px 36px rgba(138, 44, 18, 0.35);
  border: 1px solid rgba(255, 209, 129, 0.28);
}

.demir-arena-btn .game-btn-title {
  font-size: 18px;
  font-weight: 800;
}

.saxtakar-btn {
  background:
    radial-gradient(circle at top right, rgba(255, 201, 108, 0.2), transparent 32%),
    radial-gradient(circle at bottom left, rgba(75, 226, 193, 0.2), transparent 28%),
    linear-gradient(135deg, #102026, #16353b 44%, #601f2a);
  box-shadow: 0 18px 36px rgba(10, 22, 26, 0.38);
  border: 1px solid rgba(140, 242, 224, 0.18);
}

.saxtakar-btn .game-btn-title {
  font-size: 18px;
  font-weight: 800;
}

/* =========================
   FOOTER / BACK
========================= */
.footer {
  padding: 14px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.back-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.1);
  color: #fff;

  transition: background 0.15s ease, transform 0.15s ease;
}

.back-btn:active {
  transform: scale(0.96);
}

.back-btn:hover {
  background: rgba(255,255,255,0.16);
}

/* =========================
   TABLET (>=768px)
========================= */
@media (min-width: 768px) {
  .games-container {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }

  .page-title {
    font-size: 22px;
  }
}

/* =========================
   DESKTOP (>=1024px)
========================= */
@media (min-width: 1024px) {
  .games-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
  }

  .game-btn {
    font-size: 17px;
    padding: 18px;
  }
}

/* =========================
   PWA SAFE FIXES
========================= */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
