:root {
  --paper: #eef1ea;
  --panel: #fbfcf8;
  --ink: #17201a;
  --ink-2: #536159;
  --line: #d5dcd2;
  --chip: #e6ebe2;
  --chip-ink: #26312a;
  --accent: #2c7a52;
  --accent-ink: #ffffff;
  --accent-soft: #d6eadd;
  --sun: #f2b33d;
  --sun-ink: #2a1d03;
  --ok: #2c7a52;
  --warn: #a4471f;
  --glass: rgba(251, 252, 248, 0.84);
  --glass-line: rgba(23, 32, 26, 0.1);
  --stage-bg: #dfe6dd;
  --stage-floor: #cdd6cb;
  --stage-ring: #b3bfb0;
  --shadow: 0 1px 2px rgba(23, 32, 26, 0.08), 0 8px 24px rgba(23, 32, 26, 0.1);
  --ink-3: #7d8a81;
  --card: #f2f5ef;
  --ring: #17201a;
  --stage-top: #edf2ea;
  --stage-bottom: #c7d2c3;
  --stage-glow: rgba(255, 255, 255, 0.7);
  --sheet-shadow: 0 -10px 30px rgba(23, 32, 26, 0.14);
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1411;
    --panel: #151b17;
    --ink: #e3e9e4;
    --ink-2: #9aa79f;
    --line: #29322c;
    --chip: #1f2722;
    --chip-ink: #dbe3dd;
    --accent: #5cc08e;
    --accent-ink: #0b1a12;
    --accent-soft: #1c3328;
    --sun: #f4c04e;
    --sun-ink: #231903;
    --ok: #5cc08e;
    --warn: #f09a6b;
    --glass: rgba(21, 27, 23, 0.82);
    --glass-line: rgba(227, 233, 228, 0.12);
    --stage-bg: #1b231f;
    --stage-floor: #29332d;
    --stage-ring: #3a463e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --ink-3: #6f7c74;
    --card: #1a211d;
    --ring: #e3e9e4;
    --stage-top: #1f2923;
    --stage-bottom: #0c110e;
    --stage-glow: rgba(92, 192, 142, 0.12);
    --sheet-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1411;
  --panel: #151b17;
  --ink: #e3e9e4;
  --ink-2: #9aa79f;
  --line: #29322c;
  --chip: #1f2722;
  --chip-ink: #dbe3dd;
  --accent: #5cc08e;
  --accent-ink: #0b1a12;
  --accent-soft: #1c3328;
  --sun: #f4c04e;
  --sun-ink: #231903;
  --ok: #5cc08e;
  --warn: #f09a6b;
  --glass: rgba(21, 27, 23, 0.82);
  --glass-line: rgba(227, 233, 228, 0.12);
  --stage-bg: #1b231f;
  --stage-floor: #29332d;
  --stage-ring: #3a463e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --ink-3: #6f7c74;
  --card: #1a211d;
  --ring: #e3e9e4;
  --stage-top: #1f2923;
  --stage-bottom: #0c110e;
  --stage-glow: rgba(92, 192, 142, 0.12);
  --sheet-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

/* Spacing scale: 4 · 8 · 12 · 16 · 24 */
html {
  box-sizing: border-box;
  height: 100%;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
/* (A label holding its hidden input, the Save tab's Import .json, keeps it inside: see .field.) */
label.btn {
  position: relative;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------- loading screen */
/* Shown by the page itself before any script runs (index.html #boot): the logo on pink, Tap to start
   from the first moment (the first tap starts the title song: index.html's script), and the bar
   creator/boot.js drives by the base asset's bytes. It fades out once the game is ready. Pink in
   light and dark alike: it's the brand's. */
.boot {
  --boot-pink: #ff8ec4;
  --boot-hot: #e2478c;
  --boot-plum: #7d2453;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(255, 255, 255, 0.85), transparent 72%),
    linear-gradient(to bottom, #ffe9f3, #ffc7e0);
  color: var(--boot-plum);
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.boot.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(360px, 100%);
  text-align: center;
}
.boot-mark {
  margin: 0 0 6px;
  width: min(340px, 82vw);
  line-height: 0;
}
.boot-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 10px 18px rgba(226, 71, 140, 0.28));
  animation: boot-bob 3.2s ease-in-out infinite;
}
@keyframes boot-bob {
  50% {
    translate: 0 -5px;
    rotate: -1.5deg;
  }
}
.boot-bar {
  position: relative;
  width: min(260px, 80%);
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(226, 71, 140, 0.18);
}
.boot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, var(--boot-hot), var(--boot-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}
/* No size known yet (before the script, or a server that doesn't say): a sliding bar. */
.boot:not(.known, .failed) .boot-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  border-radius: inherit;
  background: var(--boot-hot);
  animation: boot-slide 1.3s ease-in-out infinite;
}
@keyframes boot-slide {
  from {
    translate: -100% 0;
  }
  to {
    translate: 300% 0;
  }
}
.boot-line {
  margin: 0;
  min-height: 1.45em;
  font-size: 13px;
  font-weight: 600;
  color: var(--boot-plum);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.boot.failed .boot-line {
  color: #b42318;
  opacity: 1;
}
.boot.failed .boot-fill {
  transform: scaleX(0);
}
/* Loaded before a tap: Tap to start alone. Tapped while loading: the bar alone, the song playing. */
.boot.ready .boot-bar,
.boot.ready .boot-line,
.boot.tapped .boot-start {
  display: none;
}
.boot.tapped {
  cursor: progress;
}
.boot-start.btn.primary {
  min-width: 200px;
  min-height: 52px;
  border: 0;
  border-radius: 99px;
  font: 400 21px/1 var(--display);
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to bottom, #f0609f, var(--boot-hot));
  box-shadow: 0 4px 0 #b8306c, 0 10px 22px rgba(226, 71, 140, 0.35);
  animation: boot-pulse 1.8s ease-in-out infinite;
}
.boot-start.btn.primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
#boot-retry.btn.primary {
  border: 0;
  color: #fff;
  background: var(--boot-hot);
}
@keyframes boot-pulse {
  50% {
    scale: 1.05;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-start.btn.primary,
  .boot-logo {
    animation: none;
  }
}

/* ------------------------------------------------------------ layout */
.app {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}
.app[data-mode="park"] {
  grid-template-columns: minmax(0, 1fr);
}
.app[data-mode="park"] .create-only,
.app[data-mode="create"] .park-only {
  display: none !important;
}
.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 42%, var(--stage-glow), transparent 70%),
    linear-gradient(to bottom, var(--stage-top), var(--stage-bottom));
}
#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

/* ------------------------------------------------------------ header */
.bar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 5;
}
.bar > * {
  pointer-events: auto;
}
.brand {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background-color 0.2s, border-color 0.2s;
}
/* Framed on the feet, the character fills the stage behind the title: a glass backing keeps it legible. */
.app[data-framing="feet"] .brand {
  margin: -6px 0 0 -10px;
  padding: 6px 10px 7px;
  background: var(--glass);
  border-color: var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wordmark {
  margin: 0 0 2px;
  font: 400 14px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.name-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: text;
}
#name-edit {
  field-sizing: content;
  min-width: 3ch;
  max-width: min(42vw, 360px);
  margin: 0 0 0 -4px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 400 32px/1.15 var(--display);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-overflow: ellipsis;
  transition: background-color 0.15s;
}
#name-edit:hover {
  background: var(--glass);
}
#name-edit:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  background: var(--glass);
}
.pencil {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  opacity: 0.7;
}
.name-edit:hover .pencil {
  opacity: 1;
}
.rig-note {
  margin: 4px 0 0;
  font: 500 11.5px/1.3 var(--mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.split {
  position: relative;
  display: flex;
}
.split-main {
  border-radius: 12px 0 0 12px;
}
.split-more {
  padding-inline: 6px;
  border-left-width: 0;
  border-radius: 0 12px 12px 0;
}
.split-more .i {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}
.split-more[aria-expanded="true"] .i {
  transform: rotate(180deg);
}
.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: pop 0.14s ease-out;
}
.menu-title {
  margin: 4px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.menu button .i {
  color: var(--ink-2);
}
.menu button:hover,
.menu button:focus-visible {
  background: var(--chip);
  outline-offset: -2px;
}
.menu button.current::after {
  content: 'this tab';
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.lbl-short {
  display: none;
}
/* The park's way back: one line always; on a narrow phone just "Back" (the money pill grows with the
   wallet, and the Phone button beside it keeps its size). */
#btn-back {
  white-space: nowrap;
  flex: none;
}
/* (Not the short label wherever the creator's buttons take theirs: a phone on its side has room.) */
#btn-back .lbl-short {
  display: none;
}
@media (max-width: 520px) {
  #btn-back .lbl {
    display: none;
  }
  #btn-back .lbl-short {
    display: inline;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

/* -------------------------------------------------------------- dock */
.dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.dock-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.seg {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.12s, color 0.12s, transform 0.12s;
}
.seg button:hover {
  background: var(--chip);
}
.seg button:active {
  transform: scale(0.94);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
}
.seg .icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}
.seg .icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
  transform: none;
}
.seg .icon-btn .i {
  width: 22px;
  height: 22px;
}
.seg-div {
  align-self: stretch;
  width: 1px;
  margin: 6px 3px;
  background: var(--glass-line);
}
.bar .icon-seg {
  flex-wrap: nowrap;
  padding: 3px;
  border-radius: 12px;
}
.bar .icon-btn {
  width: 36px;
  height: 36px;
}
/* Tooltips for icon buttons, where there is a pointer that hovers. */
[data-tip] {
  position: relative;
}
@media (hover: hover) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 40;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--ink);
    color: var(--panel);
    font: 600 12px/1.2 var(--body);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 3px);
    transition: opacity 0.12s, transform 0.12s;
  }
  .bar [data-tip]::after {
    bottom: auto;
    top: calc(100% + 10px);
    transform: translate(-50%, -3px);
  }
  [data-tip]:hover::after,
  [data-tip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.25s;
  }
  [aria-expanded="true"] ~ [data-tip]::after,
  .split:has(.menu:not([hidden])) [data-tip]::after {
    display: none;
  }
}
/* A button's tip hides once it has been used, until the pointer leaves it (main.js): it would sit
   over what the click opens, the Feet button's over the toe row. */
[data-tip][data-tip-used]::after {
  display: none;
}
/* The dock's groups keep to one row each; the buttons that don't fit go into More (creator/dock.js). */
.dock-bar .seg {
  flex-wrap: nowrap;
}
.dock-label {
  display: none;
}
#btn-more.has-on::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.dock-more {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  pointer-events: auto;
}
.dock-more button {
  min-height: 44px;
}
.dock-more .dock-label {
  display: inline;
}
.dock-more button[aria-pressed="true"] {
  background: var(--accent-soft);
}
.dock-more [data-tip]::after {
  display: none;
}
.dock-more .seg-div {
  display: none;
}
/* A scrolling box's edges fade while there is more beyond them (creator/scroll-cue.js): the tab row
   on a phone, a panel's pages in a short window. */
.cue-y.more-end {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
}
.cue-y.more-start {
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent);
}
.cue-y.more-start.more-end {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 40px), transparent);
}
.cue-x.more-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.cue-x.more-start {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
}
.cue-x.more-start.more-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
/* The toe-pose row (shown while the camera frames the feet) sits on its own line above the bar. */
.dock-row {
  display: flex;
  min-width: 0;
}
.toe-seg {
  max-width: 100%;
}
.seg-label {
  padding: 0 6px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.toe-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.toe-note button {
  background: var(--chip);
}

/* ------------------------------------------------------------ toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: 84px;
  z-index: 20;
  max-width: calc(100% - 32px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  transform: translateX(-50%);
  animation: toast-in 0.2s ease-out;
  transition: opacity 0.25s;
  pointer-events: none;
}
.toast::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.toast[data-tone="warn"]::before {
  background: var(--warn);
}
.toast.out {
  opacity: 0;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, filter 0.12s ease;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn:hover {
  background: var(--chip);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.sun {
  background: var(--sun);
  color: var(--sun-ink);
  border-color: transparent;
  box-shadow: var(--shadow), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn.sun:hover {
  filter: brightness(1.05);
}
.btn.cta {
  font-weight: 700;
  padding-inline: 16px;
}
.btn.glass {
  background: var(--glass);
  border-color: var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn.glass:hover {
  background: var(--panel);
}
.btn.small {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn.danger {
  background: var(--warn);
  color: #fff;
  border-color: transparent;
}

/* ------------------------------------------------------------ panel */
.panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
}
.panel-head {
  flex: none;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.sheet-handle {
  display: none;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 12px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 8px 2px 7px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.1;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.tab:hover {
  background: var(--chip);
  color: var(--ink);
}
.tab[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--ink);
}
.tab[aria-selected="true"] .i {
  color: var(--accent);
}
.tab .i {
  width: 22px;
  height: 22px;
}
.pages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 12px 24px;
  scrollbar-width: thin;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
/* Cards and fields shrink to the panel (a phone on its side gives it 260-320 px): a text box's own
   width never pushes one past it. */
.group,
.card,
.field {
  grid-template-columns: minmax(0, 1fr);
}
.row > input[type='text'] {
  flex: 1;
  min-width: 0;
}
.group {
  display: grid;
  gap: 16px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.group-title::before {
  content: '';
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.field {
  /* Positioned, so the hidden pieces inside (a legend, a switch's checkbox) stay in the sheet: placed
     against the page instead, past a phone's fold, they made the page itself taller than the screen. */
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field.slider {
  gap: 4px;
}
.field legend,
.field-head,
.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}
.field-head,
.label {
  margin-bottom: 0;
}
.field-head label {
  cursor: pointer;
}
.value {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ends {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink-3);
}

input[type='range'] {
  --fill: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));
}
input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s;
}
input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--accent);
}
input[type='range']:focus-visible {
  outline-offset: 4px;
  border-radius: 6px;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
}
.chips.two {
  grid-template-columns: 1fr 1fr;
}
/* Grouped chips (the Feet tab's Flats, Heels, Boots): a small heading over each row. */
.chip-group + .chip-group {
  margin-top: 10px;
}
.chip-group-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chip {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--chip-ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, transform 0.12s;
}
.chip:hover {
  border-color: var(--ink-3);
}
.chip:active {
  transform: scale(0.97);
}
.chip[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* A switch (the Feet tab's Wear shoes): a checkbox drawn as a track and knob. */
.field.toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.field.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.field.toggle .switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: var(--line);
  transition: background-color 0.15s;
}
.field.toggle .switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.field.toggle input:checked + .switch {
  background: var(--accent);
}
.field.toggle input:checked + .switch::after {
  transform: translateX(16px);
}
.field.toggle input:focus-visible + .switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field.toggle input:disabled + .switch {
  opacity: 0.45;
}
.field.toggle .hint {
  margin: 4px 0 0 50px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.swatches .chip {
  padding: 5px 12px;
  border-radius: 99px;
}
.swatch {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch[aria-pressed='true'],
.swatch.custom.on {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 0 0 2px var(--card), 0 0 0 4px var(--ring);
}
.swatch.custom {
  display: grid;
  place-items: center;
  background: conic-gradient(#e0663a, #e8b536, #6f9b3a, #2f8f9d, #3b5c8e, #c56b9a, #e0663a);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.swatch.custom.on {
  background: var(--c);
}
.swatch.custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.swatch.custom:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------------------------------------------------------- save tab */
.card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.card h2 {
  margin: 0;
  font: 400 19px/1.15 var(--display);
  letter-spacing: 0.01em;
}
.muted {
  color: var(--ink-2);
}
.card p {
  margin: 0;
  font-size: 13.5px;
}
.small {
  font-size: 12.5px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.row.tight {
  gap: 4px;
  flex-wrap: nowrap;
}
#char-name {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
}
textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font: 500 11.5px/1.45 var(--mono);
}
.status {
  min-height: 1.3em;
  font-size: 13px;
  font-weight: 600;
}
.status[data-tone='ok'] {
  color: var(--ok);
}
.status[data-tone='warn'] {
  color: var(--warn);
}
.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.specs dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 1px;
}
.specs dd {
  margin: 0;
  font: 500 12px/1.45 var(--mono);
  font-variant-numeric: tabular-nums;
}
.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.saved-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}
.saved-list li.empty {
  background: transparent;
  border-style: dashed;
  font-size: 13px;
}
.saved-list strong {
  overflow-wrap: anywhere;
}
.confirm {
  font-size: 13px;
  font-weight: 600;
  padding-right: 4px;
}

/* The Face tab's Your faces: a chip per saved face, its delete (×) inside the chip's right end. */
.face-chip {
  position: relative;
  display: flex;
  min-width: 0;
}
.face-chip .chip {
  flex: 1;
  min-width: 0;
  padding-right: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-x {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: var(--chip-ink);
  font-size: 17px;
  line-height: 1;
  opacity: 0.55;
  cursor: pointer;
}
.face-chip:has(.chip[aria-pressed='true']) .chip-x {
  color: var(--accent-ink);
}
.chip-x:hover,
.chip-x:focus-visible {
  opacity: 1;
}
.face-confirm {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.face-chips {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.face-chips .empty {
  grid-column: 1 / -1;
  margin: 0;
}
.face-save {
  margin-top: 8px;
}
.face-save input {
  flex: 1;
  min-width: 0;
}

/* ---------------------------------------------------------- park hud */
.keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
  max-width: 460px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.6s ease;
}
.keys.faded {
  opacity: 0.45;
}
kbd {
  display: inline-block;
  min-width: 22px;
  margin-right: 2px;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--panel);
  font: 500 11.5px/1.3 var(--mono);
  text-align: center;
}
.touch-pad {
  position: absolute;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: flex-end;
  gap: 10px;
}
.round {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: manipulation;
  transition: transform 0.1s;
}
.round:active {
  transform: scale(0.93);
}
.round.big {
  width: 76px;
  height: 76px;
  background: var(--sun);
  color: var(--sun-ink);
  border-color: transparent;
}
.round[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
.joy {
  position: absolute;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.joy-knob {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.75;
}
.loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow);
  font-weight: 600;
}

@media (pointer: coarse) {
  .touch-pad {
    display: flex;
  }
  .keys {
    display: none !important;
  }
}

/* ------------------------------------------------ narrower desktops */
@media (max-width: 1120px) {
  .app {
    grid-template-columns: minmax(0, 1fr) 344px;
  }
  .split-main .lbl {
    display: none;
  }
  .split-main {
    padding-inline: 10px;
  }
}

/* ------------------------------------------------------------ phone */
/* Upright phones and narrow windows: the panel is a bottom sheet (main.js drags it). */
@media (max-width: 820px) and (orientation: portrait) {
  .app {
    --sheet: 42%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) var(--sheet);
    transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .app[data-sheet='min'] {
    --sheet: 118px;
  }
  .app[data-sheet='max'] {
    --sheet: 80%;
  }
  .app.dragging {
    transition: none;
  }
  .app[data-mode='park'] {
    grid-template-rows: minmax(0, 1fr);
  }
  /* The panel is a bottom sheet over the stage's lower edge. */
  .panel {
    z-index: 6;
    margin-top: -18px;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--sheet-shadow);
  }
  .panel-head {
    border-radius: 20px 20px 0 0;
  }
  .sheet-handle {
    display: grid;
    place-items: center;
    width: 100%;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 20px 20px 0 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }
  .sheet-handle:active {
    cursor: grabbing;
  }
  .sheet-handle:focus-visible {
    outline-offset: -3px;
  }
  .grip {
    width: 40px;
    height: 5px;
    border-radius: 99px;
    background: var(--ink-3);
    opacity: 0.6;
  }
  .tabs {
    padding-top: 0;
  }
  .pages {
    padding: 10px 10px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  /* Fully open, the sheet leaves a strip of stage: the dock steps aside. */
  .app[data-sheet='max'] .dock {
    display: none;
  }
}

/* A phone on its side (and any short or narrow landscape window): the side panel, narrower, so the
   stage keeps its width. */
@media (orientation: landscape) and (max-height: 500px), (orientation: landscape) and (max-width: 820px) {
  .app {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 36vw, 320px);
  }
  .pages {
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* Every small screen, upright or on its side: a compact header, the tabs in one row that fits, the
   dock one row of icons at a thumb's size (what doesn't fit goes into its More menu: creator/dock.js)
   and the toe row one line. */
@media (max-width: 820px), (max-height: 500px) {
  /* Tabs: one row, each as wide as its name at least; it scrolls sideways (its edges fade) only on
     the narrowest screens. */
  .tabs {
    display: flex;
    gap: 2px;
    padding: 6px 8px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: 1 1 0;
    min-width: max-content;
    padding: 6px 5px;
    font-size: 11.5px;
  }
  .tab .i {
    width: 20px;
    height: 20px;
  }
  .group {
    padding: 12px 14px 14px;
    gap: 14px;
  }

  .bar {
    top: 10px;
    left: 14px;
    right: 14px;
    gap: 8px;
  }
  .wordmark,
  .rig-note,
  .pencil {
    display: none;
  }
  #name-edit {
    font-size: 23px;
    max-width: 44vw;
  }
  .brand {
    padding-top: 4px;
  }
  .app[data-framing="feet"] .brand {
    margin: -2px 0 0 -8px;
    padding: 4px 8px;
  }
  .bar-actions {
    gap: 6px;
  }
  .bar .icon-btn {
    width: 34px;
    height: 34px;
  }
  .btn {
    padding: 9px 12px;
    font-size: 13.5px;
  }
  .split-main {
    padding-inline: 9px;
  }
  .split-main .lbl {
    display: none;
  }
  .split-more {
    padding-inline: 4px;
  }
  .btn.cta {
    padding-inline: 12px;
  }
  .cta .lbl {
    display: none;
  }
  .lbl-short {
    display: inline;
  }
  .menu {
    right: -70px;
  }

  /* One compact bar: animations | camera, icons only, each at least 40 px wide. */
  .dock {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .dock-bar {
    pointer-events: auto;
    gap: 0;
    padding: 3px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .dock-bar .seg {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dock-bar .seg + .seg {
    margin-left: 3px;
    padding-left: 3px;
    border-left: 1px solid var(--glass-line);
  }
  .dock-bar .icon-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 40px;
    max-width: 48px;
    height: 40px;
  }
  .dock-bar .seg-div {
    margin: 8px 1px;
  }
  .dock-more {
    right: 0;
  }
  .toast {
    bottom: auto;
    top: 58px;
  }
  .seg button {
    padding: 6px 8px;
    font-size: 12.5px;
  }
  /* The toe row: one line that scrolls sideways; the page itself never does. */
  .toe-seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .toe-seg > * {
    flex: none;
  }
  .toe-seg .seg-label {
    display: none;
  }
  .toe-seg button {
    min-height: 36px;
  }
  /* Faded edges say there is more of the row to scroll to (main.js sets the classes). */
  .toe-seg.more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .toe-seg.more-left {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  }
  .toe-seg.more-left.more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
  .toe-note {
    white-space: nowrap;
  }
}

/* On its side the header and dock sit closer to the edges: every pixel of height counts. */
@media (max-height: 500px) {
  .bar {
    top: 8px;
  }
  .dock {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .toast {
    top: 50px;
  }
}
/* On its side the panel is narrow (about 300 px): the seven tabs tighten to fit it, Save too. */
@media (orientation: landscape) and (max-height: 500px), (orientation: landscape) and (max-width: 820px) {
  .tabs {
    gap: 0;
    padding-inline: 4px;
  }
  .tab {
    padding: 5px 2px;
    font-size: 10.5px;
    letter-spacing: -0.01em;
  }
}

/* The narrowest phones (360 px and under 380): the header's buttons tighten so the name still shows. */
@media (max-width: 380px) {
  .bar {
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .bar-actions {
    gap: 4px;
  }
  .bar .icon-btn {
    width: 32px;
    height: 32px;
  }
  #name-edit {
    font-size: 20px;
  }
  .split-main {
    padding-inline: 8px;
  }
  .btn.cta {
    padding-inline: 10px;
  }
}

/* Upright, the sheet laps over the stage's foot: the dock and the tabs keep clear of it and its handle. */
@media (max-width: 820px) and (orientation: portrait) {
  .dock {
    bottom: 28px;
  }
  .tabs {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------ moves */
/* The Moves row (creator/moves-row.js): the imported clips by category, above the dock. */
.moves-seg {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}
.moves-tabs,
.moves-list {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.moves-tabs::-webkit-scrollbar,
.moves-list::-webkit-scrollbar {
  display: none;
}
.moves-tabs > *,
.moves-list > * {
  flex: none;
}
.moves-seg .moves-tabs button {
  /* (A thumb's target: the tabs as tall as a compact chip.) */
  min-height: 32px;
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.moves-seg .moves-tabs button[aria-selected="true"] {
  background: var(--chip);
  color: var(--ink);
}
.moves-seg .moves-list button {
  min-height: 36px;
  white-space: nowrap;
}
.moves-list button[data-loading] {
  animation: moves-loading 0.8s ease-in-out infinite alternate;
}
@keyframes moves-loading {
  to {
    opacity: 0.35;
  }
}
.moves-tabs.more-right,
.moves-list.more-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.moves-tabs.more-left,
.moves-list.more-left {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
}
.moves-tabs.more-left.more-right,
.moves-list.more-left.more-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* ------------------------------------------------------- sitting poses */
/* The dock's Sit button opens the poses above the dock's left end. */
.pose-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  pointer-events: auto;
}
.pose-menu button[aria-pressed="true"] {
  background: var(--accent-soft);
}
.pose-menu button:not(:has(.i)) {
  padding-left: 42px;
}
@media (max-width: 820px) {
  .pose-menu {
    right: auto;
    left: 0;
  }
}
