/* Bikini Bottom Hub — one stylesheet for every page. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --sea-1: #9be0ff;
  --sea-2: #3aa0e6;
  --sea-3: #1b5fa8;
  --sponge: #ffe14d;
  --sponge-dark: #6b3e00;
  --patrick: #ff8fb1;
  --krab: #e63946;
  --kelp: #2bb673;
  --sand: #f7dc8a;
  --ink: #1d3557;
  --ink-soft: #46618a;
  --card: #fffdf3;
  --good: #2bb673;
  --bad: #e63946;
  --radius: 22px;
  --font-fun: "Luckiest Guy", "Fredoka", system-ui, sans-serif;
  --font-body: "Fredoka", system-ui, sans-serif;
  --outline: 3px 3px 0 var(--sponge-dark), -3px 3px 0 var(--sponge-dark), 3px -3px 0 var(--sponge-dark),
    -3px -3px 0 var(--sponge-dark), 0 3px 0 var(--sponge-dark), 3px 0 0 var(--sponge-dark),
    -3px 0 0 var(--sponge-dark), 0 -3px 0 var(--sponge-dark), 0 8px 0 rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--ink);
  background-color: var(--sea-2);
  background-image: url("../svg/sky.svg"), linear-gradient(180deg, var(--sea-1) 0%, var(--sea-2) 55%, var(--sea-3) 100%);
  background-size: 520px 520px, 100% 100%;
  background-attachment: fixed, fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- headings & text ---------- */
.fun, .page-title, h2, h3 {
  font-family: var(--font-fun);
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--sponge);
  text-shadow: var(--outline);
}
h2 { font-size: 34px; margin: 26px 0 14px; }
h3 { font-size: 26px; margin: 18px 0 10px; }
.lead { font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.muted { color: var(--ink-soft); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(27, 95, 168, 0.85), rgba(27, 95, 168, 0.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 4px solid rgba(255, 255, 255, 0.5);
}
.page-title {
  flex: 1;
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 6px 8px;
}
.round-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--sponge);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s;
}
.round-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.sticker-pill {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-fun);
  font-size: 24px;
  text-decoration: none;
}

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 16px 16px 60px; }
.panel {
  background: var(--card);
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
  padding: 20px;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 18px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  background: var(--sponge);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  font-family: var(--font-fun);
  font-size: 24px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-pink { background: var(--patrick); }
.btn-green { background: #7ee08f; }
.btn-blue { background: #8fd3ff; }
.btn-red { background: #ff7b7b; }
.btn-white { background: #fff; }
.btn-small { min-height: 48px; font-size: 19px; padding: 8px 18px; }
.btn-big { min-height: 84px; font-size: 32px; padding: 16px 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 50px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--sponge); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); }

input[type="search"], input[type="text"], input[type="password"] {
  min-height: 60px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  font-family: var(--font-body);
  font-size: 21px;
  background: #fff;
  color: var(--ink);
}

/* ---------- home map ---------- */
.home-main { position: relative; z-index: 1; padding: 0; }
.map-wrap { position: relative; width: 100%; height: calc(100vh - 90px); min-height: 520px; }
.map-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.place { cursor: pointer; outline: none; }
.place .art { transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.place:hover .art, .place:focus-visible .art { transform: translateY(-10px) scale(1.04); }
.place .label rect { fill: #fff; stroke: #1d3557; stroke-width: 5; }
.place:hover .label rect, .place:focus-visible .label rect { fill: #ffe14d; }
.place .label text { font-family: var(--font-fun); font-size: 30px; fill: #1d3557; text-anchor: middle; }
.place .label .sub { font-family: var(--font-body); font-weight: 600; font-size: 19px; fill: #46618a; }
.bob { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob.d1 { animation-delay: -0.8s; } .bob.d2 { animation-delay: -1.7s; } .bob.d3 { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-18px) rotate(3deg); } }
.greeting {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 2;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 58px);
  pointer-events: none;
}
.home-cards {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  max-width: calc(100% - 32px);
}
.map-list { display: none; }
.eotd {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 360px;
  max-width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  background: var(--card);
  box-shadow: 0 6px 0 var(--ink);
  text-decoration: none;
}
.eotd img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.eotd small { display: block; font-family: var(--font-fun); color: var(--krab); font-size: 16px; }
.eotd b { display: block; font-size: 19px; line-height: 1.15; }
.surprise-btn { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06) rotate(-2deg); } }

/* ---------- episode cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.ep-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 5px solid #fff;
  background: var(--card);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s;
}
.ep-card:hover { transform: translateY(-4px) rotate(-0.6deg); }
.ep-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #cde; }
.ep-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-card .meta { padding: 10px 14px 14px; }
.ep-card .label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.ep-card .title { font-size: 20px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.ep-card.watched .thumb img { filter: saturate(0.75); }
.badge-watched {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--good);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #fff;
}
.fav-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(29, 53, 87, 0.55);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(1);
  transition: transform 0.15s;
}
.fav-btn[aria-pressed="true"] { filter: none; background: rgba(255, 255, 255, 0.92); }
.fav-btn:active { transform: scale(1.25); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(0, 0, 0, 0.35); }
.progress span { display: block; height: 100%; background: var(--krab); }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 18px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------- shelves ---------- */
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.shelf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 26px 16px 14px;
  border-radius: var(--radius);
  border: 5px solid #fff;
  background: var(--c, #ffb703);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s;
}
.shelf-tile:hover { transform: translateY(-4px) rotate(0.8deg); }
.shelf-tile .emoji { position: absolute; right: 8px; top: 2px; font-size: 54px; opacity: 0.9; }
.shelf-tile .name { font-family: var(--font-fun); font-size: 30px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); padding-right: 52px; line-height: 1.05; }
.shelf-tile .count { font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); font-size: 16px; }
.meter { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.classic-tag { position: absolute; left: 10px; top: -2px; font-size: 13px; font-weight: 700; background: #fff; border-radius: 0 0 10px 10px; padding: 2px 8px; }

/* ---------- player ---------- */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - 130px) * 16 / 9));
  margin: 0 auto;
  border-radius: 26px;
  border: 6px solid #fff;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
}
.video-box video { width: 100%; height: 100%; display: block; background: #000; }
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: center / cover no-repeat;
}
.play-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 60, 0.35); }
.play-overlay > * { position: relative; }
.play-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 7px solid var(--ink);
  background: var(--sponge);
  box-shadow: 0 9px 0 var(--ink);
  font-size: 70px;
  padding-left: 14px;
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
}
.play-msg { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 4px #000; text-align: center; padding: 0 16px; }
.ep-info { display: grid; gap: 12px; }
.ep-info .summary { font-size: 20px; line-height: 1.45; margin: 0; }
.story-list { display: grid; gap: 10px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.plex-link { font-size: 15px; color: var(--ink-soft); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 14px;
  border-radius: 999px;
  border: 5px solid var(--ink);
  background: var(--sponge);
  box-shadow: 0 7px 0 var(--ink);
  font-family: var(--font-fun);
  font-size: 24px;
  animation: toast-in 0.5s cubic-bezier(.3, 1.6, .5, 1);
}
.toast .big { font-size: 46px; animation: spin-in 0.9s ease-out; }
@keyframes toast-in { from { transform: translateY(120px) scale(0.6); opacity: 0; } }
@keyframes spin-in { from { transform: rotate(-360deg) scale(0); } }

/* ---------- bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0 12%, rgba(255, 255, 255, 0.08) 13%);
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translate(var(--drift, 30px), calc(-100vh - 120px)); }
}

/* ---------- warp (random episode) ---------- */
.warp { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 50%, #2a7fd1, #08214a 75%); overflow: hidden; }
.warp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.warp-title { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: clamp(30px, 5vw, 56px); z-index: 2; margin: 0; pointer-events: none; }
.warp-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.warp-flash.go { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.warp-reveal {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  z-index: 3;
  width: min(720px, calc(100% - 32px));
  padding: 16px 22px 20px;
  border-radius: 28px;
  border: 5px solid var(--ink);
  background: var(--card);
  box-shadow: 0 8px 0 var(--ink);
  text-align: center;
  animation: toast-in 0.55s cubic-bezier(.3, 1.6, .5, 1);
}
.warp-reveal .label { font-weight: 700; color: var(--krab); font-size: 18px; }
.warp-reveal .title { font-family: var(--font-fun); font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin: 4px 0 8px; }
.warp-reveal .summary { margin: 0 0 14px; font-size: 18px; line-height: 1.35; max-height: 4.1em; overflow: hidden; }
.warp-reveal .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- magic conch ---------- */
.conch-stage { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 24px; align-items: center; }
.conch-svg { width: 100%; height: auto; touch-action: none; user-select: none; cursor: grab; }
.conch-svg.wobble .shell { animation: wobble 0.9s ease-in-out; transform-box: fill-box; transform-origin: 50% 80%; }
@keyframes wobble { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.speech {
  position: relative;
  min-height: 120px;
  padding: 22px 26px;
  border-radius: 32px;
  border: 5px solid var(--ink);
  background: #fff;
  box-shadow: 0 7px 0 var(--ink);
  font-family: var(--font-fun);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  color: #b5179e;
}
.speech::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 40px;
  border: 14px solid transparent;
  border-right: 22px solid var(--ink);
}
.speech.pop { animation: toast-in 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- quiz ---------- */
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.quiz-card { display: grid; gap: 16px; }
.quiz-prompt { font-family: var(--font-fun); font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.quiz-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 4px solid var(--ink); background: #cde; }
.quiz-text { font-size: 22px; line-height: 1.45; margin: 0; padding: 16px 20px; border-radius: 18px; background: #eef7ff; border: 3px dashed var(--sea-2); }
.quiz-audio { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; padding: 26px 12px; border-radius: 18px; background: linear-gradient(135deg, #3a0ca3, #4361ee); }
.quiz-audio .wave { display: flex; gap: 6px; align-items: center; height: 70px; }
.quiz-audio .wave i { width: 10px; height: 20%; border-radius: 6px; background: var(--sponge); }
.quiz-audio.playing .wave i { animation: eq 0.5s ease-in-out infinite alternate; }
.quiz-audio .wave i:nth-child(2n) { animation-delay: -0.2s; } .quiz-audio .wave i:nth-child(3n) { animation-delay: -0.35s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answer {
  min-height: 76px;
  padding: 12px 16px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 0 6px 0 var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.08s;
}
.answer:active { transform: translateY(4px); }
.answer.right { background: #7ee08f; animation: pop 0.4s; }
.answer.wrong { background: #ff9b9b; animation: shake 0.4s; }
.answer:disabled { cursor: default; }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.puff { text-align: center; }
.puff .face { font-size: 110px; line-height: 1; transition: transform 0.3s; display: inline-block; margin: 10px 0 22px; }
.puff .face.puffed { transform: scale(1.35); }
.puff .says { font-weight: 700; font-size: 20px; min-height: 2.6em; }
.streak { font-family: var(--font-fun); font-size: 46px; color: var(--krab); }
.level { font-weight: 700; }
.result { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink); }

/* ---------- games ---------- */
.game-hud { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hud-pill { padding: 8px 18px; border-radius: 999px; background: #fff; border: 4px solid var(--ink); font-family: var(--font-fun); font-size: 26px; }
.timer-bar { flex: 1; min-width: 160px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, 0.6); border: 4px solid var(--ink); overflow: hidden; }
.timer-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2bb673, #ffe14d); transition: width 0.2s linear; }
.game-over { text-align: center; display: grid; gap: 14px; justify-items: center; }
.game-over .score { font-family: var(--font-fun); font-size: 72px; color: var(--krab); }

.krabby { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
.ticket {
  background: #fffef2;
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  background-image: repeating-linear-gradient(#fffef2 0 31px, #cfe3f5 31px 33px);
  transform: rotate(-1.5deg);
}
.ticket .who { font-size: 46px; text-align: center; }
.ticket ol { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.ticket li { font-weight: 600; font-size: 19px; display: flex; gap: 8px; align-items: center; height: 31px; }
.ticket li.done { text-decoration: line-through; opacity: 0.5; }
.ticket li.next { color: var(--krab); font-weight: 700; }
.grill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 330px; padding: 20px; border-radius: 24px; background: linear-gradient(#ffe8b0, #f2c879); border: 5px solid #fff; }
.plate { width: 300px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #9ab; margin-top: -4px; }
.stack { display: flex; flex-direction: column-reverse; align-items: center; }
.layer { width: 230px; margin-top: -4px; animation: drop 0.25s ease-in; border: 3px solid rgba(0, 0, 0, 0.25); }
@keyframes drop { from { transform: translateY(-120px); opacity: 0.4; } }
.l-bottom { height: 30px; background: #e9a54c; border-radius: 8px 8px 40px 40px; }
.l-top { height: 56px; background: radial-gradient(circle, #fff7d6 0 3px, transparent 4px) 0 0 / 22px 16px, #e9a54c; border-radius: 120px 120px 10px 10px; }
.l-patty { height: 26px; background: #6b3a1d; border-radius: 14px; width: 240px; }
.l-cheese { height: 14px; background: #ffd23f; width: 246px; clip-path: polygon(0 0, 100% 0, 100% 60%, 85% 100%, 70% 55%, 50% 100%, 30% 55%, 14% 100%, 0 55%); border: none; }
.l-lettuce { height: 16px; background: #57cc5b; width: 250px; clip-path: polygon(0 30%, 6% 0, 12% 40%, 18% 0, 24% 40%, 30% 0, 36% 40%, 42% 0, 48% 40%, 54% 0, 60% 40%, 66% 0, 72% 40%, 78% 0, 84% 40%, 90% 0, 96% 40%, 100% 10%, 100% 100%, 0 100%); border: none; }
.l-tomato { height: 14px; background: #e63946; border-radius: 10px; width: 220px; }
.l-onion { height: 12px; background: repeating-linear-gradient(90deg, #f5e6ff 0 22px, #c77dff 22px 26px); border-radius: 10px; }
.l-pickles { height: 14px; background: radial-gradient(circle, #8bc34a 0 7px, #4b7a1e 8px 9px, transparent 10px) 0 0 / 28px 14px; width: 220px; border: none; }
.l-ketchup { height: 10px; background: #c1121f; border-radius: 99px; width: 200px; }
.l-mustard { height: 10px; background: #f4c430; border-radius: 99px; width: 190px; }
.bins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bin {
  min-height: 86px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
}
.bin:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.bin .mini { width: 70px; margin: 0; animation: none; transform: none; border-width: 2px; }
.bin kbd { font-size: 12px; color: var(--ink-soft); font-family: var(--font-body); }
.plankton { position: absolute; width: 90px; cursor: pointer; z-index: 3; animation: sneak 0.5s ease-out; touch-action: manipulation; }
@keyframes sneak { from { transform: scale(0) rotate(-180deg); } }
.say { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; font-family: var(--font-fun); font-size: 30px; color: #fff; white-space: nowrap; animation: toast-in 0.4s;
  text-shadow: 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 0 5px 0 var(--ink); }
.shake { animation: shake 0.35s; }

.jelly-wrap { position: relative; border-radius: 26px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2); }
.jelly-wrap canvas { display: block; width: 100%; aspect-ratio: 16 / 9; touch-action: none; cursor: none; }
.overlay-center { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 30, 60, 0.45); }

/* ---------- stickers ---------- */
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sticker {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 24px;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
}
.sticker .em { font-size: 58px; line-height: 1.1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.2)); }
.sticker .nm { font-weight: 700; font-size: 17px; line-height: 1.15; }
.sticker .ht { font-size: 14px; color: var(--ink-soft); }
.sticker.locked { background: rgba(255, 255, 255, 0.55); border-style: dashed; }
.sticker.locked .em { filter: grayscale(1) brightness(0.3) opacity(0.35); }
.season-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.season-bar { display: grid; gap: 4px; font-weight: 700; }
.season-bar .meter { height: 18px; background: rgba(0, 0, 0, 0.12); border: 3px solid var(--ink); }
.season-bar .meter span { background: var(--c); }
.scores { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- maker ---------- */
.maker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.maker-canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; border: 6px solid #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2); background: #fff; display: block; }
.controls { display: grid; gap: 14px; }
.controls label { font-weight: 700; display: grid; gap: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--krab); transform: scale(1.1); }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.stamps button { font-size: 32px; width: 56px; height: 56px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .conch-stage, .quiz-layout, .maker-layout, .krabby { grid-template-columns: minmax(0, 1fr); }
  .speech::before { display: none; }
  .bins { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 700px), (max-height: 480px) {
  .map-wrap { height: auto; min-height: 0; padding: 16px; }
  .map-wrap svg.map { display: none; }
  .greeting, .home-cards { position: static; margin-bottom: 14px; align-items: stretch; max-width: none; }
  .map-list { display: grid; gap: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .answers { grid-template-columns: 1fr; }
  .bins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .round-btn { width: 52px; height: 52px; font-size: 24px; }
  .sticker-pill { font-size: 19px; padding: 8px 12px; }
  .eotd { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}
/* ---------- login (away from home) ---------- */
.login-main { position: relative; z-index: 1; display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: min(520px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; }
.login-pineapple { font-size: 84px; line-height: 1; }
.login-title { margin: 0; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; }
.login-label { margin: 0; font-size: 22px; font-weight: 600; }
.login-card input[type="password"] { width: 100%; text-align: center; }
.login-wrong { margin: 0; color: var(--bad); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bubbles { display: none; }
}
