/* WatchPot - light, bright, no dark colours. */
:root {
  --bg: #fffaf5;
  --bg-2: #fff3e9;
  --surface: #ffffff;
  --line: #f0e6dc;
  --line-2: #e7dacd;
  --text: #3a3f4a;
  --muted: #7a7f8a;
  --faint: #a7abb3;

  --red: #ef4b3f;
  --red-2: #ff6b5e;
  --red-soft: #ffe9e5;
  --sun: #ffb627;
  --sun-soft: #fff4d6;
  --mint: #22a77a;
  --mint-soft: #e2f7ee;
  --sky: #3a9bdc;
  --sky-soft: #e6f3fc;
  --lilac: #8f7ae6;
  --lilac-soft: #efebfd;
  --amber: #d98a00;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(180, 120, 80, .06), 0 8px 24px rgba(180, 120, 80, .08);
  --shadow-lg: 0 2px 6px rgba(180, 120, 80, .08), 0 24px 60px rgba(180, 120, 80, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--mint); }
.neg { color: var(--red); }
.hidden { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 6px 18px rgba(239, 75, 63, .28); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(239, 75, 63, .36); }
.btn-sun { background: var(--sun); color: #5a3d00; box-shadow: 0 6px 18px rgba(255, 182, 39, .3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-soft { background: var(--red-soft); color: var(--red); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #f6c6c0; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .7em .9em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px var(--red-soft); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3em; }
.money-input { position: relative; }
.money-input::before { content: '£'; position: absolute; left: .9em; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-input input { padding-left: 1.8em; }

/* ---------- Pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .35em; font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.pill-mint { background: var(--mint-soft); color: #158060; }
.pill-red { background: var(--red-soft); color: #c8352a; }
.pill-sun { background: var(--sun-soft); color: #9a6400; }
.pill-sky { background: var(--sky-soft); color: #22739f; }
.pill-grey { background: #f2efec; color: var(--muted); }
.pill-lilac { background: var(--lilac-soft); color: #6a54c6; }

/* ---------- Lottery balls ---------- */
.balls { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.ball {
  --c: #f4f1ee; --b: #e2dcd6; --t: var(--text);
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: var(--t);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--c) 60%);
  border: 1.5px solid var(--b);
  font-variant-numeric: tabular-nums;
}
.ball.r1 { --c: #ffffff; --b: #e3ded9; }
.ball.r2 { --c: #cfe8fb; --b: #9fcff2; --t: #1d628d; }
.ball.r3 { --c: #ffd9e6; --b: #f8b1c9; --t: #a33a63; }
.ball.r4 { --c: #d4f3e3; --b: #9fdfbf; --t: #18714e; }
.ball.r5 { --c: #fff0bf; --b: #f7d978; --t: #8a6100; }
.ball.r6 { --c: #e7defd; --b: #c7b6f6; --t: #5c45b5; }
.ball.star { --c: #fff0bf; --b: #f7c948; --t: #8a6100; border-radius: 9px; transform: rotate(0); }
.ball.extra { --c: #ffe3d6; --b: #ffb496; --t: #b2481e; }
.ball.hit { box-shadow: 0 0 0 3px var(--mint), 0 0 0 6px var(--mint-soft); }
.ball.miss { opacity: .45; }
.ball.lg { width: 40px; height: 40px; font-size: .95rem; }

/* ---------- Site (marketing) ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 245, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--red-2), var(--red)); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(239, 75, 63, .3); }
.logo-mark span { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .7rem; color: var(--red); font-weight: 800; }
.logo b { color: var(--red); }
.site-nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav .links a:not(.btn) { color: var(--text); font-weight: 600; font-size: .95rem; }

.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
  radial-gradient(800px 400px at 85% -10%, #ffe1cf 0, transparent 60%),
  radial-gradient(600px 400px at -10% 20%, #fff0c8 0, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--sun); opacity: .45; border-radius: 4px; z-index: -1; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); font-weight: 600; }
.trust span::before { content: '✓'; color: var(--mint); font-weight: 800; margin-right: 6px; }

.hero-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); transform: rotate(1.2deg); }
.hero-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-card .pot { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.hero-card .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.hero-card .row .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.float-ball { position: absolute; border-radius: 50%; opacity: .9; }

.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.fair-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.timeline-ill { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); }
.tl-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; margin: 10px 0; font-size: .85rem; font-weight: 600; }
.tl-track { position: relative; height: 26px; background: #f6f1ec; border-radius: 999px; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; }
.tl-win { position: absolute; top: -6px; width: 2px; bottom: -6px; background: var(--sun); }
.tl-win::after { content: attr(data-label); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 800; color: var(--amber); white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; display: grid; place-items: center; }
.steps h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; max-width: 920px; margin: 0 auto; }
.price-card { background: var(--surface); border-radius: 24px; padding: 34px; border: 2px solid var(--red-soft); box-shadow: var(--shadow-lg); position: relative; }
.price-card .tag { position: absolute; top: -14px; left: 34px; }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 26px; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.site-foot { padding: 40px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Auth / signup ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(600px 300px at 80% 0, #ffe1cf, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 560px; background: var(--surface); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- App shell ---------- */
.app-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.watch-switch { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-left: 8px; }
.watch-switch .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.watch-switch select { border: 0; background: transparent; padding: 0 4px; font-weight: 700; width: auto; box-shadow: none; cursor: pointer; }
.app-top .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 16px; font-weight: 700; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--red); border-bottom-color: var(--red); }

.page { padding: 28px 0 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; margin: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.demo-banner { background: var(--sun-soft); border-bottom: 1px solid #fde7a8; font-size: .86rem; color: #7a5300; }
.demo-banner .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 1.05rem; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-main { grid-template-columns: 1.6fr 1fr; }
.mt { margin-top: 18px; }

.kpi { position: relative; overflow: hidden; }
.kpi .label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.kpi .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.kpi .blob { position: absolute; right: -18px; top: -18px; width: 84px; height: 84px; border-radius: 50%; opacity: .55; }
.kpi.hero-kpi { background: linear-gradient(135deg, #fff 0%, #fff6ef 100%); border-color: #fbd9c9; }
.kpi.hero-kpi .value { color: var(--red); font-size: 2.2rem; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 10px; }
.alert .ai { font-size: 1.1rem; line-height: 1.3; }
.alert-sun { background: var(--sun-soft); color: #7a5300; }
.alert-red { background: var(--red-soft); color: #a3302a; }
.alert-mint { background: var(--mint-soft); color: #156b50; }
.alert-sky { background: var(--sky-soft); color: #1f5f86; }
.alert .grow { flex: 1; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fffaf6; }
tr.left-row td { color: var(--muted); }

.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }

.bar { height: 8px; background: #f4eee8; border-radius: 999px; overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sun), var(--red-2)); }

.chart { width: 100%; height: 220px; display: block; }
.chart .axis { font-size: 11px; fill: var(--faint); font-family: var(--font); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .big { font-size: 2.5rem; margin-bottom: 6px; }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.activity li:last-child { border-bottom: 0; }
.activity .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.activity .grow { flex: 1; min-width: 0; }
.activity .t { font-weight: 700; }

.breakdown { display: grid; gap: 0; }
.breakdown .ln { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.breakdown .ln.total { border-bottom: 0; border-top: 2px solid var(--line-2); font-weight: 800; font-size: 1.1rem; margin-top: 4px; padding-top: 14px; }

.member-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.member-hero h1 { margin: 0; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .82rem; font-weight: 700; padding: .4em .9em; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); cursor: pointer; }
.chip.on { background: var(--red-soft); border-color: #f8c4bd; color: var(--red); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(255, 240, 228, .72); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .18s; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.modal-head h2 { margin: 0; font-size: 1.3rem; }
.modal-body { padding: 18px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 22px; flex-wrap: wrap; }
.x { border: 0; background: var(--bg-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.picker { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 8px 0 4px; }
.picker button { font: inherit; font-weight: 700; font-size: .8rem; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; padding: 0; }
.picker button.on { background: var(--red); border-color: var(--red); color: #fff; }
.picker.extra button.on { background: var(--sun); border-color: var(--sun); color: #5a3d00; }
.line-box { border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.line-box .lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.split-preview { background: var(--bg-2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; }
.match-list { list-style: none; padding: 0; margin: 8px 0 0; }
.match-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; flex-wrap: wrap; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .fair-demo, .pricing { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .features, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-main, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav .links a:not(.btn), .site-nav .links .btn-ghost { display: none; }
  .features, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi .value { font-size: 1.4rem; }
  .kpi.hero-kpi .value { font-size: 1.6rem; }
  .field-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .app-top .logo span.word { display: none; }
  .watch-switch { margin-left: 0; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .picker { grid-template-columns: repeat(8, 1fr); }
  .page-head h1 { font-size: 1.45rem; }
  .section { padding: 56px 0; }
}
.dn { padding-left: .3em !important; padding-right: .3em !important; -moz-appearance: textfield; }
.dn::-webkit-inner-spin-button, .dn::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
td .balls { flex-wrap: nowrap; }
.table-wrap.wide table { min-width: 640px; }

.paste-box { margin-top: 10px; }
.paste-box summary { cursor: pointer; color: var(--red); font-weight: 700; }
.paste-box textarea { margin-top: 8px; resize: vertical; }

.dn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.dn-row .dn { width: 54px; text-align: center; }
.dn-row .dn-bonus { border-color: #ffb496; }
.dn-row .dn-extra { border-color: #f7c948; }
.dn-label { width: 56px; }
.results-card { border-color: #fde7a8; background: linear-gradient(135deg, #fff 0%, #fffaeb 100%); }

/* ---------- Fire-service touches ---------- */
/* Battenburg-style chequer strip, like the side of a fire engine (in light colours). */
.site-nav::after, .app-top::after, .site-foot::before {
  content: ''; display: block; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red-2) 0 18px, var(--sun) 18px 36px);
  opacity: .85;
}
.site-foot { position: relative; padding-top: 0; }
.site-foot::before { margin-bottom: 40px; }
.stop-head { display: flex; justify-content: space-between; font-weight: 800; color: var(--red); border-bottom: 1px dashed #e8d27a; padding-bottom: 5px; margin-bottom: 6px; letter-spacing: .06em; }
.stop-row { margin: 3px 0; }
.stop-row { display: flex; gap: 8px; }
.stop-row b { flex: none; width: 66px; }
/* Fire engine driving along a road across the bottom of the hero, under the card */
.hero { padding-bottom: 340px; }
.hero-scene {
  position: absolute; left: 0; right: 0; bottom: 0; height: 340px; overflow: hidden; pointer-events: none; z-index: 2;
  --stop: 50%; --tw: 340px;
}
.hero-scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; border-top: 3px dashed #f0dccb; }
.truck-mover { position: absolute; z-index: 1; bottom: 16px; width: var(--tw); left: calc(-1 * var(--tw) - 20px); animation: truck-drive 15s ease-in-out infinite; }
.truck { display: block; width: var(--tw); height: calc(var(--tw) * .4); animation: truck-bump .32s ease-in-out infinite alternate; }
.truck .wheel { transform-box: fill-box; transform-origin: center; animation: wheel-spin .5s linear infinite; }
.truck .blue { animation: blue-light .5s steps(1) infinite; }
.truck .b2 { animation-delay: .25s; }
.truck-bubble {
  position: absolute; bottom: calc(var(--tw) * .4 - 8px); right: 0; width: 320px;
  background: #fffdf0; border: 2px solid #f3d36b; border-radius: 18px; padding: 12px 16px 14px;
  box-shadow: 0 10px 24px rgba(180, 120, 80, .16);
  font-family: 'Courier New', ui-monospace, monospace; font-size: .8rem; line-height: 1.4; color: #5b4a12;
  opacity: 0; transform-origin: 80% 100%; animation: bubble-pop 15s ease-in-out infinite;
}
.truck-bubble::after { content: ''; position: absolute; right: 64px; bottom: -13px; width: 22px; height: 22px; background: #fffdf0; border-right: 2px solid #f3d36b; border-bottom: 2px solid #f3d36b; transform: rotate(45deg) skew(8deg, 8deg); }
@keyframes truck-drive {
  0% { left: calc(-1 * var(--tw) - 20px); }
  16% { left: var(--stop); }
  62% { left: var(--stop); }
  100% { left: 115%; }
}
@keyframes bubble-pop {
  0%, 17% { opacity: 0; transform: scale(.7); }
  21%, 58% { opacity: 1; transform: scale(1); }
  63%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes truck-bump { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes blue-light { 0% { opacity: 1; } 50% { opacity: .2; } }
@media (max-width: 960px) {
  .hero-scene { --stop: calc(50% - 170px); }
  .truck-bubble { width: 300px; }
}
@media (max-width: 400px) {
  .hero { padding-bottom: 310px; }
  .hero-scene { height: 310px; --tw: 300px; --stop: calc(50% - 150px); }
  .truck-bubble { width: 280px; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .truck-mover { animation: none; left: var(--stop); }
  .truck-bubble { animation: none; opacity: 1; transform: none; }
  .truck, .truck .wheel, .truck .blue { animation: none; }
}


.latest-strip { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 18px; }
.latest-strip .ball { width: 26px; height: 26px; font-size: .72rem; }

.game-ticks { display: grid; gap: 6px; }
.game-tick { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.game-tick:has(input:checked) { border-color: #f8c4bd; background: var(--red-soft); }

/* Wins list + share link */
.wins { list-style: none; padding: 0; margin: 0; }
.win { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.win:first-child { padding-top: 0; }
.win:last-child { border-bottom: 0; }
.win-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.win-date { font-weight: 800; }
.win-amount { font-size: 1.35rem; font-weight: 800; color: var(--mint); letter-spacing: -.02em; white-space: nowrap; }
.win .ball { width: 26px; height: 26px; font-size: .72rem; }
.share-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #fff, #eef7ff); border-color: #cfe4f6; }
.share-url { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .board .grid-3 { grid-template-columns: 1fr 1fr; }
  .board .grid-3 .kpi:first-child { grid-column: 1 / -1; }
}
