/* drdirt.earth/slides: the booth microscope. Big type, read from the aisle. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(21px, 1.75vw, 30px);
  line-height: 1.4;
  background: #0d0b08;
  color: #23301f;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
h1, h2 { font-family: Fredoka, Nunito, system-ui, sans-serif; line-height: 1.05; margin: 0; }
button, input, label.chip-btn { font: inherit; }
button { cursor: pointer; }

/* ---------- Home: who it is, and a few facts ---------- */
.home { min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 20% 10%, #fff7e2 0%, #fffaf0 45%, #f3ead2 100%); display: flex; flex-direction: column; }
.bar { padding: 18px 24px 0; }
.to-site, .chip-btn {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .45em 1em; border-radius: 999px; text-decoration: none; font-weight: 800;
  font-size: .85em; white-space: nowrap;
}
.to-site { background: #2f7d3b; color: #fff; box-shadow: 0 6px 16px rgba(29, 79, 42, .25); font-size: 1em; padding: .5em 1.15em; }
.to-site:hover { background: #1d4f2a; }
.home-main { flex: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3vw; align-items: center; padding: 1vh 4vw 2vh; }
.home-art { margin: 0; text-align: center; }
.home-art img { width: 100%; max-height: 72vh; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(59, 42, 28, .25)); }
.home-art figcaption { font-weight: 800; color: #6b4c33; font-size: .8em; margin-top: .3em; }
.kicker { margin: 0 0 .2em; font-weight: 800; color: #2f7d3b; letter-spacing: .04em; text-transform: uppercase; font-size: .9em; }
.home h1 { font-size: clamp(52px, 5.6vw, 104px); color: #3b2a1c; }
.tagline { font-size: 1.15em; font-weight: 700; color: #1d4f2a; margin: .45em 0 .6em; }
.home .facts { margin: 0 0 1em; padding: 0; list-style: none; }
.home .facts li { position: relative; padding-left: 1.4em; margin: .35em 0; font-size: 1.05em; font-weight: 600; }
.home .facts li::before { content: "\1F331"; position: absolute; left: 0; top: 0; font-size: .9em; }
.start {
  border: 0; border-radius: 999px; padding: .7em 1.6em; font-size: 1.25em; font-weight: 800;
  color: #fff; background: linear-gradient(180deg, #4aa8de, #2b7fb3); box-shadow: 0 10px 24px rgba(43, 127, 179, .35);
  animation: breathe 2.4s ease-in-out infinite;
}
.start:hover { filter: brightness(1.08); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ask { font-weight: 800; color: #6b4c33; margin: .8em 0 0; }

/* ---------- The show: eyepiece and panel ---------- */
.show { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 40vw); color: #f3ead8; }
.stage { display: flex; align-items: center; justify-content: center; padding: 2vh 1vw; min-width: 0; position: relative; }
/* Dr. Dirt's knobs sit in the dark corners around the round view. */
.corner { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.corner.tl { top: 12px; left: 12px; align-items: flex-start; }
.corner.tr { top: 12px; right: 12px; align-items: flex-end; }
.corner.bl { bottom: 12px; left: 12px; align-items: flex-start; }
.corner.br { bottom: 12px; right: 12px; align-items: flex-end; }
.corner .chip-btn { padding: .38em .85em; background: rgba(20, 17, 12, .82); }
.corner .pair { display: flex; align-items: center; gap: 8px; }
.knob-bar { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.knob-bar .chip-btn { border-width: 1px; }
.tiny-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(247, 207, 106, .35); background: transparent; color: rgba(247, 207, 106, .7); font-size: 12px; line-height: 1; padding: 0; }
.tiny-btn:hover { background: rgba(247, 207, 106, .15); color: #f7cf6a; }
.icon-btn { font-size: 18px; padding: .2em .55em !important; }
.big-btn.side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 17px; }
.big-btn.side.left { left: 10px; }
.big-btn.side.right { right: 10px; }
.eyepiece {
  --d: min(calc(100vh - 4vh), calc(min(60vw, 100vw - 360px) - 150px));
  width: var(--d); height: var(--d); border-radius: 50%; position: relative; overflow: hidden;
  background: #e8e2d2; touch-action: none; cursor: grab; user-select: none;
  box-shadow: 0 0 0 8px #050505, 0 0 0 14px #1d1a15, 0 0 80px 30px rgba(0, 0, 0, .9);
}
@supports (height: 100dvh) { .eyepiece { --d: min(calc(100dvh - 4vh), calc(min(60vw, 100vw - 360px) - 150px)); } }
.eyepiece.dragging { cursor: grabbing; }
.field { position: absolute; inset: 0; }
.field img, .field video {
  position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 50% 50%;
  will-change: transform, filter; pointer-events: none; user-select: none;
  transition: opacity .35s ease;
}
.field img.moving, .field video.moving { opacity: 0; }
.glass {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .28) 76%, rgba(0, 0, 0, .75) 92%, #000 99.5%);
  box-shadow: inset 0 0 22px 5px rgba(90, 140, 255, .12), inset 0 0 6px 2px rgba(255, 170, 80, .15);
}
.panel { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 20px 22px 0 8px; display: flex; flex-direction: column; gap: .4em; }
.chip-btn { background: rgba(255, 255, 255, .08); color: #f3ead8; border: 2px solid rgba(255, 255, 255, .22); }
.chip-btn:hover { background: rgba(255, 255, 255, .16); }
.chip-btn[aria-pressed="true"] { background: #2f7d3b; border-color: #7fd18b; color: #fff; }
.panel .to-site, .panel a.chip-btn { color: #f3ead8; }
/* The name stays put; the words below it run to the bottom and scroll if they must. */
.name-head { flex: none; padding-bottom: .35em; border-bottom: 2px solid rgba(255, 255, 255, .1); }
.kind { margin: 0; display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.about { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 18px 0; }
.group { display: inline-block; padding: .15em .7em; border-radius: 999px; font-weight: 800; font-size: .8em; color: #111; background: #e0a526; }
.panel h2 { font-size: clamp(34px, 2.9vw, 54px); color: #fff; margin: .2em 0 .05em; }
.sub { margin: .5em 0 .2em; font-weight: 700; color: #f7cf6a; font-size: 1.05em; }
.sub:empty { display: none; }
.mag { font-weight: 700; color: #b9ae98; font-size: .85em; }
.caption { margin: .2em 0 .6em; font-size: 1em; }
.story { margin: .4em 0 0; line-height: 1.45; }
.story:empty { display: none; }
.credit { margin: .8em 0 0; font-size: 13px; color: #8f856f; line-height: 1.3; }
.credit a { color: inherit; }
.mine-tools { display: flex; gap: .5em; margin-top: .6em; flex-wrap: wrap; }

.big-btn { width: 2.9em; height: 2.9em; border-radius: 50%; border: 0; background: #f7cf6a; color: #2b2111; font-size: 1.05em; font-weight: 900; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.big-btn:hover { filter: brightness(1.08); }
.count { font-weight: 800; color: #8f856f; font-size: 12px; line-height: 1.25; white-space: pre-line; padding-left: 8px; }
.light-knob { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: #b9ae98; font-size: 15px; }
.light-knob input { width: 90px; accent-color: #f7cf6a; }
.scope-app { background: rgba(74, 168, 222, .18); border-color: rgba(74, 168, 222, .6); }

body.hide-cursor, body.hide-cursor * { cursor: none !important; }

/* ---------- All slides ---------- */
.drawer { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); z-index: 10; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 2vw; }
.drawer-box { background: #17130e; color: #f3ead8; width: min(1280px, 96vw); max-height: 94vh; overflow-y: auto; border-radius: 24px; padding: 18px 22px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.drawer-head { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; position: sticky; top: -18px; background: #17130e; padding: 6px 0 12px; z-index: 1; }
.drawer-head h2 { font-size: 1.6em; margin-right: auto; color: #fff; }
.add-mine { cursor: pointer; background: #2f7d3b; border-color: #7fd18b; color: #fff; }
.drawer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.slide-card { display: flex; flex-direction: column; align-items: center; gap: .35em; padding: 12px 8px; border-radius: 18px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); color: inherit; text-align: center; }
.slide-card:hover, .slide-card.on { border-color: #f7cf6a; background: rgba(247, 207, 106, .1); }
.slide-card .thumb { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #e8e2d2; box-shadow: 0 0 0 5px #050505, inset 0 0 18px rgba(0, 0, 0, .7); position: relative; }
.slide-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-card .thumb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .6) 96%); }
.slide-card b { font-size: .95em; line-height: 1.15; }
.slide-card small { color: #b9ae98; font-weight: 700; font-size: .75em; }
.slide-card .dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .3em; vertical-align: middle; }
.drawer-empty { color: #b9ae98; font-weight: 700; }

/* Short laptop screens: a little less text size so more of it shows. */
@media (max-height: 820px) { .about { font-size: .92em; } }

/* ---------- Phones and narrow windows ---------- */
@media (max-width: 860px) {
  .home-main { grid-template-columns: 1fr; text-align: center; }
  .home-art img { max-height: 34vh; }
  .home .facts li { text-align: left; }
  .show { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .eyepiece { --d: min(94vw, 62vh); }
  /* No room in the corners on a phone: the knobs sit above and below the view. */
  .stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "tl tr" "eye eye" "bl br"; gap: 10px; padding: 10px 3vw; }
  .stage .eyepiece { grid-area: eye; justify-self: center; }
  .corner { position: static; }
  .stage { grid-template-areas: "tl tl" "tr tr" "eye eye" "prev next" "bl br"; }
  .corner.tl { grid-area: tl; } .corner.tr { grid-area: tr; flex-direction: row; justify-self: start; } .corner.bl { grid-area: bl; } .corner.br { grid-area: br; }
  .big-btn.side { position: static; transform: none; }
  .big-btn.side.left { grid-area: prev; justify-self: start; } .big-btn.side.right { grid-area: next; justify-self: end; }
  .knob-bar { flex-wrap: wrap; border-radius: 18px; }
  .panel { padding: 12px 16px 24px; }
}

/* ---------- Booth signs: Dr. Dirt's switchboard ---------- */
.board { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); z-index: 12; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 2vw; }
.board-box { background: #120f0b; color: #f3ead8; width: min(1320px, 96vw); max-height: 94vh; overflow-y: auto; border-radius: 24px; padding: 16px 20px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border: 1px solid rgba(247, 207, 106, .2); }
.board-head { display: flex; align-items: center; gap: .4em 1em; flex-wrap: wrap; margin-bottom: 14px; }
.board-head h2 { font-size: 1.5em; color: #fff; }
.board-tip { margin: 0; margin-right: auto; color: #b9ae98; font-weight: 700; font-size: .7em; }
.pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pad { --c: #f7cf6a; position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25em; padding: 14px 12px; border-radius: 18px; border: 2px solid var(--c); color: #fff; text-align: center; font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.1; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 32%, #120f0b), #120f0b 75%); box-shadow: 0 0 0 0 var(--c), inset 0 0 24px rgba(0, 0, 0, .5); transition: transform .12s, box-shadow .2s; }
.pad:hover { transform: translateY(-2px); box-shadow: 0 0 22px -2px var(--c), inset 0 0 24px rgba(0, 0, 0, .5); }
.pad:active { transform: scale(.97); }
.pad .pad-icon { font-size: 40px; }
.pad .key { position: absolute; top: 8px; left: 10px; font-size: 13px; font-family: Nunito, sans-serif; font-weight: 800; color: var(--c); opacity: .85; }
.pad .drop { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; line-height: 1; padding: 0; }
.own { display: flex; gap: 10px; margin-top: 16px; font-size: 18px; }
.own input { flex: 1; min-width: 0; padding: .55em .9em; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-weight: 700; }

.sign { --c: #f7cf6a; position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6vh 6vw 10vh; background: #0b0906; overflow: hidden; cursor: pointer; user-select: none; }
.sign-glow { position: absolute; inset: -25%; background: radial-gradient(circle at 50% 45%, var(--c) 0%, rgba(0, 0, 0, 0) 55%); opacity: .45; animation: sign-glow 2.2s ease-in-out infinite alternate; }
.sign-icon { position: relative; font-size: clamp(90px, 16vh, 200px); line-height: 1; animation: sign-bob 1.6s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.sign-text { position: relative; margin: .15em 0 0; max-width: 15ch; font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: clamp(64px, 9.5vw, 210px); line-height: 1; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 50px var(--c); animation: sign-pop .7s cubic-bezier(.2, 1.6, .4, 1) both, sign-breathe 2.4s ease-in-out .7s infinite; }
.sign-sub { position: relative; margin: .5em 0 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 72px); color: var(--c); animation: sign-rise .8s ease-out .25s both; }
.sign-sub:empty { display: none; }
.sign-brand { position: absolute; bottom: 4.5vh; margin: 0; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: clamp(22px, 2.4vw, 46px); color: #f7cf6a; letter-spacing: .04em; }
.sign-time { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: rgba(255, 255, 255, .08); }
#sign-bar { height: 100%; width: 0; background: var(--c); }
@keyframes sign-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sign-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes sign-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes sign-glow { from { opacity: .3; transform: scale(.95); } to { opacity: .6; transform: scale(1.08); } }
@keyframes sign-rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign *, .sign-glow { animation: none !important; } }

/* ---------- All slides and Booth signs open over the words only ----------
   The microscope view keeps playing beside them; a booth sign still takes
   the whole screen when it's picked. */
.panel .drawer, .panel .board { position: absolute; inset: 0; z-index: 5; display: block; padding: 0; background: #0d0b08; }
.panel .drawer-box, .panel .board-box { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; border: 0; border-left: 2px solid rgba(247, 207, 106, .25); padding: 14px 16px 22px; overflow-y: auto; }
.panel .drawer-head { top: -14px; padding-top: 4px; }
.panel .drawer-head h2, .panel .board-head h2 { font-size: 1.15em; margin: 0 auto 0 0; }
.panel .drawer-head .chip-btn, .panel .board-head .chip-btn, .panel .own .chip-btn { font-size: 14px; }
.panel .drawer-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.panel .slide-card { padding: 8px 4px; border-radius: 14px; }
.panel .slide-card .thumb { width: 92px; height: 92px; box-shadow: 0 0 0 3px #050505, inset 0 0 12px rgba(0, 0, 0, .7); }
.panel .slide-card b { font-size: 14px; }
.panel .slide-card small { font-size: 12px; }
.panel .drawer-empty { font-size: 14px; }
.panel .board-head { margin-bottom: 10px; }
.panel .board-tip { flex-basis: 100%; font-size: 13px; }
.panel .pads { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; }
.panel .pad { min-height: 96px; font-size: 16px; padding: 10px 8px; border-radius: 14px; }
.panel .pad .pad-icon { font-size: 26px; }
.panel .own { font-size: 15px; margin-top: 12px; }
/* ---------- My 25 Microscope Slides (chart.js) ----------
   The chart kids pick from fills the screen; every box is a button to that
   slide's page. Cream like the printed chart, friendly and big. */
.chart-pad { grid-column: 1 / -1; flex-direction: row; gap: 18px; min-height: 120px; font-size: 30px; }
.chart-pad img { height: 96px; width: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.chart { position: fixed; inset: 0; z-index: 31; background: #fbf4e2; color: #3b2a1c; overflow: hidden; font-family: Nunito, sans-serif; }
.chart .chip-btn { background: #fff; color: #3b2a1c; border: 2px solid #e2d3b2; }
.chart-close { position: absolute; top: 12px; right: 14px; z-index: 2; font-size: 18px; }
.chart-grid { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1vh 2vw; }
.chart-board { position: relative; height: min(92vh, calc((100vw - 4vw) * 1029 / 768)); aspect-ratio: 768 / 1029; }
.chart-board img { width: 100%; height: 100%; display: block; border-radius: 14px; box-shadow: 0 10px 40px rgba(59, 42, 28, .25); user-select: none; }
.chart-spots { position: absolute; inset: 0; }
.chart-spot { --c: #5b9b3c; position: absolute; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.chart-spot:hover, .chart-spot:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 4px var(--c), 0 0 26px 6px var(--c); background: rgba(255, 255, 255, .12); outline: none; z-index: 1; }
.chart-spot:active { transform: scale(.97); }
.chart-tip { margin: .6vh 0 0; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: clamp(18px, 2.4vh, 28px); color: #7a5a2e; animation: sign-rise .8s ease-out both; }
.chart-page { --c: #5b9b3c; height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: 3vw; align-items: center; padding: 5vh 4vw 4vh; background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--c) 22%, #fbf4e2), #fbf4e2 60%); animation: page-in .45s ease-out both; }
.page-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-art img { width: 100%; max-width: 420px; max-height: 66vh; object-fit: contain; border-radius: 22px; border: 6px solid #fff; box-shadow: 0 14px 40px rgba(59, 42, 28, .3), 0 0 0 4px var(--c); animation: art-bob 3s ease-in-out infinite; }
.page-words { max-width: 760px; }
.page-tags { margin: 0 0 .3em; display: flex; gap: 10px; align-items: center; }
.page-num { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; border-radius: 50%; background: var(--c); color: #fff; font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 28px; }
.page-group { padding: 6px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--c); color: var(--c); font-weight: 800; font-size: 18px; }
.chart-page h2 { margin: 0 0 .25em; font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: clamp(36px, min(5.2vw, 8.5vh), 84px); line-height: 1; color: var(--c); text-shadow: 0 3px 0 rgba(255, 255, 255, .9); }
.chart-page h3 { margin: .8em 0 .3em; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: clamp(20px, min(2.2vw, 3.6vh), 34px); color: #3b2a1c; }
.page-what { margin: 0; font-size: clamp(18px, min(1.9vw, 3.1vh), 30px); line-height: 1.35; }
.page-see { list-style: none; margin: 0; padding: 0; display: grid; gap: min(10px, 1.2vh); }
.page-see li { display: flex; gap: 14px; align-items: center; padding: min(10px, 1.1vh) 16px; border-radius: 16px; background: #fff; border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); font-size: clamp(17px, min(1.7vw, 2.8vh), 27px); line-height: 1.25; animation: sign-rise .6s ease-out both; }
.see-icon { flex: none; font-size: 1.6em; line-height: 1; }
.page-fact { margin-top: min(18px, 2vh); display: flex; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 22px; background: #fff6d6; border: 3px dashed #e0a21b; }
.page-fact img { width: min(84px, 10vh); height: auto; flex: none; animation: art-bob 2.4s ease-in-out infinite; }
.page-fact p { margin: 0; font-size: clamp(17px, min(1.7vw, 2.8vh), 27px); line-height: 1.3; }
.page-fact b { color: #c47a00; font-family: Fredoka, Nunito, sans-serif; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-nav .chip-btn { font-size: 18px; padding: 10px 16px; }
.page-nav .all { background: var(--c); color: #fff; border-color: var(--c); }
@keyframes page-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes art-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@media (max-width: 760px), (orientation: portrait) {
  .chart-page { grid-template-columns: 1fr; align-items: start; padding-top: 64px; }
  .page-art img { max-width: 260px; max-height: 36vh; }
  .chart-page .page-nav { order: 9; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-page, .page-art img, .page-fact img, .page-see li, .chart-tip { animation: none; }
}