@font-face { font-family: 'Patrick Hand'; src: url(fonts/patrick-hand.woff2) format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Patrick Hand'; src: url(fonts/patrick-hand-ext.woff2) format('woff2'); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gochi Hand'; src: url(fonts/gochi-hand.woff2) format('woff2'); font-display: swap; }

:root {
  --paper: #f6efe0;
  --paper-line: rgba(80, 120, 170, .13);
  --ink: #2e2a26;
  --ink-soft: #6b6157;
  --kraft: #d8ab6b;
  --kraft-light: #e6c08a;
  --kraft-dark: #b4844a;
  --kraft-deep: #8c6232;
  --frog: #6cbf4f;
  --frog-light: #b9e6a0;
  --cat: #f28a2b;
  --cat-light: #ffd3a3;
  --red: #e2504c;
  --tape: rgba(250, 244, 220, .78);
  --hand: 'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --title: 'Gochi Hand', 'Patrick Hand', cursive;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble2: 15px 255px 15px 225px / 225px 15px 255px 15px;
  --cell: min(calc((100vw - 40px) / 7.6), calc((100dvh - 300px) / 7.4), 82px);
  --T: calc(var(--cell) * .13);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 19px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#app { max-width: 760px; margin: 0 auto; padding: 12px 16px 40px; }
.screen { animation: pop-in .35s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- critters ---------- */
.critter { display: block; width: 100%; height: 100%; overflow: visible; }
.critter .eye > g { transform-box: fill-box; transform-origin: center; animation: blink var(--blink, 4.5s) var(--blink-delay, 0s) infinite; }
.critter .pupil { transform: translate(calc(var(--lx, 0) * 3px), calc(var(--ly, 0) * 2.5px)); transition: transform .35s ease; }
.critter .e-happy, .critter .e-dizzy, .critter .m-ouch, .critter .m-sad { display: none; }
.happy .critter .e-open, .happy .critter .m-ouch { display: none; }
.happy .critter .e-happy { display: inline; }
.dizzy .critter .e-open, .dizzy .critter .e-happy, .dizzy .critter .m-smile, .dizzy .critter .m-sad { display: none; }
.dizzy .critter .e-dizzy, .dizzy .critter .m-ouch { display: inline; }
.dizzy .critter .e-dizzy { transform-box: fill-box; transform-origin: center; }
.sad .critter .m-smile { display: none; }
.sad .critter .m-sad { display: inline; }
.critter path, .critter ellipse { vector-effect: none; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }

/* ---------- lobby ---------- */
.hero { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.hero h1 {
  font-family: var(--title); font-weight: 400; font-size: clamp(44px, 12vw, 84px); line-height: .9; margin: 0; white-space: nowrap;
  letter-spacing: 1px; transform: rotate(-3deg); text-shadow: 3px 3px 0 var(--kraft-light);
}
.hero h1 .four {
  display: inline-block; color: var(--red); margin-left: 6px; transform: rotate(8deg) translateY(-4px);
  animation: wiggle 3s ease-in-out infinite;
}
.hero-critter { width: clamp(52px, 15vw, 100px); flex: none; aspect-ratio: 1; animation: bob 2.6s ease-in-out infinite; }
.hero-critter[data-kind="cat"] { animation-delay: -1.3s; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(8deg) translateY(-4px); } 50% { transform: rotate(-4deg) translateY(-8px); } }
.tag { text-align: center; margin: 6px 0 18px; color: var(--ink-soft); font-size: 20px; }

.card {
  position: relative;
  background: #fffaf0;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  padding: 14px 18px 16px;
  margin: 16px 0;
  box-shadow: 4px 5px 0 rgba(46, 42, 38, .18);
}
.card h2 { font-family: var(--title); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.card h2 small { font-family: var(--hand); font-size: 16px; color: var(--ink-soft); margin-left: 6px; }
.tilt-l { transform: rotate(-.6deg); }
.tilt-r { transform: rotate(.5deg); border-radius: var(--wobble2); }
.tape {
  position: absolute; top: -12px; left: 22px; width: 84px; height: 24px; background: var(--tape);
  transform: rotate(-5deg); box-shadow: 0 1px 2px rgba(0,0,0,.12); pointer-events: none;
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 100% 4%, 96% 50%, 100% 96%, 30% 100%, 24% 90%, 18% 100%, 0 94%, 4% 50%);
}
.tape.r { left: auto; right: 24px; transform: rotate(6deg); }

.name-card label { display: block; font-family: var(--title); font-size: 24px; }
.name-card input {
  width: 100%; border: none; background: transparent; font-size: 34px; padding: 2px 4px; outline: none;
  border-bottom: 3px dashed var(--ink-soft);
}
.name-card input:focus { border-bottom-style: solid; border-bottom-color: var(--frog); }
.name-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) rotate(-1deg); } 40%, 80% { transform: translateX(8px) rotate(1deg); } }
.invite-hint { margin: 8px 0 0; color: var(--red); font-size: 20px; }

.btn {
  --bg: var(--frog);
  --edge: #3f8a2c;
  color: var(--ink);
  position: relative;
  cursor: pointer;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--bg);
  padding: 8px 18px;
  font-size: 20px;
  box-shadow: 0 5px 0 var(--edge), 0 7px 8px rgba(0,0,0,.18);
  transform: translateY(0);
  transition: transform .08s, box-shadow .08s, filter .15s;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px) rotate(-.5deg); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 2px 3px rgba(0,0,0,.15); }
.btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.btn.alt { --bg: var(--cat); --edge: #b9601a; border-radius: var(--wobble2); }
.btn.plain { --bg: #fffaf0; --edge: #cbbfa9; }
.btn.big { font-size: 26px; padding: 10px 22px; }
.btn.small { font-size: 17px; padding: 4px 12px; box-shadow: 0 3px 0 var(--edge); --bg: var(--kraft-light); --edge: var(--kraft-dark); }
.btn:disabled { filter: grayscale(.7) opacity(.6); cursor: default; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 10px; }
.actions .btn { width: 100%; }
.join { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 20px; color: var(--ink-soft); }
.join input {
  width: 120px; text-align: center; text-transform: uppercase; letter-spacing: 6px; font-size: 26px;
  border: 2.5px solid var(--ink); border-radius: var(--wobble2); background: #fffaf0; padding: 2px 6px; outline: none;
}
.join input:focus { border-color: var(--cat); }

.waiting { list-style: none; padding: 0; margin: 0; }
.waiting li {
  display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 2px dashed rgba(46,42,38,.15);
  animation: pop-in .3s ease-out;
}
.waiting li:last-child { border-bottom: none; }
.waiting .mini { width: 40px; height: 40px; flex: none; }
.waiting .who { flex: 1; min-width: 0; font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting .who small { color: var(--ink-soft); font-size: 16px; display: block; }
.waiting .empty { color: var(--ink-soft); justify-content: center; text-align: center; display: block; padding: 10px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.stat b { display: block; font-family: var(--title); font-weight: 400; font-size: 30px; line-height: 1; }
.stat span { font-size: 15px; color: var(--ink-soft); }
.recent { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.recent i {
  width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 14px;
  border: 2px solid var(--ink); border-radius: 50% 45% 55% 48%;
}
.recent .win { background: var(--frog-light); }
.recent .loss { background: #f7b7ae; }
.recent .draw { background: #e5ddcc; }
.muted { color: var(--ink-soft); font-size: 17px; }
.leaders { margin: 0; padding-left: 28px; }
.leaders li { padding: 2px 0; }
.leaders li.me { background: linear-gradient(transparent 55%, rgba(255, 220, 90, .6) 55%, rgba(255, 220, 90, .6) 90%, transparent 90%); }
.leaders .lname { display: inline-block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.leaders small { color: var(--ink-soft); }
.global { text-align: center; color: var(--ink-soft); font-size: 17px; margin-top: 10px; }
.global b { color: var(--ink); font-weight: 400; }

/* ---------- game ---------- */
#game { padding-bottom: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-code { font-size: 18px; color: var(--ink-soft); }
.room-code b { font-family: var(--title); font-weight: 400; color: var(--ink); letter-spacing: 3px; font-size: 22px; }

.players { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: 12px 0 4px; }
.pcard {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 2.5px solid var(--ink); border-radius: var(--wobble); background: #fffaf0;
  box-shadow: 3px 4px 0 rgba(46,42,38,.15); min-width: 0; transition: transform .25s, box-shadow .25s, background .25s;
}
#p1 { flex-direction: row-reverse; text-align: right; border-radius: var(--wobble2); }
.pcard .pc-critter { width: 50px; height: 50px; flex: none; }
.pcard .pc-text { min-width: 0; line-height: 1.05; }
.pcard .pc-name { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pc-sub { font-size: 15px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.turn { transform: translateY(-3px) rotate(-1deg); box-shadow: 4px 7px 0 rgba(46,42,38,.2); }
.pcard.turn.frog { background: #eaf8df; }
.pcard.turn.cat { background: #fff0de; }
.pcard.turn .pc-critter { animation: bob 1.2s ease-in-out infinite; }
.pcard.away { opacity: .55; }
.pcard.empty { justify-content: center; color: var(--ink-soft); border-style: dashed; min-height: 66px; }
.pcard .bubble { top: -38px; }
#p0 .bubble { left: 18px; }
#p1 .bubble { right: 18px; }
.series { font-family: var(--title); font-size: 32px; text-align: center; min-width: 64px; line-height: 1; }
.series small { display: block; font-family: var(--hand); font-size: 13px; color: var(--ink-soft); }

.status { text-align: center; font-size: 24px; min-height: 34px; margin: 8px 0 0; }
.status.mine { color: #2f7a1f; }
.status .dots::after { content: ''; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.bubble {
  position: absolute; z-index: 30; background: #fff; border: 2.5px solid var(--ink); border-radius: 50% 45% 50% 40% / 60% 55% 45% 50%;
  padding: 3px 14px; font-size: 20px; white-space: nowrap; pointer-events: none;
  animation: bubble 2.2s ease-out forwards;
}
.bubble::after {
  content: ''; position: absolute; left: 30%; bottom: -10px; width: 14px; height: 12px; background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: skewX(30deg) rotate(30deg);
}
@keyframes bubble { 0% { transform: scale(.2) rotate(-10deg); opacity: 0; } 10% { transform: scale(1.12) rotate(3deg); opacity: 1; } 18% { transform: scale(1) rotate(-2deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* ---------- the cardboard board ---------- */
.stage { position: relative; perspective: 1500px; perspective-origin: 50% 20%; margin: calc(var(--cell) * 1.15) auto 0; width: calc(var(--cell) * 7.6); }
.board3d {
  position: relative; width: 100%; aspect-ratio: 760 / 680; transform-style: preserve-3d;
  transform: rotateX(calc(6deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.board3d.shake { animation: board-shake .35s; }
@keyframes board-shake { 25% { translate: 0 2px; } 50% { translate: 0 -1px; } 75% { translate: 0 1px; } }
.board { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.board > * { position: absolute; }
.face.back {
  inset: 0; transform: translateZ(calc(var(--T) * -1));
  background: var(--kraft-dark);
  background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.5px), linear-gradient(170deg, rgba(255,255,255,.12), rgba(0,0,0,.18));
  background-size: 7px 7px, 100% 100%;
  border-radius: calc(var(--cell) * .34);
  box-shadow: inset 0 0 calc(var(--cell) * .6) rgba(60, 35, 10, .45);
}
.pieces { inset: 0; transform: translateZ(0); transform-style: preserve-3d; }
.front-wrap { inset: 0; transform: translateZ(var(--T)); }
.front-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 0 rgba(90, 60, 25, .35)); }
.winline { inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--T) + 2px)); pointer-events: none; overflow: visible; }
.board > .tape { top: -6px; width: calc(var(--cell) * 1.1); height: calc(var(--cell) * .3); transform: translateZ(calc(var(--T) + 3px)) rotate(-8deg); }
.board > .tape.b1 { left: calc(var(--cell) * -.25); }
.board > .tape.b2 { left: auto; right: calc(var(--cell) * -.25); transform: translateZ(calc(var(--T) + 3px)) rotate(9deg); }

/* corrugated cardboard edges */
.side {
  background-color: var(--kraft-dark);
  background-image:
    linear-gradient(90deg, var(--kraft-deep) 0 14%, transparent 14% 86%, var(--kraft-deep) 86%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20'%3E%3Cpath d='M6 0 Q12 5 6 10 Q0 15 6 20' fill='none' stroke='%237a5226' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% calc(var(--T) * 1.4);
}
.s-left, .s-right { top: calc(var(--cell) * .3); bottom: calc(var(--cell) * .3); width: calc(var(--T) * 2); }
.s-left { left: 0; transform: translateX(calc(var(--T) * -1)) rotateY(-90deg); }
.s-right { right: 0; transform: translateX(var(--T)) rotateY(90deg); }
.s-top, .s-bottom {
  left: calc(var(--cell) * .3); right: calc(var(--cell) * .3); height: calc(var(--T) * 2);
  background-image:
    linear-gradient(var(--kraft-deep) 0 14%, transparent 14% 86%, var(--kraft-deep) 86%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M0 6 Q5 12 10 6 Q15 0 20 6' fill='none' stroke='%237a5226' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 100% 100%, calc(var(--T) * 1.4) 100%;
}
.s-top { top: 0; transform: translateY(calc(var(--T) * -1)) rotateX(90deg); }
/* the slot the critters drop through */
.s-top::after { content: ''; position: absolute; left: 4%; right: 4%; top: 30%; bottom: 30%; background: #4a3218; border-radius: 4px; }
.s-bottom { bottom: 0; transform: translateY(var(--T)) rotateX(-90deg); }

/* folded cardboard feet */
.foot {
  position: absolute; bottom: calc(var(--cell) * -.4); width: calc(var(--cell) * 1.5); height: calc(var(--cell) * .48);
  background: linear-gradient(180deg, var(--kraft-light), var(--kraft) 60%, var(--kraft-dark));
  border: 2px solid var(--ink); border-radius: 6px 6px 3px 3px;
  transform: translateZ(calc(var(--T) * 1.5));
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.foot::after { content: ''; position: absolute; left: 10%; right: 10%; top: 42%; border-top: 2px dashed rgba(46,42,38,.45); }
.foot.l { left: calc(var(--cell) * .1); }
.foot.r { right: calc(var(--cell) * .1); }
.shadow {
  position: absolute; left: 4%; right: 4%; bottom: calc(var(--cell) * -.3); height: calc(var(--cell) * .5);
  background: radial-gradient(closest-side, rgba(60, 40, 15, .35), transparent); filter: blur(4px); z-index: -1;
}

/* pieces */
.piece {
  position: absolute; width: calc(92 / 760 * 100%); height: calc(92 / 680 * 100%);
  transform-style: preserve-3d; will-change: transform;
}
.piece .squash { width: 100%; height: 100%; transform-origin: 50% 95%; }
.piece.win .squash { animation: hop .55s ease-in-out infinite alternate; animation-delay: var(--hop-delay, 0s); }
@keyframes hop { from { transform: translateY(0) scale(1.04, .96); } to { transform: translateY(-14%) rotate(var(--hop-rot, 6deg)) scale(.98, 1.04); } }
.piece.fade { filter: saturate(.45) brightness(.92); transition: filter .6s; }

.ghost {
  position: absolute; top: calc(-1.12 * var(--cell)); width: calc(92 / 760 * 100%); aspect-ratio: 1; pointer-events: none;
  transform: translateZ(0); transition: left .12s ease-out, opacity .2s; opacity: 0;
}
.ghost.on { opacity: 1; }
.ghost .critter { animation: sway 1.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg) translateY(2px); } 50% { transform: rotate(6deg) translateY(-3px); } }

.hit { position: absolute; left: 0; right: 0; top: calc(-1.2 * var(--cell)); bottom: 0; display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 calc(30 / 760 * 100%); transform: translateZ(0); }
.hit button { all: unset; cursor: pointer; touch-action: manipulation; }
.hit button:focus-visible { outline: 3px dashed var(--ink); outline-offset: -3px; border-radius: 12px; }
.hit.off button { cursor: default; }

.fx { position: absolute; inset: 0; pointer-events: none; transform: translateZ(calc(var(--T) + 10px)); }
.fx .bubble { transform-origin: bottom left; }
.spark { position: absolute; width: calc(var(--cell) * .32); height: calc(var(--cell) * .32); margin: calc(var(--cell) * -.16); }
.stars { position: absolute; width: calc(var(--cell) * .9); margin-left: calc(var(--cell) * -.45); height: calc(var(--cell) * .4); animation: orbit 1.4s linear forwards; }
@keyframes orbit { from { transform: rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: rotate(360deg); opacity: 0; } }

.reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: calc(var(--cell) * .55); }
.reactions .btn { font-size: 17px; padding: 2px 11px; box-shadow: 0 3px 0 var(--edge); }

/* sticky notes */
.note, .banner {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  width: min(420px, calc(100vw - 32px));
  background: #fff6a8; border: 2.5px solid var(--ink); border-radius: 4px 4px 18px 4px;
  padding: 16px 18px 18px; text-align: center; box-shadow: 4px 8px 0 rgba(46,42,38,.2);
  transform: translateX(-50%) rotate(-1.5deg); animation: note-in .45s cubic-bezier(.3,1.6,.5,1);
}
.banner { background: #fffaf0; top: auto; }
.banner.win { background: #e3f6d6; }
.banner.loss { background: #fde1dc; }
@keyframes note-in { from { transform: translateX(-50%) translateY(140%) rotate(8deg); } }
.note .tape { left: 50%; margin-left: -42px; }
.note p { margin: 0; }
.note-top { font-size: 20px; color: var(--ink-soft); }
.big-code { font-family: var(--title); font-size: 64px; letter-spacing: 10px; line-height: 1.1; user-select: all; }
.note-sub { font-size: 17px; color: var(--ink-soft); margin-bottom: 10px !important; }
.note-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.banner-title { font-family: var(--title); font-size: 46px; line-height: 1; margin: 0; }
.banner-sub { margin: 6px 0 0; font-size: 19px; color: var(--ink-soft); }
.btn.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07) rotate(-1deg); } }

.toast {
  position: fixed; top: 14px; left: 50%; transform: translate(-50%, calc(-100% - 40px)); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 8px 18px; border-radius: var(--wobble); font-size: 19px;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1); max-width: calc(100vw - 32px);
}
.toast.on { transform: translate(-50%, 0); }
.conn { position: fixed; bottom: 10px; right: 10px; z-index: 70; background: var(--red); color: #fff; padding: 4px 12px; border-radius: var(--wobble); font-size: 16px; }

.confetti { position: fixed; z-index: 50; width: 26px; height: 26px; pointer-events: none; left: 0; top: 0; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .actions .btn.big { font-size: 22px; padding: 10px 8px; }
  .pcard { padding: 4px 6px; gap: 5px; }
  .pcard .pc-critter { width: 38px; height: 38px; }
  .pcard .pc-name { font-size: 18px; }
  .pcard .pc-sub { font-size: 13px; }
  .series { font-size: 26px; min-width: 48px; }
  .big-code { font-size: 54px; }
  .banner-title { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-critter, .hero h1 .four, .ghost .critter, .pcard.turn .pc-critter, .btn.pulse { animation: none; }
  .board3d { transition: none; }
}
