/* Hallmark · shape: app screen · genre: atmospheric · theme: Terminal (deal 1/3, seed kajzerobet-dark-graphite-brokerage-a926·f5fd2c2f·2026-12-01·r0)
 * nav: sticky single-row brokerage bar · signature: four-stage KajzeroBET verification terminal with 14s console loader and WVE voucher · states: 8 (default, hover, focus, active, disabled, loading, error, success)
 * axes: dark/mono/chromatic-green · posture: committed · copy: verbatim · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E5 S5 R4 V5 · weakest: H, four sequential stages could blur on dev scroll; anchored each stage with full-width 1px hairlines, numbered section heads, and distinct recessed dark wells */
/* Hallmark · answered F2 · three-period ellipsis in KajzeroBET terminal log text is verbatim copy requested by the user */

:root {
  color-scheme: dark;

  /* Spacing scale */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  /* Fixed app-screen type scale (ratio ~1.2) */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;

  /* Typography */
  --font-display: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tracking-display: -0.02em;
  --display-weight: 700;

  /* Palette — exact user HEX anchors + green-tinted dark graphite ramp */
  --color-paper: #2f2f30;
  --color-paper-2: oklch(34.5% 0.008 145);
  --color-paper-3: oklch(39.5% 0.010 145);
  --color-well-dark: oklch(17% 0.008 145);

  --color-ink: oklch(94% 0.010 145);
  --color-ink-2: oklch(82% 0.012 145);
  --color-muted: oklch(72% 0.014 145);

  --color-rule: oklch(45% 0.012 145);
  --color-rule-2: oklch(59% 0.014 145);

  --color-accent: #0eb535;
  --color-accent-hover: oklch(72% 0.195 145);
  --color-accent-ink: oklch(15% 0.015 145);
  --color-accent-wash: oklch(34% 0.048 145);
  --color-focus: #0eb535;

  --color-error: #ff000d;
  --color-error-wash: oklch(28% 0.065 25);
  --color-error-surface: oklch(16% 0.012 25);

  /* Geometry & borders */
  --radius-card: 0;
  --radius-input: 0;
  --rule-hair: 1px;
  --rule-strong: 2px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* Layout & layers */
  --container: 45rem;
  --gutter: var(--space-md);
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-toast: 500;
}

@media (min-width: 48rem) {
  :root {
    --gutter: var(--space-lg);
  }
}

/* Base reset & Floor guarantees */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scrollbar-color: var(--color-muted) var(--color-paper);
  scroll-padding-top: var(--space-2xl);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-accent);
}

::selection {
  background: var(--color-accent-wash);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.2;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-xl);
}

h2 {
  font-size: var(--text-lg);
}

p {
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.js .stage[data-locked="true"] {
  display: none;
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: var(--space-md);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top brokerage terminal bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.topbar__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  padding-block: var(--space-xs);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.brand__mark {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.brand__sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

.topbar__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}

.stage-readout {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  white-space: nowrap;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--space-2xs) var(--space-xs);
  border: var(--rule-hair) solid var(--color-accent);
  background: var(--color-accent-wash);
  color: var(--color-ink);
  font-size: var(--text-xs);
  text-decoration: none;
  white-space: nowrap;
}

.dev-badge:hover {
  background: var(--color-paper-3);
}

/* Main flow */
.terminal-main {
  flex: 1 0 auto;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.terminal-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.terminal-intro__desc {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

/* Stage rhythm */
.stage {
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stage--finale {
  border-top: var(--rule-strong) solid var(--color-accent);
}

.stage.is-entering {
  animation: stage-enter var(--dur-long) var(--ease-out) both;
}

.stage__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.stage__counter {
  font-size: var(--text-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

.stage__counter--accent {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
}

/* GPU-safe scaleX progress bar */
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-well-dark);
  border: var(--rule-hair) solid var(--color-rule);
  overflow: hidden;
}

.progress-track__fill {
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--dur-short) var(--ease-out);
}

.progress-track--console {
  height: 8px;
}

.progress-track--console .progress-track__fill {
  transition: transform var(--dur-long) linear;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-xs) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .btn:not(:disabled):hover {
    background: var(--color-paper-3);
  }
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

@media (hover: hover) {
  .btn--primary:not(:disabled):hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
  }
}

.btn--quiet {
  background: transparent;
  border-color: var(--color-rule-2);
  color: var(--color-ink-2);
}

@media (hover: hover) {
  .btn--quiet:not(:disabled):hover {
    background: var(--color-paper-2);
    color: var(--color-ink);
  }
}

/* Dev-only helper bar */
.dev-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}

.dev-controls__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.dev-controls__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.dev-pill {
  min-width: 40px;
  min-height: 36px;
  padding: var(--space-2xs) var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule-2);
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.dev-pill.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
  color: var(--color-ink);
}

/* SEKCJA 1: Quiz */
.quiz-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-question {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  max-width: 60ch;
}

.quiz-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
}

.quiz-option {
  width: 100%;
  min-height: 52px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  background: var(--color-paper-2);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-align: left;
  font-size: var(--text-md);
  line-height: 1.35;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .quiz-option:not(:disabled):hover {
    background: var(--color-paper-3);
    border-color: var(--color-ink-2);
  }
}

.quiz-option:not(:disabled):active {
  transform: translateY(1px);
}

.quiz-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.quiz-option__key {
  flex-shrink: 0;
  min-width: 26px;
  padding: var(--space-3xs) var(--space-2xs);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-align: center;
}

.quiz-option__text {
  min-width: 0;
  overflow-wrap: break-word;
}

.quiz-option.is-wrong {
  border-color: var(--color-error);
  background: var(--color-error-wash);
  animation: shake-x 340ms var(--ease-out);
}

.quiz-option.is-wrong .quiz-option__key {
  border-color: var(--color-error);
  color: var(--color-ink);
}

.quiz-option.is-correct {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
}

.quiz-option.is-correct .quiz-option__key {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.field-help {
  min-height: 1.5lh;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-muted);
}

.field-help.is-error {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-error-surface);
  border-left: var(--rule-strong) solid var(--color-error);
  color: var(--color-error);
  font-weight: 500;
}

.field-help.is-success {
  color: var(--color-accent);
  font-weight: 500;
}

.verified-banner {
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-accent);
  background: var(--color-accent-wash);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.icon-check {
  flex-shrink: 0;
  color: var(--color-accent);
}

.verified-banner__text {
  font-size: var(--text-md);
  color: var(--color-ink);
}

/* SEKCJA 1.2: Fake Terminal / Loading Bar */
.terminal-console {
  background: var(--color-well-dark);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-family: var(--font-display);
}

.terminal-console__cmd {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  flex-wrap: wrap;
}

.terminal-console__prompt {
  color: var(--color-accent);
  font-weight: 700;
}

.terminal-console__cmd-text {
  color: var(--color-ink-2);
  overflow-wrap: break-word;
  min-width: 0;
}

.terminal-console__status {
  margin-left: auto;
  color: var(--color-muted);
  white-space: nowrap;
}

.terminal-console__status.is-done {
  color: var(--color-accent);
}

.terminal-logs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 13rem;
}

.terminal-log {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-ink-2);
}

.terminal-log.is-active {
  color: var(--color-ink);
}

.terminal-log__prefix {
  color: var(--color-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.terminal-log__text {
  min-width: 0;
  overflow-wrap: break-word;
}

.terminal-log__tag {
  font-size: var(--text-xs);
  color: var(--color-accent);
  white-space: nowrap;
}

/* SEKCJA 2: Mini Galeria */
.gallery-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.gallery-viewport {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: var(--space-xs);
}

.gallery-arrow {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  background: var(--color-paper-2);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .gallery-arrow:hover {
    background: var(--color-paper-3);
    border-color: var(--color-accent);
  }
}

.gallery-arrow:active {
  transform: translateY(1px);
}

.gallery-frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 70dvh;
  background: var(--color-well-dark);
  border: var(--rule-hair) solid var(--color-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-sm);
}

.gallery-placeholder__index {
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.gallery-placeholder__path {
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  overflow-wrap: break-word;
  max-width: 100%;
}

.gallery-placeholder__hint {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 28ch;
}

.gallery-caption {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-well-dark);
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-strong) solid var(--color-accent);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--color-accent);
}

.gallery-swipe-hint {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* SEKCJA 3: Oświadczenie i zgody */
.consent-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.doc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.doc-meta__code {
  font-family: var(--font-display);
  color: var(--color-ink-2);
}

.consent-lead {
  font-weight: 500;
  color: var(--color-ink);
}

.consent-list {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
}

.consent-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-sm);
  min-height: 52px;
  padding: var(--space-sm) var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .consent-item:hover {
    background: var(--color-paper-2);
  }
}

.consent-item.is-checked {
  background: var(--color-accent-wash);
}

.consent-item__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.consent-item__box {
  width: 24px;
  height: 24px;
  margin-top: var(--space-3xs);
  border: var(--rule-hair) solid var(--color-rule-2);
  background: var(--color-well-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
}

.consent-item__input:focus-visible + .consent-item__box {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.consent-item__input:checked + .consent-item__box {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.consent-item__tick {
  opacity: 0;
}

.consent-item__input:checked + .consent-item__box .consent-item__tick {
  opacity: 1;
}

.consent-item__text {
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--color-ink);
}

.signature-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-sm);
}

.signature-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.signature-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 34rem) {
  .signature-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.signature-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  background: var(--color-well-dark);
  color: var(--color-ink);
  font-size: var(--text-md);
  outline: 2px solid transparent;
  outline-offset: -3px;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.signature-input::placeholder {
  color: var(--color-muted);
}

@media (hover: hover) {
  .signature-input:not(:disabled):hover {
    background: var(--color-paper-2);
  }
}

.signature-input:focus-visible {
  outline-color: var(--color-focus);
  border-color: var(--color-ink-2);
}

.signature-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signature-input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.signature-input.is-shake {
  animation: shake-x 340ms var(--ease-out);
}

/* SEKCJA 4: Finał */
.finale-well {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-paper-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 34rem) {
  .finale-well {
    padding: var(--space-lg);
  }
}

.finale-lead {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-ink);
}

.finale-sub {
  color: var(--color-ink-2);
}

.finale-steps {
  margin: 0;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-ink);
}

.finale-steps li {
  padding-left: var(--space-2xs);
}

.handle {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 700;
}

.voucher-box {
  padding: var(--space-md);
  background: var(--color-well-dark);
  border: var(--rule-hair) solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 34rem) {
  .voucher-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.voucher-box__code-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
}

.voucher-box__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.voucher-box__code {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  overflow-wrap: break-word;
  user-select: all;
}

.voucher-box__copy {
  flex-shrink: 0;
}

.finale-ps {
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-muted);
}

/* Footer */
.terminal-footer {
  margin-top: auto;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.terminal-footer__inner {
  padding-block: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Keyframes (transform & opacity only) */
@keyframes shake-x {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes stage-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Narrow phone adjustments */
@media (max-width: 36rem) {
  .brand__sub {
    display: none;
  }
}

@media (max-width: 26rem) {
  .gallery-viewport {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: var(--space-2xs);
  }
}

/* Reduced motion fallback (Floor gate 27) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
