:root {
  --bg: #0d0f13;
  --card: rgba(22, 24, 30, .78);
  --line: rgba(255, 255, 255, .11);
  --ink: #f5f1e8;
  --muted: #a9a59c;
  --yellow: #ffc928;
  --yellow-ink: #2a2100;
  --red: #ff5a4f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font-family: 'Hind Siliguri', system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }

/* warm dusk glow behind everything */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(255, 170, 70, .16), transparent 70%),
    radial-gradient(50% 40% at 95% 10%, rgba(255, 90, 79, .1), transparent 70%),
    linear-gradient(180deg, #14161c 0%, #0d0f13 55%);
}

main, .top, .foot { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 6px;
}
.logo {
  font-family: 'Galada', serif; font-size: 34px; color: var(--yellow); line-height: 1.1;
  text-shadow: 0 3px 0 #6b4f00, 0 8px 24px rgba(0, 0, 0, .5);
}
.btn-share {
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.btn-share:hover { background: rgba(255, 255, 255, .12); }

/* hero */
.hero { padding: 18px 0 8px; }
.kicker { margin: 0; color: var(--yellow); font-weight: 600; font-size: 14px; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(34px, 7vw, 56px); line-height: 1.15; }
.hero h1 span { color: var(--yellow); }
.lede { margin: 0; max-width: 640px; color: #ddd6c6; font-size: 17px; }

/* featured game */
.featured { margin: 22px 0 30px; }
.feature {
  display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 201, 40, .5); }
.feature-cover { aspect-ratio: 1200 / 630; background: #1a1c22; }
.feature-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.feature-body h2 { margin: 0; font-size: 30px; line-height: 1.25; }
.feature-body p { margin: 0; color: #d9d2c2; }
.btn-play {
  align-self: flex-start; margin-top: 8px; font-weight: 700; font-size: 18px; padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #ffd54a, #f5b400); color: var(--yellow-ink); box-shadow: 0 4px 0 #9a7000;
}

/* game grid */
.sec { font-size: 22px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: transform .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); border-color: rgba(255, 201, 40, .5); }
.card.soon { opacity: .78; }
.cover { aspect-ratio: 1200 / 630; background: #1a1c22; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 201, 40, .16), transparent 60%), repeating-linear-gradient(135deg, #1b1d23 0 14px, #17191e 14px 28px);
}
.placeholder span { font-size: 64px; filter: grayscale(.3) drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.tagline { margin: 0; color: #cfc8b8; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #ddd6c6; }
.best { margin: 4px 0 0; font-size: 14px; color: var(--yellow); }
.cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--yellow); }
.card.soon .cta { color: var(--muted); }

.badge {
  font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; align-self: flex-start;
}
.card .badge { position: absolute; top: 10px; left: 10px; }
.badge.new { background: var(--red); color: #fff; }
.badge.soon { background: rgba(10, 11, 15, .85); color: var(--yellow); border: 1px solid rgba(255, 201, 40, .5); }

/* footer */
.foot { padding-top: 34px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.disclaimer {
  font-size: 13px; color: #bdb8ad; line-height: 1.6; margin: 0 0 10px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.disclaimer b { color: var(--yellow); }
.muted { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 760px) {
  .logo { font-size: 30px; }
  .feature { grid-template-columns: 1fr; }
  .feature-body { padding: 16px 18px 20px; }
  .feature-body h2 { font-size: 26px; }
  .btn-play { align-self: stretch; text-align: center; }
  .grid { grid-template-columns: 1fr; }
}
