:root {
  color-scheme: dark;
  --tone-ink: 29, 26, 37;
  --tone-shell: 36, 32, 46;
  --tone-panel: 47, 42, 58;
  --tone-panel-bright: 54, 50, 66;
  --tone-mid: 158, 151, 171;
  --tone-fog: 205, 199, 216;
  --tone-mist: 224, 221, 232;
  --tone-light: 244, 241, 250;
  --tone-shine: 249, 245, 255;
  --tone-beam: 215, 206, 232;
  --tone-beam-soft: 200, 190, 218;
  --tone-matrix: 239, 232, 255;
  --tone-matrix-line: 230, 216, 255;
  --ink: rgb(var(--tone-ink));
  --glass: rgba(var(--tone-panel-bright), .74);
  --glass-soft: rgba(var(--tone-light), .1);
  --glass-line: rgba(var(--tone-matrix-line), .2);
  --glass-line-strong: rgba(var(--tone-matrix), .34);
  --paper: rgb(var(--tone-light));
  --paper-soft: rgb(var(--tone-mist));
  --text: rgb(var(--tone-shine));
  --muted: rgba(var(--tone-light), .7);
  --muted-strong: rgba(var(--tone-shine), .86);
  --dark-text: rgb(var(--tone-ink));
  --accent: rgb(var(--tone-matrix));
  --success: rgb(var(--tone-matrix));
  --scanner-green: #51f08e;
  --scanner-green-bright: #d9ffe7;
  --scanner-green-deep: #0b5f35;
  --scanner-green-glow: rgba(81, 240, 142, .62);
  --warn: #d9c48f;
  --danger: #d96c79;
  --shadow: 0 34px 90px rgba(var(--tone-ink), .42);
  --focus: 0 0 0 4px rgba(var(--tone-beam), .3);
  background: rgb(var(--tone-shell));
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

:root[data-theme="teal"] {
  --tone-ink: 23, 34, 35;
  --tone-shell: 31, 45, 47;
  --tone-panel: 43, 58, 60;
  --tone-panel-bright: 52, 67, 69;
  --tone-mid: 132, 157, 158;
  --tone-fog: 190, 210, 209;
  --tone-mist: 218, 229, 228;
  --tone-light: 239, 247, 246;
  --tone-shine: 248, 255, 254;
  --tone-beam: 198, 231, 228;
  --tone-beam-soft: 168, 207, 205;
  --tone-matrix: 222, 252, 249;
  --tone-matrix-line: 196, 232, 228;
}

:root[data-theme="blue"] {
  --tone-ink: 24, 31, 42;
  --tone-shell: 31, 40, 54;
  --tone-panel: 43, 53, 68;
  --tone-panel-bright: 50, 61, 78;
  --tone-mid: 142, 154, 174;
  --tone-fog: 198, 207, 224;
  --tone-mist: 223, 228, 238;
  --tone-light: 243, 246, 252;
  --tone-shine: 249, 251, 255;
  --tone-beam: 207, 220, 246;
  --tone-beam-soft: 177, 194, 226;
  --tone-matrix: 231, 239, 255;
  --tone-matrix-line: 203, 219, 247;
}

:root[data-theme="coral"] {
  --tone-ink: 39, 30, 32;
  --tone-shell: 51, 39, 42;
  --tone-panel: 62, 49, 52;
  --tone-panel-bright: 72, 57, 60;
  --tone-mid: 166, 142, 142;
  --tone-fog: 222, 202, 197;
  --tone-mist: 237, 226, 222;
  --tone-light: 250, 244, 241;
  --tone-shine: 255, 251, 248;
  --tone-beam: 247, 210, 202;
  --tone-beam-soft: 224, 177, 169;
  --tone-matrix: 255, 235, 230;
  --tone-matrix-line: 246, 203, 194;
}

:root[data-theme="silver"] {
  --tone-ink: 28, 31, 35;
  --tone-shell: 42, 45, 50;
  --tone-panel: 58, 61, 66;
  --tone-panel-bright: 72, 76, 82;
  --tone-mid: 158, 163, 170;
  --tone-fog: 204, 209, 215;
  --tone-mist: 226, 229, 233;
  --tone-light: 246, 248, 250;
  --tone-shine: 253, 254, 255;
  --tone-beam: 223, 229, 236;
  --tone-beam-soft: 190, 198, 208;
  --tone-matrix: 238, 244, 250;
  --tone-matrix-line: 213, 221, 230;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  background:
    linear-gradient(105deg, rgba(var(--tone-mist), .76) 0%, rgba(var(--tone-mid), .58) 18%, rgba(var(--tone-panel), .96) 43%, rgba(var(--tone-shell), .98) 64%, rgba(var(--tone-fog), .7) 100%),
    linear-gradient(180deg, rgb(var(--tone-fog)) 0%, rgb(var(--tone-panel-bright)) 48%, rgb(var(--tone-ink)) 100%);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  inset: -8%;
  pointer-events: none;
  position: fixed;
}

body::before {
  animation: smokeDrift 14s ease-in-out infinite;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(var(--tone-light), .5) 26%, transparent 42%),
    linear-gradient(64deg, transparent 0 54%, rgba(var(--tone-beam), .34) 62%, transparent 78%);
  filter: blur(22px);
  opacity: .72;
}

body::after {
  background:
    linear-gradient(90deg, rgba(var(--tone-ink), .56), transparent 16%, transparent 80%, rgba(var(--tone-shell), .36)),
    linear-gradient(0deg, rgba(var(--tone-ink), .42), transparent 30%, transparent 74%, rgba(var(--tone-matrix), .18));
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  box-shadow: var(--focus);
  outline: 0;
}

.kiosk-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  position: relative;
}

.boot-fallback {
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 220px;
  padding: 32px;
  text-align: center;
  width: min(460px, calc(100vw - 48px));
}

.boot-fallback strong {
  font-size: 32px;
}

.boot-fallback span {
  color: var(--muted-strong);
  font-size: 18px;
}

.screen {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 28px 34px;
  position: relative;
  width: min(1220px, calc(100vw - 48px));
  z-index: 1;
}

.screen[data-step="scan"] {
  width: min(1920px, calc(100vw - 48px));
}

.screen[data-step="scan"] .stage-content {
  position: static;
}

body.keyboard-open .screen {
  padding-bottom: 430px;
}

.screen::before {
  background:
    linear-gradient(90deg, rgba(var(--tone-matrix), .18), transparent 24%, transparent 76%, rgba(var(--tone-beam), .14)),
    linear-gradient(180deg, rgba(var(--tone-light), .16), transparent 18%, transparent 80%, rgba(var(--tone-fog), .1));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topline {
  align-items: center;
  display: flex;
  grid-column: 1;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--text);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.brand span,
.clock,
.hint {
  color: var(--muted);
  font-size: 16px;
}

.status-line {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.pill {
  background: rgba(var(--tone-shine), .1);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--text);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  min-width: 78px;
  padding: 8px 13px;
  text-align: center;
}

.pill.ok {
  color: var(--success);
}

.pill.warn {
  color: var(--warn);
}

.stage-content {
  display: grid;
  grid-column: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.diagonal-glow {
  background: linear-gradient(90deg, transparent 0%, rgba(var(--tone-beam), .2) 22%, rgba(var(--tone-matrix), .76) 50%, rgba(var(--tone-beam-soft), .2) 78%, transparent 100%);
  filter: blur(18px);
  height: 96px;
  opacity: .42;
  pointer-events: none;
  position: absolute;
  width: min(560px, 58vw);
  z-index: 0;
}

.diagonal-glow-one {
  animation: diagonalDriftOne 12s ease-in-out infinite;
  left: -20%;
  top: 16%;
}

.diagonal-glow-two {
  animation: diagonalDriftTwo 14s ease-in-out -4s infinite;
  bottom: 12%;
  height: 78px;
  right: -22%;
  width: min(500px, 52vw);
}

.screen.transition-in {
  animation: screenMaterialize .46s cubic-bezier(.2, .78, .2, 1) both;
}

.stage-content.transition-stage > * {
  animation: contentResolve .5s cubic-bezier(.2, .78, .2, 1) both;
}

.stage-content.transition-stage::before {
  animation: transitionSweep .62s ease-out both;
  background: linear-gradient(104deg, transparent 0 28%, rgba(var(--tone-beam), .3) 43%, rgba(var(--tone-shine), .7) 50%, rgba(var(--tone-beam-soft), .2) 57%, transparent 72% 100%);
  content: "";
  inset: -18%;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.idle-layout {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 0;
  width: 100%;
}

.client-login-layout {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 0;
  width: 100%;
}

.client-login-card {
  align-items: center;
  display: grid;
  gap: 28px;
  justify-items: center;
  width: min(680px, 100%);
}

.client-login-brand {
  gap: 18px;
}

.client-login-brand img {
  padding: 18px 26px;
  width: min(440px, 84%);
}

.client-login-brand h1 {
  font-size: 34px;
}

.client-login-form {
  background: rgba(var(--tone-panel), .62);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: 0 22px 64px rgba(var(--tone-ink), .36);
  padding: 28px;
  width: min(520px, 100%);
}

.client-login-heading {
  display: grid;
  gap: 6px;
}

.client-login-submit {
  width: 100%;
}

.client-lock {
  background: rgba(var(--tone-light), .08);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 850;
  padding: 12px 20px;
  touch-action: manipulation;
}

.client-lock:focus-visible,
.client-lock:hover {
  color: var(--text);
  border-color: rgba(var(--tone-matrix), .7);
}

.idle-stack {
  align-content: center;
  display: grid;
  gap: 42px;
  justify-items: center;
  min-width: 0;
  transform: translateY(-28px);
  width: min(780px, 100%);
}

.logo-led {
  text-align: center;
}

.logo-hero {
  display: grid;
  gap: 26px;
  justify-items: center;
  position: relative;
  width: min(640px, 100%);
  z-index: 1;
}

.logo-glow {
  background:
    linear-gradient(90deg, transparent 0%, rgba(var(--tone-beam), .7) 18%, rgba(var(--tone-shine), .92) 50%, rgba(var(--tone-beam-soft), .68) 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(var(--tone-light), .5) 32%, rgba(var(--tone-beam-soft), .22) 70%, transparent 100%);
  border-radius: 42px;
  filter: blur(26px);
  height: 172px;
  opacity: .7;
  position: absolute;
  top: -14px;
  width: min(590px, 90%);
  z-index: -1;
}

.logo-hero img {
  background: rgba(var(--tone-shine), .97);
  border: 1px solid rgba(var(--tone-shine), .9);
  border-radius: 24px;
  box-shadow:
    0 0 34px rgba(var(--tone-matrix-line), .4),
    0 0 92px rgba(var(--tone-beam-soft), .26),
    0 28px 80px rgba(var(--tone-ink), .34);
  display: block;
  padding: 22px 30px;
  width: min(600px, 88%);
}

.logo-hero h1 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.matrix-date {
  align-items: center;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--tone-beam), .18) 48%, transparent 100%);
  border: 0;
  border-bottom: 1px solid rgba(var(--tone-matrix-line), .5);
  border-top: 1px solid rgba(var(--tone-beam), .22);
  box-shadow: 0 0 20px rgba(var(--tone-beam-soft), .2);
  color: rgb(var(--tone-matrix));
  display: inline-flex;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-width: 320px;
  overflow: hidden;
  padding: 8px 10px;
  text-shadow:
    0 0 8px rgba(var(--tone-matrix), .88),
    0 0 18px rgba(var(--tone-beam-soft), .46);
  text-transform: uppercase;
}

.matrix-day,
.matrix-time-readout {
  white-space: nowrap;
}

.matrix-time-readout {
  align-items: center;
  display: inline-flex;
}

.matrix-second-window {
  display: inline-grid;
  height: 1em;
  line-height: 1;
  overflow: hidden;
  position: relative;
  width: 2ch;
}

.matrix-second-current,
.matrix-second-old {
  grid-area: 1 / 1;
}

.matrix-second-window.is-ticking .matrix-second-old {
  animation: matrixSecondOld .36s cubic-bezier(.2, .72, .2, 1) both;
}

.matrix-second-window.is-ticking .matrix-second-current {
  animation: matrixSecondNew .36s cubic-bezier(.2, .72, .2, 1) both;
}

.welcome-panel {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.eyebrow {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.05;
  max-width: 680px;
}

h2 {
  color: var(--text);
  font-size: 38px;
  font-weight: 750;
  line-height: 1.12;
}

p {
  font-size: 21px;
  line-height: 1.36;
}

.choice-grid {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
}

.choice {
  align-items: center;
  background: rgba(var(--tone-light), .06);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  color: var(--text);
  display: grid;
  min-height: 74px;
  overflow: hidden;
  padding: 18px 58px 18px 24px;
  position: relative;
  text-align: left;
  touch-action: manipulation;
}

.choice::before {
  align-items: center;
  border: 1px solid rgba(var(--tone-matrix), .78);
  border-radius: 999px;
  color: var(--text);
  content: "QR";
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: calc(50% - 17px);
  width: 34px;
}

.choice:nth-child(2)::before {
  content: "IN";
}

.choice::after {
  background: rgba(var(--tone-matrix), .84);
  bottom: 0;
  content: "";
  height: 1px;
  left: 22px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
  width: calc(100% - 78px);
}

.choice:hover {
  background: rgba(var(--tone-shine), .1);
  transform: translateY(-1px);
}

.choice:hover::after {
  transform: scaleX(1);
}

.choice:active {
  transform: translateY(1px);
}

.choice strong {
  color: var(--text);
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.choice span {
  color: var(--muted);
  display: block;
  font-size: 16px;
  max-width: 620px;
}

.theme-switcher {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 48px;
}

.theme-swatch {
  --swatch-a: var(--tone-mist);
  --swatch-b: var(--tone-shell);
  align-items: center;
  background: rgba(var(--tone-panel), .46);
  border: 1px solid rgba(var(--tone-matrix-line), .2);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(var(--tone-shine), .04);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 38px;
}

.theme-swatch span {
  background:
    linear-gradient(135deg, rgba(var(--swatch-a), .98), rgba(var(--swatch-b), .98)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(var(--swatch-a), .16);
  display: block;
  height: 22px;
  width: 22px;
}

.theme-swatch:hover {
  border-color: rgba(var(--tone-matrix), .6);
  transform: translateY(-1px);
}

.theme-swatch.active {
  border-color: rgba(var(--tone-matrix), .92);
  box-shadow:
    0 0 0 4px rgba(var(--tone-matrix), .08),
    0 0 24px rgba(var(--tone-beam), .26);
}

.theme-swatch[data-theme-option="lavender"] {
  --swatch-a: 224, 221, 232;
  --swatch-b: 36, 32, 46;
}

.theme-swatch[data-theme-option="teal"] {
  --swatch-a: 218, 229, 228;
  --swatch-b: 31, 45, 47;
}

.theme-swatch[data-theme-option="blue"] {
  --swatch-a: 223, 228, 238;
  --swatch-b: 31, 40, 54;
}

.theme-swatch[data-theme-option="coral"] {
  --swatch-a: 237, 226, 222;
  --swatch-b: 51, 39, 42;
}

.theme-swatch[data-theme-option="silver"] {
  --swatch-a: 246, 248, 250;
  --swatch-b: 42, 45, 50;
}

.visual-card {
  align-self: center;
  background: rgba(var(--tone-light), .11);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(var(--tone-ink), .4);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.visual-card::before {
  background:
    linear-gradient(180deg, transparent 0%, rgba(var(--tone-panel), .08) 42%, rgba(var(--tone-shell), .74) 100%),
    linear-gradient(128deg, rgba(var(--tone-matrix), .62) 0 21%, transparent 22% 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.visual-portrait {
  background:
    linear-gradient(105deg, transparent 0 36%, rgba(var(--tone-panel), .8) 37% 62%, transparent 63% 100%),
    linear-gradient(160deg, rgb(var(--tone-beam)) 0%, rgb(var(--tone-mid)) 34%, rgb(var(--tone-panel-bright)) 58%, rgb(var(--tone-ink)) 100%);
  min-height: 360px;
  position: relative;
}

.visual-portrait::before {
  background:
    linear-gradient(105deg, transparent 0 39%, rgba(var(--tone-light), .56) 40% 44%, transparent 45% 100%),
    linear-gradient(165deg, transparent 0 44%, rgba(var(--tone-shell), .74) 45% 67%, transparent 68% 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.visual-portrait::after {
  background:
    linear-gradient(112deg, transparent 0 30%, rgba(var(--tone-light), .24) 31% 33%, transparent 34% 100%),
    linear-gradient(62deg, transparent 0 58%, rgba(var(--tone-beam), .18) 59% 61%, transparent 62% 100%);
  content: "";
  inset: -18%;
  position: absolute;
}

.visual-copy {
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 0 42px 44px;
  position: relative;
  z-index: 3;
}

.visual-copy span {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
}

.visual-copy strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 500;
  line-height: .96;
}

.panel {
  align-self: center;
  background: rgba(var(--tone-panel), .62);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: 0 22px 64px rgba(var(--tone-ink), .36);
  color: var(--text);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 860px;
  padding: 30px;
  position: relative;
  width: min(860px, 100%);
}

.panel h2 {
  color: var(--text);
}

.panel p {
  color: var(--muted-strong);
}

.field {
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted-strong);
  display: grid;
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
}

input,
textarea {
  background: rgba(var(--tone-shine), .95);
  border: 1px solid rgba(var(--tone-matrix-line), .5);
  border-radius: 12px;
  color: var(--dark-text);
  font-size: 24px;
  min-height: 66px;
  padding: 14px 16px;
  width: 100%;
}

input:focus,
textarea:focus,
label:focus-within input,
label:focus-within textarea {
  background: rgb(var(--tone-shine));
  border-color: var(--scanner-green);
  box-shadow:
    0 0 0 4px rgba(81, 240, 142, .24),
    0 0 24px rgba(81, 240, 142, .34);
}

label:focus-within {
  color: var(--scanner-green-bright);
}

.form-error {
  color: #ffd3d3;
  font-size: 17px;
  font-weight: 850;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

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

.scan-panel {
  gap: 18px;
  max-width: 980px;
  min-height: 560px;
  overflow: hidden;
  padding: 38px;
  position: static;
}

.scan-guide {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 430px;
}

.scan-copy {
  display: grid;
  gap: 13px;
}

.scan-copy h2 {
  font-size: 46px;
}

.scan-copy p:not(.eyebrow) {
  color: var(--scanner-green-bright);
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 18px var(--scanner-green-glow);
}

.scan-direction {
  background: transparent;
  border: 0;
  bottom: 6px;
  color: var(--text);
  height: 230px;
  overflow: visible;
  position: fixed;
  right: 6px;
  touch-action: manipulation;
  width: 440px;
  z-index: 3;
}

.scan-direction:focus-visible {
  box-shadow: none;
}

.scan-direction:focus-visible .scan-direction-label {
  box-shadow:
    var(--focus),
    0 0 0 2px rgba(255, 255, 255, .38),
    0 0 42px var(--scanner-green-glow),
    0 22px 64px rgba(var(--tone-ink), .42);
}

.scan-direction-label {
  animation: scanHereFloat 1.8s ease-in-out infinite;
  background:
    linear-gradient(145deg, var(--scanner-green-bright), var(--scanner-green) 72%, #27c96e);
  border: 1px solid rgba(217, 255, 231, .88);
  border-radius: 999px;
  bottom: 122px;
  box-shadow:
    0 0 28px var(--scanner-green-glow),
    0 0 78px rgba(81, 240, 142, .24),
    0 22px 58px rgba(var(--tone-ink), .4);
  color: var(--scanner-green-deep);
  display: inline-flex;
  font-size: 32px;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  min-width: 210px;
  padding: 18px 28px;
  position: absolute;
  right: 68px;
  white-space: nowrap;
  z-index: 3;
}

.scan-direction-arrow {
  animation: scanArrowPoint 1.25s cubic-bezier(.2, .72, .2, 1) infinite;
  background: linear-gradient(180deg, transparent, var(--scanner-green) 12%, var(--scanner-green-bright) 56%, var(--scanner-green) 100%);
  border-radius: 999px;
  bottom: 16px;
  box-shadow:
    0 0 22px var(--scanner-green-glow),
    0 0 58px rgba(81, 240, 142, .34);
  height: 132px;
  position: absolute;
  right: 160px;
  width: 9px;
  z-index: 1;
}

.scan-direction-arrow::after {
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 25px solid var(--scanner-green-bright);
  bottom: -18px;
  content: "";
  left: -11px;
  position: absolute;
}

.scan-direction-hand {
  animation: scanHandPoint 1.25s cubic-bezier(.2, .72, .2, 1) infinite;
  bottom: 74px;
  height: 108px;
  position: absolute;
  right: 354px;
  transform: rotate(40deg);
  transform-origin: 50% 100%;
  width: 100px;
  z-index: 2;
}

.scan-direction-finger,
.scan-direction-palm,
.scan-direction-thumb {
  background: var(--scanner-green-bright);
  border: 1px solid rgba(81, 240, 142, .72);
  box-shadow:
    inset -6px -8px 0 rgba(81, 240, 142, .22),
    0 0 24px var(--scanner-green-glow),
    0 16px 34px rgba(var(--tone-ink), .34);
  position: absolute;
}

.scan-direction-finger {
  border-radius: 18px 18px 12px 12px;
  height: 74px;
  left: 43px;
  top: 0;
  width: 23px;
}

.scan-direction-palm {
  border-radius: 27px 27px 22px 22px;
  bottom: 2px;
  height: 58px;
  left: 29px;
  width: 52px;
}

.scan-direction-thumb {
  border-radius: 16px;
  bottom: 30px;
  height: 23px;
  left: 16px;
  transform: rotate(-35deg);
  width: 42px;
}

.scan-target {
  background:
    linear-gradient(145deg, rgba(var(--tone-shine), .11), rgba(var(--tone-matrix), .05)),
    rgba(var(--tone-ink), .16);
  border: 1px solid var(--glass-line-strong);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(var(--tone-shine), .18),
    0 22px 58px rgba(var(--tone-ink), .28);
  display: grid;
  min-height: 340px;
  overflow: hidden;
  place-items: center;
  position: relative;
  touch-action: manipulation;
}

.scan-target:hover {
  background:
    linear-gradient(145deg, rgba(var(--tone-shine), .15), rgba(var(--tone-matrix), .07)),
    rgba(var(--tone-ink), .18);
}

.scan-target:focus-visible {
  box-shadow:
    var(--focus),
    inset 0 1px 0 rgba(var(--tone-shine), .18),
    0 22px 58px rgba(var(--tone-ink), .28);
}

.scan-window {
  align-items: center;
  aspect-ratio: 1;
  border: 2px solid rgba(var(--tone-matrix), .62);
  border-radius: 24px;
  box-shadow:
    0 0 34px rgba(var(--tone-matrix), .18),
    inset 0 0 30px rgba(var(--tone-matrix), .08);
  display: grid;
  justify-items: center;
  position: relative;
  width: 218px;
}

.scan-window::before,
.scan-window::after {
  border: 4px solid rgb(var(--tone-matrix));
  content: "";
  height: 48px;
  position: absolute;
  width: 48px;
}

.scan-window::before {
  border-bottom: 0;
  border-right: 0;
  left: 18px;
  top: 18px;
}

.scan-window::after {
  border-left: 0;
  border-top: 0;
  bottom: 18px;
  right: 18px;
}

.scan-code {
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, var(--text) 14px, transparent 14px 24px, var(--text) 24px 38px, transparent 38px 54px, var(--text) 54px 70px, transparent 70px 84px, var(--text) 84px 100%),
    linear-gradient(0deg, transparent 0 12px, rgba(var(--tone-ink), .86) 12px 24px, transparent 24px 40px, rgba(var(--tone-ink), .86) 40px 54px, transparent 54px 72px, rgba(var(--tone-ink), .86) 72px 84px, transparent 84px 100%);
  border: 10px solid rgb(var(--tone-shine));
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(var(--tone-matrix), .22);
  opacity: .9;
  width: 118px;
}

.scan-beam {
  animation: scanBeam 1.65s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgb(var(--tone-matrix)) 18%, rgb(var(--tone-shine)) 50%, rgb(var(--tone-matrix)) 82%, transparent);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(var(--tone-matrix), .78),
    0 0 44px rgba(var(--tone-beam), .42);
  height: 4px;
  left: 26px;
  position: absolute;
  right: 26px;
  top: 58px;
}

.scan-hand {
  animation: pointerNudge 1.45s cubic-bezier(.2, .72, .2, 1) infinite;
  bottom: 18px;
  height: 130px;
  position: absolute;
  right: 16px;
  transform-origin: 50% 100%;
  width: 116px;
}

.scan-hand-finger,
.scan-hand-palm,
.scan-hand-thumb {
  background: rgb(var(--tone-shine));
  border: 1px solid rgba(var(--tone-matrix), .55);
  box-shadow:
    inset -6px -8px 0 rgba(var(--tone-beam-soft), .34),
    0 16px 34px rgba(var(--tone-ink), .34);
  position: absolute;
}

.scan-hand-finger {
  border-radius: 18px 18px 12px 12px;
  height: 84px;
  left: 50px;
  top: 0;
  width: 24px;
}

.scan-hand-palm {
  border-radius: 28px 28px 22px 22px;
  bottom: 4px;
  height: 66px;
  left: 32px;
  width: 58px;
}

.scan-hand-thumb {
  border-radius: 16px;
  bottom: 36px;
  height: 24px;
  left: 18px;
  transform: rotate(-35deg);
  width: 46px;
}

.scan-capture-form {
  height: 1px;
  overflow: hidden;
  position: relative;
}

.scan-token-input {
  background: transparent;
  border: 0;
  color: transparent;
  height: 1px;
  left: 0;
  min-height: 1px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

.scan-token-input:focus {
  background: transparent;
  border: 0;
}

.scan-status {
  align-items: center;
  color: var(--muted-strong);
  display: inline-flex;
  font-size: 17px;
  font-weight: 850;
  gap: 10px;
}

.scan-status::before {
  animation: readyPulse 1.25s ease-in-out infinite;
  background: var(--scanner-green);
  border-radius: 999px;
  box-shadow:
    0 0 18px var(--scanner-green-glow),
    0 0 38px rgba(81, 240, 142, .34);
  content: "";
  height: 10px;
  width: 10px;
}

.scan-actions {
  justify-content: flex-start;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  align-items: center;
  background: rgba(var(--tone-light), .94);
  border: 1px solid rgba(var(--tone-matrix), .56);
  border-radius: 999px;
  color: var(--dark-text);
  display: inline-flex;
  font-size: 21px;
  font-weight: 900;
  justify-content: center;
  min-height: 62px;
  min-width: 148px;
  padding: 13px 24px;
  touch-action: manipulation;
}

.btn:hover {
  background: rgb(var(--tone-shine));
}

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

.btn.secondary {
  background: rgba(var(--tone-matrix), .12);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(var(--tone-matrix), .18);
}

.btn.blue {
  background: var(--paper);
  color: var(--dark-text);
}

.btn.warn {
  background: var(--warn);
  color: var(--dark-text);
}

.btn.danger {
  background: var(--danger);
  color: #ffffff;
}

.btn.compact {
  font-size: 15px;
  min-height: 42px;
  min-width: 0;
  padding: 8px 16px;
}

.token-actions {
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.token-actions .btn {
  font-size: 18px;
  height: 52px;
  min-height: 52px;
  min-width: 118px;
  padding: 10px 20px;
  white-space: nowrap;
  width: auto;
}

.token-actions .btn.secondary {
  min-width: 92px;
}

.candidate-box {
  background: rgba(var(--tone-matrix), .07);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  padding: 20px 22px;
}

.candidate-box strong {
  color: var(--text);
  font-size: 31px;
}

.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail {
  background: rgba(var(--tone-matrix), .07);
  border: 1px solid rgba(var(--tone-matrix), .12);
  border-radius: 12px;
  min-width: 0;
  padding: 14px;
}

.detail span {
  color: var(--muted);
  display: block;
  font-size: 15px;
}

.detail strong {
  color: var(--text);
  display: block;
  font-size: 21px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.camera-wrap {
  display: grid;
  gap: 18px;
}

.camera-stage {
  background: var(--ink);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

video,
canvas,
.photo-preview {
  background: var(--ink);
  border: 0;
  border-radius: 0;
  display: block;
  max-height: 52vh;
  object-fit: cover;
  width: 100%;
}

.capture-countdown {
  --countdown-alpha: 1;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(var(--tone-matrix), .14), rgba(var(--tone-matrix), 0) 36%),
    rgba(var(--tone-shell), .22);
  color: rgba(var(--tone-shine), var(--countdown-alpha));
  display: grid;
  inset: 0;
  justify-items: center;
  pointer-events: none;
  position: absolute;
  text-align: center;
  z-index: 3;
}

.capture-countdown[hidden] {
  display: none;
}

.capture-countdown span {
  color: rgba(var(--tone-shine), .78);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: -24px;
  text-transform: uppercase;
}

.capture-countdown strong {
  color: rgba(var(--tone-shine), var(--countdown-alpha));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 148px;
  font-weight: 500;
  line-height: .9;
  text-shadow:
    0 0 28px rgba(var(--tone-matrix), .62),
    0 0 78px rgba(var(--tone-beam-soft), .3);
}

.capture-countdown strong.countdown-tick {
  animation: captureCountdownTick .82s cubic-bezier(.2, .72, .2, 1) both;
}

.btn:disabled {
  cursor: default;
  opacity: .46;
  transform: none;
}

.btn:disabled:hover {
  background: rgba(var(--tone-light), .94);
}

.btn.secondary:disabled:hover {
  background: rgba(var(--tone-matrix), .12);
}

.receipt {
  align-content: center;
  background: rgba(var(--tone-panel), .66);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(var(--tone-ink), .4);
  color: var(--text);
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0 auto;
  max-width: 460px;
  padding: 34px;
  position: relative;
  text-align: center;
  width: min(460px, 100%);
}

.receipt h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
}

.success-copy,
.token-label {
  color: rgba(var(--tone-shine), .78);
}

.token-label {
  border-top: 1px solid rgba(var(--tone-matrix), .16);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  margin-top: 4px;
  padding-top: 16px;
  text-transform: uppercase;
  width: 100%;
}

.ca-code {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  font-weight: 500;
  line-height: 1;
}

.receipt p {
  color: var(--muted-strong);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.receipt-website {
  font-weight: 800;
}

.toast {
  background: rgba(var(--tone-panel), .94);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 18px;
  left: 20px;
  padding: 14px 18px;
  position: fixed;
  right: 20px;
  z-index: 40;
}

.virtual-keyboard {
  background: rgba(var(--tone-panel), .94);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: 0 26px 84px rgba(var(--tone-ink), .44);
  display: grid;
  gap: 8px;
  left: 34px;
  max-height: min(52vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  position: fixed;
  right: 34px;
  bottom: 18px;
  z-index: 10;
}

.virtual-keyboard[hidden] {
  display: none;
}

.keyboard-head {
  align-items: center;
  color: var(--muted-strong);
  display: flex;
  font-size: 17px;
  font-weight: 850;
  justify-content: space-between;
}

.keyboard-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.keyboard-key {
  align-items: center;
  background: rgba(var(--tone-shine), .95);
  border: 1px solid rgba(var(--tone-matrix), .38);
  border-radius: 12px;
  color: var(--dark-text);
  display: inline-flex;
  flex: 1 1 0;
  font-size: 21px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 6px 8px;
  touch-action: manipulation;
}

.keyboard-key.action {
  background: rgba(var(--tone-matrix), .12);
  color: var(--text);
  font-size: 17px;
}

.keyboard-key.active {
  background: rgb(var(--tone-shine));
  color: var(--dark-text);
}

.keyboard-key.wide {
  flex-grow: 2.4;
}

.update-overlay {
  align-items: center;
  background: rgba(var(--tone-ink), .56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: fixed;
  z-index: 30;
}

.update-box {
  background: rgba(var(--tone-panel), .94);
  border: 1px solid var(--glass-line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 18px;
  max-width: 700px;
  padding: 36px;
  position: relative;
  text-align: center;
  width: min(700px, 100%);
}

.update-box h2 {
  color: var(--text);
}

.update-box p {
  color: var(--muted-strong);
}

.update-box .btn {
  justify-self: center;
  min-width: 270px;
}

@supports (backdrop-filter: blur(18px)) {
  .screen,
  .panel,
  .visual-card,
  .receipt,
  .virtual-keyboard,
  .update-box {
    backdrop-filter: blur(18px);
  }
}

@keyframes smokeDrift {
  0%,
  100% {
    transform: translateX(-18px) translateY(-8px);
  }
  50% {
    transform: translateX(22px) translateY(10px);
  }
}

@keyframes diagonalDriftOne {
  0% {
    opacity: .16;
    transform: translate(-10%, 18%) rotate(-24deg) scale(.92);
  }
  21% {
    opacity: .52;
    transform: translate(62%, -8%) rotate(-31deg) scale(1.08);
  }
  47% {
    opacity: .28;
    transform: translate(28%, 112%) rotate(-18deg) scale(.98);
  }
  73% {
    opacity: .58;
    transform: translate(118%, 52%) rotate(-36deg) scale(1.14);
  }
  100% {
    opacity: .16;
    transform: translate(-10%, 18%) rotate(-24deg) scale(.92);
  }
}

@keyframes diagonalDriftTwo {
  0% {
    opacity: .14;
    transform: translate(14%, -8%) rotate(27deg) scale(.9);
  }
  26% {
    opacity: .46;
    transform: translate(-74%, -42%) rotate(18deg) scale(1.12);
  }
  52% {
    opacity: .22;
    transform: translate(-18%, -126%) rotate(35deg) scale(.94);
  }
  78% {
    opacity: .5;
    transform: translate(-120%, -72%) rotate(24deg) scale(1.08);
  }
  100% {
    opacity: .14;
    transform: translate(14%, -8%) rotate(27deg) scale(.9);
  }
}

@keyframes matrixSecondOld {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-116%);
  }
}

@keyframes matrixSecondNew {
  0% {
    opacity: 0;
    transform: translateY(116%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes captureCountdownTick {
  0% {
    filter: blur(10px);
    opacity: .18;
    transform: translateY(16px) scale(.92);
  }
  28% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes screenMaterialize {
  0% {
    filter: blur(10px);
    opacity: .62;
    transform: translateY(18px) scale(.985);
  }
  58% {
    filter: blur(2px);
    opacity: 1;
    transform: translateY(-2px) scale(1.002);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chromeResolve {
  0% {
    opacity: .28;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentResolve {
  0% {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(16px);
  }
  72% {
    filter: blur(1px);
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes transitionSweep {
  0% {
    opacity: 0;
    transform: translateX(-115%);
  }
  18% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform: translateX(115%);
  }
}

@keyframes scanBeam {
  0%,
  100% {
    opacity: .68;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(96px);
  }
}

@keyframes pointerNudge {
  0%,
  100% {
    transform: translate(-3px, 3px) rotate(-8deg);
  }
  45% {
    transform: translate(-22px, -18px) rotate(-13deg);
  }
  62% {
    transform: translate(-18px, -13px) rotate(-10deg) scale(.98);
  }
}

@keyframes readyPulse {
  0%,
  100% {
    opacity: .58;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes scanHereFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes scanArrowPoint {
  0%,
  100% {
    opacity: .78;
    transform: translateY(-6px);
  }
  52% {
    opacity: 1;
    transform: translateY(18px);
  }
}

@keyframes scanHandPoint {
  0%,
  100% {
    transform: translate(-4px, -5px) rotate(40deg);
  }
  52% {
    transform: translate(10px, 9px) rotate(40deg);
  }
}

@media (max-width: 980px) {
  .idle-layout {
    grid-template-columns: 1fr;
  }

  .visual-card {
    display: none;
  }

  .scan-guide {
    grid-template-columns: 1fr;
  }

  .scan-copy {
    text-align: center;
  }

  .scan-direction {
    bottom: 28px;
    right: 22px;
  }
}

@media (max-width: 720px) {
  .kiosk-shell {
    padding: 12px;
  }

  .screen {
    border-radius: 24px;
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 24px);
    padding: 20px;
    width: 100%;
  }

  body.keyboard-open .screen {
    padding-bottom: 560px;
  }

  .stage-content {
    grid-column: 1;
  }

  h1 {
    font-size: 42px;
  }

  .idle-stack {
    gap: 34px;
    transform: translateY(-34px);
  }

  .logo-hero {
    gap: 20px;
    width: 100%;
  }

  .logo-glow {
    border-radius: 28px;
    filter: blur(20px);
    height: 104px;
    top: -6px;
    width: 76%;
  }

  .logo-hero img {
    border-radius: 18px;
    padding: 14px 16px;
    width: min(276px, 82%);
  }

  .logo-hero h1 {
    font-size: 30px;
  }

  .matrix-date {
    font-size: 14px;
    gap: 7px;
    min-width: 268px;
    padding: 7px 8px;
  }

  h2 {
    font-size: 30px;
  }

  p,
  .hint {
    font-size: 18px;
  }

  .choice,
  .panel,
  .receipt {
    padding: 20px;
  }

  .scan-panel {
    gap: 14px;
    min-height: 600px;
  }

  .scan-guide {
    gap: 18px;
    min-height: 500px;
  }

  .scan-copy {
    gap: 8px;
  }

  .scan-copy h2 {
    font-size: 32px;
  }

  .scan-copy p:not(.eyebrow) {
    font-size: 20px;
  }

  .scan-direction {
    bottom: 14px;
    height: 210px;
    right: 8px;
    width: 310px;
  }

  .scan-direction-label {
    bottom: 116px;
    font-size: 26px;
    min-width: 174px;
    padding: 16px 22px;
    right: 34px;
  }

  .scan-direction-arrow {
    bottom: 14px;
    height: 116px;
    right: 126px;
    width: 8px;
  }

  .scan-direction-hand {
    bottom: 82px;
    right: 204px;
    transform: rotate(40deg) scale(.88);
  }

  .scan-target {
    min-height: 280px;
  }

  .scan-window {
    width: 178px;
  }

  .scan-code {
    width: 96px;
  }

  .scan-hand {
    bottom: 10px;
    height: 108px;
    right: 8px;
    transform: scale(.86);
    width: 96px;
  }

  .receipt {
    max-width: calc(100vw - 32px);
    width: 100%;
  }

  .receipt h2 {
    font-size: 32px;
  }

  .choice {
    min-height: 82px;
    padding-right: 58px;
  }

  .choice strong {
    font-size: 24px;
  }

  .choice span {
    font-size: 17px;
  }

  .theme-switcher {
    gap: 10px;
  }

  .theme-swatch {
    height: 36px;
    width: 36px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .capture-countdown span {
    font-size: 15px;
    margin-bottom: -16px;
  }

  .capture-countdown strong {
    font-size: 104px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .token-actions {
    flex-direction: row;
  }

  .token-actions .btn {
    flex: 0 0 auto;
    width: auto;
  }

  .keyboard-key {
    font-size: 16px;
    min-height: 42px;
    min-width: 0;
    padding: 4px;
  }

  .virtual-keyboard {
    border-radius: 18px;
    bottom: 10px;
    left: 10px;
    max-height: 54vh;
    right: 10px;
  }

  .keyboard-row {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .diagonal-glow,
  .capture-countdown strong.countdown-tick,
  .matrix-second-window.is-ticking .matrix-second-old,
  .matrix-second-window.is-ticking .matrix-second-current,
  .screen.transition-in,
  .stage-content.transition-stage > *,
  .stage-content.transition-stage::before {
    animation: none;
  }

  .scan-beam,
  .scan-hand,
  .scan-status::before,
  .scan-direction-label,
  .scan-direction-arrow,
  .scan-direction-hand {
    animation: none;
  }

  .choice:hover,
  .btn:active,
  .choice:active {
    transform: none;
  }
}

@media print {
  :root,
  body {
    background: white;
    color: #111;
  }

  body::before,
  body::after,
  .screen::before,
  .diagonal-glow {
    display: none;
  }

  .kiosk-shell {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .topline,
  .actions,
  .toast,
  .virtual-keyboard,
  .visual-card,
  .welcome-panel,
  .choice-grid,
  .panel:not(.receipt),
  .stage-content > :not(.receipt) {
    display: none !important;
  }

  .stage-content {
    display: block;
  }

  .screen {
    background: white;
    border: 0;
    box-shadow: none;
    display: block;
    min-height: auto;
    padding: 0;
    width: auto;
  }

  .receipt {
    background: white;
    border: 0;
    box-shadow: none;
    color: #111;
    gap: 3mm;
    max-width: 72mm;
    padding: 3mm;
  }

  .receipt h2,
  .success-copy {
    display: none !important;
  }

  .token-label {
    border-top: 0;
    color: #111;
    font-size: 14px;
    margin-top: 0;
    padding-top: 0;
  }

  .ca-code {
    color: #111;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 62px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: .9;
  }

  .receipt p {
    color: #111;
    font-size: 16px;
    margin: 0;
  }

  .receipt-website {
    font-size: 20px;
    font-weight: 900;
  }
}
