@font-face { font-family: 'Manrope'; src: url(fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* Sophie's Ourfit booth palette: white ground, warm black and grays, pastels for right and wrong,
   Verity lime only where Verity speaks. The old token names are kept so every rule follows. */
:root {
  --bone: #F5F5F5;
  --ink: #1C1C1A;
  --forest: #1C1C1A;
  --lime: #D7FF81;
  --rule: #EEEEEE;
  --muted: #757575;
  --card: #FFFFFF;
  --warn: #CC6090;
  --text: #2E2E2C;
  --gray-50: #FAFAFA;
  --gray-300: #E0E0E0;
  --gray-700: #616161;
  --mint-50: #E8FDF8; --mint-100: #D0F8EC; --mint-200: #B8F0E0; --mint-600: #0D9860;
  --pink-50: #FFF0F8; --pink-100: #FFE8F4; --pink-200: #FFD4E8; --pink-600: #CC6090; --pink-800: #880030;
  --butter-100: #FFF4C0; --butter-900: #4A3800;
  --ring: rgba(46, 46, 44, .35);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .08), 0 10px 10px -5px rgba(0, 0, 0, .03);
  --display: 'Manrope', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bone); color: var(--ink); font-family: var(--ui); }
body { display: flex; flex-direction: column; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }

.top { display: flex; align-items: center; gap: 20px; padding: 18px 32px 0; }
.lockup { display: inline-flex; align-items: center; gap: 14px; -webkit-touch-callout: none; }
.lockup img { height: 32px; width: auto; display: block; pointer-events: none; }
.lockup img + .lockup-rule + img { height: 24px; }
.lockup-rule { width: 1px; height: 30px; background: var(--ink); opacity: 0.35; }
.top-tag { color: var(--muted); font-size: 14px; }

#app { flex: 1; overflow-y: auto; }
.screen { max-width: 1100px; margin: 0 auto; padding: 24px 32px 40px; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--forest); margin: 0 0 8px; }
.kicker.accent { display: inline-block; background: var(--lime); color: var(--ink); padding: 6px 10px; font-size: 15px; }
.display { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0 0 16px; font-size: clamp(40px, 6vw, 72px); }
h2.display { font-size: clamp(34px, 4.5vw, 54px); }
.lede { font-size: 21px; line-height: 1.45; max-width: 46ch; color: var(--ink); margin: 0 0 24px; }
.note, .line { color: var(--muted); font-size: 16px; }
.line { font-size: 19px; color: var(--forest); max-width: 60ch; }

.btn { font: 600 18px var(--ui); border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 16px 28px; border-radius: 999px; cursor: pointer; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: var(--bone); }
.btn.primary:disabled { opacity: 0.35; }
.btn.big { font-size: 22px; padding: 22px 56px; }
.btn.ghost { border: 0; color: var(--muted); font-weight: 400; margin-top: 8px; }
.actions { display: flex; justify-content: flex-end; margin-top: 24px; }

.setup { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: 70vh; }
@media (max-width: 800px) { .setup { grid-template-columns: 1fr; gap: 16px; } }
.setup .lede { margin-bottom: 0; }
.form-head { margin: 0 0 4px; font-weight: 600; font-size: 18px; }
.setup #leadform { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.setup #leadform .btn { margin-top: 6px; }
.link { font: inherit; color: var(--forest); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }

.screen.intro { padding-top: 12px; }
.intro .display { font-size: clamp(34px, 4.2vw, 52px); max-width: 30ch; margin-bottom: 10px; }
.intro .lede { max-width: 72ch; font-size: 18px; margin-bottom: 14px; }
.intro-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.figure strong { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--forest); }
.figure span { font-size: 15px; line-height: 1.35; }
.figure small, .cite small { color: var(--muted); font-size: 12px; margin-top: auto; }
.cite small { display: block; margin-top: 2px; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .intro-cols { grid-template-columns: 1fr; } }
.cite { font-size: 16px; line-height: 1.4; margin: 0 0 12px; }
.why { background: var(--forest); color: var(--bone); border-radius: 14px; padding: 16px 20px; }
.why .intro-sub { color: var(--lime); }
.why ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 16px; line-height: 1.35; }
.intro .actions { margin-top: 12px; }
.screen.intro { padding-bottom: 12px; }

.screen.round { max-width: 1240px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 16px; }
@media (max-width: 860px) { .screen.round { grid-template-columns: 1fr; } }
.queue { position: sticky; top: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; }
.queue h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.queue ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.queue li { padding: 8px 10px 8px 26px; border-radius: 8px; position: relative; font-size: 15px; font-weight: 600; }
.queue li small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.queue li::before { content: ''; position: absolute; left: 9px; top: 14px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }
.queue li.on { background: var(--bone); }
.queue li.on::before { background: var(--forest); border-color: var(--forest); }
.queue li.right::before { background: var(--lime); border-color: var(--forest); }
.queue li.wrong::before, .queue li.skipped::before { background: var(--warn); border-color: var(--warn); }
@media (max-width: 860px) { .queue { position: static; } .queue ol { grid-auto-flow: column; overflow-x: auto; } .queue li small { display: none; } }
.clock { font-family: var(--display); font-size: 48px; font-weight: 600; margin-top: 12px; }
.clock.low { color: var(--warn); }
.clock.paused { opacity: 0.4; }

.case { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 24px 24px; }
.case-head h2 { font-family: var(--display); font-size: 40px; font-weight: 600; margin: 0; line-height: 1.05; }
.case-head small { font-family: var(--ui); font-size: 16px; font-weight: 400; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 10px 20px; margin: 14px 0; }
.facts div { margin: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-size: 17px; white-space: nowrap; }
.facts .said dd { white-space: normal; }
.facts .reason dd { display: inline-block; background: var(--lime); font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.facts .said { grid-column: 1 / -1; }
.facts .said dd { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.facts .amount dd { font-weight: 600; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; justify-content: stretch; } }
.ev-head { font-weight: 600; margin: 8px 0 8px; }
.ev-head span { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev { margin: 0; }
.shot { position: relative; display: block; width: 100%; height: clamp(240px, 36vh, 520px); padding: 0; border: 2px solid var(--rule); border-radius: 12px; overflow: hidden; background: #F3F0EA; cursor: zoom-in; }
.ev.claim .shot { border-color: var(--ink); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loupe { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--bone); color: var(--ink); font: 600 26px/40px var(--ui); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.mark { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(92,64,40,.55), rgba(92,64,40,.3) 55%, rgba(92,64,40,0)); }
.mark.wine { background: radial-gradient(closest-side, rgba(110,20,40,.6), rgba(110,20,40,.32) 55%, rgba(110,20,40,0)); }
.ev figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 15px; }
.ev figcaption span { color: var(--muted); }
.ev figcaption em { font-style: normal; font-weight: 600; color: var(--warn); }
.look { margin: 16px 0 0; font-size: 16px; }
.look summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.look ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.btn.approve, .btn.decline { font-size: 21px; padding: 20px; }
.btn.approve { background: var(--forest); border-color: var(--forest); color: var(--bone); }
.btn.decline { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.verdict { margin-top: 20px; }
.verdict .call { font-size: 19px; line-height: 1.4; padding: 12px 16px; border-radius: 10px; background: var(--bone); }
.verdict.ok .call strong { color: var(--forest); }
.verdict.no .call strong { color: var(--warn); }
.verdict .flag { margin-top: 12px; }
.flag.clear { border-left-color: var(--muted); }
.flag.clear p { margin: 8px 0 0; font-size: 16px; }

.overlay#lightbox { background: rgba(14, 20, 16, .92); }
.lb { width: min(94vw, 900px); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--bone); }
.lb p { margin: 0; font-size: 16px; text-align: center; }
.lb-shot { position: relative; max-height: 78vh; max-width: 94vw; height: 78vh; overflow: hidden; border-radius: 12px; background: #F3F0EA; cursor: zoom-in; --ox: 50%; --oy: 50%; }
@media (orientation: portrait) { .lb-shot { height: auto; width: 94vw; } }
.lb-inner { position: absolute; inset: 0; transition: transform .25s; transform-origin: var(--ox) var(--oy); }
.lb-shot.zoomed { cursor: zoom-out; }
.lb-shot.zoomed .lb-inner { transform: scale(2.5); }
.lb-inner img { position: absolute; inset: 0; width: 100%; height: 100%; }

.leak { background: var(--forest); color: var(--bone); border-radius: 18px; padding: 24px 28px; margin-bottom: 28px; }
.leak .kicker { color: var(--lime); }
.leak-lead { font-size: 19px; line-height: 1.4; max-width: 60ch; margin: 0; }
.leak-n { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 104px); line-height: 1; color: var(--lime); margin: 8px 0 0; }
.leak-line { font-size: 22px; margin: 4px 0 0; }
.books { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; flex-wrap: wrap; }
.books span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; margin-right: 6px; }
.books button { font: 600 16px var(--ui); color: var(--bone); background: transparent; border: 1px solid rgba(250, 247, 242, 0.5); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.books button.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.leak-how { font-size: 13px; line-height: 1.45; opacity: 0.8; max-width: 90ch; margin: 0; }
.recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .recap { grid-template-columns: 1fr; } }
.rc { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; background: var(--card); border: 1px solid var(--rule); border-top: 5px solid var(--forest); border-radius: 14px; padding: 14px; }
.rc.no { border-top-color: var(--warn); }
.rc-photo { position: relative; }
.rc-shot { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #F3F0EA; }
.rc-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-out { position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: center; font-size: 12px; font-weight: 700; padding: 5px 6px; border-radius: 6px; background: var(--forest); color: var(--bone); }
.rc.no .rc-out { background: var(--warn); }
.rc-who { font-size: 13px; color: var(--muted); margin: 0; }
.rc-did { font-weight: 600; font-size: 15px; margin: 2px 0 8px; }
.rc h4 { font-size: 17px; line-height: 1.3; margin: 0 0 10px; font-weight: 600; }
.tag { display: inline-block; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-right: 4px; vertical-align: 2px; }
.tag.quiet { background: var(--bone); color: var(--forest); border: 1px solid var(--rule); }
.rc-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.rc-k em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink); margin-left: 6px; font-size: 13px; }
.rc ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; line-height: 1.4; display: grid; gap: 3px; }
.rc-cost, .rc-clear { font-size: 14px; line-height: 1.4; margin: 0; }
.rc-clear { margin-bottom: 8px; }

.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 700px) { .flags { grid-template-columns: 1fr; } }
.flag { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--forest); border-radius: 10px; padding: 16px 18px; }
.flag header { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.flag header span { color: var(--muted); }
.flag dl { display: flex; gap: 24px; margin: 12px 0; }
.flag dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.flag dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.r-high { color: var(--warn); }
.flag ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.45; }
.thumb { margin: 0; }
.thumb .ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #F3F0EA; }
.thumb figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

.merchants { display: grid; gap: 18px; margin-bottom: 20px; }
.merchant { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 24px; }
.merchant h3 { font-family: var(--display); font-size: 34px; font-weight: 600; margin: 0; }
.merchant header p { color: var(--muted); margin: 2px 0 0; }
.merchant.ourfit { border: 2px solid var(--forest); }
.merchant.ourfit header { display: flex; align-items: center; gap: 16px; }
.ourfit-logo { height: 40px; width: auto; }
.pill { background: var(--lime); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.kind { font-size: 18px; margin: 12px 0; }
.from-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; font-size: 14px; color: var(--muted); }
.from-row .thumb { width: 96px; }
.checkpoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .checkpoints { grid-template-columns: 1fr; } }
.checkpoints > div { background: var(--bone); border-radius: 10px; padding: 14px 16px; }
.checkpoints h4 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--forest); }
.checkpoints p { margin: 0; font-size: 15px; line-height: 1.4; }
.from { font-size: 15px; margin: 12px 0; padding: 8px 12px; background: var(--bone); border-radius: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-size: 40px; font-weight: 600; }
.exposure { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.check.big { font-size: 22px; font-weight: 600; }
.check.big input { width: 30px; height: 30px; }
.exposure .note { margin: 6px 0 16px 40px; }
.band-q { font-size: 16px; margin: 0 0 8px; }
.bands { display: flex; flex-wrap: wrap; gap: 8px; }
.band { font: 500 17px var(--ui); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bone); color: var(--ink); cursor: pointer; }
.band.on { background: var(--forest); border-color: var(--forest); color: var(--bone); }
.role-q { font-family: var(--display); font-size: 30px; font-weight: 500; margin: 0; }

.roles { display: grid; gap: 16px; margin-top: 16px; }
.role-btn { font: 500 26px var(--display); text-align: left; padding: 24px 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); cursor: pointer; }
.role-btn:active { border-color: var(--forest); }

.closing { font-family: var(--display); font-size: 30px; line-height: 1.2; color: var(--forest); border-left: 4px solid var(--lime); padding-left: 16px; max-width: 34ch; }
#leadform { display: grid; gap: 12px; max-width: 520px; }
#leadform input:not([type=checkbox]) { font: 19px var(--ui); padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.check input { width: 24px; height: 24px; accent-color: var(--forest); }

.score { font-size: 22px; }
.endgrid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 16px; }
@media (max-width: 700px) { .endgrid { grid-template-columns: 1fr; } }
.qr img { width: 100%; aspect-ratio: 1; display: block; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--rule); }
.qr p { text-align: center; font-weight: 600; }
.board h3 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.board ol, .tvslide ol { padding-left: 24px; margin: 0; }
.board li, .tvslide li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.empty { color: var(--muted); }
.board li.me { background: var(--lime); padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.tv-logo { height: clamp(60px, 9vw, 120px); width: auto; margin: 8px 0 24px; align-self: flex-start; }

body.tv .top-tag { display: none; }
.tvslide { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.tvslide .display { font-size: clamp(56px, 7vw, 110px); }
.tvslide .lede { font-size: 30px; max-width: 40ch; }
.tvslide li { font-size: 30px; padding: 14px 0; }

#staff, .overlay { position: fixed; inset: 0; background: rgba(20,19,15,0.55); display: flex; align-items: center; justify-content: center; z-index: 10; }
.staff-card { background: var(--bone); border-radius: 16px; padding: 24px 28px; width: min(520px, 92vw); display: grid; gap: 12px; }
.staff-card p { margin: 0; line-height: 1.45; }
.staff-card h3 { margin: 0; font-family: var(--display); font-size: 30px; }
.staff-card label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.staff-card select { font: 17px var(--ui); padding: 10px; border-radius: 8px; border: 1px solid var(--rule); }
.staff-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff-actions button { font: 500 15px var(--ui); padding: 12px; border-radius: 10px; border: 1px solid var(--ink); background: transparent; }
.staff-actions .primary { background: var(--forest); color: var(--bone); border-color: var(--forest); }

/* iPad landscape: the round fits on one screen, and the reveal shrinks the tiles so the reasons sit above the fold. */
/* Full frame the stand-in mark is small, so it is drawn darker than in the card. */
.lb .mark { background: radial-gradient(closest-side, rgba(80,52,30,.8), rgba(80,52,30,.5) 55%, rgba(80,52,30,0)); }
.lb .mark.wine { background: radial-gradient(closest-side, rgba(110,20,40,.85), rgba(110,20,40,.5) 55%, rgba(110,20,40,0)); }

/* ---------- motion ----------
   One vocabulary across every screen: parts rise in order (--d is the place in line),
   presses give, outcomes stamp. Everything runs on transform and opacity only. */

.top { view-transition-name: top; }
.queue { view-transition-name: queue; }
::view-transition-old(root) { animation: lift .22s var(--ease) both; }
::view-transition-new(root) { animation: none; }
@keyframes lift { to { opacity: 0; transform: translateY(-14px); } }

#app[data-enter] .rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
#app[data-enter] .words .w { display: inline-block; animation: word .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 55ms + 80ms); }
#app[data-enter] .slide { animation: slide .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
#app[data-enter] .case { animation: deal .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes word { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } }
@keyframes slide { from { opacity: 0; transform: translateX(36px); } }
@keyframes deal { from { opacity: 0; transform: translateX(48px) rotate(0.6deg); } }

/* Below the fold: waits to be scrolled to, then rises. */
#app[data-enter] .onview { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
#app[data-enter] .onview.seen { opacity: 1; transform: none; }

/* Presses give a little, everywhere. */
.btn, .band, .role-btn, .books button, .shot { transition: transform .16s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn:active, .band:active, .books button:active { transform: scale(.96); }
.btn.primary { box-shadow: 0 1px 0 rgba(20, 19, 15, .08), 0 8px 20px -10px rgba(31, 74, 50, .55); }
.btn.primary:active { box-shadow: 0 1px 0 rgba(20, 19, 15, .08); }
.btn.approve:active, .btn.decline:active { transform: scale(.97) translateY(1px); }
.shot:active { transform: scale(.985); }
.loupe { transition: transform .2s var(--spring); }
.shot:active .loupe { transform: scale(1.15); }

/* Intro: the call to play breathes, so a passer-by sees where to tap. */
.pulse { position: relative; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--forest); animation: breathe 2.6s var(--ease) 1.6s infinite; pointer-events: none; }
@keyframes breathe { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }
.figure { position: relative; overflow: hidden; }
.figure::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--lime); transform-origin: left; transform: scaleX(1); }
#app[data-enter] .figure::after { animation: draw .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms + 300ms); }
@keyframes draw { from { transform: scaleX(0); } }
.figure strong { font-variant-numeric: tabular-nums; }

/* Setup: focus is a forest ring, not the browser's blue. */
#leadform input:not([type=checkbox]) { transition: border-color .2s, box-shadow .2s; outline: none; }
#leadform input:not([type=checkbox]):focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 74, 50, .14); }
.setup #leadform { box-shadow: 0 24px 48px -32px rgba(20, 19, 15, .35); }

/* Round: the queue marker glides, the clock is a ring that empties. */
.queue li { transition: background-color .3s var(--ease); }
.queue li::before { transition: background-color .3s, border-color .3s, transform .3s var(--spring); }
.queue li.on::before { transform: scale(1.25); }
.queue li.right::before, .queue li.wrong::before { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.7); } }
.clock { position: relative; width: 104px; height: 104px; margin: 14px auto 0; font-size: 40px; display: grid; place-items: center; transition: opacity .3s; }
.clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 3; }
.clock .track { stroke: var(--rule); }
.clock .arc { stroke: var(--forest); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear, stroke .3s; }
.clock span { position: relative; line-height: 1; font-variant-numeric: tabular-nums; }
.clock span b { font-weight: 600; }
.clock.low .arc { stroke: var(--warn); }
.clock.low span { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.08); } }
.case { box-shadow: 0 30px 60px -40px rgba(20, 19, 15, .35); }

/* The call lands as a stamp on the returned photo, then the evidence slides up. */
.stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg); font: 700 clamp(22px, 2.6vw, 32px)/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; padding: 12px 18px; border: 4px solid currentColor; border-radius: 10px; background: rgba(250, 247, 242, .88); pointer-events: none; animation: stamp .5s var(--spring) both; }
.stamp.ok { color: var(--forest); }
.stamp.no { color: var(--warn); }
@keyframes stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); } 60% { opacity: 1; } }
.ev.claim .shot:has(.stamp.ok) { border-color: var(--forest); }
.ev.claim .shot:has(.stamp.no) { border-color: var(--warn); animation: nudge .4s ease .15s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.verdict { animation: rise .55s var(--ease) .2s both; }
.verdict .flag { animation: rise .55s var(--ease) .35s both; }
.verdict.ok .call { background: #EEF6E0; }
.verdict.no .call { background: #F7E9E2; }

/* Reveal: the leak panel carries a slow light across it, once. */
.leak { position: relative; overflow: hidden; }
.leak::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(201, 242, 78, .12) 50%, transparent 70%); transform: translateX(-100%); pointer-events: none; }
#app[data-enter] .leak::before { animation: sweep 1.8s var(--ease) .4s both; }
@keyframes sweep { to { transform: translateX(100%); } }
.leak-n { font-variant-numeric: tabular-nums; }
.books button:not(.on):active { background: rgba(250, 247, 242, .12); }
.rc { transition: box-shadow .2s; }

/* Rollup: three checkpoints on one line, numbered, joined. */
.checkpoints { position: relative; }
.checkpoints > div { position: relative; padding-top: 44px; }
.step { position: absolute; top: 12px; left: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--lime); font: 700 13px/24px var(--ui); text-align: center; }

/* Role: each answer is a row with somewhere to go. */
.role-btn { display: flex; justify-content: space-between; align-items: center; }
.role-btn span { font-family: var(--ui); font-size: 22px; color: var(--forest); transition: transform .2s var(--ease); }
.role-btn:active { transform: scale(.99); background: var(--bone); }
.role-btn:active span { transform: translateX(6px); }
.band.on { animation: pop .35s var(--spring); }

/* End: the outro. The score lands on a forest panel and lime rings spread out once. */
.end-hero { position: relative; overflow: hidden; background: var(--forest); color: var(--bone); border-radius: 18px; padding: 28px 32px; }
.end-hero .closing { color: var(--bone); margin: 0 0 18px; position: relative; }
.end-hero .display { position: relative; margin-bottom: 8px; }
.end-hero .score { position: relative; margin: 0; opacity: .9; }
.score-n { color: var(--lime); font-weight: 600; font-variant-numeric: tabular-nums; }
.burst { position: absolute; right: 12%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; }
#app[data-enter] .burst i { animation: ring 2.2s var(--ease) both; }
@keyframes ring { 0% { opacity: .8; transform: scale(.2); } 100% { opacity: 0; transform: scale(5); } }
#app[data-enter] .burst i:nth-child(1) { animation-delay: .6s; }
#app[data-enter] .burst i:nth-child(2) { animation-delay: .85s; }
#app[data-enter] .burst i:nth-child(3) { animation-delay: 1.1s; }
.board li.me { position: relative; overflow: hidden; }

/* TV: a thin bar shows how long the slide stays. */
.tv-bar { position: fixed; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--lime); transform-origin: left; animation: dwell 8s linear both; }
@keyframes dwell { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  ::view-transition-old(*), ::view-transition-new(*), ::view-transition-group(*) { animation: none !important; }
  .pulse::after, .burst { display: none; }
}

/* ---------- Ourfit booth look ----------
   Matches Sophie's showcase game: white ground, Manrope bold headings with tight tracking,
   Inter body, sentence-case gray eyebrows, black pill buttons, outline decision buttons,
   gray-100 stages, soft shadows. Mint is right, pink is wrong, lime is Verity. */

html, body { background: #FFFFFF; color: var(--text); }
.display, .case-head h2, .merchant h3, .board h3, .staff-card h3, .role-q, .closing, .checkpoints h4, .stats dd, .leak-n, .figure strong, .clock, .facts .said dd, .role-btn {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
.display { line-height: 1.12; color: var(--ink); text-wrap: balance; font-size: clamp(32px, 4vw, 48px); }
h2.display { font-size: clamp(30px, 3.4vw, 40px); }
.intro .display { font-size: clamp(30px, 3.4vw, 40px); }
.tvslide .display { font-size: clamp(48px, 6vw, 88px); }
.lede { color: var(--gray-700); font-size: 19px; line-height: 1.55; }
.intro .lede { font-size: 17px; }
.line { color: var(--gray-700); }

/* Eyebrows and small labels: sentence case, gray, semibold. */
.kicker, .intro-sub, .queue h3, .facts dt, .rc-k, .flag dt, .books span, .stats dt {
  text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.kicker { font-size: 15px; }
.intro-sub, .queue h3, .facts dt, .flag dt, .books span { font-size: 14px; }
.rc-k { font-size: 13px; }
.kicker.accent { background: var(--butter-100); color: var(--butter-900); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Buttons: black pills, outline pills for the call. */
.btn { min-height: 56px; border: 1.5px solid var(--ink); font-weight: 600; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn.primary:active { box-shadow: var(--shadow-xs); }
.btn.big { min-height: 64px; font-size: 20px; padding: 18px 56px; }
.btn.ghost { border: 0; min-height: 0; }
.btn.approve, .btn.decline { min-height: 64px; background: #FFFFFF; border: 1.5px solid var(--ink); color: var(--ink); box-shadow: var(--shadow-xs); font-size: 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
/* The icons are decoration: the empty alt text after the slash keeps screen readers on the label.
   The plain line before it is the fallback for a Safari too old to read the slash. */
.btn.approve::before { content: '\2713'; content: '\2713' / ''; font-size: 22px; }
.btn.decline::before { content: '\2715'; content: '\2715' / ''; font-size: 20px; }
.btn.approve:active { background: var(--mint-100); }
.btn.decline:active { background: var(--pink-100); }
.pulse::after { border-color: var(--ink); }
.link { color: var(--ink); }

/* Cards and stages. */
.figure, .queue, .case, .merchant, .exposure, .rc, .flag, .setup #leadform { border: 1px solid var(--rule); box-shadow: var(--shadow-xs); }
.case, .merchant, .exposure, .setup #leadform { border-radius: 20px; }
.figure, .queue, .rc { border-radius: 16px; }
.figure strong { color: var(--ink); }
.why { background: var(--bone); color: var(--text); border-radius: 20px; }
.why .intro-sub { color: var(--muted); }
.case { box-shadow: var(--shadow-sm); }
.setup #leadform { box-shadow: var(--shadow-xl); }
.shot { border: 1.5px solid var(--rule); border-radius: 16px; background: var(--bone); }
.ev.claim .shot { border-color: var(--ink); }
.rc-shot, .thumb .ph, .lb-shot { background: var(--bone); }
.loupe { background: #FFFFFF; box-shadow: var(--shadow-sm); font-size: 22px; }
.facts .reason dd { background: var(--butter-100); color: var(--butter-900); border-radius: 999px; padding: 3px 12px; }
.look summary { color: var(--ink); }
.ev figcaption em { color: var(--pink-800); }

/* Inputs: 56px, gray border, black focus with a soft ring. */
#leadform input:not([type=checkbox]) { min-height: 56px; font-size: 18px; border: 1.5px solid var(--gray-300); border-radius: 12px; }
#leadform input:not([type=checkbox]):focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.check input { accent-color: var(--ink); }

/* Round: progress in black, right in mint, wrong in pink. */
.queue li.on { background: var(--bone); }
.queue li.on::before { background: #FFFFFF; border: 2px solid var(--ink); }
.queue li.right::before { background: var(--mint-600); border-color: var(--mint-600); }
.queue li.wrong::before, .queue li.skipped::before { background: var(--pink-600); border-color: var(--pink-600); }
.clock .track { stroke: var(--rule); }
.clock .arc { stroke: var(--ink); }
.clock.low { color: var(--pink-600); }
.clock.low .arc { stroke: var(--pink-600); }
.stamp { background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 12px 22px; font-family: var(--display); letter-spacing: .02em; }
.stamp.ok { color: var(--mint-600); }
.stamp.no { color: var(--pink-600); }
.ev.claim .shot:has(.stamp.ok) { border-color: var(--mint-600); }
.ev.claim .shot:has(.stamp.no) { border-color: var(--pink-600); }
.verdict .call { border-radius: 16px; border: 1px solid var(--rule); }
.verdict.ok .call { background: var(--mint-50); border-color: var(--mint-200); }
.verdict.no .call { background: var(--pink-50); border-color: var(--pink-200); }
.verdict.ok .call strong { color: var(--mint-600); }
.verdict.no .call strong { color: var(--pink-600); }
.flag { border-left: 4px solid var(--lime); border-radius: 16px; }
.flag.clear { border-left-color: var(--gray-300); }
.r-high { color: var(--pink-800); }
.overlay#lightbox { background: rgba(28, 28, 26, .94); }

/* Reveal: the Verity moment, so black and lime. Recap cards carry mint or pink. */
.leak { background: var(--ink); border-radius: 20px; }
.leak::before { background: linear-gradient(100deg, transparent 30%, rgba(215, 255, 129, .14) 50%, transparent 70%); }
.books button { border-color: rgba(255, 255, 255, .4); }
.rc { border-top: 1px solid var(--rule); box-shadow: inset 0 5px 0 var(--mint-600), var(--shadow-xs); }
.rc.no { box-shadow: inset 0 5px 0 var(--pink-600), var(--shadow-xs); }
.rc-out { background: var(--mint-600); color: #FFFFFF; border-radius: 999px; }
.rc.no .rc-out { background: var(--pink-600); }
.tag.quiet { background: var(--bone); color: var(--ink); border-color: var(--rule); }

/* Rollup and role. */
.merchant.ourfit { border: 1.5px solid var(--ink); }
.checkpoints > div, .from { background: var(--bone); border-radius: 12px; }
.checkpoints h4 { color: var(--ink); font-size: 22px; }
.step { background: var(--ink); color: #FFFFFF; font-family: var(--display); }
.band { background: #FFFFFF; border: 1.5px solid var(--gray-300); }
.band.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.role-btn { font-size: 22px; font-weight: 600; border-radius: 20px; box-shadow: var(--shadow-xs); }
.role-btn span { color: var(--ink); }
.role-q { font-size: 26px; }

/* End: score on black with lime, the Verity sign-off. */
.end-hero { background: var(--ink); border-radius: 20px; }
.end-hero .closing { color: #FFFFFF; }
.closing { font-size: 26px; line-height: 1.25; color: var(--ink); }
.qr img { border-radius: 16px; }
.board li.me { background: var(--lime); }
.staff-card { background: #FFFFFF; border-radius: 20px; box-shadow: var(--shadow-xl); }
.staff-actions button { border-radius: 999px; border-width: 1.5px; }
.staff-actions .primary { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.lockup-rule { background: var(--gray-300); opacity: 1; }
/* Inter sets wider than the old face, so the five facts may wrap rather than run off the card. */
.facts { gap: 10px 16px; }
.facts dd { font-size: 16px; white-space: normal; }
.queue li.on::before { transform: none; left: 8px; }
.shot { height: clamp(220px, 29vh, 480px); }
.decide { margin-top: 16px; }
.leak .books span { color: rgba(255, 255, 255, .72); }
.end-hero .display { color: #FFFFFF; }
.tvslide .kicker { font-size: 24px; }
.tv-bar { background: var(--ink); }

/* ---------- phones and small tablets ----------
   viewport-fit=cover hands the notch and home bar to the page, so the page keeps clear of them. */
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.link { padding: 10px 0; margin: -10px 0; }
/* Touch targets: a finger needs about 44px, so the consent row and the book switch grow to it. */
.check { min-height: 44px; }
.books button { min-height: 44px; }
@media (max-width: 860px) {
  /* A bare 1fr column will not shrink below its content, so the queue's sideways list stretched the card off screen. */
  .screen.round { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .queue { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 14px; }
  .queue h3 { grid-column: 1 / -1; margin: 0; }
  .clock { width: 64px; height: 64px; margin: 0; font-size: 24px; }
}
@media (max-width: 600px) {
  .top { padding: 12px 16px 0; gap: 12px; }
  .top-tag { display: none; }
  .lockup { gap: 10px; }
  .lockup img { height: 24px; }
  .lockup img + .lockup-rule + img { height: 18px; }
  .lockup-rule { height: 22px; }
  .screen { padding: 16px 16px 28px; }
  .case { padding: 16px; }
  .evidence { gap: 10px; }
  .decide { gap: 10px; position: sticky; bottom: 0; z-index: 2; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); border-top: 1px solid var(--rule); border-radius: 0 0 20px 20px; }
  .facts .reason dd { border-radius: 10px; }
  .btn.approve, .btn.decline { font-size: 16px; padding: 14px 8px; gap: 6px; white-space: nowrap; }
  .btn.big { padding: 16px 28px; width: 100%; }
  .actions .btn { width: 100%; }
  .leak { padding: 20px; }
  .end-hero { padding: 22px 20px; }
  .rc { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .role-btn { padding: 18px 20px; font-size: 19px; }
}

/* ---------- intro, full screen ----------
   The opening screen fills the iPad: a wider column, bigger type, and the rows spread down
   the height instead of stacking in the middle. "Who does what" names who owns which
   product before anyone plays. */
.screen.intro { max-width: 1320px; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px 48px 28px; }
.intro .display { font-size: clamp(32px, 3.9vw, 54px); max-width: 30ch; margin-bottom: 12px; }
.intro .lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 84ch; margin: 0; }
.intro .intro-sub { margin-bottom: 12px; }
.who ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.who li { position: relative; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.who li:first-child { border-left: 4px solid var(--lime); }
.who li + li::before { content: '\2192'; content: '\2192' / ''; position: absolute; left: -32px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--muted); }
.who img { height: 22px; width: auto; align-self: flex-start; }
.who strong { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 22px; letter-spacing: -0.025em; }
.who-tag { font-size: 14px; font-weight: 600; color: var(--muted); }
.who p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.who li.you { background: var(--ink); border-color: var(--ink); }
.who li.you strong { color: #FFFFFF; }
.who li.you .who-tag { color: var(--lime); }
.who li.you p { color: rgba(255, 255, 255, .82); }
.intro .figures { gap: 16px; margin: 0; }
.intro .figure { padding: 16px 18px; }
.intro .figure strong { font-size: clamp(34px, 3.4vw, 46px); }
.intro .figure span { font-size: 16px; }
.intro .cite { margin: 0; font-size: 15px; color: var(--text); }
.intro .cite b { font-weight: 600; }
.intro .cite small { display: inline; margin-left: 6px; }
.intro-foot { display: flex; justify-content: flex-end; }
.intro .why { padding: 16px 22px; }
.intro .why ul { grid-template-columns: 1fr 1fr; gap: 8px 32px; font-size: 16px; }
.intro .actions { margin: 0; }
@media (max-width: 1000px) {
  .intro-foot { grid-template-columns: 1fr; }
  .intro .actions { justify-content: flex-end; }
}
@media (max-width: 860px) {
  .screen.intro { padding: 20px 24px 28px; }
}
@media (max-width: 700px) {
  .who ol { grid-template-columns: 1fr; gap: 28px; }
  .who li + li::before { content: '\2193'; content: '\2193' / ''; left: 50%; top: -26px; transform: translateX(-50%); }
  .intro .why ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .screen.intro { padding: 16px 16px 28px; }
  .intro .actions .btn { width: 100%; }
}
/* Landscape iPads under about 900px tall (Air, 11in Pro) have the width but not the height. */
@media (min-width: 1000px) and (max-height: 900px) {
  .screen.intro { gap: 12px; padding-top: 12px; padding-bottom: 20px; }
  .intro .kicker { margin-bottom: 6px; }
  .intro .display { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 8px; }
  .intro .lede { font-size: 17px; }
  .intro .intro-sub { margin-bottom: 8px; }
  .who li { padding: 12px 18px; gap: 6px; }
  .who p { font-size: 15px; line-height: 1.4; }
  .intro .figure { padding: 12px 16px; gap: 4px; }
  .intro .figure strong { font-size: 34px; }
  .intro .figure span { font-size: 15px; }
  .intro .why { padding: 12px 20px; }
  .intro .btn.big { min-height: 56px; padding: 14px 44px; }
}
@media (min-width: 700px) and (max-width: 860px) and (max-height: 1180px) {
  .screen.intro { gap: 14px; }
  .who li { padding: 14px 16px; }
  .who p { font-size: 15px; }
}

/* Why it matters to acquirers and PSPs: moved from the intro to the end screen, where
   the player has just seen the problem for themselves. */
.end .why { margin-top: 20px; padding: 18px 24px; }
.end .why .intro-sub { margin: 0 0 10px; }
.end .why ul { grid-template-columns: 1fr 1fr; gap: 8px 32px; font-size: 16px; }
@media (max-width: 700px) { .end .why ul { grid-template-columns: 1fr; } }
@media (min-width: 1000px) and (max-height: 900px) {
  .end .endgrid { grid-template-columns: 200px 1fr; }
  .end .why { margin-top: 14px; padding: 14px 22px; }
}

/* intro: the line that ties merchant figures to the acquirer's book */
.intro .intro-bridge { margin: 14px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); border-left: 3px solid var(--lime); padding-left: 12px; }

/* ---------- claim card v2: the request in one line, the test, consequence buttons ---------- */
.case-head .ask { font-family: var(--display); font-size: 30px; line-height: 1.15; font-weight: 600; margin: 4px 0 0; max-width: 30ch; }
.reason-chip { display: inline-block; background: var(--butter-100); color: var(--butter-900); border-radius: 999px; padding: 2px 10px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; }
.facts .said dd { font-size: 20px; font-family: var(--ui); font-style: italic; color: var(--text); }
.test { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--gray-50); border: 1px dashed var(--gray-300); font-size: 18px; line-height: 1.35; }
.test span { font-weight: 700; margin-right: 4px; }
.decide { margin-top: 14px; }
.btn.approve, .btn.decline { text-align: left; }
.btn.approve > span, .btn.decline > span { display: flex; flex-direction: column; line-height: 1.15; }
.btn.approve small, .btn.decline small { font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.btn[disabled] { opacity: .45; }
.streak { display: inline-block; margin: 10px 0 0; background: var(--lime); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.round.held .case { border-top: 4px solid var(--pink-600); }
.held-by { margin: 4px 0 14px; }

/* ---------- the result, over a blurred claim ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(28, 28, 26, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .25s ease both; }
.scrim .verdict { margin: 0; width: min(640px, 100%); max-height: calc(100% - 16px); overflow: auto; background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-xl); animation: pop .4s var(--ease) both; border-top: 8px solid var(--mint-600); }
.scrim .verdict.no { border-top-color: var(--pink-600); }
.v-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-head h2 { font-family: var(--display); font-size: 40px; margin: 0; line-height: 1; }
.verdict.ok .v-head h2 { color: var(--mint-600); }
.verdict.no .v-head h2 { color: var(--pink-600); }
.v-head .pts { font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--ink); color: var(--lime); border-radius: 999px; padding: 4px 12px; animation: pop .5s var(--ease) .2s both; }
.v-head .streak { margin: 0; }
.v-chose { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.v-why { margin: 6px 0 14px; font-size: 21px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.v-line { margin: 14px 0 0; font-size: 15px; color: var(--gray-700); }
.scrim .actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.scrim .verdict .flag { animation: none; margin-top: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- linked accounts ---------- */
.links { margin-top: 8px; }
.net { position: relative; height: 150px; border-radius: 16px; background: var(--gray-50); border: 1px solid var(--rule); margin-top: 8px; }
.net .acct { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--pink-100); color: var(--pink-800); border: 2px solid var(--pink-600); }
.net { height: 170px; }
.net .acct { width: 44px; height: 44px; transform: translate(-50%, -50%); z-index: 1; }
.net .a0 { left: 18%; top: 50%; width: 56px; height: 56px; background: var(--ink); color: var(--bone); border-color: var(--ink); }
.net .a1 { left: 80%; top: 18%; } .net .a2 { left: 80%; top: 50%; } .net .a3 { left: 80%; top: 82%; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.net line { stroke: var(--pink-600); stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.net .via { position: absolute; left: 49%; transform: translate(-50%, -50%); font-style: normal; font-size: 12px; font-weight: 600; color: var(--pink-800); background: var(--gray-50); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.net .v1 { top: 30%; } .net .v2 { top: 50%; } .net .v3 { top: 70%; }
.held-grid.no-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rc-shot .links .net .via { display: none; }
.links-line { font-weight: 700; font-size: 18px; margin: 10px 0 4px; }
.links ul { margin: 0; padding-left: 20px; line-height: 1.5; }
.rc-shot .links .net { height: 100%; margin: 0; }
.rc-shot .links .ev-head, .rc-shot .links-line, .rc-shot .links ul { display: none; }

/* ---------- round 2: the queue ---------- */
.screen.queue2 { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.q-head .display { margin: 4px 0 8px; }
.q-head .lede { max-width: 60ch; }
.q-body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 10px 8px; min-height: 76px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-xs); overflow: hidden; }
.tile span { font-weight: 700; font-size: 14px; }
.tile small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { font-size: 13px; margin-top: auto; }
.tile em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--pink-800); }
.tile::after { content: ''; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.queue2.scan .tile:not(.is-held) { animation: probe .3s ease calc(var(--i) * 85ms + 150ms) both, clear .35s ease calc(var(--i) * 85ms + 300ms) both; }
.queue2.scan .tile:not(.is-held)::after { animation: dotok .35s ease both; animation-delay: calc(var(--i) * 85ms + 300ms); }
.queue2.scan .tile { animation: probe .3s ease calc(var(--i) * 85ms + 150ms) both; }
.queue2 .tile em { display: none; }
.queue2.sorted .tile:not(.is-held) { background: var(--mint-50); border-color: var(--mint-200); opacity: .55; }
.queue2.sorted .tile:not(.is-held)::after { background: var(--mint-600); }
.queue2.sorted .tile.is-held { background: var(--pink-50); border-color: var(--pink-600); box-shadow: 0 0 0 3px var(--pink-200); animation: pop .4s var(--ease) both; }
.queue2.sorted .tile.is-held::after { background: var(--pink-600); }
.queue2.sorted .tile.is-held em { display: block; }
@keyframes clear { to { background: var(--mint-50); border-color: var(--mint-200); opacity: .55; } }
@keyframes dotok { to { background: var(--mint-600); } }
@keyframes probe { 50% { box-shadow: 0 0 0 3px var(--lime); } }
.checks { background: var(--ink); color: var(--bone); border-radius: 20px; padding: 18px; }
.checks h3 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; color: var(--lime); }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 1fr; gap: 1px; }
.ck-name { font-weight: 700; font-size: 15px; }
.checks small { color: #BDBDBD; font-size: 12px; }
.checks .bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.checks .bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.queue2.scan .checks .bar i { animation: fill 2.8s linear calc(var(--c) * 60ms) both; }
.queue2.sorted .checks .bar i { width: 100%; }
@keyframes fill { to { width: 100%; } }
.queue2 .actions { display: flex; justify-content: flex-end; min-height: 64px; }
@media (max-width: 860px) { .q-body { grid-template-columns: 1fr; } .checks ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; } }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .checks ul { grid-template-columns: 1fr 1fr; } }

/* ---------- scoreboard on the recap ---------- */
.vs { margin-bottom: 18px; }
.vs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.vs-grid > div { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; }
.vs-grid .with { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.vs-grid .with .vs-n { color: var(--lime); }
.vs-k { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vs-n { margin: 4px 0; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; }
.vs-grid p:last-child { margin: 0; font-size: 15px; }
.end .rank { margin: 6px 0 0; display: inline-block; background: var(--lime); color: var(--ink); font-weight: 700; padding: 4px 14px; border-radius: 999px; }
@media (max-width: 700px) { .vs-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .scrim, .scrim .verdict { animation: none; } }
.held-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.held-grid .held-by, .held-grid > .flag { margin: 26px 0 0; }
.round.held .shot { height: clamp(200px, 30vh, 420px); }
@media (max-width: 860px) { .held-grid { grid-template-columns: 1fr; } .held-grid .held-by, .held-grid > .flag { margin-top: 0; } }
/* Landscape iPads under about 900px tall: the claim card has to fit without scrolling. */
@media (min-width: 1000px) and (max-height: 900px) {
  .case-head .ask { font-size: 26px; }
  .facts { margin: 10px 0; }
  .facts .said dd { font-size: 18px; }
  .shot, .round.held .shot { height: clamp(170px, 23vh, 420px); }
  .test { margin-top: 12px; padding: 10px 14px; font-size: 17px; }
  .decide { margin-top: 12px; }
}
/* Portrait iPads: on a held claim the reasons stack above the photos, so the photos give way. */
@media (min-width: 700px) and (max-width: 860px) { .round.held .shot { height: clamp(180px, 21vh, 300px); } .held-grid .held-by { margin-bottom: 0; } }
/* iPad mini portrait: the narrowest iPad, so the longest claims wrap to an extra line. */
@media (min-width: 700px) and (max-width: 780px) { .shot { height: clamp(200px, 26vh, 320px); } .round.held .shot { height: clamp(170px, 16vh, 240px); } }
@media (min-width: 700px) and (max-width: 860px) { .case-head .ask { max-width: none; font-size: 26px; } }
