/* singleorigingames.com — shared styles
 *
 * Brand palette: dark navy + gold + warm off-white.
 * Mobile-first. No JS dependencies. CSS-only animations.
 */

:root {
  --bg-deep:       #0E1A2B;
  --bg-card:       #1A2336;
  --bg-card-hover: #222C40;
  --border:        #2A3548;
  --gold:          #FFD66B;
  --gold-deep:     #D9914A;
  --white:         #FFFBF0;
  --muted:         #AAAAAA;
  --subtle:        #777;
  --link:          #4A9CFA;
  --link-hover:    #6FB1FF;
  --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 32px rgba(255, 214, 107, 0.12);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --width-content: 1100px;
  --width-narrow:   720px;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--white);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(2px 2px at 20% 25%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 70% 35%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 15% 85%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(2px 2px at 90% 50%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 30% 55%, rgba(255, 255, 255, 0.35), transparent);
  background-size: 800px 800px;
  background-attachment: fixed;
  background-repeat: repeat;
}

/* ─── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 43, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.site-header__brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.site-header__nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.site-header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header__nav a:hover { color: var(--gold); }
.site-header__nav a.active { color: var(--white); }

@media (max-width: 600px) {
  .site-header__inner { padding: 12px 16px; }
  .site-header__nav { gap: 18px; font-size: 13px; }
  .site-header__brand { font-size: 15px; }
}

/* ─── Layout ─────────────────────────────────────────────────────── */

main { padding: 0 24px 80px; }

.container { max-width: var(--width-content); margin: 0 auto; }
.container-narrow { max-width: var(--width-narrow); margin: 0 auto; }

.section { padding: 80px 0; }
.section--first { padding-top: 64px; }

@media (max-width: 600px) {
  main { padding: 0 16px 60px; }
  .section { padding: 56px 0; }
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 0 64px;
}

.hero__logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(255, 214, 107, 0.18);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ─── Section headers ────────────────────────────────────────────── */

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* ─── Game cards ─────────────────────────────────────────────────── */

.games {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .games { grid-template-columns: 1fr 1fr; }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
  box-shadow: var(--shadow-card);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 214, 107, 0.35);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.game-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

.game-card__badge--live {
  background: rgba(93, 202, 165, 0.15);
  color: #5DCAA5;
}

.game-card__badge--soon {
  background: rgba(255, 214, 107, 0.15);
  color: var(--gold);
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.game-card__desc {
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-card__chip {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* ─── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1A1409;
  box-shadow: 0 4px 16px rgba(255, 214, 107, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 214, 107, 0.35);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 214, 107, 0.4);
}

.btn--disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--subtle);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ─── Philosophy / Features grid ─────────────────────────────────── */

.values {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

.value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.value__icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gold);
}

.value p {
  color: var(--muted);
  font-size: 15px;
}

/* ─── Content pages (about, privacy, support) ────────────────────── */

.page-header {
  text-align: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-header__subtitle {
  color: var(--muted);
  font-size: 17px;
}

.prose {
  max-width: var(--width-narrow);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 56px 0 16px;
  color: var(--gold);
  letter-spacing: -0.3px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--white);
}

.prose p { margin-bottom: 18px; color: var(--white); }

.prose ul, .prose ol {
  margin: 0 0 22px 22px;
  color: var(--white);
}

.prose li { margin-bottom: 6px; }

.prose a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 156, 250, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.prose a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.prose strong { color: var(--gold); font-weight: 600; }

.prose code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.last-updated {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
}

/* ─── Game detail page ──────────────────────────────────────────── */

.game-hero {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 48px 0;
}

@media (min-width: 800px) {
  .game-hero {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

.game-hero__art {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
}

.game-hero__art img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.game-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.05;
}

.game-hero__byline {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.game-hero__lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin: 32px 0;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature__icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.feature h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gold);
}

.feature p { color: var(--muted); font-size: 14.5px; }

/* ─── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 48px 24px 32px;
  margin-top: 80px;
}

.site-footer__inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.site-footer__cols {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

@media (min-width: 700px) {
  .site-footer__cols { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer__brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 12px;
}

.site-footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

.site-footer__brand-mark img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 8px; }

.site-footer__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.site-footer__col a:hover { color: var(--gold); }

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--subtle);
  font-size: 13px;
}

/* ─── Error page ─────────────────────────────────────────────────── */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 144px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ─── Utility ───────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
