/* Night Desk: one painted scene, a caption bar under it. */

:root {
  --steel-dark: var(--ak-accent-2);
  --steel: color-mix(in srgb, var(--ak-accent-2) 62%, var(--ak-bg));
  --steel-light: color-mix(in srgb, var(--ak-accent-2) 30%, var(--ak-bg));
  --night: color-mix(in srgb, var(--ak-accent-2) 78%, var(--ak-ink));
  --amber: color-mix(in srgb, var(--ak-accent) 42%, var(--ak-bg));
  --paper: var(--ak-bg);
  --edge: max(10px, env(safe-area-inset-left), env(safe-area-inset-right));
  --brushed:
    repeating-linear-gradient(90deg, transparent 0 3px, color-mix(in srgb, var(--ak-bg) 9%, transparent) 3px 4px, transparent 4px 9px),
    repeating-linear-gradient(90deg, transparent 0 11px, color-mix(in srgb, var(--ak-ink) 8%, transparent) 11px 12px),
    linear-gradient(180deg, var(--steel-light), var(--steel) 45%, color-mix(in srgb, var(--steel) 80%, var(--ak-ink)));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--ak-font-body);
  color: var(--ak-ink);
  background-color: var(--ak-bg);
  background-image: var(--ak-bg-art);
  background-size: var(--ak-bg-size);
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid var(--ak-focus);
  outline-offset: 3px;
}

img { display: block; user-select: none; -webkit-user-drag: none; }

/* ---------- Opening screen ----------
   start.js draws it; these rules only make it read as one clear paper panel,
   with Play in its own bar at the bottom instead of floating over the copy.
   The doubled id outranks the kit's own rules. */

html body #activity-start#activity-start {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

html body #activity-start#activity-start .ak-sheet {
  box-sizing: border-box;
  width: min(100%, 760px);
  padding: 20px clamp(16px, 4vw, 32px) 24px;
  background: var(--ak-bg);
  border-top: 6px solid var(--ak-accent-2);
  border-bottom: 6px solid var(--ak-accent-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ak-accent-2) 35%, transparent);
}

html body #activity-start#activity-start .ak-badge { display: none; }

html body #activity-start#activity-start .ak-tagline {
  margin-left: 0;
  margin-right: 0;
  color: var(--ak-ink);
  font-size: 15px;
  font-weight: 700;
}

html body #activity-start#activity-start .ak-label {
  color: var(--ak-btn-fill);
  font-size: 14px;
}

html body #activity-start#activity-start .ak-body,
html body #activity-start#activity-start .ak-controls li {
  color: var(--ak-ink);
}

html body #activity-start#activity-start .ak-go {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: calc(72px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0 24px env(safe-area-inset-bottom);
  border: 0;
  border-top: 6px solid var(--ak-accent-2);
  border-radius: 0;
  box-shadow: none;
  font-size: 22px;
  z-index: 2;
}

@media (orientation: landscape) and (max-height: 500px) {
  html body #activity-start#activity-start { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html body #activity-start#activity-start .ak-go { min-height: calc(58px + env(safe-area-inset-bottom)); font-size: 20px; }
}

/* ---------- The desk: one picture ---------- */

.desk {
  --dawn: 0;
  --mon: min(26dvw, 12.5dvh, 150px);
  --tk: min(28dvw, 13dvh, 150px);
  --tk-served: max(84px, calc(var(--tk) * 0.84));
  --clock: min(15dvw, 7dvh, 84px);
  --guard: min(27dvw, 13.5dvh, 160px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "top" "scene" "counter" "caption";
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  margin: 0 auto;
  padding: max(6px, env(safe-area-inset-top)) var(--edge) 0;
  background-image: var(--ak-backdrop-layer, var(--ak-bg-art));
  background-size: cover;
  background-position: center top;
  touch-action: manipulation;
  user-select: none;
}

.topbar {
  grid-area: top;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding-right: 60px;
}

.mute {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: var(--steel-dark);
  color: var(--ak-bg);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  cursor: pointer;
}

.icon { width: 100%; height: 100%; display: block; }
.mute .cross { display: none; }
.mute[aria-pressed="true"] .wave { display: none; }
.mute[aria-pressed="true"] .cross { display: inline; }

.hint {
  min-width: 64px;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--ak-choice-border);
  border-radius: 0;
  background: var(--ak-choice-bg);
  color: var(--ak-choice-ink);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.hint[aria-pressed="true"] {
  background: var(--ak-choice-selected-bg);
  color: var(--ak-choice-selected-ink);
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 44px;
  width: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- Wall, window, clock, rail ---------- */

.scene {
  grid-area: scene;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wall {
  position: relative;
  display: grid;
  grid-template-columns: var(--clock) 1fr;
  grid-template-rows: var(--clock) 12px var(--tk);
  column-gap: 10px;
  padding: 4px 6px 8px;
}

.window {
  position: absolute;
  inset: 4px 0 0 calc(var(--clock) + 22px);
  overflow: hidden;
  border: 5px solid var(--steel-dark);
  border-bottom-width: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), var(--steel-dark) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(180deg,
      color-mix(in srgb, var(--night), var(--amber) calc(var(--dawn) * 70%)),
      color-mix(in srgb, color-mix(in srgb, var(--ak-accent-2) 60%, var(--ak-accent)), var(--amber) calc(var(--dawn) * 100%)));
  transition: background 1.2s ease;
}

.skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 72%;
}

.skyline .roofs,
.skyline .tower path { fill: color-mix(in srgb, var(--ak-ink), var(--ak-ink-muted) calc(var(--dawn) * 80%)); }
.skyline .tower path[fill="none"] { stroke: color-mix(in srgb, var(--ak-ink), var(--ak-ink-muted) calc(var(--dawn) * 80%)); }
.skyline .lit rect { fill: var(--amber); opacity: calc(1 - var(--dawn)); }

.clock {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: var(--clock);
  height: var(--clock);
  z-index: 2;
}

.clock-rim { fill: var(--steel-dark); }
.clock-face { fill: var(--ak-bg); }
.clock-ticks path { stroke: var(--ak-ink); stroke-width: 3; }
.clock-minute { stroke: var(--ak-ink); stroke-width: 3.5; stroke-linecap: square; }
.clock-hour path { stroke: var(--ak-ink); stroke-width: 6; stroke-linecap: square; }
.clock-hour { transform-origin: 50px 50px; transform-box: view-box; }
.clock-pin { fill: var(--ak-accent); }

.rail {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  height: 10px;
  margin: 0 -6px;
  z-index: 2;
  background:
    radial-gradient(circle at 10px 50%, var(--steel-dark) 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 50%, var(--steel-dark) 2px, transparent 3px),
    linear-gradient(180deg, var(--steel-light), var(--steel) 55%, var(--steel-dark));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ak-ink) 45%, transparent);
}

.tickets {
  grid-column: 1 / -1;
  grid-row: 2 / 4;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}

.ticket {
  position: relative;
  flex: none;
  height: var(--tk-served);
  aspect-ratio: 205 / 384;
  margin-top: -6px;
  transform-origin: 50% 4%;
  filter: saturate(0.55) brightness(0.9);
}

.ticket.is-current {
  height: var(--tk);
  filter: none;
}

/* Hours still to come wait on the rail as empty slots: the night's length stays in view. */
.ticket-slot {
  /* Placeholders, not pieces: they give way first when the rail is short. */
  flex: 0 1 calc(var(--tk-served) * 205 / 384);
  min-width: 26px;
  height: var(--tk-served);
  margin-top: 2px;
  display: grid;
  place-items: center;
  padding: 0 2px;
  border: 2px dashed var(--steel-light);
  background: var(--ak-surface);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  text-align: center;
  color: var(--ak-ink-muted);
}

.tickets { min-width: 0; }

/* At this hour's spend the battery won't reach these hours: they wait stamped dry. */
.ticket-slot.is-dry {
  align-content: center;
  gap: 2px;
  border: 3px solid var(--ak-accent);
  color: var(--ak-ink);
}

.slot-dry {
  display: block;
  padding: 1px 3px;
  background: var(--ak-accent);
  color: var(--ak-bg);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket.is-current.is-dry .ticket-cost {
  background: var(--ak-accent);
  color: var(--ak-bg);
}

.ticket > img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--ak-ink) 40%, transparent));
}

/* Our hour sits on a clean patch over the printed one. */
.ticket-hour {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 37%;
  height: 28%;
  display: grid;
  place-items: center;
  background: #FCEEC7;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: calc(var(--tk) * 0.165);
  line-height: 1;
  color: var(--ak-ink);
  white-space: nowrap;
}

.ticket:not(.is-current) .ticket-hour { font-size: calc(var(--tk-served) * 0.16); }

.ticket-cost {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 66%;
  height: 15%;
  display: grid;
  place-items: center;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: calc(var(--tk) * 0.14);
  line-height: 1;
  background: #FCEEC7;
  color: var(--ak-ink);
}

.ticket:not(.is-current) .ticket-cost { font-size: calc(var(--tk-served) * 0.15); }

.ticket-mark {
  position: absolute;
  left: 50%;
  top: 81%;
  height: 15%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: #FCEEC7;
}

.ticket-mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Shelf: monitors and locks ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 8px 12px;
  background: var(--brushed);
  border-top: 4px solid var(--steel-dark);
  border-bottom: 4px solid var(--steel-dark);
}

.post {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.monitor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--mon);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.monitor > img {
  width: 100%;
  height: auto;
  aspect-ratio: 384 / 380;
}

.screen {
  position: absolute;
  left: 9.5%;
  top: 9%;
  width: 81%;
  aspect-ratio: 310 / 296;
  border-radius: 13%;
  overflow: hidden;
  pointer-events: none;
}

.screen svg { width: 100%; height: 100%; display: block; }

.monitor[aria-pressed="false"] .screen {
  background: color-mix(in srgb, var(--ak-accent-2) 75%, var(--ak-ink));
}

.cam-name {
  width: 100%;
  margin-top: 2px;
  padding: 3px 2px;
  background: var(--ak-bg);
  border-top: 3px solid var(--steel-dark);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: var(--ak-ink);
  text-align: center;
  white-space: nowrap;
}

.monitor[aria-pressed="true"] .cam-name {
  background: var(--ak-btn-fill);
  color: var(--ak-btn-ink);
  border-top-color: var(--ak-ink);
}

.screen-tag {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  padding: 2px 6px;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screen-tag.is-crew { background: var(--ak-btn-fill); color: var(--ak-btn-ink); }
.screen-tag.is-clear { background: var(--ak-bg); color: var(--ak-ink); }
.screen-tag.is-off { background: var(--ak-bg); color: var(--ak-ink); }

.lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: calc(var(--mon) + 24px);
  min-height: 70px;
  padding: 4px 6px;
  border: 2px solid var(--ak-choice-border);
  border-radius: 0;
  background: var(--ak-choice-bg);
  color: var(--ak-choice-ink);
  cursor: pointer;
}

.lock[aria-pressed="true"] {
  background: var(--ak-choice-selected-bg);
  color: var(--ak-choice-selected-ink);
  border-color: var(--ak-choice-selected-border);
}

.lock.is-held-open {
  border-style: dashed;
}

/* The crew is at this open door: the one tap that matters. */
.lock.is-threat {
  border: 4px solid var(--ak-accent);
  background: var(--ak-bg);
  color: var(--ak-ink);
}

.lock.is-threat .lock-word small {
  color: var(--ak-btn-fill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.padlock {
  position: relative;
  flex: none;
  width: 44px;
  aspect-ratio: 259 / 384;
  padding: 0;
}

.padlock::before {
  content: "";
  position: absolute;
  inset: -3px -5px;
  background: var(--ak-bg);
  border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px;
}

.padlock img,
.padlock svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.padlock.is-shut img { clip-path: inset(43% 0 0 0); }

.lock-word {
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  text-align: left;
}

.lock-word small {
  display: block;
  font-family: var(--ak-font-body);
  font-weight: 600;
  font-size: 13px;
}

.no-door {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: calc(var(--mon) + 24px);
  min-height: 70px;
  margin: 0;
  padding: 4px 8px;
  border: 2px dashed var(--steel-dark);
  background: var(--ak-surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--ak-ink-muted);
}

/* ---------- Counter: guard, gauge, next, slip ---------- */

.counter {
  grid-area: counter;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "guard gauge go" "slip slip slip";
  align-items: end;
  align-content: start;
  column-gap: 10px;
  row-gap: 8px;
  padding: 8px 8px 10px;
  background: var(--brushed);
  border-bottom: 6px solid var(--steel-dark);
  /* Long hours never push the caption off screen: the counter scrolls instead. */
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.guard-post {
  grid-area: guard;
  position: relative;
  height: var(--guard);
  aspect-ratio: 323 / 384;
}

.guard {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

/* Tonight's number, and how bold the crew is, pinned to the guard's card. */
.night-tag {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  margin: 0;
  padding: 1px 6px;
  background: var(--ak-ink);
  color: var(--ak-bg);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.night-tag:empty { display: none; }
.night-tag small { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.night-tag[data-level="1"],
.night-tag[data-level="2"] { background: var(--ak-accent); }

.gauge {
  grid-area: gauge;
  width: min(30dvw, 15dvh, 140px);
  margin: 0;
  padding: 6px 6px 4px;
  background: var(--ak-bg);
  border: 3px solid var(--steel-dark);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  text-align: center;
}

.gauge svg { width: 100%; display: block; }
.gauge-face { fill: var(--ak-surface); }
.gauge-arc { fill: none; stroke: var(--ak-ink); stroke-width: 2; }
.gauge-ghost { fill: none; stroke: var(--ak-accent); stroke-width: 8; }
.gauge-ticks path { stroke: var(--ak-ink); stroke-width: 2; }
.gauge-ticks .low { stroke: var(--ak-accent); stroke-width: 3; }
.gauge-needle { transform-origin: 60px 64px; transform-box: view-box; }
.gauge-needle path { stroke: var(--ak-ink); stroke-width: 3.5; stroke-linecap: square; }
.gauge-pin { fill: var(--ak-accent); }

.gauge-read {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ak-ink-muted);
}

.gauge-read b {
  font-family: var(--ak-font-display);
  font-size: 26px;
  color: var(--ak-ink);
}

.gauge.has-backup .gauge-read::after {
  content: " +20";
  font-weight: 700;
  color: var(--ak-btn-fill);
}

.gauge-cost {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ak-btn-fill);
}

.gauge-last {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ak-ink-muted);
}

.gauge-last:empty { display: none; }

.gauge-last.is-warn {
  margin: 2px -2px 0;
  padding: 1px 2px;
  background: var(--ak-accent);
  color: var(--ak-bg);
}

.go {
  grid-area: go;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}

.next {
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: var(--ak-btn-fill);
  color: var(--ak-btn-ink);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 22px;
  cursor: pointer;
}

.next:active { background: var(--ak-btn-active); }
.next[aria-disabled="true"] { background: var(--ak-ink-muted); }

@media (hover: hover) {
  .next:hover { background: var(--ak-btn-hover); }
}

.slip {
  grid-area: slip;
  position: relative;
  padding: 8px 12px 8px;
  background: var(--paper);
  color: var(--ak-ink);
  clip-path: polygon(0 6px, 3% 0, 6% 6px, 9% 0, 12% 6px, 15% 0, 18% 6px, 21% 0, 24% 6px, 27% 0, 30% 6px, 33% 0, 36% 6px, 39% 0, 42% 6px, 45% 0, 48% 6px, 51% 0, 54% 6px, 57% 0, 60% 6px, 63% 0, 66% 6px, 69% 0, 72% 6px, 75% 0, 78% 6px, 81% 0, 84% 6px, 87% 0, 90% 6px, 93% 0, 96% 6px, 100% 0, 100% 100%, 0 100%);
  border-left: 8px solid var(--ak-accent);
}

.slip-ask {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.slip-hour {
  display: inline-block;
  margin-right: 4px;
  padding: 0 6px;
  background: var(--ak-ink);
  color: var(--ak-bg);
  font-family: var(--ak-font-display);
  font-weight: 700;
}

/* Midnight's briefing: two labelled rows, crew and power, before the first move. */
.brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.brief[hidden] { display: none; }

.brief dt {
  align-self: start;
  padding: 1px 6px;
  background: var(--ak-ink);
  color: var(--ak-bg);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brief dd { margin: 0; color: var(--ak-ink); font-weight: 600; }

/* The one thing to do this hour, the same shape every hour. */
.slip-do {
  margin: 4px 0 0;
  padding: 3px 8px;
  background: var(--ak-bg);
  border-left: 5px solid var(--ak-btn-fill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ak-ink);
}

.slip-do[hidden],
.slip-do:has(span:empty) { display: none; }
.slip-do b { color: var(--ak-btn-fill); text-transform: uppercase; letter-spacing: 0.04em; }

.slip-sum {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ak-ink-muted);
}

.slip-sum b { color: var(--ak-ink); }

/* The crew line turns to a warning when they are at an open door, or got in last hour. */
.slip-ask.is-warn #slip-text {
  color: var(--ak-btn-fill);
  font-weight: 700;
}

.lock-word small.tap {
  color: var(--ak-ink-muted);
  font-weight: 600;
}

/* Where the crew got in, for a moment after the hour turns. */
.monitor.breach .cam-name,
.lock.breach {
  outline: 4px solid var(--ak-accent);
  outline-offset: 2px;
}

.slip-pace {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ak-ink-muted);
}

.slip-pace:empty { display: none; }
/* Plain hours: the gauge shows the cost and how far it goes, and each switch's caption spells it
   out; the slip keeps the first-hour routine and any warning. */
.slip.is-plain .slip-pace:not(.is-warn, .is-brief) { display: none; }

.slip-pace.is-done {
  color: var(--ak-ink);
  padding-left: 22px;
  position: relative;
}

.slip-pace.is-done::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--ak-btn-fill);
  border-bottom: 3px solid var(--ak-btn-fill);
  transform: rotate(-45deg);
}

.slip-pace.is-warn {
  color: var(--ak-ink);
  padding-left: 22px;
  position: relative;
}

.slip-pace.is-warn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 14px;
  background: var(--ak-accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.answers[hidden] { display: none; }

.answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 6px 10px;
  border: 2px solid var(--ak-choice-border);
  border-radius: 0;
  background: var(--ak-choice-bg);
  color: var(--ak-choice-ink);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  cursor: pointer;
}

.answer svg { width: 18px; height: 18px; flex: none; }

.answer-words { display: flex; flex-direction: column; align-items: center; }

.answer-words small {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.answer:not([aria-pressed="true"]) .answer-words small { color: var(--ak-ink-muted); }

/* Answered: the question folds away, the chosen button and the note say what happens. */
.slip.is-answered .answers { margin-top: 6px; }

/* Question hours: the next step is a dark band right above the choices. */
.slip.is-question .slip-ask {
  margin: 0;
  padding: 8px 10px;
  background: var(--ak-ink);
  color: var(--ak-bg);
  font-size: 17px;
  font-weight: 700;
  border-left: 6px solid var(--ak-bg);
}

.slip.is-question .slip-ask.is-warn {
  border-left-color: var(--ak-accent);
}

.slip.is-question .slip-ask.is-warn #slip-text { color: var(--ak-bg); }

.slip.is-question .slip-hour {
  background: var(--ak-bg);
  color: var(--ak-ink);
}

/* The crew just showed up on a door camera: a short flash on that monitor. */
.monitor.spotted > img {
  outline: 5px solid var(--ak-accent);
  outline-offset: 2px;
}

/* The control the next step names. */
.is-ask {
  outline: 4px solid var(--ak-accent);
  outline-offset: 3px;
}
.answer .tick { display: none; }

.answer[aria-pressed="true"] {
  background: var(--ak-choice-selected-bg);
  color: var(--ak-choice-selected-ink);
  border-color: var(--ak-choice-selected-border);
}

.answer[aria-pressed="true"] .tick { display: block; }
.answers.needs .answer { border-width: 3px; border-color: var(--ak-accent); }

/* Answered: the choice is stamped on the ticket, and one smaller button changes it. */
.answers.is-done { grid-template-columns: minmax(0, 1fr) auto; }

.answer-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 4px 10px;
  border: 3px double var(--ak-choice-selected-border);
  background: var(--ak-choice-selected-bg);
  color: var(--ak-choice-selected-ink);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
}

.answer-stamp b {
  padding: 0 5px;
  border: 2px solid currentColor;
  font-family: var(--ak-font-display);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-stamp .tick { width: 22px; height: 22px; flex: none; }
.answer-stamp .answer-words { align-items: flex-start; gap: 2px; }

.answer-switch {
  flex-direction: column;
  gap: 0;
  padding: 4px 12px;
  font-size: 15px;
}

.answer-switch small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ak-ink-muted);
}

/* ---------- Caption bar ---------- */

.caption {
  grid-area: caption;
  position: relative;
  z-index: 5;
  margin: 0 calc(var(--edge) * -1);
  padding: 10px max(14px, var(--edge)) max(10px, env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 5px solid var(--steel-dark);
  box-shadow: inset 0 3px 0 var(--steel-light);
  min-height: 70px;
}

.caption-line {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ak-ink);
}

.caption-line.is-warn::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
  background: var(--ak-accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.caption-other {
  margin: 3px 0 0;
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ak-ink-muted);
}

.caption-other::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-left: 3px solid var(--ak-ink-muted);
  border-bottom: 3px solid var(--ak-ink-muted);
  border-bottom-left-radius: 0;
  transform: skewX(-12deg);
}

.caption-other b { color: var(--ak-ink); font-weight: 700; }

/* The caption grows into the last page of the night. */
.caption.is-ending {
  position: fixed;
  left: var(--story-left, 0);
  width: var(--story-width, 100%);
  bottom: var(--story-bottom, 0);
  max-height: var(--story-room, 60dvh);
  min-height: var(--story-room, 0);
  margin: 0;
  overflow-y: auto;
  border-top-width: 6px;
  display: flex;
  flex-direction: column;
}

.caption.is-ending .caption-body { display: none; }

.story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  max-width: 620px;
}

.story[hidden] { display: none; }

.story-reason {
  margin: 0;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ak-btn-fill);
}

.story-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-lines li {
  padding: 5px 0 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ak-ink) 25%, transparent);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ak-ink-muted);
}

.story-lines li b { color: var(--ak-ink); }

.story-last {
  margin: 2px 0 0;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: clamp(21px, 5.6dvw, 28px);
  line-height: 1.2;
  color: var(--ak-ink);
  border-left: 6px solid var(--ak-accent);
  padding-left: 12px;
}

/* The record between nights: one stub per ending, and the next one to find. */
.story-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
}

.record-head {
  margin: 0;
  font-size: 14px;
  color: var(--ak-ink);
}

.record-stubs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stub {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 2px;
  border: 2px dashed color-mix(in srgb, var(--ak-ink) 45%, transparent);
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  color: var(--ak-ink-muted);
}

.stub.is-found {
  border: 2px solid var(--ak-ink);
  background: var(--ak-surface);
  color: var(--ak-ink);
}

.stub.is-this { border-color: var(--ak-accent); border-width: 3px; }
.stub.is-new { background: var(--ak-accent); color: var(--ak-bg); }

.record-next {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ak-ink-muted);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 2px;
}

.again,
.settings {
  flex: 1 1 140px;
  min-height: 52px;
  padding: 8px 16px;
  border-radius: 0;
  font-family: var(--ak-font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.again {
  border: 0;
  background: var(--ak-btn-fill);
  color: var(--ak-btn-ink);
}

.settings {
  border: 2px solid var(--ak-choice-border);
  background: var(--ak-choice-bg);
  color: var(--ak-choice-ink);
}

/* ---------- Dark desk ---------- */

.desk.is-dark .monitor .screen { background: var(--ak-ink); }
.desk.is-over .go,
.desk.is-over .slip { visibility: hidden; }
.desk.is-dark .lock,
.desk.is-dark .monitor { cursor: default; }

/* ---------- Coach ---------- */

.coach[hidden] { display: none; }

.coach-ring {
  position: fixed;
  z-index: 50;
  border: 4px solid var(--ak-accent);
  outline: 3px solid var(--ak-bg);
  pointer-events: none;
}

.coach-box {
  position: fixed;
  z-index: 51;
  max-width: min(330px, calc(100vw - 24px));
  padding: 12px 14px;
  background: var(--ak-ink);
  color: var(--ak-bg);
  border-left: 6px solid var(--ak-accent);
  pointer-events: none;
}

.coach-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.coach-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

.coach-box[data-side="below"] .coach-arrow { top: -24px; border-bottom-color: var(--ak-ink); }
.coach-box[data-side="above"] .coach-arrow { bottom: -24px; border-top-color: var(--ak-ink); }
.coach-box[data-side="right"] .coach-arrow { left: -30px; border-right-color: var(--ak-ink); }
.coach-box[data-side="left"] .coach-arrow { right: -24px; border-left-color: var(--ak-ink); }

/* ---------- Upright: the clock hangs in the top bar, beside the logo ---------- */

@media (orientation: portrait) {
  .desk { --bar: 52px; --clock: 44px; }
  .wall {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 12px var(--tk);
    padding-top: 6px;
  }
  .clock {
    position: absolute;
    grid-area: auto;
    top: calc(var(--bar) / -2 - var(--clock) / 2);
    left: calc(50% + 40px);
  }
  .rail { grid-column: 1; grid-row: 1; }
  .tickets { grid-column: 1; grid-row: 1 / 3; }
  .window { inset: 6px 0 0 0; }
}

/* ---------- Short upright phones ---------- */

@media (orientation: portrait) and (max-height: 760px) {
  .desk {
    --mon: min(25dvw, 11.5dvh, 150px);
    --tk: max(92px, min(28dvw, 13dvh));
    --clock: min(14dvw, 6.5dvh);
    --guard: min(24dvw, 11.5dvh);
  }

  .topbar { height: 48px; }
  .logo { height: 38px; }
  .desk { --bar: 48px; --clock: 40px; }
  .wall { padding-top: 2px; }
  .window { inset: 2px 0 0 0; }
  .wall { padding-bottom: 2px; }
  .shelf { padding: 5px 6px 6px; }
  .lock, .no-door { min-height: 68px; }
  .no-door .long { display: none; }
  .counter { padding-top: 4px; row-gap: 6px; }
  .gauge { width: min(30dvw, 15dvh, 140px); padding: 4px 4px 3px; }
  .gauge-read b { font-size: 23px; }
  .gauge-cost { font-size: 13px; white-space: nowrap; }
  .next { min-height: 52px; font-size: 19px; }
  .slip { padding: 7px 10px 5px; }
  .slip-ask { font-size: 15px; }
  .slip-sum { font-size: 14px; }
  .answer { min-height: 48px; font-size: 16px; }
  .caption { min-height: 60px; padding-top: 8px; }
  .caption-line { font-size: 16px; }
  .caption-other { font-size: 14px; }
}

/* Very short phones: the clock moves beside the rail, and plain hours keep the crew line;
   the gauge and the captions carry the power unless it is running short. */
@media (orientation: portrait) and (max-height: 680px) {
  body { overflow-y: auto; }
  .desk { height: auto; min-height: 100dvh; }
  .slip.is-plain .slip-sum { display: none; }
  .slip.is-plain .slip-ask { font-size: 15px; margin-top: 0; }
  /* Doubled selectors: these win over the upright ending rules further down. */
  .desk.desk.is-over { --mon: min(20dvw, 8.5dvh); }
  .desk.is-over .post .lock,
  .desk.is-over .post .no-door { min-height: 54px; }
  .desk.is-over .shelf { padding: 4px 6px 6px; }
  .caption.is-ending .story.story { gap: 3px; }
  .caption.is-ending .story-reason { font-size: 16px; }
  .caption.is-ending .story-lines li { font-size: 14px; padding: 1px 0; }
  .caption.is-ending .story-last { font-size: 17px; }
  .caption.is-ending .record-next { font-size: 14px; line-height: 1.2; }
  .caption.is-ending .stub { padding: 1px 2px; }
  /* Short screens: the count runs into the next-to-find line, and the stubs step aside. */
  .story-record { display: block; }
  .record-head, .record-next { display: inline; }
  .record-stubs { display: none; }
  .wall { margin-top: 6px; }
  .gauge-cost { font-size: 13px; }
  /* The hour's cost is on its ticket; the gauge keeps the forecast. */
  .gauge-cost:has(+ .gauge-last:not(:empty)) { display: none; }
}

/* ---------- Upright ending: the card fits under the board ---------- */

@media (orientation: portrait) {
  .gauge { width: min(28dvw, 12dvh, 124px); padding: 4px 4px 3px; }
  .gauge-read b { font-size: 23px; }
  .gauge-cost { font-size: 13px; white-space: nowrap; }
  .desk.is-over {
    --mon: min(22dvw, 9.5dvh, 130px);
    --guard: min(20dvw, 9dvh);
  }
  .desk.is-over .lock,
  .desk.is-over .no-door { min-height: 66px; }
  .desk.is-over .no-door .long { display: none; }
  .caption.is-ending { padding-top: 8px; }
  .caption.is-ending .story { gap: 6px; }
  .story-reason { font-size: 17px; }
  .story-lines li { font-size: 15px; line-height: 1.25; padding: 3px 0; }
  .story-last { font-size: clamp(19px, 5.2dvw, 24px); }
  .again, .settings { min-height: 48px; font-size: 18px; }
}

/* ---------- Sideways ---------- */

@media (orientation: landscape) {
  .desk {
    --mon: min(21dvh, 13dvw, 150px);
    --tk: min(26dvh, 12dvw, 150px);
    --tk-served: max(84px, calc(var(--tk) * 0.86));
    --clock: min(17dvh, 8dvw, 84px);
    --guard: min(25dvh, 14dvw, 170px);
    max-width: 1180px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top top" "scene counter" "caption caption";
    column-gap: 12px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  /* The clock hangs in the top bar, past the sound and hint buttons; the rail gets the full width. */
  .desk { --bar: 52px; }
  .wall {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 12px var(--tk);
  }

  .clock {
    position: absolute;
    --clock: 44px;
    width: 44px;
    height: 44px;
    top: calc(var(--bar) / -2 - 22px);
    left: 132px;
  }
  .rail { grid-column: 1; grid-row: 1; }
  .tickets { grid-column: 1; grid-row: 1 / 3; }
  .window { inset: 0; }

  .shelf { gap: 6px; }

  .post {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }

  .lock {
    flex-direction: column;
    width: 62px;
    min-height: 0;
    align-self: stretch;
    gap: 4px;
    padding: 6px 4px;
  }

  .lock-word { text-align: center; font-size: 16px; }
  .lock-word small { font-size: 13px; }
  .lock.is-threat .lock-word small { text-transform: none; letter-spacing: 0; }

  .no-door {
    width: 62px;
    min-height: 0;
    align-self: stretch;
    padding: 4px;
    font-size: 15px;
  }

  .counter {
    border-top: 4px solid var(--steel-dark);
  }

  .no-door .long { display: none; }

  .gauge { width: min(17dvw, 22dvh, 150px); padding: 3px 4px 2px; }
  /* The hour's cost is on its ticket; sideways the gauge keeps the forecast. */
  .gauge-cost:has(+ .gauge-last:not(:empty)) { display: none; }
  /* The labelled rows say what the midnight briefing is; sideways it skips the heading. */
  .slip:has(.brief:not([hidden])) .slip-ask { display: none; }
  .slip .brief { margin-top: 2px; font-size: 14px; }
  .counter { padding-top: 6px; row-gap: 6px; }
  .slip { padding: 4px 12px 4px; }
  .slip-ask { margin-top: 2px; }
  /* The hour is on the clock and the ticket; question slips need the width. */
  .slip:not(.is-plain) .slip-hour { display: none; }
  .answers { margin-top: 4px; }
  .slip-pace { margin-top: 4px; }

  /* Sideways text stays easy to read. */
  .cam-name { font-size: 16px; }
  .screen-tag { font-size: 14px; }
  .slip-ask { font-size: 16px; }
  .slip-pace { font-size: 16px; }
  .answer { min-height: 48px; padding: 4px 8px; }
  .answer-words small { font-size: 13px; }
  .guard-post { height: min(23dvh, 14dvw, 170px); }
  .gauge-read { font-size: 14px; line-height: 1; white-space: nowrap; }
  .gauge-read b { font-size: 23px; }
  .gauge-cost { font-size: 15px; white-space: nowrap; }
  .caption-line { font-size: 17px; }
  .caption-other { font-size: 16px; }
  .answer { font-size: 17px; }

  .caption.is-ending { padding-top: 8px; }
  .caption.is-ending .story { gap: 6px; }
  .story-reason { font-size: 16px; }
  .story-lines li { font-size: 14px; line-height: 1.25; padding: 2px 0 3px; }
  .story-last { font-size: 18px; padding-left: 10px; border-left-width: 5px; }
  .again, .settings { min-height: 48px; font-size: 17px; flex-basis: 120px; padding: 6px 8px; white-space: nowrap; }
  .story-record { row-gap: 2px; }
  .record-head { font-size: 14px; }
  .record-next { font-size: 14px; line-height: 1.2; }
  .story-record { display: block; line-height: 1.2; }
  .record-head, .record-next { display: inline; }
  .record-stubs { display: none; }

  .caption {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* Desktop: the same scene, centred, not stretched. */
@media (orientation: landscape) and (min-height: 600px) {
  body { display: grid; align-content: center; }
  .desk {
    --mon: min(17dvh, 10dvw, 150px);
    --tk: min(20dvh, 12dvw, 170px);
    --guard: min(22dvh, 14dvw, 190px);
    max-width: 1100px;
    height: auto;
    grid-template-rows: auto auto auto;
  }
  .shelf { gap: 14px; }
}

/* Very short sideways screens: a little less chrome, same text sizes for the slip. */
@media (orientation: landscape) and (max-height: 380px) {
  .desk { --bar: 48px; }
  .answers { margin-top: 2px; }
  .slip-pace { margin-top: 2px; }
  .topbar { height: 48px; }
  .logo { height: 38px; }
  .caption { padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .caption-other { font-size: 15px; margin-top: 1px; }
  .slip { padding: 4px 12px 4px; }
  .counter { padding-top: 4px; padding-bottom: 6px; row-gap: 4px; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .clock-hour { transition: transform 0.35s cubic-bezier(0.5, 1.8, 0.4, 1); }
  .gauge-needle { transition: transform 0.7s cubic-bezier(0.3, 0.9, 0.3, 1); }
  .guard { transition: transform 0.4s ease; }

  .ticket.is-arriving { animation: clip-on 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .ticket.is-swaying { animation: sway 0.7s ease-out; }

  .guard.lean { transform: translateY(-4px) scale(1.05) rotate(-3deg); }
  .guard.wince { animation: wince 0.5s ease; }
  .guard.jolt { animation: jolt 0.55s ease; }
  .guard.nod { animation: nod 0.6s ease; }
  .guard.slump { transform: translateY(6%) rotate(4deg) scale(0.97); transition-duration: 1.2s; }

  .crew { transition: transform 0.4s ease, opacity 0.4s ease; transform-origin: 50% 100%; }
  .crew.turn-away { transform: scaleX(-1) translateX(-14px) scale(0.9); }
  .crew.slip-in { animation: hop 0.5s ease 2; }

  .lock.clunk { animation: clunk 0.35s ease; }
  .lock.is-threat { animation: alert 1.2s ease-in-out infinite; }
  .gauge.boost { animation: boost 0.6s ease; }
  .is-ask { animation: alert 1.2s ease-in-out infinite; }
  .monitor.spotted { animation: spot 0.5s ease-out 3; }
  .lock.breach,
  .monitor.breach { animation: nudge 0.4s ease 2; }
  .answers.needs { animation: nudge 0.4s ease; }

  .caption-line.is-new,
  .caption-other.is-new { animation: settle-in 0.35s ease both; }

  .caption.is-ending { animation: rise 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  .story > * { animation: settle-in 0.4s ease both; }
  .story > *:nth-child(2) { animation-delay: 0.15s; }
  .story > *:nth-child(3) { animation-delay: 0.6s; }
  .story > *:nth-child(4) { animation-delay: 0.9s; }
  .story > *:nth-child(5) { animation-delay: 1.1s; }
  .stub.is-new { animation: stamp 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s both; }
  .answer-stamp { animation: stamp 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both; }

  .coach-ring { animation: pulse 1.1s ease-in-out infinite; }
}

@keyframes clip-on {
  0% { transform: translateY(-40%) rotate(-6deg); opacity: 0; }
  55% { transform: translateY(3%) rotate(3deg); opacity: 1; }
  80% { transform: rotate(-1.5deg); }
  100% { transform: none; }
}

@keyframes sway {
  0% { transform: rotate(5deg); }
  40% { transform: rotate(-3deg); }
  75% { transform: rotate(1.5deg); }
  100% { transform: none; }
}

@keyframes wince {
  0% { transform: none; }
  30% { transform: translateX(-3px) scaleY(0.95) rotate(-2deg); }
  60% { transform: translateX(2px) scaleY(0.97) rotate(1deg); }
  100% { transform: none; }
}

@keyframes jolt {
  0% { transform: none; }
  25% { transform: translateY(-9%) rotate(-3deg); }
  55% { transform: translateY(1%) rotate(2deg); }
  100% { transform: none; }
}

@keyframes nod {
  0%, 100% { transform: none; }
  40% { transform: translateY(3%) rotate(1deg); }
}

@keyframes hop {
  0%, 100% { transform: none; }
  50% { transform: translateY(-10%); }
}

@keyframes alert {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ak-accent) 55%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ak-accent) 0%, transparent); }
}

@keyframes spot {
  0% { transform: none; }
  40% { transform: scale(1.06); }
  100% { transform: none; }
}

@keyframes boost {
  0%, 100% { transform: none; }
  35% { transform: translateY(-6px); }
}

@keyframes clunk {
  0%, 100% { transform: none; }
  40% { transform: translateY(3px); }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes settle-in {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes rise {
  from { transform: translateY(40%); }
  to { transform: none; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ak-accent) 60%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ak-accent) 0%, transparent); }
}

@keyframes stamp {
  0% { transform: scale(1.25); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
