@font-face { font-family: 'Kalam'; src: url('assets/fonts/Kalam-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('assets/fonts/Kalam-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('assets/fonts/Kalam-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* ============ Design tokens ============ */
:root {
  color-scheme: light;
  --ink: #231c16;
  --muted: #6b5f52;
  --paper: #fdf7e7;
  --paper-2: #f4ead0;
  --white: #fffdf6;
  --sky: #9fcdf3;
  --grass: #a9d571;
  --grass-deep: #5d9a3e;
  --lime: #e4f27a;
  --yellow: #f7cd48;
  --orange: #f39a5b;
  --coral: #ef6f57;
  --pink: #f7b6cd;
  --blue: #a9cbf5;
  --lilac: #b9acf2;
  --green: #b9df88;
  --mint: #c9f5dd;
  --night: #33298a;
  --night-2: #241c6b;

  /* Organic asymmetric sketchbook radii */
  --r-xl: 30px 23px 32px 25px / 24px 31px 22px 29px;
  --r-lg: 22px 16px 24px 18px / 17px 23px 16px 21px;
  --r-md: 16px 12px 17px 13px / 13px 16px 12px 15px;
  --r-pill: 999px;

  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3.5px 0 var(--ink);

  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --sans: 'Kalam', 'Comic Sans MS', cursive;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 70'%3E%3Cpath d='M18 60q-14 0-14-11t13-12q-2-15 13-18 11-2 17 7 6-17 26-17 22 0 26 21 6-6 15-4 13 3 13 15 15 1 15 11t-14 8Z' fill='%23fff' stroke='%23231c16' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --dash-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.5q8-1.5 14 .2m8-.4q9 1.4 15-.3m8 .2q8-1.3 15 .5m8-.6q8 1.2 14-.2m8 .4q9-1.4 15 .2' fill='none' stroke='%23231c16' stroke-width='2' stroke-linecap='round' opacity='.36'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { position: relative; margin: 0; color: var(--ink); background: var(--grass); font-family: var(--hand); font-weight: 400; font-synthesis: none; font-size: 17.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main, .section, .site-footer { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.18; letter-spacing: .005em; }
b, strong { font-weight: 700; }
.wrap { position: relative; z-index: 2; width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; z-index: 99; top: 8px; left: 8px; padding: 8px 12px; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: var(--r-md); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ============ Hand-drawn wobbly ink surfaces ============ */
.panel, .card, .btn, .chip, .eyebrow, .todo-item, .photo, .art-card, .side-block, .rule-list li, .guide-copy li, .step-cards li, .note-box, .game-log, .tip-box, .goal-slot, .tab-bar {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
}
.panel::before, .card::before, .btn::before, .chip::before, .eyebrow::before, .todo-item::before, .photo::before, .art-card::before, .side-block::before, .rule-list li::before, .guide-copy li::after, .step-cards li::before, .note-box::before, .game-log::before, .tip-box::before, .goal-slot::before, .tab-bar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: var(--bg, var(--white));
  border: var(--bd-w, 2.6px) var(--bd-style, solid) var(--bd-color, var(--ink));
  border-radius: inherit;
  box-shadow: var(--sh, none);
  filter: var(--wobble, url(#wobbleBox));
  pointer-events: none;
  transition: background-color .15s, box-shadow .12s, border-color .15s;
}
/* Subtle double-ink pen echo on big paper panels & cards */
.panel::after, .card::after {
  position: absolute;
  z-index: 4;
  inset: 1px -1px -1px 1px;
  content: '';
  border: 1.1px solid var(--ink);
  border-radius: inherit;
  opacity: .22;
  filter: url(#wobbleEcho);
  pointer-events: none;
}

.panel { --bg: var(--paper); --matte: var(--paper); --bd-w: 2.8px; --sh: var(--shadow); --wobble: url(#wobbleCard); border-radius: var(--r-xl); }
.card { --bg: var(--white); --matte: var(--white); --bd-w: 2.6px; --sh: var(--shadow-sm); --wobble: url(#wobbleCard); border-radius: var(--r-lg); }

/* Wobbly inner frame for photos, illustrations, videos */
.ink-pic {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
}
.ink-pic::after {
  position: absolute;
  inset: 3px;
  z-index: 3;
  content: '';
  border: 2.6px solid var(--ink);
  border-radius: inherit;
  box-shadow: 0 0 0 6px var(--matte, var(--white));
  filter: url(#wobbleSoft);
  pointer-events: none;
}
.avatar-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  isolation: isolate;
}
.avatar-ring img { border-radius: 50%; object-fit: cover; }
.avatar-ring::after {
  position: absolute;
  inset: -1px;
  z-index: 2;
  content: '';
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  filter: url(#wobbleSoft);
  pointer-events: none;
}

/* Buttons */
.btn {
  --bg: var(--white);
  --sh: var(--shadow-sm);
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease;
  user-select: none;
}
.btn:hover:not(:disabled) { transform: translate(-1.5px, -1.5px) rotate(-.6deg); --sh: 4px 4.5px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); --sh: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; --sh: none; }
.btn-primary { --bg: var(--yellow); }
.btn-primary:hover:not(:disabled) { --bg: #ffd95e; }
.btn-secondary { --bg: var(--white); }
.btn-secondary:hover:not(:disabled) { --bg: #fff5ce; }
.btn-blue { --bg: var(--blue); }
.btn-blue:hover:not(:disabled) { --bg: #bdd8fa; }
.btn-pump { --bg: var(--mint); font-family: var(--hand); font-size: 17px; letter-spacing: .01em; }
.btn-pump:hover:not(:disabled) { --bg: #a8f0c8; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15.5px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 19px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; font-size: 19px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* Chips & tags */
.chip {
  --bg: var(--white);
  --bd-w: 2.2px;
  --wobble: url(#wobbleSoft);
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-radius: 22px 18px 24px 19px / 19px 23px 18px 22px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s;
}
button.chip:hover, a.chip:hover { --bg: #fff3c4; transform: rotate(-.8deg); }
.chip.is-active, .chip[aria-current="true"] { --bg: var(--yellow); --sh: 2px 2.5px 0 var(--ink); font-weight: 700; }
.chip b { font-family: var(--hand); font-size: 15px; }
.chip-static { cursor: default; }
.chip-sm { min-height: 29px; padding: 0 11px; font-size: 13.5px; }
.chip-green { --bg: var(--green); } .chip-yellow { --bg: var(--yellow); } .chip-pink { --bg: var(--pink); } .chip-blue { --bg: var(--blue); }
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip img { width: 24px; height: 24px; margin-left: -4px; }

.eyebrow {
  --bg: var(--white);
  --bd-w: 2.3px;
  --sh: 2px 2.5px 0 var(--ink);
  --wobble: url(#wobbleSoft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 16px 4px 5px;
  border-radius: 26px 20px 28px 22px;
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 700;
  transform: rotate(-.6deg);
}
.eyebrow b {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--yellow);
  border: 2.2px solid var(--ink);
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
  font-size: 14px;
}
.hand-title { position: relative; display: inline-block; margin: 0; font-family: var(--hand); font-size: 26px; font-weight: 700; }
.hand-title::after { display: block; height: 4px; margin-top: 2px; content: ''; background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; filter: url(#wobbleSoft); transform: rotate(-.8deg); }

/* ============ Backgrounds ============ */
.sky { position: relative; overflow: hidden; background: linear-gradient(180deg, #8dc3f0, var(--sky) 60%, #c6e3f8); }
.grass { position: relative; background-color: var(--grass); background-image: radial-gradient(circle, rgb(255 255 255 / 25%) 1.6px, transparent 2px); background-size: 34px 34px; }
.lime { position: relative; background-color: var(--lime); background-image: radial-gradient(circle, rgb(35 28 22 / 9%) 1.4px, transparent 1.8px); background-size: 22px 22px; }
.lilac { position: relative; background: linear-gradient(180deg, #9b8cec, var(--lilac)); }
.night { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--night-2), var(--night) 65%, #5646b5); }
.cloud { position: absolute; z-index: 1; width: 150px; height: 66px; background: var(--cloud) center / contain no-repeat; pointer-events: none; animation: drift 40s ease-in-out infinite alternate; }
.c1 { top: 40px; left: 3%; } .c2 { top: 90px; right: 5%; width: 110px; animation-duration: 48s; } .c3 { bottom: 170px; left: 46%; width: 86px; } .c4 { top: 50px; right: 8%; width: 120px; }
@keyframes drift { from { transform: translateX(-16px); } to { transform: translateX(22px); } }
.hill { position: absolute; z-index: 1; right: 0; bottom: -2px; left: 0; height: 110px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0 60q90-40 190-18t180-6q110-36 230 4t190 0q100-40 210-10t200 8v74H0Z' fill='%23a9d571' stroke='%23231c16' stroke-width='3'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.star-dot { position: absolute; width: 6px; height: 6px; background: #fff3b0; border-radius: 50%; box-shadow: 0 0 0 4px rgb(255 243 176 / 18%); }
.s1 { top: 70px; left: 10%; } .s2 { top: 150px; right: 16%; } .s3 { top: 45%; right: 5%; }

/* ============ Header ============ */
.site-header { position: sticky; z-index: 40; top: 0; background: var(--paper); overflow-x: clip; }
.site-header::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 6px;
  content: '';
  border-bottom: 2.8px solid var(--ink);
  filter: url(#wobbleCard);
  pointer-events: none;
}
.header-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .avatar-ring { width: 42px; height: 42px; }
.brand img { width: 42px; height: 42px; }
.brand span:last-child { font-family: var(--hand); font-size: 22px; font-weight: 700; letter-spacing: .03em; }
.site-nav { display: flex; gap: 6px; }
.site-nav .chip { --bg: transparent; --bd-color: transparent; --sh: none; }
.site-nav .chip:hover { --bg: #fff3c4; --bd-color: var(--ink); }
.site-nav .chip[aria-current="true"] { --bg: var(--yellow); --bd-color: var(--ink); --sh: 2px 2.5px 0 var(--ink); }
.pump-link { gap: 7px; padding: 0 15px 0 11px; font-family: var(--hand); font-size: 17px; }
.pump-link img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }

/* ============ Hero ============ */
.hero { padding: 60px 0 140px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; }
.hand-hello { margin: 18px 0 4px; font-family: var(--hand); font-size: clamp(21px, 2.2vw, 27px); font-weight: 400; letter-spacing: .04em; color: #3c332a; line-height: 1.2; }
.hero h1 { max-width: 22ch; font-size: clamp(32px, 3.7vw, 46px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.lead { max-width: 530px; margin: 16px 0 28px; color: #3c332a; font-size: 19px; font-weight: 400; line-height: 1.55; }
.hero-card { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px; transform: rotate(-.4deg); }
.hero-showcase { display: grid; gap: 10px; }
.hero-stage { position: relative; aspect-ratio: 1.06; --matte: var(--paper); border-radius: var(--r-lg); touch-action: pan-y; user-select: none; }
.hero-track { display: flex; gap: 8px; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.22, .78, .24, 1); will-change: transform; }
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--white);
  border: 0;
  cursor: zoom-in;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-arrow { position: absolute; z-index: 4; top: 50%; width: 38px; min-height: 38px; transform: translateY(-50%); opacity: .9; font-size: 22px; }
.hero-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.hero-arrow:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  background: var(--white);
  border: 2.2px solid var(--ink);
  border-radius: 55% 45% 50% 50% / 48% 55% 45% 52%;
  filter: url(#wobbleSoft);
  transition: transform .15s, background-color .15s, width .2s;
}
.hero-dot.is-active { width: 30px; border-radius: 12px; background: var(--yellow); }

.todo { display: grid; gap: 9px; }
.todo-title { display: flex; justify-content: space-between; margin: 0 2px 2px; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.todo-title b { font-family: var(--hand); }
.todo-item {
  --bg: var(--white);
  --matte: var(--white);
  --bd-w: 2.3px;
  --sh: 2px 2.5px 0 var(--ink);
  display: grid;
  grid-template-columns: 26px 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 12px 7px 10px;
  border-radius: var(--r-md);
  font-size: 16.5px;
  font-weight: 400;
  text-align: left;
  transition: transform .12s;
}
.todo-item:hover { --bg: #fff3c4; --matte: #fff3c4; transform: translateX(3px) rotate(-.3deg); }
.todo-thumb { width: 46px; height: 46px; border-radius: 11px; }
.todo-thumb::after { inset: 1.5px; border-width: 2px; }
.todo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.check { width: 24px; height: 24px; background: var(--white); border: 2.2px solid var(--ink); border-radius: 8px 6px 9px 7px; filter: url(#wobbleSoft); }
.todo-item.is-done { --bg: #eef6dd; --matte: #eef6dd; color: var(--muted); }
.todo-item.is-done .check { background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23231c16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-head { display: grid; justify-items: start; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.16; }
.section-sub { margin: 0; color: #3c332a; font-size: 18px; font-weight: 400; }
.on-dark h2, .on-dark .section-sub { color: #fff8e4; }
.sub-head { margin-top: 72px; }

/* Story */
.story-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 32px; align-items: start; }
.video-card { --bg: var(--pink); --matte: var(--pink); margin: 0; padding: 13px; transform: rotate(-.5deg); }
.video-frame { background: #111; border-radius: var(--r-md); }
.video-frame video { width: 100%; max-height: 620px; aspect-ratio: 9/16; object-fit: cover; }
.video-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 2px; font-size: 14.5px; font-weight: 300; }
.story-side { display: grid; gap: 24px; }
.story-text { padding: 26px 28px; transform: rotate(.3deg); }
.story-quote { margin: 0 0 12px; font-size: 23px; font-weight: 700; line-height: 1.35; }
.story-text p:not(.story-quote) { margin: 12px 0; color: #3f352c; font-size: 18px; font-weight: 400; line-height: 1.66; }
.story-credit { display: block; margin-top: 8px; color: var(--muted); font-size: 15.5px; font-weight: 300; text-align: right; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo {
  --bg: var(--white);
  --matte: var(--white);
  --sh: var(--shadow-sm);
  display: grid;
  gap: 8px;
  padding: 9px 9px 11px;
  border-radius: var(--r-lg);
  cursor: zoom-in;
  transition: transform .15s;
}
.photo-row .photo:nth-child(1) { transform: rotate(-1.2deg); }
.photo-row .photo:nth-child(2) { transform: translateY(4px) rotate(.9deg); }
.photo-row .photo:nth-child(3) { transform: rotate(-.7deg); }
.photo:hover { transform: translate(-2px, -3px) rotate(-.4deg) !important; --sh: var(--shadow); }
.photo img { width: 100%; aspect-ratio: .9; object-fit: cover; }
.photo > span:last-child { font-size: 15px; font-weight: 400; text-align: center; }

/* Meet */
.meet-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; padding: 26px; align-items: center; }
.meet-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.meet-art button { --matte: var(--paper); padding: 0; background: none; border: 0; border-radius: var(--r-lg); cursor: zoom-in; transition: transform .15s; }
.meet-art button:nth-child(2) { transform: rotate(1deg); }
.meet-art button:nth-child(3) { transform: rotate(-.9deg); }
.meet-art button:hover { transform: translate(-2px, -2px) rotate(-.6deg); }
.meet-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile-list { margin: 14px 0 18px; }
.profile-list div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0 12px; background: var(--dash-line) bottom / 120px 6px repeat-x; }
.profile-list dt { color: var(--muted); font-size: 15.5px; font-weight: 300; }
.profile-list dd { margin: 0; font-size: 16.5px; font-weight: 400; line-height: 1.52; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Carousels */
.carousel-panel { padding: 20px 0 22px; }
.carousel-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px 16px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; padding: 8px 22px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track.is-dragging * { pointer-events: none; }
.art-card {
  --bg: var(--white);
  --matte: var(--white);
  --sh: var(--shadow-sm);
  display: grid;
  flex: 0 0 clamp(220px, 24vw, 270px);
  gap: 10px;
  padding: 10px 10px 12px;
  border-radius: var(--r-lg);
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: left;
  transition: transform .15s;
}
.art-card:nth-child(odd) { transform: rotate(-.5deg); }
.art-card:nth-child(even) { transform: rotate(.5deg); }
.art-card:hover { transform: translate(-2px, -4px) rotate(-.6deg); --sh: var(--shadow); }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.art-meta { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.art-meta i { display: inline-grid; min-width: 32px; height: 24px; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 52% 48% 54% 46%; font-family: var(--hand); font-size: 13px; font-style: normal; }
.art-card.is-flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { --bg: #fff0a8; transform: translateY(-6px); } }
.track-sm .art-card { flex-basis: clamp(164px, 17vw, 198px); }
.track-sm .art-meta { font-size: 14.5px; font-weight: 400; }
.carousel-progress { position: relative; height: 11px; margin: 4px 22px 0; background: var(--paper-2); border: 2.2px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; filter: url(#wobbleSoft); }
.carousel-progress span { display: block; width: 30%; height: 100%; background: var(--yellow); border-right: 2.2px solid var(--ink); border-radius: var(--r-pill); transition: width .15s, transform .15s; }

/* ============ Games ============ */
.game-tabs { margin-bottom: 18px; }
.game-tabs .chip { min-height: 42px; padding: 0 18px; font-size: 16.5px; }
.game-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; padding: 24px; }
.game-board-wrap { position: relative; min-width: 0; align-self: start; }
.food-board {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  margin: 0 auto;
  grid-template-columns: repeat(var(--n, 7), 1fr);
  gap: 4px;
  padding: 10px;
  border-radius: var(--r-lg);
  outline: none;
  user-select: none;
  touch-action: manipulation;
}
.food-board::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: #6fae4c;
  border: 2.8px solid var(--ink);
  border-radius: inherit;
  box-shadow: var(--shadow-sm);
  filter: url(#wobbleCard);
}
.food-board:focus-visible::before { box-shadow: 0 0 0 4px var(--yellow); }
.tile { position: relative; display: grid; place-items: center; background: #a9d571; border: 2px solid rgb(35 28 22 / 60%); border-radius: 11px 8px 12px 9px / 9px 11px 8px 10px; cursor: pointer; overflow: hidden; }
.tile:nth-child(odd) { background: #b3db7e; border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px; }
.tile.puddle-tile { background: #bfe0f5; }
.tile img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.tile .sprite-raccoon { z-index: 3; animation: hop .25s ease; }
.tile .sprite-rival { z-index: 3; }
.tile.fog::after { position: absolute; z-index: 4; inset: 0; content: ''; background: rgb(253 247 231 / 72%); backdrop-filter: blur(2px); }
.tile.fog.seen::after { background: rgb(253 247 231 / 40%); }
.tile.hint { box-shadow: inset 0 0 0 3px var(--coral); }
.tile.hint::before { position: absolute; z-index: 5; inset: 0; content: ''; border-radius: 7px; animation: pulse 1s ease 3; background: rgb(239 111 87 / 35%); }
.tile.reach:hover { box-shadow: inset 0 0 0 3px var(--yellow); }
@keyframes hop { 40% { transform: translateY(-14%); } }
@keyframes pulse { 50% { opacity: 0; } }
.float-text { position: absolute; z-index: 6; left: 50%; top: 10%; padding: 2px 8px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); animation: floatUp 1s ease forwards; pointer-events: none; }
@keyframes floatUp { to { opacity: 0; transform: translate(-50%, -26px); } }
.board-overlay { position: absolute; inset: 0; z-index: 10; display: grid; max-width: 600px; margin: 0 auto; padding: 18px; place-items: center; background: rgb(36 28 107 / 55%); border-radius: var(--r-lg); }
.overlay-card { width: min(100%, 400px); padding: 22px 24px; text-align: center; }
.overlay-art-wrap { width: 120px; height: 120px; margin: -64px auto 8px; background: var(--white); }
.overlay-art { width: 120px; height: 120px; }
.overlay-card h3 { font-size: 26px; font-weight: 700; }
.overlay-card > p { margin: 8px 0 12px; color: #4b4036; }
.rule-list { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; text-align: left; font-size: 14.5px; font-weight: 400; }
.rule-list li { --bg: var(--paper); --bd-w: 2.2px; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 7px 11px; border-radius: var(--r-md); }
.rule-list b { font-weight: 700; }
.tip-box { --bg: #eef6dd; --bd-style: dashed; --bd-w: 2.2px; margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 400; text-align: left; }
.big-stars { margin: 6px 0; font-size: 30px; letter-spacing: 4px; }
.game-side { display: grid; align-content: start; gap: 14px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stars { font-size: 18px; letter-spacing: 2px; }
.side-block { --bg: var(--white); --bd-w: 2.3px; padding: 12px 14px; border-radius: var(--r-md); }
.side-label { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.side-label span { color: var(--muted); font-size: 14px; font-weight: 300; text-align: right; }
.goal-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.goal-slot { --bg: var(--paper-2); --bd-style: dashed; --bd-color: rgb(35 28 22 / 50%); --bd-w: 2px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px 9px 11px 10px; }
.goal-slot.filled { --bg: var(--yellow); --bd-style: solid; --bd-color: var(--ink); animation: hop .3s ease; }
.goal-slot img { width: 32px; height: 32px; }
.goal-slot.home { --bg: var(--paper); }
.goal-slot.home img { opacity: .4; }
.goal-slot.home.filled img { opacity: 1; }
.meter { height: 15px; background: var(--paper-2); border: 2.2px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; filter: url(#wobbleSoft); }
.meter span { display: block; width: 100%; height: 100%; background: var(--grass); border-right: 2.2px solid var(--ink); transition: width .25s, background-color .25s; }
.meter span.low { background: var(--coral); }
.smell { display: flex; align-items: center; gap: 12px; }
.smell .side-label { margin-bottom: 2px; }
.nose { flex: 0 0 46px; height: 38px; background: #d8cfc0; border: 2.5px solid var(--ink); border-radius: 52% 48% 44% 46%; position: relative; filter: url(#wobbleSoft); transition: background-color .3s; }
.nose::before, .nose::after { position: absolute; top: 13px; width: 7px; height: 9px; content: ''; background: var(--ink); border-radius: 50%; }
.nose::before { left: 10px; } .nose::after { right: 10px; }
.nose.l1 { background: #f7c9b8; } .nose.l2 { background: #f59a85; animation: sniff .8s ease infinite; } .nose.l3 { background: var(--coral); animation: sniff .45s ease infinite; }
@keyframes sniff { 50% { transform: scale(1.1, .92); } }
.smell-text { margin: 0; font-size: 16px; font-weight: 400; }
.game-log { --bg: var(--paper); --bd-style: dashed; --bd-w: 2.2px; min-height: 48px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); font-size: 15px; font-weight: 400; line-height: 1.45; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-actions .btn { padding: 0 10px; }
.dpad { display: grid; width: 156px; grid-template-columns: repeat(3, 44px); gap: 8px; justify-content: center; margin: 0 auto; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13.5px; font-weight: 300; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend img { width: 24px; height: 24px; }
.game-note { margin: 16px 0 0; color: #d6cffd; font-size: 14px; font-weight: 300; }

/* Memory */
.memory-panel { display: block; }
.memory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.memory-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.memory-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.mem-card { position: relative; aspect-ratio: 1; padding: 0; background: none; border: 0; perspective: 800px; }
.mem-inner { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.3,.7,.3,1.2); transform-style: preserve-3d; }
.mem-card.is-open .mem-inner, .mem-card.is-matched .mem-inner { transform: rotateY(180deg); }
.mem-face { position: absolute; inset: 0; overflow: hidden; border: 2.6px solid var(--ink); border-radius: 22px 15px 24px 17px / 17px 23px 15px 21px; box-shadow: var(--shadow-sm); backface-visibility: hidden; }
.mem-card:nth-child(even) .mem-face { border-radius: 16px 23px 17px 22px / 22px 16px 23px 16px; }
.mem-back { display: grid; place-items: center; background: var(--yellow) radial-gradient(circle, rgb(35 28 22 / 12%) 2px, transparent 2.5px) 0 0 / 16px 16px; }
.mem-back img { width: 46%; opacity: .9; }
.mem-front { transform: rotateY(180deg); background: var(--white); }
.mem-front img { width: 100%; height: 100%; object-fit: cover; }
.mem-card:hover:not(.is-open):not(.is-matched) .mem-inner { transform: translateY(-3px) rotate(-1.2deg); }
.mem-card.is-matched .mem-face { box-shadow: 0 0 0 4px var(--grass), var(--shadow-sm); }
.mem-card.is-wrong .mem-inner { animation: shake .4s ease; }
@keyframes shake { 25% { transform: rotateY(180deg) translateX(-5px); } 75% { transform: rotateY(180deg) translateX(5px); } }
.memory-done { display: flex; align-items: center; gap: 18px; max-width: 720px; margin: 22px auto 0; padding: 14px 18px; }
.memory-done .avatar-ring, .memory-done img { width: 72px; height: 72px; }
.memory-done div { flex: 1; }
.memory-done h3 { font-size: 20px; }
.memory-done p { margin: 2px 0 0; font-size: 14px; }

/* ============ Guide ============ */
.alert-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; margin-bottom: 22px; padding: 14px 18px; }
.alert-icon { display: grid; width: 38px; height: 38px; place-items: center; background: var(--coral); border: 2.3px solid var(--ink); border-radius: 53% 47% 50% 50%; color: #fff; font-weight: 700; filter: url(#wobbleSoft); }
.alert-card p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.5; }
.guide-tabs { margin-bottom: 16px; }
.guide-panel { padding: 24px; }
.guide-item { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.guide-pic { --matte: var(--paper); border-radius: var(--r-lg); }
.guide-pic img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.bg-green { background: var(--green); } .bg-yellow { background: #f9dd7a; } .bg-blue { background: #c1daf7; } .bg-pink { background: #f9cfdd; }
.guide-label { margin: 0; color: var(--grass-deep); font-size: 15.5px; font-weight: 700; }
.guide-copy h3 { margin: 4px 0 12px; font-size: 27px; font-weight: 700; }
.guide-copy ol { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.guide-copy li { --bg: var(--white); --bd-w: 2.2px; padding: 10px 12px 10px 48px; border-radius: var(--r-md); color: #4b4036; font-size: 16px; font-weight: 400; line-height: 1.52; counter-increment: s; }
.guide-copy li::before { position: absolute; top: 9px; left: 10px; z-index: 1; display: grid; width: 26px; height: 26px; place-items: center; content: counter(s); background: var(--yellow); border: 2px solid var(--ink); border-radius: 53% 47% 52% 48%; font-family: var(--hand); font-size: 13px; font-weight: 700; }
.guide-copy li b { color: var(--ink); }
.source-link { display: inline-block; color: #3f6b2a; font-size: 15px; font-weight: 700; }
.footnote { margin: 18px 0 0; color: #36531f; font-size: 14px; font-weight: 300; }

/* ============ Promise ============ */
.promise-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; padding: 30px; align-items: center; }
.promise-photo { transform: rotate(-1.2deg); }
.promise-photo img { aspect-ratio: .8; object-position: center 35%; }
.promise-copy h2 { margin: 14px 0 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; }
.promise-copy > p { margin: 14px 0 8px; color: #3f362d; font-size: 17.5px; font-weight: 400; line-height: 1.65; }
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.step-cards li { --bg: var(--white); --bd-w: 2.2px; display: grid; gap: 4px; padding: 12px; border-radius: var(--r-md); color: #5d5246; font-size: 14.5px; font-weight: 400; line-height: 1.45; }
.step-cards li:nth-child(2) { transform: translateY(3px) rotate(.5deg); }
.step-cards b { display: grid; width: 28px; height: 28px; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 52% 48% 50% 50%; font-family: var(--hand); font-size: 12px; }
.step-cards strong { color: var(--ink); font-size: 16.5px; font-weight: 700; }
.note-box { --bg: var(--lime); --bd-style: dashed; --bd-w: 2.3px; padding: 14px 16px; border-radius: var(--r-md); }
.note-box p { margin: 4px 0 0; color: #3f362d; font-size: 15.5px; font-weight: 400; line-height: 1.55; }

/* ============ Closing / footer ============ */
.closing { padding: 56px 0 130px; }
.closing-inner { display: flex; align-items: center; justify-content: center; gap: 20px; }
.closing-avatar, .closing-avatar img { width: 96px; height: 96px; }
.closing-inner p { margin: 0; padding: 16px 22px; font-size: 18.5px; font-weight: 400; line-height: 1.5; transform: rotate(-.5deg); }
.closing-inner strong { font-family: var(--hand); font-size: 23px; font-weight: 700; }
.site-footer { padding: 14px 0 32px; background: var(--grass); }
.community-note { max-width: 760px; margin: 0 auto 16px; color: #263d15; font-size: 16.5px; font-weight: 400; line-height: 1.55; text-align: center; }
.community-note a { display: inline-block; padding: 0 7px; background: rgb(253 247 231 / 65%); border-radius: 8px; color: var(--ink); font-weight: 700; word-break: break-all; }
.community-note a:hover { background: var(--yellow); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; background: var(--dash-line) top / 120px 6px repeat-x; }
.footer-row p { margin: 0; color: #36531f; font-size: 15px; font-weight: 300; }
.copyright { font-family: var(--hand); font-size: 14px; font-weight: 300; }

/* ============ Floating UI ============ */
.to-top { position: fixed; z-index: 45; right: 22px; bottom: 22px; --bg: var(--yellow); }
.tab-bar { display: none; }
.lightbox { width: min(92vw, 760px); max-width: none; max-height: 94vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgb(36 28 107 / 80%); backdrop-filter: blur(3px); }
.lightbox-inner { padding: 14px; }
.lightbox-frame { --matte: var(--paper); border-radius: var(--r-lg); background: var(--white); }
.lightbox-frame > img { width: 100%; max-height: calc(94vh - 110px); object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.lightbox-bar p { display: grid; margin: 0; text-align: center; font-size: 17.5px; font-weight: 700; }
.lightbox-bar small { color: var(--muted); font-family: var(--hand); font-size: 14px; font-weight: 300; }
.lightbox-close { position: absolute; z-index: 6; top: -16px; right: -16px; --bg: var(--coral); color: #fff; font-size: 24px; }
.lightbox-close:hover:not(:disabled) { --bg: #f55c42; }

/* ============ Responsive ============ */
.panel, .card, .hero-copy, .hero-art, .story-side, .guide-copy, .promise-copy { min-width: 0; }
@media (max-width: 1000px) {
  .site-nav .chip { padding: 0 10px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-art { width: 100%; max-width: 520px; margin-inline: auto; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .video-card { width: 100%; max-width: 440px; margin-inline: auto; transform: none; }
  .meet-panel, .promise-panel { grid-template-columns: minmax(0, 1fr); }
  .promise-photo { width: 100%; max-width: 360px; margin-inline: auto; transform: none; }
  .game-panel { grid-template-columns: minmax(0, 1fr); }
  .game-side { grid-template-columns: 1fr 1fr; }
  .game-side > .side-row, .game-side > .game-log, .game-side > .legend { grid-column: 1 / -1; }
  .guide-item { grid-template-columns: minmax(0, 1fr); }
  .guide-pic img { aspect-ratio: 2; }
}
@media (max-width: 760px) {
  :root {
    --shadow: 3.5px 4px 0 var(--ink);
    --shadow-sm: 2.5px 3px 0 var(--ink);
  }
  .site-nav { display: none; }
  .c1, .c3 { display: none; }
  .c2 { top: 14px; right: 8px; width: 78px; }
  body { padding-bottom: 84px; }
  .wrap { width: calc(100% - 36px); }
  .hero-card, .story-text, .closing-inner p { transform: none; }
  .video-card { max-width: 400px; }
  .header-row { min-height: 62px; justify-content: space-between; gap: 10px; }
  .brand .avatar-ring, .brand img { width: 38px; height: 38px; }
  .brand span:last-child { font-size: 20px; }
  .pump-link { min-height: 36px; padding: 0 12px 0 9px; font-size: 15px; }
  .pump-link img { width: 21px; height: 21px; }
  .tab-bar {
    --bg: var(--paper);
    --sh: var(--shadow-sm);
    --wobble: url(#wobbleCard);
    position: fixed;
    z-index: 45;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: var(--r-lg);
  }
  .tab { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 0; padding: 4px 0; border-radius: var(--r-md); font-size: 13.5px; font-weight: 400; text-decoration: none; }
  .tab[aria-current="true"] { font-weight: 700; }
  .tab img { width: 26px; height: 26px; }
  .tab[aria-current="true"]::before { position: absolute; z-index: -1; inset: 0; content: ''; background: var(--yellow); border: 2px solid var(--ink); border-radius: inherit; filter: url(#wobbleSoft); }
  .to-top { right: 14px; bottom: 94px; }
  .hero { padding: 36px 0 110px; }
  body { font-size: 16.5px; }
  .lead { font-size: 17px; }
  .btn-lg { min-height: 50px; padding: 0 18px; font-size: 17px; }
  .hero-card { padding: 15px; }
  .hero-arrow { width: 34px; min-height: 34px; font-size: 19px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 24px; }
  .photo-row { gap: 10px; }
  .photo { padding: 6px 6px 8px; }
  .photo > span:last-child { font-size: 13px; }
  .story-text { padding: 20px; }
  .meet-panel, .guide-panel, .promise-panel { padding: 16px; }
  .meet-art { gap: 10px; }
  .carousel-bar { flex-wrap: wrap; padding: 0 16px 12px; }
  .carousel-nav { display: none; }
  .carousel-track { gap: 12px; padding: 8px 16px 14px; scroll-padding-inline: 16px; }
  .art-card { flex-basis: 72vw; }
  .track-sm .art-card { flex-basis: 44vw; }
  .carousel-progress { margin-inline: 16px; }
  .game-panel { padding: 12px; gap: 16px; }
  .food-board { gap: 2px; padding: 6px; }
  .tile { border-width: 1.5px; border-radius: 7px 5px 8px 6px; }
  .game-side { grid-template-columns: 1fr; }
  .dpad { grid-template-columns: repeat(3, 52px); width: auto; }
  .dpad .btn-icon { width: 52px; min-height: 52px; }
  .overlay-card { padding: 16px; }
  .overlay-art-wrap, .overlay-art { width: 84px; height: 84px; }
  .overlay-art-wrap { margin-top: -48px; }
  .rule-list { font-size: 13.5px; }
  .memory-grid { gap: 8px; }
  .memory-head { gap: 10px; }
  .alert-card { grid-template-columns: 36px 1fr; }
  .alert-card .btn { grid-column: 2; justify-self: start; }
  .step-cards { grid-template-columns: 1fr; }
  .closing-inner { flex-direction: column; text-align: center; }
  .footer-row { flex-direction: column; text-align: center; }
  .lightbox-close { top: -12px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
