/* ══════════════════════════════════════════════════════════════════════════
   Double Eagle Apps — company site styles
   Palette, type and components mirror the game's default "Obsidian" theme
   (de_ui tokens / ThemeManager.kt): gold #F0C64A on near-black, gold-gradient
   Cinzel display + Manrope body. Shared base is lifted verbatim from the
   Queens Count game site so the brand reads identically across properties.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted brand fonts (no CDN — fast, offline, matches the app) ───── */
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/Cinzel-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../assets/fonts/Cinzel-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 800 900; font-display: swap;
  src: url('../assets/fonts/Cinzel-Black.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
}

:root {
  --bg:           #0a0805;   /* m3 background        */
  --surface:      #0e0b06;   /* m3 surface           */
  --surface-2:    #14110b;   /* m3 surfaceVariant / board background */
  --gold:         #f0c64a;   /* m3 primary / player gold */
  --gold-bright:  #e6b422;   /* GoldButtonMid        */
  --gold-deep:    #a9781f;   /* GoldGradientDeep     */
  --gold-pale:    #fdf6d8;   /* GoldGradientLight    */
  --frame:        #caa133;   /* board border         */
  --ink:          #f3dd9a;   /* m3 onSurface         */
  --muted:        #cbb783;   /* m3 onSurfaceVariant  */
  --silver:       #cdd5e2;   /* m3 secondary (opponent) */
  --ink-on-gold:  #1a1208;   /* m3 onPrimary         */
  --line:         rgba(184, 134, 11, 0.45);  /* m3 outline        */
  --line-soft:    rgba(184, 134, 11, 0.20);  /* m3 outlineVariant */
  --navy:         #0f1a2c;   /* coin face family     */
  --emerald:      #1f6f4a;   /* "available" status   */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(240, 198, 74, 0.10), transparent 60%);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Gold-gradient display text (GoldTitleBrush) ───────────────────────── */
.gold-title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* fallback */
}

h1, h2, h3, h4 { font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 700; }

.eyebrow {
  font-family: 'Cinzel', serif; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 12.5px;
}

/* ── Sticky header / navigation ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(10, 8, 5, 0.72);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 8, 5, 0.92);
  border-bottom-color: var(--line-soft);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 12px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 16px; letter-spacing: 0.16em;
  color: var(--gold-pale);
}
.nav__brand .crown { height: 28px; width: auto; display: block; }
.nav__links {
  margin-left: auto;
  display: flex; gap: 26px; align-items: center;
}
.nav__links a {
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__links .nav__cta {
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
}
.nav__links .nav__cta:hover { border-color: var(--gold); background: rgba(240, 198, 74, 0.08); }
.nav__toggle {
  margin-left: auto;
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-soft); border-radius: 10px;
  color: var(--gold); font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
}

/* ── Buttons (GoldButtonBrush) ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 15px; letter-spacing: 0.08em;
  padding: 14px 30px; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold-bright) 55%, var(--gold-deep) 100%);
  color: var(--ink-on-gold);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 4px 24px rgba(240, 198, 74, 0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(240, 198, 74, 0.4); }
.btn--ghost {
  color: var(--gold);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(240, 198, 74, 0.06); }
.btn--static { cursor: default; }
.btn--static:hover { transform: none; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Section scaffolding ───────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--tint { background:
  linear-gradient(180deg, transparent, rgba(20, 17, 11, 0.6) 12%, rgba(20, 17, 11, 0.6) 88%, transparent);
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title {
  font-size: clamp(28px, 4.6vw, 40px);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(64px, 12vw, 120px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; left: 50%; top: 12%;
  width: min(880px, 120vw); height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240, 198, 74, 0.16), rgba(240, 198, 74, 0.04) 55%, transparent 72%);
  animation: glowBreathe 8s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes glowBreathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}
.hero__inner { position: relative; z-index: 1; }

/* Composed brand mark (eagle / DOUBLE EAGLE / rule) — mirrors DoubleEagleMark */
.brandmark { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 26px; }
.brandmark__crown { height: clamp(96px, 18vw, 140px); width: auto; filter: drop-shadow(0 4px 18px rgba(240,198,74,0.3)); }
.brandmark__word {
  font-size: clamp(15px, 4.3vw, 36px);
  letter-spacing: 0.34em;
  margin: 10px 0 2px;
  padding-left: 0.34em; /* optical centering for the tracking */
}
.brandmark__games {
  font-size: clamp(15px, 3vw, 22px);
  letter-spacing: 0.6em;
  margin-bottom: 10px;
  padding-left: 0.6em; /* optical centering for the tracking */
}
.brandmark__rule { width: clamp(120px, 40vw, 200px); height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.hero__tagline {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(15px, 2.6vw, 20px);
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  margin-bottom: 18px;
}
.hero__pitch { color: var(--muted); max-width: 600px; margin: 0 auto 34px; font-size: 17px; }
.hero__cta { justify-content: center; }

/* Floating game coins beneath the hero copy */
.hero__coins {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 3vw, 26px);
  margin-top: clamp(40px, 7vw, 68px);
  flex-wrap: wrap;
}
.hero__coins .coin-badge { animation: floatY 5.5s ease-in-out infinite; }
.hero__coins .coin-badge:nth-child(2) { animation-delay: 0.4s; }
.hero__coins .coin-badge:nth-child(3) { animation-delay: 0.8s; }
.hero__coins .coin-badge:nth-child(4) { animation-delay: 1.2s; }
.hero__coins .coin-badge:nth-child(5) { animation-delay: 1.6s; }
.hero__coins .coin-badge:nth-child(6) { animation-delay: 2.0s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.coin-badge { width: clamp(52px, 11vw, 78px); height: clamp(52px, 11vw, 78px); }
.coin-badge img, .coin-badge .coin { width: 100%; height: 100%; display: block; border-radius: 50%; }
.coin-badge img { box-shadow: 0 8px 26px rgba(0,0,0,0.55), 0 0 22px rgba(240,198,74,0.16); }

/* ── The painted brand coin (games without bespoke artwork) ────────────── */
.coin { filter: drop-shadow(0 8px 22px rgba(0,0,0,0.5)); }

/* ══ GAMES SHOWCASE ═════════════════════════════════════════════════════ */
.games-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.game-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, #0b0904 100%);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 34px 26px 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(240, 198, 74, 0.08);
}
.game-card__badge { position: absolute; top: 16px; right: 16px; }
.game-card__art { width: 96px; height: 96px; margin-bottom: 20px; }
.game-card__art img { width: 100%; height: 100%; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 20px rgba(240,198,74,0.12); }
.game-card__art--painted { display: flex; align-items: center; justify-content: center; }
.game-card__title { font-size: 22px; letter-spacing: 0.06em; color: var(--gold-pale); margin-bottom: 6px; }
.game-card__tagline { font-family: 'Cinzel', serif; font-weight: 600; font-size: 13px; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 14px; }
.game-card__desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.game-card__cta { margin-top: 18px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* CTA link makes the whole card clickable via a stretched ::after overlay */
.game-card__cta--link { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
.game-card__cta--link:hover { color: var(--gold-pale); }
.game-card__cta--link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }

/* ── Status badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge.is-available { color: #7fdcab; background: rgba(31, 111, 74, 0.16); border-color: rgba(127, 220, 171, 0.4); }
.badge.is-available::before { background: #7fdcab; box-shadow: 0 0 8px #7fdcab; }
.badge.is-development { color: var(--gold); background: rgba(240, 198, 74, 0.12); border-color: var(--line); }
.badge.is-development::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.badge.is-coming-soon { color: var(--silver); background: rgba(205, 213, 226, 0.10); border-color: rgba(205, 213, 226, 0.3); }
.badge.is-coming-soon::before { background: var(--silver); }

/* ══ FEATURED (flagship) ════════════════════════════════════════════════ */
.featured { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.featured__art { position: relative; display: flex; justify-content: center; }
.featured__art img { width: min(340px, 78vw); height: auto; border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 50px rgba(240,198,74,0.15); position: relative; z-index: 1; }
.featured__glow { position: absolute; inset: -8% -8% -8% -8%; background: radial-gradient(circle at center, rgba(240,198,74,0.22), transparent 62%); animation: glowBreathe 7s ease-in-out infinite; }
.featured__body .section-title { text-align: left; }
.featured__tagline { font-family: 'Cinzel', serif; font-weight: 600; color: var(--gold); font-size: 17px; letter-spacing: 0.04em; margin: 4px 0 16px; }
.featured__desc { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.feature-list { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.feature { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-size: 15px; }
.feature__icon { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(240, 198, 74, 0.1); border: 1px solid var(--line-soft); color: var(--gold); font-size: 17px; }

/* ══ ABOUT ══════════════════════════════════════════════════════════════ */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.about-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px 26px; }
.about-card h3 { color: var(--gold); font-size: 18px; letter-spacing: 0.04em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.about-card h3 .fi { font-size: 22px; }
.about-card p { color: var(--muted); font-size: 14.5px; }
.brand-note {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 560px; margin: 44px auto 0; text-align: center;
}
.brand-note img { height: 72px; width: auto; filter: drop-shadow(0 4px 14px rgba(240,198,74,0.3)); }
.brand-note p { color: var(--muted); font-size: 15px; font-style: italic; }

/* ══ CTA band ═══════════════════════════════════════════════════════════ */
.cta-band { text-align: center; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 20px; padding: 56px 28px; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: 0.08em; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }
.cta-band .btn-row { justify-content: center; }

/* ══ Footer ═════════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 52px 0 44px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand .co { font-family: 'Cinzel', serif; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .co .crown { height: 26px; width: auto; display: block; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.footer-col h4 { color: var(--gold-pale); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: 15px; transition: color 0.15s ease, border-color 0.15s ease;
}
.social-row a:hover { color: var(--gold); border-color: var(--gold); }
.footer-legal { border-top: 1px solid var(--line-soft); padding-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-legal .crown { height: 20px; width: auto; vertical-align: -5px; }

/* ══ Content pages (privacy / terms) ═══════════════════════════════════ */
.page-header { text-align: center; padding: clamp(56px, 9vw, 88px) 0 40px; border-bottom: 1px solid var(--line-soft); margin-bottom: 44px; }
.page-header .crown-mark { height: 64px; width: auto; margin-bottom: 14px; filter: drop-shadow(0 4px 14px rgba(240,198,74,0.3)); }
.page-header h1 { font-size: clamp(30px, 5.5vw, 46px); letter-spacing: 0.06em; }
.page-header .effective { color: var(--muted); font-size: 14px; margin-top: 14px; font-style: italic; }
.content { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.content h2 { color: var(--gold); font-size: 23px; letter-spacing: 0.03em; margin: 40px 0 12px; }
.content p { margin: 12px 0; color: var(--ink); }
.content ul { margin: 12px 0 12px 6px; list-style: none; }
.content li { padding-left: 24px; position: relative; margin: 8px 0; color: var(--ink); }
.content li::before { content: "♛"; color: var(--gold); font-size: 12px; position: absolute; left: 0; top: 3px; }
.content a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.content a:hover { color: var(--gold-pale); }
.content strong { color: var(--gold-pale); font-weight: 600; }
.content .note { color: var(--muted); font-size: 14px; font-style: italic; }

/* ── Reveal-on-scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ══ Responsive ═════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; text-align: center; }
  .featured__body .section-title, .featured__body .eyebrow { text-align: center; }
  .featured__body .eyebrow { display: block; }
  .feature { text-align: left; }
  .btn-row { justify-content: center; }
}
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 8, 5, 0.98);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 20px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 380px; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav__links .nav__cta { border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; text-align: center; }
  .section { padding: 52px 0; }
  .footer-grid { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow, .hero__coins .coin-badge, .featured__glow { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
