/* ==========================================================================
   elk-studios.games — shared stylesheet
   System-font, no framework, mobile-first.
   ========================================================================== */

:root {
  --blue: #2b9cff;
  --blue-dark: #0f78e0;
  --blue-deep: #0a5cb8;
  --navy-950: #060c16;
  --navy-900: #0a1424;
  --navy-800: #101d33;
  --navy-700: #16273f;
  --navy-600: #1e3352;
  --line: #223250;
  --ink: #eef4fc;
  --ink-dim: #a9bad4;
  --ink-mute: #7e91b0;
  --paper: #f6f8fc;
  --paper-card: #ffffff;
  --text-dark: #101828;
  --text-dark-dim: #4a5568;
  --amber: #ffb020;
  --amber-dark: #e59a0c;
  --green: #33d17a;
  --red: #ff6b6b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow: 0 12px 30px -14px rgba(6, 12, 22, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm); cursor: pointer; user-select: none;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cta, .js-cta {
  background: linear-gradient(180deg, var(--blue-dark), var(--blue-deep));
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 22, 55, 0.45);
  box-shadow: 0 10px 24px -8px rgba(10, 92, 184, 0.55);
}
.btn-cta:hover, .js-cta:hover { box-shadow: 0 14px 28px -8px rgba(10, 92, 184, 0.75); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-ghost-light {
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid var(--line);
}
.btn-ghost-light:hover { background: var(--paper); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 36, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-name { color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-dim); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; color: var(--ink-dim); font: inherit; font-weight: 600; font-size: 0.94rem;
}
.nav-dropdown > button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.nav-dropdown .caret { border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); margin-top: -3px; }
.flag-icon {
  width: 18px; height: 13px; object-fit: cover; border-radius: 2px;
  display: inline-block; vertical-align: -1px; margin-right: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.nav-dropdown-panel a { display: flex; align-items: center; }
.mobile-nav a.lang-link { display: flex; align-items: center; }
.lang-btn-flag { width: 16px; height: 12px; object-fit: cover; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-panel a { padding: 9px 12px; font-size: 0.92rem; border-radius: 6px; }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle::before { transform: translateY(-6px); position: absolute; }
.nav-toggle::after { transform: translateY(6px); position: absolute; }
.mobile-nav {
  display: none; position: fixed; inset: 68px 0 0 0; background: var(--navy-900); z-index: 49;
  overflow-y: auto; padding: 10px 20px 40px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav .btn { margin-top: 18px; }
.mobile-nav a.lang-link { font-weight: 500; font-size: 0.92rem; padding: 10px 4px; }
.mobile-nav a.lang-link:first-of-type { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; }

@media (min-width: 960px) {
  .main-nav { display: block; margin-left: 8px; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(43, 156, 255, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.55), rgba(8, 16, 30, 0.62)),
    var(--hero-bg, var(--navy-950)) center / cover no-repeat;
  color: var(--ink);
  padding: 56px 0 60px;
  text-align: center;
}
.hero .container { max-width: 780px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); margin-bottom: 0.45em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-dim); margin-bottom: 1.6em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .stat-chip {
  display: inline-flex; gap: 6px; align-items: baseline; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem;
  color: var(--ink-dim); margin: 0 4px 10px;
}
.hero .stat-chip b { color: var(--ink); font-size: 0.95rem; }
.hero .updated { color: var(--ink-mute); font-size: 0.82rem; margin-top: 14px; }

/* ---------- Sections ---------- */
section.block { padding: 46px 0; }
section.block.alt { background: #eef2f9; }
.block h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.6em; }
.block h2 .kw { color: var(--blue-deep); }
.section-intro { color: var(--text-dark-dim); max-width: 68ch; margin-bottom: 1.4em; }

/* ---------- TOC ---------- */
.toc {
  margin: 0 auto 0;
  max-width: var(--maxw);
  padding: 16px 20px 20px;
  background: var(--paper);
}
.toc details {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.toc summary {
  cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex;
  align-items: center; justify-content: space-between; color: var(--text-dark);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "+"; font-size: 1.3rem; color: var(--blue-deep); font-weight: 400; line-height: 1;
}
.toc details[open] summary::after { content: "−"; }
.toc ol { margin: 0 0 12px; padding-left: 1.2em; columns: 1; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--blue-deep); font-size: 0.95rem; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper-card); }
table.data-table { min-width: 480px; }
table.data-table th, table.data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.data-table img.sym-icon { width: 60px; height: 60px; object-fit: contain; display: block; }
table.data-table td.sym-cell { width: 80px; padding-right: 4px; }

/* ---------- Contextual info images (screenshots dropped after section text) ---------- */
.info-figure { margin: 26px auto 8px; max-width: 640px; text-align: center; }
.info-figure img {
  width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.info-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-dark-dim); }
section.block.alt .info-figure figcaption { color: var(--ink-mute); }
table.data-table th { background: var(--navy-900); color: var(--ink); font-weight: 700; white-space: nowrap; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td:first-child { font-weight: 700; color: var(--text-dark); }
table.data-table tbody tr:nth-child(even) { background: #fbfcfe; }
table.compare-table th:first-child, table.compare-table td:first-child { position: sticky; left: 0; background: var(--paper-card); }
table.compare-table th:first-child { color: var(--text-dark); }
table.compare-table th { white-space: nowrap; }

/* ---------- Pros / Cons ---------- */
.pros-cons { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pc-card { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); background: var(--paper-card); }
.pc-card h3 { font-size: 1.05rem; margin-bottom: 0.7em; display: flex; align-items: center; gap: 8px; }
.pc-card.pros { border-top: 3px solid var(--green); }
.pc-card.cons { border-top: 3px solid var(--red); }
.pc-card ul { list-style: none; padding: 0; margin: 0; }
.pc-card li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.96rem; }
.pc-card.pros li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pc-card.cons li::before { content: "–"; color: var(--red); font-weight: 800; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }

/* ---------- Feature symbol / card grids ---------- */
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.symbol-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; text-align: center;
}
.symbol-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.symbol-card h3 { font-size: 0.92rem; margin-bottom: 4px; }
.symbol-card p { font-size: 0.82rem; color: var(--text-dark-dim); margin: 0; }

.bird-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bird-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.bird-card img { width: 100%; max-width: 140px; height: auto; margin: 0 auto 10px; }
.bird-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.bird-card p { font-size: 0.85rem; color: var(--text-dark-dim); margin: 0; }
@media (min-width: 640px) { .bird-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Game tile grid (cross-links) ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 20, 36, 0.35), rgba(10, 20, 36, 0.65)),
    url('/assets/img/hub/elk-studios-tile-background.webp') center / cover no-repeat,
    var(--navy-800);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.tile-badge {
  position: absolute; top: -10px; right: 14px; z-index: 1;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #241300; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 6px 14px -4px rgba(255, 176, 32, 0.65); transform: rotate(4deg);
  border: 2px solid var(--navy-800);
}
.tile img { width: 140px; height: auto; }
.tile h3 { color: var(--ink); font-size: 1.02rem; margin: 0; }
.tile .tile-tag { color: var(--ink-mute); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tile .tile-btns { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.tile .tile-btns .btn { flex: 1; padding: 10px 8px; font-size: 0.86rem; }
@media (min-width: 620px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Demo frame ---------- */
.demo-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--navy-950) center / cover no-repeat; display: flex;
  align-items: center; justify-content: center; border: 1px solid var(--line);
}
.demo-frame::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% 40%, rgba(43, 156, 255, 0.25), rgba(6, 12, 22, 0.85));
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-play {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  padding: 14px 24px; border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(4px);
}
.demo-play:hover { background: rgba(255, 255, 255, 0.18); }
.demo-note { text-align: center; font-size: 0.82rem; color: var(--ink-mute); margin-top: 10px; }
/* Demo stays 16:9 on all screen sizes, including phones. */

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.4em; }
.faq-item p { color: var(--text-dark-dim); margin: 0; }

/* ---------- Our take / callout ---------- */
.callout {
  background: var(--paper-card); border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 0 0 1.4em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--navy-950));
  color: var(--ink); text-align: center; padding: 46px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-dim); margin-bottom: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--ink-dim); padding: 42px 0 26px; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 26px; }
.footer-col h3 { color: var(--ink); font-size: 0.92rem; margin-bottom: 0.8em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-dim); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-brand img { height: 30px; margin-bottom: 10px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; font-size: 0.8rem; color: var(--ink-mute); }
.footer-legal p { margin-bottom: 0.8em; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.form-row input, .form-row textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper-card); color: var(--text-dark); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
