/* Pelicook website. Plain CSS, mobile first, no JavaScript, no external requests.
   Palette and shapes follow the game: warm cream, teal frame, orange ribbon, chunky rims, raised buttons.
   Fonts (self-hosted, SIL OFL 1.1, licences in /fonts): Lilita One (display, original file) and Nunito (body, Latin subset). */

@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Variable-latin.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("/fonts/LilitaOne-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --cream: #FFF8EC;
  --sand: #FCE6C6;
  --sand-2: #F6D19E;
  --line: #E8D3B0;
  --ink: #3B2A2F;
  --ink-2: #5A4549;
  --rim: #5E2A10;
  --teal: #2EA393;
  --teal-d: #1F7A70;
  --teal-dd: #0E4F4A;
  --orange: #F27A1F;
  --orange-d: #B54F08;
  --pink-d: #A92C5F;
  --green-d: #2F7A14;
  --focus: #2B6CDE;
  --wrap: 1120px;
  --gutter: 16px;
  --display: "Lilita One", "Baloo 2", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dd); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- buttons (raised, like the game) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-align: center;
  font-family: var(--display); font-size: 1.2rem; line-height: 1.1; letter-spacing: .02em; text-decoration: none;
  color: #fff; padding: .72em 1.35em .66em; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#78D14A, #45A823 55%, #3A9A1B);
  border: 3px solid #1F4D0C; box-shadow: 0 5px 0 #2F7A14, 0 9px 14px rgba(94, 42, 16, .22);
  text-shadow: -1px 0 #1F4D0C, 1px 0 #1F4D0C, 0 -1px #1F4D0C, 0 1px #1F4D0C, 0 2px 0 #1F4D0C;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 7px 0 #2F7A14, 0 12px 16px rgba(94, 42, 16, .22); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #2F7A14, 0 3px 6px rgba(94, 42, 16, .2); }
.btn--cream {
  color: var(--ink); background: linear-gradient(#FFFFFF, #F5E3C4);
  border-color: #6B4A2A; box-shadow: 0 5px 0 #B39568, 0 9px 14px rgba(94, 42, 16, .18); text-shadow: none;
}
.btn--cream:hover { color: var(--ink); box-shadow: 0 7px 0 #B39568, 0 12px 16px rgba(94, 42, 16, .2); }
.btn--cream:active { box-shadow: 0 2px 0 #B39568, 0 3px 6px rgba(94, 42, 16, .18); }
.btn--sm { font-size: 1.02rem; padding: .55em 1.05em .5em; border-width: 2.5px; box-shadow: 0 3px 0 #2F7A14; }
.btn--sm:hover { box-shadow: 0 5px 0 #2F7A14; }
.btn--lg { font-size: 1.3rem; padding: .78em 1.5em .72em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 236, .95);
  -webkit-backdrop-filter: saturate(1.3) blur(8px); backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 3px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-block: 6px; }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langswitch {
  font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 6px 14px;
  border: 2.5px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap;
}
.langswitch:hover { border-color: var(--teal); color: var(--teal-dd); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; isolation: isolate;
  background: radial-gradient(ellipse 80% 90% at 50% 30%, #FFF5E3 0%, #FCE6C6 58%, #F6D19E 100%);
}
.rays {
  position: absolute; left: 50%; top: 28%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .38) 0deg 5deg, rgba(255, 255, 255, 0) 8deg 12deg, rgba(255, 255, 255, .38) 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, #000 15%, rgba(0, 0, 0, 0) 100%);
  animation: spin 140s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { padding-top: 30px; padding-bottom: 8px; position: relative; z-index: 2; }
.badge {
  display: inline-block; font-family: var(--display); font-size: .95rem; letter-spacing: .04em; color: #fff;
  background: var(--teal-d); padding: .2em .85em .28em; border-radius: 999px; box-shadow: 0 3px 0 var(--teal-dd);
}
.hero h1 { margin: 14px auto 0; line-height: 0; }
.hero-logo {
  width: min(500px, 82vw); height: auto; margin-inline: auto; aspect-ratio: 700 / 267;
  filter: drop-shadow(0 8px 12px rgba(94, 42, 16, .2)); animation: float 3.4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px) rotate(-.6deg); } }
.lead { max-width: 36em; margin: 14px auto 0; font-size: 1.2rem; line-height: 1.5; font-weight: 700; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.hero-art { display: block; position: relative; margin-top: -6px; z-index: 1; }
.hero-art img {
  width: 100%; height: clamp(250px, 41vw, 640px); object-fit: cover; object-position: 36% 78%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
}

/* ---------- sections ---------- */
.sheet {
  position: relative; z-index: 3; margin-top: -34px; background: var(--cream);
  border-radius: 34px 34px 0 0; padding: 52px 0 40px;
}
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5.4vw, 2.7rem); line-height: 1.12; letter-spacing: .01em; color: var(--ink); text-align: center; }
h2::after { content: ""; display: block; width: 74px; height: 8px; margin: 10px auto 0; border-radius: 8px; background: linear-gradient(90deg, var(--orange) 0 50%, var(--teal) 50% 100%); }
.sub { max-width: 40em; margin: 14px auto 0; text-align: center; color: var(--ink-2); font-weight: 600; }

.tiles { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 30px; }
.tile {
  --tint: #FFEBD6; --accent: var(--orange-d); --edge: #F7C99A;
  background: #fff; border: 3px solid var(--edge); border-radius: 26px; padding: 20px 20px 24px; text-align: center;
  box-shadow: 0 6px 0 var(--edge);
}
.tile--cook { --tint: #FFEBD6; --accent: var(--orange-d); --edge: #F7C99A; }
.tile--decorate { --tint: #FFE4EE; --accent: var(--pink-d); --edge: #F4B6CC; }
.tile--staff { --tint: #DDF5F1; --accent: var(--teal-d); --edge: #A5DDD5; }
.tile--grow { --tint: #E6F6DB; --accent: var(--green-d); --edge: #B5E09B; }
.tile-ico { width: 92px; height: 92px; margin: 0 auto 10px; padding: 8px; border-radius: 50%; background: var(--tint); }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .01em; color: var(--accent); }
.tile p { margin-top: 6px; color: var(--ink-2); font-weight: 600; }

.more { margin-top: 30px; text-align: center; }
.more-label { font-weight: 800; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.chips li { padding: 5px 14px; font-weight: 800; font-size: .95rem; background: #fff; border: 2.5px solid var(--line); border-radius: 999px; }

/* ---------- screenshots ---------- */
.screens { padding: 36px 0 56px; background: linear-gradient(var(--cream), var(--sand) 160px, var(--sand)); }
.shots {
  display: flex; gap: 14px; margin: 26px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter) 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.shot { flex: 0 0 84%; scroll-snap-align: center; scroll-margin-inline: var(--gutter); }
.shot a { display: block; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 6px 0 rgba(94, 42, 16, .25); transition: transform .15s ease; }
.shot a:hover { transform: translateY(-3px) rotate(-.4deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot p { margin-top: 10px; text-align: center; font-weight: 800; font-size: .98rem; color: var(--ink); }
.hint { text-align: center; margin-top: 2px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }

/* lightbox: pure CSS (:target), no JavaScript. Clicking anywhere closes it. */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; background: rgba(36, 22, 18, .9); color: #fff; text-decoration: none; cursor: zoom-out; font-weight: 800; text-align: center;
}
.lightbox:target { display: flex; }
.lightbox img { max-width: min(1180px, 100%); max-height: 78vh; width: auto; height: auto; border: 4px solid #fff; border-radius: 18px; }

/* ---------- Peli band ---------- */
.band-wrap { padding-top: 0; padding-bottom: 0; }
.band {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; text-align: center;
  margin: 92px 0 0; padding: 24px 22px 28px; color: #fff; border-radius: 34px;
  background: linear-gradient(135deg, #1C8579, #146A60); border: 4px solid var(--teal-dd); box-shadow: 0 8px 0 var(--teal-dd);
}
.band-peli { width: 170px; height: auto; margin: -76px auto 0; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .22)); }
.band h2 { color: #fff; text-shadow: 0 3px 0 rgba(14, 79, 74, .9); }
.band h2::after { background: #FFC12E; }
.band-copy > p { max-width: 34em; margin: 14px auto 0; font-weight: 700; font-size: 1.1rem; }
.band .cta { margin-top: 20px; }
.band .band-q { margin-top: 16px; font-size: .98rem; }
.band a:not(.btn) { color: #fff; }

/* ---------- inner pages ---------- */
.page { padding: 38px 0 64px; }
.page-h { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.1; text-align: center; margin-bottom: 26px; }
.panel {
  display: grid; gap: 8px; align-items: center; text-align: center; padding: 24px 22px 30px;
  background: #fff; border: 4px solid var(--line); border-radius: 30px; box-shadow: 0 8px 0 var(--line);
}
.panel-peli { width: 190px; height: auto; margin: 0 auto; }
.panel-copy > * + * { margin-top: 14px; }
.panel h1, .panel h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.15; color: var(--ink); }
.panel h2::after { display: none; }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--teal-d); margin-top: 22px; }
.ticks { display: inline-block; text-align: left; }
.ticks li { position: relative; padding-left: 30px; margin-top: 6px; font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: #4DB327 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 0 2px #2F7A14;
}
.small { font-size: .98rem; color: var(--ink-2); font-weight: 600; }
.doc { background: #fff; border: 4px solid var(--line); border-radius: 26px; padding: 22px 22px 28px; }
.doc h2 { text-align: left; font-size: 1.6rem; margin-top: 1.4em; }
.doc h2::after { display: none; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: .8em; }
.doc ul { list-style: disc; padding-left: 1.4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #F3E6D2; padding: 30px 0 34px; }
.foot { display: grid; gap: 12px; text-align: center; }
.foot-copy { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 700; }
.site-footer a { color: #FFD98A; }
.site-footer a:hover { color: #fff; }
.foot-note { font-size: .9rem; color: #D6C5AE; font-weight: 600; }

/* ---------- larger screens ---------- */
@media (min-width: 620px) {
  :root { --gutter: 24px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 44px; }
  .band { grid-template-columns: 210px 1fr; text-align: left; gap: 22px; padding: 30px 40px 34px 28px; margin-top: 44px; }
  .band-peli { width: 230px; margin: -56px 0 -34px -8px; }
  .band h2 { text-align: left; }
  .band h2::after { margin-left: 0; }
  .band-copy > p { margin-left: 0; }
  .band .cta { justify-content: flex-start; }
  .panel { grid-template-columns: 220px 1fr; gap: 28px; text-align: left; padding: 30px 34px 36px; }
  .panel-peli { width: 220px; }
  .panel h1, .panel h2 { text-align: left; }
  .doc { padding: 32px 38px 40px; }
}
@media (min-width: 760px) {
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; overflow: visible; margin-inline: 0; padding: 6px 0 12px; }
  .shot { flex: none; }
  .hero-inner { padding-top: 46px; }
  .hero-art { margin-top: -10px; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .sheet { padding-top: 64px; margin-top: -44px; border-radius: 48px 48px 0 0; }
  .lead { font-size: 1.32rem; }
  .foot { grid-template-columns: auto 1fr auto; align-items: center; text-align: left; }
  .foot-links { justify-content: center; }
  .foot-note { text-align: right; }
}
@media (max-width: 390px) {
  .brand img { height: 34px; }
  .nav { gap: 7px; }
  .langswitch { padding: 5px 10px; font-size: .88rem; }
  .btn--lg { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays, .hero-logo { animation: none; }
  .btn, .shot a { transition: none; }
}
@media print { .site-header, .rays { display: none; } }

/* ---------- legal documents: tables, sub-lists, numbered lists ---------- */
.doc h3 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--teal-d); margin-top: 1.2em; }
.doc ol { list-style: decimal; padding-left: 1.6em; margin-top: .8em; }
.doc li + li { margin-top: .35em; }
.doc li > ul, .doc li > ol { margin-top: .35em; }
.doc a { color: var(--teal-d); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc code { font-size: .92em; background: #F6EBDD; padding: .05em .35em; border-radius: 6px; }
.tablewrap { margin-top: 1em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 2px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 400; color: var(--ink); background: #FFF4E2; }
@media (max-width: 760px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { border: 3px solid var(--line); border-radius: 16px; padding: 6px 12px; margin-top: 12px; }
  .doc td { border: 0; padding: 6px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 800; color: var(--teal-d); text-transform: uppercase; letter-spacing: .03em; }
}
