:root {
  --bg: #fbf8f3;
  --bg-2: #f3eee6;
  --card: #ffffff;
  --text: #1e1a33;
  --muted: #5d5874;
  --line: #e4ddd1;
  --accent: #c8642f;
  --accent-2: #b8862a;
  --thread-a: #f08a6c;
  --thread-b: #e9a93f;
  --chip: #efe8dc;
  --shadow: 0 18px 40px -22px rgba(30, 26, 51, .35);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14112a;
    --bg-2: #1b1636;
    --card: #221c44;
    --text: #efedfb;
    --muted: #aaa4cf;
    --line: #2f2860;
    --accent: #fac775;
    --accent-2: #f08a6c;
    --thread-a: #f08a6c;
    --thread-b: #fac775;
    --chip: #2b2455;
    --shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14112a; --bg-2: #1b1636; --card: #221c44; --text: #efedfb; --muted: #aaa4cf;
  --line: #2f2860; --accent: #fac775; --accent-2: #f08a6c; --thread-a: #f08a6c; --thread-b: #fac775;
  --chip: #2b2455; --shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Fredoka", "Inter", system-ui, sans-serif; letter-spacing: -.01em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav a.opt { display: none; } .brand span { font-size: 17px; } }

/* hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero .thread { position: absolute; inset: auto -5% -10px -5%; width: 110%; height: 260px; pointer-events: none; opacity: .9; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 0 0 20px; font-weight: 600; max-width: 13ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--thread-a), var(--thread-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid var(--line);
  color: var(--text); background: var(--card);
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn { transition: transform .15s ease; }

/* sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.section-title { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; font-weight: 600; line-height: 1.1; }
.lede { color: var(--muted); max-width: 56ch; margin: 0 0 48px; }

/* games */
.game {
  display: grid; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px; margin-bottom: 28px; box-shadow: var(--shadow); overflow: hidden;
}
@media (min-width: 880px) {
  .game { grid-template-columns: 1.1fr .9fr; padding: 48px; }
  .game:nth-of-type(even) .shots { order: -1; }
}
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-head img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); }
.game h3 { font-size: 32px; margin: 0; line-height: 1.1; font-weight: 600; }
.game .tag { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.game p.desc { margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.features li { padding-left: 26px; position: relative; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: var(--game, var(--accent)); opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.chip.soon { background: var(--game, var(--accent)); color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

.shots { display: flex; justify-content: center; align-items: flex-start; position: relative; padding: 8px 0 40px; }
/* Store screenshots already carry their own framing, so show them as clean rounded cards. */
.phone {
  width: 44%; max-width: 220px; height: auto; aspect-ratio: auto;
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 44px -20px rgba(20,16,40,.55);
}
.phone + .phone { margin-left: -6%; transform: translateY(32px) rotate(3deg); }
.phone:first-child { transform: rotate(-2deg); position: relative; z-index: 1; }

.trailer { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer[data-youtube=""] { display: none; }

.more {
  border: 2px dashed var(--line); border-radius: 28px; padding: 40px 28px; text-align: center; color: var(--muted);
}
.more strong { display: block; color: var(--text); font-family: "Fredoka", sans-serif; font-size: 24px; font-weight: 600; margin-bottom: 4px; }

/* about */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar .dot { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(135deg, var(--thread-a), var(--thread-b)); }

/* contact */
.contact-card {
  background: var(--text); color: var(--bg); border-radius: 28px; padding: 44px 28px;
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 760px) { .contact-card { grid-template-columns: 1fr auto; padding: 52px; } }
.contact-card h2 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.1; }
.contact-card p { margin: 0; opacity: .75; }
.contact-card .btn { background: var(--bg); color: var(--text); border-color: transparent; font-size: 17px; }
.mail { word-break: break-all; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* sub pages (support / privacy) */
.page { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; font-weight: 600; line-height: 1.1; }
.page h2 { font-size: 22px; margin: 36px 0 8px; font-weight: 600; }
.page .muted { color: var(--muted); }
.page .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-top: 12px; }
.page ul { padding-left: 22px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-head img { width: 64px; height: 64px; border-radius: 15px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
