/* Oddline Games – site styles. Colors, fonts and spacing follow the approved design. */
:root {
  --bg: #0B0D12;
  --bg-2: #0F1218;
  --card: #141821;
  --chip: #1F2533;
  --line: #1E2330;
  --line-card: #252B38;
  --line-strong: #2A3040;
  --line-input: #2E3546;
  --line-btn: #3A4152;
  --text: #EDEEF2;
  --text-2: #C9CDD8;
  --text-3: #B4BAC8;
  --muted: #A3A9B8;
  --gold: #E8B44A;
  --gold-hover: #F5CE7A;
  --on-gold: #1A1305;
  --display: 'Unbounded', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
input, select, textarea, button { font: inherit; }
img { max-width: 100%; }
[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.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: 12px; top: -60px; z-index: 10; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-gold); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 15px 26px; text-align: center; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-ghost { border: 1.5px solid var(--line-btn); color: var(--text); padding: 14px 26px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-sm { border-radius: 10px; padding: 12px 22px; }
.btn-ghost.btn-sm { padding: 11px 22px; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.nav { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { background: var(--gold); color: var(--on-gold); padding: 11px 20px; border-radius: 999px; font-weight: 700; }
.nav-links a.nav-cta:hover { background: var(--gold-hover); color: var(--on-gold); }
.menu-toggle { display: none; }

/* ---------- Shared section bits ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -1px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -1.5px; }
.hero-lead { margin: 0; color: var(--text-3); font-size: 19px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art { flex: 1 1 480px; min-width: 0; position: relative; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 615 / 500; object-fit: cover; border-radius: 20px; border: 1px solid var(--line-strong); display: block; background: var(--card); }
.vault-badge { position: absolute; left: -16px; bottom: 28px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.vault-badge-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.vault-badge-value { font-family: var(--mono); font-weight: 700; font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- Stats strip ---------- */
.stats { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 15px; }

/* ---------- Games ---------- */
.games { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.game-card { background: var(--card); border: 1px solid var(--line-card); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.game-card img { width: 100%; height: auto; aspect-ratio: 575 / 335; object-fit: cover; display: block; background: var(--bg-2); }
.game-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--chip); color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; }
.tag-soon { background: none; border: 1px dashed #4A5266; color: var(--muted); padding: 4px 10px; }
.game-card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; }
.game-card p { margin: 0; color: var(--text-3); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line-card); padding-top: 16px; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-family: var(--mono); font-weight: 700; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }

/* ---------- Why ---------- */
.why { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line-card); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- News ---------- */
.news { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.news-grid .card { gap: 10px; }
.news-grid h3 { font-size: 20px; }
.news-kicker { font-family: var(--mono); font-size: 12px; color: var(--gold); }

/* ---------- Studio ---------- */
.studio { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.studio-head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.studio-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; color: var(--text-3); }
.studio-copy p { margin: 0; }
.studio-copy .motto { color: var(--text); font-weight: 600; }

/* ---------- Partners ---------- */
.partners { padding-bottom: 96px; }
.partners-box { background: var(--card); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; }
.partners-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.partners-intro h2 { font-size: clamp(28px, 3.2vw, 40px); }
.partners-intro p { margin: 0; color: var(--text-3); }
.partners-intro .partners-mail { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.partner-form { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.field-wide, .partner-form .full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line-input); border-radius: 10px; padding: 13px 14px; color: var(--text); font-size: 16px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-submit { background: var(--gold); color: var(--on-gold); border: 0; border-radius: 12px; padding: 16px; font-weight: 700; font-size: 16px; cursor: pointer; }
.form-submit:hover { background: var(--gold-hover); }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-error { margin: 0; color: #F28B82; font-size: 15px; }
.hp { display: none; }
.form-thanks { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8px 0; }
.form-thanks h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--gold); }
.form-thanks p { margin: 0; color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { display: block; height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.age { border: 1.5px solid var(--muted); border-radius: 999px; padding: 2px 9px; font-weight: 700; color: var(--text); }

/* ---------- Simple text pages (privacy, terms, responsible gaming, 404) ---------- */
.page { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.page h1 { margin: 10px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -1px; }
.page h2 { margin: 40px 0 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.page p, .page li { color: var(--text-3); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0; }
.help-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.help-list li { background: var(--card); border: 1px solid var(--line-card); border-radius: 12px; padding: 16px 18px; margin: 0; }
.help-list strong { color: var(--text); display: block; }
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.not-found .code { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 16vw, 160px); line-height: 1; color: var(--gold); letter-spacing: -4px; }
.not-found p { margin: 0; color: var(--text-3); max-width: 520px; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }
  .menu-open .menu-toggle .bars { background: transparent; }
  .menu-open .menu-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav-links { display: none; }
  .js .menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    flex-basis: 100%; padding: 8px 0 6px; font-size: 17px;
  }
  .js .menu-open .nav-links a { padding: 12px 4px; min-height: 48px; border-bottom: 1px solid var(--line); }
  .js .menu-open .nav-links a.nav-cta { margin-top: 12px; text-align: center; padding: 14px 20px; border-bottom: 0; }
}

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .logo-img { height: 32px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-copy, .hero-art { flex-basis: 100%; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .vault-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .vault-badge-value { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 14px; }
  .games { padding-top: 64px; }
  .game-body { padding: 22px; }
  .game-card h3 { font-size: 24px; }
  .game-actions .btn { flex: 1 1 auto; }
  .specs { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; }
  .specs dd { font-size: 14px; }
  .why { padding-top: 56px; padding-bottom: 56px; }
  .news { padding-top: 64px; padding-bottom: 64px; }
  .studio { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  .studio-head, .studio-copy { flex-basis: 100%; }
  .partners { padding-bottom: 64px; }
  .partners-box { padding: 24px 18px; gap: 32px; border-radius: 20px; }
  .partners-intro, .partner-form, .form-thanks { flex-basis: 100%; }
  .footer-links { gap: 14px 18px; }
  .footer-links a { padding: 8px 0; }
  .page { padding-top: 48px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
