/* Forge Cart website. Colours: the game's Palette (app/.../ui/theme/Theme.kt) for ink and paper, and the store
   screenshots' bright panel colours (tools/store/frame_screenshots.py) for the sections. Fonts are the game's own. */

@font-face { font-family: "Shantell Sans"; src: url("fonts/shantell-sans.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/andika-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/andika-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #3C2E2E;
  --ink-soft: #6B5A55;
  --paper: #FBEFDF;
  --cream: #FFF9EF;
  --brick: #984233;
  --chestnut: #A45D41;
  --gilt: #E2A93B;
  --line: #EAD9C2;
  --sky: #3FA2DB;   --sky-soft: #DDF0FB;   --sky-deep: #1F6E9E;
  --orange: #F28C28; --orange-soft: #FFE9D2; --orange-deep: #A8540C;
  --red: #DE4B3E;   --red-soft: #FCE1DD;   --red-deep: #9C2A20;
  --purple: #8A5CC6; --purple-soft: #ECE2F8; --purple-deep: #5B3592;
  --green: #5BAA3A; --green-soft: #E2F2D8;  --green-deep: #3A7422;
  --teal: #1FA88A;  --teal-soft: #D6F2EA;   --teal-deep: #11705B;
  --blue: #3C86D8;  --yellow: #EFA91B;      --yellow-soft: #FDF0CF;
  --radius: 28px;
  --shadow: 0 14px 34px -14px rgba(60, 30, 20, .45);
  --display: "Shantell Sans", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  --body: "Andika", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--brick); text-underline-offset: 3px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.3rem var(--display); white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--paper); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; background: #fff; }
.langs summary::-webkit-details-marker { display: none; }
.langs .chev { width: 1em; height: 1em; transition: transform .2s; }
.langs[open] .chev { transform: rotate(180deg); }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 190px; }
.langs li a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current] { background: var(--sky-soft); }
.langs .code { display: inline-block; min-width: 2.2em; font-size: .8rem; color: var(--ink-soft); }
.get { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.get:hover { background: var(--brick); }
.nav + .langs { margin-left: 0; }
@media (max-width: 1100px) { .nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .brand span { display: none; } .get { padding: 8px 14px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: linear-gradient(180deg, #A9DBF6 0%, #CFEAF8 38%, #F4EDDC 78%, #F1E7D3 100%); text-align: center; padding-top: 28px; overflow: hidden; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.logo { margin: 0 0 6px; }
.logo img { width: min(560px, 92vw); filter: drop-shadow(0 8px 14px rgba(60, 30, 20, .25)); }
.eyebrow { display: inline-block; margin: 6px 0 14px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--sky-deep); font-weight: 700; font-size: .9rem; box-shadow: 0 3px 0 rgba(31, 110, 158, .15); }
.hero-h { font: 800 clamp(1.9rem, 1.2rem + 3vw, 3.2rem)/1.1 var(--display); color: var(--ink); margin: 0 0 .4em; max-width: 18ch; }
.lead { max-width: 640px; font-size: 1.12rem; color: #4A3A37; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin: 8px 0 12px; }
.play { display: inline-block; border-radius: 12px; transition: transform .15s; }
.play:hover { transform: translateY(-2px); }
.play img { height: 64px; width: auto; }
.play.big img { height: 72px; }
.free { font-size: .98rem; margin: 0 0 8px; max-width: 560px; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 8px; font-weight: 700; font-size: .95rem; color: var(--green-deep); }
.ticks li, .checks li { display: flex; align-items: center; gap: 6px; }
.scene { position: relative; z-index: 1; width: 100%; max-width: none; margin-top: -40px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.cloud { position: absolute; z-index: 1; opacity: .95; pointer-events: none; width: 260px; }
.cl1 { top: 70px; left: -40px; animation: drift 60s linear infinite alternate; }
.cl2 { top: 210px; right: -60px; width: 220px; animation: drift 75s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(90px); } }
@media (max-width: 720px) { .cloud { width: 150px; } .cl2 { top: 300px; width: 130px; } .scene { margin-top: -10px; } }

/* ---------------------------------------------------------------- steps */
.steps-sec { padding: 56px 0 24px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 24px 18px; border: 2px solid var(--line); position: relative; }
.step .num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; font: 800 1.5rem var(--display); margin-bottom: 12px; border: 4px solid #fff; box-shadow: 0 0 0 2px currentColor; }
.s1 .num { background: var(--sky); color: var(--sky); } .s1 .num { color: #fff; box-shadow: 0 0 0 2px var(--sky); }
.s2 .num { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.s3 .num { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- feature panels */
.feature { padding: 22px 0; scroll-margin-top: 70px; }
.feat-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; background: var(--soft); border-radius: 40px; padding: 52px 52px; position: relative; }
.flip .feat-in { grid-template-columns: 1.25fr 1fr; }
.flip .text { order: 2; }
.feature h2 { color: var(--deep); }
.pill { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: var(--main); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.orange { --soft: var(--orange-soft); --main: var(--orange); --deep: var(--orange-deep); }
.red    { --soft: var(--red-soft);    --main: var(--red);    --deep: var(--red-deep); }
.purple { --soft: var(--purple-soft); --main: var(--purple); --deep: var(--purple-deep); }
.green  { --soft: var(--green-soft);  --main: var(--green);  --deep: var(--green-deep); }
.teal   { --soft: var(--teal-soft);   --main: var(--teal);   --deep: var(--teal-deep); }
.media { position: relative; padding-bottom: 40px; }
.frame, .cell { background: #fff; padding: 8px; border-radius: 24px; box-shadow: var(--shadow); }
.frame img, .cell img { border-radius: 17px; width: 100%; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cell { position: relative; margin: 0; padding: 6px; border-radius: 18px; }
.cell img { border-radius: 13px; }
.cell .num { position: absolute; left: -8px; top: -10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--main); color: #fff; font: 800 1.2rem var(--display); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.sticker { position: absolute; bottom: -24px; width: 34%; max-width: 230px; filter: drop-shadow(0 10px 12px rgba(60, 30, 20, .3)); pointer-events: none; z-index: 3; }
.st-right { right: -34px; }
.st-left { left: -34px; }
.mirror { transform: scaleX(-1); }
.orange .media { padding-bottom: 56px; }
.orange .sticker { width: 25%; right: -62px; bottom: -40px; }
.stations { padding-left: 1.3em; margin: 0 0 1em; }
.stations li { margin-bottom: .35em; }
.stations li::marker { font: 800 1em var(--display); color: var(--main); }
.stations strong { color: var(--deep); }
.small { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; }
.checks .ic { color: #fff; background: var(--main); border-radius: 50%; padding: 4px; width: 1.6em; height: 1.6em; }
.note { font-weight: 700; color: var(--deep); background: #fff; display: inline-block; padding: 8px 16px; border-radius: 14px; margin: 0; }
.regions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.regions li { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; }
.r1 { background: #C4A11C; } .r2 { background: #D2552F; } .r3 { background: #4F8FC0; } .r4 { background: #4C8A3C; }
.r5 { background: #2F9AB0; } .r6 { background: #7B5476; } .r7 { background: #3F9E92; }
@media (max-width: 860px) {
  .feat-in, .flip .feat-in { grid-template-columns: 1fr; gap: 26px; padding: 34px 22px 30px; border-radius: 30px; }
  .flip .text { order: 0; }
  .sticker { width: 30%; bottom: -18px; }
  .st-right { right: -10px; } .st-left { left: -10px; }
  .orange .sticker { width: 26%; right: -14px; bottom: -30px; }
  .media { padding-bottom: 24px; }
}

/* ---------------------------------------------------------------- more cards */
.more-sec { padding: 60px 0 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.card { background: #fff; border-radius: var(--radius); padding: 10px 10px 18px; border: 2px solid var(--line); }
.card img { border-radius: 20px; margin-bottom: 16px; }
.card h3, .card p { padding: 0 12px; }
.card p { margin: 0; color: var(--ink-soft); }
.c1 h3 { color: var(--blue); } .c2 h3 { color: #B57A07; } .c3 h3 { color: var(--purple-deep); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- parents */
.parents { padding: 64px 0; background: var(--paper); margin-top: 40px; scroll-margin-top: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parents-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.parents-head .pill { background: var(--ink); }
.trust { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust li { background: #fff; border-radius: 22px; padding: 22px 20px; border: 2px solid var(--line); }
.trust h3 { font-size: 1.08rem; margin: 12px 0 6px; }
.trust p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.tic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; }
.tic .ic { width: 28px; height: 28px; }
.t-noads .tic { background: var(--red); } .t-coin .tic { background: var(--yellow); } .t-clock .tic { background: var(--sky); }
.t-shield .tic { background: var(--green); } .t-chat .tic { background: var(--purple); } .t-lock .tic { background: var(--ink); }
.t-smile .tic { background: var(--orange); } .t-book .tic { background: var(--teal); }
.text-link { font-weight: 700; }
@media (max-width: 1000px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: 64px 0 30px; scroll-margin-top: 50px; }
.faq h2 { margin-bottom: 28px; }
.q { background: #fff; border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; min-height: 56px; font-weight: 700; }
.q summary::-webkit-details-marker { display: none; }
.q .chev { transition: transform .2s; color: var(--brick); }
.q[open] .chev { transform: rotate(180deg); }
.q .a { padding: 0 20px 6px; color: #4A3A37; }

/* ---------------------------------------------------------------- final call */
.final { padding: 40px 0 70px; scroll-margin-top: 70px; }
.final-card { position: relative; text-align: center; background: var(--sky) radial-gradient(circle at 20% 10%, rgba(255,255,255,.25), transparent 45%); border-radius: 40px; padding: 56px 24px 190px; overflow: hidden; color: #fff; }
.final-card h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); text-shadow: 0 3px 0 var(--sky-deep), 2px 0 0 var(--sky-deep), -2px 0 0 var(--sky-deep), 0 -2px 0 var(--sky-deep), 0 5px 10px rgba(0,0,0,.2); }
.final-card p { font-weight: 700; font-size: 1.15rem; }
.lineup { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: center; align-items: flex-end; gap: 0; pointer-events: none; }
.lineup .sticker { position: static; width: 150px; max-width: 22%; margin: 0 -8px; }
.lineup .l2 { width: 140px; } .lineup .l3 { width: 135px; }
@media (max-width: 560px) { .final-card { padding-bottom: 140px; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #EADBCB; padding: 40px 0 30px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.foot-langs a { display: inline-block; padding: 6px 2px; }
.tm { font-size: .8rem; opacity: .7; margin: 0; }

/* ---------------------------------------------------------------- privacy page */
.doc { padding: 40px 0 60px; }
.doc h1 { color: var(--brick); font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.doc h2 { color: var(--chestnut); font-size: 1.35rem; margin: 2rem 0 .5rem; }
.doc .meta { color: var(--ink-soft); }
.translation { background: var(--sky-soft); border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
.summary { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 16px 20px; margin-bottom: 1rem; }
.summary ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--chestnut); }
.doc code { background: var(--paper); padding: 1px 5px; border-radius: 4px; font-size: .88em; word-break: break-word; }

/* ---------------------------------------------------------------- 404 */
.nf main { padding: 60px 20px; }
.nf-hero { margin: 0 auto 10px; width: 200px; }
