:root {
  --sky-top: #7fcbff; --sky-bot: #d6f0ff;
  --grass: #6cc24a; --grass-dark: #4f9c35;
  --barn: #e0473c; --hay: #f6c445; --egg: #fff8e7;
  --ink: #262338; --ink-soft: #5d5873;
  --card: #fffdf6; --page: #fff4dc;
  --new: #3fae4f; --bal: #f08a24; --bot: #3d8fe0; --dev: #9b4fd1; --fix: #e0473c;
  --line: 4px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #1d2350; --sky-bot: #3a3f7a; --grass: #3f7d33; --grass-dark: #2f6026;
    --card: #2b2944; --page: #1b1a2c; --ink: #0d0c17; --ink-soft: #b7b2d3; --egg: #fff8e7;
  }
  :root:not([data-theme="light"]) body { color: #f4f0ff; }
}
:root[data-theme="dark"] {
  --sky-top: #1d2350; --sky-bot: #3a3f7a; --grass: #3f7d33; --grass-dark: #2f6026;
  --card: #2b2944; --page: #1b1a2c; --ink: #0d0c17; --ink-soft: #b7b2d3;
}
:root[data-theme="dark"] body { color: #f4f0ff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 600 17px/1.55 Nunito, system-ui, sans-serif; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.chunky { font-family: "Lilita One", Nunito, sans-serif; font-weight: 400; letter-spacing: .5px; }

/* ---------- hero: sky, clouds, hill, animals ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(var(--sky-top), var(--sky-bot) 70%);
  padding: 56px 16px 0; min-height: 560px;
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 15%; bottom: 20%; }
.cloud::after  { width: 40%; height: 120%; right: 12%; bottom: 25%; }
.c1 { width: 150px; height: 40px; top: 60px; left: 6%; }
.c2 { width: 110px; height: 30px; top: 150px; right: 10%; animation-duration: 80s; animation-direction: reverse; }
.c3 { width: 90px; height: 26px; top: 30px; right: 34%; animation-duration: 95s; }
@keyframes drift { 0% { transform: translateX(-30px); } 50% { transform: translateX(30px); } 100% { transform: translateX(-30px); } }

.logo {
  margin: 0; font-size: clamp(54px, 14vw, 128px); line-height: .9; color: var(--hay);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink); transform: rotate(-3deg); display: inline-block;
}
.logo span { color: var(--barn); }
.tag {
  display: inline-block; margin: 22px 0 0; padding: 6px 18px; background: var(--card);
  border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(1.5deg);
  font-weight: 900; color: inherit;
}
.ctas { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: "Lilita One", sans-serif; font-size: 22px; text-decoration: none; color: #fff;
  padding: 10px 26px; border: var(--line); border-radius: 18px; box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s, box-shadow .12s; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn.green { background: var(--new); } .btn.blue { background: var(--bot); }

.hill {
  position: absolute; left: -10%; right: -10%; bottom: -160px; height: 300px;
  background: var(--grass); border-top: var(--line); border-radius: 50% 50% 0 0;
}
.gang { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 26px; height: 250px; }
.gang img { filter: drop-shadow(0 8px 0 rgba(0,0,0,.18)); transform-origin: 50% 100%; animation: bob 2.6s ease-in-out infinite; cursor: pointer; }
.gang img:hover { animation: boing .5s ease; }
.gang .cow { width: 250px; animation-delay: -.4s; }
.gang .chicken { width: 150px; margin: 0 -14px 34px; animation-delay: -1.1s; }
.gang .frog { width: 190px; animation-delay: -1.8s; }
@keyframes bob { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-8px) scaleY(1.03); } }
@keyframes boing { 0% { transform: scale(1,1); } 30% { transform: scale(1.18,.8); } 60% { transform: scale(.9,1.15) translateY(-20px); } 100% { transform: scale(1,1); } }

.peek { position: absolute; pointer-events: none; z-index: 2; }
.peek.frog-hero { width: 170px; right: -34px; top: 210px; transform: rotate(-18deg); }
.peek.egg-hero { width: 110px; left: 3%; bottom: 48px; transform: rotate(8deg); }

/* ---------- patch notes ---------- */
section.notes { position: relative; padding: 64px 0 40px; }
.section-title { text-align: center; font-size: 46px; margin: 0 0 6px; transform: rotate(-1deg);
  color: var(--hay); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 0 36px; }

.patch {
  position: relative; background: var(--card); border: var(--line); border-radius: 28px; box-shadow: var(--pop);
  padding: 28px 28px 22px; margin-bottom: 44px;
}
.patch-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ver { font-size: 34px; margin: 0; line-height: 1; }
.pill { font: 900 13px/1 Nunito, sans-serif; text-transform: uppercase; letter-spacing: 1px; padding: 6px 11px;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--hay); color: var(--ink); }
.pill.latest { background: var(--barn); color: #fff; transform: rotate(-4deg); }
.date { color: var(--ink-soft); font-weight: 800; }
.blurb { margin: 0 0 18px; font-size: 18px; }
.patch > .peek-top { position: absolute; width: 110px; top: -132px; right: 30px; transform: rotate(6deg); }

.hero-shot { border: var(--line); border-radius: 18px; overflow: hidden; margin: 0 0 24px; box-shadow: 4px 4px 0 var(--ink); }

.group { margin: 22px 0 0; }
.group h3 { display: inline-block; margin: 0 0 10px; font-size: 20px; color: #fff; padding: 4px 14px; border: 3px solid var(--ink);
  border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: .5px var(--ink); }
.group:nth-of-type(odd) h3 { transform: rotate(-1.5deg); } .group:nth-of-type(even) h3 { transform: rotate(1.2deg); }
.g-new h3 { background: var(--new); } .g-bal h3 { background: var(--bal); } .g-bot h3 { background: var(--bot); }
.g-fix h3 { background: var(--fix); } .g-dev h3 { background: var(--dev); }
.g-pink h3 { background: #ec5f9c; } .g-teal h3 { background: #1fae9b; } .g-hay h3 { background: var(--hay); color: var(--ink); -webkit-text-stroke: 0; }

/* highlights: who did what (legend under the PATCH NOTES title) */
:root { --hl-ato: #ffd23f; --hl-sean: #ff9fc8; }
mark.hl { color: #262338; padding: .05em .28em; border-radius: .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.hl-ato { background: var(--hl-ato); } mark.hl-sean { background: var(--hl-sean); }
.legend { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin: -18px 0 40px; font-weight: 900; font-size: 34px; }
.legend .lbl { color: var(--ink-soft); font-size: 28px; text-transform: uppercase; letter-spacing: 2px; }
.legend mark { border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 4px 24px; border-radius: .35em; }
.legend mark:nth-of-type(1) { transform: rotate(-3deg); } .legend mark:nth-of-type(2) { transform: rotate(2.5deg); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { position: relative; padding: 5px 0 5px 28px; border-bottom: 2px dashed color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.group li:last-child { border-bottom: 0; }
.group li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--egg); border: 2.5px solid var(--ink); }
.group b { font-weight: 900; }
.num { font-weight: 900; color: var(--bal); white-space: nowrap; }
.dev-note { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }

.snaps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.snap { margin: 0; background: #fff; padding: 8px 8px 4px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s; color: #262338; }
.snap:nth-child(4n+1) { transform: rotate(-1.6deg); } .snap:nth-child(4n+2) { transform: rotate(1.3deg); }
.snap:nth-child(4n+3) { transform: rotate(1deg); }    .snap:nth-child(4n)   { transform: rotate(-1.1deg); }
.snap:hover { transform: rotate(0) scale(1.03); z-index: 1; position: relative; }
.snap img { border-radius: 6px; cursor: zoom-in; }
.snap figcaption { font-weight: 900; font-size: 14px; text-align: center; padding: 6px 2px 4px; }

.side-critter { position: absolute; pointer-events: none; }
.side-critter.cow-rock { width: 150px; left: -120px; top: 520px; transform: rotate(-10deg); }
.side-critter.cow-metal { width: 140px; right: -110px; top: 1100px; transform: rotate(9deg) scaleX(-1); }


/* ---------- footer ---------- */
footer { position: relative; background: var(--grass); border-top: var(--line); margin-top: 40px; padding: 70px 16px 36px; text-align: center; overflow: hidden; color: #fff; }
footer .chunky { font-size: 30px; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
footer p { margin: 6px 0 0; font-weight: 800; color: #f2ffe9; }
.walker { position: absolute; top: -6px; width: 120px; animation: walk 22s linear infinite; }
.walker.cow { top: -10px; }
.walker.chick { width: 64px; top: 14px; transform: scaleX(-1); animation-delay: -1.4s; }
.walker.chick2 { width: 56px; top: 18px; animation-delay: -2.4s; }
@keyframes walk { from { left: 105%; } to { left: -160px; } }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(20,18,35,.85); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-height: 92vh; border: var(--line); border-radius: 14px; background: #fff; }

@media (max-width: 1100px) { .side-critter { display: none; } }
@media (max-width: 640px) {
  .hero { min-height: 470px; padding-top: 40px; }
  .gang { height: 180px; } .gang .cow { width: 170px; } .gang .chicken { width: 104px; margin-bottom: 22px; } .gang .frog { width: 130px; }
  .peek.frog-hero { width: 104px; top: 150px; right: -26px; } .peek.egg-hero { display: none; }
  .patch { padding: 20px 16px 16px; border-radius: 22px; }
  .patch > .peek-top { width: 60px; top: -76px; right: 10px; }
  .snaps { grid-template-columns: 1fr; }
  .section-title { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* share link on each patch box (points at that update's own page) */
.share { margin-left: auto; font: 900 14px Nunito, sans-serif; text-decoration: none; color: var(--ink); background: var(--egg);
  border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--ink); }
.share:hover { transform: rotate(-3deg); }

/* single-update pages: compact header */
.hero.mini { min-height: 0; padding: 26px 16px 70px; }
.hero.mini .logo { font-size: clamp(44px, 10vw, 72px); }
.hero.mini .hill { bottom: -250px; }
.hero.mini .ctas { margin-top: 16px; }
.hero.mini .peek.frog-hero { top: 40px; width: 120px; }

.hero a.home { text-decoration: none; }

b, strong { font-weight: 900; }

/* single-update pages: side animals sit near the top so they fit beside short updates */
.notes.single { min-height: 560px; }
.notes.single .side-critter.cow-rock { top: 300px; }
.notes.single .side-critter.cow-metal { top: 120px; }
