/* The app. Tokens and the card come from styles.css (DESIGN.md). */

body.app { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.screen { max-width: 980px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.screen h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); }
.screen h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 44px 0 16px; }
.loading { color: var(--sage); padding: 48px 0; font-family: var(--mono); }
.fine a { color: var(--signal); }

/* ---------- header hud ---------- */
.app-bar .mark span { font-size: 1.15rem; }
@media (max-width: 420px) { .app-bar .mark span { display: none; } }
.hud-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 4px;
  background: var(--felt-raised); text-decoration: none; font-family: var(--mono); font-size: .9rem;
}
.hud-week { background: var(--signal); color: var(--ink); padding: 2px 7px; border-radius: 3px; font-weight: 700; }

/* ---------- in play strip ---------- */
.inplay {
  position: sticky; top: 64px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: var(--card); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
.inplay .eyebrow { color: var(--tally); }
.inplay-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--felt-deep); border-top: 1px solid rgba(233, 236, 227, .14); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs a {
  min-height: 60px; display: grid; place-items: center; text-decoration: none; color: var(--sage);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; position: relative;
}
.tabs a.active { color: var(--chalk); }
.tabs a.active::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; background: var(--signal); }

/* ---------- buttons ---------- */
.btn-quiet { border-color: rgba(233, 236, 227, .35); }
.btn-quiet:hover { border-color: var(--chalk); }
.btn-danger { border-color: var(--tally); background: var(--tally); color: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link { background: none; border: none; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; padding: 4px 0; }
.link-ink { background: none; border: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; justify-self: start; padding: 6px 0; }
.line-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 4px; font-size: 16px;
  background: var(--felt-deep); color: var(--chalk); border: 2px solid rgba(233, 236, 227, .25);
}
.line-input:focus { border-color: var(--signal); outline: none; }
select { min-height: 48px; padding: 0 12px; border-radius: 4px; font-size: 16px; background: var(--felt-deep); color: var(--chalk); border: 2px solid rgba(233, 236, 227, .25); }

/* ---------- auth ---------- */
.auth { display: grid; gap: 28px; max-width: 520px; padding-top: 12px; }
.auth-copy { display: flex; flex-direction: column; gap: 14px; }
.auth-card { background: var(--card); color: var(--ink); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--card-shadow); }
.form { display: grid; gap: 14px; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(19, 32, 26, .08); padding: 4px; border-radius: 6px; }
.seg-tab { min-height: 44px; border: none; border-radius: 4px; background: transparent; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.seg-tab.on { background: var(--ink); color: var(--card); }
.seg-tabs-felt { background: var(--felt-deep); max-width: 360px; }
.seg-tabs-felt .seg-tab { color: var(--sage); }
.seg-tabs-felt .seg-tab.on { background: var(--chalk); color: var(--ink); }
.code-box { font-family: var(--mono); font-size: 1.8rem; letter-spacing: .1em; text-align: center; padding: 22px;
  border: 3px dashed var(--signal); border-radius: 12px; color: var(--signal); user-select: all; }

/* ---------- onboarding ---------- */
.onboard { display: flex; flex-direction: column; gap: 22px; max-width: 640px; padding-top: 8px; }
.rules { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; font-size: 1.1rem; }
.cal-list { display: flex; flex-direction: column; }
.cal-row { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid rgba(233, 236, 227, .15); }
.cal-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cal-name span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.cal-name small { color: var(--sage); }
.cal-suit { width: 18px; height: 18px; fill: var(--chalk); align-self: center; }
.cal-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal-scale .rate-cell.on { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* ---------- tonight ---------- */
.tonight { display: flex; flex-direction: column; gap: 22px; }
.tonight-head { display: flex; flex-direction: column; gap: 8px; }
.fact b { color: var(--signal); }
.wild-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 6px;
  background: var(--signal); color: var(--ink); font-size: 1.05rem;
}
.wb-suit { width: 20px; height: 20px; fill: var(--tally); flex: none; }
.hand { list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hand { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.slot { display: flex; flex-direction: column; gap: 12px; }
.slot .card { width: 100%; font-size: clamp(.9rem, .5rem + 1.6vw, 1rem); }
@media (min-width: 760px) { .slot .card { font-size: .86rem; } }
.flip-btn { display: block; width: 100%; border: none; background: none; padding: 0; cursor: pointer; }
.flip-btn .card-back { transition: transform .2s ease; }
.flip-btn:hover .card-back { transform: translateY(-4px) rotate(-1deg); }
.slot.flipping .card-back { transform: rotateY(90deg); transition: transform .25s ease-in; }
@media (prefers-reduced-motion: no-preference) {
  .slot.up .card { animation: turn .35s var(--deal-ease) both; }
  @keyframes turn { from { transform: rotateY(-90deg); } }
  .hand .slot { animation: dealt .5s var(--deal-ease) both; }
  .hand .slot:nth-child(2) { animation-delay: .08s; }
  .hand .slot:nth-child(3) { animation-delay: .16s; }
  @keyframes dealt { from { transform: translateY(24px); } }
}
.slot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-done { font-family: var(--mono); color: var(--sage); padding: 12px 0; }
.hint-line { font-family: var(--mono); color: var(--sage); font-size: .9rem; }
.card.wild { outline: 4px solid var(--signal); outline-offset: 4px; }
.card-title-sm { font-size: 1.7em; }
.card-why { font-size: .88em; color: var(--ink-soft); line-height: 1.4; padding-left: 1.4em; }
.card-intel { font-size: .85em; line-height: 1.4; padding: .7em .8em; margin-left: 1.4em; background: rgba(19, 32, 26, .06); border-radius: 4px; }
.card-stamp {
  position: static; align-self: flex-start; margin: .5em 0 0 1.2em; transform: rotate(-4deg);
  font-family: var(--display); font-weight: 900; font-size: 1.7em; text-transform: uppercase; letter-spacing: .03em;
  color: var(--tally); border: .12em solid var(--tally); padding: .05em .35em; opacity: .9; mix-blend-mode: multiply; pointer-events: none;
}
.drill-card .corner .suit, .field-card .corner .suit { fill: var(--ink); }
.card-back span { font-size: 1.4em; }

.meters { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .meters { grid-template-columns: 1fr 1fr; } }
.meter { background: var(--felt-raised); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.meter-top { display: flex; align-items: baseline; gap: 10px; }
.meter-big { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .9; color: var(--signal); }
.meter-lbl { font-weight: 700; }
.meter-note { font-size: .92rem; color: var(--sage); }
.freezes { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.freezes i { width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--sage); display: inline-block; }
.freezes i.on { background: #9ED8F0; border-color: #9ED8F0; }
.freezes small { margin-left: 6px; font-family: var(--mono); font-size: .78rem; color: var(--sage); }
.weeks { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.weeks li { height: 14px; border-radius: 2px; background: var(--felt-deep); }
.weeks li.on { background: var(--signal); }
.weeks li.now { outline: 2px solid var(--chalk); outline-offset: 1px; }
.bar-track { height: 10px; border-radius: 2px; background: var(--felt-deep); overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) { .bar-track span { transition: width .8s var(--deal-ease); } }
.gate-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid rgba(233, 236, 227, .2); border-radius: 8px; text-decoration: none; }
.gate-strip strong { font-family: var(--mono); color: var(--signal); white-space: nowrap; }

/* ---------- sheets ---------- */
.sheet {
  border: none; padding: 0; width: 100%; max-width: 640px; max-height: 92vh; margin: auto auto 0;
  background: var(--felt-deep); color: var(--chalk); border-radius: 16px 16px 0 0; border-top: 3px solid var(--signal);
}
.sheet::backdrop { background: rgba(5, 16, 12, .72); }
.sheet-body { display: flex; flex-direction: column; gap: 18px; padding: 26px 20px calc(26px + env(safe-area-inset-bottom, 0px)); }
.sheet-body h2 { font-size: 2.2rem; margin: 0; }
.sheet-body .field label { color: var(--chalk); }
.sheet-body .field input, .sheet-body .field textarea { background: var(--felt); color: var(--chalk); border-color: rgba(233, 236, 227, .3); }
.sheet .hint { color: var(--sage); }
.sheet .chip { background: var(--felt-raised); }
.sheet .chip.on { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.sheet-card .card { max-width: 320px; margin: 0 auto; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: rise .3s var(--deal-ease); }
  @keyframes rise { from { transform: translateY(40px); opacity: .5; } }
}
.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.metric-grid:empty { display: none; }
.history { list-style: none; font-family: var(--mono); font-size: .88rem; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(233, 236, 227, .12); }

/* ---------- reveal ---------- */
.reveal { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.reveal-card { display: grid; place-items: center; }
.reveal-card .card { width: min(260px, 70vw); font-size: .82rem; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-card .card { animation: land .55s var(--deal-ease) both; }
  .reveal-card .slots li.is-before { animation: punch .3s ease-out .5s both; }
  .reveal-card .slots li.is-after { animation: punch .3s ease-out .85s both; }
  .reveal-card .card-stamp { animation: stampin .35s cubic-bezier(.3, 1.6, .5, 1) 1.05s both; }
  @keyframes land { from { transform: translateY(-60px) rotate(8deg); } }
  @keyframes punch { from { transform: scale(0); } }
  @keyframes stampin { from { transform: rotate(-12deg) scale(2); opacity: 0; } }
}
.reveal .stamp { align-self: center; }
.reveal-xp { font-family: var(--display); font-weight: 900; font-size: 4rem !important; color: var(--signal); text-align: center; line-height: 1; }
.reveal-lines { list-style: none; font-family: var(--mono); font-size: .9rem; }
.reveal-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(233, 236, 227, .15); }
.reveal-lines b { color: var(--signal); }
.unlock { background: var(--card); color: var(--ink); border-radius: 6px; padding: 12px 14px; }
.reveal-streak { font-family: var(--mono); font-size: .88rem; color: var(--sage); text-align: center; }

/* ---------- deck ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.suit-row { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(233, 236, 227, .12); }
.suit-head { display: flex; align-items: baseline; gap: 10px; }
.suit-head span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.suit-head small { color: var(--sage); font-family: var(--mono); font-size: .82rem; margin-left: auto; }
.sh-suit { width: 16px; height: 16px; fill: var(--chalk); }
.suit-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini { border: none; background: none; padding: 0; cursor: pointer; text-align: left; }
.mini .card { font-size: .5rem; padding: 12% 10% 10%; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
@media (min-width: 760px) { .mini .card { font-size: .62rem; } }
.mini .card::after { inset: 4px; }
.mini .corner { top: 6px; left: 6px; }
.mini .card-title { font-size: 1.9em; padding-left: .9em; margin-top: .6em; overflow-wrap: anywhere; }
.mini .pip { width: 34%; height: auto; aspect-ratio: 1; margin: auto auto 16%; fill: var(--ink); }
.mini .red .pip { fill: var(--tally); }
.mini.open .card { background: #DEDCD0; opacity: .92; }
.mini.open .card::after { border: 2px dashed var(--ink-soft); }
.ready { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font-family: var(--mono); font-size: 1.1em; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--signal); padding: .2em .5em; border-radius: 2px; white-space: nowrap; }
.mini.locked .card-back span { font-family: var(--mono); font-size: 1.6em; padding: .3em .5em; }
.mini.locked { cursor: default; opacity: .75; }

/* ---------- program ---------- */
.phase-list { list-style: none; display: flex; flex-direction: column; }
.phase { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(233, 236, 227, .12); }
.phase-n { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: .85; color: var(--sage); }
.phase h3 { font-size: 1.9rem; }
.phase.past .phase-n { color: var(--signal); }
.phase.future { opacity: .55; }
.phase.now .phase-n { color: var(--signal); }
.phase-body { display: flex; flex-direction: column; gap: 14px; }
.phase-ev { color: var(--sage); font-size: .95rem; }
.drill-list { list-style: none; }
.drill-btn { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: 48px; background: none; border: none; border-bottom: 1px solid rgba(233, 236, 227, .12); text-align: left; cursor: pointer; font-weight: 600; }
.tick { width: 18px; height: 18px; border: 2px solid var(--chalk); border-radius: 3px; flex: none; margin-top: 3px; }
.drill-btn.done .tick { background: var(--signal); border-color: var(--signal); }
.drill-btn.done span:last-child { color: var(--sage); }
.gate-box { background: var(--card); color: var(--ink); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gate-box .eyebrow { color: var(--tally); }
.gate-text { font-weight: 700; font-size: 1.1rem; }
.counter { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; text-align: center; }
.counter .btn-quiet { border-color: var(--ink); color: var(--ink); font-size: 1.5rem; padding: 0; }
.counter strong { display: block; font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: .9; }
.counter span { font-size: .9rem; color: var(--ink-soft); }
.gate-box .btn-signal { border-color: var(--ink); }

/* ---------- league ---------- */
.standings { list-style: none; margin-top: 20px; }
.standings li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(233, 236, 227, .12); }
.standings .place { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--sage); text-align: center; }
.standings li:nth-child(-n+3) .place { color: var(--signal); }
.standings .who { font-weight: 700; display: flex; flex-direction: column; }
.standings .who small { font-weight: 500; color: var(--sage); font-size: .85rem; }
.standings .pts { font-family: var(--mono); font-size: 1.2rem; }
.standings .pts small { font-size: .78rem; color: var(--sage); }
.standings li.you { background: var(--card); color: var(--ink); border-radius: 6px; padding-left: 8px; padding-right: 12px; border-bottom: none; }
.standings li.you .who small, .standings li.you .pts small { color: var(--ink-soft); }
.you-line { margin-top: 12px; font-family: var(--mono); }
.empty-league { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 22px; border: 2px dashed rgba(233, 236, 227, .25); border-radius: 10px; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.big-stats p { background: var(--felt-raised); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; }
.big-stats b { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--signal); }
.big-stats span { font-size: .85rem; color: var(--sage); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(233, 236, 227, .12); }
th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); font-weight: 500; }
td { font-variant-numeric: tabular-nums; }
td small { color: var(--sage); }

/* ---------- you ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { background: var(--card); color: var(--ink); border-radius: 8px; padding: 14px 12px; }
.tile-n { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; }
.tile-n small { font-size: .5em; color: var(--ink-soft); }
.tile-l { font-size: .82rem; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }
.badge-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.badge { border: 2px dashed rgba(233, 236, 227, .22); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.badge.got { border: none; background: var(--signal); color: var(--ink); }
.b-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1.05; }
.badge:not(.got) .b-name { color: var(--sage); }
.b-desc { font-size: .84rem; line-height: 1.35; color: var(--sage); }
.badge.got .b-desc { color: var(--ink-soft); }
.chart { width: 100%; max-width: 560px; height: auto; }
.chart .grid { stroke: rgba(233, 236, 227, .15); }
.chart .axis { fill: var(--sage); font-size: 9px; font-family: var(--mono); }
.chart .gapline { stroke: var(--chalk); stroke-width: 2; }
.chart .pre { fill: #E8566C; }
.chart .post { fill: var(--signal); }
.legend { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--sage); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-pre { background: #E8566C; } .k-post { background: var(--signal); margin-left: 8px; }
.notes-list { list-style: none; }
.notes-list li { padding: 12px 0; border-bottom: 1px solid rgba(233, 236, 227, .12); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.nums b { color: var(--signal); }
.settings { display: flex; flex-direction: column; gap: 16px; }
.switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.switch input { width: 24px; height: 24px; accent-color: var(--signal); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form label { font-weight: 700; }
.inline-form .line-input { flex: 1 1 200px; }
.feedback { margin-top: 44px; background: var(--card); color: var(--ink); border-radius: 12px; padding: 22px; display: grid; gap: 14px; }
.feedback h2 { margin: 0; color: var(--ink); }
.feedback .btn-signal { justify-self: start; border-color: var(--ink); }
.danger { margin-top: 36px; }
.danger summary { cursor: pointer; color: var(--sage); font-weight: 700; padding: 8px 0; }
.danger .inline-form { margin-top: 12px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; flex-direction: column; gap: 6px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: var(--chalk); color: var(--ink); padding: 11px 16px; border-radius: 4px; font-weight: 700; text-align: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.toast.xp { background: var(--signal); font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; }
.toast.badge { background: var(--card); display: flex; align-items: center; gap: 10px; }
.toast.badge::before { content: ""; width: 12px; height: 12px; background: var(--tally); transform: rotate(45deg); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: pop .3s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes pop { from { transform: translateY(12px) scale(.9); opacity: 0; } }
}

/* ---------- phone layout: a real hand ---------- */
@media (max-width: 759px) {
  .hand { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
  .slot { gap: 10px; }
  .slot.up { grid-column: 1 / -1; }
  .slot:not(.up) .card-back { font-size: .62rem; }
  .slot:not(.up) .card-back span { font-size: 1.3em; padding: .4em .5em; }
  .slot.up .card { aspect-ratio: auto; padding: 44px 26px 30px; }
  .slot.up .card .tally { margin-top: 18px; }
  .slot.up .card-stamp, .reveal-card .card-stamp { position: static; align-self: flex-start; margin: 6px 0 0 1.2em; transform: rotate(-4deg); font-size: 1.3em; }
  .mini .card-title { display: none; }
  .mini .card { font-size: .6rem; }
  .mini .pip { width: 40%; margin: auto; }
  .mini .ready { font-size: .95em; bottom: 6%; }
}
.reveal-card .card { aspect-ratio: auto; padding: 40px 26px 28px; }
.reveal-card .card .tally { margin-top: 16px; }
.reveal-card .card-stamp { position: static; align-self: flex-start; margin: 8px 0 0 1.2em; transform: rotate(-4deg); }
@media (prefers-reduced-motion: no-preference) {
  .reveal-card .card-stamp { animation-name: stampflat; }
  @keyframes stampflat { from { transform: rotate(-4deg) scale(2); opacity: 0; } }
}

/* reminder offer on the reveal sheet */
.remind-offer { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(233, 236, 227, .15); }
.remind-offer p { font-size: 1rem; line-height: 1.5; }

/* reads: written calls, checked later */
.reads { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; border-top: 1px solid rgba(233, 236, 227, .15); }
.reads-head { display: flex; flex-direction: column; gap: 4px; }
.reads-head h2 { font-size: 2rem; }
.reads > .btn { align-self: flex-start; }
.read-list { list-style: none; display: grid; gap: 10px; }
.read-item { background: var(--felt-raised); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.read-kind { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.read-call { font-size: 1.05rem; line-height: 1.4; }
.read-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.calib { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.calib h2 { font-size: 2rem; }
.calib-rows { list-style: none; display: grid; gap: 10px; max-width: 32rem; }
.calib-rows li { display: grid; grid-template-columns: 76px 1fr 56px; gap: 10px; align-items: center; }
.calib-label, .calib-n { font-family: var(--mono); font-size: .8rem; color: var(--sage); }
.calib-bar { position: relative; height: 14px; background: var(--felt-deep); border-radius: 3px; }
.calib-bar i { position: absolute; inset: 0 auto 0 0; background: var(--chalk); border-radius: 3px; }
.calib-bar b { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--signal); }

/* share links in card history */
.history li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
.link-btn { background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 700; color: var(--chalk);
  text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }
