@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url(/studio/fonts/cinzel-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/studio/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/studio/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #15120f;
  --panel: #201b16;
  --line: #3a3128;
  --ink: #efe6d6;
  --muted: #b5a892;
  --gold: #d9a441;
  --gold-hi: #f3cf7a;
  --display: Cinzel, Georgia, 'Times New Roman', serif;
  --ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--ui); }
a { color: var(--gold-hi); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.15; margin: 0; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(21, 18, 15, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-size: 20px; letter-spacing: 0.12em; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.5em; color: var(--muted); margin-top: -2px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--gold-hi); }
.top nav { margin-left: auto; margin-right: clamp(8px, 2vw, 20px); }
.top-actions { display: flex; gap: 8px; flex: none; }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 8px; }

.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,15,0.15) 0%, rgba(21,18,15,0.35) 45%, var(--bg) 100%); }
.hero-text { position: relative; z-index: 1; max-width: 760px; padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 8vh, 80px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; color: var(--gold-hi); margin: 0 0 12px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink); max-width: 620px; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line); background: rgba(32,27,22,0.8);
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15px; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b140c; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--muted); cursor: default; }
.btn.ghost:hover { border-color: var(--line); }

.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 28px; color: var(--gold-hi); }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.game img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.game-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-body h3 { font-size: 26px; }
.game-body p { margin: 0; color: var(--muted); }
.game-body .btn { align-self: flex-start; margin-top: auto; }
.tag { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink) !important; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live { background: #5bc27a; box-shadow: 0 0 8px #5bc27a; }
.dot.soon { background: var(--gold); }

.account { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account p { color: var(--muted); max-width: 640px; margin: 0 0 22px; }
.account-mark { width: clamp(96px, 16vw, 160px); height: auto; opacity: 0.95; }

.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-list h3 { font-size: 19px; margin-bottom: 6px; }
.value-list p { margin: 0; color: var(--muted); }

.contact { text-align: center; }
.contact p { color: var(--muted); margin: 0 0 8px; }
.mail { font-family: var(--display); font-size: clamp(20px, 3vw, 28px); text-decoration: none; }
.mail:hover { text-decoration: underline; }

.foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 28px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* The privacy policy and terms (drawn by the website's server from apps/web/src/legal). */
.top nav a[aria-current="page"] { color: var(--gold-hi); }
.legal-body { max-width: 780px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px) 72px; line-height: 1.65; }
.legal-body h1 { font-size: clamp(28px, 4vw, 38px); color: var(--gold-hi); margin-bottom: 6px; }
.legal-body h2 { font-size: 20px; color: var(--gold); margin: 36px 0 10px; }
.legal-body h3 { font-family: var(--ui); font-size: 16px; margin: 20px 0 6px; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin: 6px 0; }
.legal-body section { scroll-margin-top: 80px; }
.legal-body .muted { color: var(--muted); }
.legal-body .note-box { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.legal-toc { margin: 22px 0 8px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 0; list-style: none; columns: 2 240px; column-gap: 28px; }
.legal-toc li { margin: 4px 0; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* "Join us" links, filled in by the server from the COMMUNITY_* settings and STUDIO_X_URL (X is always there). */
.community a { margin-left: 4px; }
.community.big { font-size: 17px; }
.community-row:empty { display: none; }

/* The press kit (/press). */
.press .section { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.press-intro h1 { font-size: clamp(30px, 5vw, 52px); color: var(--gold-hi); margin-bottom: 14px; }
.press-intro .lead { text-shadow: none; color: var(--muted); }
.press-jump { color: var(--muted); font-size: 15px; }
.press h2 { margin-bottom: 20px; }
.press-h3 { font-size: 18px; color: var(--gold); margin: 20px 0 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.fact-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.fact-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 12px; }
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: 2px 0 0; }
.quote { margin: 0; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; }
.quote.long p { margin: 0 0 12px; color: var(--ink); }
.quote.long p:last-child { margin-bottom: 0; }
.feature-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 900px; }
.feature-list strong { color: var(--gold-hi); }
.press-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.press-note { color: var(--muted); font-size: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.shots figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 10px 14px 12px; font-size: 14px; color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.logo-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.logo-card img { height: 96px; width: auto; max-width: 100%; }
.logo-card figcaption { font-size: 14px; color: var(--muted); }


@media (max-width: 640px) {
  .top nav { display: none; }
  .top-actions .btn.small { padding: 7px 11px; }
  .account { grid-template-columns: 1fr; }
  .account-mark { display: none; }
}
/* Narrow phones: the mark alone, so both account buttons fit beside it. */
@media (max-width: 480px) { .top .brand span { display: none; } }
