/* Noodle Squad Defense: marketing site. Storybook signboards in the game's own palette.
   The page walks through one day in the meadow: morning key art, green meadow, a wooden board, the parchment map,
   an evening desk, and the night the Muddles come out. */

@font-face { font-family: 'Titan One'; font-weight: 400; font-display: swap; src: url(/fonts/titan-one-latin-400-normal.woff2?v=2f15f138) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Titan One'; font-weight: 400; font-display: swap; src: url(/fonts/titan-one-latin-ext-400-normal.woff2?v=6980ee0d) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-weight: 500; font-display: swap; src: url(/fonts/baloo-2-latin-500-normal.woff2?v=b533661a) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 500; font-display: swap; src: url(/fonts/baloo-2-latin-ext-500-normal.woff2?v=611a1e07) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-latin-700-normal.woff2?v=8e7ffc9b) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-latin-ext-700-normal.woff2?v=c813752d) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --moss: #5E8C31; --moss-d: #3B5C1C; --moss-text: #3F6420;
  --acorn: #8A5A2B; --acorn-d: #5C3A19;
  --parch: #FFF4DC; --parch-d: #EAD9B5;
  --crust: #F2B33D; --crust-d: #B07A16;
  --berry: #D2453A; --berry-d: #8E2A22;
  --sky: #8FD3F4; --mud: #6B4E3D; --ink: #2B2116; --night: #1F2E1A;
  --dirt: #D9B57E;
  --display: 'Titan One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wood:
    repeating-linear-gradient(178deg, transparent 0 9px, rgba(43,33,22,.07) 9px 11px, transparent 11px 23px, rgba(255,244,220,.05) 23px 25px),
    linear-gradient(180deg, #9A6634, var(--acorn) 55%, #7C5026);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 1.125rem/1.55 var(--body); color: var(--ink); background: var(--night); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--moss-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--parch); color: var(--ink); padding: 8px 14px; border: 3px solid var(--ink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .night :focus-visible, .studio :focus-visible, .foot :focus-visible, .beam :focus-visible, .squad :focus-visible { outline-color: var(--crust); }

/* ---- acorn plank buttons: rounded plank, 3px ink outline, bevel highlight, wood edge that collapses on press ---- */
.plank {
  --tone: var(--moss); --edge: var(--moss-d); --fg: var(--parch);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 400 1.125rem/1 var(--display); color: var(--fg); text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: .8em 1.35em .75em; margin-bottom: 9px;
  border: 3px solid var(--ink); border-radius: 18px 14px 18px 14px / 15px 18px 14px 18px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(43,33,22,.07) 22px 24px), var(--tone);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.38), inset 0 -3px 0 rgba(43,33,22,.16), 0 9px 0 -3px var(--edge), 0 9px 0 0 var(--ink);
  text-shadow: 0 2px 0 rgba(43,33,22,.45);
  transition: transform .07s ease-out, box-shadow .07s ease-out, filter .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.plank:hover { color: var(--fg); filter: brightness(1.07) saturate(1.05); }
.plank:active { transform: translateY(6px); box-shadow: inset 0 4px 0 rgba(255,255,255,.38), inset 0 -3px 0 rgba(43,33,22,.16), 0 3px 0 -3px var(--edge), 0 3px 0 0 var(--ink); }
.plank-acorn { --tone: var(--acorn); --edge: var(--acorn-d); }
.plank-crust { --tone: var(--crust); --edge: var(--crust-d); --fg: var(--ink); text-shadow: 0 2px 0 rgba(255,244,220,.5); }
.plank-paper { --tone: var(--parch); --edge: var(--parch-d); --fg: var(--ink); text-shadow: none; }
.plank-lg { font-size: 1.4rem; padding: .78em 1.5em .72em; }
.plank-sm { font-size: 1rem; padding: .55em 1em .5em; margin-bottom: 6px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.38), 0 6px 0 -3px var(--edge), 0 6px 0 0 var(--ink); }
.plank-sm:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.38), 0 2px 0 -3px var(--edge), 0 2px 0 0 var(--ink); }
.plank .ico { width: 1em; height: 1em; fill: currentColor; filter: drop-shadow(0 2px 0 rgba(43,33,22,.45)); }

/* ---- the beam (top bar) ---- */
.beam { position: relative; z-index: 5; background: var(--wood); border-bottom: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(43,33,22,.35); }
.beam-in { max-width: 1140px; margin: 0 auto; padding: 10px 22px 8px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--parch); text-decoration: none; font: 400 1.2rem/1 var(--display); text-shadow: 0 2px 0 var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 3px solid var(--ink); background: var(--moss); }
.brand:hover { color: var(--parch); }
.beam nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.beam nav a:not(.plank) { color: var(--parch); text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 10px; }
.beam nav a:not(.plank):hover { background: rgba(43,33,22,.25); color: var(--parch); }
.beam nav .plank { margin-left: 8px; }

/* ---- hero: the key art, a signboard hanging from the beam, Pip guarding the pies on the trail ---- */
.hero { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(143,211,244,.55) 0%, rgba(143,211,244,0) 38%, rgba(31,46,26,0) 60%, rgba(31,46,26,.35) 100%); }
.hero-in { position: relative; max-width: 860px; margin: 0 auto; padding: 0 22px 34px; text-align: center; }
.signpost { position: relative; display: inline-block; padding-top: 58px; }
.signpost::before, .signpost::after { content: ""; position: absolute; top: -4px; width: 7px; height: 66px; border: 3px solid var(--ink); border-radius: 4px;
  background: repeating-linear-gradient(160deg, #C9A46A 0 5px, #A27C45 5px 9px); }
.signpost::before { left: 16%; }
.signpost::after { right: 16%; }
.title-sign { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 18px 40px 22px;
  background: var(--wood); color: var(--parch); border: 4px solid var(--ink); border-radius: 26px 22px 28px 20px / 22px 26px 20px 28px;
  box-shadow: inset 0 5px 0 rgba(255,244,220,.28), inset 0 -5px 0 rgba(43,33,22,.25), 0 10px 0 -4px var(--acorn-d), 0 10px 0 0 var(--ink), 0 22px 30px rgba(31,46,26,.35);
  transform: rotate(-1.2deg); }
.title-sign::before, .title-sign::after { content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E9D9B8, #8C7B62 60%, #3A2E20); border: 2px solid var(--ink); }
.title-sign::before { left: 14px; }
.title-sign::after { right: 14px; }
.t-small { font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--crust); text-shadow: 0 3px 0 var(--ink); letter-spacing: .04em; }
.t-big { font-size: clamp(2.6rem, 8.2vw, 5.4rem); line-height: .95; text-shadow: 0 4px 0 var(--ink), 0 6px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.ribbon { display: inline-block; margin: 26px 0 0; padding: 8px 26px 6px; font: 400 clamp(1.15rem, 2.6vw, 1.55rem)/1.2 var(--display);
  background: var(--parch); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 5px 0 var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); padding-inline: 40px; }
.hero-lead { max-width: 36em; margin: 18px auto 0; padding: 10px 18px; font-size: 1.15rem; font-weight: 700; color: var(--ink);
  background: rgba(255,244,220,.93); border: 3px solid var(--ink); border-radius: 14px; }
.hero-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store-chip { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; padding: 7px 16px 6px; font: 400 1.05rem/1.05 var(--display);
  color: var(--ink); background: rgba(255,244,220,.92); border: 3px dashed var(--ink); border-radius: 14px; }
.store-chip small { font: 700 .78rem/1.2 var(--body); color: var(--mud); }

.trail { position: relative; height: 128px; margin-top: 46px;
  background:
    radial-gradient(circle at 12% 40%, #B8915A 0 4px, transparent 5px) 0 0 / 90px 64px,
    radial-gradient(circle at 70% 75%, #C9A46A 0 3px, transparent 4px) 0 0 / 70px 52px,
    linear-gradient(180deg, #E3C38F, var(--dirt) 40%, #C9A06A);
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.trail::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 20px;
  background: radial-gradient(circle at 10px 22px, var(--moss) 0 11px, transparent 12px) 0 0 / 22px 22px repeat-x; }
.trail-in { position: relative; max-width: 1140px; height: 100%; margin: 0 auto; }
.trail .m { position: absolute; bottom: 30px; width: 96px; height: auto; transform-origin: 50% 100%; animation: waddle 1.1s ease-in-out infinite alternate; }
.trail .m1 { left: 4%; width: 86px; animation-duration: .7s; }
.trail .m2 { left: 14%; animation-delay: -.4s; }
.trail .m3 { left: 25%; width: 124px; animation-duration: 1.4s; }
.trail-switch { position: absolute; left: 44%; top: 50%; width: 64px; height: 64px; margin-top: -32px; border: 4px solid var(--ink); border-radius: 14px; background: var(--wood);
  box-shadow: inset 0 4px 0 rgba(255,244,220,.25); }
.trail-switch::after { content: ""; position: absolute; inset: 13px 10px; background: var(--parch);
  clip-path: polygon(0 32%, 52% 32%, 52% 4%, 100% 50%, 52% 96%, 52% 68%, 0 68%); }
.trail .pip { position: absolute; right: 9%; bottom: 14px; width: 250px; filter: drop-shadow(0 8px 0 rgba(43,33,22,.25)); }
.pies { position: absolute; right: 1.5%; bottom: 18px; width: 92px; height: auto; }
@keyframes waddle { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-6px); } }

/* ---- shared section bits ---- */
section { position: relative; }
.sign { position: relative; display: table; margin: 0 auto 26px; padding: 14px 34px 16px; text-align: center;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem); color: var(--parch); text-shadow: 0 3px 0 var(--ink);
  background: var(--wood); border: 3px solid var(--ink); border-radius: 18px 14px 20px 14px / 14px 20px 14px 18px;
  box-shadow: inset 0 4px 0 rgba(255,244,220,.25), 0 8px 0 -3px var(--acorn-d), 0 8px 0 0 var(--ink); transform: rotate(-.8deg); }
.sign::before, .sign::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E9D9B8, #8C7B62 60%, #3A2E20); border: 2px solid var(--ink); }
.sign::before { left: 12px; }
.sign::after { right: 12px; }
.section-lead { max-width: 40em; margin: 0 auto 34px; text-align: center; font-size: 1.2rem; }
.on-dark { color: var(--parch); text-shadow: 0 2px 0 rgba(43,33,22,.55); }
.board { background: var(--parch); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 10px 0 rgba(43,33,22,.4); }

/* ---- switches: meadow green with the live demo ---- */
.meadow { padding: 70px 0 84px; background:
  radial-gradient(circle at 20% 30%, rgba(255,244,220,.12) 0 3px, transparent 4px) 0 0 / 46px 46px,
  radial-gradient(circle at 70% 80%, rgba(242,179,61,.25) 0 2.5px, transparent 3.5px) 0 0 / 58px 58px,
  linear-gradient(180deg, #6A9A3A, var(--moss)); }
.switch-board { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px; align-items: center; padding: 34px; }
.switch-copy .big { font: 400 1.45rem/1.3 var(--display); }
.switch-copy .try { font-weight: 700; color: var(--moss-text); margin: 0; }
.demo-wrap { min-width: 0; }
.demo { position: relative; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--moss); }
.demo svg { display: block; width: 100%; height: auto; }
.tile-hit { position: absolute; left: 21.7%; top: 16.2%; width: 11.6%; height: 17.4%; border-radius: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile-hit:hover { box-shadow: 0 0 0 4px var(--crust); }
.switch-arrow { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.road-a, .road-b { transition: opacity .3s; }
.road-b, .movers-b, .stills-b, .cap-b { opacity: 0; }
.road-ink .road-b, .road-dirt .road-b { opacity: .38; }
.road-dots .road-b { opacity: 0; }
.movers-b, .stills-b { display: none; }
#sw:checked ~ .demo .switch-arrow { transform: rotate(90deg); }
#sw:checked ~ .demo .road-ink .road-a, #sw:checked ~ .demo .road-dirt .road-a { opacity: .38; }
#sw:checked ~ .demo .road-dots .road-a { opacity: 0; }
#sw:checked ~ .demo .road-b { opacity: 1; }
#sw:checked ~ .demo .movers-a, #sw:checked ~ .demo .stills-a { display: none; }
#sw:checked ~ .demo .movers-b { display: inline; opacity: 1; }
.stills { display: none; }
.demo-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cap { margin: 0; font-weight: 700; flex: 1 1 14em; min-height: 3.1em; display: flex; align-items: center; }
.cap-b { display: none; }
#sw:checked ~ .demo-foot .cap-a { display: none; }
#sw:checked ~ .demo-foot .cap-b { display: inline; opacity: 1; }
#sw:focus-visible ~ .demo-foot .plank { outline: 3px solid var(--ink); outline-offset: 4px; }
#sw:focus-visible ~ .demo .tile-hit { box-shadow: 0 0 0 4px var(--crust), 0 0 0 7px var(--ink); }

/* ---- the squad: parchment tags pinned to a wooden board ---- */
.squad { padding: 76px 0 90px; background:
  repeating-linear-gradient(180deg, transparent 0 86px, rgba(43,33,22,.45) 86px 89px),
  var(--wood); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; }
.tag { position: relative; display: flex; flex-direction: column; padding: 18px 14px 16px; background: var(--parch); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px 12px 16px 16px; box-shadow: 0 7px 0 rgba(43,33,22,.5); }
.tag::before { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F08A80, var(--berry) 55%, var(--berry-d)); border: 3px solid var(--ink); }
.tag:nth-child(5n+1) { transform: rotate(-2deg); }
.tag:nth-child(5n+2) { transform: rotate(1.5deg); }
.tag:nth-child(5n+3) { transform: rotate(-.6deg); }
.tag:nth-child(5n+4) { transform: rotate(2deg); }
.tag:nth-child(5n)   { transform: rotate(-1.4deg); }
.tag img { display: block; width: 100%; max-width: 170px; margin: -4px auto 4px; filter: drop-shadow(0 4px 0 rgba(43,33,22,.18)); }
.tag h3 { font-size: 1.45rem; }
.tag .role { margin: 0 0 .3em; font-weight: 700; color: var(--berry-d); }
.tag p { font-size: 1rem; line-height: 1.4; }
.tag .from { margin-top: auto; padding-top: 8px; border-top: 2px dashed rgba(43,33,22,.35); font-weight: 700; font-size: .95rem; line-height: 1.25;
  display: flex; align-items: center; gap: 8px; }
.tag .from img { width: 28px; height: 28px; flex: none; margin: 0; border-radius: 8px; border: 2px solid var(--ink); filter: none; }

/* ---- worlds: the parchment map with a dotted trail between stops ---- */
.map { padding: 76px 0 96px; background:
  radial-gradient(circle at 50% 50%, rgba(138,90,43,.14) 0 1.5px, transparent 2.5px) 0 0 / 28px 28px,
  linear-gradient(180deg, #FFF4DC, #F6E3BC); }
.map .section-lead { color: var(--ink); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.stops::before { content: ""; position: absolute; left: 6%; right: 6%; top: 64px; border-top: 6px dotted var(--acorn); z-index: 0; }
.stop { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.stop:nth-child(even) { margin-top: 46px; }
.stop img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid var(--ink); border-radius: 16px; background: var(--moss);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--ink), 0 10px 0 6px rgba(43,33,22,.25); }
.stop-n { margin: 6px 0 2px; font: 400 .95rem/1 var(--display); color: var(--acorn); }
.stop h3 { font-size: 1.35rem; margin-bottom: 6px; }
.stop p { font-size: 1rem; line-height: 1.42; }
.stop .boss { display: inline-block; margin: 2px 0 0; padding: 3px 10px; font-weight: 700; font-size: .92rem; color: var(--parch);
  background: var(--mud); border: 2px solid var(--ink); border-radius: 999px; }

/* ---- more ways to play: an open storybook on the evening desk ---- */
.desk { padding: 76px 0 96px; background:
  repeating-linear-gradient(90deg, transparent 0 120px, rgba(43,33,22,.25) 120px 123px),
  linear-gradient(180deg, #7A5638, var(--mud)); border-top: 4px solid var(--ink); }
.book { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto;
  border: 4px solid var(--ink); border-radius: 18px; background: var(--parch);
  box-shadow: 0 8px 0 #E8D2A6, 0 12px 0 var(--ink), 0 26px 40px rgba(20,14,8,.4); }
.book::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; margin-left: -23px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(107,78,61,.22) 45%, rgba(43,33,22,.4) 50%, rgba(107,78,61,.22) 55%, transparent); }
.page { position: relative; padding: 38px 44px 34px; }
.page-h { font-size: 1.9rem; color: var(--moss-text); margin-bottom: 14px; }
.page dl { margin: 0; }
.page dt { font: 400 1.15rem/1.2 var(--display); margin-top: 16px; }
.page dt:first-child { margin-top: 0; }
.page dd { margin: 4px 0 0; font-size: 1.04rem; }
.page-pip { position: absolute; right: 14px; top: -64px; width: 150px; transform: rotate(6deg); filter: drop-shadow(0 6px 0 rgba(43,33,22,.2)); }
.langs span { display: inline-block; margin: 4px 4px 0 0; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .95rem; }

/* ---- night: the Muddles come out, and the notice board ---- */
.night { padding: 80px 0 96px; color: var(--parch); background:
  radial-gradient(circle at 15% 20%, rgba(242,179,61,.55) 0 2px, transparent 3px) 0 0 / 230px 190px,
  radial-gradient(circle at 70% 60%, rgba(242,179,61,.35) 0 1.5px, transparent 2.5px) 0 0 / 170px 140px,
  linear-gradient(180deg, #2C3F25, var(--night) 40%); border-top: 4px solid var(--ink); }
.muddles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.muddles li, .bosses li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.muddles img { width: 100%; max-width: 132px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.muddles b, .bosses b { font: 400 1.15rem/1.1 var(--display); color: var(--crust); margin-top: 4px; }
.muddles span { font-size: .95rem; line-height: 1.3; opacity: .92; margin-top: 2px; }
.bosses-h { text-align: center; margin: 46px 0 14px; font-size: 1.4rem; color: var(--parch); }
.bosses { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bosses img { width: 100%; max-width: 150px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.bosses b { color: var(--parch); font-size: 1.05rem; }
.notice { position: relative; max-width: 640px; margin: 70px auto 0; padding: 30px 36px 26px; color: var(--ink); background: var(--parch);
  border: 4px solid var(--ink); border-radius: 6px 10px 8px 12px; transform: rotate(.8deg);
  box-shadow: 0 0 0 14px var(--acorn), 0 0 0 18px var(--ink), 0 26px 30px rgba(0,0,0,.35); }
.notice::before, .notice::after { content: ""; position: absolute; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E9D9B8, #8C7B62 60%, #3A2E20); border: 2px solid var(--ink); }
.notice::before { left: 12px; }
.notice::after { right: 12px; }
.notice-h { font-size: clamp(1.6rem, 3.6vw, 2.1rem); text-align: center; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px; border: 3px solid var(--ink); background: var(--moss); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 7px; height: 11px; border: solid var(--parch); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.notice p { margin: 0; text-align: center; }

/* ---- studio + more games + footer ---- */
.studio { padding: 20px 0 76px; background: var(--night); color: var(--parch); }
.studio a { color: var(--crust); }
.studio a:hover { color: var(--parch); }
.studio-card { display: flex; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto 60px; padding: 24px 28px;
  border: 3px solid rgba(255,244,220,.25); border-radius: 22px; background: rgba(255,244,220,.05); }
.studio-card img { width: 96px; height: 96px; flex: none; border-radius: 22px; background: #fff; border: 3px solid var(--ink); padding: 6px; }
.studio-card h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 6px; color: var(--parch); }
.studio-card p { margin: 0; }
.mg-h { text-align: center; font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 24px; }
.mg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mg { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; color: var(--ink); text-decoration: none;
  background: var(--parch); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 rgba(0,0,0,.35); transition: transform .12s; }
.studio .mg { color: var(--ink); }
.mg:hover { transform: translateY(-2px); color: var(--ink); }
.mg img { width: 56px; height: 56px; flex: none; border-radius: 13px; border: 2px solid var(--ink); background: #fff; }
.mg b { display: block; font-size: 1rem; line-height: 1.2; }
.mg small { display: block; font-size: .88rem; color: var(--mud); }
.foot { background: #172213; color: var(--parch); border-top: 4px solid var(--ink); padding: 30px 0 34px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot a { color: var(--parch); }
.foot a:hover { color: var(--crust); }
.foot-studio { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.foot-studio img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot .copy { flex-basis: 100%; margin: 0; font-size: .92rem; opacity: .75; }

/* ---- doc pages (privacy, support, 404): a parchment page on the meadow ---- */
.doc-bg { background:
  radial-gradient(circle at 20% 30%, rgba(255,244,220,.12) 0 3px, transparent 4px) 0 0 / 46px 46px,
  linear-gradient(180deg, #6A9A3A, var(--moss) 60%, var(--moss-d)); padding: 54px 0 80px; min-height: calc(100vh - 190px); }
.doc { max-width: 780px; margin: 0 auto; padding: 0 18px; }
.doc .sign { margin-bottom: 30px; }
.doc-page { padding: 34px 40px 30px; background: var(--parch); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 0 rgba(43,33,22,.4); }
.doc-page h2 { font-size: 1.45rem; margin: 30px 0 10px; color: var(--moss-text); }
.doc-page h2:first-child { margin-top: 0; }
.doc-page ul { padding-left: 1.2em; margin: 0 0 .8em; }
.doc-page li { margin-bottom: .35em; }
.doc-page .meta { font-weight: 700; color: var(--mud); }
.doc-page .summary { padding: 16px 20px; margin: 0 0 8px; border: 3px dashed var(--ink); border-radius: 14px; background: #fff; }
.doc-page .summary b { font-family: var(--display); font-weight: 400; }
.faq details { border-bottom: 2px dashed rgba(43,33,22,.3); padding: 12px 0; }
.faq details:last-of-type { border-bottom: 0; }
.faq summary { cursor: pointer; font: 400 1.2rem/1.25 var(--display); list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--crust) linear-gradient(var(--ink), var(--ink)) center / 10px 3px no-repeat; }
.faq details:not([open]) summary::after { background: var(--crust) linear-gradient(var(--ink), var(--ink)) center / 10px 3px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 3px 10px no-repeat; background-color: var(--crust); }
.faq details > :not(summary) { margin-top: 10px; }
.contact-plank { margin-top: 10px; }

.lost { text-align: center; }
.lost img { width: 220px; display: block; margin: 0 auto 10px; }
.lost .doc-page { text-align: center; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tag:nth-child(n) { transform: rotate(0); }
  .tag:nth-child(odd) { transform: rotate(-1.2deg); }
  .tag:nth-child(even) { transform: rotate(1.2deg); }
  .stops { grid-template-columns: 1fr; gap: 26px; max-width: 640px; margin: 0 auto; padding-left: 34px; }
  .stops::before { left: 8px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 6px dotted var(--acorn); }
  .stop { flex-direction: row; align-items: flex-start; gap: 18px; }
  .stop:nth-child(even) { margin-top: 0; }
  .stop img { width: 44%; flex: none; }
  .muddles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
  .switch-board { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .beam nav a:not(.plank) { display: none; }
  .brand span { font-size: 1.05rem; }
  .title-sign { padding: 14px 24px 18px; }
  .signpost { padding-top: 40px; }
  .signpost::before, .signpost::after { height: 48px; }
  .hero-lead { font-size: 1.02rem; }
  .trail { height: 104px; margin-top: 150px; }
  .trail .pip { width: 180px; right: 50%; margin-right: -90px; bottom: 30px; }
  .trail .m3, .trail-switch { display: none; }
  .trail .m1 { width: 66px; left: 2%; }
  .trail .m2 { width: 74px; left: 18%; }
  .pies { right: 3%; width: 70px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .tag { padding: 14px 10px 12px; }
  .tag h3 { font-size: 1.25rem; }
  .book { grid-template-columns: 1fr; }
  .book::after { display: none; }
  .page { padding: 28px 24px; }
  .page-r { border-top: 3px dashed rgba(43,33,22,.3); }
  .page-pip { width: 84px; top: 14px; right: 12px; }
  .page-r .page-h { padding-right: 84px; }
  .stop { flex-direction: column; }
  .stop img { width: 100%; }
  .bosses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticks { grid-template-columns: 1fr; }
  .notice { padding: 26px 22px 22px; margin-top: 60px; }
  .studio-card { flex-direction: column; text-align: center; }
  .doc-page { padding: 26px 22px 22px; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .muddles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .muddles span { font-size: .88rem; }
  .plank-lg { font-size: 1.2rem; }
  .ribbon { padding-inline: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .movers { display: none !important; }
  .stills-a { display: inline; }
  #sw:checked ~ .demo .stills-b { display: inline; opacity: 1; }
}
.contact-plank { white-space: normal; text-align: center; }
.lost .doc-page p .plank { margin: 6px 6px 15px; }
