/* Pinquest workspace. Root rules are scoped to .uwapp-root.uwapp-pinquest (the body carries the app class too).
   The table, the menu over the attract mode and the side panel are game content (dark arcade look, own colours);
   dialogs follow the site design system (light tokens, dark = the --d-* constants). No inline styles (CSP). */
.uwapp-root.uwapp-pinquest {
  --pq-surface: var(--surface); --pq-surface-2: var(--surface-2); --pq-ink: var(--ink); --pq-muted: var(--muted); --pq-line: var(--line);
  --pq-control: var(--control); --pq-accent: var(--primary); --pq-accent-ink: var(--primary-text); --pq-on-accent: var(--on-accent); --pq-focus: var(--focus-color);
  --pq-pop-shadow: 0 16px 48px rgb(31 48 56 / .18);
  /* game content colours (always dark) */
  --pq-night: #07080d; --pq-panel: #11131c; --pq-panel-2: #1a1d2a; --pq-text: #f2f1ec; --pq-text-2: #c9c8d6; --pq-gold: #ffd166; --pq-game-line: #343850; --pq-game-focus: #ffd166;
  color-scheme: light;
}
:root[data-theme="dark"] .uwapp-root.uwapp-pinquest {
  --pq-surface: var(--d-surface); --pq-surface-2: var(--d-surface-2); --pq-ink: var(--d-ink); --pq-muted: var(--d-muted); --pq-line: var(--d-line);
  --pq-control: var(--d-control); --pq-accent: var(--d-primary); --pq-accent-ink: #7fd8e0; --pq-on-accent: var(--d-on-accent); --pq-focus: var(--d-focus);
  --pq-pop-shadow: 0 16px 48px rgb(0 0 0 / .55); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uwapp-root.uwapp-pinquest {
    --pq-surface: var(--d-surface); --pq-surface-2: var(--d-surface-2); --pq-ink: var(--d-ink); --pq-muted: var(--d-muted); --pq-line: var(--d-line);
    --pq-control: var(--d-control); --pq-accent: var(--d-primary); --pq-accent-ink: #7fd8e0; --pq-on-accent: var(--d-on-accent); --pq-focus: var(--d-focus);
    --pq-pop-shadow: 0 16px 48px rgb(0 0 0 / .55); color-scheme: dark;
  }
}

/* platform element defaults leak into app workspaces: reset them at zero specificity */
:where(.pq-app, .pq-dlg) button { font: inherit; font-size: .92rem; font-weight: 600; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; width: auto; min-height: 0; margin: 0; }
:where(.pq-app, .pq-dlg) button:hover { background: none; }
:where(.pq-dlg) :is(input, select) { font: inherit; font-size: .92rem; color: var(--pq-ink); background: var(--pq-surface); border: 1px solid var(--pq-control); border-radius: 8px; padding: .35rem .5rem; width: auto; max-width: 100%; margin: 0; box-sizing: border-box; min-height: 36px; }
:where(.pq-dlg) input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--pq-accent); flex: none; }
:where(.pq-dlg) input[type=range] { width: 100%; accent-color: var(--pq-accent); padding: 0; border: 0; background: none; }
:where(.pq-dlg) table { border-collapse: collapse; width: 100%; margin: 0 0 .6rem; font-size: .9rem; }
:where(.pq-dlg) :is(th, td) { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--pq-line); vertical-align: top; color: var(--pq-ink); }
:where(.pq-dlg) thead th { background: var(--pq-surface-2); }
:where(.pq-dlg) kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; padding: 1px 6px; border: 1px solid var(--pq-control); border-bottom-width: 2px; border-radius: 5px; background: var(--pq-surface-2); color: var(--pq-ink); white-space: nowrap; }
:where(.pq-app, .pq-dlg) :is(h1, h2, h3) { margin: 0 0 .45rem; line-height: 1.2; }
:where(.pq-app, .pq-dlg) p { margin: .3rem 0; }
:where(.pq-app, .pq-dlg) :is(ul, ol) { margin: .3rem 0; padding-inline-start: 1.3rem; }
:where(.pq-dlg) fieldset { border: 1px solid var(--pq-line); border-radius: 12px; padding: .5rem .8rem .7rem; margin: 0 0 .7rem; }
:where(.pq-dlg) legend { font-weight: 700; padding: 0 .3rem; }

.pq-app { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; min-width: 0; background: var(--pq-night); color: var(--pq-text); font-family: var(--font-sans); overflow: hidden; }
.pq-app:fullscreen, .pq-app.pq-immersive { width: 100vw; height: 100vh; height: 100dvh; }
.pq-app.pq-immersive { position: fixed; inset: 0; z-index: 1000; }
.pq-app :focus-visible { outline: 3px solid var(--pq-game-focus); outline-offset: 2px; }
.pq-dlg :focus-visible { outline: 3px solid var(--pq-focus); outline-offset: 2px; }
.pq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- stage */
.pq-stage { position: relative; grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
.pq-stage:focus-visible { outline: 3px solid var(--pq-game-focus); outline-offset: -3px; }
.pq-gl, .pq-2d, .pq-overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pq-overlay { pointer-events: none; }
.pq-hud { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 6px; z-index: 3; }
.pq-app[data-view="menu"] .pq-hud { display: none; }
.pq-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--pq-text); background: rgb(17 19 28 / .78); border: 1px solid var(--pq-game-line); flex: none; }
.pq-icon-btn:hover { background: rgb(40 44 64 / .9); }
.pq-icon-btn[aria-pressed="true"] { border-color: var(--pq-gold); }
.pq-touchhint { position: absolute; inset-inline: 12px; bottom: 12px; margin: 0; padding: .5rem .8rem; border-radius: 10px; background: rgb(7 8 13 / .86); color: var(--pq-text); font-size: .9rem; text-align: center; pointer-events: none; z-index: 2; }
.pq-badge { position: absolute; top: 10px; inset-inline-start: 10px; margin: 0; padding: .2rem .6rem; border-radius: 999px; background: rgb(7 8 13 / .86); color: var(--pq-gold); font-weight: 700; font-size: .85rem; z-index: 2; }
/* story card over the table (mission intro/outro with its art) */
.pq-pop { position: absolute; top: 9%; left: 50%; width: min(540px, 88%); display: flex; gap: .7rem; align-items: stretch; padding: .55rem; border-radius: 14px; background: rgb(7 8 13 / .9); border: 2px solid var(--pq-gold); box-shadow: 0 12px 40px rgb(0 0 0 / .6), 0 0 24px rgb(255 209 102 / .25); color: var(--pq-text); pointer-events: none; z-index: 2; opacity: 0; transform: translate(-50%, -24px) scale(.92); transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.pq-pop.pq-pop-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pq-pop img { width: 38%; max-width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; flex: none; }
.pq-pop-text { min-width: 0; align-self: center; }
.pq-pop p { margin: .15rem 0; font-size: .95rem; line-height: 1.38; }
.pq-pop .pq-pop-title { color: var(--pq-gold); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.pq-app.pq-calm .pq-pop { transition: opacity .2s linear; transform: translate(-50%, 0); }
/* wide stages: the card sits in the free space beside the table instead of over the upper playfield */
.pq-pop.pq-pop-side { left: auto; inset-inline-start: 2%; top: 18%; width: min(300px, 26%); flex-direction: column; transform: translateY(-20px) scale(.94); }
.pq-pop.pq-pop-side.pq-pop-on, .pq-app.pq-calm .pq-pop.pq-pop-side { transform: none; }
.pq-pop.pq-pop-side img { width: 100%; max-width: none; }
@media (prefers-reduced-motion: reduce) { .pq-pop { transition: opacity .2s linear; transform: translate(-50%, 0); } .pq-pop.pq-pop-side { transform: none; } }
@media (max-width: 560px) { .pq-pop { top: 6%; padding: .4rem; gap: .5rem; } .pq-pop img { width: 30%; } .pq-pop p { font-size: .84rem; } .pq-pop .pq-pop-title { font-size: .95rem; } }
@media (max-height: 560px) {
  .pq-pop.pq-pop-side { top: 4%; width: min(250px, 27%); padding: .4rem; gap: .35rem; }
  .pq-pop.pq-pop-side img { max-height: 28vh; }
  .pq-pop p { font-size: .8rem; line-height: 1.3; }
  .pq-pop-text > p:last-child { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- side panel: backglass, DMD, score, mission, story */
.pq-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; padding: 10px; background: var(--pq-panel); border-inline-start: 1px solid var(--pq-game-line); }
.pq-backglass { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; flex: none; background: var(--pq-panel-2); }
.pq-backglass img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pq-bg-title { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: .9rem .6rem .45rem; font-family: var(--font-display, var(--font-sans)); font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: #fff; text-align: center; background: linear-gradient(transparent, rgb(0 0 0 / .82)); text-shadow: 0 1px 2px #000; }
.pq-dmd { width: 100%; aspect-ratio: 4 / 1; flex: none; border-radius: 8px; background: #0b0603; border: 2px solid #2a1a0c; display: block; }
.pq-scoreline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.pq-scoreline > div { background: var(--pq-panel-2); border-radius: 8px; padding: .3rem .45rem; min-width: 0; }
.pq-scoreline dt { font-size: .75rem; color: var(--pq-text-2); }
.pq-scoreline dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-scoreline .pq-save { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--pq-gold); }
.pq-scoreline .pq-save dt { color: var(--pq-gold); }
.pq-mission { background: var(--pq-panel-2); border-radius: 10px; padding: .55rem .7rem; }
.pq-mission h2 { font-size: 1rem; color: var(--pq-gold); }
.pq-stage-text { color: var(--pq-text); font-size: .92rem; }
.pq-goals { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: 3px; }
.pq-goals li { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; color: var(--pq-text-2); }
.pq-goals li.pq-done { color: #8fe3a5; }
.pq-goals li.pq-done span:first-child::before { content: "✓ "; }
.pq-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.pq-timer, .pq-progress { font-size: .85rem; color: var(--pq-text-2); }
.pq-story { border-radius: 10px; overflow: hidden; background: var(--pq-panel-2); display: none; }
.pq-story.pq-story-on { display: block; }
.pq-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pq-story p { padding: .45rem .7rem .6rem; font-size: .9rem; line-height: 1.4; }
.pq-app[data-view="menu"] .pq-side > :not(.pq-backglass, .pq-dmd) { display: none; }

/* ---------- menu over the attract mode */
.pq-menu { grid-column: 1; grid-row: 1; position: relative; z-index: 4; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; padding: 14px 16px; overflow: auto; min-width: 0; min-height: 0; background: linear-gradient(180deg, rgb(7 8 13 / .94), rgb(7 8 13 / .6) 38%, rgb(7 8 13 / 0) 60%); pointer-events: none; }
.pq-menu > * { pointer-events: auto; }
.pq-menu[hidden] { display: none; }
.pq-menu-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.pq-logo { font-family: var(--font-display, var(--font-sans)); font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--pq-gold); text-shadow: 0 2px 0 #7a3c00, 0 0 18px rgb(255 160 40 / .45); }
.pq-tagline { color: var(--pq-text); margin: 0; flex: 1 1 14rem; }
.pq-menu-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .35rem .85rem; border: 1px solid var(--pq-game-line); border-radius: 10px; background: var(--pq-panel-2); color: var(--pq-text); white-space: nowrap; }
.pq-btn:hover { background: #262a3c; }
.pq-btn-quiet { background: rgb(17 19 28 / .7); }
.pq-btn-primary { background: #ffd166; border-color: #ffd166; color: #1b1300; }
.pq-btn-primary:hover { background: #ffe199; border-color: #ffe199; }
.pq-rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.pq-cards { list-style: none; margin: 0; padding: 6px 2px 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #4a4f6a transparent; }
.pq-cards li { flex: none; scroll-snap-align: center; }
.pq-card { position: relative; display: grid; grid-template-rows: auto auto auto; width: 168px; text-align: start; border-radius: 12px; overflow: hidden; background: var(--pq-panel); border: 2px solid var(--pq-game-line); color: var(--pq-text); }
.pq-card[aria-current="true"] { border-color: var(--pq-gold); box-shadow: 0 0 0 2px rgb(255 209 102 / .35); }
.pq-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pq-card-n { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 24px; padding: 1px 6px; border-radius: 999px; background: rgb(7 8 13 / .85); color: var(--pq-text); font-size: .78rem; font-weight: 700; text-align: center; }
.pq-card-title { padding: .35rem .55rem 0; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.pq-card-style { padding: .1rem .55rem .45rem; font-size: .78rem; color: var(--pq-text-2); }
.pq-card-badge { position: absolute; top: 6px; inset-inline-end: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: #ffd166; color: #1b1300; font-size: .75rem; font-weight: 700; }
.pq-details { align-self: start; justify-self: start; max-width: min(34rem, 46%); background: rgb(17 19 28 / .9); border: 1px solid var(--pq-game-line); border-radius: 14px; padding: .8rem 1rem; }
.pq-details h2 { font-family: var(--font-display, var(--font-sans)); font-size: 1.4rem; color: var(--pq-text); }
.pq-meta { color: var(--pq-text-2); font-size: .88rem; }
.pq-story-text { line-height: 1.45; }
.pq-mlist li.pq-done { color: #8fe3a5; }
.pq-mlist li.pq-done::marker { color: #8fe3a5; }
.pq-wizard { color: var(--pq-gold); font-weight: 600; }
.pq-actions, .pq-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .7rem; }
.pq-error { padding: 2rem; }

/* ---------- toasts */
.pq-toasts { position: absolute; top: 56px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 6; display: grid; gap: 6px; pointer-events: none; width: min(26rem, 90%); }
.pq-toast { margin: 0; padding: .5rem .8rem; border-radius: 10px; background: var(--pq-panel); border: 1px solid var(--pq-game-line); color: var(--pq-text); text-align: center; }
.pq-toast-gold { border-color: var(--pq-gold); color: var(--pq-gold); }
.pq-toast-error { border-color: #ff8a80; color: #ffb4a8; }

/* ---------- dialogs (design system) */
.pq-dlg { font-family: var(--font-sans); border: 1px solid var(--pq-line); border-radius: 16px; padding: 0; width: min(34rem, 94vw); max-height: 90vh; max-height: 90dvh; background: var(--pq-surface); color: var(--pq-ink); box-shadow: var(--pq-pop-shadow); }
.pq-dlg-wide { width: min(52rem, 96vw); }
.pq-dlg::backdrop { background: var(--overlay, rgb(15 25 29 / .6)); }
.pq-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem .3rem 1.1rem; position: sticky; top: 0; background: var(--pq-surface); z-index: 1; }
.pq-dlg-head h2 { font-family: var(--font-display, var(--font-sans)); font-weight: 600; font-size: 1.25rem; margin: 0; color: var(--pq-ink); }
.pq-dlg .pq-icon-btn { background: none; color: var(--pq-ink); border-color: transparent; }
.pq-dlg .pq-icon-btn:hover { background: var(--pq-surface-2); }
.pq-dlg-body { padding: .3rem 1.1rem 1.1rem; overflow: auto; }
.pq-dlg .pq-btn { background: var(--pq-surface); color: var(--pq-ink); border-color: var(--pq-control); }
.pq-dlg .pq-btn:hover { background: var(--pq-surface-2); }
.pq-dlg .pq-btn-primary { background: var(--pq-accent); border-color: var(--pq-accent); color: var(--pq-on-accent); }
.pq-dlg .pq-btn-primary:hover { background: var(--pq-accent-ink); border-color: var(--pq-accent-ink); color: var(--pq-on-accent); }
.pq-dlg h3 { font-size: 1rem; margin-top: .8rem; }
.pq-field { display: grid; gap: 4px; margin: .45rem 0; }
.pq-field label { font-weight: 600; }
.pq-check { display: flex; align-items: center; gap: .55rem; margin: .4rem 0; min-height: 28px; }
.pq-hint { color: var(--pq-muted); font-size: .86rem; }
.pq-dlg .pq-meta { color: var(--pq-muted); }
.pq-stack { display: grid; gap: 8px; }
.pq-stack .pq-btn { justify-content: flex-start; }
.pq-brief-art { width: 100%; max-height: 42vh; object-fit: cover; border-radius: 12px; display: block; }
.pq-chapter { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--pq-line); }
.pq-chapter img { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.pq-tag { display: inline-block; margin-inline-start: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--info-bg, #e6f4f5); color: var(--pq-accent-ink); font-size: .78rem; vertical-align: middle; }
.pq-final { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: .2rem 0 .5rem; }
.pq-gold { font-weight: 700; }
.pq-num { font-variant-numeric: tabular-nums; text-align: end; }
.pq-keys th { font-weight: 500; }
.pq-remap { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .4rem; }
.pq-remap .pq-btn { white-space: normal; }
.pq-ach { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 8px; }
.pq-ach li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .65rem; border: 1px solid var(--pq-line); border-radius: 10px; color: var(--pq-muted); }
.pq-ach li > div { display: grid; gap: 2px; }
.pq-ach li strong { color: var(--pq-ink); }
.pq-ach li.pq-got { color: var(--pq-ink); border-color: var(--pq-accent); }
.pq-ach li.pq-got svg { color: var(--pq-accent-ink); }

/* ---------- responsive: phones / portrait — the side panel becomes a strip above the table */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .pq-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pq-stage { grid-column: 1; grid-row: 2; }
  .pq-side { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 6px; border-inline-start: 0; border-bottom: 1px solid var(--pq-game-line); max-height: 40vh; }
  .pq-backglass { display: none; }
  .pq-dmd { flex: 1 1 100%; width: 100%; height: 60px; aspect-ratio: auto; }
  .pq-scoreline { flex: 1 1 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pq-scoreline .pq-save { grid-column: auto; display: block; }
  .pq-mission { flex: 1 1 100%; padding: .35rem .55rem; }
  .pq-mission h2 { font-size: .92rem; margin: 0; }
  .pq-mission .pq-stage-text { font-size: .84rem; margin: .1rem 0; }
  .pq-goals { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
  .pq-story.pq-story-on { flex: 1 1 100%; display: flex; }
  .pq-story img { width: 84px; aspect-ratio: 4 / 3; flex: none; }
  .pq-story img { width: 64px; }
  .pq-story p { font-size: .84rem; padding: .3rem .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pq-scoreline dt { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pq-scoreline > div { padding: .2rem .4rem; }
  .pq-app[data-view="menu"] .pq-side { display: none; }
  .pq-app[data-view="menu"] .pq-menu { grid-row: 1 / -1; }
  .pq-menu { padding: 10px; background: linear-gradient(180deg, rgb(7 8 13 / .94), rgb(7 8 13 / .75) 60%, rgb(7 8 13 / .4)); }
  .pq-details { max-width: none; justify-self: stretch; }
  .pq-card { width: 140px; }
  .pq-chapter { grid-template-columns: minmax(0, 1fr); }
  .pq-icon-btn { width: 44px; height: 44px; }
}
/* phones in landscape: a slim score column so the table gets most of the height and width */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 761px) {
  .pq-app { grid-template-columns: minmax(0, 1fr) minmax(170px, 210px); }
  .pq-side { padding: 6px; gap: 6px; }
  .pq-backglass { display: none; }
  .pq-dmd { height: 48px; aspect-ratio: auto; }
  .pq-scoreline { grid-template-columns: minmax(0, 1fr); }
  .pq-scoreline > div { padding: .15rem .4rem; }
  .pq-mission { padding: .35rem .5rem; }
  .pq-mission h2 { font-size: .9rem; }
  .pq-story img { display: none; }
  .pq-story p { font-size: .82rem; }
}
@media (max-width: 480px) {
  .pq-menu-tools .pq-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pq-menu-tools .pq-btn { min-width: 44px; min-height: 44px; padding: .3rem; }
  .pq-rail > .pq-icon-btn { display: none; }
  .pq-rail { grid-template-columns: minmax(0, 1fr); }
}
.pq-app.pq-calm *, .pq-app.pq-calm *::before { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { .pq-cards { scroll-behavior: auto; } }
