:root {
  /* 1% of the height the app can actually use — the viewport minus the
     Dynamic Island and home-indicator insets. Sizing off raw vh over-
     estimates the space by ~137px on a notched phone. */
  --vh: calc(
    (100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 100
  );

  --bg: #0f1b12;
  --bg-2: #14251a;
  --panel: #1a2f22;
  --panel-2: #223b2c;
  --text: #eaf3ec;
  --muted: #8fae9b;
  /* Valence colors: feedback + range chart ONLY — never on the choice
     buttons, so the UI can't nudge raise-vs-fold before you commit. */
  --raise: #2ecc71;
  --fold: #e0745c;
  --accent: #f4c542;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* The hidden attribute must win over component display rules below. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 0%, var(--bg-2), var(--bg));
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Clear the home indicator and lift the control rows well off the edge. */
  padding: env(safe-area-inset-top) 16px
    calc(env(safe-area-inset-bottom) + clamp(20px, calc(var(--vh) * 5), 44px));
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, calc(var(--vh) * 1.7), 16px) 4px clamp(6px, calc(var(--vh) * 1.3), 12px);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--accent);
}

.stats {
  display: flex;
  gap: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- Goal-gradient streak bar ----
   Completed milestones stay as full colored layers; the next tier's color
   fills on top, so hitting a stage never looks like a reset. On a miss,
   the layers cascade away to the left. */
.streak-bar {
  position: relative;
  height: 4px;
  margin: 2px 4px 0;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.sb-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
}

.sb-layer.active {
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.streak-bar.collapse .sb-layer {
  animation: sweepOut 0.4s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes sweepOut {
  to { transform: translateX(-102%); }
}

.streak-bar.flash {
  animation: barFlash 0.5s ease;
}

@keyframes barFlash {
  50% { box-shadow: 0 0 14px 2px var(--accent); filter: brightness(1.3); }
}

/* ---- Milestone toast ---- */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 64px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), #d9a92e);
  color: #2a2200;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  white-space: nowrap;
}

.toast.show {
  animation: toastPop 1.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes toastPop {
  0%   { opacity: 0; transform: translate(-50%, -14px) scale(0.8); }
  12%  { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  22%  { transform: translate(-50%, 0) scale(1); }
  80%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
}

/* ---- Board ---- */
.board {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, calc(var(--vh) * 1.6), 15px);
  padding: 2px 0 4px;
}

.prompt {
  text-align: center;
}

/* Which spot you're in — loud and color-coded, since spots can be mixed.
   Spot colors are identity, never verdict: nothing green or red here. */
.spot-tag {
  width: fit-content;
  height: clamp(22px, calc(var(--vh) * 3.1), 26px);
  display: flex;
  align-items: center;
  margin: 0 auto clamp(4px, calc(var(--vh) * 0.8), 7px);
  padding: 0 16px;
  border-radius: 999px;
  font-size: clamp(10px, calc(var(--vh) * 1.4), 12px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--spot-c, var(--accent));
  border: 1px solid var(--spot-bd, rgba(244, 197, 66, 0.4));
  background: var(--spot-bg, rgba(244, 197, 66, 0.08));
}

/* Opponent's action. Space is always reserved so mixed spots don't make the
   board jump between hands; RFI just leaves it invisible. */
.opener {
  display: flex;
  width: fit-content;
  height: clamp(22px, calc(var(--vh) * 3.1), 26px);
  align-items: center;
  gap: 7px;
  margin: 0 auto clamp(4px, calc(var(--vh) * 0.8), 7px);
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--spot-bd, #3a4f5e);
  background: #17242c;
  font-size: clamp(11px, calc(var(--vh) * 1.55), 13px);
  color: var(--muted);
  animation: rise 0.3s ease both;
}

.opener.ghost {
  visibility: hidden;
  animation: none;
}

.opener-pos {
  font-size: clamp(12px, calc(var(--vh) * 1.8), 15px);
  font-weight: 800;
  color: var(--spot-c, #86bcd8);
}

.position-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-2);
  height: clamp(38px, calc(var(--vh) * 5.6), 48px);
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.position-code {
  font-size: clamp(21px, calc(var(--vh) * 3), 26px);
  font-weight: 800;
  color: var(--accent);
}

.position-name {
  font-size: 14px;
  color: var(--muted);
}

.format {
  margin: clamp(4px, calc(var(--vh) * 0.95), 8px) 0 0;
  font-size: clamp(9px, calc(var(--vh) * 1.3), 11px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  opacity: 0.85;
}

.hint {
  height: clamp(15px, calc(var(--vh) * 2.1), 18px);
  margin: 5px 0 0;
  font-size: clamp(12px, calc(var(--vh) * 1.8), 14px);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

/* ---- Cards ---- */
.cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  perspective: 800px;
  perspective-origin: center 40%;
}

.card {
  position: relative;
  width: clamp(77px, calc(var(--vh) * 13), 120px);
  height: clamp(108px, calc(var(--vh) * 18.2), 168px);
  background:
    linear-gradient(155deg, #fcfaf5 0%, #f4f0e6 70%, #ece7d9 100%);
  border: 1px solid rgba(20, 30, 22, 0.25);
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform-origin: center 70%;
  backface-visibility: hidden;
  will-change: transform;
  animation: deal 0.66s cubic-bezier(0.16, 0.7, 0.25, 1) both;
}

/* Each card flies in from its own side and spins, but lands straight. */
.cards .card:nth-child(1) { --fromX: -120px; --spin: -70deg; }
.cards .card:nth-child(2) {
  --fromX: 120px; --spin: 70deg;
  animation-delay: 0.14s;
}

/* Four-color deck */
.card.suit-spade { color: #26302a; }
.card.suit-heart { color: #cf3345; }
.card.suit-diamond { color: #2062c4; }
.card.suit-club { color: #1f7a46; }

.card .corner {
  position: absolute;
  top: 8px;
  left: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card .corner b {
  font-size: clamp(20px, calc(var(--vh) * 3.1), 29px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.card .corner i {
  font-style: normal;
  font-size: clamp(13px, calc(var(--vh) * 2.1), 19px);
  margin-top: 2px;
}

.card .corner-b {
  top: auto;
  left: auto;
  bottom: 8px;
  right: 9px;
  transform: rotate(180deg);
}

.card .pip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(45px, calc(var(--vh) * 7.5), 70px);
  line-height: 1;
}

@keyframes deal {
  0% {
    transform:
      translate(var(--fromX, 0), -180px)
      rotateZ(var(--spin, 0)) rotateY(-65deg)
      scale(0.5);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  70% {
    transform:
      translate(0, 12px)
      rotateZ(calc(var(--spin, 0) * 0.06)) rotateY(0deg)
      scale(1.08);
    opacity: 1;
  }
  85% {
    transform: translateY(-3px) rotateZ(0) scale(0.99);
  }
  /* Lands straight and centered. */
  100% {
    transform: none;
    opacity: 1;
  }
}

/* ---- Easter eggs: best and worst hands in poker ---- */
/* AA answered correctly: the aces lean in and clink like a toast,
   with a brief gold flash. */
.cards.egg-aa .card:nth-child(1) { animation: clinkL 0.7s ease 0.05s; }
.cards.egg-aa .card:nth-child(2) { animation: clinkR 0.7s ease 0.05s; }

@keyframes clinkL {
  35% {
    transform: translate(10px, -8px) rotate(8deg);
    box-shadow: var(--shadow), 0 0 26px 4px rgba(244, 197, 66, 0.55);
  }
}

@keyframes clinkR {
  35% {
    transform: translate(-10px, -8px) rotate(-8deg);
    box-shadow: var(--shadow), 0 0 26px 4px rgba(244, 197, 66, 0.55);
  }
}

/* 72o folded correctly: the worst hand in poker wilts — a sad little
   droop outward, briefly dimmed. */
.cards.egg-72 .card:nth-child(1) { animation: droopL 0.9s ease 0.05s; }
.cards.egg-72 .card:nth-child(2) { animation: droopR 0.9s ease 0.05s; }

@keyframes droopL {
  40% { transform: translateY(12px) rotate(-9deg); filter: saturate(0.4) brightness(0.75); }
  70% { transform: translateY(12px) rotate(-9deg); filter: saturate(0.4) brightness(0.75); }
}

@keyframes droopR {
  40% { transform: translateY(12px) rotate(9deg); filter: saturate(0.4) brightness(0.75); }
  70% { transform: translateY(12px) rotate(9deg); filter: saturate(0.4) brightness(0.75); }
}

/* One block holding the EV number and the verdict, so they read as a single
   result rather than two floating rows with a gap between them. */
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
}

/* ---- EV readout ----
   Space is always reserved (fixed height + visibility) so showing the
   number never reflows the centered board — the screen must not move. */
.ev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  height: clamp(34px, calc(var(--vh) * 4.7), 42px);
  min-height: 0;
  justify-content: center;
  overflow: hidden;
  visibility: hidden;
}

.ev.show {
  visibility: visible;
  animation: evPop 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.4) both;
}

.ev-main {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ev-num {
  font-size: clamp(21px, calc(var(--vh) * 3.2), 27px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.ev-unit {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
}

.ev-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}

.ev.raise { color: var(--raise); }
.ev.fold { color: var(--fold); }
.ev.raise .ev-num { text-shadow: 0 0 16px rgba(46, 204, 113, 0.3); }
.ev.fold .ev-num { text-shadow: 0 0 16px rgba(224, 116, 92, 0.3); }

@keyframes evPop {
  from { opacity: 0; transform: translateY(10px) scale(0.7); }
  to   { opacity: 1; transform: none; }
}

/* ---- Feedback ----
   The verdict is the visual headline — bigger than the EV number. */
.feedback {
  height: clamp(44px, calc(var(--vh) * 6), 54px);
  min-height: 0;
  overflow: hidden;
  text-align: center;
  font-size: clamp(21px, calc(var(--vh) * 3.4), 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.feedback.correct { color: var(--raise); }
.feedback.wrong { color: var(--fold); }

.feedback.correct,
.feedback.wrong {
  animation: rise 0.28s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.feedback small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 4px;
}

/* ---- Actions ---- */
.actions {
  display: flex;
  gap: 14px;
  width: 100%;
}

.btn {
  flex: 1;
  border: none;
  border-radius: var(--radius);
  /* Fixed height (not font-derived padding) so the 2-button and 3-button
     rows are identical and the centered board never shifts between spots. */
  height: clamp(44px, calc(var(--vh) * 6.4), 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: clamp(15px, calc(var(--vh) * 2.1), 18px);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, filter 0.15s ease;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; }

/* Fold and Raise are deliberately identical — position and label only.
   Coloring them (red fold / green raise) trains an aversion to folding,
   and folding is the correct play for most hands. */
.btn-fold,
.btn-call,
.btn-raise {
  background: linear-gradient(180deg, #2e4a39, #24392c);
  border: 1px solid #3c5c47;
  color: var(--text);
}

/* Three actions need to fit on a phone — label only, so the row keeps
   exactly the same height as the two-button version. */
.actions:has(.btn-call:not([hidden])) .btn {
  font-size: clamp(14px, calc(var(--vh) * 1.9), 16px);
}

/* After answering, a gold ring marks the GTO action — guidance, not
   verdict, so it reads the same whether you were right or wrong. */
.btn.was-correct {
  box-shadow: var(--shadow), 0 0 0 2px var(--accent);
  animation: ringPulse 0.5s ease;
}

.btn:disabled.was-correct {
  opacity: 1;
}

@keyframes ringPulse {
  0%   { box-shadow: var(--shadow), 0 0 0 0 rgba(244, 197, 66, 0.7); }
  60%  { box-shadow: var(--shadow), 0 0 0 8px rgba(244, 197, 66, 0); }
  100% { box-shadow: var(--shadow), 0 0 0 2px var(--accent); }
}

.btn-next {
  flex: none;
  width: 100%;
  height: clamp(40px, calc(var(--vh) * 5.4), 50px);
  background: linear-gradient(180deg, var(--accent), #d9a92e);
  color: #2a2200;
}

/* Space is always reserved; it only becomes visible (ghost off), so the
   board never reflows when it appears. */
.btn-next.ghost {
  visibility: hidden;
  pointer-events: none;
}

.btn-next:not(.ghost) {
  animation: rise 0.24s ease both;
}

/* Streak bump when it ticks up */
.stat-num.bump {
  animation: bump 0.35s ease;
}

@keyframes bump {
  40% { transform: scale(1.3); color: var(--accent); }
}

/* ---- Bottom bar ---- */
.bottombar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 6px 0;
}

.seg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Segmented control for table size */
.seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 3px;
}

/* Four spots have to share one row on a phone. */
.seg-modes {
  display: flex;
}

.seg-modes .seg-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
  white-space: nowrap;
}

.seg-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease, background 0.15s ease;
}

.seg-btn.is-active {
  background: var(--accent);
  color: #2a2200;
}

/* Player-count entry box (2-8) */
.players {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--panel-2);
  border-radius: 999px;
  padding: 3px 4px;
}

.pl-step {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.pl-step:active { background: #2d4b39; }

.pl-input {
  width: 34px;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  padding: 0;
  -moz-appearance: textfield;
}

.pl-input::-webkit-outer-spin-button,
.pl-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pl-input:focus { outline: none; color: #fff; }

.pl-suffix {
  font-size: 12px;
  color: var(--muted);
  padding-right: 4px;
}

.foot-links {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cells the read moves off the GTO baseline get hatched, so the deviation
   is visible at a glance rather than needing a side-by-side. */
.cell.changed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.42) 0 2px,
    rgba(255, 255, 255, 0.22) 2px 4px
  );
  pointer-events: none;
}

.head-btns {
  display: flex;
  gap: 6px;
}

.tips {
  background: #16281d;
  border: 1px solid var(--panel-2);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 11px;
}

.tips-h {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
}

.tips-b {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
}

.tips-b:last-child { margin-bottom: 0; }

/* ---- Overlay / range chart ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  backdrop-filter: blur(3px);
  /* The page itself no longer scrolls, so the chart carries its own. */
  overflow-y: auto;
}

.overlay-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.overlay-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.close-btn {
  background: var(--panel-2);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

/* Chart explorer: pick any spot at any table size. */
.browse {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
}

.browse-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.browse-lab {
  flex: none;
  width: 48px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-align: right;
}

.chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  border: 1px solid var(--panel-2);
  background: #16281d;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}

.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #2a2200;
}

.chart-stats {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  color: #06210f;
}

.cell.raise { background: var(--raise); }
.cell.fold { background: var(--panel-2); color: var(--muted); }
.cell.tbet { background: var(--accent); }
.cell.call { background: var(--raise); }
.cell.here { outline: 2px solid #eaf3ec; outline-offset: -2px; }

.legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 4px;
}

.swatch-raise { background: var(--raise); }
.swatch-fold { background: var(--panel-2); }
.swatch-tbet { background: var(--accent); }
.swatch-call { background: var(--raise); }
.swatch-changed {
  background: repeating-linear-gradient(45deg, #6b7d70 0 2px, #cfe0d6 2px 4px);
}

.close-btn.is-on { background: var(--accent); color: #2a2200; }

/* Tall phones have room to spare — spend it on the cards rather than
   leaving a wide band of empty felt. */
@media (min-height: 880px) {
  .card { width: clamp(77px, calc(var(--vh) * 14.2), 136px); height: clamp(108px, calc(var(--vh) * 19.9), 190px); }
  .card .corner b { font-size: clamp(20px, calc(var(--vh) * 3.4), 32px); }
  .card .corner i { font-size: clamp(13px, calc(var(--vh) * 2.3), 21px); }
  .card .pip { font-size: clamp(45px, calc(var(--vh) * 8.2), 78px); }
}

/* Motion is an accent, not a requirement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
