/* Shared site styles. Brand colours come from includes/config.php (--gold, --gold-light, --gold-dark). */

:root {
  --bg: #262626;
  --bg-deep: #1a1a1a;
  --surface: #1c1c1c;
  --surface-2: #232323;
  --border: #3a3a3a;
  --gold: #ffb950;
  --gold-light: #f5b134;
  --gold-dark: #d28c0d;
  --text: #ffffff;
  --muted: #c9c5c1;
  --dim: #9a958f;
  --link: #5ab0ff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(var(--bg) 0%, var(--bg) 85%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 112px); }
.section-title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  text-transform: capitalize;
}
.section-lead { text-align: center; color: var(--dim); margin-top: 12px; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: #111;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
  box-shadow: inset 0 1px 3px rgba(255,255,255,.6), inset 0 -1px 3px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.4);
}
.btn-outline { color: var(--gold); border: 2px solid var(--gold); background: transparent; }
.btn-lg { font-size: clamp(1rem, 2vw, 1.4rem); padding: 14px clamp(24px, 4vw, 44px); }
.icon-btn { width: 48px; height: 48px; padding: 0; }
.icon-btn img { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,26,26,.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--gold); white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--gold); }
.nav .btn { min-height: 40px; padding: 8px 18px; font-size: .85rem; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero .container {
  display: grid; align-items: center; gap: 32px;
  grid-template-columns: 1fr;
  padding-block: clamp(40px, 9vw, 140px);
}
@media (min-width: 768px) { .hero .container { grid-template-columns: 1.4fr 1fr; } }
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
}
.hero .tagline { margin-top: 16px; font-size: clamp(1.1rem, 2.6vw, 2rem); color: #d4d4d4; font-weight: 500; }
.hero .intro { margin-top: 12px; max-width: 46ch; color: var(--dim); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-art { justify-self: center; width: min(70vw, 440px); }
.hero-art img { width: 100%; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* A logo (rather than a 3D chip) floats instead of spinning so its letters stay upright */
.hero-art.is-logo img { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .hero-art.is-logo img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Features ---------- */
.features { display: grid; gap: 20px; margin-top: clamp(32px, 6vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.feature-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; background: #2a2826; border-radius: 12px; }
.feature-icon img { width: 44px; height: 44px; }
.feature h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.feature p { margin-top: 8px; color: var(--muted); }

/* ---------- Rate cards / tables ---------- */
.rates-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rates-head a { color: var(--muted); font-weight: 600; }
.rate-grid {
  display: grid; gap: 20px; margin-top: 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.rate-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.providers {
  list-style: none; margin: 0; padding: 18px 18px 14px;
  display: flex; flex-wrap: wrap; gap: 10px;
  flex: 1; align-content: flex-start;
}
.providers li { display: contents; }
.providers a {
  text-decoration: none; transition: border-color .2s ease, color .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em;
}
.providers a:hover { border-color: var(--gold); color: var(--gold); }
.providers img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }

.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-table th,
.rate-table td { padding: 12px 18px; text-align: right; white-space: nowrap; }
.rate-table th:first-child,
.rate-table td:first-child { text-align: left; }
.rate-table thead th {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); background: var(--bg-deep);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.rate-table tbody td { font-size: 1.1rem; font-weight: 600; color: #f2f2f2; }
.rate-table tbody td:first-child { color: var(--gold); font-size: 1.25rem; font-weight: 700; }
.rate-table tbody tr + tr td { border-top: 1px solid #2c2c2c; }
.rate-table tbody tr:hover td { background: color-mix(in srgb, var(--gold) 6%, transparent); }
@media (max-width: 380px) {
  .rate-table th, .rate-table td { padding: 10px 12px; }
  .rate-table tbody td { font-size: 1rem; }
}

.rates-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* ---------- Partner ---------- */
.partner {
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold-dark) 45%, #000), #000);
}
.partner .chip { position: absolute; width: clamp(56px, 8vw, 112px); opacity: .3; pointer-events: none; }
.partner .container { position: relative; z-index: 1; text-align: center; }
.partner h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.2; }
.partner .section-lead { color: #d1d1d1; }
.partner-grid { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.partner-card {
  background: #09090b; border: 1px solid #27272a; border-radius: var(--radius);
  padding: 24px; text-align: left; display: flex; flex-direction: column; gap: 20px;
}
.partner-card .row { display: flex; gap: 16px; align-items: flex-start; }
.partner-card img { width: clamp(64px, 12vw, 96px); flex: none; }
.partner-card p { color: #d1d1d1; font-size: 1.05rem; }
.partner-card strong { color: #fff; }
.partner-card .btn { align-self: flex-start; }

/* ---------- Milestones ---------- */
.stats { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.stat { border: 2px solid var(--gold); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px) 24px; text-align: center; }
.stat .value { font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; font-weight: 700; color: var(--gold); }
.stat .label { margin-top: 12px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 24px auto 0; padding: 0; display: grid; gap: 12px; justify-content: center; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: clamp(1rem, 2.4vw, 1.75rem); }
.contact-list a { color: var(--link); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-mark {
  padding-block: clamp(40px, 10vw, 120px);
  text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(2.5rem, 11vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; color: var(--dim); font-size: .9rem; border-top: 1px solid var(--border); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Inventory page ---------- */
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.05; font-weight: 700; color: var(--gold); }
.page-hero p { margin-top: 12px; color: var(--dim); font-size: clamp(1.1rem, 2.6vw, 2rem); font-weight: 600; }
.inventory-img { margin-top: 40px; border-radius: var(--radius); }

/* ---------- Game landing pages ---------- */
.breadcrumb { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--dim); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.game-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.game-hero > img { width: clamp(72px, 12vw, 112px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 2px solid var(--gold); }
.game-hero h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.1; font-weight: 700; color: var(--gold); }
.game-hero .sub { margin-top: 6px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.game-layout { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .game-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; margin-bottom: 14px; }
.panel p + p { margin-top: 12px; }
.panel p { color: var(--muted); }
.panel .rate-card { margin: 4px 0 20px; }
.prose a:not(.btn) { color: var(--gold); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #111; font-weight: 700; }
.steps strong { color: #fff; display: block; }
.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.game-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.game-links a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-weight: 600;
  transition: border-color .2s ease;
}
.game-links a:hover { border-color: var(--gold); }
.game-links img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.game-links small { display: block; color: var(--gold); font-weight: 500; }
