:root {
  color-scheme: light;
  --paper: #f8f2e3;
  --paper-light: #fffbf0;
  --pine: #17392d;
  --pine-deep: #102d24;
  --ink: #262c22;
  --muted: #595c4b;
  --line: #ded3b8;
  --gold: #f5cf7b;
  --cranberry: #9f343d;
  --cream: #fcf0d1;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(ellipse 52rem 29rem at 50% 0, #f1e4c7 0%, transparent 84%), var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .54; }
:focus-visible { outline: 3px solid #b37335; outline-offset: 3px; }
button, input { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.shell { max-width: 39rem; margin: 0 auto; padding: 1.65rem clamp(.9rem, 4vw, 1.7rem) 0; }
.masthead { text-align: center; color: var(--pine); }
.eyebrow { font-weight: 790; font-size: .79rem; letter-spacing: .15em; line-height: 1.25; }
.green-label { color: #3b5a45; }
.edition { display: flex; justify-content: center; align-items: center; gap: .65rem; }
.edition span { color: #946423; }
.masthead h1 {
  font: 700 clamp(2.55rem, 8.7vw, 3.8rem)/.98 var(--serif);
  letter-spacing: -.055em;
  margin: .62rem -.25rem .6rem;
}
.mobile-break { display: none; }
.tagline { color: #685842; font: italic 1.1rem/1.3 var(--serif); }
.hero-car { display: block; width: min(100%, 32rem); height: auto; margin: .1rem auto -.2rem; }
.board {
  position: relative;
  color: var(--cream);
  background: radial-gradient(ellipse at 50% 0%, #285040, transparent 90%), var(--pine);
  padding: 1.1rem 1.15rem .92rem;
  border: 1px solid #183c30;
  border-radius: 1.18rem;
  box-shadow: inset 0 0 0 4px #254838, 0 .35rem 1rem #322b1c22;
}
.board-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.board-header h2 { color: var(--gold); text-align: left; }
.status {
  display: inline-flex; align-items: center; gap: .38rem; border: 1px solid #66755a;
  border-radius: 2rem; padding: .18rem .59rem; font-size: .875rem; font-weight: 680; line-height: 1.3;
}
.status i { width: .48rem; height: .48rem; border-radius: 50%; background: var(--gold); }
.status[data-status="live"] i { background: #9de1a5; box-shadow: 0 0 .45rem #a6e4a870; }
.status[data-status="final"] { background: var(--gold); border-color: var(--gold); color: var(--pine-deep); }
.status[data-status="final"] i { background: var(--pine); }
.teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; margin: .92rem 0 .63rem; }
.team { text-align: center; display: grid; grid-template-rows: auto 1fr auto; padding: 0 .3rem; }
.seat-mark { display: flex; justify-content: center; align-items: center; gap: .35rem; color: #c9e3c0; font-size: .76rem; letter-spacing: .12em; font-weight: 730; }
.team-two .seat-mark { color: #efb4ab; }
.seat-mark svg { width: 1rem; height: 1rem; fill: currentColor; }
.team h3 { align-self: center; margin: .25rem 0 .05rem; font: 700 clamp(1.15rem, 4.5vw, 1.57rem)/1.1 var(--serif); overflow-wrap: anywhere; }
.vs { display: grid; align-self: center; place-items: center; border: 1px solid #738060; border-radius: 50%; color: var(--gold); font: italic .95rem/1 var(--serif); width: 1.8rem; height: 1.8rem; }
.score-wrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.score { font: 700 clamp(3.35rem, 14vw, 5.2rem)/.98 var(--serif); letter-spacing: -.065em; font-variant-numeric: lining-nums tabular-nums; padding: .1em .09em .06em .025em; }
.bursts { position: absolute; left: 100%; top: 15%; z-index: 1; pointer-events: none; }
.burst { position: absolute; color: #ffdf84; text-shadow: 0 1px 5px #14261c; font: 700 1.55rem/1 var(--serif); animation: point .92s ease-out both; }
@keyframes point { 0% { opacity: 0; transform: translateY(.6rem) scale(.76); } 18%, 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.45rem) scale(1.17); } }
@media (prefers-reduced-motion: reduce) {
  .burst { animation-name: point-still; }
  @keyframes point-still { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
}
.board-summary { border-top: 1px solid #5a7056; padding-top: .62rem; text-align: center; }
.lead { color: var(--gold); font: 700 1.3rem/1.2 var(--serif); overflow-wrap: anywhere; }
.last { color: #e7e6cc; margin-top: .3rem; font-size: .88rem; overflow-wrap: anywhere; }
.play { margin: 1rem 0 0; text-align: center; }
.primary {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  min-height: 2.75rem; padding: .58rem 1rem;
  color: #fff8e8; background: var(--cranberry); border: 1px solid #862f37; border-radius: .66rem;
  font-weight: 750;
}
.primary:not(:disabled):hover { background: #882c35; }
.primary:not(:disabled):active { background: #75232d; }
.score-button { min-height: 3.6rem; width: 100%; font: 700 1.55rem/1 var(--serif); box-shadow: inset 0 0 0 3px #ffffff18, 0 .2rem .55rem #6e282322; }
.score-button svg { width: 1.4rem; height: 1.4rem; fill: var(--gold); }
.playing-as { color: var(--muted); margin-top: .32rem; font-size: .9rem; overflow-wrap: anywhere; }
.score-actions, .sound-actions, .invite-actions, .record-actions, .dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .85rem; }
.score-actions { justify-content: center; }
.text-button {
  display: inline-flex; align-items: center; gap: .36rem; min-height: 2.75rem; background: none;
  color: var(--pine); border: 0; padding: .25rem .21rem; text-decoration: underline;
  text-underline-offset: .18em; font-size: .9rem; font-weight: 660;
}
.text-button svg, .sound-icon svg { width: 1.12rem; height: 1.12rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.text-button:not(:disabled):hover { color: var(--cranberry); }
.secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .35rem .72rem;
  border-radius: .55rem; border: 1px solid #9da28b; color: var(--pine); background: var(--paper-light);
  font-size: .9rem; font-weight: 680;
}
.secondary:not(:disabled):hover { background: #efe9d7; }
.feedback { color: #673137; font-size: .9rem; font-weight: 580; margin-top: .35rem; }
.feedback:empty { display: none; }
.panel { display: flex; gap: .72rem; background: #efe9d6; border: 1px solid var(--line); border-radius: .85rem; padding: .86rem; }
.panel h2, .trail h2, .welcome h2, dialog h2 { color: var(--pine); font: 700 1.28rem/1.16 var(--serif); }
.panel p:not(.feedback) { color: var(--muted); font-size: .92rem; margin-top: .23rem; }
.section-icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem;
  background: #e3e6ce; border-radius: 50%; color: var(--pine); font-size: 1.1rem;
}
.invite { margin-top: .7rem; }
.invite-actions, .sound-actions { margin-top: .55rem; }
#invite-link { width: 100%; margin-top: .45rem; font-size: .95rem; }
.trail { margin: 1.12rem 0 1.35rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .55rem; }
.section-head .eyebrow span { color: #956321; }
.section-head h2 { font-size: 1.95rem; letter-spacing: -.035em; margin-top: .2rem; }
.trail-pill { border: 1px solid var(--line); border-radius: 2rem; padding: .24rem .54rem; font-size: .72rem; font-weight: 740; letter-spacing: .08em; white-space: nowrap; color: var(--muted); }
.empty { color: var(--muted); padding: .7rem 0 0; font-size: .96rem; }
.trail-day { margin-top: .85rem; }
.trail-day h3 { font-size: .88rem; text-align: left; color: #414c3c; margin-bottom: .2rem; }
.trail-day ul { margin: 0; padding: 0; list-style: none; }
.trail-day li { display: flex; align-items: baseline; gap: .52rem; border-bottom: 1px solid var(--line); padding: .42rem .05rem; }
.trail-day li::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #336951; align-self: center; flex: none; }
.trail-day li[data-seat="2"]::before { background: #a53d47; }
.trail-day li span { font-weight: 650; overflow-wrap: anywhere; }
.trail-day li time { margin-left: auto; flex: none; color: var(--muted); font-size: .88rem; }
footer {
  display: flex; gap: .65rem; justify-content: center; align-items: center;
  text-align: center; color: var(--muted); font-size: .88rem; margin: 1.35rem 0 0;
  padding: 0 .3rem calc(1.3rem + env(safe-area-inset-bottom));
}
footer span { color: #956321; }
.welcome { border: 1px solid var(--line); border-radius: 1rem; padding: 1.35rem; background: var(--paper-light); box-shadow: 0 .35rem 1.25rem #56422513; }
.welcome h2, dialog h2 { font-size: 1.85rem; margin: .35rem 0 .4rem; letter-spacing: -.035em; }
.welcome p:not(.eyebrow, .feedback), dialog p:not(.eyebrow, .feedback) { color: var(--muted); }
.welcome form, .welcome #retry { margin-top: 1rem; }
.welcome form .primary { margin-top: .7rem; }
label { display: block; font-weight: 670; margin-bottom: .25rem; }
input {
  display: block; width: 100%; min-width: 0; min-height: 2.8rem; padding: .48rem .68rem;
  background: var(--paper-light); color: var(--ink); border: 1px solid #998f77; border-radius: .52rem;
}
dialog { width: min(calc(100% - 1.8rem), 26rem); color: var(--ink); background: var(--paper); border: 1px solid #b6a888; border-radius: 1rem; padding: 1.3rem; }
dialog::backdrop { background: #0e211bbe; }
dialog label { margin-top: .9rem; }
.dialog-actions { justify-content: flex-end; margin-top: .9rem; }
.record-actions { margin-top: .9rem; }
@media (max-width: 365px) {
  .mobile-break { display: block; }
  .shell { padding-top: 1.25rem; }
  .board { padding-inline: .85rem; }
  .score-actions { column-gap: .55rem; }
  .text-button { font-size: .86rem; }
}
@media (min-width: 580px) {
  .shell { padding-top: 2.2rem; }
  .board { padding-inline: 1.55rem; }
}

/* The illustrated front of the board is one dark-green roadside placard. */
:root {
  --placard: #103c2b;
  --gold-line: #d8af60;
}
body { background: radial-gradient(ellipse 70rem 36rem at 50% 0, #e8dcc1, transparent 90%), var(--paper); }
.shell { padding: 0 0 0; background: var(--paper); box-shadow: 0 0 3rem #4e3b2112; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead {
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(ellipse at 54% 0, #2a5940, transparent 78%), var(--placard);
  color: var(--cream);
  padding: .55rem 1rem .58rem;
}
.masthead h1 { margin: -.12rem 0 .35rem; font-size: clamp(1.85rem, 7.8vw, 3.38rem); letter-spacing: -.042em; }
.mobile-break { display: none; }
.tagline { color: #f1dcb4; font-size: .98rem; }
.hero-car { width: min(100%, 27rem); margin: -.3rem auto 0; }
.welcome { margin: 1rem clamp(.9rem, 4vw, 1.7rem) 0; }
.board {
  background: radial-gradient(ellipse at 50% 110%, #0a3023, transparent 95%), var(--placard);
  border: 0; border-radius: 0; box-shadow: none;
  padding: 0 clamp(.95rem, 4.2vw, 1.9rem) 1.25rem;
}
.board-header { justify-content: center; gap: .7rem; }
.board-header::before, .board-header::after { content: ''; flex: 1; height: 1px; background: var(--gold-line); opacity: .85; }
.status { border: 0; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.status i { width: .54rem; height: .54rem; }
.teams { align-items: stretch; margin: .3rem 0 .53rem; }
.team {
  padding: .45rem .36rem .18rem; border: 1px solid var(--gold-line); border-radius: .9rem;
  box-shadow: inset 0 0 0 2px #162e2460, inset 0 0 0 3px #d8af6038;
}
.vs { width: 1.7rem; height: 1.7rem; border: 0; }
.seat-mark { font-size: .69rem; opacity: .92; }
.score { font-size: clamp(3rem, 14vw, 5rem); }
.board-summary { border: 0; padding: 0; }
.lead {
  color: #123528; background: linear-gradient(107deg, #ddb05c, #fbe0a1 48%, #e7bc68);
  clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
  padding: .38rem 1.15rem .48rem; font-size: clamp(1.18rem, 5vw, 1.66rem); font-style: italic;
}
.last-ticket {
  position: relative; width: fit-content; max-width: 100%; margin: .94rem auto 0;
  border: 1px solid var(--gold-line); border-radius: .47rem; padding: .39rem .65rem .24rem;
}
.last-label {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--gold); color: #17392d; padding: .13rem .46rem; border-radius: .28rem;
  font-size: .66rem; letter-spacing: .1em;
}
.last { margin-top: .16rem; min-width: 9rem; color: var(--cream); font: 700 .96rem/1.28 var(--serif); }
.last-shout {
  min-height: 2.75rem; width: 100%; margin-top: .53rem; display: flex; align-items: center; justify-content: center;
  gap: .55rem; border: 1px solid #e7d6a8; border-radius: .75rem; color: var(--cream); background: #0e3326;
  padding: .28rem .48rem; font: italic 700 1.04rem/1.1 var(--serif); overflow-wrap: anywhere;
}
.last-shout:not(:disabled):hover { background: #20533b; }
.play-disc { background: var(--cream); color: var(--pine); border-radius: 50%; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; font: normal .64rem/1 var(--sans); }
.last-shout svg { width: min(22%, 4.7rem); height: 1.25rem; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.bursts { left: 88%; top: 6%; }
.burst {
  border: 1px solid #ffeda8; border-radius: .35rem; padding: .19rem .26rem;
  background: #f8d47f; color: #193325; text-shadow: none; box-shadow: 0 2px 4px #10241999;
  rotate: 9deg;
}
@media (prefers-reduced-motion: reduce) { .burst { rotate: 0deg; } }
.play, .panel, .trail { margin-left: clamp(.9rem, 4vw, 1.7rem); margin-right: clamp(.9rem, 4vw, 1.7rem); }
.score-button { border-radius: 2rem; font-size: clamp(1.48rem, 6vw, 1.94rem); background: linear-gradient(120deg, #a71635, #81132a); border-color: #7d1830; }
.score-button:not(:disabled):hover { background: #87162c; }
.sound { margin-top: .42rem; }
.sound-actions .secondary { border-radius: 2rem; }
.trail { margin-bottom: 0; }
footer { margin-top: 1rem; font-family: var(--serif); font-size: .96rem; font-style: italic; }
@media (min-width: 680px) {
  .shell { margin-top: 1.35rem; margin-bottom: 1.35rem; border-radius: 1rem; overflow: hidden; }
  .masthead { padding-top: .75rem; }
}
