:root {
  --cream: #fff4e0;
  --card: #fffbf2;
  --ink: #3d2b22;
  --ink-soft: #6b5446;
  --sky: #a7d8ec;
  --sky-light: #ddf1f8;
  --mint: #9fd8b0;
  --mint-light: #d4eedb;
  --mint-deep: #3f8f63;
  --coral: #ee8e73;
  --coral-light: #f8d3c6;
  --coral-deep: #c45a43;
  --butter: #f7d774;
  --butter-light: #fbeab4;
  --peach: #f9c7a8;
  --lavender: #c9b8e8;
  --lavender-light: #e7def6;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Nunito", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wide: 1120px;
  --read: 680px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(61, 43, 34, 0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--coral-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px dashed var(--coral-deep); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; line-height: 1.6; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Header */
.site-header { background: var(--card); border-bottom: var(--line); position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-size: 26px; font-weight: 800; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 34px; height: 34px; flex: none; }
.wordmark .lockup { display: block; height: 36px; width: auto; }
.site-footer .wordmark .lockup { height: 30px; }
.site-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--round); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  padding: 6px 14px; border: 2.5px solid transparent; border-radius: 999px;
}
.site-nav a:hover { border-color: var(--ink); background: var(--butter-light); }
.site-nav a[aria-current="page"] { border-color: var(--ink); background: var(--butter); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--round); font-size: 17px; font-weight: 800; letter-spacing: 0.01em;
  padding: 11px 22px; border: var(--line); border-radius: 14px;
  background: var(--butter); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { color: var(--ink); background: #f9df8d; }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button.secondary { background: var(--card); }
.button.secondary:hover { background: var(--butter-light); }
.button.up { background: var(--mint); }
.button.up:hover { background: #b2e1c0; }
.button.down { background: var(--coral); }
.button.down:hover { background: #f2a38c; }
.button .tri { font-size: 13px; }
.textlink { font-family: var(--round); font-weight: 700; color: var(--ink); }

/* Panels (retro dialog boxes) */
.panel-box { background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 26px; }
.tag {
  display: inline-block; font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; margin: 0 0 14px;
}
.tag.sky { background: var(--sky-light); }
.tag.mint { background: var(--mint-light); }
.tag.coral { background: var(--coral-light); }
.tag.butter { background: var(--butter-light); }
.tag.lav { background: var(--lavender-light); }

/* Hero */
.hero { position: relative; background: var(--sky-light); border-bottom: var(--line); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 230px; }
.hero-card { max-width: 600px; }
.hero h1 { margin-bottom: 16px; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.sun { position: absolute; top: 34px; right: 9%; width: 96px; height: 96px; }
.cloud { position: absolute; width: 150px; height: 70px; }
.cloud.c1 { top: 40px; right: 30%; }
.cloud.c2 { top: 150px; right: 4%; width: 120px; }
.cloud.c3 { top: 22px; left: 46%; width: 110px; display: none; }
.ground { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .cloud.c1 { animation: drift 26s ease-in-out infinite alternate; }
  .cloud.c2 { animation: drift 32s ease-in-out infinite alternate-reverse; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
}

/* Sections */
.section { padding: 64px 0; }
.section-title { margin-bottom: 26px; }
.section-title p { margin: 10px 0 0; max-width: var(--read); }

.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.levels li { position: relative; padding-top: 30px; }
.coin {
  position: absolute; top: 0; left: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--butter); border: var(--line); display: grid; place-items: center;
  font-family: var(--round); font-weight: 800; font-size: 19px; z-index: 1;
}
.levels .panel-box { padding-top: 30px; height: 100%; }
.levels h3 { margin-bottom: 8px; }
.levels p { margin: 0; }

.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.area { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.area .icon { width: 64px; height: 64px; border: var(--line); border-radius: 16px; display: grid; place-items: center; }
.area .icon svg { width: 40px; height: 40px; }
.area h3 { font-size: 20px; margin-bottom: 4px; }
.area p { margin: 0 0 8px; font-size: 16px; }
.area.mint .icon { background: var(--mint-light); }
.area.butter .icon { background: var(--butter-light); }
.area.sky .icon { background: var(--sky-light); }
.area.coral .icon { background: var(--coral-light); }
.status { font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.status.live { color: var(--mint-deep); }

/* Game cartridges */
.carts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cart { position: relative; background: var(--card); border: var(--line); border-radius: 18px 18px 10px 10px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.cart .label { padding: 18px 22px 8px; border-bottom: var(--line); position: relative; min-height: 112px; }
.cart.mint .label { background: var(--mint-light); }
.cart.lav .label { background: var(--lavender-light); }
.cart.coral .label { background: var(--coral-light); }
.cart.butter .label { background: var(--butter-light); }
.cart.sky .label { background: var(--sky-light); }
.cart .label h3 { font-size: 22px; margin-bottom: 4px; }
.cart .label h3 a { color: var(--ink); text-decoration: none; }
.cart .label .meta { font-size: 14px; color: var(--ink-soft); margin: 0; }
.cart .body { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cart .body p { margin: 0; }
.cart .body .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.cart .ridges { position: absolute; top: 10px; right: 14px; display: flex; gap: 4px; }
.cart .ridges i { width: 6px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; background: var(--card); }
.stamp {
  font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2.5px dashed var(--ink-soft); color: var(--ink-soft); border-radius: 10px; padding: 4px 10px; transform: rotate(-3deg);
}

/* Principles */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 36px; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 2px dashed rgba(61, 43, 34, 0.25); }
.rules li:nth-last-child(-n+2) { border-bottom: 0; }
.check { width: 28px; height: 28px; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--mint); display: grid; place-items: center; margin-top: 2px; }
.check svg { width: 16px; height: 16px; }
.rules b { font-family: var(--round); font-weight: 800; font-size: 18px; display: block; }

/* Audience */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols h3 { font-size: 20px; margin-bottom: 8px; }
.cols p { margin: 0; font-size: 16px; }

/* Inner pages */
.page-head { padding: 52px 0 28px; }
.page-head h1 { font-size: 42px; margin-bottom: 12px; }
.prose { padding: 8px 0 72px; }
.prose .panel-box { padding: 30px 34px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.site-footer { position: relative; background: var(--ink); color: var(--cream); margin-top: 40px; padding: 70px 0 42px; font-size: 15px; }
.site-footer .hills { position: absolute; top: -38px; left: 0; width: 100%; height: 40px; display: block; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer .wordmark { color: var(--cream); font-size: 22px; }
.site-footer p { margin: 8px 0 0; color: #e9dcc8; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--cream); font-family: var(--round); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--butter); }

/* ---------- Game page ---------- */
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.game-meta { font-size: 15px; color: var(--ink-soft); margin: 0; }
.cabinet { background: var(--card); border: var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 32px; }
.cabinet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: var(--lavender-light); border-bottom: var(--line); }
.cabinet-top .title { font-family: var(--round); font-weight: 800; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); }
.dots i:nth-child(1) { background: var(--coral); }
.dots i:nth-child(2) { background: var(--butter); }
.dots i:nth-child(3) { background: var(--mint); }

.hud { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 18px 0; }
.hud .chip { display: flex; align-items: baseline; gap: 8px; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 12px; padding: 6px 14px; }
.hud .chip span { font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.hud .chip strong { font-family: var(--round); font-weight: 800; font-size: 22px; }

.game-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr;
  grid-template-areas: "board ctrl" "board talk"; column-gap: 26px; padding: 18px; align-items: start;
}
.board { grid-area: board; width: 100%; }
.ctrl { grid-area: ctrl; }
.talk { grid-area: talk; }
.chart { width: 100%; height: 92px; display: block; background: var(--sky-light); border: 2.5px solid var(--ink); border-radius: 12px; margin-bottom: 14px; }
.grid1024 { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; width: 100%; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px; }
.cell { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--peach); transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.2s ease; }
.cell.up { background: var(--mint-deep); }
.cell.down { background: var(--coral-deep); }
.cell.out { background: #eadfcd; transform: scale(0.55); opacity: 0.55; }
.cell.win { background: var(--butter); box-shadow: 0 0 0 2px var(--ink); transform: scale(1.35); position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .cell { transition: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l-up::before { background: var(--mint-deep); }
.legend .l-down::before { background: var(--coral-deep); }
.legend .l-out::before { background: #eadfcd; }
.legend .l-win::before { background: var(--butter); box-shadow: 0 0 0 2px var(--ink); }

.side .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; }
.side .controls .button { padding: 14px 10px; font-size: 18px; }
.keys { margin: 0 0 14px; }
.history-label { font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.history { font-size: 18px; letter-spacing: 0.06em; min-height: 28px; margin: 2px 0 0; }
.history .h-up { color: var(--mint-deep); }
.history .h-down { color: var(--coral-deep); }
.dialog { position: relative; margin-top: 16px; background: var(--card); border: var(--line); border-radius: 16px; padding: 14px 16px; font-size: 16px; box-shadow: var(--shadow-sm); }
.dialog .who { font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.dialog p:last-child { margin-bottom: 0; }
.post { margin: 12px 0 4px; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--butter-light); font-size: 15px; }
.post .avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--butter); border: 2.5px solid var(--ink); font-family: var(--round); font-weight: 800; font-size: 13px; margin-right: 8px; vertical-align: middle; }
.dialog .post .who { font-family: var(--round); font-weight: 800; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.mode-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.notice { font-size: 14px; color: var(--ink-soft); border-top: 2px dashed rgba(61, 43, 34, 0.25); padding-top: 12px; margin-top: 18px; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bump { animation: none; } }

@media (max-width: 920px) {
  h1 { font-size: 38px; }
  .levels, .cols { grid-template-columns: 1fr; gap: 26px; }
  .areas, .carts, .rules { grid-template-columns: 1fr; }
  .rules li:nth-last-child(2) { border-bottom: 2px dashed rgba(61, 43, 34, 0.25); }
  .game-layout { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "ctrl" "board" "talk"; row-gap: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .sun { right: 5%; width: 72px; height: 72px; }
  .cloud { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 31px; }
  h2 { font-size: 26px; }
  .lede { font-size: 17px; }
  .wordmark { font-size: 22px; }
  .wordmark .lockup { height: 30px; }
  .site-nav a { padding: 5px 10px; font-size: 14px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 170px; }
  .panel-box { padding: 20px; }
  .ground { height: 190px; width: 100%; }
  .sun { top: auto; bottom: 150px; right: 6%; width: 56px; height: 56px; }
  .section { padding: 46px 0; }
  .grid1024 { gap: 2px; padding: 6px; }
  .game-layout { padding: 12px; }
  .hud { padding: 12px 12px 0; gap: 8px; }
  .hud .chip { padding: 4px 10px; }
  .hud .chip strong { font-size: 18px; }
  .keys { display: none; }
  .prose .panel-box { padding: 22px 20px; }
}

/* ---------- Stay in the Game ---------- */
.rooms-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.room-tab {
  font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 7px 16px 7px 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.room-tab .num { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; background: var(--cream); }
.room-tab:hover { background: var(--butter-light); }
.room-tab[aria-pressed="true"] { background: var(--butter); box-shadow: var(--shadow-sm); }
.room-tab[aria-pressed="true"] .num { background: var(--card); }
.room-body { padding: 20px 22px 22px; }
.room-ask { font-family: var(--round); font-weight: 800; font-size: 20px; line-height: 1.35; margin: 0 0 14px; }
.slider-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.slider-row label { font-family: var(--round); font-weight: 700; min-width: 150px; }
.slider-row input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--mint-deep); height: 28px; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 4px 0 12px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--coral-deep); }
.room-chart { width: 100%; height: 220px; display: block; background: var(--sky-light); border: 2.5px solid var(--ink); border-radius: 12px; margin: 12px 0 0; }
.room-chart.tall { height: 260px; }
.hud.flat { padding: 14px 0 0; }
.room .dialog { margin-top: 14px; }
.note { margin: 12px 0 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn {
  font-family: var(--round); font-weight: 800; font-size: 16px; color: var(--ink); cursor: pointer;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 14px;
}
.seg-btn small { font-weight: 700; font-size: 12px; color: var(--ink-soft); margin-left: 4px; }
.seg-btn:hover { background: var(--butter-light); }
.seg-btn[aria-pressed="true"] { background: var(--coral-light); box-shadow: var(--shadow-sm); }
.controls3 { display: flex; gap: 12px; flex-wrap: wrap; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.headline {
  margin: 14px 0 0; padding: 10px 14px; background: var(--card); border: 2.5px dashed var(--ink-soft); border-radius: 12px;
  font-family: var(--round); font-weight: 800; font-size: 16px; min-height: 46px;
}
.headline::before { content: "NEWS  "; color: var(--coral-deep); letter-spacing: 0.08em; font-size: 12px; }
.tcards { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.tcard {
  aspect-ratio: 3 / 4; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--lavender-light); cursor: pointer;
  font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--ink); padding: 0;
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.tcard:hover { transform: translateY(-2px); }
.tcard.on { cursor: default; transform: none; }
.tcard.zero { background: #eadfcd; color: var(--ink-soft); }
.tcard.loss { background: var(--coral-light); }
.tcard.gain { background: var(--mint-light); }
.tcard.huge { background: var(--butter); box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }
@media (max-width: 560px) {
  .room-body { padding: 14px; }
  .room-ask { font-size: 17px; }
  .tcards { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .tcard { font-size: 11px; border-width: 2px; border-radius: 7px; }
  .room-tab { font-size: 14px; padding: 5px 12px 5px 6px; }
}

/* ---------- Play: character creator and tower ---------- */
.small-btn { padding: 7px 14px; font-size: 15px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.creator { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.creator-preview { text-align: center; }
.creator-preview canvas { width: 240px; height: 240px; max-width: 100%; }
.creator-name { font-family: var(--round); font-weight: 800; font-size: 20px; margin: 10px 0 0; }
.opt-label { font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 8px; display: block; }
.creator-options .opt-label:first-child { margin-top: 0; }
.name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.name-row input { flex: 1; min-width: 160px; font: inherit; font-family: var(--round); font-weight: 700; padding: 8px 12px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--card); color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--ink); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip-btn { font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--ink); background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--butter); }

.tower { padding-top: 34px; }
.tower-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tower-top .tag { margin-bottom: 8px; }
.tower-title { font-size: 34px; }
.tower-menu { display: flex; gap: 10px; flex-wrap: wrap; }
.tower-hud { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-bottom: 14px; }
.tower-hud .chip, .hud-calm { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; padding: 6px 12px; }
.tower-hud span { font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tower-hud strong { font-family: var(--round); font-weight: 800; font-size: 20px; }
.hud-calm { flex: 1 1 220px; }
.hud-calm .bar { flex: 1; height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--cream); overflow: hidden; }
.hud-calm .bar i { display: block; height: 100%; background: var(--mint); transition: width 0.25s ease; }
.hud-calm .bar i.low { background: var(--coral); }
.tower-stage { position: relative; display: flex; justify-content: center; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; }
.tower-stage canvas#board { display: block; border-radius: 8px; outline: none; touch-action: manipulation; }
.tower-dialog {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  background: var(--card); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; max-height: 80%; overflow: auto;
}
.tower-dialog canvas { width: 96px; height: 96px; }
.dlg-who { font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); margin: 0 0 4px; }
.dlg-text { font-size: 16px; }
.dlg-text p { margin: 0 0 8px; }
.dlg-choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lesson-title { font-family: var(--round); font-weight: 800; font-size: 19px; }
.dpad { display: none; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 50px); gap: 8px; justify-content: center; margin: 16px auto 0; }
.dpad button { font-size: 18px; border: var(--line); border-radius: 12px; background: var(--butter-light); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.dpad button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.dpad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }
@media (hover: none), (max-width: 760px) { .dpad { display: grid; } }
.tower-help { margin: 14px 0 0; }
.journal { margin-top: 24px; }
.lesson-card { border: 2.5px solid var(--ink); border-radius: 14px; padding: 14px 16px; margin: 12px 0; background: var(--butter-light); }
.lesson-card h3 { font-size: 18px; margin-bottom: 6px; }
.lesson-card p { margin: 0 0 6px; }
.lesson-card.locked { background: var(--cream); border-style: dashed; }
@media (max-width: 760px) {
  .creator { grid-template-columns: 1fr; }
  .tower-title { font-size: 26px; }
  .tower-stage { padding: 8px; flex-direction: column; align-items: center; }
  .tower-dialog { position: static; width: 100%; margin-top: 10px; max-height: none; box-shadow: var(--shadow-sm); grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .tower-hud { gap: 6px; }
  .tower-hud .chip, .hud-calm { padding: 4px 9px; }
  .tower-hud strong { font-size: 17px; }
  .tower-dialog canvas { width: 64px; height: 64px; }
  .dlg-text { font-size: 15px; }
}

/* ---------- Accounts and leaderboard ---------- */
.account-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 10px 14px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; font-size: 15px; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-panel { margin-top: 16px; }
.account-panel h2 { font-size: 24px; margin-bottom: 8px; }
.acct-name { font-family: var(--round); font-weight: 800; font-size: 22px; align-self: center; }
.text-input { width: 100%; max-width: 360px; font: inherit; font-family: var(--round); font-weight: 700; padding: 8px 12px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--card); color: var(--ink); }
.secret-key { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: 0.06em; background: var(--butter-light); border: 2.5px dashed var(--ink); border-radius: 12px; padding: 12px 16px; display: inline-block; margin: 6px 0 4px; }
.form-error { color: var(--coral-deep); font-weight: 700; margin: 10px 0 0; min-height: 1em; }
.linkbtn { background: none; border: 0; cursor: pointer; padding: 0; font-size: 16px; text-decoration: underline; }
.leaderboard { margin-top: 24px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: 2px dashed rgba(61, 43, 34, 0.2); }
.lb-list li.me { background: var(--butter-light); border-radius: 10px; }
.lb-rank { font-family: var(--round); font-weight: 800; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 14px; background: var(--card); }
.lb-list li:nth-child(1) .lb-rank { background: var(--butter); }
.lb-name { font-family: var(--round); font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.lb-score { font-family: var(--round); font-weight: 800; }
.lb-lessons { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 560px) { .lb-list li { grid-template-columns: 32px minmax(0, 1fr) auto; } .lb-lessons { display: none; } .secret-key { font-size: 18px; } }

/* ---------- Share card ---------- */
.share-box { margin-top: 24px; }
.share-box h2 { margin: 0; }
.room .share-box { margin-top: 20px; padding-top: 18px; border-top: 3px dashed rgba(61, 43, 34, 0.25); }
.share-card { display: block; width: 100%; max-width: 640px; height: auto; margin-top: 14px; border: var(--line); border-radius: 16px; box-shadow: var(--shadow); background: var(--sky); }
.share-text { max-width: 640px; margin: 16px 0 0; padding: 12px 14px; background: var(--cream); border: 2px dashed rgba(61, 43, 34, 0.35); border-radius: 12px; font-family: var(--round); font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Languages ---------- */
html.i18n-wait body { visibility: hidden; }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 6px 3px 10px; box-shadow: var(--shadow-sm); cursor: pointer; }
.lang-pick select { font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--ink); background: transparent; border: 0; padding: 4px 4px; cursor: pointer; max-width: 150px; }
.lang-pick select:focus-visible { outline: 3px dashed var(--coral-deep); outline-offset: 2px; }
.lang-globe { display: inline-flex; color: var(--ink); }
@media (max-width: 760px) { .site-header .wrap { gap: 10px; } .lang-pick { order: 2; } }

/* ---------- Compound City ---------- */
.city { padding-top: 30px; }
.city-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.city-top .tag { margin-bottom: 8px; }
.city-hud { margin-bottom: 10px; }
.city-hud .age-chip em { font-style: normal; font-family: var(--round); font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.city-hud .chip.debt { background: var(--coral-light); }
.objective { display: flex; gap: 10px; align-items: baseline; margin: 0 0 12px; font-family: var(--round); font-weight: 800; font-size: 17px; }
.obj-label { background: var(--butter); border: 2.5px solid var(--ink); border-radius: 8px; padding: 1px 9px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; flex: none; }
.city-stage { padding: 10px; display: block; }
.city-stage canvas#city-canvas { display: block; width: 100%; border-radius: 10px; outline: none; touch-action: none; }
.city-stage canvas#city-canvas:focus-visible { outline: 3px dashed var(--coral-deep); outline-offset: 3px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); border: 2px solid var(--ink); font-size: 12px; line-height: 1; margin-left: 2px; }
.city-skip { position: absolute; inset: 10px; overflow: auto; z-index: 3; padding: 24px 28px; }
.city-skip h2 { font-size: 34px; }
.city-skip #skip-chart { display: block; width: 100%; margin: 10px 0 6px; }
.skip-list { margin: 8px 0 10px; padding-left: 22px; }
.skip-list li { margin: 4px 0; }
.skip-nw { font-family: var(--round); font-weight: 800; font-size: 19px; }
.city-pad { display: none; grid-template-columns: repeat(3, 58px) 24px 74px; grid-template-rows: repeat(2, 52px); gap: 8px; justify-content: center; margin: 14px auto 0; user-select: none; -webkit-user-select: none; }
.city-pad button { font-size: 18px; border: var(--line); border-radius: 12px; background: var(--butter-light); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; touch-action: none; }
.city-pad button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.city-pad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.city-pad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.city-pad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.city-pad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.city-pad .act { grid-column: 5; grid-row: 1 / span 2; border-radius: 50%; width: 74px; height: 74px; align-self: center; background: var(--coral); font-family: var(--round); font-weight: 900; font-size: 24px; }
@media (hover: none), (max-width: 760px) { .city-pad { display: grid; } }
@media (max-width: 760px) {
  .city-skip { position: static; inset: auto; margin-top: 10px; padding: 18px; }
  .city-skip h2 { font-size: 26px; }
  .objective { font-size: 15px; }
}

/* ---------- Home: game first ---------- */
.arcade-hero { background: var(--sky-light); border-bottom: var(--line); padding: 34px 0 40px; }
.screen-frame { background: var(--coral); border: var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 16px 16px 0; }
.screen { position: relative; border: var(--line); border-radius: 14px; overflow: hidden; background: #cfe8c2; }
.screen canvas { display: block; width: 100%; }
.screen-card { position: absolute; left: 22px; bottom: 22px; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px 20px; color: var(--ink); text-decoration: none; }
.screen-card:hover { color: var(--ink); background: #fffef8; }
.screen-card .tag { margin: 0; }
.screen-title { font-family: var(--round); font-weight: 900; font-size: 44px; line-height: 1.05; }
.screen-line { font-size: 17px; line-height: 1.45; }
.big-play { margin-top: 6px; font-size: 20px; padding: 12px 24px; }
.screen-base { display: flex; justify-content: center; align-items: center; gap: 14px; height: 46px; }
.screen-base i { width: 44px; height: 10px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.screen-base b { width: 22px; height: 22px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--butter); }
.screen-base b + b { background: var(--mint); }
.shelf { padding-top: 46px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.shelf-head .textlink { font-family: var(--round); font-weight: 800; }
.cart .shot { display: block; position: relative; border-bottom: var(--line); background: var(--cream); line-height: 0; }
.cart .shot svg { display: block; width: 100%; height: auto; }
.cart .shot:hover svg { filter: saturate(1.15); }
.cart .ribbon { position: absolute; top: 12px; right: 12px; line-height: 1; font-family: var(--round); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--coral); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.cart .shot + .label { min-height: 0; }
.soon-head { margin: 40px 0 14px; font-size: 20px; }
.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon li { border: 2.5px dashed var(--ink); border-radius: 14px; padding: 14px 16px; background: var(--card); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.soon li b { font-family: var(--round); font-size: 17px; }
.soon li.lav { background: var(--lavender-light); } .soon li.coral { background: var(--coral-light); } .soon li.butter { background: var(--butter-light); }
.promise { padding-top: 10px; }
.promise-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.promise-chips li { font-family: var(--round); font-weight: 800; font-size: 15px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.promise-chips li::before { content: "\2713"; margin-right: 6px; color: var(--mint-deep); }
.promise-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; }
.soon.soon-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .soon, .soon.soon-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .arcade-hero { padding: 18px 0 24px; }
  .screen-frame { padding: 10px 10px 0; border-radius: 20px; }
  .screen-card { position: static; max-width: none; border-width: 3px 0 0; border-radius: 0; box-shadow: none; }
  .screen-title { font-size: 32px; }
  .screen-base { height: 34px; }
}
.city-creator h2 { margin-bottom: 14px; }
.city-creator .creator { margin: 0; grid-template-columns: 260px minmax(0, 1fr); }
.city-creator .creator-preview canvas { width: 220px; height: 220px; }
@media (max-width: 760px) { .city-creator .creator { grid-template-columns: 1fr; } }

/* ---------- Home: chapter map ---------- */
.carts-1 { grid-template-columns: minmax(0, 560px); }
.chapter-map { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.chapter-map li { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 12px 14px 12px; background: var(--card); border: 2.5px dashed rgba(61, 43, 34, 0.45); border-radius: 14px; color: var(--ink-soft); }
.chapter-map li b { font-family: var(--round); font-size: 16px; line-height: 1.3; color: var(--ink); }
.chapter-map .ch-num { align-self: flex-start; font-family: var(--round); font-weight: 900; font-size: 12px; letter-spacing: 0.06em; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.chapter-map .ch-where { margin-top: auto; font-size: 13px; }
.chapter-map li.got { border: 2.5px solid var(--ink); background: var(--butter-light); box-shadow: var(--shadow-sm); color: var(--ink); }
.chapter-map li.got .ch-num { background: var(--butter); }
.chapter-map li.got::after { content: "\2713"; position: absolute; top: 10px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.chapter-count { font-family: var(--round); font-weight: 800; margin: 14px 0 0; }
.soon li.sky { background: var(--sky-light); }
.soon li.mint { background: var(--mint-light); }
.soon.soon-2 li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Work with us: play first ---------- */
.cart-next .ribbon { background: var(--sky); }
.ask-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ask-grid h2 { font-size: 22px; margin-bottom: 8px; }
.ask-grid p { margin: 0; }
@media (max-width: 860px) { .ask-grid { grid-template-columns: 1fr; } }

/* ---------- Muscle Kitchen ---------- */
.mk-stage canvas#mk-canvas { display: block; width: 100%; border-radius: 10px; outline: none; touch-action: none; }
.mk-stage canvas#mk-canvas:focus-visible { outline: 3px dashed var(--coral-deep); outline-offset: 3px; }
@media (hover: none), (max-width: 760px) { #mk-pad { display: grid; } }
.mk-panel h2 { font-size: 30px; margin-bottom: 8px; }
.pz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pz-board { flex: none; display: grid; grid-template-columns: 34px 34px; gap: 4px; }
.pz-board i { width: 34px; height: 34px; border: 2.5px dashed rgba(61, 43, 34, 0.45); border-radius: 9px; background: var(--card); }
.pz-board.p1 i:nth-child(1), .pz-board.p2 i:nth-child(-n+2), .pz-board.p3 i:nth-child(-n+3), .pz-board.p4 i { border-style: solid; border-color: var(--ink); background: var(--mint); }
.pz-board.p4 { animation: mk-pop 0.5s ease-out; }
@keyframes mk-pop { 50% { transform: scale(1.15) rotate(-4deg); } }
.pz-board-label { font-family: var(--round); font-weight: 800; margin: 6px 0 12px; text-align: right; }
.pz-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.pz-group { margin-bottom: 10px; }
.pz-cat { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; margin: 0 0 6px; }
.pz-food { display: grid; grid-template-columns: minmax(0, 1fr) 34px 30px 34px; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; }
.pz-food.on { background: var(--butter-light); }
.pz-name { font-weight: 700; line-height: 1.25; }
.pz-name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.pz-btn { width: 34px; height: 32px; font: 900 18px var(--round); color: var(--ink); background: var(--card); border: 2.5px solid var(--ink); border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.pz-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.pz-n { text-align: center; font-family: var(--round); font-size: 18px; }
.pz-meter { margin-bottom: 12px; }
.pz-mhead { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.pz-mhead b { font-family: var(--round); }
.pz-bar { position: relative; height: 16px; margin-top: 4px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.pz-bar .band { position: absolute; top: 0; bottom: 0; background: var(--mint-light); border-left: 2px dashed var(--mint-deep); border-right: 2px dashed var(--mint-deep); }
.pz-bar .mark { position: absolute; top: -2px; bottom: -2px; width: 8px; margin-left: -4px; border-radius: 4px; background: var(--coral); border: 2px solid var(--ink); }
.pz-meter.ok .mark { background: var(--mint-deep); }
.mk-two { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.mk-two canvas { display: block; }
.mk-stats { list-style: none; margin: 0 0 12px; padding: 0; }
.mk-stats li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 3px 0; border-bottom: 2px dashed rgba(61, 43, 34, 0.2); }
.mk-stats b { font-family: var(--round); }
.mk-stats em { font-style: normal; font-weight: 700; color: var(--mint-deep); min-width: 64px; text-align: right; }
.rp-note { background: var(--butter-light); border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.mk-ch h3 { font-size: 18px; margin: 18px 0 8px; }
.mk-ch h3 small { color: var(--ink-soft); }
.mk-ch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-ch li { border: 2.5px dashed rgba(61, 43, 34, 0.4); border-radius: 12px; padding: 8px 12px; color: var(--ink-soft); }
.mk-ch li.got { border-style: solid; border-color: var(--ink); background: var(--butter-light); color: var(--ink); }
.mk-ch li b { display: block; font-family: var(--round); }
@media (max-width: 760px) {
  .pz-grid, .mk-two { grid-template-columns: 1fr; }
  .mk-panel h2 { font-size: 24px; }
}
.carts-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .carts-3 { grid-template-columns: 1fr; } }

/* Founder card (About page): cartoon drawn inline as SVG, animated with CSS only */
.founder { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: center; margin-bottom: 26px; }
.founder-art { width: 230px; margin: -10px 0 -6px -12px; }
.founder-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.founder-text h2 { margin: 0 0 8px; }
.founder-text p { margin: 0 0 10px; }
.founder-text p:last-child { margin-bottom: 0; }
.founder-text .tag { margin-bottom: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .fd-body { animation: fd-bob 3.2s ease-in-out infinite; }
  .fd-shadow { transform-box: fill-box; transform-origin: center; animation: fd-shadow 3.2s ease-in-out infinite; }
  .fd-head { transform-box: view-box; transform-origin: 110px 134px; animation: fd-tilt 6.4s ease-in-out infinite; }
  .fd-wave { transform-box: view-box; transform-origin: 132px 150px; animation: fd-wave 1.6s ease-in-out infinite; }
  .fd-eye { transform-box: fill-box; transform-origin: center; animation: fd-blink 4.8s infinite; }
  .fd-bulb { transform-box: fill-box; transform-origin: 50% 100%; animation: fd-bulb 6s ease-in-out infinite; }
  .founder:hover .fd-wave { animation-duration: .8s; }
  @keyframes fd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  @keyframes fd-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.9); } }
  @keyframes fd-tilt { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
  @keyframes fd-wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(16deg); } }
  @keyframes fd-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
  @keyframes fd-bulb {
    0%, 50% { transform: scale(0); opacity: 0; }
    58% { transform: scale(1.15); opacity: 1; }
    64%, 88% { transform: scale(1); opacity: 1; }
    96%, 100% { transform: scale(0); opacity: 0; }
  }
}
@media (max-width: 560px) {
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .founder-art { width: 200px; margin: 0; }
}
