/* Election Game: one stylesheet for the TV (body.tv) and phones (body.phone).
   Change the look from the variables first. */

/* ---------- fonts (self-hosted, public/fonts/) ---------- */

@font-face { font-family: 'Caslon'; src: url(fonts/Libre_Caslon_Text/LibreCaslonText-Regular.ttf); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Caslon'; src: url(fonts/Libre_Caslon_Text/LibreCaslonText-Italic.ttf); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'Caslon'; src: url(fonts/Libre_Caslon_Text/LibreCaslonText-Bold.ttf); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Franklin'; src: url(fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Franklin'; src: url(fonts/Libre_Franklin/LibreFranklin-Italic-VariableFont_wght.ttf); font-weight: 100 900; font-style: italic; font-display: block; }

/* ---------- variables ---------- */

:root {
	/* paper and ink */
	--paper: #f7f4ec;
	--paper-2: #eee9dd;       /* boxes and sidebars */
	--ink: #161616;
	--ink-2: #555049;         /* secondary text */
	--ink-3: #8d877c;         /* captions */
	--rule: #d3ccbc;

	/* accents */
	--accent: #1e5aa8;        /* blue: buttons, chosen options, highlights */
	--accent-soft: #e1e9f4;
	--alert: #b3261e;         /* red: last seconds, eliminations, errors */

	/* poll answers: strongly disagree → strongly agree */
	--bar-0: #b5530f;
	--bar-1: #f1aa63;
	--bar-2: #93cc8b;
	--bar-3: #2e7a3c;

	/* players, in join order */
	--p0: #6d3f8f;  /* plum */
	--p1: #0f7a78;  /* teal */
	--p2: #b8860b;  /* mustard */
	--p3: #8b5a3c;  /* brown */
	--p4: #b8336a;  /* raspberry */
	--p5: #4a5888;  /* slate */
	--p6: #6b8e23;  /* olive */
	--p7: #5c6670;  /* graphite */

	--serif: 'Caslon', Georgia, 'Times New Roman', serif;
	--sans: 'Franklin', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--serif); line-height: 1.4; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input { font: inherit; color: inherit; }
p { margin: 0 0 0.6em; }

.banner { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--alert); color: #fff; font-family: var(--sans); font-size: 0.85rem; padding: 0.5rem 1rem; text-align: center; }

/* ---------- masthead ---------- */

.masthead { text-align: center; }
.nameplate { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1; letter-spacing: 0.005em; }
.dateline {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em;
	font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2);
	border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
}
.dateline > :first-child { text-align: left; }
.dateline > :last-child { text-align: right; }
.dateline .stage { color: var(--ink); }

/* ---------- story type ---------- */

.kicker { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); margin: 0 0 0.5em; }
.headline { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 0.3em; text-wrap: balance; }
.deck { font-style: italic; color: var(--ink-2); text-wrap: balance; }
.lede p { text-wrap: pretty; }
.slogan { font-style: italic; margin: 0; }
.slogan::before { content: '\201C'; }
.slogan::after { content: '\201D'; }
.slogan.none::before, .slogan.none::after { content: none; }
.section-label { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75em; color: var(--ink-2); margin: 0 0 0.6em; }
.note { font-family: var(--sans); font-size: 0.8em; color: var(--ink-3); }
.wait { font-style: italic; color: var(--ink-2); }
.error { font-family: var(--sans); font-size: 0.85em; color: var(--alert); min-height: 1.2em; }
.auto { font-family: var(--sans); color: var(--ink-3); margin: 0; }

/* ---------- buttons ---------- */

.btn {
	display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
	font-family: var(--sans); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
	padding: 0.85em 1.8em; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.quiet { border-color: var(--rule); color: var(--ink-2); }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn:focus-visible, .field:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- people ---------- */

.avatar {
	--c: var(--ink-3);
	display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%;
	background: var(--c); color: #fff; font-family: var(--sans); font-weight: 700;
	box-shadow: 0 0 0 0.14em var(--paper), 0 0 0 0.3em var(--c);  /* paper gap, then the player's color */
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 1.5em; height: 1.5em; font-size: 0.85em; box-shadow: 0 0 0 0.08em var(--paper), 0 0 0 0.18em var(--c); }
.avatar.sm { width: 2.2em; height: 2.2em; box-shadow: 0 0 0 0.1em var(--paper), 0 0 0 0.22em var(--c); }
.avatar.md { width: 3.6em; height: 3.6em; font-size: 1.1em; }
.avatar.lg { width: 6em; height: 6em; font-size: 1.6em; }
.avatar.xl { width: 9em; height: 9em; font-size: 2em; max-width: 240px; max-height: 240px; }

.person { display: inline-flex; align-items: center; gap: 0.6em; }
.person .name { font-family: var(--sans); font-weight: 650; }
.person.stack { flex-direction: column; gap: 0.55em; text-align: center; }
.person.stack.lg .name { font-family: var(--serif); font-weight: 700; font-size: 1.35em; }
.person.away .name { font-style: italic; }

.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4em 2.2em; }
.progress .person.waiting { opacity: 0.35; }
.progress .person .note { margin-top: -0.3em; }
.progress .person.done .note { color: var(--accent); font-weight: 700; }

/* ---------- poll bars ---------- */

.bar { display: flex; width: 100%; height: 1.25em; background: var(--paper-2); }
.bar .seg { display: grid; place-items: center; min-width: 1.2em; overflow: hidden; font-family: var(--sans); font-weight: 700; font-size: 0.72em; }
.s0 { background: var(--bar-0); color: #fff; }
.s1 { background: var(--bar-1); color: var(--ink); }
.s2 { background: var(--bar-2); color: var(--ink); }
.s3 { background: var(--bar-3); color: #fff; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 1.3em; font-family: var(--sans); font-size: 0.75em; color: var(--ink-2); margin-bottom: 0.8em; }
.legend .swatch { display: inline-block; width: 0.85em; height: 0.85em; margin-right: 0.4em; vertical-align: -0.08em; }

.position { text-align: left; }
.position .issue { margin: 0 0 0.3em; }
.position .stance { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78em; margin: 0 0 0.4em; }
.stance.v0 { color: var(--bar-0); }
.stance.v1 { color: #a8641e; }
.stance.v2 { color: #3f8a3a; }
.stance.v3 { color: var(--bar-3); }
.position .mine { font-family: var(--sans); font-size: 0.8em; color: var(--ink-2); margin: 0.35em 0 0; }

/* ---------- tables ---------- */

.board { border-collapse: collapse; font-family: var(--sans); }
.board th { font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2); text-align: left; padding: 0.4em 0.9em; border-bottom: 2px solid var(--ink); }
.board td { padding: 0.4em 0.9em; border-bottom: 1px solid var(--rule); text-align: left; }
.board .num.zero { color: var(--ink-3); font-weight: 400; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .gain { color: var(--accent); font-weight: 700; }
.board .tag { color: var(--alert); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75em; }
.board tr.out .name { text-decoration: line-through; text-decoration-color: var(--alert); }
/* final leaderboard: the two finalists are out of the running for Statesman of the Year */
.board tr.finalist td, .board tr.finalist .gain { color: var(--ink-3); }
.board tr.finalist .name { text-decoration: line-through; }
.board tr.finalist .avatar { filter: grayscale(1); opacity: 0.5; }

/* ---------- reveals ---------- */

.reveal-list { display: grid; gap: 1.2em 3em; width: 100%; }
.endorse-row { display: flex; align-items: center; justify-content: center; gap: 1em; }
.endorse-row .verb { font-style: italic; color: var(--ink-2); }
.reveal-card { text-align: left; border-top: 1px solid var(--ink); padding-top: 0.7em; }
.reveal-card .label { font-family: var(--sans); font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin: 0.7em 0 0.3em; }
.reveal-card .quote { font-size: 1.25em; font-style: italic; margin: 0.5em 0 0.2em; }
.reveal-card .quote::before { content: '\201C'; }
.reveal-card .quote::after { content: '\201D'; }
.reveal-card .byline { font-family: var(--sans); font-size: 0.75em; color: var(--ink-3); }

@keyframes fade-in { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
.fresh { animation: fade-in 0.6s ease-out both; }
@media (prefers-reduced-motion: reduce) { .fresh { animation: none; } }

/* ======================================================================== TV */
/* sized for a 16:9 screen; everything scales with the window, no scrolling */

html:has(body.tv) { font-size: min(calc(100vh / 54), calc(100vw / 96)); }  /* 20px at 1920×1080 */
body.tv { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

.tv .masthead { padding: 1.1rem 3rem 0; }
.tv .nameplate { font-size: 3.4rem; padding-bottom: 0.6rem; }
.tv .dateline { font-size: 0.72rem; padding: 0.45rem 0; }

.tv main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 1.6rem 4rem 1.4rem; }
.tv .story { flex: 1; min-height: 0; width: 100%; max-width: 80rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tv .kicker { font-size: 0.85rem; }
.tv .headline { font-size: 3.5rem; max-width: 62rem; }
.tv .deck { font-size: 1.35rem; max-width: 48rem; margin: 0.2rem 0 1.4rem; }
.tv .lede { font-size: 1.3rem; max-width: 46rem; text-align: left; margin-top: 0.8rem; column-gap: 2.5rem; }
.tv .lede p { margin-bottom: 0.75em; }
.tv .lede p:first-child::first-letter { font-size: 3.1em; float: left; line-height: 0.85; padding: 0.06em 0.08em 0 0; font-weight: 700; }
.tv .actions { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.tv .btn { font-size: 0.8rem; }
.tv .auto { font-size: 0.75rem; }
.tv .section-label { font-size: 0.75rem; }

.tv .clock { position: absolute; top: 1.2rem; right: 3rem; text-align: right; font-family: var(--sans); font-weight: 300; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tv .clock small { display: block; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.3rem; }
.clock.warn, .clock.warn small { color: var(--alert); }

.tv #force { position: fixed; right: 0.6rem; bottom: 0.6rem; font-size: 0.55rem; padding: 0.4em 0.8em; opacity: 0.3; }
.tv #force:hover { opacity: 1; }

/* home and lobby */
.tv #home .deck { margin-top: 3rem; }
.tv #home .actions { flex-direction: row; gap: 1rem; margin-top: 1.5rem; }
.tv .join-code { font-family: var(--sans); font-weight: 800; font-size: 6.5rem; letter-spacing: 0.16em; line-height: 1; margin: 0.4rem 0 2rem; padding-left: 0.16em; }
.tv #lobby_players { font-size: 1rem; }

/* progress rows */
.tv .progress { font-size: 1.25rem; margin-top: 1.5rem; }
.tv .progress-label { margin-top: 2rem; }

/* campaign issues */
.tv .top-issues { list-style: none; counter-reset: issue; padding: 0; margin: 0.6rem 0 0; width: 100%; max-width: 60rem; }
.tv .top-issues li { counter-increment: issue; font-size: 1.9rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); display: flex; gap: 1rem; text-align: left; }
.tv .top-issues li:last-child { border-bottom: 1px solid var(--rule); }
.tv .top-issues li::before { content: counter(issue); font-family: var(--sans); font-weight: 300; color: var(--ink-3); min-width: 1.5em; }

/* ads: presenter on the left, the chart on the right, positions beneath */
.tv .ad { display: grid; grid-template-columns: 24rem 1fr; gap: 3.5rem; width: 100%; align-items: center; margin-top: 0.6rem; }
.tv .ad-who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
.tv .ad-who .headline { font-size: 3rem; margin: 0.4rem 0 0; }
.tv .ad-who .slogan { font-size: 1.5rem; color: var(--ink-2); }
.tv .chart { margin: 0; text-align: left; }
.tv .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--ink); stroke-width: 1; }
.chart .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .value { font-size: 16px; font-weight: 700; }
.tv .stances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; width: 100%; border-top: 1px solid var(--ink); padding-top: 1rem; margin-top: 1.6rem; }
.tv .stances .issue { font-size: 1.3rem; }

/* votes */
.tv #vote_cands { font-size: 1.1rem; margin-top: 0.6rem; }

/* results */
.tv .results { display: flex; gap: 4rem; justify-content: center; align-items: flex-start; margin-top: 0.4rem; }
.tv .results .board { min-width: 30rem; }
.tv .results .section-label { text-align: left; }

/* reveals */
.tv .reveal-list { font-size: 1.3rem; max-width: 72rem; margin-top: 0.6rem; }
.tv #scandal_items { font-size: 1.6rem; gap: 2rem 5rem; margin-top: 1.5rem; }
.tv #scandal_items .reveal-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tv .reveal-list.cols { grid-template-columns: repeat(2, 1fr); }
.tv .reveal-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tv .endorse-row { font-size: 1.4rem; }

/* scoreboard */
.tv .board { font-size: 1.4rem; min-width: 38rem; }
.tv .board td:first-child { min-width: 18rem; }

/* full poll */
.tv .poll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem 3rem; width: 100%; font-size: 1.05rem; margin-top: 0.4rem; }
.tv .page-note { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-3); margin-top: 0.8rem; }

/* debate: the speaker as the story, everything else in a sidebar */
.tv .debate { display: grid; grid-template-columns: 1fr 32rem; gap: 3.5rem; width: 100%; align-items: start; margin-top: 0.4rem; }
.tv .deb-main { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding-top: 1rem; }
.tv .deb-main .headline { font-size: 3.4rem; margin: 0.4rem 0 0; }
.tv .deb-main .slogan { font-size: 1.6rem; color: var(--ink-2); }
.tv .sidebar { text-align: left; background: var(--paper-2); border-top: 3px solid var(--ink); padding: 1.1rem 1.5rem 0.6rem; font-size: 1.05rem; }
.tv .sidebar .section-label { margin-top: 0.4rem; }
.tv .sidebar .position { margin-bottom: 0.8rem; }
.tv .sidebar .scandal-text { font-style: italic; margin-bottom: 0.9rem; }
.tv .sidebar .people { justify-content: flex-start; gap: 0.6rem 1.2rem; margin-bottom: 0.8rem; }

/* the end */
.tv .end { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; width: 100%; align-items: start; margin-top: 0.4rem; }
.tv .end-winner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tv .end-winner .headline { font-size: 3.2rem; }
.tv .tallies { display: flex; gap: 2rem; justify-content: center; font-size: 1.05rem; }
.tv .tallies .count { font-family: var(--sans); font-weight: 700; margin-left: 0.4em; }
.tv .statesman { border-top: 1px solid var(--ink); padding-top: 0.8rem; margin-top: 0.4rem; }
.tv .statesman .people { font-size: 1.05rem; }
.tv .end .board { width: 100%; min-width: 0; }

/* ======================================================================== phone */

body.phone { max-width: 32rem; margin: 0 auto; padding: 0 1.1rem 3rem; font-size: 17px; text-align: center; }

.phone .masthead { padding-top: 0.8rem; }
.phone .nameplate { font-size: 1.75rem; padding-bottom: 0.5rem; }
.phone .dateline { font-size: 0.68rem; padding: 0.35rem 0; grid-template-columns: 1fr auto; }
.phone .dateline .me { display: inline-flex; align-items: center; gap: 0.5em; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink); }
.phone .clock { font-family: var(--sans); font-weight: 400; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink); }

.phone section { padding-top: 1.3rem; }
.phone .headline { font-size: 1.75rem; }
.phone .kicker { font-size: 0.7rem; }
.phone .lede { text-align: center; }
.phone .btn { display: block; width: 100%; min-height: 3.1rem; margin: 0.7rem 0 0.4rem; font-size: 0.85rem; }
.phone .actions { margin-top: 1rem; }
.phone .auto { font-size: 0.8rem; margin-top: 0.8rem; }
.phone .prompt { font-size: 1.1rem; margin: 1.2rem 0 0.8rem; }
.phone section > .prompt:first-child { margin-top: 0.2rem; }

.field { display: block; width: 100%; font-family: var(--serif); font-size: 1.1rem; padding: 0.7em 0.8em; margin: 0.5rem 0; border: 1px solid var(--ink); border-radius: 0; background: #fffdf8; }
.field:disabled { color: var(--ink-2); background: transparent; border-color: var(--rule); }
.field.code { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-size: 1.6rem; }

/* ballots: hidden real inputs; a square box that fills in when chosen */
.ballot { position: relative; display: flex; align-items: center; gap: 0.7em; min-height: 3rem; padding: 0.55em 0.75em; border: 1px solid var(--rule); background: #fffdf8; cursor: pointer; text-align: left; font-family: var(--sans); font-size: 0.9rem; }
.ballot input { position: absolute; opacity: 0; pointer-events: none; }
.ballot .box { flex: none; display: grid; place-items: center; width: 1.25em; height: 1.25em; border: 2px solid var(--ink); background: #fff; }
.ballot input:checked + .box { background: var(--accent); border-color: var(--accent); }
.ballot input:checked + .box::after { content: '✓'; color: #fff; font-size: 0.85em; font-weight: 800; }
.ballot:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ballot:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.ballot:has(input:disabled) { cursor: default; }
.ballot:has(input:disabled:not(:checked)) { opacity: 0.45; }
.ballot .label { flex: 1; }
.ballot-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.6rem 0; }
.ballot-list .ballot { font-size: 1rem; }
.ballot-list .ballot.text { font-family: var(--serif); font-size: 1.05rem; }

.ballot-q { text-align: left; border-top: 1px solid var(--rule); padding: 0.9rem 0 1rem; }
.ballot-q .issue { font-size: 1.15rem; margin: 0 0 0.6rem; }
.ballot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }

/* picture picker */
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 0.6rem; margin: 0.8rem 0 1.2rem; }
.picker button { border: none; background: none; padding: 0.35rem; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.picker button.mine { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker button:disabled { cursor: default; opacity: 0.25; filter: grayscale(1); }
.picker .avatar { width: 4.2rem; height: 4.2rem; box-shadow: none; }

/* approval slider */
.rate { margin: 1.4rem 0 0.4rem; }
.rate input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.6rem; background: transparent; margin: 0; }
.rate input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--alert), var(--rule) 50%, var(--accent)); }
.rate input[type=range]::-moz-range-track { height: 6px; background: linear-gradient(to right, var(--alert), var(--rule) 50%, var(--accent)); }
.rate input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: calc(3px - 1rem); border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.rate input[type=range]::-moz-range-thumb { width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.rate .scale { display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rate .scale :first-child { color: var(--alert); }
.rate .scale :last-child { color: var(--accent); }

.phone .presenter { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.phone .presenter .name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }
.phone .positions { text-align: left; border-top: 1px solid var(--ink); padding-top: 0.7rem; margin-top: 0.8rem; }
.phone .positions .position { margin-bottom: 0.7rem; }
.phone .summary .position, .phone .full-poll .position { border-top: 1px solid var(--rule); padding: 0.8rem 0; }
.phone .reveal-list { gap: 1rem; margin-top: 0.6rem; }
.phone .endorse-row { flex-wrap: wrap; }
.phone .board { width: 100%; font-size: 0.95rem; margin-top: 0.6rem; }
.phone .board td, .phone .board th { padding: 0.4em 0.5em; }
.phone .breakdown { list-style: none; padding: 0; margin: 0.8rem 0; font-family: var(--sans); }
.phone .breakdown li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
.phone .breakdown .pts { color: var(--accent); font-weight: 700; }
.phone .total { font-family: var(--sans); font-weight: 700; margin-top: 0.8rem; }
.phone .big-person { margin: 0.4rem 0 1rem; }
.phone .winners { font-family: var(--sans); text-align: left; border-top: 1px solid var(--ink); padding-top: 0.6rem; }
.phone .winners .people { justify-content: flex-start; margin: 0.4rem 0 0.9rem; gap: 0.5rem 1rem; }
.phone .headline.alert { color: var(--alert); }
.phone .scandal-for { display: flex; justify-content: flex-start; margin-top: 1rem; }
