/* ENZOJUMPER — interface skinned with Kenney's UI packs (CC0, www.kenney.nl):
   parchment panels with wooden frames, ribbon titles, chunky depth buttons,
   pack checkboxes, sliders and progress bars. Layered over storybook.css. */
@font-face { font-family: 'Kenney Future'; src: url('/assets/kenney/ui/kenney-future.ttf') format('truetype'); font-display: swap; }
:root {
  --k: '/assets/kenney/ui/';
  --nums: 'Kenney Future', 'Bricolage Grotesque', system-ui, sans-serif;
  --parch: #fff1d2;
  --wood: #8a5a33;
}

/* ─── parchment panels in a wooden frame ─── */
.panel, .live-board, .dialog, .talk, .toast, .pop, .news div, .rd-hp, .rd-top b, .rd-top span, .acct-row, .item, .shop-head, .complete-stats div, .xpline, .jl.missing {
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.panel, .live-board, .dialog, .talk {
  border-width: 14px !important;
  border-image: url('/assets/kenney/ui/panel_brown.png') 24 fill / 14px stretch;
  filter: drop-shadow(0 8px 0 rgba(40, 24, 10, .28)) drop-shadow(0 18px 30px rgba(0, 0, 0, .25));
  background-image: none !important;
}
.toast, .pop, .news div, .acct-row, .item, .shop-head, .complete-stats div, .xpline, .jl.missing, .rd-hp, .rd-top b, .rd-top span {
  border-width: 8px !important;
  border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch;
  filter: drop-shadow(0 4px 0 rgba(40, 24, 10, .22));
}
.panel { padding: 22px 24px 24px; }
/* ribbon titles */
.panel h2 {
  display: inline-block;
  margin: -6px 0 14px -6px;
  padding: 8px 46px 14px;
  border: solid transparent;
  border-width: 12px 34px 18px;
  border-image: url('/assets/kenney/ui/banner_classic_curtain.png') 24 68 36 68 fill / 12px 34px 18px stretch;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 2px 0 rgba(90, 20, 20, .45);
  line-height: 1;
}
.panel .close {
  border: 6px solid transparent !important;
  border-image: url('/assets/kenney/ui/button_red.png') 10 fill / 6px stretch !important;
  background: none !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.panel .close:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ─── buttons ─── */
.btn, .m-item.primary, .seg button.on, .rd-skip {
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 10px 10px 14px !important;
  border-radius: 0 !important;
  border-image: url('/assets/kenney/ui/green_button_rectangle_depth_gradient.png') 24 24 32 24 fill / 10px 10px 14px stretch !important;
  box-shadow: none !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(10, 70, 40, .45);
  transform: none;
}
.btn:hover, .m-item.primary:hover, .m-item.primary:focus { filter: brightness(1.06); transform: translateY(-1px) !important; box-shadow: none !important; }
.btn:active, .m-item.primary:active { border-image-source: url('/assets/kenney/ui/green_button_rectangle_gradient.png') !important; border-width: 12px 10px 10px !important; transform: translateY(2px) !important; }
.btn.ghost, .m-item, .dock .ib, .pill, .icon-btn, .timer, .seg, .rank-chip, .intro .in-place, .intro .in-tags span, .dskip, .tk-close {
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 8px !important;
  border-radius: 0 !important;
  border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 0 rgba(40, 24, 10, .25));
  color: var(--ink) !important;
  text-shadow: none;
}
.btn.ghost:hover, .m-item:hover, .m-item:focus, .dock .ib:hover, .icon-btn:hover { filter: drop-shadow(0 5px 0 rgba(40, 24, 10, .25)) brightness(1.04); transform: translateY(-2px) !important; box-shadow: none !important; }
.btn.danger { border-image-source: url('/assets/kenney/ui/red_button_rectangle_depth_gradient.png') !important; color: #fff !important; text-shadow: 0 2px 0 rgba(90, 20, 20, .45); }
.seg { padding: 2px; }
.seg button.on { border-width: 6px 6px 9px !important; border-image-width: 6px 6px 9px !important; }
.m-item.primary { color: #fff !important; }
.m-item.primary small, .m-item.primary .ico { color: rgba(255, 255, 255, .9) !important; }
.m-item.primary b { text-shadow: 0 2px 0 rgba(10, 70, 40, .45); }
.dock .ib { width: 52px; height: 52px; border-image-source: url('/assets/kenney/ui/round_brown.png') !important; border-image-slice: 30 fill !important; border-width: 12px !important; color: var(--wood) !important; }
.dock .ib:hover, .dock .ib:focus-visible { color: var(--leaf) !important; }

/* ─── HUD tags ─── */
.pill b, .timer, .complete-stats div:not(:last-child) b, .lb-list .rk, .shop-purse b, .price, #hud-level { font-family: var(--nums) !important; letter-spacing: .02em; } /* digits only: the font's letters read oddly */
.timer { padding: 2px 4px; display: inline-block; }
.intro .in-ch { border-radius: 0; background: none; border: solid transparent; border-width: 8px 22px 12px; border-image: url('/assets/kenney/ui/banner_hanging.png') 20 50 30 50 fill / 8px 22px 12px stretch; color: #fff; }

/* ─── dialogue ─── */
.dialog { padding: 14px 18px 14px 14px; }
.dportrait { background: none !important; border: 8px solid transparent !important; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch !important; border-radius: 0 !important; }
.dname { background: none !important; border: solid transparent; border-width: 6px 18px 10px; border-image: url('/assets/kenney/ui/banner_hanging.png') 20 50 30 50 fill / 6px 18px 10px stretch; padding: 2px 6px; }
.dialog .dname { max-width: calc(100% - 96px); }
.toast .tn { background: none !important; color: var(--wood) !important; padding: 0; }
.toast .tp { border: none !important; background: none !important; }
body.void .dialog, body.cinema .dialog { border-image: none; filter: none; }

/* ─── checkboxes and sliders from the pack ─── */
.toggle input[type=checkbox], .acct-form input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; flex: none; cursor: pointer;
  background: url('/assets/kenney/ui/grey_check_square_grey.png') center / contain no-repeat;
  border: 0; box-shadow: none; border-radius: 0;
}
.toggle input[type=checkbox]:checked { background-image: url('/assets/kenney/ui/green_check_square_color_checkmark.png'); }
.toggle input[type=checkbox]::before, .toggle input[type=checkbox]::after { display: none !important; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 30px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 14px; border: solid transparent; border-width: 4px; border-image: url('/assets/kenney/ui/green_slide_horizontal_color.png') 8 fill / 4px stretch; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -12px; background: url('/assets/kenney/ui/grey_slide_hangle.png') center / contain no-repeat; border: 0; cursor: grab; }
input[type=range]::-moz-range-track { height: 8px; border: solid transparent; border-width: 4px; border-image: url('/assets/kenney/ui/green_slide_horizontal_color.png') 8 fill / 4px stretch; }
input[type=range]::-moz-range-thumb { width: 22px; height: 30px; background: url('/assets/kenney/ui/grey_slide_hangle.png') center / contain no-repeat; border: 0; }

/* ─── progress bars ─── */
.xpbar, .rd-hp i { background: none !important; border: solid transparent !important; border-width: 6px !important; border-radius: 0 !important; border-image: url('/assets/kenney/ui/progress_white_border.png') 14 fill / 6px stretch !important; height: 18px; }
.xpbar i, .rd-hp b { background: none !important; border: solid transparent; border-width: 3px; border-image: url('/assets/kenney/ui/progress_green.png') 10 fill / 3px stretch; box-shadow: none !important; border-radius: 0 !important; margin: -3px 0; min-width: 6px; }

/* ─── scrollbars: the wooden one ─── */
.panel ::-webkit-scrollbar, .stackmap::-webkit-scrollbar, .screen::-webkit-scrollbar { width: 12px; }
.panel ::-webkit-scrollbar-thumb, .stackmap::-webkit-scrollbar-thumb, .screen::-webkit-scrollbar-thumb { border: 3px solid transparent; border-image: url('/assets/kenney/ui/scrollbar_brown.png') 8 fill / 3px stretch; }

/* ─── Kenney icons (solid), tinted by the text colour ─── */
.kico { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* the live board's rows sit on parchment, the leader on gold */
.lb-list li { border: 0 !important; background: rgba(138, 90, 51, .08) !important; }
.lb-list li:nth-child(1) { background: rgba(232, 185, 60, .35) !important; }
.lb-list li.me { background: rgba(36, 203, 134, .3) !important; box-shadow: none !important; }
.title-foot { color: var(--ink); }

/* the owners' editions keep their own looks over the Kenney skin */
body.edition-b .dialog, body.edition-b .toast, body.edition-b .pill, body.edition-b .icon-btn, body.edition-b .timer, body.edition-b .dportrait {
  border-image: none !important; background: #fff !important; border: 1px solid #d5dae3 !important; border-radius: 6px !important; filter: none !important; color: #1b2230 !important;
}
body.edition-b .dname { border-image: none; background: #1b2230 !important; color: #fff !important; border: 0; border-radius: 3px; padding: 4px 8px; }
body.edition-w .dialog, body.edition-w .toast, body.edition-w .pill, body.edition-w .icon-btn, body.edition-w .timer {
  border-image: none !important; background: #fff8e8 !important; border: 2.5px solid #2b2116 !important;
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px !important; filter: drop-shadow(5px 5px 0 #2b2116) !important;
}
body.edition-w .dname { border-image: none; background: none !important; color: #e5484d !important; border: 0; font-style: italic; }

/* ─── saves ─── */
.sv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sv-card { padding: 12px 14px; border: 8px solid transparent; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch; filter: drop-shadow(0 3px 0 rgba(40, 24, 10, .2)); display: grid; gap: 8px; }
.sv-card.on { filter: drop-shadow(0 0 0 #24cb86) drop-shadow(0 3px 0 rgba(40, 24, 10, .2)); outline: 3px solid #24cb86; outline-offset: 2px; }
.sv-card.empty { opacity: .85; }
.sv-head { display: flex; align-items: center; gap: 8px; }
.sv-head b { font: 800 16px var(--display); }
.sv-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #24cb86; color: #fff; padding: 3px 7px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.sv-tag.acc { background: var(--wood); }
.sv-who { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.sv-who i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.sv-meta { display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.sv-card .row { gap: 8px; flex-wrap: wrap; }
.sv-card .row .btn { min-width: 0; white-space: normal; }
@media (max-width: 420px) { .sv-card { padding: 10px; } .sv-card .row .btn { flex: 1 1 100%; } }

/* level complete: compact, with the buttons always in view */
.panel.complete { max-height: calc(100dvh - 32px); overflow-y: auto; }
.panel.complete .medals { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; }
.panel.complete .medal { flex: 1 1 0; min-width: 0; padding: 6px 4px; }
.panel.complete .medal small { font-size: 10px; }
.panel.complete .complete-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.panel.complete .complete-stats b { font-size: 20px; }
.panel.complete .xpline { margin-top: 10px; padding: 8px 10px; }
.panel.complete .actions { position: sticky; bottom: -24px; margin: 12px -24px -24px !important; padding: 12px 24px 16px; background: var(--parch); border-top: 2px solid rgba(138, 90, 51, .35); z-index: 2; }
@media (max-width: 520px) { .panel.complete .complete-stats { grid-template-columns: repeat(2, 1fr); } }

/* ─── tutorial ─── */
.tut { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 21; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 12px; border: 10px solid transparent; border-image: url('/assets/kenney/ui/panel_brown.png') 24 fill / 10px stretch; filter: drop-shadow(0 4px 0 rgba(40, 24, 10, .25)); animation: tut-in .45s cubic-bezier(.2, 1.4, .4, 1); max-width: min(560px, 94vw); }
.tut-keys { display: flex; gap: 4px; flex: none; padding: 6px 8px; border-radius: 10px; background: #3b2a1c; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.tut-keys:empty { display: none; }
.tut-keys img { height: 44px; width: auto; }
.tut-text { display: grid; gap: 2px; }
.tut-text b { font: 800 18px var(--display); color: var(--ink); }
.tut-text small { color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.tut-skip { align-self: flex-start; margin-left: 4px; background: none; border: 0; color: var(--ink-3); font: 600 11px var(--ui); cursor: pointer; text-decoration: underline; white-space: nowrap; }
.tut.done { animation: tut-done .9s ease forwards; }
.tut.done::after { content: '✓'; position: absolute; right: -14px; top: -14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #24cb86; color: #fff; font-weight: 900; font-size: 20px; border: 3px solid #fff1d2; animation: tut-pop .4s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes tut-in { from { opacity: 0; transform: translate(-50%, -16px) scale(.92); } }
@keyframes tut-done { 0%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes tut-pop { from { transform: scale(0); } }
@media (max-width: 520px) {
  .tut { top: 96px; width: calc(100vw - 32px); flex-wrap: wrap; gap: 8px 12px; }
  .tut-keys img { height: 32px; }
  .tut-text { flex: 1 1 160px; }
  .tut-skip { position: absolute; right: 2px; bottom: -2px; }
}

/* performance: no live blur over the moving game behind menus (it costs a full-screen pass every frame) */
.screen, .screen.title-screen, .letter, .toast, .pop, .dialog, .talk { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.screen { background: rgba(20, 36, 25, .45); }
.screen.title-screen { background: linear-gradient(90deg, rgba(251, 246, 234, .92) 0%, rgba(251, 246, 234, .7) 34%, rgba(251, 246, 234, 0) 62%); }
@media (max-width: 900px) { .screen.title-screen { background: linear-gradient(180deg, rgba(251, 246, 234, .94) 0%, rgba(251, 246, 234, .75) 70%, rgba(251, 246, 234, .5) 100%); } }

/* ─── notches and rounded corners (installed web app, iOS and Android apps) ─── */
:root { --safe-t: env(safe-area-inset-top, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
.hud-left { top: calc(16px + var(--safe-t)); left: calc(18px + var(--safe-l)); }
.hud-right { top: calc(16px + var(--safe-t)); right: calc(18px + var(--safe-r)); }
.hud-center { top: calc(16px + var(--safe-t)); }
.touch { padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
.screen { padding-top: max(20px, var(--safe-t)); padding-left: max(20px, var(--safe-l)); padding-right: max(20px, var(--safe-r)); }
.tut { margin-top: var(--safe-t); }
/* no text selection, callouts or tap flashes while thumbs are on the screen */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
/* effects reach past the edges; clip (unlike hidden) can never be scrolled, so a tap can't shove the game sideways */
#app { overflow: clip; }
/* the Kenney icons are spans too; list rules that stretch the label span must not stretch them */
.navlist button .kico, .m-item .kico, .acct-row .kico { flex: none; display: inline-block; }

/* ─── short screens (a phone held sideways): compact panels, cards and thumb buttons ─── */
@media (max-height: 500px) {
  .panel { padding: 14px 18px 16px; }
  .panel h2 { font-size: 18px; padding: 4px 30px 8px; margin: -4px 0 8px -4px; border-width: 8px 24px 12px; }
  .screen { padding-top: max(10px, var(--safe-t)); padding-bottom: 10px; }
  .tut { top: 54px; padding: 6px 10px; gap: 10px; max-width: min(460px, 70vw); }
  .tut-keys img { height: 30px; }
  .tut-text b { font-size: 15px; }
  .tut-text small { font-size: 12.5px; }
}
@media (pointer: coarse) and (max-height: 500px) {
  .touch { bottom: calc(8px + var(--safe-b)); }
  .touch button { width: 58px; height: 58px; opacity: .82; }
  .touch .small { width: 44px; height: 44px; }
  .touch .jump { width: 74px; height: 74px; }
}

/* the Raid's fire button keeps its own look: a coral circle with a seed mark, not a panel */
#raid .rd-fire { border-image: none !important; background: radial-gradient(circle at 50% 50%, #fff6d8 0 9px, transparent 10px), var(--coral, #ff6f61) !important; border: 3px solid var(--ink, #142419) !important; border-radius: 50% !important; box-shadow: 0 4px 0 rgba(20, 36, 25, .35), inset 0 -4px 0 rgba(0, 0, 0, .15) !important; filter: none !important; }
#raid .rd-fire:active { transform: translateY(3px) scale(.96); box-shadow: 0 1px 0 rgba(20, 36, 25, .35) !important; }

/* MOSS's sky-writing steps down below a tutorial card instead of writing over it */
body:has(#app > .tut) .sp-say.m-sky { top: calc(13% + 104px + var(--safe-t, 0px)); }
@media (max-width: 520px) { body:has(#app > .tut) .sp-say.m-sky { top: calc(96px + 150px + var(--safe-t, 0px)); } }
@media (max-height: 500px) { body:has(#app > .tut) .sp-say.m-sky { top: calc(54px + 84px); font-size: 18px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   MENUS — one family: wooden frames, green ribbons, big readable cards with
   icons, one obvious primary per screen, a lime focus ring for keyboards and
   gamepads (body.kbnav, see menunav.js), and room for thumbs and notches.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --safe-b: env(safe-area-inset-bottom, 0px); --focus: #c8f06e; --menu-ease: cubic-bezier(.16, 1, .3, 1); }
/* titles hang on green ribbons now (the pack's red one, turned to the leaf) */
.panel h2 { filter: hue-rotate(128deg) saturate(.8) brightness(.96); }
.screen { padding-bottom: max(20px, var(--safe-b)); }
/* the focus ring: only for keys and pads, never under a finger */
.kbnav .screen :is(button, [tabindex="0"], a, input, select):focus, .screen :is(button, [tabindex="0"], a):focus-visible { outline: 3.5px solid #23864a !important; outline-offset: 3px; box-shadow: 0 0 0 9px rgba(200, 240, 110, .55) !important; }
.kbnav .screen .sw-card:focus-within { outline: 3.5px solid #23864a; outline-offset: 2px; }
.kbnav .screen .sw-card input:focus { outline: none !important; }
@media (pointer: coarse) { .panel .close { width: 44px !important; height: 44px !important; top: 14px; right: 14px; } }
/* the rank chip's bar was squashed to nothing */
.rank-chip .xpbar { height: 18px !important; width: 96px; }

/* ─── the world holds its breath while you're paused ─── */
#hud, #touch, #toast, #pops, #news { transition: opacity .35s ease; }
body.world-held #hud, body.world-held #touch, body.world-held #toast, body.world-held #pops, body.world-held #news, body.world-held #sp-speech { opacity: 0 !important; pointer-events: none; }
#sp-speech { transition: opacity .35s ease; }
body.world-held #game, body.world-held #game3d, body.world-held #post { filter: saturate(.3) brightness(.86) contrast(.95); transform: scale(calc(1.012 + var(--breath, 0) * .008)); transition: filter .7s ease, transform 1.2s var(--menu-ease); }
body.reduced.world-held #game, body.reduced.world-held #game3d, body.reduced.world-held #post { transform: none; }
.screen.pz-wrap { background: radial-gradient(120% 90% at 50% 45%, rgba(14, 34, 20, .16), rgba(6, 16, 10, .6)); animation: pz-dim .5s ease both; }
@keyframes pz-dim { from { background-color: transparent; opacity: 0; } }

/* ─── the pause card ─── */
.screen.pz-wrap > .panel.pz { --bw: 14px; width: min(560px, 100%); max-height: none; overflow: visible; padding: 16px 22px 14px; animation: pz-in .62s var(--menu-ease) both; }
.screen.pz-wrap > .panel.pz.pz-back { animation: pz-back .3s ease-out both; }
@keyframes pz-in { 0% { opacity: 0; transform: translateY(22px) scale(.93); clip-path: inset(47% -80px 47% -80px); } 45% { opacity: 1; } 100% { transform: none; clip-path: inset(-80px); } }
@keyframes pz-back { from { opacity: 0; transform: translateY(8px); } }
.panel.pz .pz-body { position: relative; z-index: 1; max-height: calc(100dvh - max(20px, var(--safe-t)) - max(20px, var(--safe-b)) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
/* Resume is the way back (and Esc, B, the back button, a tap outside): no second close button */
.panel.pz .close { display: none !important; }
.pz-head { text-align: center; padding: 2px 8px 0; }
.pz-kick { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--leaf); }
.pz-pip { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6e; animation: pz-pip 3.2s ease-in-out infinite; }
@keyframes pz-pip { 50% { opacity: .35; transform: scale(.7); } }
.panel.pz h2.pz-t { display: block; margin: 8px 0 2px; padding: 0; border: 0; border-image: none; filter: none; color: var(--ink); text-shadow: none; font: 800 32px/1.02 var(--display); font-variation-settings: 'wdth' 82; letter-spacing: -.01em; }
.pz-sub { margin: 0; color: var(--ink-2) !important; font: 700 14px/1.3 var(--ui); }
.pz-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 9px 0 0; padding: 0; color: var(--ink-3); font: 500 13px/1.3 var(--ui); }
.pz-meta li { display: inline-flex; gap: 5px; align-items: center; }
.pz-meta .ico { color: var(--leaf); flex: none; }
.panel.pz .pz-resume { width: 100%; margin: 14px 0 12px; min-height: 66px; gap: 12px; font: 800 24px/1 var(--display); font-variation-settings: 'wdth' 85; letter-spacing: .01em; position: relative; animation: pz-card-in .5s .08s var(--menu-ease) both; }
.pz-resume kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font: 800 11px/1 var(--ui); letter-spacing: .06em; color: #fff; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .55); border-bottom-width: 3px; border-radius: 7px; padding: 4px 7px 3px; text-shadow: none; }
@media (pointer: coarse) { .pz-resume kbd { display: none; } }
.pz-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pz-card, .pz-chip { background: none; border: 8px solid transparent; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch; color: var(--ink); cursor: pointer; filter: drop-shadow(0 3px 0 rgba(40, 24, 10, .25)); transition: transform .2s cubic-bezier(.2, 1, .3, 1.4), filter .2s; }
.pz-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 86px; padding: 8px 4px 6px; font: 700 14px/1.15 var(--ui); text-align: center; animation: pz-card-in .55s calc(.14s + var(--i) * .045s) var(--menu-ease) both; }
.pz-card span:not(.ico) { display: block; max-width: 100%; }
.pz-card .ico, .pz-chip .ico { color: var(--leaf); }
.pz-card[data-a=restart] .ico { color: #c26a2a; }
.pz-card:hover, .pz-chip:hover, .kbnav .pz-card:focus, .kbnav .pz-chip:focus { transform: translateY(-3px); filter: drop-shadow(0 6px 0 rgba(40, 24, 10, .2)) brightness(1.04); }
.pz-card:active, .pz-chip:active { transform: translateY(1px); filter: drop-shadow(0 1px 0 rgba(40, 24, 10, .25)); }
.pz-back .pz-card, .pz-back .pz-resume { animation: none; }
@keyframes pz-card-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.pz-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 13px 0 0; padding-top: 11px; border-top: 2px dashed rgba(138, 90, 51, .3); }
.pz-more-l { grid-column: 1 / -1; text-align: center; font: 800 11px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }
.pz-chip { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 2px 6px; border-width: 6px; border-image-width: 6px; font: 700 13px/1.1 var(--ui); }
.pz-chip .ico { flex: none; }
.pz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pz-moss { display: flex; align-items: center; gap: 9px; margin: 0; flex: 1; min-width: 0; font: italic 400 14.5px/1.35 var(--serif); color: var(--ink-2) !important; }
.pz-moss[hidden] { display: flex; visibility: hidden; }
.pz-moss img { width: 28px; height: 28px; flex: none; animation: pz-moss 5.5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes pz-moss { 50% { transform: scale(1.06, .95) translateY(1px); } }
.pz-moss b { font: 800 10.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-right: 3px; font-style: normal; }
.pz-moss i { font-style: italic; }
.pz-moss.new { animation: pz-say .7s var(--menu-ease); }
@keyframes pz-say { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.pz-quit { flex: none; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; border-radius: 10px; color: #a3402c; font: 700 13px/1 var(--ui); padding: 10px 8px; cursor: pointer; transition: background .15s; }
.pz-quit:hover, .kbnav .pz-quit:focus { background: rgba(200, 69, 46, .1); }

/* vines: drawn with the frame's real size (menus.js growVines), growing up both sides and along the top */
.pz-vines { position: absolute; left: calc(-1 * var(--bw) - 14px); top: calc(-1 * var(--bw) - 14px); width: calc(100% + 2 * var(--bw) + 28px); height: calc(100% + 2 * var(--bw) + 28px); overflow: visible; pointer-events: none; z-index: 3; }
.pz-vines .vn { fill: none; stroke: #2f7a40; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: vn-grow .95s cubic-bezier(.35, .1, .25, 1) .04s forwards; }
.pz-vines .tn { fill: none; stroke: #2f7a40; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: vn-grow .45s ease-out var(--d) forwards; }
.pz-vines .lf { fill: #5dbb4f; stroke: #24603a; stroke-width: 1.1; transform-box: fill-box; transform-origin: 0% 50%; transform: scale(0); animation: lf-in .55s cubic-bezier(.2, 1.7, .4, 1) var(--d) forwards; }
.pz-vines .fl { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-40deg); animation: fl-in .5s cubic-bezier(.2, 1.8, .4, 1) var(--d) forwards; }
.pz-vines .fl ellipse { fill: #fff8e6; stroke: #c9b98f; stroke-width: .6; }
.pz-vines .fl circle { fill: #ffd166; }
@keyframes vn-grow { to { stroke-dashoffset: 0; } }
@keyframes lf-in { to { transform: scale(1); } }
@keyframes fl-in { to { transform: none; } }
.pz-vines.still .vn, .pz-vines.still .tn, body.reduced .pz-vines .vn, body.reduced .pz-vines .tn { animation: none; stroke-dashoffset: 0; }
.pz-vines.still .lf, .pz-vines.still .fl, body.reduced .pz-vines .lf, body.reduced .pz-vines .fl { animation: none; transform: none; }
/* …and on the way out the card sinks a little while the vines draw back in */
.mn-out-fold { position: fixed !important; margin: 0 !important; overflow: visible !important; pointer-events: none; animation: pz-out .36s cubic-bezier(.55, 0, .7, .2) forwards !important; }
.mn-out-fold .pz-body { overflow: hidden; }
@keyframes pz-out { to { opacity: 0; transform: translateY(16px) scale(.95); } }
.mn-out-fold .pz-vines .vn, .mn-out-fold .pz-vines .tn { stroke-dashoffset: 0; animation: vn-back .3s ease-in forwards !important; }
.mn-out-fold .pz-vines .lf, .mn-out-fold .pz-vines .fl { transform: none; animation: lf-out .2s ease-in forwards !important; }
@keyframes vn-back { to { stroke-dashoffset: 1; } }
@keyframes lf-out { to { transform: scale(0); } }
body.reduced .mn-out-fold { display: none; }

/* the extra options: small labelled tiles, four to a row, labels allowed to wrap (never cut off) */
.pz-chip { flex-direction: column; gap: 3px; min-height: 54px; padding: 3px 2px; border-width: 6px; }
.pz-chip span:not(.ico) { display: block; max-width: 100%; white-space: normal; text-align: center; line-height: 1.08; font-size: 12px; letter-spacing: -.005em; }
.pz-chip .ico, .pz-chip .kico { width: 18px !important; height: 18px !important; }
@media (max-width: 520px), (max-height: 500px) and (min-width: 600px) { .pz-chip span:not(.ico) { font-size: 10.5px; letter-spacing: -.01em; } .pz-chip { min-height: 52px; } }
@media (max-width: 520px) {
  .screen.pz-wrap { padding-left: max(8px, var(--safe-l)); padding-right: max(8px, var(--safe-r)); }
  .screen.pz-wrap > .panel.pz { padding: 10px 8px 8px; }
  .pz-chip { border-width: 5px; padding: 3px 1px; }
  .pz-more { gap: 4px; }
  .panel.pz h2.pz-t { font-size: 26px; margin-top: 6px; }
  .pz-sub { font-size: 13px; }
  .pz-meta { font-size: 12px; gap: 2px 10px; margin-top: 6px; }
  .panel.pz .pz-resume { min-height: 58px; font-size: 22px; margin: 10px 0 9px; }
  .pz-cards { gap: 6px; }
  .pz-card { min-height: 72px; font-size: 12.5px; gap: 4px; }
  .pz-card .ico, .pz-card .kico { width: 26px !important; height: 26px !important; }
  .pz-more { gap: 5px; margin-top: 10px; padding-top: 8px; }
  .pz-foot { flex-direction: column-reverse; align-items: stretch; gap: 4px; margin-top: 8px; }
  .pz-moss { font-size: 13.5px; }
  .pz-quit { justify-content: center; padding: 8px; }
}
/* a phone held sideways: two columns, everything on one screen */
@media (max-height: 500px) and (min-width: 600px) {
  .screen.pz-wrap { padding-top: max(8px, var(--safe-t)); padding-bottom: max(8px, var(--safe-b)); }
  .screen.pz-wrap > .panel.pz { width: min(780px, 100%); padding: 10px 14px 10px; }
  .panel.pz .pz-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: 'head cards' 'resume more' 'foot more'; column-gap: 16px; align-items: start; max-height: calc(100dvh - max(8px, var(--safe-t)) - max(8px, var(--safe-b)) - 48px); }
  .pz-head { grid-area: head; text-align: left; padding: 0; }
  .panel.pz h2.pz-t { font-size: 24px; margin-top: 6px; }
  .pz-sub { font-size: 12.5px; }
  .pz-meta { justify-content: flex-start; font-size: 12px; margin-top: 6px; gap: 2px 10px; }
  .panel.pz .pz-resume { grid-area: resume; align-self: end; min-height: 50px; font-size: 20px; margin: 6px 0 0; }
  .pz-cards { grid-area: cards; gap: 6px; }
  .pz-card { min-height: 62px; gap: 3px; font-size: 12.5px; padding: 4px; }
  .pz-card .ico { width: 24px !important; height: 24px !important; }
  .pz-more { grid-area: more; margin-top: 8px; padding-top: 8px; gap: 5px; }
  .pz-more-l { display: none; }
  .pz-chip { min-height: 46px; }
  .pz-foot { grid-area: foot; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
  .pz-moss { font-size: 13px; }
  .pz-quit { padding: 6px 4px; }
}

/* ─── settings: tabs of switch cards ─── */
.panel.settings { width: min(660px, 100%); display: flex; flex-direction: column; max-height: min(720px, calc(100dvh - max(20px, var(--safe-t)) - max(20px, var(--safe-b)))); overflow: hidden; }
.panel.settings > h2 { flex: none; align-self: flex-start; }
.st-tabs { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.st-tabs [role=tab] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 4px 2px; background: none; border: 7px solid transparent; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 7px stretch; color: var(--ink-2); font: 700 12.5px/1.1 var(--ui); cursor: pointer; filter: drop-shadow(0 3px 0 rgba(40, 24, 10, .22)); transition: transform .18s var(--menu-ease), filter .18s; }
.st-tabs [role=tab] span:not(.ico) { display: block; max-width: 100%; text-align: center; line-height: 1.05; letter-spacing: -.01em; }
.st-tabs [role=tab] .ico { color: var(--leaf); }
.st-tabs [role=tab]:hover { transform: translateY(-2px); }
.st-tabs [role=tab].on { border-image: url('/assets/kenney/ui/green_button_square_depth_gradient.png') 22 fill / 7px stretch; color: #fff; text-shadow: 0 1px 0 rgba(10, 70, 40, .45); }
.st-tabs [role=tab].on .ico { color: #fff; }
.st-panes { flex: 1 1 auto; min-height: min(300px, 40dvh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 4px 8px 8px; scrollbar-width: thin; }
.st-pane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.st-pane[hidden] { display: none; }
.st-pane.in > * { animation: st-in .38s var(--menu-ease) both; }
.st-pane.in > :nth-child(2) { animation-delay: .03s; } .st-pane.in > :nth-child(3) { animation-delay: .06s; } .st-pane.in > :nth-child(4) { animation-delay: .09s; }
.st-pane.in > :nth-child(5) { animation-delay: .12s; } .st-pane.in > :nth-child(n+6) { animation-delay: .15s; }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } }
.sw-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 10px 6px 8px; background: none; border: 8px solid transparent; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch; color: var(--ink); cursor: pointer; font: 600 14px/1.25 var(--ui); text-align: left; filter: drop-shadow(0 2px 0 rgba(40, 24, 10, .18)); }
.sw-card.wide, .sw-card.sl, .st-block.wide { grid-column: 1 / -1; }
.sw-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(35, 134, 74, .12); color: var(--leaf); }
.sw-l { flex: 1; min-width: 0; }
.sw-card input[type=checkbox] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; appearance: none; -webkit-appearance: none; }
.sw-t { flex: none; position: relative; width: 50px; height: 28px; border-radius: 99px; background: #d9ccb0; border: 2.5px solid var(--ink); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .12); transition: background .22s ease; }
.sw-t::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fffdf6; border: 2px solid var(--ink); box-sizing: border-box; transition: transform .28s cubic-bezier(.3, 1.5, .5, 1); }
.sw-card input:checked ~ .sw-t { background: #3fbf6e; }
.sw-card input:checked ~ .sw-t::after { transform: translateX(22px); }
.sw-card:hover .sw-t { box-shadow: inset 0 2px 0 rgba(0, 0, 0, .12), 0 0 0 3px rgba(63, 191, 110, .25); }
.sw-card.sl { flex-wrap: wrap; row-gap: 2px; padding-bottom: 4px; }
.sw-card.sl output { font: 800 14px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--leaf); min-width: 44px; text-align: right; }
.sw-card.sl input[type=range] { flex-basis: 100%; margin: 0; }
.sw-card.act { justify-content: flex-start; }
.sw-card.act > .kico, .sw-card.act > .ico:last-child { color: var(--ink-3); }
.sw-card.q { cursor: default; flex-wrap: wrap; }
.sw-card.q .q-seg { margin: 0; flex: none; }
.sw-card.q .q-seg button { padding: 7px 12px; font-size: 13px; cursor: pointer; background: none; border: 0; }
.st-block { padding: 2px 4px; }
.st-block h3 { margin: 12px 0 6px; }
.st-block .code-box { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.danger-zone { border-top: 2px dashed rgba(200, 69, 46, .3); margin-top: 6px; }
.danger-zone [data-note]:empty { display: none; }
.danger-zone [data-note] { color: #a3402c !important; font-weight: 600; }
.btn.armed, .sv-erase.armed { animation: armed 1s ease-in-out infinite; }
@keyframes armed { 50% { filter: brightness(1.15) drop-shadow(0 0 6px rgba(200, 69, 46, .6)); } }
@media (max-width: 560px) {
  .st-pane { grid-template-columns: minmax(0, 1fr); }
  .st-tabs { gap: 4px; }
  .st-tabs [role=tab] { font-size: 10.5px; min-height: 54px; border-width: 5px; padding: 3px 0; }
}
@media (max-height: 500px) {
  .sw-card.sl { flex-wrap: nowrap; }
  .sw-card.sl input[type=range] { flex: 1 1 45%; }
  .panel.settings { max-height: calc(100dvh - max(8px, var(--safe-t)) - max(8px, var(--safe-b))); }
  .st-panes { min-height: 0; }
  .st-tabs { margin-bottom: 8px; }
  .st-tabs [role=tab] { flex-direction: row; min-height: 40px; gap: 6px; }
  .sw-card { min-height: 50px; }
}

/* ─── title: the dock says what its icons are ─── */
.title-screen .dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.title-screen .dock .ib { width: auto !important; height: auto !important; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 7px stretch !important; border-width: 7px !important; color: var(--leaf) !important; }
.title-screen .dock .ib small { display: block; max-width: 100%; text-align: center; font: 700 10.5px/1.05 var(--ui); color: var(--ink-2); }
.title-screen .dock .ib:hover, .title-screen .dock .ib:focus-visible { transform: translateY(-2px) !important; }
/* a desktop window: Continue across the top, the rest two by two, so the whole menu and dock fit without scrolling */
@media (min-width: 901px) {
  .title-screen .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .title-screen .m-item.primary { grid-column: 1 / -1; }
  .title-screen .m-item:not(.primary) { padding: 9px 10px 9px 12px; gap: 10px; }
  .title-screen .m-item:not(.primary) b { font-size: 17px; }
  .title-screen .m-item:not(.primary) .chev { display: none; }
  .title-screen .m-item:not(.primary):last-child:nth-child(even) { grid-column: 1 / -1; }
}
/* a phone held sideways: a smaller logo, the menu two by two, the dock in one row of icons */
@media (max-height: 500px) and (min-width: 600px) {
  .screen.title-screen { padding-top: max(10px, var(--safe-t)); }
  .screen.title-screen .title-wrap { gap: 6px; width: min(620px, 100%); }
  .title-screen .rank-chip { padding-top: 2px; padding-bottom: 2px; }
  .title-screen .logo { font-size: 46px; }
  .title-screen .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
  .title-screen .m-item.primary { grid-column: 1 / -1; padding: 8px 14px; }
  .title-screen .m-item.primary b { font-size: 20px; }
  .title-screen .m-item:not(.primary) { padding: 6px 10px; gap: 8px; }
  .title-screen .m-item:not(.primary) b { font-size: 15px; }
  .title-screen .m-item:not(.primary) .chev { display: none; }
  .title-screen .m-item:not(.primary):last-child:nth-child(even) { grid-column: 1 / -1; }
  .title-screen .dock { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
  .title-screen .dock .ib { min-height: 42px; }
  .title-screen .dock .ib small { display: none; }
}
@media (min-width: 901px) and (max-height: 860px) { .title-wrap { gap: 9px; } .title-screen .tagline { display: none; } .title-screen .dock .ib { min-height: 52px; } }

/* ─── level complete: a short ribbon, the level under it, Next as the one big button ─── */
.panel.complete .cp-sub { margin: -6px 0 8px; font: 800 17px/1.2 var(--display); color: var(--ink-2) !important; }
.panel.complete .medal:not(.on) { opacity: .5; filter: grayscale(.7); }
.panel.complete .medal small { font-size: 10.5px !important; line-height: 1.15; }
.panel.complete .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.panel.complete .actions .btn.ghost { gap: 6px; }
.panel.complete .actions .btn.ghost { padding: 8px 12px; }
.panel.complete .cp-next { flex: 1 1 150px; min-height: 54px; font-size: 17px; gap: 8px; }
.panel.complete.sp-card > .sp-stamp { top: 64px; right: 18px; }
@media (max-width: 520px) {
  .panel.complete .complete-stats small { font-size: 11px; }
  .panel.complete .actions { justify-content: stretch; }
  .panel.complete .actions .btn.ghost { flex: 1 1 0; min-width: 0; padding: 6px 8px; }
  .panel.complete .actions .btn.ghost span:not(.ico) { display: none; }
  .panel.complete .actions .btn.ghost { min-height: 44px; }
  .panel.complete .next-preview { display: none; }
  .screen .panel.complete.sp-card { max-height: calc(100dvh - 110px - var(--safe-t)); }
  .panel.complete .actions { bottom: -16px; margin: 10px -14px -16px !important; padding: 10px 14px 12px; }
  .panel.complete .complete-stats div { padding: 4px 4px 5px !important; }
  .panel.complete .complete-stats b { font-size: 18px !important; }
  .panel.complete .medal small { font-size: 10px !important; }
  .panel.complete .cp-next { flex: 1 1 100%; order: -1; }
  .panel.complete.sp-card > .sp-stamp { top: 58px; font-size: 12px; }
}
/* every panel on a phone: a slimmer frame inside, a ribbon that fits on one line */
@media (max-width: 520px) {
  .panel { padding: 14px 14px 16px; }
  .panel h2 { font-size: 20px; padding: 5px 22px 10px; border-width: 10px 24px 15px; margin: -4px 0 12px -4px; max-width: calc(100% - 46px); }
}

/* ─── saves: erase is a quiet word until it's armed ─── */
.sv-acts { align-items: center; }
.sv-erase { margin-left: auto; background: none; border: 0; border-radius: 8px; color: #b23a26; font: 700 13px/1 var(--ui); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; cursor: pointer; }
.sv-erase.armed { color: #fff; background: #c8452e; text-decoration: none; padding: 10px 12px; }
.sv-note { margin: 0; color: #a3402c !important; font-weight: 600; font-size: 13px; }
.sv-note:empty { display: none; }

/* ─── emotes: faces you can hit with a thumb, then things to say ─── */
.emotes-panel .em-faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 2px 0 12px; }
.em-face { aspect-ratio: 1; display: grid; place-items: center; padding: 0; font-size: 26px; line-height: 1; background: none; border: 9px solid transparent; border-image: url('/assets/kenney/ui/round_brown.png') 30 fill / 9px stretch; cursor: pointer; transition: transform .2s cubic-bezier(.2, 1.6, .4, 1); animation: em-in .45s calc(var(--i) * .035s) var(--menu-ease) both; }
.em-face:hover, .kbnav .em-face:focus { transform: translateY(-3px) rotate(-5deg) scale(1.06); }
.em-says { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.em-say { min-height: 44px; padding: 4px 8px; background: none; border: 7px solid transparent; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 7px stretch; color: var(--ink); font: 700 14px/1.15 var(--ui); cursor: pointer; filter: drop-shadow(0 2px 0 rgba(40, 24, 10, .2)); transition: transform .18s var(--menu-ease); animation: em-in .45s calc(var(--i) * .02s) var(--menu-ease) both; }
.em-say:hover, .kbnav .em-say:focus { transform: translateY(-2px); }
@keyframes em-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@media (max-width: 520px) { .emotes-panel .em-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); } .em-face { aspect-ratio: auto; height: 54px; } }
@media (max-height: 500px) { .emotes-panel .em-faces { grid-template-columns: repeat(6, minmax(0, 1fr)); } .em-face { aspect-ratio: auto; height: 46px; } .em-says { grid-template-columns: repeat(3, minmax(0, 1fr)); } .em-say { min-height: 38px; font-size: 13px; } }

/* ─── the vote ─── */
.vote-panel .vote { padding: 12px 14px 12px 60px; background: none !important; border-style: solid !important; border-color: transparent !important; border-width: 8px !important; border-image: url('/assets/kenney/ui/button_brown.png') 10 fill / 8px stretch !important; border-radius: 0; filter: drop-shadow(0 3px 0 rgba(40, 24, 10, .2)); transition: transform .18s var(--menu-ease); }
.vote-panel .vote:hover { transform: translateY(-2px); }
.vote-panel .vote .bar { background: rgba(63, 191, 110, .2); }
.vote-panel .vote .vt-ic { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(35, 134, 74, .12); color: var(--leaf); }
.vote-panel .vote.mine { outline: 3px solid #3fbf6e; outline-offset: 2px; }
.vote-panel .vote.mine .vt-ic { background: #3fbf6e; color: #fff; }
.vote-panel .vote-go { justify-content: flex-end; margin-top: 4px; }
.vote-panel .vote-go .btn { min-width: 150px; min-height: 50px; }

/* ─── effects: motion that travels instead of dots that teleport ─── */
/* speed lines rush outward along fixed rays (cine.js speedLines) */
.speedlines.streaks { fill: none; }
.speedlines.streaks line { stroke: rgba(255, 255, 255, .85); stroke-width: var(--w, 2px); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: .26 .74; stroke-dashoffset: .26; animation: streak .5s linear var(--d, 0s) infinite; }
.speedlines.streaks.dark line { stroke: rgba(220, 255, 230, .55); }
@keyframes streak { 0% { stroke-dashoffset: .26; opacity: 0; } 18% { opacity: 1; } 100% { stroke-dashoffset: -.74; opacity: 0; } }
/* the ending's Sun buttons live on <body> (main.js endingOverlay), above the outside and its sunrise, while #app slides away */
body > .sun-button { z-index: 60; }
/* dust in the letter's lamplight (cine.js lampDust) */
.lt-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* a glitching HUD wobbles instead of snapping between two places */
body.glitching #hud { animation: hud-wobble .5s ease-in-out infinite !important; }
@keyframes hud-wobble { 0%, 100% { transform: none; } 30% { transform: translate(2px, -1px) skewX(-1deg); } 70% { transform: translate(-2px, 1px) skewX(1deg); } }
.attempt { animation: att-slide 1.1s cubic-bezier(.3, .7, .3, 1) forwards !important; }
@keyframes att-slide { 0% { opacity: 0; transform: translateX(-10px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(6px); } }

/* labels in small tiles (menus.js fitLabels): words wrap only between words; a label that still
   doesn't fit shrinks a little, and only at the smallest size may the browser hyphenate it */
:is(.pz-chip, .pz-card, .st-tabs [role=tab]) span:not(.ico), .title-screen .dock .ib small { overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
.pz-more.roomy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.title-screen .dock.roomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.title-screen .dock.roomy .ib { flex-direction: row; justify-content: flex-start; min-height: 46px; gap: 9px; padding: 4px 10px; }
.title-screen .dock.roomy .ib svg { flex: none; }
.title-screen .dock.roomy .ib small { text-align: start; font-size: 13px; }
