@font-face {
  font-family: Kalameh;
  src: url("/assets/fonts/KalamehWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kalameh;
  src: url("/assets/fonts/KalamehWeb-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: Kalameh;
  src: url("/assets/fonts/KalamehWeb-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* These names also serve the independent wallpaper and mascot modules. */
  --paper: var(--surface-canvas);
  --ink: var(--text-strong);
  --muted: var(--text-secondary);
  --purple: var(--brand-primary);
  --edge: var(--border-subtle);
  --radius-control: 16px;
  --radius-panel: 22px;
  --radius-pill: 999px;
  --font: Kalameh, Tahoma, sans-serif;
  --size: 408px;
  --gutter-base: clamp(16px, 5vw, 24px);
  --gutter: max(var(--gutter-base), calc(env(safe-area-inset-right, 0px) + 8px), calc(env(safe-area-inset-left, 0px) + 8px));
  --hit: 48px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --enter: cubic-bezier(.16, .82, .28, 1);
  --press: 120ms;
  --settle: 240ms;
  --notes-width: clamp(330px, 100vw, 576px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { block-size: 100%; overflow: hidden; overscroll-behavior: none; }
html {
  background: var(--surface-canvas) url("/assets/images/bg.png") center 12px / var(--notes-width) auto repeat;
}
body { margin: 0; color: var(--text-strong); font: 1rem/1.65 var(--font); -webkit-text-size-adjust: 100%; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.glyph { display: block; inline-size: 1.2em; block-size: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p, ol { margin: 0; }
h1, h2 { line-height: 1.38; text-wrap: balance; overflow-wrap: anywhere; }
img { display: block; max-inline-size: 100%; height: auto; }
ol { padding: 0; }
input, button, select { color: inherit; font: inherit; }
a { color: var(--brand-primary); }
a, button, input, select, label, summary { -webkit-tap-highlight-color: transparent; }
a, button, input[type="range"], .choice { touch-action: manipulation; }
button { cursor: pointer; }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
:where(a, button, summary):focus:not(:focus-visible) { outline: none; }
:where(h1, h2, main)[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 5; inset-block-start: -60px; inset-inline-start: 16px; background: var(--surface-default); padding: 8px 16px; }
.skip-link:focus { inset-block-start: 12px; }
.content-width { inline-size: min(calc(100% - 2 * var(--gutter)), var(--size)); margin-inline: auto; }
#campaign {
  --frame-gap: clamp(8px, 1.5dvh, 16px);
  --frame-edge: clamp(10px, 2.7dvh, 28px);
  position: fixed;
  inset: var(--frame-top, 0px) 0 auto;
  block-size: 100vh;
  block-size: var(--frame-height, 100dvh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--frame-gap);
  padding-block-start: max(var(--frame-edge), calc(env(safe-area-inset-top, 0px) + 4px));
  padding-block-end: max(var(--frame-edge), calc(env(safe-area-inset-bottom, 0px) + 5px));
  overflow: clip;
  container-type: size;
}
#campaign[data-screen="home"] { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
#campaign > main { display: flex; flex-direction: column; justify-content: center; justify-content: safe center; min-block-size: 0; }
#campaign[data-screen="home"] > main { justify-content: stretch; }

[data-view="home"] { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 4px; min-block-size: 0; }
.hero-sleeve, .choose-art { display: grid; place-items: center; container-type: size; min-block-size: 0; }
.hero-art, .small-art {
  inline-size: min(100%, 108.78cqh);
  border-radius: clamp(18px, 6vw, 30px);
}
.home-title { margin-block-start: 4px; text-align: center; color: var(--brand-primary-deep); font-size: clamp(1.375rem, 5.9vw, 1.75rem); font-weight: 800; }
.home-copy { text-align: center; font-size: 0.9375rem; color: var(--text-secondary); }

.landing-extra h2 { margin-block-end: 6px; font-size: 0.875rem; font-weight: 700; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-control); background: var(--surface-canvas); }
.guide-list li { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 4px; padding: 7px 5px; text-align: center; }
.guide-list li + li { border-inline-start: 1px solid var(--border-subtle); }
.guide-list li > span { display: grid; place-items: center; inline-size: 1.65em; block-size: 1.65em; background: var(--surface-tinted); border: 1px solid var(--border-subtle); border-radius: 50%; color: var(--brand-primary); font-size: .75rem; font-weight: 700; line-height: 1; }
.guide-list strong { display: block; color: var(--brand-primary); font-size: 0.8125rem; line-height: 1.4; }
.guide-list p { margin-block-start: 2px; color: var(--text-secondary); font-size: 0.75rem; line-height: 1.45; }
.instagram-link { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; min-block-size: 48px; border: 1px solid var(--border-subtle); background: var(--social-surface); color: var(--social-ink); border-radius: var(--radius-pill); font-size: 0.875rem; text-decoration: none; }
.instagram-link bdi { font-weight: 700; }
.instagram-link[data-cue] img { animation: camera-cue 730ms var(--ease) 150ms 2; }
.instagram-link:active img { transform: scale(.9); }
@keyframes camera-cue { 0%, 100% { transform: none; } 35% { transform: translateY(-2px) rotate(-9deg) scale(1.14); } 65% { transform: rotate(6deg) scale(1.04); } }
.journey-brand { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; }
.journey-brand::before, .journey-brand::after { content: ""; block-size: 1px; background: linear-gradient(to right, var(--brand-foil-soft), var(--border-subtle) 72%); }
.journey-brand::after { background: linear-gradient(to left, var(--brand-foil-soft), var(--border-subtle) 72%); }
.journey-brand img { inline-size: 100px; }
.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-block-start: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-canvas);
  overflow: clip;
}
.stepper li {
  min-inline-size: 0;
  min-block-size: 55px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
  border-block-end: 3px solid transparent;
}
.stepper li + li { border-inline-start: 1px solid var(--border-subtle); }
.step-marker { display: grid; place-items: center; inline-size: 1.8em; block-size: 1.8em; border: 1px solid var(--border-subtle); border-radius: 50%; color: var(--brand-primary); font-weight: 700; line-height: 1; }
.stepper li[data-complete] .step-marker { color: var(--text-on-brand); background: var(--brand-primary); border-color: var(--brand-primary); }
.step-tick { inline-size: 1.05em; block-size: 1.05em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stepper li[aria-current="step"] { color: var(--brand-primary); font-weight: 800; background: var(--surface-tinted); border-block-end-color: var(--brand-primary); }
.stepper li[aria-current="step"] .step-marker { color: var(--brand-primary); background: var(--surface-default); border: 2px solid var(--brand-primary); }

.journey-view { min-inline-size: 0; }
.view-heading { margin-block-end: 20px; }
.view-heading h1 { color: var(--text-strong); font-weight: 800; font-size: clamp(1.45rem, 5.9vw, 1.7rem); }
.view-heading :is([data-receiver], [data-greeting-name]), .brand-word { color: var(--action-accent); }
.view-heading [data-name-group="male"] { color: var(--mascot-blue); }
.view-heading [data-greeting-name] { font-weight: 800; }
.view-heading p { margin-block-start: 8px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.65; }
.field + .field { margin-block-start: 16px; }
.field label, .alternate-name label { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--brand-primary); margin-block-end: 5px; }
.field input, .search-row input, .recording-picker select {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 52px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  padding: 10px 13px;
  background: var(--surface-default);
  font-size: max(16px, 1rem);
}
.field input::placeholder, .search-row input::placeholder { color: var(--text-secondary); opacity: 1; }
.field input:placeholder-shown, .search-row input:placeholder-shown { text-align: right; }
.field input:focus, .search-row input:focus { border-color: var(--action-accent); }
.field input[dir="ltr"] { text-align: right; font-variant-numeric: tabular-nums; }
.field #otp-input { text-align: center; font-size: 1.5rem; letter-spacing: .22em; }
.field input[aria-invalid="true"], .search-row input[aria-invalid="true"] { border-color: var(--feedback-error); }
.field-error, .notice { color: var(--feedback-error); font-size: 0.875rem; overflow-wrap: anywhere; }
.field-error:not(:empty), .notice:not(:empty) { margin-block-start: 8px; }
.spelling-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 8px; }
.spelling-picks p { flex-basis: 100%; font-size: 0.875rem; }
.spelling-picks button { min-block-size: 44px; min-inline-size: 48px; padding: 4px 16px; border: 1px solid var(--border-control); border-radius: var(--radius-pill); background: var(--surface-default); color: var(--brand-primary); }
.notice:not([data-error]) { color: var(--text-secondary); }
.notice:empty { display: none; }
.hint { color: var(--text-secondary); font-size: 0.8125rem; }
.collection-note { margin-block-start: 12px; color: var(--text-secondary); font-size: .8125rem; }
.preview-help {
  margin-block-start: 14px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 8px;
  background: var(--surface-tinted);
  color: var(--text-secondary);
  border-inline-start: 3px solid var(--brand-foil);
  border-radius: 8px;
  font-size: 0.8125rem;
}
.preview-help bdi { margin-inline-start: 4px; font-weight: 800; font-size: 1.0625rem; }
.text-action { min-block-size: 44px; padding: 6px 2px; border: 0; background: none; color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; font-size: 0.875rem; font-weight: 700; }
.text-action:disabled { color: var(--text-secondary); text-decoration: none; cursor: default; }
.resend-row { display: flex; align-items: center; gap: 8px; margin-block-start: 12px; }

.choose-view { display: grid; grid-template-rows: minmax(0, 1fr); gap: clamp(6px, 1.6cqh, 14px); flex: 1; min-block-size: 0; }
.choose-view .view-heading, .choose-view .alternate-name { margin: 0; }
.small-art { inline-size: min(100%, 350px, 108.78cqh); }
#select-form:has(#choices[hidden]) { display: none; }
.choice-list { display: block; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#choice-options { display: grid; gap: 8px; }
.recording-picker { display: grid; gap: 4px; color: var(--brand-primary); font-size: 0.875rem; font-weight: 700; }
.recording-picker select { padding-block: 5px; cursor: pointer; }
.choice {
  display: flex;
  align-items: center;
  min-block-size: 54px;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-default);
  color: var(--brand-primary);
  cursor: pointer;
}
.choice:has(:checked) { border-color: var(--brand-primary); background: var(--surface-selected); }
.choice input { accent-color: var(--brand-primary); inline-size: 19px; block-size: 19px; flex: none; }
.choice span { min-inline-size: 0; }
.choice strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.choice small { color: var(--text-secondary); line-height: 1.4; display: block; font-size: 0.75rem; }
.alternate-name { margin-block-start: 14px; }
.search-row { display: flex; gap: 8px; }
.search-row .button { flex: none; }

.result-view { display: flex; flex-direction: column; min-block-size: 0; }
.result-view > :not(.result-art) { flex: none; }
.result-art {
  flex: 0 1 min(144px, calc((100cqw - 2 * var(--gutter)) * 330 / 960));
  min-block-size: 0;
  display: grid;
  place-items: center;
  container-type: size;
  margin-block-end: 20px;
}
.music-banner { inline-size: min(100%, 290.91cqh); border-radius: var(--radius-panel); }
.result-view .view-heading { margin-block-end: 16px; }
.player {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  padding: 12px 14px 10px;
  background: var(--surface-tinted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
}
.play-button {
  inline-size: 52px;
  block-size: 52px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.play-button:active { background: var(--brand-primary-deep); }
.play-icon { inline-size: 0; block-size: 0; border-block: 8px solid transparent; border-left: 12px solid currentColor; margin-left: 3px; }
.play-button[data-playing] .play-icon { inline-size: 12px; block-size: 14px; margin-left: 0; border-block: 0; border-inline: 4px solid currentColor; }
.player-track {
  --seek-thumb: 16px;
  --timeline-inset: calc(var(--seek-thumb) / 2);
  --timeline-rail-height: 4px;
  min-inline-size: 0;
  flex: 1;
}
.spectrum-timeline {
  --seek-position: 0%;
}
.spectrum-meter {
  position: relative;
  block-size: 36px;
  margin-inline: var(--timeline-inset);
  pointer-events: none;
  background: linear-gradient(0deg, var(--surface-selected), transparent);
  border-radius: 5px 5px 0 0;
  overflow: clip;
}
.spectrum-meter canvas {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  color: var(--brand-stage);
  --spectrum-unplayed: #9171ad;
}
.spectrum-timeline[data-spectrum="held"] canvas { opacity: .62; }
.timeline-scrubber { position: relative; margin-block: -15px -6px; }
.timeline-rail {
  position: absolute;
  inset: 50% var(--timeline-inset) auto;
  block-size: var(--timeline-rail-height);
  transform: translateY(-50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-primary) var(--seek-position), var(--border-control) var(--seek-position));
  pointer-events: none;
}
.player-seek {
  position: relative;
  display: block;
  inline-size: 100%;
  block-size: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  accent-color: var(--brand-primary);
  cursor: pointer;
}
@supports selector(input::-webkit-slider-thumb) or selector(input::-moz-range-thumb) {
  .player-seek { appearance: none; -webkit-appearance: none; }
  .player-seek::-webkit-slider-runnable-track { block-size: var(--timeline-rail-height); background: transparent; }
  .player-seek::-moz-range-track { block-size: var(--timeline-rail-height); background: transparent; }
  .player-seek::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    inline-size: var(--seek-thumb);
    block-size: var(--seek-thumb);
    margin-block-start: calc((var(--timeline-rail-height) - var(--seek-thumb)) / 2);
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    background: var(--surface-default);
  }
  .player-seek::-moz-range-thumb {
    box-sizing: border-box;
    inline-size: var(--seek-thumb);
    block-size: var(--seek-thumb);
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    background: var(--surface-default);
  }
}
.time-row {
  display: flex;
  justify-content: space-between;
  padding-inline: var(--timeline-inset);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.time-row #elapsed { color: var(--brand-primary); font-weight: 700; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .spectrum-meter canvas { visibility: hidden; }
}
@media (forced-colors: active) {
  .timeline-rail, .spectrum-meter { display: none; }
  .timeline-scrubber { margin: 0; }
  .player-seek { appearance: auto; -webkit-appearance: auto; }
  .player-seek::-webkit-slider-runnable-track { background: GrayText; }
  .player-seek::-moz-range-track { background: GrayText; }
}
.result-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-block-start: 6px; }

.action-dock { position: relative; z-index: 3; }
.actions { display: flex; gap: 8px; align-items: stretch; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: var(--hit);
  min-inline-size: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--press) var(--ease), scale var(--press) var(--ease);
}
.actions .primary, .actions > .button:only-child { flex: 1; }
.primary { color: var(--text-on-brand); background: linear-gradient(100deg, var(--brand-stage), var(--brand-primary)); border-color: var(--brand-primary); }
.primary:active:not(:disabled) { background: var(--brand-primary-deep); }
.secondary { background: var(--surface-default); border-color: var(--border-control); color: var(--brand-primary); }
.secondary:active:not(:disabled) { background: var(--surface-selected); }
.button:disabled { cursor: default; opacity: .64; }
#campaign[data-screen="result"] #download .glyph { animation: download-cue 600ms var(--ease) 140ms 2; }
@keyframes download-cue { 0%, 100% { transform: none; } 45% { transform: translateY(3px); } }
.journey-view[data-enter] { animation: arrive var(--settle) var(--enter) both; }
.step-marker { transition: color var(--press), background-color var(--press), border-color var(--press); }
.play-button, .choice, .spelling-picks button, .text-action, .instagram-link {
  transition: background-color var(--press), border-color var(--press), scale var(--press) var(--ease);
}
:is(#campaign button:not(:disabled), #campaign a[href], .choice, .studio-actions button:not(:disabled)):active { scale: .97; }
@keyframes arrive { from { opacity: .68; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled) { background: var(--brand-primary-deep); }
  .secondary:hover:not(:disabled), .choice:hover, .spelling-picks button:hover { border-color: var(--brand-primary); background: var(--surface-selected); }
  .play-button:hover { background: var(--brand-primary-deep); }
  .text-action:hover:not(:disabled), .instagram-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 600px), (max-width: 820px) and (orientation: portrait) and (pointer: coarse) {
  :root { --size: 388px; --hit: 54px; }
  .actions .secondary { min-inline-size: 88px; }
  .home-copy, .view-heading p { font-size: 1rem; }
}

@media (max-width: 350px) {
  :root { --gutter-base: 14px; }
  .view-heading h1 { font-size: 1.375rem; }
  .button { padding-inline: 10px; }
}

@container (max-height: 645px) {
  .journey-brand img { inline-size: 84px; }
  .stepper { margin-block-start: 7px; }
  .stepper li { display: flex; justify-content: center; align-items: center; gap: 4px; min-block-size: 38px; padding: 4px 2px; }
  .view-heading, .result-view .view-heading { margin-block-end: 10px; }
  .choose-view .view-heading { margin: 0; }
  .view-heading p { margin-block-start: 4px; line-height: 1.48; }
  .field + .field { margin-block-start: 10px; }
  .field input, .search-row input, .recording-picker select { min-block-size: 48px; padding-block: 6px; }
  .preview-help, .collection-note, .resend-row { margin-block-start: 7px; }
  .choice { min-block-size: 44px; padding-block: 5px; }
  .result-art { margin-block-end: 8px; }
  .player { padding-block: 8px; }
  .action-dock { --hit: 48px; }
}

@container (max-height: 480px) {
  .journey-brand img { inline-size: 72px; }
  .view-heading, .result-view .view-heading { margin-block-end: 6px; }
  .choose-view .view-heading { margin: 0; }
  .view-heading h1 { font-size: clamp(1.25rem, 4.8vw, 1.4rem); }
  .view-heading p { font-size: .875rem; line-height: 1.45; }
  .field label, .alternate-name label { margin-block-end: 2px; font-size: .875rem; }
  .field input, .search-row input { min-block-size: 44px; }
  .field + .field { margin-block-start: 6px; }
  .preview-help { padding-block: 1px; }
  .guide-list p { font-size: .71875rem; line-height: 1.3; }
  .guide-list li { padding-block: 4px; gap: 2px; }
  .instagram-link { min-block-size: 44px; padding-block: 4px; }
  .player { padding-block: 6px; }
  .spectrum-meter { block-size: 29px; }
  .play-button { inline-size: 46px; block-size: 46px; }
  .collection-note { line-height: 1.45; }
  .journey-view:has(.field-error:not(:empty)) #details-help { display: none; }
  .field-error:not(:empty) { margin-block-start: 3px; line-height: 1.35; }
  .spelling-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .spelling-picks > p { display: none; }
  .spelling-picks button { min-inline-size: 0; padding-inline: 3px; overflow-wrap: anywhere; line-height: 1.25; }
}

@media (max-width: 410px) and (max-height: 540px) {
  .result-view { display: grid; grid-template-columns: minmax(0, 1fr) 152px; column-gap: 6px; }
  .result-view > :is(.result-art, .view-heading) { grid-column: 1; }
  .result-view > :is(.player, .result-links) { grid-column: 1 / -1; }
  .result-art { block-size: clamp(25px, calc((100cqw - 2 * var(--gutter) - 158px) * 330 / 960), 76px); margin-block-end: 4px; }
  .result-view .view-heading { min-block-size: 103px; }
}

@media (min-width: 520px) and (max-height: 540px) {
  #campaign { --size: 620px; --frame-gap: 6px; --frame-edge: 8px; }
  [data-view="home"] {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .hero-sleeve { grid-column: 1; grid-row: 1 / span 2; }
  .home-title { align-self: end; line-height: 1.18; }
  .home-copy { align-self: start; line-height: 1.35; }
  .guide-list li { grid-template-columns: auto minmax(0, 1fr); text-align: start; justify-items: start; align-items: center; gap: 5px; }
  .landing-extra h2 { margin-block-end: 3px; }
  .journey-brand img { inline-size: 72px; }
  .stepper { margin-block-start: 3px; }
  .stepper li { min-block-size: 32px; padding-block: 1px; }
  .view-heading h1 { font-size: 1.375rem; }
  .view-heading p { margin-block-start: 3px; }
  #details-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #details-form .field + .field { margin-block-start: 0; }
  .details-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-block-start: 6px; }
  .details-foot :is(.preview-help, .collection-note) { margin-block-start: 0; }
  .details-foot .preview-help[hidden] + .collection-note { grid-column: 1 / -1; }
  .code-tools { display: flex; align-items: center; gap: 12px; }
  .choose-view, .result-view { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); column-gap: 16px; }
  .choose-view { grid-template-rows: auto auto auto; align-content: center; align-items: center; }
  .choose-view .choose-art { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; }
  .choose-art { min-block-size: min(138px, 48cqh); }
  .choose-view > :not(.choose-art), .result-view > :not(.result-art) { grid-column: 2; }
  .result-view > .result-art { grid-column: 1; grid-row: 1 / span 3; block-size: min(100%, 112px); margin: 0; align-self: center; }
  .result-links { margin-block-start: 0; }
  .action-dock { --hit: 44px; }
}

#campaign[data-keyboard] {
  --frame-gap: 6px;
  padding-block-start: 6px;
  padding-block-end: 6px;
}
[data-keyboard] .journey-brand, [data-keyboard] .choose-art { display: none; }
[data-keyboard] .stepper { margin-block-start: 0; }
[data-keyboard] .choose-view { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; align-content: center; }
[data-keyboard] .choose-view > :not(.choose-art) { grid-column: 1; }
[data-keyboard] .view-heading { margin-block-end: 6px; }
[data-keyboard] .choose-view .view-heading { margin: 0; }
[data-keyboard] .action-dock { --hit: 44px; }
[data-keyboard] :is(.field input, .search-row input) { min-block-size: 52px; }
@container (max-height: 375px) {
  [data-keyboard] .journey-head { display: none; }
  [data-keyboard] .field label, [data-keyboard] .alternate-name label { margin-block-end: 2px; }
  [data-keyboard] .field + .field { margin-block-start: 6px; }
  [data-keyboard] .preview-help, [data-keyboard] .resend-row, [data-keyboard] .collection-note { margin-block-start: 4px; }
  [data-keyboard] :is(.field input, .search-row input) { min-block-size: 44px; }
}
@container (max-height: 305px) {
  [data-keyboard] .collection-note, [data-keyboard] #details-help { display: none; }
  [data-keyboard] .spelling-picks { gap: 4px; margin-block-start: 3px; }
  [data-keyboard] .spelling-picks > p { display: none; }
}
@container (max-height: 245px) {
  [data-keyboard] [data-view="details"] .preview-help { display: none; }
  [data-keyboard] .details-foot { margin: 0; }
  [data-keyboard] .code-tools { display: flex; align-items: center; gap: 6px; }
  [data-keyboard] .code-tools :is(.preview-help, .resend-row) { gap: 4px; margin-block-start: 4px; }
  [data-keyboard] .code-tools :is(.text-action, .hint) { font-size: .8125rem; }
  [data-keyboard] .code-hint { padding: 0 5px; flex-wrap: nowrap; }
  [data-keyboard] .code-hint p > span { display: none; }
}
@container (max-height: 208px) {
  [data-keyboard] :is([data-view="details"], [data-view="code"]) .view-heading { display: none; }
  [data-keyboard] .field label { margin-block-end: 0; line-height: 1.2; }
  [data-keyboard] .field + .field { margin-block-start: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#campaign button, #campaign a, .choice, .studio-actions button):active { scale: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

