/* Kentova site: the game's faces (Baloo 2 headings, Nunito text), meadow green and Otogar lavender. */
@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo2-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #F3F6EF; --surface: #FFFFFF; --ink: #1E2A21; --ink-soft: #5A6A5E; --line: #DCE4D6;
  --green: #2F7D4F; --green-soft: #E2F1E6; --lavender: #6656B8; --sky: #DCEEFB;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141A16; --surface: #1D251F; --ink: #E7EEE6; --ink-soft: #A3B2A6; --line: #2E3A31;
    --green: #6CC48F; --green-soft: #1F3326; --lavender: #A99CF0; --sky: #1C2B36; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.brand { font: 700 1.5rem/1 var(--display); color: var(--green); text-decoration: none; }
nav.links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; font-size: .95rem; }
nav.links a { color: var(--ink-soft); text-decoration: none; }
nav.links a[aria-current="page"], nav.links a:hover { color: var(--green); }
main { padding-block: 28px 48px; }
h1 { font: 700 2.2rem/1.15 var(--display); margin: 0 0 8px; text-wrap: balance; }
h2 { font: 700 1.4rem/1.25 var(--display); margin: 32px 0 6px; text-wrap: balance; }
h3 { font: 800 1.05rem/1.3 var(--body); margin: 20px 0 4px; }
p, li { max-width: 68ch; }
.meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 18px; }
a { color: var(--green); }
a:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; border-radius: 4px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.box.sky { background: var(--sky); border-color: transparent; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.hero { display: grid; gap: 14px; padding-block: 12px 4px; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 22px; }
.cards .box { margin: 0; }
.cards h3 { margin-top: 0; font: 700 1.15rem/1.2 var(--display); }
.cards p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
footer { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
footer .wrap { padding-block: 18px 28px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
pre.license { white-space: pre-wrap; font-size: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; }

/* ---------- Landing (index, en) ---------- */
:root { --sky-top: #BFDDF2; --sky-bottom: #EAF4E4; --gold: #F2CC5B; --gold-ink: #6B4E00; --coral: #E07A5F; --lav-soft: #EFE9FB; --hex-line: rgba(47,125,79,.07); }
@media (prefers-color-scheme: dark) {
  :root { --sky-top: #1B2B3A; --sky-bottom: #17221B; --gold: #F2CC5B; --gold-ink: #2A1F00; --coral: #F09A82; --lav-soft: #241F38; --hex-line: rgba(108,196,143,.08); }
}
body.landing { background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M28 64L0 80v32' fill='none' stroke='%232F7D4F' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E"); }
.landing header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.landing main { padding-block: 0; }
.band { padding-block: 56px; }
.band .wrap { display: grid; gap: 28px; }
.eyebrow { font: 800 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0; }
.section-title { font: 700 clamp(1.8rem, 4.5vw, 2.6rem)/1.1 var(--display); margin: 6px 0 0; text-wrap: balance; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin: 8px 0 0; max-width: 58ch; }

/* Hero */
.hero-band { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); padding-block: 40px 24px; }
.hero-band .wrap { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 860px) { .hero-band .wrap { grid-template-columns: 1fr 1.1fr; max-width: 1120px; } }
.hero-copy h1 { font: 700 clamp(2.4rem, 7vw, 3.8rem)/1.02 var(--display); margin: 0; color: var(--ink); letter-spacing: -.01em; }
.hero-copy h1 em { font-style: normal; color: var(--green); }
.hero-copy p { font-size: 1.15rem; color: var(--ink-soft); margin: 14px 0 0; max-width: 46ch; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 1rem/1 var(--body); padding: 14px 20px; border-radius: 18px; text-decoration: none; border: 0; }
.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 5px 0 #D2A93F; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn small { font-weight: 700; opacity: .75; }
.hero-art { position: relative; }
.hero-art img.island { width: 100%; height: auto; display: block; animation: bob 6s ease-in-out infinite; }
.cloud { position: absolute; width: 220px; max-width: 34%; height: auto; opacity: .95; pointer-events: none; z-index: 0; }
.cloud.c1 { top: 18px; right: -40px; animation: drift 40s linear infinite alternate; }
.cloud.c2 { bottom: 40px; left: -60px; width: 280px; animation: drift 52s linear infinite alternate-reverse; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translateX(-60px); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.hero-facts li { background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

/* How to play */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border-radius: 24px; padding: 14px 18px 20px; box-shadow: 0 6px 0 var(--line); display: grid; gap: 6px; align-content: start; }
.steps img { width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; object-fit: contain; justify-self: center; }
.steps h3 { margin: 0; font: 700 1.3rem/1.15 var(--display); display: flex; align-items: center; gap: 10px; }
.steps h3::before { counter-increment: step; content: counter(step); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: var(--surface); font: 700 1.05rem/1 var(--display); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 18px; }
.shots figure { margin: 0; scroll-snap-align: start; display: grid; gap: 10px; }
.phone { border-radius: 30px; padding: 8px; background: var(--ink); box-shadow: 0 10px 24px rgba(30,42,33,.18); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 22px; background: var(--sky); }
.shots figcaption { font-weight: 800; font-size: .95rem; text-align: center; }
.shots figcaption span { display: block; font-weight: 600; color: var(--ink-soft); font-size: .85rem; }

/* Otogar */
.otogar { background: var(--lav-soft); border-radius: 32px; padding: 28px 22px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .otogar { grid-template-columns: 1fr 1fr; padding: 36px; } }
.otogar img { width: 100%; height: auto; }
.otogar .eyebrow { color: var(--lavender); }
.otogar ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.promise li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.promise b { display: block; font: 700 1.1rem/1.2 var(--display); }
.promise span { color: var(--ink-soft); font-size: .95rem; }

.closing { text-align: center; justify-items: center; }
.closing .section-lead { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { .hero-art img.island, .cloud { animation: none; } }
.landing .wrap { max-width: 1120px; }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.band .wrap > *, .hero-band .wrap > *, .otogar > * { min-width: 0; }
@media (max-width: 520px) { nav.links { gap: 10px; font-size: .88rem; } .band { padding-block: 40px; } }
@media (max-width: 859px) { .cloud.c1 { display: none; } .cloud.c2 { bottom: 12px; width: 180px; } }
