:root {
  --bg-deep: #060a0f;
  --bg: #0a0e14;
  --surface: #111a24;
  --surface-2: #162230;
  --border: rgba(34, 211, 238, 0.22);
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --gold: #e8c547;
  --gold-soft: #c9a227;
  --text: #e8f1f8;
  --text-muted: #94a3b8;
  --warning-bar: #0c4a6e;
  --warning-accent: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* —— Critical notice —— */
.critical-banner {
  background: linear-gradient(90deg, #0c1f3a 0%, var(--warning-bar) 50%, #0c1f3a 100%);
  border-bottom: 3px solid var(--warning-accent);
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.15);
}

.critical-banner strong {
  color: var(--warning-accent);
}

.critical-banner .sub {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.9em;
  color: #e0f2fe;
  opacity: 0.95;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--cyan);
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}

.nav-main a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-main a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.nav-main a[aria-current="page"] {
  color: var(--cyan);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.18), transparent),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 40px,
      rgba(34, 211, 238, 0.03) 40px,
      rgba(34, 211, 238, 0.03) 41px
    );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero .lead {
  margin: 0 auto 1.75rem;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
  color: #041016;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1404;
  box-shadow: 0 6px 20px rgba(232, 197, 71, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
}

/* —— Sections —— */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}

.section-title .gold {
  color: var(--gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Game cards —— */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.game-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--surface-2) 0%, #0f1724 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.12), transparent 55%);
}

.game-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.game-placeholder-art {
  width: 72%;
  height: 72%;
  border-radius: 12px;
  border: 2px dashed rgba(34, 211, 238, 0.35);
  background: repeating-linear-gradient(
    -12deg,
    rgba(34, 211, 238, 0.06),
    rgba(34, 211, 238, 0.06) 12px,
    rgba(232, 197, 71, 0.06) 12px,
    rgba(232, 197, 71, 0.06) 24px
  );
  position: relative;
  z-index: 1;
}

.game-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.game-card h3 {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 1.05rem;
}

.game-card .btn-gold {
  width: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.game-card a.btn-gold {
  pointer-events: auto;
  opacity: 1;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.game-card a.btn-gold:hover {
  text-decoration: none;
}

/* —— Embedded social title —— */
.game-play-main {
  padding: 0 0 2.5rem;
}

.play-toolbar {
  padding: 1rem 0 1rem;
}

.play-toolbar .back {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.play-toolbar h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.game-iframe-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #020617;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.game-iframe-shell iframe {
  display: block;
  width: 100%;
  height: min(88vh, 920px);
  border: 0;
  vertical-align: top;
}

/* —— Stats —— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
}

.stat .num {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gold);
}

.stat .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* —— Subscribe block —— */
.subscribe-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.subscribe-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.subscribe-box p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

input::placeholder {
  color: var(--text-muted);
}

/* —— Responsible strip —— */
.notice-box {
  background: var(--surface);
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.notice-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--gold);
}

.notice-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.footer-links strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.support-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.support-strip p {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.support-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
}

.support-logos a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.support-logos a:hover {
  opacity: 1;
  text-decoration: none;
}

.support-logos img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(1.05);
}

.footer-legal {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* —— Inner pages —— */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
}

.page-hero .intro {
  color: var(--text-muted);
  max-width: 720px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--cyan);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}
