/* Sorted! website — palette and type match the game (Fredoka + Nunito, sky / leaf / gold). */
:root {
  --sky: #2f9fe0;
  --sky-light: #8ad6f7;
  --deep: #17532d;      /* outline green used on every logo-style heading */
  --leaf: #4cbb47;
  --leaf-dark: #2f8f3c;
  --gold: #ffd23f;
  --orange: #ee8a2a;
  --orange-dark: #b45d14;
  --paper: #fffaf0;
  --ink: #1d3526;
  --ink-soft: #4b5f52;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(10, 50, 80, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 Nunito, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo-style display type: white fill, thick green outline, like the in-game titles */
.display {
  font-family: Fredoka, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: #fff;
  -webkit-text-stroke: .16em var(--deep);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 rgba(10, 50, 30, .28);
  margin: 0;
}
.display--gold { color: var(--gold); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(23, 83, 45, .92); backdrop-filter: blur(8px); }
.bar__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  font: 700 1.25rem/1 Fredoka, sans-serif; }
.bar__brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.bar nav a { color: #d9f5c9; text-decoration: none; font-weight: 700; font-size: .95rem; }
.bar nav a:hover { color: #fff; }
.bar__get { background: var(--gold); color: var(--deep) !important; padding: 8px 16px; border-radius: 999px; }
@media (max-width: 720px) { .bar nav .bar__link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0;
  background:
    radial-gradient(ellipse 900px 700px at 72% 78%, rgba(255, 244, 190, .95), rgba(255, 220, 120, .35) 40%, transparent 70%),
    linear-gradient(180deg, #2f9fe0 0%, #66c6f2 60%, #a9e2f7 100%); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 72% 80%, rgba(255,255,255,.18) 0deg 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(ellipse 900px 800px at 72% 80%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 900px 800px at 72% 80%, #000, transparent 75%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.hero__copy { padding-bottom: 72px; }
.hero__logo { width: min(400px, 82%); margin: 0 0 18px; filter: drop-shadow(0 10px 18px rgba(10, 50, 80, .25)); }
.hero__tag { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 20px; }
.hero__lede { font-size: 1.2rem; color: #0f3550; font-weight: 600; max-width: 30em; margin: 0 0 28px; }
.hero__facts { margin: 16px 0 0; color: #0f3550; font-weight: 700; font-size: .95rem; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 56px; width: auto; }

.stage { position: relative; height: 560px; }
.stage__raccoon { position: absolute; bottom: 0; left: 50%; width: 340px; transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(0, 60, 40, .35)); }
.stage__trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__item { position: absolute; width: 104px; filter: drop-shadow(0 12px 12px rgba(0, 40, 80, .35)); }
.hill { position: absolute; left: -10%; right: -10%; bottom: -150px; height: 220px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 15%, #7ddc5e, #4cbb47 45%, #2f8f3c); }

@media (max-width: 900px) {
  .hero { padding-top: 36px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__logo { margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .stage { height: 380px; }
  .stage__raccoon { width: 270px; }
  .stage__item { width: 76px; }
}

/* ---------- section shell ---------- */
.section { padding: 88px 0; }
.section__head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.section__head p { margin: 14px 0 0; font-size: 1.15rem; font-weight: 600; }

/* ---------- playable demo ---------- */
.play { background: linear-gradient(180deg, #4cbb47 0%, #2f8f3c 100%); color: #fff; }
.play .section__head p { color: #eaffdf; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; }
.tab { font: 600 1rem/1 Fredoka, sans-serif; color: var(--deep); background: var(--paper);
  border: 3px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--deep); }

.arena { display: grid; grid-template-columns: 150px 1fr 150px; gap: 18px; align-items: stretch;
  max-width: 900px; margin-inline: auto; }
.bin { border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 8px; text-align: center; color: #fff; border: 5px solid;
  font: 700 1.25rem/1.1 Fredoka, sans-serif; box-shadow: inset 0 -10px 0 rgba(0,0,0,.15), 0 10px 22px rgba(0,0,0,.2);
  transition: transform .15s ease; }
.bin img { width: 70px; }
.bin small { font: 600 .85rem/1.2 Nunito, sans-serif; opacity: .95; }
.bin--recycle { background: linear-gradient(180deg, #8fd65a, #4fae3a); border-color: #2f7d2a; }
.bin--trash { background: linear-gradient(180deg, #ffbe5c, #ee8a2a); border-color: var(--orange-dark); }
.bin.is-hot { transform: scale(1.06); }
.bin.is-hit { animation: gulp .35s ease; }
@keyframes gulp { 40% { transform: scale(1.12); } }

.scene { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  background: #355 center / cover no-repeat; box-shadow: var(--shadow); touch-action: pan-y; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.scene__hud { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px;
  font: 600 .95rem/1 Fredoka, sans-serif; }
.pill { background: rgba(255, 250, 240, .94); color: var(--deep); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.card { position: absolute; z-index: 3; left: 50%; top: 52%; width: 200px; transform: translate(-50%, -50%);
  background: var(--paper); color: var(--ink); border: 0; border-radius: 24px; padding: 18px 14px 14px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35); cursor: grab; touch-action: none; user-select: none;
  font: inherit; text-align: center; }
.card img { width: 130px; height: 130px; object-fit: contain; margin: 0 auto 8px; pointer-events: none; }
.card b { display: block; font: 600 1.15rem/1.15 Fredoka, sans-serif; color: var(--deep); }
.card.is-dragging { cursor: grabbing; }
.card.is-flying { transition: transform .32s cubic-bezier(.3, .7, .4, 1), opacity .32s ease; opacity: 0; }
.verdict { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: 92%;
  font: 600 1.05rem/1.25 Fredoka, sans-serif; padding: 10px 18px; border-radius: 999px; text-align: center;
  background: var(--paper); color: var(--deep); opacity: 0; transition: opacity .2s ease; }
.verdict.is-on { opacity: 1; }
.verdict.is-bad { background: #ffe1d1; color: #8e3411; }

.controls { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.btn { font: 700 1.1rem/1 Fredoka, sans-serif; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.btn--recycle { background: #2f7d2a; }
.btn--trash { background: var(--orange-dark); }
.play__note { text-align: center; margin: 18px auto 0; color: #eaffdf; font-weight: 600; max-width: 36em; }
.play__done { text-align: center; margin-top: 18px; }
.play__done[hidden] { display: none; }

@media (max-width: 720px) {
  .arena { grid-template-columns: 74px 1fr 74px; gap: 8px; }
  .bin { font-size: .95rem; padding: 12px 4px; border-width: 4px; border-radius: 18px; }
  .bin img { width: 44px; }
  .bin small { display: none; }
  .scene { min-height: 340px; }
  .card { width: 160px; }
  .card img { width: 100px; height: 100px; }
  .scene__hud { top: 10px; left: 10px; right: 10px; font-size: .78rem; }
  .pill { padding: 6px 9px; }
}

/* ---------- screenshots ---------- */
.screens { background: linear-gradient(180deg, #2f9fe0, #1f7fc0); }
.screens .section__head p { color: #e3f5ff; }
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 26px;
  scrollbar-width: thin; }
.shots img { flex: 0 0 auto; width: 260px; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow); }
@media (min-width: 1200px) { .shots { justify-content: center; } .shots img { width: 172px; } }

/* ---------- countries (cork board, as in the game's map) ---------- */
.world { background: #c08a4c url(img/cork.webp) center / 520px repeat; box-shadow: inset 0 0 0 14px #9a5d2a, inset 0 0 0 20px #7a4520; }
.world .section__head p { color: #3b2410; background: rgba(255, 250, 240, .85); display: inline-block; padding: 6px 16px; border-radius: 999px; }
.postcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; max-width: 1000px; margin-inline: auto; }
.postcard { position: relative; margin: 0; background: var(--paper); padding: 12px 12px 14px; border-radius: 8px;
  box-shadow: 0 16px 28px rgba(60, 30, 5, .4); }
.postcard:nth-child(odd) { transform: rotate(-2deg); }
.postcard:nth-child(even) { transform: rotate(1.6deg); }
.postcard::before { content: ""; position: absolute; top: -12px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a5ec86, #4cbb47 55%, #22681c); box-shadow: 0 5px 8px rgba(0,0,0,.35); }
.postcard img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.postcard figcaption { padding: 10px 4px 0; }
.postcard h3 { margin: 0; font: 700 1.35rem/1.1 Fredoka, sans-serif; color: var(--deep); }
.postcard p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
.postcard--soon { display: grid; place-items: center; text-align: center; min-height: 200px;
  background: repeating-linear-gradient(-45deg, #fffaf0 0 14px, #f6ecd6 14px 28px); }
@media (max-width: 900px) { .postcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .postcards { grid-template-columns: 1fr; max-width: 380px; } }

/* ---------- modes ---------- */
.modes { background: linear-gradient(180deg, #a9e2f7, #e6f7ff); }
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 980px; margin: 0 auto; }
.mode { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.mode img { width: 96px; }
.mode h3 { margin: 0 0 6px; font: 700 1.8rem/1.1 Fredoka, sans-serif; color: var(--deep); }
.mode p { margin: 0; color: var(--ink-soft); }
.tricks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: 56px auto 0; padding: 0; list-style: none; max-width: 980px; }
.tricks li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--deep); }
.tricks img { width: 52px; }
.fair { max-width: 44em; margin: 48px auto 0; text-align: center; color: var(--ink-soft); font-size: 1.05rem; }
.fair strong { color: var(--deep); }
@media (max-width: 800px) { .modes__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- final call ---------- */
.final { background: linear-gradient(180deg, #2f9fe0, #17532d); text-align: center; color: #fff; }
.final img.cheer { width: 190px; margin: 0 auto 10px; }
.final h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.final p { margin: 0 auto 28px; font-size: 1.15rem; font-weight: 600; color: #e9fbe3; max-width: 30em; }

/* ---------- footer ---------- */
.foot { background: #0f3a20; color: #cfe9c2; padding: 34px 0; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: #fff; font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- document pages (support, privacy) ---------- */
.doc-hero { background: linear-gradient(180deg, #2f9fe0, #66c6f2); padding: 56px 0 44px; text-align: center; }
.doc-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.doc-hero p { margin: 12px auto 0; color: #0f3550; font-weight: 600; font-size: 1.1rem; max-width: 34em; }
.doc { background: var(--paper); padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font: 700 1.5rem/1.2 Fredoka, sans-serif; color: var(--deep); margin: 36px 0 10px; }
.doc h3 { font: 600 1.2rem/1.25 Fredoka, sans-serif; color: var(--deep); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc a { color: #1a6a9a; font-weight: 700; }
.doc .contact { background: #e9f7e2; border-left: 6px solid var(--leaf); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.doc .updated { color: var(--ink-soft); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
