/* Clockcross — one lit pool on a dark night-office terminal. Square corners everywhere. */

:root {
  --edge: 12px;
  --corner: 48px;
  --gap: clamp(6px, 1dvh, 12px);
  --card-px: clamp(14px, min(4.1vw, 2dvh), 18px);
  --q-px: clamp(24px, min(7vw, 3.6dvh), 38px);
  --read-px: clamp(16px, min(4.6vw, 2.3dvh), 19px);
  --teach-px: clamp(18px, min(4.8vw, 2.4dvh), 20px);
  --clock: clamp(56px, min(22vw, 8.6dvh), 110px);
  --mark: clamp(28px, 3.9dvh, 40px);
  --pool: color-mix(in srgb, var(--ak-accent) 30%, transparent);
  --amber-line: color-mix(in srgb, var(--ak-accent) 45%, transparent);
  --slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--ak-bg);
  background-image:
    var(--ak-bg-art),
    var(--ak-backdrop-layer, linear-gradient(color-mix(in srgb, var(--ak-bg) 78%, transparent), color-mix(in srgb, var(--ak-bg) 78%, transparent)), url("./art/night-office.jpg"));
  background-size: var(--ak-bg-size), cover, cover;
  background-position: center, center, center;
  color: var(--ak-ink);
  font-family: var(--ak-font-body);
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.boot-error {
  margin: 30dvh auto 0;
  max-width: 28ch;
  padding: 16px;
  background: var(--ak-bg);
  font-size: 18px;
  text-align: center;
}

/* ---------- mute: top left, square ---------- */

.mute {
  position: fixed;
  top: max(var(--edge), env(safe-area-inset-top));
  left: max(var(--edge), env(safe-area-inset-left));
  z-index: 30;
  width: var(--corner);
  height: var(--corner);
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ak-choice-border);
  border-radius: 0;
  background: var(--ak-bg);
  color: var(--ak-ink-muted);
  cursor: pointer;
  touch-action: manipulation;
}
.mute svg { width: 24px; height: 24px; }
.mute .mute-off, .mute.is-muted .mute-on { display: none; }
.mute.is-muted .mute-off { display: block; }
.mute:focus-visible { outline: 3px solid var(--ak-focus); outline-offset: 3px; }

/* ---------- the play screen ---------- */

.app {
  position: relative;
  height: 100dvh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(var(--corner), auto) auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo   logo"
    "clock  ledger"
    "prompt prompt"
    "stage  stage"
    "status status";
  column-gap: 14px;
  row-gap: var(--gap);
  max-width: 560px;
  margin: 0 auto;
  padding:
    max(var(--edge), env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  touch-action: manipulation;
}

/* The dark room: a vignette round the edges, lifted when the house lights come up. */
.app::before,
.app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.app::before {
  background: radial-gradient(ellipse 70% 60% at 50% 60%, transparent 35%, color-mix(in srgb, var(--ak-bg) 70%, transparent) 100%);
}
.app::after {
  background: color-mix(in srgb, var(--ak-accent) 20%, transparent);
  opacity: 0;
}
.app.is-lights::before { opacity: 0; }
.app.is-lights::after { opacity: 1; }
.app > * { position: relative; z-index: 1; }

/* Chrome sits dim; only the stage is lit. */
.dim { opacity: 0.62; }
.ledger.dim { opacity: 0.86; }
.app.is-lights .dim { opacity: 1; }

.logo-bar {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--corner) + 8px);
  min-width: 0;
}
.app[data-view="side"] .logo-bar { opacity: 1; }
.app[data-view="side"] .logo { height: clamp(40px, 7.5dvh, 72px); }
.logo {
  display: block;
  height: clamp(26px, 4.6dvh, 40px);
  max-width: 100%;
  object-fit: contain;
}

/* ---------- the square terminal clock ---------- */

.clock {
  grid-area: clock;
  width: var(--clock);
  display: grid;
  justify-items: center;
  align-content: start;
}
.clock-face { width: var(--clock); height: var(--clock); display: block; }
.clock-frame { fill: var(--ak-bg); stroke: var(--ak-accent); stroke-width: 5; }
.clock-ticks rect { fill: var(--ak-ink-muted); }
.clock-pin { fill: var(--ak-accent); }
.hand rect { fill: var(--ak-accent); }
.hand { transform-box: view-box; transform-origin: 50px 50px; }
.hand-hour { transform: rotate(var(--hour, 59.5deg)); }
.hand-minute { transform: rotate(var(--minute, 354deg)); }
.clock-read {
  margin-top: 2px;
  font-family: var(--ak-font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--ak-ink-muted);
  letter-spacing: 0.08em;
  display: none;
}
.is-lights .clock-read { color: var(--ak-ink); }

/* ---------- ledger: sides and the case file strip ---------- */

.ledger {
  grid-area: ledger;
  align-self: center;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ledger-sides { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ledger-empty {
  margin: 0;
  font-size: 15px;
  color: var(--ak-ink-muted);
}
.side-tag { display: flex; align-items: center; gap: 8px; min-width: 0; }
.token-mini { width: 44px; height: 44px; flex: none; }
.side-tag-words { display: grid; line-height: 1.1; }
.side-tag-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ak-ink-muted);
}
.side-tag-name {
  font-family: var(--ak-font-display);
  font-size: 24px;
  color: var(--ak-ink);
}
.casefile-strip { display: flex; align-items: center; gap: 10px; }
.strip-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ak-ink-muted);
}
.strip-slots { display: flex; gap: 6px; }
.slot { width: 16px; height: 16px; display: block; }

/* ---------- prompt: the decision, with a block cursor ---------- */

.prompt { grid-area: prompt; min-width: 0; display: grid; gap: 8px; align-content: start; }
.prompt-head, .readout { position: relative; z-index: 1; min-width: 0; }
.app.is-verdict .prompt-q { display: none; }
.prompt-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ak-ink-muted);
}
.prompt-q {
  margin: 2px 0 0;
  font-family: var(--ak-font-display);
  font-weight: var(--ak-title-weight);
  font-size: var(--q-px);
  line-height: 1.02;
  color: var(--ak-ink);
}
.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.82em;
  margin-left: 0.18em;
  vertical-align: -0.06em;
  background: var(--ak-accent);
}

/* ---------- the stage and its light pool ---------- */

.stage {
  grid-area: stage;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--amber-line);
  border-bottom: 1px solid var(--amber-line);
}
.stage.is-scroll { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.app.is-verdict .readout-title { display: inline; margin-right: 0.4em; font-size: 26px; }
.app.is-verdict .readout-body { display: inline; }
.pool-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pool {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--pool), color-mix(in srgb, var(--ak-accent) 10%, transparent) 62%, transparent);
}
.stage-body {
  position: relative;
  height: 100%;
  padding: 4px 0;
}
.stage.is-scroll .stage-body { height: auto; min-height: 100%; }

/* ---------- picking a side: the round token and the square token ---------- */

.sides {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}
.side {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  height: 100%;
  min-height: 48px;
  padding: 12px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.side-face { display: block; }
.token-big {
  display: block;
  width: min(36vw, 24dvh, 200px);
  height: min(36vw, 24dvh, 200px);
  filter: brightness(0.86);
}
.side.is-lit .token-big { filter: brightness(1.06) drop-shadow(0 0 14px color-mix(in srgb, var(--ak-glow) 55%, transparent)); }
.side-name {
  font-family: var(--ak-font-display);
  font-size: clamp(36px, min(11vw, 6dvh), 60px);
  line-height: 0.9;
  color: var(--ak-ink);
}
.side-sub { font-size: 15px; color: var(--ak-ink-muted); }
.side.is-chosen .token-big { filter: brightness(1.08) drop-shadow(0 0 14px color-mix(in srgb, var(--ak-glow) 60%, transparent)); }
.side.is-chosen .side-name { text-decoration: underline 3px var(--ak-accent); text-underline-offset: 6px; }
.side:focus-visible { outline: 3px solid var(--ak-focus); outline-offset: -3px; }

/* ---------- argument cards: the painted punch card, stretched by its border ---------- */

.cards {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.cards > .card { flex: 1 1 auto; }
.card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 0 8px 0 6px;
  border-style: solid;
  border-width: 21px 7px 6px 15px;
  border-image: url("./art/argument-card.png") 46 14 14 34 fill / 21px 7px 6px 15px round;
  border-radius: 0;
  background: transparent;
  color: var(--ak-btn-ink);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  filter: brightness(0.86);
}
.card-text {
  align-self: center;
  font-size: var(--card-px);
  font-weight: 500;
  line-height: 1.2;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--mark);
  visibility: hidden;
}
.card.is-revealed .card-foot { visibility: visible; }
.card:not(.is-revealed) .card-foot { min-height: 0; height: 0; }
.card-verdict {
  font-family: var(--ak-font-display);
  font-size: clamp(20px, 3dvh, 26px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-pick {
  margin-left: auto;
  padding: 3px 8px;
  background: var(--ak-bg);
  color: var(--ak-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark-holds { width: var(--mark); height: var(--mark); flex: none; display: block; }
.mark-stamp { height: var(--mark); width: auto; aspect-ratio: 384 / 236; flex: none; display: block; }

.card.is-lit { filter: brightness(1.02) drop-shadow(0 0 10px color-mix(in srgb, var(--ak-glow) 45%, transparent)); }
.card.is-picked, .card.is-shown { filter: brightness(1.05) drop-shadow(0 0 12px color-mix(in srgb, var(--ak-glow) 50%, transparent)); }
.card.is-faded { filter: brightness(0.66); }
.card.is-flawed.is-picked { filter: brightness(0.9); }
.card[disabled], .card[aria-disabled="true"] { cursor: default; }
.card:focus-visible { outline: 3px solid var(--ak-focus); outline-offset: 2px; }

/* ---------- status: the readout and its buttons ---------- */

.status {
  grid-area: status;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.readout {
  padding: 8px 10px;
  background: var(--ak-bg);
  border-left: 4px solid var(--ak-choice-border);
}
.readout:empty { display: none; }
.readout.is-holds { border-left-color: var(--ak-accent); }
.readout.is-flawed { border-left-color: var(--ak-btn-fill); }
.readout-title {
  margin: 0 0 2px;
  font-family: var(--ak-font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--ak-accent);
}
.readout-body {
  margin: 0;
  font-size: var(--read-px);
  line-height: 1.32;
  color: var(--ak-ink);
}
/* The verdict note: an amber slip taped up and written on in pencil-dark ink. */
.readout.is-note {
  margin: 6px 2px 4px;
  padding: 12px 14px 10px;
  border-left: 0;
  background: var(--ak-choice-selected-bg);
  color: var(--ak-choice-selected-ink);
  transform: rotate(-0.8deg);
}
.app[data-view="ended"] .prompt-q { font-size: clamp(22px, min(6.4vw, 3.2dvh), 32px); }
.readout.is-note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 64px;
  height: 14px;
  margin-left: -32px;
  background: var(--ak-ink-muted);
}
.readout.is-note .readout-title,
.readout.is-note .readout-body { color: var(--ak-choice-selected-ink); }
.readout.is-note .readout-title {
  padding-bottom: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 C 14 2, 22 7, 36 4 S 60 2, 74 5 S 100 7, 119 3' fill='none' stroke='%23140E08' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 6px no-repeat;
}
.readout.is-note .readout-body { font-weight: 500; line-height: 1.26; }
@media (orientation: portrait) {
  .app[data-view="example"] .prompt { gap: 4px; }
  .app[data-view="example"] .readout { padding: 6px 10px; }
  .readout.is-note { margin: 6px 2px 0; padding: 9px 12px 7px; }
  .app.is-verdict .readout.is-note .readout-title { font-size: 24px; }
}
.readout.is-teach { border-left-color: var(--ak-accent); }
.readout.is-teach .readout-body { font-size: var(--teach-px); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions:empty { display: none; }
.btn {
  flex: 1 1 auto;
  min-height: 50px;
  min-width: 48px;
  padding: 0 18px;
  border-radius: 0;
  font-family: var(--ak-font-display);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-main {
  border: 2px solid var(--ak-btn-fill);
  background: var(--ak-btn-fill);
  color: var(--ak-btn-ink);
}
.btn-main:active { background: var(--ak-btn-active); }
.btn-big { min-height: 50px; font-size: 30px; }
.btn-quiet {
  border: 2px solid var(--ak-choice-border);
  background: var(--ak-choice-bg);
  color: var(--ak-choice-ink);
}
.btn-quiet:active { background: var(--ak-surface); }
.btn[disabled] { cursor: default; color: var(--ak-ink-muted); }
.btn:focus-visible { outline: 3px solid var(--ak-focus); outline-offset: 3px; }
@media (hover: hover) {
  .btn-main:hover { background: var(--ak-btn-hover); }
}

/* ---------- closing and the ending ---------- */

.closing {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
.closing-big {
  margin: 0;
  font-family: var(--ak-font-display);
  font-size: clamp(44px, min(13vw, 8dvh), 72px);
  line-height: 1;
}
.closing-reason {
  margin: 0;
  padding: 6px 10px;
  background: var(--ak-bg);
  font-size: var(--read-px);
  color: var(--ak-ink);
}

.ending { display: grid; gap: 14px; padding-bottom: 8px; }
.ending-result {
  padding: 14px 14px 16px;
  background: var(--ak-bg);
  border-top: 3px solid var(--ak-accent);
}
.ending-title {
  margin: 0;
  font-family: var(--ak-font-display);
  font-weight: 400;
  font-size: clamp(34px, min(10vw, 6dvh), 52px);
  line-height: 1;
  color: var(--ak-accent);
}
.ending-says {
  margin: 8px 0 12px;
  font-size: clamp(17px, min(4.8vw, 2.5dvh), 21px);
  line-height: 1.35;
}
.ending-actions .btn { flex: 1 1 0; }
.ending-actions .btn-wide { flex: 1 1 100%; order: -1; }

.picks-label {
  margin: 14px 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ak-ink-muted);
}
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pick-line { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pick-line .slot { flex: none; }
.pick-theme { min-width: 7.5em; color: var(--ak-ink-muted); }
.pick-verdict { font-family: var(--ak-font-display); font-size: 22px; line-height: 1; color: var(--ak-ink); }
.pick-line.is-holds .pick-verdict { color: var(--ak-accent); }

.casefile { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cf-round { display: grid; gap: 6px; }
.cf-theme {
  margin: 0;
  padding: 2px 8px;
  justify-self: start;
  background: var(--ak-bg);
  font-family: var(--ak-font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ak-ink-muted);
}
.cf-card { display: grid; gap: 4px; padding: 8px 10px; }
.cf-card.is-holds {
  border-style: solid;
  border-width: 20px 8px 8px 14px;
  border-image: url("./art/argument-card.png") 46 14 14 34 fill / 20px 8px 8px 14px round;
  padding: 2px 6px 4px 4px;
  color: var(--ak-btn-ink);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ak-glow) 40%, transparent));
}
.cf-card.is-flawed {
  background: var(--ak-surface);
  border-left: 4px solid var(--ak-choice-border);
  color: var(--ak-ink);
}
.cf-mark { display: flex; align-items: center; gap: 8px; }
.cf-mark .mark-holds { width: 44px; height: 44px; }
.cf-mark .mark-stamp { height: 44px; }
.cf-verdict {
  font-family: var(--ak-font-display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}
.cf-card.is-flawed .cf-verdict { color: var(--ak-ink); }
.cf-text { margin: 0; font-size: 16px; line-height: 1.32; }
.cf-card.is-flawed .cf-text { color: var(--ak-ink-muted); }

/* Short upright phones: the chrome gives up a little height so the cards keep theirs. */
@media (orientation: portrait) and (max-height: 700px) {
  :root { --card-px: clamp(13px, min(4vw, 2dvh), 18px); --q-px: clamp(22px, 3.5dvh, 30px); }
  .ledger { gap: 4px; }
  .strip-label { display: none; }
  .app[data-view="example"] .prompt-kicker { display: none; }
  .token-mini { width: 40px; height: 40px; }
}

/* ---------- sideways: board on the left, controls and status on the right ---------- */

@media (orientation: landscape) {
  :root {
    --card-px: clamp(13px, min(1.7vw, 3.5dvh), 18px);
    --q-px: clamp(22px, min(2.7vw, 6dvh), 38px);
    --read-px: clamp(15px, min(1.8vw, 3.9dvh), 18px);
    --teach-px: clamp(18px, min(2vw, 4.4dvh), 20px);
    --clock: clamp(56px, min(9vw, 18dvh), 120px);
    --mark: clamp(28px, 7.4dvh, 44px);
  }
  .app {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr) var(--clock) clamp(150px, 24vw, 320px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "prompt logo    logo"
      "stage  clock   ledger"
      "stage  readout readout"
      "stage  status  status";
    column-gap: 16px;
  }
  .prompt { display: contents; }
  .prompt-head { grid-area: prompt; padding-left: calc(var(--corner) + 10px); min-height: var(--corner); }
  .readout { grid-area: readout; align-self: start; max-height: 100%; overflow-y: auto; }
  .app.is-verdict .prompt-q { display: block; }
  .app.is-verdict .readout-title { display: inline; margin-right: 0.4em; font-size: 26px; }
  .app.is-verdict .readout-body { display: inline; }
  .readout.is-note { max-height: none; overflow: visible; transform: rotate(-0.6deg); }
  .ending-says { font-size: clamp(15px, 4dvh, 18px); margin: 6px 0 4px; }
  .picks-label { margin-top: 8px; }
  .picks { gap: 2px; }
  .clock-read { display: block; }
  .ledger-sides { flex-direction: column; gap: 6px; }
  .casefile-strip { flex-wrap: wrap; gap: 4px 10px; }
  .card-verdict { font-size: clamp(17px, 4.6dvh, 24px); }
  .logo-bar { justify-content: flex-start; padding: 0 calc(var(--corner) + 8px) 0 0; min-height: var(--corner); }
  .clock { align-self: start; }
  .ledger { align-self: start; }
  .stage { border-top: 0; border-bottom: 0; border-left: 1px solid var(--amber-line); border-right: 1px solid var(--amber-line); }
  .stage-body { padding: var(--gap) 12px; }
  .cards { flex-direction: row; }
  .cards > .card { flex: 1 1 0; min-width: 0; }
  .card { grid-template-rows: 1fr auto; }
  .card-text { align-self: start; padding-top: 4px; }
  .card-foot { flex-wrap: wrap; row-gap: 4px; }
  .card-pick { margin-left: 0; }
  .token-big { width: min(20vw, 44dvh, 220px); height: min(20vw, 44dvh, 220px); }
  .side-name { font-size: clamp(32px, min(5vw, 10dvh), 60px); }
  .status { align-self: end; }
}

/* Short sideways phones: the side column packs tighter so the verdict fits without scrolling. */
@media (orientation: landscape) and (max-height: 380px) {
  .clock-read { display: none; }
  .token-mini { width: 36px; height: 36px; }
  .ledger, .ledger-sides { gap: 4px; }
  .side-tag-name { font-size: 22px; }
  .app.is-verdict .readout-title { display: inline; margin-right: 0.4em; font-size: 24px; }
  .app.is-verdict .readout-body { display: inline; }
  .app { grid-template-columns: minmax(0, 1fr) var(--clock) clamp(150px, 27vw, 320px); }
  .btn { min-height: 48px; }
}

/* ---------- motion: only light ---------- */

@media (prefers-reduced-motion: no-preference) {
  .pool {
    transition: left var(--slow) ease-in-out, top var(--slow) ease-in-out, width var(--slow) ease-in-out, height var(--slow) ease-in-out;
  }
  .card, .token-big { transition: filter var(--slow) ease; }
  .dim, .app::before, .app::after { transition: opacity 1800ms ease; }
  .hand { transition: transform 260ms cubic-bezier(0.3, 1.6, 0.5, 1) 900ms; }
  .cursor { animation: blink 1.1s steps(1) infinite; }
  .app[data-view="side"] .token-big { animation: breathe 3.2s ease-in-out infinite; }
  .app[data-view="side"] .side.is-lit .token-big { animation: none; }
  .card.is-flawed .mark-stamp, .cf-card.is-flawed .mark-stamp { animation: flicker 1.4s linear 1; }
  .readout { animation: settle 700ms ease 1; }
  .ending-result { animation: settle 1400ms ease 1; }
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes breathe {
  0%, 100% { filter: brightness(0.86); }
  50% { filter: brightness(1.04) drop-shadow(0 0 10px color-mix(in srgb, var(--ak-glow) 40%, transparent)); }
}
@keyframes flicker {
  0% { opacity: 0; }
  12% { opacity: 0.9; }
  20% { opacity: 0.3; }
  34% { opacity: 1; }
  42% { opacity: 0.55; }
  60%, 100% { opacity: 1; }
}
@keyframes settle {
  from { opacity: 0.25; }
  to { opacity: 1; }
}
