/* The text pages (about, privacy, 404): the game's sticker look on a scrolling page. */
:root {
  --ink: #3d2838;
  --paper: #fffaf3;
  --red: #e8475a;
  --red-deep: #b8303f;
  --green: #2f9e63;
  --gold: #ffd34d;
  --pink: #ff8fb0;
  --sky: #b9b2f2;
  --mint: #cdeccf;
  --line: 3px solid var(--ink);
  --lift: 0 5px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  color: var(--ink);
  font: 600 17px/1.6 "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fbeef4; overflow-x: hidden; }
h1, h2, h3, .btn, .brand { font-family: "Baloo 2", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border: var(--line);
  border-radius: 18px; padding: 9px 18px; font-size: 17px; font-weight: 800; background: #fff; box-shadow: var(--lift);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out; white-space: nowrap;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--red); color: #fff; }
.btn.big { font-size: 22px; padding: 13px 26px; border-radius: 22px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter);
  background: rgba(255, 250, 243, 0.94); border-bottom: var(--line); backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--red); white-space: nowrap; }
.links { display: flex; gap: 18px; margin-left: auto; font-weight: 800; }
.links a { text-decoration: none; opacity: 0.75; }
.links a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-weight: 800; padding: 6px 10px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs > div {
  position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 190px; padding: 8px; background: var(--paper);
  border: var(--line); border-radius: 16px; box-shadow: var(--lift);
}
.langs > div a { padding: 6px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.langs > div a:hover, .langs > div a[aria-current] { background: var(--gold); }

/* Hero: the village's painted sky behind the headline and a big screenshot */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, rgba(60, 40, 120, 0.45), rgba(60, 40, 120, 0) 55%, rgba(251, 238, 244, 0.9) 100%), url(/art/backdrop.jpg) center 20% / cover;
  border-bottom: var(--line);
}
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); color: #fff; text-shadow: 0 5px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink); letter-spacing: -0.5px; }
.hero .lead {
  font-size: clamp(17px, 1.5vw, 20px); margin: 20px 0 22px; padding: 16px 20px; background: var(--paper); border: var(--line); border-radius: 22px;
  box-shadow: var(--lift); max-width: 560px;
}
.hero .note { display: inline-block; margin: 16px 0 0; padding: 4px 14px; border-radius: 999px; background: rgba(255, 250, 243, 0.9); border: 2.5px solid var(--ink); font-weight: 800; font-size: 14px; }
.hero-shot { margin: 0; transform: rotate(1.6deg); }
.hero-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); background: var(--sky); }

main section { padding: clamp(48px, 7vw, 96px) var(--gutter); }
main section > h2 { font-size: clamp(32px, 4.4vw, 56px); text-align: center; margin-bottom: 12px; }
main .sub { text-align: center; font-size: 19px; margin: 0 auto 36px; max-width: 640px; }

/* Three steps with real screenshots */
.steps ol { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); max-width: 1240px; }
.steps li { position: relative; background: var(--paper); border: var(--line); border-radius: 26px; padding: 14px 14px 20px; box-shadow: var(--lift); }
.steps li:nth-child(2) { transform: translateY(18px); }
.steps .num {
  position: absolute; left: -12px; top: -16px; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); border: var(--line); font: 800 28px/1 "Baloo 2", sans-serif; box-shadow: 0 3px 0 var(--ink);
}
.steps h3 { font-size: 26px; margin: 16px 6px 6px; color: var(--red); }
.steps p { margin: 0 6px; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; border: var(--line); background: var(--sky); }
.steps li:nth-child(3) .shot img { object-position: center 30%; }
.shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* What you can do */
.features { background: #fff4d6; border-block: var(--line); }
.features ul { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; }
.features li { background: #fff; border: var(--line); border-radius: 22px; padding: 22px 22px 20px; box-shadow: var(--lift); }
.features li:nth-child(odd) { transform: rotate(-0.8deg); }
.features li:nth-child(even) { transform: rotate(0.7deg); }
.features i { font-style: normal; font-size: 44px; line-height: 1; display: block; margin-bottom: 10px; }
.features h3 { font-size: 24px; margin-bottom: 6px; }
.features p { margin: 0; }

/* Seasons: one card per festival */
.seasons ol { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; }
.seasons li { border: var(--line); border-radius: 26px; padding: 26px 24px; box-shadow: var(--lift); min-height: 230px; }
.seasons li small { display: inline-block; font-weight: 800; padding: 2px 12px; border-radius: 999px; background: var(--paper); border: 2.5px solid var(--ink); margin-bottom: 14px; }
.seasons h3 { font-size: 34px; margin-bottom: 8px; }
.seasons li p { margin: 0; }
.seasons .s0 { background: linear-gradient(160deg, #dfe7ff, #b9b2f2); }
.seasons .s1 { background: linear-gradient(160deg, #ffe2a8, #ff9b8a); }
.seasons .s2 { background: linear-gradient(160deg, #ffe0ee, #ffb3cf); }

/* Safety for children */
.safe { background: var(--mint); border-block: var(--line); }
.safe > div { max-width: 900px; margin: 0 auto; }
.safe h2 { font-size: clamp(32px, 4.4vw, 56px); text-align: center; margin-bottom: 12px; }
.safe ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.safe li { background: #fff; border: var(--line); border-radius: 20px; padding: 16px 18px 16px 56px; position: relative; box-shadow: var(--lift); }
.safe li::before { content: "✓"; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; border: 2.5px solid var(--ink); }

/* Questions */
.faq { max-width: 880px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: #fff; border: var(--line); border-radius: 18px; margin: 12px 0; box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 52px 14px 18px; font: 800 20px/1.25 "Baloo 2", sans-serif; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 28px; transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; }

.end {
  text-align: center; border-top: var(--line);
  background: linear-gradient(0deg, rgba(60, 40, 120, 0.5), rgba(60, 40, 120, 0.1)), url(/art/backdrop.jpg) center 30% / cover;
}
.end h2 { color: #fff; text-shadow: 0 5px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink); margin-bottom: 28px !important; }

/* Privacy and other documents */
.doc { padding: clamp(32px, 6vw, 72px) var(--gutter); }
.doc article { max-width: 760px; margin: 0 auto; background: var(--paper); border: var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--lift); }
.doc h1 { font-size: clamp(38px, 5vw, 56px); color: var(--red); }
.doc h2 { font-size: 28px; margin: 32px 0 8px; }
.doc .date { opacity: 0.7; font-weight: 800; margin-top: 6px; }
.doc li { margin: 6px 0; }
.lost article { text-align: center; }

.foot { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px var(--gutter) 48px; border-top: var(--line); background: var(--paper); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-weight: 800; }
.foot .foot-langs { font-weight: 700; opacity: 0.8; }
.foot a { text-underline-offset: 3px; }
.foot p { margin: 0; opacity: 0.7; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-shot { transform: rotate(1deg); }
  .steps ol, .features ul, .seasons ol { grid-template-columns: 1fr; }
  .steps li:nth-child(2) { transform: none; }
  .steps ol { gap: 30px; }
  .safe ul { grid-template-columns: 1fr; }
  .seasons li { min-height: 0; }
}
@media (max-width: 640px) {
  .bar { gap: 10px; }
  .links { display: none; }
  .langs { margin-left: auto; }
  .langs summary span { display: none; }
  .brand span { font-size: 19px; }
  .bar .btn { padding: 7px 12px; font-size: 15px; }
  .btn.big { font-size: 19px; padding: 12px 20px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
