/* Cole Academy — bright, chunky, tap-friendly. Self-contained; no web fonts. */

:root {
  --ink: #1d1b2f;
  --paper: #fff8e7;
  --sun: #ffd23f;
  --white: #ffffff;
  --line: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 27, 47, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  font-size: 20px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ── Header ─────────────────────────────────────────── */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--sun);
  border-bottom: var(--line);
}

.crest {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.crest-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 32px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transform: rotate(-8deg);
}

.crest-name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tabs { display: flex; flex-wrap: wrap; gap: 10px; }

.tab {
  padding: 10px 16px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}

.tab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tab.on { background: var(--ink); color: var(--white); box-shadow: none; transform: translate(4px, 4px); }

/* ── Layout ─────────────────────────────────────────── */

.page {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.page-title { font-size: clamp(34px, 6vw, 52px); font-weight: 900; margin: 0 0 4px; line-height: 1.1; }
.page-sub { font-size: 22px; margin: 0 0 28px; }
.section-title { font-size: 32px; font-weight: 900; margin: 40px 0 16px; }

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  background: var(--white);
  border-top: var(--line);
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 900;
  text-decoration: none;
  background: var(--ink);
  color: var(--white);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 #ff6b6b;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #ff6b6b; }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-big { font-size: 24px; padding: 18px 34px; }

/* ── Home ───────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 44px 20px 48px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-kicker { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-title {
  margin: 4px 0 8px;
  font-size: clamp(48px, 11vw, 96px);
  font-weight: 900;
  line-height: 1;
  color: #4d96ff;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.hero-sub { margin: 0 0 28px; font-size: 24px; }

.fact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 18px 24px;
  background: #c8f7c5;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact-icon { font-size: 44px; }
.fact-label { margin: 0; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.fact-text { margin: 2px 0 0; font-size: 24px; font-weight: 800; }

.studio-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 20px 24px;
  font-size: 22px;
  text-decoration: none;
  background: #ffd6e8;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.studio-teaser:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.teaser-emoji { font-size: 48px; }

/* ── Class cards ────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px;
  text-decoration: none;
  background: var(--c, var(--white));
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}

.card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.card:active { transform: translate(4px, 4px); box-shadow: none; }

.card-emoji {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  font-size: 40px;
  background: var(--white);
  border: var(--line);
  border-radius: 18px;
}

.card-name { margin-top: 8px; font-size: 26px; font-weight: 900; color: var(--white); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.card-blurb { font-size: 18px; font-weight: 700; background: var(--white); padding: 4px 10px; border-radius: 10px; border: 3px solid var(--ink); }
.card-count { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Class page ─────────────────────────────────────── */

.back {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 14px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.class-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.class-head .page-sub { margin: 0; }

.class-emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  font-size: 56px;
  background: var(--c);
  border: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lesson {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--white);
  border: var(--line);
  border-top: 16px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lesson-title { margin: 0 0 18px; font-size: 30px; font-weight: 900; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.step:hover { transform: translateX(4px); }

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-weight: 900;
  color: var(--white);
  background: var(--c);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.step-text { flex: 1; }

.step-check {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: transparent;
  border: 3px dashed var(--ink);
  border-radius: 10px;
}

.step[aria-pressed="true"] { background: #c8f7c5; }
.step[aria-pressed="true"] .step-text { text-decoration: line-through; text-decoration-thickness: 3px; }
.step[aria-pressed="true"] .step-check { color: var(--white); background: #2fa84f; border-style: solid; }

.lesson-done {
  margin: 20px 0 0;
  padding: 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  background: var(--sun);
  border: var(--line);
  border-radius: 16px;
  animation: pop 0.35s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Studio ─────────────────────────────────────────── */

.coming-soon {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.coming-soon h2 { font-size: 40px; margin: 20px 0 6px; font-weight: 900; }
.coming-soon p { margin: 0; font-size: 22px; }

.filmstrip {
  display: inline-flex;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ink);
  border-radius: 10px;
  background-image:
    repeating-linear-gradient(90deg, var(--paper) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(90deg, var(--paper) 0 10px, transparent 10px 22px);
  background-size: 100% 6px, 100% 6px;
  background-position: 0 4px, 0 calc(100% - 4px);
  background-repeat: no-repeat;
  background-color: var(--ink);
}

.filmstrip span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 52px;
  font-size: 32px;
  background: var(--paper);
  border-radius: 6px;
  animation: frame 1.6s steps(1) infinite;
}

.filmstrip span:nth-child(2) { animation-delay: 0.4s; }
.filmstrip span:nth-child(3) { animation-delay: 0.8s; }
.filmstrip span:nth-child(4) { animation-delay: 1.2s; }

@keyframes frame {
  0% { background: var(--sun); }
  25% { background: var(--paper); }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video { margin: 0; }

.video-frame {
  aspect-ratio: 16 / 9;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video figcaption { margin-top: 12px; font-size: 22px; font-weight: 900; }

/* ── Small screens ──────────────────────────────────── */

@media (max-width: 600px) {
  body { font-size: 18px; }
  .top { justify-content: center; }
  .tab { font-size: 16px; padding: 8px 12px; }
  .class-head { flex-direction: column; align-items: flex-start; }
  .step { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ══ Bounce House app ═══════════════════════════════════ */

.bh {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.bh-screen { display: none; }
.bh-screen.is-on { display: block; }
.bh-screen.pop-in { animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bh-title { margin: 0 0 18px; text-align: center; font-size: clamp(30px, 5vw, 44px); font-weight: 900; }
.bh-hint { margin: 16px 0 10px; text-align: center; font-size: 22px; font-weight: 800; }
.bh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }

.btn-alt { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 20px; }
.btn-alt:hover { box-shadow: 6px 6px 0 var(--ink); }
button.btn { font-family: inherit; cursor: pointer; }

/* App icon (home tile + push button) */
.app-icon {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #bfe6ff;
  border: var(--line);
  border-radius: 28%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.app-icon .bh-icon { width: 100%; height: 100%; display: block; }
.app-icon:hover { transform: translate(-3px, -3px) rotate(-3deg); box-shadow: 9px 9px 0 var(--ink); }
.app-icon:active { transform: translate(5px, 5px) scale(0.94); box-shadow: none; }

#scrPush { text-align: center; padding: 40px 0 30px; }
.app-icon-xl { width: min(240px, 60vw); height: min(240px, 60vw); margin: 0 auto; animation: breathe 1.6s ease-in-out infinite; }
.app-icon-xl.boom { animation: boom 0.42s ease-in forwards; }
.push-label { margin: 22px 0 0; font-size: 48px; font-weight: 900; letter-spacing: 0.06em; animation: hop 0.8s ease-in-out infinite; }

@keyframes breathe { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.07) rotate(2deg); } }
@keyframes boom { 0% { transform: scale(1); } 35% { transform: scale(0.82); } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Design screen */
.design { display: grid; grid-template-columns: minmax(200px, 1fr) 1.3fr; gap: 24px; align-items: center; }
.preview-box {
  background: #bfe6ff;
  border: var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
#preview { display: block; width: 100%; max-height: 340px; }
.preview-char { animation: wiggle 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }

.kind-row { display: flex; gap: 12px; margin-bottom: 8px; }
.kind-btn {
  flex: 1;
  padding: 14px;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.kind-btn.on { background: var(--sun); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.pick-label { margin: 12px 0 6px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.swatches, .palette { display: flex; flex-wrap: wrap; gap: 10px; }
.palette { justify-content: center; }

.swatch {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { transform: scale(1.18); box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--ink); }
.swatch-lg { width: 56px; height: 56px; }
.swatch-rainbow { background: conic-gradient(#FF6B6B, #FF9F1C, #FFD23F, #6BCB77, #4D96FF, #9B5DE5, #FF6B6B); }

/* Scene */
.scene-box { border: var(--line); border-radius: var(--radius); overflow: hidden; background: #bfe6ff; }
#scene { display: block; width: 100%; height: auto; max-height: 68vh; cursor: pointer; }
#scene .part { cursor: pointer; transition: filter 0.15s; }
#scene .part:hover { filter: brightness(1.08); }
#scene .part.painted { animation: painted 0.35s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes painted { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

#floor.wobble { animation: wobble 0.45s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes wobble {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.03, 0.78); }
  60% { transform: scale(0.99, 1.08); }
  100% { transform: scale(1, 1); }
}
#house.jiggle { animation: jiggle 0.45s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes jiggle { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.01, 0.975); } 60% { transform: scale(0.995, 1.01); } }

.cloud { animation: drift 18s ease-in-out infinite alternate; }
.cloud-b { animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

.bouncer { cursor: pointer; }

.pop-word {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 900;
  text-anchor: middle;
  stroke: var(--ink);
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: word 0.95s ease-out forwards;
}
@keyframes word {
  0% { transform: scale(0.2); opacity: 0; }
  20% { transform: scale(1.2); opacity: 1; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

.confetti {
  position: fixed;
  z-index: 50;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 3px;
  pointer-events: none;
  animation: conf 0.95s ease-out forwards;
}
@keyframes conf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Home: play tiles */
.play-row { display: flex; flex-wrap: wrap; gap: 26px; }
.play-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 900; }
.play-tile .app-icon { width: 130px; height: 130px; }

@media (max-width: 700px) {
  .bh { padding: 14px; }
  .design { grid-template-columns: 1fr; }
  #preview { max-height: 240px; }
  .swatch { width: 42px; height: 42px; }
  .swatch-lg { width: 46px; height: 46px; }
}

/* ══ Reading room ═══════════════════════════════════════ */

.app-icon-emoji { font-size: 64px; line-height: 1; }

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 24px 18px 24px 34px;
  text-align: center;
  text-decoration: none;
  background: var(--c);
  border: var(--line);
  border-radius: 10px 22px 22px 10px;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.book-cover:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 9px 9px 0 var(--ink); }
.book-cover:active { transform: translate(4px, 4px); box-shadow: none; }

.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: rgba(0, 0, 0, 0.18);
  border-right: 4px solid var(--ink);
  border-radius: 6px 0 0 6px;
}

.book-emoji {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  font-size: 58px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
}

.book-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}

.book-pages { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }

.book-star {
  position: absolute;
  top: -18px;
  right: -14px;
  font-size: 44px;
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: hop 1.4s ease-in-out infinite;
}

/* Reader */
.reader {
  background: var(--white);
  border: var(--line);
  border-top: 18px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 22px;
  touch-action: pan-y;
}

.reader-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.reader-title { font-size: 28px; font-weight: 900; }
.reader-count { font-size: 18px; font-weight: 800; opacity: 0.7; }

.reader-page { padding: 10px 0 0; }
.reader-page.turn { animation: turn 0.35s ease-out; }
@keyframes turn { from { transform: translateX(30px) rotate(1deg); opacity: 0; } to { transform: none; opacity: 1; } }

.reader-art {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 240px;
  margin: 12px 0 18px;
  background: color-mix(in srgb, var(--c) 18%, white);
  border: var(--line);
  border-radius: var(--radius);
  font-size: clamp(80px, 16vw, 140px);
  line-height: 1;
}

.art-bit { display: inline-block; animation: artIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes artIn { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1) rotate(0); } }

.reader-text {
  margin: 0;
  text-align: center;
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 800;
  line-height: 1.5;
}

.word {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.word:hover { background: var(--paper); }
.word.lit { background: var(--sun); box-shadow: 0 0 0 3px var(--ink); transform: scale(1.08); }

.reader-end { text-align: center; padding: 20px 0 6px; }
.reader-end h2 { margin: 6px 0; font-size: clamp(44px, 9vw, 72px); font-weight: 900; }
.reader-end p { margin: 0; font-size: 26px; }
.end-stars { font-size: 56px; animation: hop 1s ease-in-out infinite; }

.reader-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.nav-btn {
  width: 78px;
  height: 78px;
  font-size: 34px;
  color: var(--white);
  background: var(--c);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-btn:active { transform: translate(4px, 4px); box-shadow: none; }
.nav-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }

.read-btn { font-size: 22px; }

.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dot { width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); }
.dot.on { background: var(--c); transform: scale(1.3); }
.dot-end { border-radius: 3px; }

@media (max-width: 600px) {
  .reader { padding: 16px; }
  .reader-art { min-height: 170px; }
  .nav-btn { width: 64px; height: 64px; font-size: 28px; }
  .read-btn { font-size: 18px; padding: 12px 16px; white-space: nowrap; }
}

/* ══ Potion Lab ═════════════════════════════════════════ */

.lab-stage { position: relative; border: var(--line); border-radius: var(--radius); overflow: hidden; background: #d9f2ef; }
#lab { display: block; width: 100%; height: auto; max-height: 66vh; }
#lab .tube { cursor: pointer; }
#lab .tube:hover .tube-liquid { filter: brightness(1.15); }
#sciBody { cursor: pointer; }

#lab .extra { display: none; }

.bub { animation: bub 0.9s ease-out forwards; }
@keyframes bub { to { transform: translateY(-90px); opacity: 0; } }

#flask.shake { animation: flaskShake 0.12s linear infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flaskShake { 0% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 100% { transform: rotate(-4deg); } }

.say-word {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 900;
  text-anchor: middle;
  stroke: var(--ink);
  stroke-width: 7px;
  paint-order: stroke;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: sayIt 2.3s ease-out forwards;
}
@keyframes sayIt {
  0% { transform: scale(0.2); opacity: 0; }
  10% { transform: scale(1.15); opacity: 1; }
  20% { transform: scale(1); }
  80% { opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* The scientist pivots around his feet */
#sci { transform-box: view-box; transform-origin: 640px 480px; }
#hair { transform-box: fill-box; transform-origin: 50% 100%; }
#frog { transform-box: fill-box; transform-origin: 50% 100%; }

@keyframes rainbowFill {
  0% { fill: #FF6B6B; } 20% { fill: #FFD23F; } 40% { fill: #6BCB77; }
  60% { fill: #4D96FF; } 80% { fill: #9B5DE5; } 100% { fill: #FF6B6B; }
}

/* frog */
.fx-frog #sciBody, .fx-frog #goggles { animation: shrinkAway 0.4s forwards; transform-box: view-box; transform-origin: 640px 480px; }
.fx-frog #frog { display: inline; animation: popUp 0.4s 0.35s both, frogHop 0.6s 0.9s infinite; }
@keyframes shrinkAway { to { transform: scale(0); } }
@keyframes popUp { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes frogHop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(0) scale(1.15, 0.85); } 60% { transform: translateY(-60px) scale(0.9, 1.1); } }

/* float */
.fx-float #balloons { display: inline; }
.fx-float #sci { animation: floatUp 2.9s ease-in-out forwards; }
@keyframes floatUp { 0% { transform: translateY(0); } 40% { transform: translateY(-170px); } 60% { transform: translateY(-140px) rotate(4deg); } 80% { transform: translateY(-180px) rotate(-4deg); } 100% { transform: translateY(-160px); } }

/* crazy hair */
.fx-hair #hair { animation: hairGrow 0.8s forwards; }
.fx-hair #hair circle { animation: rainbowFill 0.8s linear infinite; }
@keyframes hairGrow { to { transform: scale(2.3); } }

/* invisible */
.fx-invisible #sciBody { animation: fadeOut 1.2s forwards; }
.fx-invisible .pupil { animation: lookAround 1s ease-in-out infinite alternate; }
@keyframes fadeOut { to { opacity: 0.04; } }
@keyframes lookAround { from { transform: translateX(-6px); } to { transform: translateX(4px); } }

/* rocket */
.fx-rocket #flames { display: inline; animation: flicker 0.08s infinite alternate; }
.fx-rocket #sci { animation: blastOff 2.8s ease-in forwards; }
@keyframes flicker { from { opacity: 1; } to { opacity: 0.6; } }
@keyframes blastOff { 0% { transform: translateY(0); } 25% { transform: translateY(8px) scale(1.05, 0.92); } 35% { transform: translateY(0); } 100% { transform: translateY(-760px); } }

/* shrink */
.fx-shrink #sci { animation: shrink 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes shrink { to { transform: scale(0.28); } }

/* disco */
.fx-disco #sci { animation: dance 0.4s ease-in-out infinite alternate; }
.fx-disco #coat { animation: rainbowFill 0.8s linear infinite; }
.fx-disco #sparkles { display: inline; }
@keyframes dance { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-14px); } }

/* giant */
.fx-giant #sci { animation: giant 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes giant { to { transform: scale(1.6); } }

/* dizzy */
.fx-spin #sci { animation: spinY 0.45s linear infinite; }
.fx-spin #dizzy { display: inline; }
@keyframes spinY { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }

/* bubble */
.fx-bubble #bubble { display: inline; }
.fx-bubble #sci { animation: bubbleFloat 2.9s ease-in-out forwards; }
@keyframes bubbleFloat { 0% { transform: translateY(0) scale(0.9); } 30% { transform: translateY(-90px) scale(0.75); } 60% { transform: translateY(-120px) scale(0.78) rotate(6deg); } 100% { transform: translateY(-110px) scale(0.75) rotate(-6deg); } }

/* kaboom */
.fx-kaboom #soot, .fx-kaboom #smoke { display: inline; }
.fx-kaboom #smoke { animation: puff 1.2s ease-out forwards; transform-box: fill-box; transform-origin: center; }
.fx-kaboom #hair { animation: frazzle 0.5s forwards; }
.fx-kaboom #hair circle { fill: #555; }
@keyframes puff { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0.25; } }
@keyframes frazzle { to { transform: scale(1.6) rotate(8deg); } }
.lab-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.lab-flash.go { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 1; background: #fff6c2; } 100% { opacity: 0; } }
.lab-stage.quake { animation: quake 0.6s linear; }
@keyframes quake {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-12px, 6px); } 20% { transform: translate(10px, -8px); }
  30% { transform: translate(-8px, -4px); } 40% { transform: translate(8px, 8px); } 50% { transform: translate(-6px, 2px); }
  60% { transform: translate(4px, -4px); } 80% { transform: translate(-2px, 2px); }
}

/* hiccup */
.fx-hiccup #sci { animation: hic 0.9s ease-out 3; }
@keyframes hic { 0%, 100% { transform: translateY(0); } 12% { transform: translateY(-40px) scale(1.04, 0.96); } 30% { transform: translateY(0); } }

/* Result card */
.lab-result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(29, 27, 47, 0.35);
}
.lab-result[hidden] { display: none !important; }
.result-card {
  text-align: center;
  padding: 22px 30px 26px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
}
.result-new { margin: 0 0 4px; font-size: 20px; font-weight: 900; color: #e0457b; }
.result-emoji { font-size: 90px; line-height: 1.1; }
.result-name { margin: 4px 0 10px; font-size: 38px; font-weight: 900; }
.result-recipe { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 18px; }

.rdot { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--ink); border-radius: 50%; font-size: 15px; font-weight: 900; }
.rdot-any { background: conic-gradient(#4cd964, #2f80ff, #ff3b3b, #a24bff, #4cd964); color: var(--white); -webkit-text-stroke: 1px var(--ink); }
.rplus { font-weight: 900; font-size: 20px; }

/* Discoveries */
.lab-disc-title { margin-top: 30px; }
.lab-disc-title span { font-size: 22px; padding: 4px 12px; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; vertical-align: middle; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.disc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  text-align: center;
  background: #eeeeee;
  border: 3px dashed var(--ink);
  border-radius: 16px;
  opacity: 0.7;
}
.disc.got { background: var(--paper); border-style: solid; opacity: 1; box-shadow: var(--shadow-sm); }
.disc-emoji { font-size: 44px; line-height: 1.1; }
.disc-name { font-size: 18px; font-weight: 900; }
.disc-recipe { display: flex; align-items: center; gap: 2px; }
.disc-recipe .rdot { width: 20px; height: 20px; border-width: 2px; font-size: 11px; }
.disc-recipe .rplus { font-size: 14px; }

button.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.play-row-big .play-tile .app-icon { width: 170px; height: 170px; }
.play-row-big .app-icon-emoji { font-size: 90px; }
.play-row-big .play-tile { font-size: 26px; }

/* ── Magic add-ins ──────────────────────────────────── */
#lab .jar { cursor: pointer; }
#lab .jar-inner { transition: transform 0.15s; transform-box: fill-box; transform-origin: 50% 100%; }
#lab .jar:hover .jar-inner { transform: translateY(-4px); }
#lab .jar-check { display: none; }
#lab .jar.on .jar-check { display: inline; }
#lab .jar.on .jar-inner { transform: translateY(-6px); }
#lab .jar.tip .jar-inner { animation: jarTip 0.6s ease-in-out; }
@keyframes jarTip { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(35deg); } }

.float-bit { animation: floatBob 1.4s ease-in-out infinite alternate; }
@keyframes floatBob { from { transform: translateY(0); } to { transform: translateY(-5px); } }

.add-glitter #glitterFx { display: inline; }
.glitter-bit { opacity: 0; animation: glitterFall 1.6s linear infinite; }
@keyframes glitterFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(320px) rotate(180deg); opacity: 0; }
}

.add-pepper #faceRed { display: inline; animation: redPulse 0.5s ease-in-out infinite alternate; }
.add-pepper #steam { display: inline; }
.add-pepper .puff { animation: puffUp 0.9s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.add-pepper .puff.p2 { animation-delay: 0.45s; }
@keyframes redPulse { from { fill-opacity: 0.3; } to { fill-opacity: 0.65; } }
@keyframes puffUp { 0% { transform: translateY(0) scale(0.5); opacity: 1; } 100% { transform: translateY(-50px) scale(1.6); opacity: 0; } }

.add-ice #iceBlock { display: inline; animation: iceIn 0.35s ease-out both, shiver 0.12s 0.4s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iceIn { from { transform: scale(1.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shiver { 0% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 100% { transform: translateX(-2px); } }

.add-duck #ducksFx { display: inline; }
#ducksFx text { animation: duckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both, duckBob 0.6s 0.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
#ducksFx text:nth-child(2) { animation-delay: 0.15s, 0.55s; }
#ducksFx text:nth-child(3) { animation-delay: 0.3s, 0.7s; }
#ducksFx text:nth-child(4) { animation-delay: 0.45s, 0.85s; }
#ducksFx text:nth-child(5) { animation-delay: 0.6s, 1s; }
#ducksFx text:nth-child(6) { animation-delay: 0.75s, 1.15s; }
@keyframes duckPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes duckBob { from { transform: rotate(-10deg); } to { transform: rotate(10deg) translateY(-6px); } }

.result-adds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 16px; }
.result-adds:empty { display: none; }
.add-chip { padding: 4px 12px; font-size: 18px; font-weight: 900; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; }

.addin-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.addin-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; background: #eeeeee; border: 3px dashed var(--ink); border-radius: 16px; opacity: 0.7;
}
.addin-badge.got { background: #fff3c4; border-style: solid; opacity: 1; box-shadow: var(--shadow-sm); }

/* ── Top shelf, ball, lava ──────────────────────────── */
#lab .top-item .jar-inner { animation: shelfWiggle 4s ease-in-out infinite; }
#lab .top-item:nth-child(2) .jar-inner { animation-delay: 1.3s; }
#lab .top-item:nth-child(3) .jar-inner { animation-delay: 2.6s; }
@keyframes shelfWiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(10deg); } }
#lab .top-item.on .jar-inner { animation: none; transform: translateY(-6px); }

#flask.lava-glow { filter: drop-shadow(0 0 14px #ff7a1a); }
.lava-bub { animation: lavaBub 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lava-bub.b2 { animation-delay: 0.4s; }
.lava-bub.b3 { animation-delay: 0.75s; }
@keyframes lavaBub { 0%, 100% { transform: scale(0.6); opacity: 0.6; } 50% { transform: scale(1.3); opacity: 1; } }

/* ── Microscope ─────────────────────────────────────── */
.scope { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(29, 27, 47, 0.45); z-index: 5; }
.scope[hidden] { display: none !important; }
.scope-card {
  position: relative;
  text-align: center;
  padding: 16px 22px 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scope-title { margin: 0 0 10px; font-size: 26px; font-weight: 900; }
.scope-hint { margin: 12px 0 8px; font-size: 22px; font-weight: 900; }
.scope-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; font: inherit; font-size: 22px; font-weight: 900;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; cursor: pointer;
}
.lens {
  position: relative;
  width: min(380px, 70vw, 52vh);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7), transparent 30%),
    radial-gradient(circle, #e9fbe4 0%, #c8f7c5 60%, #9ee69a 100%);
  border: 10px solid var(--ink);
  box-shadow: inset 0 0 0 8px #555, inset 0 0 40px rgba(0, 0, 0, 0.25);
}
.germ { position: absolute; font-size: clamp(34px, 7vw, 48px); line-height: 1; pointer-events: none; user-select: none; transition: opacity 0.35s, transform 0.35s; }
.germ.gone { opacity: 0; transform: translate(-50%, -50%) scale(2) rotate(90deg) !important; }
.nozzle { position: absolute; left: 50%; bottom: -6px; width: 44px; height: 34px; margin-left: -22px; background: #4D96FF; border: 4px solid var(--ink); border-radius: 12px 12px 0 0; pointer-events: none; }
.drop {
  position: absolute; font-size: 30px; line-height: 1; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.25s linear, top 0.25s linear;
}
.drop.splash { animation: splash 0.3s ease-out forwards; }
@keyframes splash { to { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }

/* ══ Park Builder ═══════════════════════════════════════ */
.park-stage { border: var(--line); border-radius: var(--radius); overflow: hidden; background: #c9c9c9; }
#park { display: block; width: 100%; height: auto; max-height: 68vh; touch-action: pan-y; }
#park .thing { touch-action: none; }
#park .thing { cursor: grab; }
#park .thing.lifted { cursor: grabbing; filter: drop-shadow(0 8px 4px rgba(0, 0, 0, 0.3)); }
#park.erasing .thing, #park.erasing .field-g { cursor: not-allowed; }
#park.erasing .thing:hover { opacity: 0.5; }
#park .pop > * { animation: popUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }

#park .running .legL { animation: legSwing 0.22s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
#park .running .legR { animation: legSwing 0.22s linear infinite alternate-reverse; transform-box: fill-box; transform-origin: 50% 0; }
#park .running .armL { animation: legSwing 0.22s linear infinite alternate-reverse; transform-box: fill-box; transform-origin: 100% 0; }
#park .running .armR { animation: legSwing 0.22s linear infinite alternate; transform-box: fill-box; transform-origin: 0 0; }
@keyframes legSwing { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }

.park-word { font-size: 30px; stroke-width: 6px; }

.scoreboard {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  width: fit-content; margin: 0 auto 14px; padding: 8px 22px;
  font-size: 30px; font-weight: 900; color: #fff;
  background: var(--ink); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.scoreboard b { display: inline-block; min-width: 40px; padding: 0 6px; text-align: center; background: #000; border-radius: 8px; color: #FFD23F; font-family: ui-monospace, monospace; }
.score-dash { color: #fff; }

.palette-park { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; }
.pal-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 6px;
  font: inherit; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.1s;
}
.pal-btn:hover { transform: translateY(-2px); }
.pal-btn.on { background: var(--sun); transform: translate(3px, 3px); box-shadow: none; }
.pal-btn.full { opacity: 0.45; }
.pal-icon { display: grid; place-items: center; height: 52px; }
.pal-icon svg { height: 52px; width: auto; max-width: 84px; }
.pal-emoji { font-size: 40px; line-height: 1; }
.pal-label { font-size: 14px; font-weight: 900; line-height: 1.1; text-align: center; }
.pal-count { position: absolute; top: -9px; right: -6px; min-width: 26px; padding: 1px 6px; font-size: 12px; font-weight: 900; background: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.pal-count:empty { display: none; }
.tool-btn.on { background: var(--sun); box-shadow: none; transform: translate(3px, 3px); }

/* ── Bigger ball + lava ─────────────────────────────── */
.trail { opacity: 0.35; animation: trailFade 0.42s linear forwards; }
@keyframes trailFade { to { opacity: 0; transform: scale(0.4); } }
#lab .trail { transform-box: fill-box; transform-origin: center; }
.ball-rumble { animation: ballRumble 0.08s linear infinite; }
@keyframes ballRumble { 0% { translate: -4px 0; } 50% { translate: 4px 0; } 100% { translate: -4px 0; } }
.flame-out, .flame-mid, .flame-in { animation: flicker 0.07s infinite alternate; }
.smoke-puff { fill: #d9d9d9; stroke: #1d1b2f; stroke-width: 3; animation: smokeOut 1.3s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes smokeOut { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.count-word { font-size: 110px; stroke-width: 10px; }

.lab-stage.quake-sm { animation: quakeSm 0.25s linear; }
@keyframes quakeSm { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-5px, 3px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, -2px); } }

#flask.rumble { animation: flaskRumble 0.07s linear infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flaskRumble { 0% { transform: rotate(-5deg) translateX(-3px); } 50% { transform: rotate(5deg) translateX(3px); } 100% { transform: rotate(-5deg) translateX(-3px); } }
#flask.lava-glow { filter: drop-shadow(0 0 22px #ff7a1a) drop-shadow(0 0 8px #ffd23f); }
.fountain-wobble { animation: fountainWobble 0.12s linear infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes fountainWobble { 0% { transform: scaleX(0.9); } 50% { transform: scaleX(1.15); } 100% { transform: scaleX(0.9); } }

.lava-waves { animation: lavaWave 2.2s linear infinite; }
@keyframes lavaWave { from { transform: translateX(0); } to { transform: translateX(200px); } }
#lavaSteam { display: none; }
#lavaSteam.on { display: inline; }
.steam { animation: steamUp 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.steam.s2 { animation-delay: 0.5s; }
.steam.s3 { animation-delay: 1s; }
@keyframes steamUp { 0% { transform: translateY(0) scale(0.5); opacity: 0.9; } 100% { transform: translateY(-90px) scale(2); opacity: 0; } }

/* ── Park: layout, My Parks, security board ─────────── */
.park-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: start; }
.my-parks {
  position: sticky; top: 12px;
  padding: 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.my-parks-title { margin: 0; font-size: 22px; font-weight: 900; }
.saved-note { margin: 2px 0 10px; font-size: 14px; font-weight: 800; opacity: 0.7; }
.saved-note.flash-saved { animation: savedFlash 1s ease-out; }
@keyframes savedFlash { 0% { color: #2fa84f; transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.new-park { width: 100%; font-size: 17px; padding: 10px; margin-bottom: 12px; }
.new-park:disabled { opacity: 0.4; }
.park-list { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; padding: 4px 4px 6px; }
.park-card { position: relative; }
.park-open {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 6px 6px 8px;
  font: inherit; color: var(--ink); text-align: left;
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  cursor: pointer; transition: transform 0.1s;
}
.park-open:hover { transform: translateY(-2px); }
.park-card.on .park-open { background: var(--sun); box-shadow: 4px 4px 0 var(--ink); }
.park-open .thumb { display: block; width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--ink); background: #c9c9c9; }
.park-name { font-size: 16px; font-weight: 900; }
.park-meta { font-size: 12px; font-weight: 800; opacity: 0.7; }
.park-del {
  position: absolute; top: -6px; right: -6px;
  min-width: 34px; height: 30px; padding: 0 6px;
  font: inherit; font-size: 13px; font-weight: 900;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}

.security-board {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin: 0 auto 12px; width: fit-content; padding: 6px 16px;
  font-size: 18px; font-weight: 900;
  background: #fff3c4; border: 3px solid var(--ink); border-radius: 999px;
}
.security-board b { display: inline-block; min-width: 24px; text-align: center; }
.sneaker.fleeing { transform-box: fill-box; transform-origin: center; animation: fleeShake 0.15s linear infinite; }
@keyframes fleeShake { 0% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } 100% { transform: rotate(-10deg); } }

@media (max-width: 900px) {
  .park-layout { grid-template-columns: 1fr; }
  .my-parks { position: static; }
  .park-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: visible; }
  .park-card { flex: 0 0 150px; }
}

/* Hot feet on the lava */
.lava-on.fx-frog #frog { animation: popUp 0.4s both, frogHopHot 0.45s infinite; }
@keyframes frogHopHot {
  0%, 100% { transform: translateY(0) scale(1.1, 0.9); }
  15% { transform: translateY(-10px) scale(0.95, 1.05); }
  50% { transform: translateY(-130px) scale(0.9, 1.12) rotate(-6deg); }
  85% { transform: translateY(-10px) scale(1, 1); }
}
.hero-sub:last-child { margin-bottom: 0; }

/* Footer links */
.bottom-links { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; justify-content: center; padding-top: 8px; border-top: 2px dashed rgba(29, 27, 47, 0.25); }
.bottom-links a { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bottom-links a:hover { color: #4d96ff; }
