/* Lake Games LLC — studio site stylesheet (self-contained, no frameworks) */
:root {
  --obsidian: #0B0D12;
  --obsidian-2: #111319;
  --obsidian-3: #171a22;
  --gold: #EDBC70;
  --gold-hi: #FFF4D2;
  --gold-mid: #C89643;
  --gold-lo: #7A5316;
  --line: #3a301e;
  --line-soft: #241f16;
  --ivory: #F4EEE2;
  --text: #D9D1BF;
  --muted: #A39B88;
  --radius: 16px;
  --max: 1120px;
  --font-display: "Righteous", "Arial Black", Impact, sans-serif;
  --font-body: "Fredoka", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--obsidian); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Typography */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .05em; color: var(--ivory); line-height: 1.15; }
.gold-text {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-mid) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.gold-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .34em; color: var(--muted); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: .5rem; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 22px; height: 2px; background: var(--gold); position: relative; transition: transform .2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
.site-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .92rem; letter-spacing: .04em; }
.site-nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  text-align: center; padding: 5rem 0 4rem;
  background: radial-gradient(ellipse 70% 60% at 50% 18%, rgba(237, 188, 112, .14), transparent 70%);
}
.showcase {
  width: min(320px, 78vw); margin: 0 auto; padding: 10px; border-radius: 26px;
  background: linear-gradient(145deg, #F3CE8A, #C89643 40%, #7A5316 70%, #E2B865);
  box-shadow: 0 0 60px rgba(237, 188, 112, .28), 0 30px 60px rgba(0, 0, 0, .6);
}
.showcase img { border-radius: 18px; border: 2px solid #0B0D12; width: 100%; aspect-ratio: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 2.25rem 0 .75rem; }
.hero .lede { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

.badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; min-width: 210px;
  border: 1px solid #5b4a2c; border-radius: 14px; background: linear-gradient(180deg, #1F2129, #08080A);
  color: var(--ivory); text-align: left; opacity: .8; cursor: default;
}
.store-badge svg { width: 26px; height: 26px; fill: var(--gold); flex: none; }
.store-badge small { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.store-badge strong { font-weight: 500; font-size: 1.05rem; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }

.card {
  background: linear-gradient(180deg, var(--obsidian-3), var(--obsidian-2));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card.gold-border { border: 1.5px solid var(--gold); box-shadow: 0 0 40px rgba(237, 188, 112, .08); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { padding: 1.75rem 1.4rem; text-align: center; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.feature .icon {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; border: 1px solid var(--gold-mid); background: radial-gradient(circle, #2a2418, #0B0D12);
}
.feature h3 { font-size: .95rem; letter-spacing: .1em; color: var(--gold); margin: 0 0 .5rem; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

.studio { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center; }
.studio-logo { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 25px 50px rgba(0, 0, 0, .55); }
.studio h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1rem; }
.studio p { color: var(--muted); margin: 0 0 1rem; }

.company { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.25rem 2.5rem; }
.company dt { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.company dd { margin: 0; color: var(--ivory); font-size: 1.02rem; }
.company address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 2rem 0; font-size: .88rem; color: #7d7663; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Legal pages */
.legal-hero { padding: 3.5rem 0 1.5rem; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 .5rem; }
.legal-hero .meta { color: var(--muted); font-size: .92rem; margin: 0; }
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; padding: 2rem 0 5rem; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .88rem; border-left: 1px solid var(--line); padding-left: 1.1rem; }
.toc summary { font-family: var(--font-display); letter-spacing: .12em; color: var(--gold); cursor: pointer; list-style: none; margin-bottom: .75rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.toc li { margin: .35rem 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.legal article { max-width: 760px; min-width: 0; }
.legal article h2 { font-size: 1.25rem; color: var(--gold); margin: 2.75rem 0 .9rem; scroll-margin-top: 96px; }
.legal article h2:first-child { margin-top: 0; }
.legal article h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; color: var(--ivory); margin: 1.5rem 0 .5rem; }
.legal article p, .legal article li { color: var(--text); font-size: 1rem; }
.legal article ul { padding-left: 1.25rem; }
.legal article li { margin: .35rem 0; }
.legal strong { color: var(--ivory); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal th, .legal td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.legal th { background: var(--obsidian-3); color: var(--gold); font-weight: 500; letter-spacing: .04em; }
.legal tr:last-child td { border-bottom: 0; }
.callout { padding: 1.5rem 1.6rem; margin: 1.5rem 0; }
.callout h3 { margin-top: 0 !important; color: var(--gold) !important; font-family: var(--font-display) !important; letter-spacing: .08em !important; }
.callout ol { padding-left: 1.25rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); margin: 0; }
.btn {
  display: inline-block; margin-top: 1.5rem; padding: .8rem 1.8rem; border: 2px solid var(--gold); border-radius: 999px;
  font-family: var(--font-display); letter-spacing: .1em; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #1F2129, #08080A); box-shadow: 0 0 18px rgba(237, 188, 112, .3);
}

/* Responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .studio-logo { max-width: 300px; margin: 0 auto; }
  .company { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .legal { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; border-left: 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--obsidian-2); }
  .toc summary { margin-bottom: 0; }
  .toc[open] summary { margin-bottom: .75rem; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: rgba(11, 13, 18, .97);
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle:checked ~ .site-nav { max-height: 320px; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 3rem 0 3rem; }
  section { padding: 3.25rem 0; }
  .company { padding: 1.75rem 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .store-badge { min-width: 0; width: 100%; max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
