/* Swipe the day: bright Arcade look. One phone-width column; the meters and the action bar are a
   fixed footer on every screen. */

/* Self-hosted fonts (SIL Open Font License; see fonts/LICENSE-*.txt), Latin only. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/nightmare/swipe/fonts/space-grotesk.woff2') format('woff2-variations'), url('/nightmare/swipe/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/nightmare/swipe/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/nightmare/swipe/fonts/space-mono-700.woff2') format('woff2');
}
:root {
  --ground: #1fc7b9;
  --ground-deep: #0c7d74;
  --ink: #0b1114;
  --ink-soft: #0b3b3a;
  --paper: #fff8e6;
  --paper-dim: #d9d4c5;
  --yellow: #ffd23f;
  --coral: #ff5a3c;
  --coral-soft: #ff9a82;
  --coral-dark: #5a2418;
  --red-text: #a8260e;
  --teal: #3fe6d8;
  --teal-soft: #a9f2ea;
  --track: #263238;
  --grey: #4a585f;
  --sans: 'Space Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow-x: clip; /* cards fly in and out past the screen edge without making it scroll */
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
p, h1, h2 { margin: 0; }
.mono { font-family: var(--mono); font-weight: 700; }

.sw-app { max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.screen:has(.cardwrap) { overflow: clip; } /* the play screen always fits; falling cards must not make it scroll */
.sw-note { margin: auto; padding: 24px; font-weight: 700; text-align: center; }
.screen {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px;
  padding: max(22px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

/* Top row */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.count { font-size: 22px; letter-spacing: -0.02em; }
.count span { color: var(--ink-soft); }
.pill { font-size: 12px; letter-spacing: 0.06em; background: var(--ink); color: var(--yellow); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.held { background: var(--yellow); color: var(--ink); }
.sub { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.stack { display: flex; flex-direction: column; gap: 6px; }

/* Paper card with the hard shadow */
.paper { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 7px 7px 0 var(--ink); }
.headline { margin: 0 6px 6px 0; transform: rotate(-1deg); padding: 16px; }
.headline h1 { font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: pretty; }

/* Briefing */
.chain { background: var(--ink); border-radius: 14px; padding: 4px 12px; color: var(--paper); }
.chain-row { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--track); font-size: 14px; }
.chain-row:last-child { border-bottom: 0; }
.chain-row .n { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chain-row:last-child .n { background: var(--coral); }
.chain-row .what { flex: 1; }
.chain-row .dmg { font-family: var(--mono); font-size: 12px; color: var(--coral-soft); white-space: nowrap; }
.rule { background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.rule b { display: block; font-size: 17px; }
.rule span { font-size: 14px; line-height: 1.35; }
.how { font-size: 13px; line-height: 1.4; color: var(--ink); font-weight: 700; margin-top: 2px; }

/* Today's crisis: a timeline of the 12 cards with the four stages marked, and what comes next */
.crisis { background: var(--ink); border-radius: 14px; padding: 9px 12px 10px; color: var(--paper); display: flex; flex-direction: column; gap: 7px; }
.crisis-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 0.08em; }
.crisis-h b { color: var(--teal-soft); }
.crisis-h span { color: var(--yellow); letter-spacing: 0.04em; }
.track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: center; }
.track i { height: 8px; border-radius: 4px; background: var(--track); font-style: normal; transition: background 0.3s ease; }
.track .done { background: var(--paper-dim); }
.track .now { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--yellow); }
.track .stage { height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--ink); }
.track .due { background: var(--coral-soft); }
.track .due.board { background: var(--coral); }
.track .hit { background: var(--coral-dark); color: #ffb09c; }
.track .just { background: var(--coral); animation: pulse 0.9s ease-in-out 3; }
.track .off { background: #12383a; color: var(--teal); text-decoration: line-through; }
.next { font-size: 13px; line-height: 1.3; min-height: 34px; text-wrap: pretty; }
.next b { color: var(--yellow); }
.next .mono { color: var(--coral-soft); white-space: nowrap; }
.next.ok b { color: var(--teal); }

/* The card: a small sheet dealt from a pile, with the favours printed on it */
.cardwrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
/* Playing-card shape (5:7) when the screen is tall enough; otherwise it widens so the text still fits. */
.pile { position: relative; flex: none; height: calc(100% - 14px); max-height: 440px; aspect-ratio: 5 / 7; min-width: min(100% - 30px, 300px); }
.deck i { position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 16px; transform: rotate(4deg) translate(7px, 5px); background-color: var(--ink); background-image: repeating-linear-gradient(45deg, rgba(63, 230, 216, 0.5) 0 2px, transparent 2px 11px), repeating-linear-gradient(-45deg, rgba(63, 230, 216, 0.5) 0 2px, transparent 2px 11px); box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 7px var(--teal); }
.deck i:first-child { transform: rotate(-4.5deg) translate(-6px, 7px); }
.card { position: relative; height: 100%; --suit: var(--ink); transform: rotate(var(--tilt, -1.5deg)); box-shadow: 6px 6px 0 var(--ink); padding: 16px 16px 38px; display: flex; flex-direction: column; gap: 10px; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; cursor: grab; }
.card.settle { transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.card.enter { animation: deal 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes deal {
  from { transform: translate(10px, 14px) rotate(calc(var(--tilt) * -3)) scale(0.9); opacity: 0.2; }
  55% { transform: translate(0, -10px) rotate(calc(var(--tilt) * 1.6)) scale(1.03); opacity: 1; }
  to { transform: rotate(var(--tilt)) scale(1); }
}
.card.enter .face { animation: bob 0.5s 0.16s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes bob { from { transform: scale(0.4) rotate(-14deg); opacity: 0; } }
.card.enter .ask, .card.enter .who-name { animation: rise 0.3s 0.2s ease-out both; }
.card.enter .onhand { animation: rise 0.3s 0.32s ease-out both; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@keyframes enter { from { transform: translateY(26px) rotate(3deg) scale(0.94); opacity: 0; } }
.card.out { transition: transform 0.26s ease-in, opacity 0.26s ease-in; opacity: 0; }
/* Suits: one per colleague, shown in the corners, the inner line and the face. Cut cards get their own look. */
.suit-CEO { --suit: #b97a00; }
.suit-CFO { --suit: #0c7d74; }
.suit-ENG { --suit: #d43a1c; }
.suit-VEN { --suit: #6a3fd0; }
.card::before { content: ''; position: absolute; inset: 5px; border: 2px solid var(--suit); border-radius: 10px; pointer-events: none; }
.idx { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--suit); pointer-events: none; }
.idx b { font-size: 17px; line-height: 1; }
.idx.br { top: auto; left: auto; bottom: 11px; right: 12px; flex-direction: row; gap: 4px; transform: rotate(180deg); }
.card .who { margin-left: 28px; }
.cutcard { --suit: #d43a1c; background: #fff0dd; }
.who-name .kind { color: var(--suit); font-weight: 700; }
.cutcard .idx svg { animation: pulse 1.3s ease-in-out infinite; }
.cutcard::before { border-width: 3px; border-style: dashed; }
.mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--coral); opacity: 0.13; pointer-events: none; }
/* Each colleague arrives in their own way, and their corner icon moves once as the card lands. */
.card.enter.suit-CEO { animation: deal-ceo 0.55s cubic-bezier(0.5, 0, 0.8, 0.5) both; }
@keyframes deal-ceo {
  from { transform: translateY(-115%) rotate(var(--tilt)); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translateY(0) rotate(var(--tilt)) scale(1.03, 0.96); animation-timing-function: ease-out; }
  75% { transform: translateY(-14px) rotate(var(--tilt)); animation-timing-function: ease-in; }
  to { transform: rotate(var(--tilt)); }
}
.card.enter.suit-CFO { animation: deal-cfo 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes deal-cfo {
  from { transform: translateX(-112%) rotate(0deg); opacity: 0; }
  25% { opacity: 1; }
  80% { transform: translateX(0) rotate(0deg); }
  to { transform: rotate(var(--tilt)); }
}
.card.enter.suit-ENG { animation: deal-eng 0.5s linear both; }
@keyframes deal-eng {
  from { transform: translateY(60px) rotate(var(--tilt)) scale(0.8); opacity: 0; }
  28% { transform: rotate(var(--tilt)) scale(1.03); opacity: 1; }
  40% { transform: translateX(-9px) rotate(calc(var(--tilt) - 2deg)); }
  52% { transform: translateX(8px) rotate(calc(var(--tilt) + 2deg)); }
  64% { transform: translateX(-6px) rotate(calc(var(--tilt) - 1deg)); }
  76% { transform: translateX(4px) rotate(calc(var(--tilt) + 1deg)); }
  88% { transform: translateX(-2px) rotate(var(--tilt)); }
  to { transform: rotate(var(--tilt)); }
}
.card.enter.suit-VEN { animation: deal-ven 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes deal-ven {
  from { transform: translate(70%, 30px) rotate(24deg) scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  65% { transform: translate(-8px, 0) rotate(calc(var(--tilt) - 5deg)) scale(1.02); }
  to { transform: rotate(var(--tilt)); }
}
.card.suit-VEN::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.95) 48%, rgba(106, 63, 208, 0.25) 52%, transparent 58%) 100% 0 / 250% 100% no-repeat; }
.card.enter.suit-VEN::after { animation: shine 0.7s 0.5s ease-in-out both; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.card.enter.suit-CEO:not(.cutcard) .idx svg { animation: ring 0.7s 0.45s ease-in-out both; }
@keyframes ring { 15%, 45%, 75% { transform: rotate(-20deg); } 30%, 60%, 90% { transform: rotate(20deg); } }
.card.enter.suit-CFO:not(.cutcard) .idx svg { animation: tick 0.8s 0.45s steps(8) both; }
@keyframes tick { to { transform: rotate(360deg); } }
.card.enter.suit-ENG:not(.cutcard) .idx svg { animation: blink 0.7s 0.45s steps(1) both; }
@keyframes blink { 0%, 40% { opacity: 0.1; transform: scale(1.3); } 20%, 60%, 100% { opacity: 1; transform: none; } }
.card.enter.suit-VEN:not(.cutcard) .idx svg { animation: sparkle 0.6s 0.9s ease-out both; }
@keyframes sparkle { 40% { transform: scale(1.7) rotate(20deg); } }
/* A deferred card comes back tired: it drags itself on and wobbles. */
.card.enter.returned { animation: deal-tired 0.8s ease-out both; }
@keyframes deal-tired {
  from { transform: translateY(70%) rotate(var(--tilt)); opacity: 0; }
  35% { transform: translateY(4px) rotate(var(--tilt)); opacity: 1; }
  50% { transform: rotate(calc(var(--tilt) - 5deg)); }
  65% { transform: rotate(calc(var(--tilt) + 4deg)); }
  80% { transform: rotate(calc(var(--tilt) - 2deg)); }
  to { transform: rotate(var(--tilt)); }
}
/* Stop cards: the big stop sign stamps down, then breathes until the card is answered. */
.cutcard .mark svg { animation: breathe 2.6s ease-in-out infinite; }
.cutcard.enter .mark svg { animation: stamp 0.4s 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both, breathe 2.6s 0.9s ease-in-out infinite; }
@keyframes stamp { from { transform: scale(2.8) rotate(-14deg); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes pulse { 50% { transform: scale(1.25) rotate(-8deg); } }
.who { display: flex; align-items: center; gap: 12px; }
/* Avatars: a portrait in a coloured tile, one colour per colleague */
.face { width: 46px; height: 46px; border-radius: 12px; background: #b9f1ea; border: 3px solid var(--ink); flex-shrink: 0; overflow: hidden; }
.card .face { width: 56px; height: 56px; border-radius: 14px; }
.face.small { width: 60px; height: 60px; border-radius: 14px; }
.face svg { display: block; width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.face .sk { fill: var(--skin); }
.face g.ln { fill: none; }
.face .ey { fill: var(--ink); stroke: none; }
.face .ink { fill: var(--ink); }
.face.CEO { background: var(--yellow); }
.face.CFO { background: #b9f1ea; }
.face.ENG { background: #ffc9bd; }
.face.VEN { background: #d9c8ff; }
.who-name { flex: 1; min-width: 0; }
.who-name b { display: block; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.who-name span { font-size: 13px; color: #4a5357; }
.tag { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-weight: 700; font-size: 12px; background: var(--coral); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 9px; }
.tag.back { background: var(--paper-dim); }
.ask { flex: 1; font-size: 19px; font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; text-wrap: pretty; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Answers: a short button each, with what it costs as chips that match the meter icons */
.ans { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; text-align: left; padding: 8px 10px 9px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.ans b { display: flex; align-items: center; gap: 6px; font-size: 19px; line-height: 1; letter-spacing: 0.02em; }
.ans.no { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(11, 17, 20, 0.35); }
.ans.yes { background: var(--yellow); align-items: flex-end; text-align: right; }
.ans:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ans.yes .chips { justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1; padding: 3px 5px 3px 4px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); white-space: nowrap; }
.chip.down { background: var(--coral); }
.chip.up { background: var(--teal); }
.ans { position: relative; }
.tab { position: absolute; top: -15px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; padding: 3px 7px; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.ans.no .tab { right: 8px; }
.ans.yes .tab { left: 8px; }
.tab.stop { background: var(--ink); color: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.tab.warn { background: var(--coral); color: var(--ink); }
.chip.quiet { background: transparent; border-style: dashed; font-weight: 500; }
.ans.no .chip.quiet { color: var(--paper-dim); border-color: var(--paper-dim); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ans.lean { transform: scale(1.05); box-shadow: 0 0 0 4px var(--coral); }
.ans.yes.lean { box-shadow: 0 0 0 4px var(--ink); }
.ans.picked { animation: picked 0.26s ease-out; }
.defer.picked { animation: picked 0.26s ease-out; }
@keyframes picked { 40% { transform: scale(1.07); } }

/* Favours, printed on the card */
.onhand { position: relative; border-top: 2px dashed var(--suit); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.onhand-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; }
.onhand-h b { letter-spacing: 0.08em; }
.onhand-h span { color: #4a5357; }
.favours { display: flex; flex-direction: column; gap: 5px; }
.fav { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 30px; text-align: left; padding: 3px 9px; background: #fff; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 3px 0 var(--ink); position: relative; }
.fav svg { flex-shrink: 0; }
.fav b { font-size: 13px; white-space: nowrap; width: 70px; flex-shrink: 0; }
.fav small { flex: 1; font-size: 11.5px; line-height: 1.15; color: #4a5357; }
.fav:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.fav.spent { background: transparent; box-shadow: none; border-style: dashed; opacity: 0.5; }
.fav.spent b { text-decoration: line-through; }
.fav.wait { opacity: 0.55; box-shadow: none; }
.fav.armed { background: var(--yellow); opacity: 1; }
.fav.armed small { color: var(--ink); font-weight: 700; }

/* Defer sits in the action bar slot */
.defer { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 58px; padding: 0 18px; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); font-size: 13px; font-weight: 500; text-align: right; }
.defer b { display: flex; align-items: center; gap: 6px; font-size: 16px; letter-spacing: 0.02em; }
.defer:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.defer:disabled { background: transparent; border-style: dashed; box-shadow: none; opacity: 0.5; }
.defer.lean { background: var(--yellow); }

/* Fixed footer: meters, then the action bar */
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 5px; }
.meters { background: var(--ink); border-radius: 14px; padding: 10px 12px; color: var(--paper); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.meter { display: flex; flex-direction: column; gap: 3px; }
.meter .name { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--teal-soft); text-transform: uppercase; }
.meter .val { font-size: 24px; line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.meter .val em { font-style: normal; font-size: 13px; color: var(--coral-soft); animation: pop 0.9s ease-out both; }
.meter .val em.up { color: var(--teal); }
@keyframes pop { from { transform: translateY(6px) scale(1.5); opacity: 0; } 30% { transform: none; opacity: 1; } }
.meter .bar { position: relative; height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.meter .val svg { margin-left: auto; align-self: center; flex: none; color: var(--teal-soft); }
/* Preview: leaning the card (or hovering an answer) shows what it would do to each meter */
.meter .bar s { position: absolute; top: 0; height: 8px; width: 0; }
.meter .bar s.down { background: repeating-linear-gradient(-45deg, var(--coral) 0 3px, #ffb3a3 3px 6px); animation: blinkbar 0.8s ease-in-out infinite; }
.meter .bar s.up { background: #b9fff6; }
@keyframes blinkbar { 50% { opacity: 0.45; } }
.meter .pv { text-decoration: none; font-size: 15px; color: var(--paper-dim); }
.meter.previewing .val .num { opacity: 0.55; }
.meter.previewing .pv { color: var(--paper); }
.meter.doom .pv, .meter.doom .name { color: #ff7a5e; }
.meter.doom { animation: doom 0.5s ease-in-out infinite alternate; }
@keyframes doom { to { transform: translateY(-2px); } }
.meter .bar i { display: block; height: 8px; background: var(--teal); border-radius: 4px; transition: width 0.4s ease; }
.meter.low .name, .meter.low .val { color: var(--yellow); }
.meter.low .bar i { background: var(--yellow); }
.meter.crit .name, .meter.crit .val { color: #ff7a5e; }
.meter.crit .bar i { background: var(--coral); }

.go { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 58px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: 0 5px 0 var(--ground-deep); font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ground-deep); }
.go svg { stroke: var(--yellow); }

/* A link burns */
.burncard { margin: 6px 8px 8px 2px; transform: rotate(1.5deg); background: var(--coral); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 8px; animation: enter 0.3s ease-out; }
.burncard .k { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.burncard h1 { font-size: 29px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: pretty; }
.burncard .drop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 2px; font-size: 14px; font-weight: 700; }
.burncard .drop .mono { font-size: 24px; line-height: 1; white-space: nowrap; }
.says { display: flex; gap: 10px; align-items: flex-start; }
.bubble { flex: 1; background: var(--paper); border: 3px solid var(--ink); border-radius: 4px 14px 14px 14px; padding: 10px 12px; }
.bubble b { display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.bubble p { font-size: 15px; line-height: 1.35; text-wrap: pretty; }
.facts { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 12px; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts span { color: var(--ink-soft); }
.facts b { text-align: right; }

/* Result */
.verdict { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.verdict h1 { font-size: 50px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.coin { width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transform: rotate(8deg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.coin.F { background: var(--coral); }
.coin .mono { font-size: 34px; line-height: 1; }
.coin small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.yourday { background: var(--ink); border-radius: 14px; padding: 14px; color: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.yourday .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--yellow); }
.yourday .hd span:first-child { font-size: 12px; letter-spacing: 0.08em; color: var(--teal-soft); }
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.strip i { height: 24px; border-radius: 5px; border: 2px solid var(--track); }
.strip .clean { background: var(--teal); border-color: var(--teal); }
.strip .costly { background: #fff0a8; border-color: #fff0a8; }
.strip .damaging { background: #e0431f; border-color: #e0431f; }
.strip .deferred { background: var(--grey); border-color: var(--grey); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--paper-dim); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.reality { border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.reality .k { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
.reality p { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }
.reality small { font-size: 13px; color: #4a5357; }
.reality a, .again { color: var(--ink); }
.again { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 13px; font-weight: 700; }

/* Look ahead sheet and the toast */
.sheet { position: fixed; inset: 0; z-index: 5; background: rgba(11, 17, 20, 0.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet .paper { width: 100%; max-width: 398px; padding: 16px; display: flex; flex-direction: column; gap: 12px; animation: enter 0.22s ease-out; }
.sheet h2 { font-size: 20px; letter-spacing: -0.01em; }
.peek { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.3; }
.peek .face { width: 40px; height: 40px; border-width: 2px; }
.peek b { display: block; font-size: 12px; letter-spacing: 0.04em; }
.toast { position: fixed; left: 50%; top: 128px; z-index: 6; transform: translateX(-50%); background: var(--ink); color: var(--paper); border: 2px solid var(--yellow); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; white-space: nowrap; animation: toast 2.4s ease both; pointer-events: none; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; } }

@media (max-height: 760px) {
  .card .face { width: 50px; height: 50px; border-radius: 12px; }
  .screen { gap: 9px; }
  .ask { font-size: 17px; }
  .pile { min-width: calc(100% - 24px); }
  .crisis-h { display: none; }
  .crisis { padding-top: 10px; }
  .card { padding: 13px 13px 14px; gap: 8px; }
  .idx.br { display: none; }
  .onhand-h span { display: none; }
  .fav { min-height: 27px; padding: 2px 8px; }
  .headline h1 { font-size: 22px; }
  .chain-row { min-height: 38px; }
  .burncard h1 { font-size: 25px; }
  .verdict h1 { font-size: 42px; }
  .reality p { font-size: 17px; }
}
@media (max-height: 700px) {
  .screen { gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .foot { gap: 9px; }
  .ask { font-size: 16px; }
  .crisis { padding: 8px 12px; gap: 6px; }
  .track .stage { height: 18px; }
  .card { padding: 12px 12px 13px; gap: 6px; }
  .face, .card .face, .face.small { width: 44px; height: 44px; }
  .onhand-h span { display: none; }
  .ans { gap: 5px; padding: 6px 9px 7px; }
  .ans b { font-size: 17px; }
  .chip { font-size: 12px; }
  .next { min-height: 0; }
  .headline { padding: 12px; }
  .headline h1 { font-size: 20px; }
  .chain-row { min-height: 33px; font-size: 13px; }
  .rule { padding: 7px 12px; }
  .how { font-size: 12px; }
  .burncard { padding: 14px; }
  .burncard h1 { font-size: 22px; }
  .verdict h1 { font-size: 36px; }
  .coin { width: 62px; height: 62px; }
  .coin .mono { font-size: 27px; }
  .yourday { padding: 10px 12px; gap: 8px; }
  .reality { padding: 9px 12px; }
  .reality p { font-size: 16px; }
  .meters { padding: 8px 12px; }
  .meter .val { font-size: 21px; }
  .go, .defer { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The note under the result that results are counted anonymously */
.privacy { font-size: 12px; opacity: 0.8; text-align: right; }
