/* Public game site (studio template, games/_template/site/). Edit the tokens below per game; keep the structure so the
   legal pages stay readable. Font self-hosted (fonts/OFL.txt): the site makes no third-party requests. */
@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka-latin.woff2?v=99d6c78e04) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f3eefb;        /* page background */
  --dark: #241543;      /* header, hero fallback, footer */
  --accent: #e7b866;    /* brand color: buttons, links on dark */
  --tile: #ffffff;
  --ink: #241543;
  --ink-soft: #55607a;
  --link: #6a3fb5;
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.bar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.bar.solid { position: relative; background: var(--dark); }
.brand {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .28); color: #fff; font-weight: 600; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav a { color: #fff; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; text-align: center; padding-bottom: 40px; }
.hero .key { width: 100%; height: min(62vw, 420px); object-fit: cover; }
.intro { margin-top: -64px; position: relative; text-align: center; }
.intro .icon { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.intro h1 { font-size: clamp(38px, 9vw, 64px); font-weight: 700; }
.lead { font-size: 19px; max-width: 34ch; margin: 0 auto 22px; opacity: .92; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 9px 18px 9px 14px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .5);
}
.badge svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.badge span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.badge small { font-size: 11px; letter-spacing: .02em; }
.badge b { font-size: 20px; font-weight: 600; }
.badge.soon { opacity: .6; cursor: default; }
.soon { font-size: 14px; opacity: .8; margin: 14px 0 0; }

/* ---------- sections ---------- */
section h2 { font-size: clamp(28px, 6vw, 40px); text-align: center; padding-top: 44px; }
.tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--tile); border-radius: 22px; padding: 20px; box-shadow: 0 6px 0 rgba(36, 50, 74, .08); }
.tile h3 { font-size: 21px; }
.tile p { margin: 0; color: var(--ink-soft); }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; justify-content: safe center; }
.phone { margin: 0; flex: none; width: 200px; scroll-snap-align: center; text-align: center; }
.frame { aspect-ratio: 430 / 932; border-radius: 28px; overflow: hidden; border: 6px solid var(--dark); background: var(--dark); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { font-weight: 600; margin-top: 8px; }
.support-sec { padding-bottom: 56px; }
.note {
  max-width: 560px; margin: 0 auto; background: #fffbe8; border-radius: 6px 6px 22px 6px; padding: 26px 22px;
  box-shadow: 0 12px 28px rgba(36, 50, 74, .14); transform: rotate(-.6deg); text-align: center;
}
.note h2 { padding-top: 0; }
.mail {
  display: inline-block; margin: 6px 0 12px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none; word-break: break-all;
}
.notfound { margin-top: 0; padding: 70px 16px; }

/* ---------- legal pages ---------- */
.legal-head { background: var(--dark); color: #fff; text-align: center; padding: 26px 16px 34px; }
.legal-head h1 { font-size: clamp(32px, 8vw, 46px); }
.legal-head p { margin: 0; opacity: .8; }
.legal { max-width: 760px; margin: 0 auto; padding: 26px 16px 50px; counter-reset: sec; }
.legal h2 { font-size: 23px; margin-top: 1.6em; counter-increment: sec; }
.legal h2::before { content: counter(sec) ". "; }
.legal .box { background: var(--tile); border-radius: 18px; padding: 4px 18px; }
.legal .toc { padding-left: 1.4em; }
.legal li { margin: .3em 0; }
.legal a { word-break: break-word; }

/* ---------- footer ---------- */
footer { background: var(--dark); color: #fff; text-align: center; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 15px; }
footer .studio { font-weight: 700; font-size: 20px; margin: 0 0 10px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
footer a { color: #fff; }
footer p { margin: 6px 0; opacity: .85; }
