/* Frogs: a lily pond at midsummer. Frogs leap across rows of lily pads; cattails mark the finish; lotus flowers on a
   mossy log are the prizes and a big pad holds the pot. Palette from the pond: blush lotus paper, deep pond green,
   lily-pad green, lotus pink for every button, the gold of a frog's eye. */
@font-face { font-family: 'DynaPuff'; src: url(/fonts/dynapuff.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Wix Madefor Text'; src: url(/fonts/wixmadefor.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'M PLUS 1 Code'; src: url(/fonts/mplus1code.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --wall: #f6e4dc;         /* blush, the inside of a lotus petal */
  --wall-2: #ecccc0;
  --cream: #fff9f2;
  --paper: #fdeee4;
  --ink: #142a20;          /* pond ink */
  --ink-2: #3a5046;
  --ink-3: #62766c;
  --red: #e0457b;          /* lotus pink: primary buttons */
  --red-dk: #b72d60;
  --bulb: #f3d046;         /* frog-eye gold */
  --amber: #f3d046;
  --cobalt: #2f62c4;       /* dart-frog blue */
  --teal: #1c4a3a;         /* deep pond: header, frames */
  --turf: #2a6a55;         /* pond water lanes */
  --turf-2: #26604d;
  --pad: #5aa548;          /* lily pad */
  --pad-dk: #3d7d33;
  --plank: #7b5a3c;        /* log bark */
  --plank-dk: #563c26;
  --tin: #d9d2c4;
  --up: #17804a;
  --down: #c8334a;
  --leaf: 18px 5px 18px 5px;
  --display: 'DynaPuff', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'M PLUS 1 Code', ui-monospace, 'SF Mono', Menlo, monospace;
}

body { background: var(--wall) linear-gradient(180deg, #fbf0ea 0, var(--wall) 560px) no-repeat; font-weight: 500; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.04; }
h1 { font-size: clamp(42px, 5.8vw, 80px); }
h2 { font-size: clamp(28px, 3.3vw, 42px); }
.btn { font-weight: 800; border-radius: var(--leaf); }
.btn:hover { background: #ea5a8c; }
.btn-cream:hover { background: #fff; }
.btn-small { border-radius: 14px 4px 14px 4px; }
.hero h1 { color: var(--ink); }
.hero h1 .h1b { color: var(--red); text-shadow: 3px 3px 0 var(--ink); }

/* header: deep pond water, a row of lily pads floats along its lower edge */
.top { background: var(--teal); border-bottom: 0; }
.top-in { padding-bottom: 22px; }
.brand-horse { width: 74px; height: 56px; filter: drop-shadow(2px 3px 0 var(--ink)); }
.brand-word { font: 700 40px/1 var(--display); color: var(--cream); text-shadow: 3px 3px 0 var(--ink); letter-spacing: 0; }
.nav a { color: var(--cream); font-weight: 700; }
.nav a[aria-current='page'] { background: var(--cream); color: var(--ink); border-radius: 12px 4px 12px 4px; }
.nav-mobile a { font-weight: 700; }
.top .btn { background: var(--red); color: var(--cream); }
.top .btn:hover { background: #ea5a8c; }
.bulbs { bottom: -12px; height: 26px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='26'%3E%3Cg stroke='%23142a20' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M44 13 L82 15 C78 22 64 25 44 25 C22 25 4 21 4 14 C4 7 22 2 44 2 C62 2 76 5 80 9 Z' fill='%235aa548'/%3E%3Cpath d='M150 11 L176 8 C178 4 166 1 150 1 C134 1 122 4 122 10 C122 16 134 19 150 19 C164 19 174 16 177 13 Z' fill='%234a9440'/%3E%3Cpath d='M262 14 L230 12 C230 6 244 3 262 3 C284 3 302 7 302 14 C302 21 284 25 262 25 C244 25 232 22 230 17 Z' fill='%235aa548'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 340px 26px repeat-x; }

/* the race: a pond in a deep green frame, prizes on a mossy log */
.booth { background: var(--teal); border-radius: 26px 26px 18px 18px; padding: 12px; box-shadow: 6px 6px 0 var(--ink); }
.booth-sign { border-radius: 16px 6px 16px 6px; }
.booth-sign .t-name, .booth-sign .clock { font-size: 22px; font-weight: 600; }
.shelf { padding-top: 16px; }
.shelf::after { height: 20px; left: 0; right: 0; border-radius: 10px;
  background: linear-gradient(180deg, var(--pad) 0 5px, var(--plank) 5px 70%, var(--plank-dk) 70%); }
.shelf::before { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 11px; z-index: 0; border-radius: 0 0 10px 10px;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(20, 42, 32, .35) 38px 40px); }
.prize svg { width: clamp(54px, 6.4vw, 74px); height: clamp(54px, 6.4vw, 74px); }
.prize b { top: calc(clamp(54px, 6.4vw, 74px) * .6); translate: 0 -50%; font-size: clamp(10px, 1.1vw, 13px); font-weight: 700; }
.prize span { margin-top: 2px; border-radius: 10px 3px 10px 3px; padding: 4px 8px; }
.pot svg { width: clamp(70px, 8.6vw, 100px); height: clamp(82px, 10vw, 116px); }
.pot .pot-sum { top: 50%; border-radius: 10px 3px 10px 3px; font-size: clamp(12px, 1.3vw, 15px); font-weight: 700; }
.pot .pot-label { text-shadow: 1px 1px 0 var(--ink); }

.track { --lane-h: 74px; margin-top: 18px; border-radius: 14px; background: var(--turf); }
/* every lane is a row of lily pads on dark water; the frogs leap from pad to pad */
.lane { border-bottom: 2px solid rgba(9, 26, 19, .45);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='30'%3E%3Cpath d='M50 15 L96 17 C92 24 74 28 50 28 C24 28 4 23 4 16 C4 8 24 3 50 3 C72 3 88 6 93 10 Z' fill='%234d9a42' stroke='%23142a20' stroke-opacity='.55' stroke-width='2'/%3E%3Cpath d='M50 15 L20 10 M50 15 L18 22 M50 15 L78 7' stroke='%23142a20' stroke-opacity='.25' stroke-width='1.6'/%3E%3C/svg%3E") left 30px bottom 2px / 150px 30px repeat-x; }
.lane:nth-child(even) { background-color: rgba(9, 26, 19, .14); background-position: left 100px bottom 2px; }
.lane::after { display: none; }
.lane-no { width: 34px; background: var(--cream); font: 700 17px/1 var(--display); }
.lane-empty { color: var(--cream); }
.lane-empty .lane-no { color: var(--ink); }
/* finish: a stand of cattails */
.finish { width: 18px; border-left: var(--edge); background: #24533f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='40'%3E%3Cpath d='M9 0 V40' stroke='%2378b04a' stroke-width='2'/%3E%3Crect x='5' y='8' width='8' height='18' rx='4' fill='%237a4a2a' stroke='%23142a20' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 18px 40px repeat-y; }
.zero { border-left: 3px dotted rgba(255, 249, 242, .85); }
.zero span { font-family: var(--mono); font-weight: 700; }

.runner.frog { --hw: calc((var(--lane-h, 64px) - 8px) * 1.333); top: 0; bottom: 6px; }
.runner.frog .horse { animation: hop 3.4s ease-in-out infinite; transform-origin: 50% 92%; }
.lane:nth-child(2n) .runner.frog .horse { animation-delay: -1.1s; }
.lane:nth-child(3n) .runner.frog .horse { animation-delay: -2.3s; }
@keyframes hop {
  0%, 70%, 100% { transform: translateY(0) scale(1, 1); }
  76% { transform: translateY(1px) scale(1.04, .94); }
  84% { transform: translateY(-7px) rotate(-4deg) scale(.98, 1.04); }
  92% { transform: translateY(0) scale(1.03, .96); }
}
@media (prefers-reduced-motion: reduce) { .runner.frog .horse { animation: none; } }
/* the rod becomes a ring of ripples under the frog */
.runner.frog .rod { left: 14%; width: 76%; height: 8px; bottom: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 2px rgba(255, 249, 242, .35); }
.runner.frog .disc { left: 49.5%; top: 38.5%; width: 18.5%; background: var(--cream); }
.tag { border-radius: 12px 4px 12px 4px; font-weight: 800; }
.runner.me .tag { background: var(--bulb); }
.runner.p1 .tag { background: #ffd3e2; }

.step h3 { font-size: 21px; }
.step h3::before { color: var(--red); }
.ticket-head h3 { font-size: 25px; }
.ticket-head .fee-in { font-size: 19px; font-weight: 700; }
.ticket.sprint { --tk: var(--red); }
.ticket.heat { --tk: var(--cobalt); }
.ticket.classic { --tk: var(--pad); }
.ticket.dash { --tk: var(--bulb); }
.ticket { border-radius: 16px 6px 16px 6px; }
.panel { border-radius: 16px; }

.dlg { border-radius: 18px; }
.dlg-head { background: var(--teal); }
.dlg-head h2 { color: var(--cream); font-size: 26px; }
.seg button { border-radius: 14px 4px 14px 4px; }
.seg button b { font-size: 17px; font-weight: 600; }
.seg button[aria-pressed='true'] { box-shadow: 3px 3px 0 var(--red); }
.test-note { background: #fbe1e9; border-color: var(--wall-2); }
.foot { border-top: 6px solid var(--pad); background: var(--ink); color: #c9d6cf; }
.toast { box-shadow: 4px 4px 0 var(--red); }
.count .big, .potline b { font-size: 34px; font-weight: 600; }
.standings .place, .lt-head h2 { font-weight: 600; }

@media (max-width: 640px) {
  .track { --lane-h: 52px; }
  .lane { background-size: 110px 22px; background-position: left 26px bottom 1px; }
  .lane:nth-child(even) { background-position: left 80px bottom 1px; }
  .brand-horse { width: 54px; height: 41px; }
  .brand-word { font-size: 30px; }
  .lane-no { width: 24px; font-size: 13px; }
  .finish { width: 12px; background-size: 12px 30px; }
  .count .big { font-size: 28px; }
}
