/* Twinsprig — same "garden" palette as the game (Theme.cs, Night).
   Fonts are self-hosted (SIL OFL 1.1) so no visitor IP is sent to a third party,
   matching what the privacy policy promises. */
@font-face { font-family: "Noto Serif"; font-weight: 400; font-display: swap; src: url(/fonts/noto-serif-400.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-400.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-600.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-700.woff2) format("woff2"); }

:root {
  --ground: #14251E; --surface: #20372C; --surface2: #294336; --line: #405744;
  --vine: #819D4D; --leaf: #D5DF9A; --glow: #BDCF96; --gold: #E7C76E; --on-gold: #18281F;
  --ink: #F3F0DC; --body: #DCE3D0; --muted: #B6C6AF;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px; --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--body); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 9; }
.skip:focus { left: 12px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(28px, 4.2vw, 40px); margin: 0 0 14px; }
h3 { font: 700 19px/1.35 var(--sans); margin: 0 0 6px; }
strong { color: var(--ink); font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 20px var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.lang-switch a[aria-current="true"] { color: var(--ink); border-color: var(--line); background: rgba(20,37,30,.55); }

/* Hero: the game's own painted woodland */
.hero { position: relative; overflow: hidden; padding: 120px 0 72px;
  background: linear-gradient(180deg, rgba(20,37,30,.35) 0%, rgba(20,37,30,.7) 55%, var(--ground) 100%), url(/img/woodland.webp) center 30% / cover no-repeat; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { font-size: clamp(52px, 9vw, 92px); margin: 0 0 6px; letter-spacing: .01em; }
.hero .lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--ink); margin: 0 0 26px; max-width: 30ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; }
.pill.gold { background: linear-gradient(180deg, #F0D88E, var(--gold)); color: var(--on-gold); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.pill.ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(20,37,30,.5); }
.pill.gold:hover { color: var(--on-gold); filter: brightness(1.05); }
.phone { justify-self: center; width: min(320px, 78vw); border-radius: 34px; padding: 9px; background: #0B1612;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(213,223,154,.12); }
.phone img { border-radius: 26px; aspect-ratio: 9 / 16; object-fit: cover; }

/* Sections */
section { padding: 64px 0; }
.intro { max-width: 760px; }
.intro p { font-size: 19px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .flower { width: 46px; height: 46px; margin-bottom: 10px; object-fit: contain; }
.card p { margin: 0; color: var(--body); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.shots figure { margin: 0; }
.shots img { border-radius: 20px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; background: var(--surface); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.fair { background: var(--surface); border-block: 1px solid var(--line); }
.fair ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.fair li { position: relative; padding-left: 30px; }
.fair li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--vine); box-shadow: 0 0 0 4px rgba(129,157,77,.22); }

/* Text pages (privacy, data deletion) */
.doc { padding: 112px 0 40px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(34px, 6vw, 50px); margin: 0 0 8px; }
.doc h2 { font-size: 28px; margin: 48px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 26px; color: var(--glow); }
.meta { color: var(--muted); margin: 0 0 22px; }
.note { border-color: var(--gold); background: #24331F; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 12px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 15px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.mail { font-weight: 700; color: var(--gold); word-break: break-all; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .rules { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .fair ul { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { body { font-size: 16px; } section { padding: 48px 0; } .shots { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.badge img { display: block; height: 75px; width: auto; margin: -8px -10px; }
