/* SilkDash site: green and gold. The header is cream so the logo (dark green and gold) sits on it as drawn. */
:root {
  --bg: #05140c; --panel: #0b2717; --panel2: #0f3620; --line: #1e5936; --line2: #2f8a55;
  --gold: #f6c81e; --gold2: #ffe566; --gold-ink: #152000; --ink: #f4f9f1; --soft: #a9c8b3; --cream: #f8f5e6; --green-ink: #06321f;
  --red: #ff7a6b; --ok: #62e08d;
  --cond: "Bahnschrift Condensed", "Bahnschrift", "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       background: radial-gradient(1200px 500px at 50% -120px, #0f3a22 0%, transparent 70%), var(--bg); min-height: 100vh; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--cond); letter-spacing: .02em; margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1500px; margin: 0 auto; padding: 16px; }

/* ---- header ---- */
.top { background: var(--cream); color: var(--green-ink); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 30; }
.top .in { max-width: 1500px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 22px; }
.top .logo img { height: 46px; display: block; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--green-ink); text-decoration: none; font: 700 19px var(--cond); letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; }
.top nav a:hover, .top nav a.on { background: rgba(6,50,31,.1); }
.top .acct { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bal-pill { display: flex; align-items: baseline; gap: 6px; background: var(--green-ink); color: var(--gold2); border-radius: 99px; padding: 6px 16px; font: 700 20px var(--cond); text-decoration: none; }
.bal-pill small { color: var(--soft); font: 600 11px system-ui; letter-spacing: .06em; text-transform: uppercase; }
.who { font-weight: 700; color: var(--green-ink); text-decoration: none; }
.btn { border: 0; border-radius: 10px; padding: 9px 18px; font: 700 17px var(--cond); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-block; text-align: center; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); box-shadow: 0 2px 0 #a37d00; }
.btn.green { background: var(--green-ink); color: var(--cream); }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.big { font-size: 22px; padding: 13px 30px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .odds:focus-visible, input:focus-visible, select:focus-visible, .tab:focus-visible, .pos:focus-visible { outline: 3px solid #7fd3ff; outline-offset: 2px; }
.demo-bar { background: #03100a; color: var(--soft); text-align: center; font: 600 12px system-ui; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.demo-bar b { color: var(--gold); }

/* ---- cards and tables ---- */
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card h2 { font-size: 21px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h2 em { font-style: normal; color: var(--ink); font-size: 17px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 700 12px system-ui; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 4px 6px; }
td { padding: 6px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.r { text-align: right; }
.chip { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .25em; font: 700 1em var(--cond); border-radius: .28em; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.muted { color: var(--soft); }
.msg { min-height: 1.4em; font-size: 14px; color: var(--red); margin: 6px 0 0; }
.msg.ok { color: var(--ok); }
.won { color: var(--ok); font-weight: 700; } .lost { color: var(--soft); }
.note { font-size: 13px; color: var(--soft); }
.testbox { background: rgba(246,200,30,.1); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.testbox b { color: var(--gold); }

/* ---- forms ---- */
label.f { display: block; font: 700 12px system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; background: #04120a; color: var(--ink); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.row-btns button { background: #04120a; color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 13px; font-weight: 700; }
.row-btns button.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tab { background: #04120a; color: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; font: 700 17px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.tab.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ---- log in / sign up ---- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(2,10,6,.78); display: grid; place-items: center; padding: 16px; }
.modal .box { width: min(440px, 100%); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--gold); border-radius: 16px; padding: 20px 22px; position: relative; max-height: 94vh; overflow: auto; }
.modal .x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--soft); font-size: 28px; line-height: 1; }
.modal h2 { font-size: 28px; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.modal .btn { width: 100%; margin-top: 12px; }
.modal .swap { margin-top: 12px; font-size: 14px; text-align: center; color: var(--soft); }
.modal .swap button { background: none; border: 0; color: var(--gold); font-weight: 700; padding: 0; text-decoration: underline; }

footer.foot { margin-top: 30px; border-top: 1px solid var(--line); padding: 20px 16px 40px; color: var(--soft); font-size: 13px; text-align: center; }
footer.foot a { margin: 0 8px; }
footer.foot .age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--soft); font-weight: 800; margin-right: 8px; }

/* ---- home ---- */
.hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: min(74vh, 640px); display: flex; align-items: center; background: #04140c url(/assets/img/hero.jpg) center / cover; }
/* The moving picture behind the headline: our own race footage (the jump, the run, the finish), silent, on a loop. */
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,12,.95) 0%, rgba(4,20,12,.80) 38%, rgba(4,20,12,.10) 78%), linear-gradient(0deg, rgba(4,20,12,.55), transparent 30%); }
.hero .txt { position: relative; z-index: 1; }
.hero .txt { padding: 40px 44px; max-width: 640px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); line-height: .98; text-transform: uppercase; }
.hero h1 b { color: var(--gold); }
.hero p { font-size: 18px; color: #d9ecdf; margin: 16px 0 22px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.next { margin-top: 22px; display: inline-flex; align-items: center; gap: 14px; background: rgba(3,16,10,.85); border: 1px solid var(--line2); border-left: 6px solid var(--gold); border-radius: 10px; padding: 10px 18px; font: 700 20px var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.next b { color: var(--gold); font-size: 28px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.three .card h3 { font-size: 24px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 14px; }
.prose p { margin: 8px 0; } .prose h3 { color: var(--gold); font-size: 20px; text-transform: uppercase; margin-top: 16px; }
.prose { max-width: 900px; }

/* ---- play ---- */
.play { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 2px solid var(--line2); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.side { display: grid; gap: 14px; }
.runners td.n { width: 44px; } .runners .nm { font-weight: 700; } .runners .jk { color: var(--soft); font-size: 13px; }
.runners .fm { color: var(--soft); font: 600 13px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.runners td.o { width: 96px; text-align: right; } .runners th.o { text-align: right; }
.odds { width: 100%; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); border: 0; border-radius: 8px; padding: 8px 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.odds.sel { background: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.odds:disabled { opacity: .4; cursor: default; }
.pos { width: 46px; height: 36px; background: #04120a; color: var(--soft); border: 1px solid var(--line2); border-radius: 8px; font: 700 15px var(--cond); }
.pos.sel { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.pos:disabled { opacity: .4; cursor: default; }
.runners td.p { width: 54px; text-align: center; padding: 4px 2px; } .runners th.p { text-align: center; }
.bal { font: 700 34px/1 var(--cond); color: var(--gold2); }
.bal small { font: 600 12px system-ui; color: var(--soft); margin-left: 6px; letter-spacing: .08em; text-transform: uppercase; }
.pick { margin: 10px 0 4px; min-height: 3em; }
.pick .pays { color: var(--gold2); font-weight: 700; }
ul.bets { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.bets li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); align-items: center; }
ul.bets .chip { font-size: 13px; margin-right: 2px; }
.fair code { display: block; word-break: break-all; color: var(--ink); background: #04120a; border-radius: 8px; padding: 6px 8px; margin: 4px 0 8px; font-size: 12px; }
.status { font: 700 18px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.status b { color: var(--gold); font-size: 22px; }

/* ---- account ---- */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-grid .wide { grid-column: 1 / -1; }
.scroll { max-height: 380px; overflow: auto; }

@media (max-width: 1000px) {
  .play { grid-template-columns: 1fr; } .three, .two, .acct-grid { grid-template-columns: 1fr; }
  .top .in { flex-wrap: wrap; gap: 8px; } .top .logo img { height: 36px; } .top nav a { font-size: 16px; padding: 6px 8px; }
  .hero .txt { padding: 26px 20px; } .runners th.f, .runners td.f { display: none; } .who { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- cashier ---- */
.tag-test { background: var(--gold); color: var(--gold-ink) !important; border-radius: 6px; padding: 1px 10px; font-size: 14px !important; letter-spacing: .08em; }
.coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.coins button { background: #04120a; color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.coins button b { display: block; font: 700 19px var(--cond); letter-spacing: .04em; } .coins button span { font-size: 11px; color: var(--soft); }
.coins button.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); } .coins button.on span { color: var(--gold-ink); }
.addr { display: flex; gap: 12px; align-items: center; margin-top: 12px; background: #04120a; border: 1px dashed var(--line2); border-radius: 10px; padding: 12px 14px; }
.lock { flex: none; width: 34px; height: 30px; border-radius: 6px; background: var(--gold); position: relative; margin-top: 12px; }
.lock::before { content: ""; position: absolute; left: 7px; right: 7px; top: -13px; height: 16px; border: 4px solid var(--gold); border-bottom: 0; border-radius: 10px 10px 0 0; }
.lock::after { content: ""; position: absolute; left: 14px; top: 9px; width: 6px; height: 11px; border-radius: 3px; background: var(--gold-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; font-size: 13px; }
.facts div { background: rgba(255,255,255,.04); border-radius: 8px; padding: 6px 10px; } .facts span { display: block; color: var(--soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; } .facts b { font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14px; }
.steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.steps li.now { color: var(--ink); } .steps li.now::before { border-color: var(--gold); border-top-color: transparent; animation: spin .7s linear infinite; }
.steps li.done { color: var(--ok); } .steps li.done::before { background: var(--ok); border-color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.safe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.safe div { background: rgba(255,255,255,.04); border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 12px; }
.safe b { display: block; margin-bottom: 4px; } .safe span { font-size: 13px; color: var(--soft); }
@media (max-width: 1000px) { .safe { grid-template-columns: 1fr 1fr; } .coins { grid-template-columns: repeat(3, 1fr); } }

/* ---- policy pages ---- */
.policy { display: grid; grid-template-columns: 250px minmax(0, 900px); gap: 14px; align-items: start; justify-content: center; }
.pol-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.pol-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.pol-nav a:hover { background: rgba(255,255,255,.06); } .pol-nav a.on { background: var(--gold); color: var(--gold-ink); }
.policy .prose h2 { font-size: 34px; margin-bottom: 0; } .policy .prose td { vertical-align: top; }
@media (max-width: 1000px) { .policy { grid-template-columns: 1fr; } .pol-nav { position: static; } }

/* ---- home: the wheel of coins ---- */
.pay { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: center; margin-top: 14px; padding: 22px 26px; overflow: hidden; }
.pay h2 { font-size: 34px; margin-bottom: 6px; } .pay p { margin: 6px 0; font-size: 17px; } .pay p b { color: var(--gold2); }
.wheel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wheel-track { display: flex; gap: 14px; width: max-content; animation: wheel calc(var(--n, 10) * 3.2s) linear infinite; }
.wheel:hover .wheel-track { animation-play-state: paused; }
@keyframes wheel { to { transform: translateX(calc(-50% - 7px)); } }
.coin-card { flex: none; width: 118px; height: 168px; border-radius: 14px; display: grid; justify-items: center; align-content: center; gap: 4px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.35); }
.coin-card .mark { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.95); color: #111; display: grid; place-items: center; font: 700 36px/1 "Segoe UI Symbol", "Segoe UI", system-ui, sans-serif; margin-bottom: 6px; }
.coin-card b { font: 700 24px/1 var(--cond); letter-spacing: .08em; } .coin-card small { font-size: 12px; opacity: .9; }
@media (max-width: 1000px) { .pay { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wheel-track { animation: none !important; flex-wrap: wrap; width: auto; } }

/* ---- home: latest wins ---- */
.feed { margin-top: 14px; }
.feed-head, .feed-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1.3fr 1fr 1fr 1fr 1.1fr; gap: 10px; align-items: center; padding: 0 12px; }
.feed-head { font: 700 12px system-ui; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-bottom: 6px; }
.feed-rows { height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.feed-row { height: 44px; border-radius: 8px; font-size: 15px; }
.feed-row:nth-child(odd) { background: rgba(255,255,255,.045); }
.feed-row.in { animation: feedin .45s ease-out; }
@keyframes feedin { from { opacity: 0; transform: translateY(-44px); } to { opacity: 1; transform: none; } }
.feed-row .h { display: flex; align-items: center; gap: 6px; min-width: 0; } .feed-row .h b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 4px; }
.feed-row .h .chip { font-size: 14px; flex: none; }
.feed-row .u { font-weight: 600; letter-spacing: .02em; } .feed-row .feed-pay { color: #fff; font-weight: 700; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 7px; line-height: 1; }
/* the little money mark in front of each payout: a green coin with a dollar sign */
.feed-pay .coin { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok); color: #06321f; font: 800 11px/1 system-ui; font-style: normal; }
.mult { font-style: normal; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; display: inline-block; min-width: 64px; text-align: center; }
.mult.low { background: #1e5936; color: #d9f5e3; } .mult.mid { background: #2f8a55; color: #fff; } .mult.big { background: var(--gold); color: var(--gold-ink); } .mult.huge { background: #fff; color: #06321f; box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 700px) { .feed-head, .feed-row { grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1fr; font-size: 13px; } .feed-head span:nth-child(3), .feed-row span:nth-child(3), .feed-head span:nth-child(4), .feed-row span:nth-child(4) { display: none; } }

/* ---- play page: the picture's full-screen button, and the phone layout ---- */
.now { display: none; }
.screen .full { position: absolute; right: 8px; bottom: 8px; z-index: 3; background: rgba(3,16,10,.78); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 7px 12px; font: 700 13px system-ui; display: none; }
.screen:fullscreen { border: 0; border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.screen.fill { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; }
/* in full screen the button stays on show and reads "Exit full screen" (Jay, 4 Dec 2026). On a phone it sits under the
   distance box in the top right corner, clear of the running numbers along the bottom. */
.screen:fullscreen .full, .screen.fill .full, body.phone .screen:fullscreen .full, body.phone .screen.fill .full { display: block; left: auto; right: 1.04%; bottom: auto; top: 17.5%; transform: none; opacity: .88; background: rgba(3,16,10,.82); padding: 6px 12px; font-size: 13px; white-space: nowrap; }
/* a phone on its side is wider than the picture, which leaves a dark band at each end: the button is kept narrow (two lines) so it sits in that band */
body.phone .screen:fullscreen .full, body.phone .screen.fill .full { right: 4px; width: 66px; padding: 6px 4px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
body.phone .screen:fullscreen, body.phone .screen.fill { margin: 0 !important; overflow: hidden; }
body.phone .screen { overflow: visible; margin-bottom: 40px !important; }
body.phone .screen .full { display: block; right: 8px; bottom: -38px; background: var(--panel2); border-color: var(--line2); padding: 6px 14px; }
@media (max-width: 760px) {
  .wrap { padding: 8px; }
  .top .in { padding: 4px 8px; gap: 6px; flex-wrap: nowrap; } .top .logo img { height: 30px; } .top nav { gap: 0; } .top nav a { font-size: 14px; padding: 6px 6px; }
  .top .acct { gap: 6px; } .top .acct .btn { padding: 6px 10px; font-size: 14px; } .bal-pill { padding: 4px 10px; font-size: 16px; } .bal-pill small { display: none; }
  .top .acct a.btn.gold, .top .who { display: none; }
  .demo-bar { font-size: 10px; letter-spacing: .06em; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.phone .play { gap: 8px; grid-template-columns: minmax(0, 1fr); } body.phone .play > div:first-child { gap: 8px !important; grid-template-columns: minmax(0, 1fr); min-width: 0; }
  body.phone .side { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  /* race and clock, large, above the picture */
  body.phone .now { display: none; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 700 18px var(--cond); letter-spacing: .04em; text-transform: uppercase; }
  body.phone .now b { color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.phone .now span { white-space: nowrap; } body.phone .now span b { color: var(--ink); font-size: 24px; }
  /* the picture, edge to edge */
  body.phone .screen { border-radius: 10px; border-width: 1px; margin: 0 -8px; width: calc(100% + 16px); border-left: 0; border-right: 0; border-radius: 0; }
  /* betting: big targets, one line a runner */
  body.phone .card { padding: 10px; } body.phone .card h2 { font-size: 18px; }
  body.phone #t-title, body.phone #t-status { display: none; } body.phone .card h2:has(#t-title) { display: none; }
  body.phone .tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } body.phone .tab { padding: 10px 2px; font-size: 14px; letter-spacing: 0; }
  body.phone .runners th { font-size: 10px; padding: 2px 4px; } body.phone .runners td { padding: 4px; }
  body.phone .runners td.n { width: 40px; } body.phone .runners .chip { font-size: 20px; }
  body.phone .runners .nm { display: block; font-size: 15px; line-height: 1.15; } body.phone .runners .jk { display: none; }
  body.phone .runners td.o { width: 84px; } body.phone .odds { padding: 13px 4px; font-size: 17px; border-radius: 10px; }
  body.phone .runners td.p { width: 50px; } body.phone .pos { width: 46px; height: 46px; font-size: 18px; border-radius: 10px; }
  body.phone .runners td.r.muted { display: none; } body.phone .runners th.r { display: none; }
  /* the bet slip stays at the bottom of the screen: stake, quick amounts and the button always in reach */
  body.phone { padding-bottom: 190px; }
  body.phone .slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 16px 16px 0 0; border: 0; border-top: 3px solid var(--gold); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.55); }
  body.phone .slip h2, body.phone .slip label.f { display: none; }
  body.phone .slip .bal { font-size: 18px; float: right; } body.phone .slip .bal small { font-size: 10px; }
  body.phone .slip .pick { margin: 0 0 6px; min-height: 2.6em; font-size: 14px; }
  body.phone #s-in { display: grid; grid-template-columns: 84px 1fr; gap: 6px 8px; align-items: center; } body.phone #s-in > .bal, body.phone #s-in > .pick, body.phone #s-in > .msg, body.phone #s-in > #s-go { grid-column: 1 / -1; }
  body.phone #s-in > .bal { order: -2; float: none; justify-self: end; margin-bottom: -26px; } body.phone #s-in > .pick { order: -1; padding-right: 110px; }
  body.phone #s-stake { padding: 10px 8px; font-size: 18px; font-weight: 700; text-align: center; }
  body.phone .slip .row-btns { margin: 0; flex-wrap: nowrap; } body.phone .slip .row-btns button { flex: 1; padding: 11px 0; font-size: 16px; }
  body.phone #s-go { padding: 13px; font-size: 20px; } body.phone .slip .msg { min-height: 0; margin: 0; font-size: 13px; }
  body.phone .slip:not(.has-pick) #s-stake, body.phone .slip:not(.has-pick) .row-btns, body.phone .slip:not(.has-pick) #s-go { display: none; }
  body.phone:has(.slip:not(.has-pick)) { padding-bottom: 80px; }
  body.phone #s-out p { margin: 0 0 8px; font-size: 14px; }
  body.phone footer.foot { padding-bottom: 20px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  /* a phone turned on its side: the picture takes the screen's height, with the full-screen button in view */
  body.phone .screen, .screen { max-height: 100dvh; }
}

/* ---- the notice for a blocked country ---- */
.behind-notice { filter: blur(3px) brightness(.45); pointer-events: none; user-select: none; }
.region { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(2,10,6,.55); }
.region .box { width: min(560px, 100%); max-height: 94vh; overflow: auto; text-align: center; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--gold); border-radius: 18px; padding: 24px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.region img { width: 190px; background: var(--cream); border-radius: 12px; padding: 4px 12px; }
.region h2 { font-size: 28px; margin: 14px 0 6px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.region p { margin: 10px 0; }
.region .places { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.region .places span { background: #5a1410; color: #ffd9d4; border: 1px solid #c2473c; border-radius: 99px; padding: 3px 12px; font: 700 13px system-ui; }
.region .places span.you { background: #d43c2f; color: #fff; border-color: #fff; }

/* ---- home: last results fill their box (as many rows as the prices table beside it) ---- */
.card.results { display: flex; flex-direction: column; }
.card.results #results { flex: 1; display: grid; grid-auto-rows: minmax(32px, 1fr); }
.res-row { display: grid; grid-template-columns: 72px auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border-top: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.res-row b { font-family: var(--cond); font-size: 17px; letter-spacing: .03em; } .res-row .chips { display: flex; gap: 4px; } .res-row .chips .chip { font-size: 13px; }
.res-row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .res-row .num { color: var(--gold2); font-weight: 700; } .res-row .tri { color: var(--soft); font-weight: 600; }
@media (max-width: 700px) { .res-row { grid-template-columns: 58px auto minmax(0, 1fr) auto; gap: 8px; font-size: 13px; } .res-row .tri { display: none; } }

/* ---- real coin logos, each in a square tile ---- */
.coin-card .mark.logo { width: 76px; height: 76px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.coin-card .mark.logo img { width: 100%; height: 100%; display: block; }
.coins button img { display: block; margin: 0 auto 4px; background: #fff; border-radius: 7px; padding: 3px; width: 32px; height: 32px; }

/* ---- phones: the top bar and the home page's opening section (Jay, 4 Dec 2026, from his iPhone: the heading,
   the text and the next-race box ran off the right-hand side, and the top bar's words wrapped) ---- */
.top nav a, .top .acct .btn { white-space: nowrap; }
.hero .txt { min-width: 0; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; border-radius: 14px; }
  .hero::after { background: linear-gradient(180deg, rgba(4,20,12,.90) 0%, rgba(4,20,12,.74) 52%, rgba(4,20,12,.50) 100%); }
  .hero .txt { padding: 22px 16px 16px; max-width: 100%; width: 100%; }
  .hero h1 { font-size: clamp(30px, 10.4vw, 46px); line-height: 1; overflow-wrap: break-word; }
  .hero h1 b { display: block; margin-top: 4px; }
  .hero p { font-size: 16px; line-height: 1.45; margin: 12px 0 16px; max-width: none; }
  .hero .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .cta .btn.big { font-size: 19px; padding: 13px 8px; white-space: nowrap; }
  .hero .cta .btn:only-child, .hero .cta .btn:has(+ .btn[hidden]) { grid-column: 1 / -1; }
  .next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; margin-top: 14px; padding: 10px 14px; font-size: 16px; align-items: center; }
  .next #next-name { grid-column: 1 / -1; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .next b { font-size: 26px; }
}
@media (max-width: 480px) {
  .top .in { gap: 4px; padding: 4px 6px; } .top .logo img { height: 26px; }
  .top nav a { font-size: 13px; letter-spacing: .02em; padding: 6px 5px; }
  .top .acct { gap: 4px; } .top .acct .btn { font-size: 13px; letter-spacing: .03em; padding: 6px 8px; }
}
/* ---- computers: full screen too (Jay, 4 Dec 2026). The button sits in the empty strip above the race video, in
   line with the video's right-hand edge ("move the full screen button in line with where it is but above the horse
   racing video in the empty space"). While the runners are out, that corner holds the distance box, so the button
   moves just left of it. Full screen keeps it in the same place, reading "Exit full screen"; Esc also leaves.
   The picture is always 16:9, so these percentages are places on the 1920 by 1080 board. ---- */
body:not(.phone) .screen .full { display: block; cursor: pointer; right: 1.04%; left: auto; bottom: auto; top: 5.75%; transform: translateY(-50%); padding: 6px 14px; font-size: 13px; opacity: .9; transition: right .3s, opacity .2s; white-space: nowrap; }
body:not(.phone) .screen .full:hover { opacity: 1; background: rgba(3,16,10,.95); border-color: var(--gold); }
body:not(.phone) .screen.racing .full { right: 15.4%; }
body:not(.phone) .screen:fullscreen .full, body:not(.phone) .screen.fill .full { font-size: clamp(13px, 1.05vw, 22px); padding: .45em 1em; }

/* ---- cashier: a deposit address with its QR code, payments on their way, withdrawals ---- */
.dep { display: flex; gap: 14px; align-items: center; margin-top: 12px; background: #04120a; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.dep .qr { flex: none; background: #fff; border-radius: 8px; padding: 4px; line-height: 0; } .dep .qr svg { display: block; width: 156px; height: 156px; }
.dep-a { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .dep-a b { font: 700 17px var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.dep-a code { font: 600 14px ui-monospace, Consolas, monospace; background: rgba(255,255,255,.06); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; word-break: break-all; user-select: all; color: var(--ink); }
.pend-h { margin-top: 12px; font: 700 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.pend { position: relative; margin-top: 6px; background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.pend span { font-size: 12.5px; color: var(--soft); overflow-wrap: anywhere; } .pend i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%); background: var(--gold); transition: width .6s; }
.pend.paid b { color: #7be0a0; } .pend.returned b { color: var(--soft); }
@media (max-width: 520px) { .dep { flex-direction: column; align-items: stretch; text-align: center; } .dep .qr { align-self: center; } .dep-a { align-items: stretch; } }
/* ---- the owner's payout page ---- */
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.pay-card { display: flex; gap: 16px; align-items: flex-start; background: #04120a; border: 1px solid var(--line2); border-radius: 12px; padding: 14px; margin-top: 10px; }
.pay-card .qr { flex: none; background: #fff; border-radius: 8px; padding: 4px; line-height: 0; }
.pay-main { min-width: 0; flex: 1; } .pay-who { font-weight: 700; } .pay-who span { font-weight: 400; color: var(--soft); font-size: 13px; margin-left: 6px; }
.pay-amt { margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pay-amt b { font-size: 22px; color: var(--gold); } .pay-amt span { color: var(--soft); font-size: 13px; }
.pay-main code { font: 600 14px ui-monospace, Consolas, monospace; background: rgba(255,255,255,.06); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; word-break: break-all; user-select: all; display: inline-block; margin-right: 6px; }
.pay-main input { width: 100%; font-family: ui-monospace, Consolas, monospace; } .pay-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 620px) { .pay-card { flex-direction: column; } }
.facts small { display: block; color: var(--soft); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; } .facts small code { font: 600 12px ui-monospace, Consolas, monospace; color: var(--ink); }

/* ---- two balances: real (can be withdrawn) and fun (free, for play only) ---- */
.purse { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.purse button { background: #04120a; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; color: var(--soft); text-align: left; font: 700 11px system-ui; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.purse button b { display: block; font: 700 24px/1.15 var(--cond); letter-spacing: 0; color: var(--ink); }
.purse button.on { border-color: var(--gold); background: rgba(246,200,30,.12); color: var(--gold2); } .purse button.on b { color: var(--gold2); }
#s-topup { width: 100%; margin-top: 6px; }
.funtag { font: 700 10px system-ui; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--gold-ink); background: var(--gold2); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.funline { margin: 8px 0 4px; color: var(--soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .funline b { font: 700 22px var(--cond); color: var(--ink); }
.bal-pill.fun { background: #3a2d05; }
@media (max-width: 760px), (max-height: 520px) and (orientation: landscape) {
  body.phone #s-in > .purse { grid-column: 1 / -1; order: -2; justify-self: end; margin-bottom: -34px; gap: 4px; }
  body.phone .purse button { padding: 2px 8px 3px; font-size: 9px; } body.phone .purse button b { font-size: 15px; }
  body.phone #s-in > .pick { padding-right: 170px; } body.phone #s-in > #s-topup { grid-column: 1 / -1; margin: 0; padding: 9px; }
}

/* ---- "show values in": the rough equivalent beside the dollars, and the choice in the footer ---- */
.bal-pill .approx { font: 600 12px system-ui; font-style: normal; color: var(--soft); margin-left: 2px; white-space: nowrap; }
.approx-line { margin: 4px 0 0; font: 700 18px var(--cond); color: var(--ink); } .approx-line span { font: 400 12px system-ui; color: var(--soft); }
.purse button small { display: block; font: 600 10.5px system-ui; letter-spacing: 0; text-transform: none; color: var(--soft); min-height: 0; }
select.ccy { background: #04120a; color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 8px; font: 600 13px system-ui; max-width: 220px; }
@media (max-width: 900px) { .bal-pill .approx { display: none; } }

/* ---- a runner's last five as squares, like the race screen; quick stake buttons that add up ---- */
.form-sq { display: inline-flex; gap: 3px; } .form-sq i { font: 700 13px/1 var(--cond); font-style: normal; width: 18px; height: 21px; display: grid; place-items: center; border-radius: 3px; background: rgba(242,182,50,.9); color: var(--gold-ink); }
.form-sq i:last-child { background: #fff3a8; }
.runners .fm { letter-spacing: 0; }
.row-btns button.tap { animation: tap .25s ease-out; } @keyframes tap { 40% { transform: scale(.9); background: var(--gold); color: var(--gold-ink); } }
.row-btns button.clr { color: var(--soft); font-weight: 600; }

/* ---- the owner's dashboard ---- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .dash-head .row-btns { margin: 0; }
.dash-head input[type=search] { max-width: 260px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.kpi { background: #04120a; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi span { font: 700 12px system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.kpi b { font: 700 30px/1.1 var(--cond); color: var(--ink); } .kpi small { color: var(--soft); font-size: 12.5px; }
.up { color: #7be0a0 !important; } .down { color: #ff8f8f !important; }
.dtable th, .dtable td { white-space: nowrap; } .dtable tr.tot td { border-top: 2px solid var(--line2); font-weight: 700; }
#d-ptable th[data-sort] { cursor: pointer; user-select: none; } #d-ptable th.sorted { color: var(--gold2); } #d-ptable th.sorted::after { content: ' ' attr(data-dir); font-size: 10px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
/* the owner's page: room between each section, and between the headline boxes (Jay, 4 Dec 2026) */
.owner-page > .card + .card { margin-top: 22px; }
.owner-page .kpis { gap: 14px; margin: 14px 0 12px; }

/* ---- XRP: the destination tag shown as plainly as the address ---- */
code.tag-big { font: 700 22px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--gold2); background: rgba(246,200,30,.1); border: 1px solid rgba(246,200,30,.35); border-radius: 8px; padding: 6px 12px; }
.warnbox { background: rgba(246,200,30,.1); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; } .warnbox b { color: var(--gold2); }
.pay-tag { margin: 8px 0 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pay-tag span { color: var(--soft); font-size: 12.5px; }
h3.sub { margin: 16px 0 4px; font: 700 15px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }

/* TRON: "how much will you send?" (an exact amount is given back) */
.ask-amt { margin-top: 12px; background: #04120a; border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ask-amt label { display: flex; flex-direction: column; gap: 8px; color: var(--soft); font-size: 14px; }
.ask-amt input { width: 100%; box-sizing: border-box; }
.ask-amt .btn { align-self: flex-start; }
@media (max-width: 520px) { .ask-amt .btn { align-self: stretch; } }
.ask-addr { margin-top: 12px; background: #04120a; border: 1px solid var(--line2); border-radius: 12px; padding: 14px; text-align: center; } .ask-addr p { margin: 0 0 10px; color: var(--soft); }
.funded details { margin-top: 8px; } .funded summary { cursor: pointer; color: var(--soft); font-size: 13.5px; }

/* ---- verify your identity ---- */
.slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; background: #04120a; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.slot b { display: block; } .slot small { display: block; color: var(--soft); font-size: 12px; margin-top: 2px; } .slot .st { display: block; color: #7be0a0; font-size: 12.5px; margin-top: 2px; }
.slot.done { border-color: rgba(123,224,160,.5); } .slot label.btn { cursor: pointer; flex: none; }
.linkish { background: none; border: 0; color: var(--soft); text-decoration: underline; cursor: pointer; margin-top: 10px; font-size: 13px; padding: 0; }
.card.narrow { max-width: 440px; margin: 30px auto; }
/* ---- the owner's identity checks ---- */
.kyc-row { border-top: 1px solid var(--line2); padding: 12px 0; display: grid; gap: 8px; } .kyc-row .muted { font-size: 12.5px; }
.kyc-files { display: flex; gap: 6px; flex-wrap: wrap; } .kyc-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .kyc-act input { flex: 1; min-width: 200px; }
.st-submitted { color: var(--gold2); } .st-approved { color: #7be0a0; } .st-rejected { color: #ff8f8f; }
/* ---- results archive ---- */
.h1-small { font: 700 22px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0; }
.q-form { display: flex; gap: 6px; } .q-form input { min-width: 240px; }
.arc { border-top: 1px solid var(--line2); padding: 12px 0; } .arc-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .arc-top b { font: 700 18px var(--cond); color: var(--ink); } .arc-top .nm { color: var(--gold2); font-weight: 600; }
.arc-res { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .arc-res .chips { display: flex; gap: 4px; }
.arc details { margin-top: 6px; } .arc summary { cursor: pointer; color: var(--soft); font-size: 13px; } .arc-sec { display: grid; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--soft); } .arc-sec code { font: 600 12px ui-monospace, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.arc-ok { font-size: 13px; margin-top: 6px; } .pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
@media (max-width: 600px) { .q-form input { min-width: 0; flex: 1; } .q-form { width: 100%; } }

/* ---- phones: logo big and centred on top, links and account buttons centred underneath (Jay, 4 Dec 2026).
   The old one-row bar was wider than the screen, which let Safari zoom out past the page. The bar no longer
   sticks to the top on phones, so it doesn't eat the screen while scrolling. ---- */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* no double-tap zoom; pinch still works */
html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .top { position: relative; }
  .top .in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; padding: 10px 8px 8px; }
  .top .logo img { height: 52px; }
  .top nav { justify-content: center; flex-wrap: wrap; gap: 2px; }
  .top nav a { font-size: 15px; padding: 6px 9px; }
  .top .acct { margin: 0; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 100%; }
  .top .acct .btn { font-size: 14px; padding: 7px 14px; }
  .bal-pill { padding: 5px 14px; font-size: 17px; }
  .top .acct a.btn.gold { display: inline-block; }   /* room for Deposit again on its own row */
  /* Safari zooms in on any box whose text is under 16px when it's tapped */
  input, select, textarea { font-size: 16px !important; }
  .acct-grid { grid-template-columns: minmax(0, 1fr) !important; } .acct-grid > * { min-width: 0; }   /* account boxes stay on screen */
}

/* ---- phones: every section fits and reads cleanly (Jay, 4 Dec 2026: "audit all sections ... make everything fit
   and tidy"). Two- and three-column boxes become one column; wide tables become one card per row. ---- */
@media (max-width: 600px) {
  .safe { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .safe div { padding: 12px 14px; } .safe b { font-size: 16px; } .safe span { font-size: 14px; line-height: 1.45; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #c-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
  #c-facts div span { text-align: left; flex: none; }
  .facts div { padding: 8px 12px; }
  #b-days { display: grid; grid-template-columns: 1fr 1fr; } #b-days button { padding: 11px 6px; font-size: 15px; }

  table.stack, table.stack tbody { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; padding: 0; border: 0; min-width: 0; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; font-size: 14px; }
  table.stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 10.5px system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
  table.stack td[data-label=""]::before { display: none; }
  table.stack td[colspan] { grid-column: 1 / -1; }
  table.stack td:empty { display: none; }
  table.stack tr.tot { border-top: 2px solid var(--line2); } table.stack tr.tot td { border: 0; }
  .scroll:has(table.stack) { max-height: 640px; }

  footer.foot div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  footer.foot a { margin: 0; padding: 4px 0; }
  footer.foot div:last-child { flex-direction: column; align-items: center; gap: 6px; }
}

/* ---- email code step in the login box (6 boxes) ---- */
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 18px 0 6px; }
.otp-boxes .otp-d { width: 50px; height: 60px; padding: 0; text-align: center; font: 700 28px ui-monospace, Consolas, monospace; color: var(--gold2);
  background: #04120a; border: 2px solid var(--line2); border-radius: 10px; caret-color: var(--gold); }
.otp-boxes .otp-d:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,200,30,.22); }
#auth-otp .linkish { display: block; margin: 10px auto 0; }
#auth-otp .linkish:disabled { opacity: .55; cursor: default; text-decoration: none; }
.otp-note { text-align: center; margin: 10px 0 0; font-size: 13px; }
@media (max-width: 400px) { .otp-boxes { gap: 6px; } .otp-boxes .otp-d { width: 40px; height: 52px; font-size: 24px; } }

/* ---- corner popups: 10 seconds, a gold bar running down, X to close ---- */
#toasts { position: fixed; top: 96px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-left: 5px solid #3fcf7a; border-radius: 12px;
  padding: 12px 40px 14px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); color: var(--ink);
  opacity: 0; transform: translateX(24px); transition: opacity .25s ease, transform .25s ease; }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateX(24px); }
.toast.info { border-left-color: var(--gold); }
.toast.warn { border-left-color: #ff8a3d; }
.toast .t-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(63,207,122,.16); color: #3fcf7a; }
.toast.info .t-ico { background: rgba(246,200,30,.15); color: var(--gold); }
.toast.warn .t-ico { background: rgba(255,138,61,.15); color: #ff8a3d; }
.toast .t-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.toast .t-body b { font: 700 17px var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--gold2); }
.toast .t-body span { font-size: 14px; color: var(--soft); line-height: 1.35; overflow-wrap: anywhere; }
.toast .t-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.toast .t-x:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; animation: toastbar 10s linear forwards; }
@keyframes toastbar { to { transform: scaleX(0); } }
@media (max-width: 760px) { #toasts { top: 10px; right: 16px; left: 16px; width: auto; } .toast { transform: translateY(-16px); } .toast.out { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- live coin price in the cashier (green/red flash when it moves) ---- */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fcf7a; margin: 0 5px 1px 6px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(63,207,122,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(63,207,122,.55); } 70% { box-shadow: 0 0 0 7px rgba(63,207,122,0); } 100% { box-shadow: 0 0 0 0 rgba(63,207,122,0); } }
#c-live { transition: color .6s ease; }
#c-live.tick-up { animation: tickup 1.2s ease; }
#c-live.tick-down { animation: tickdown 1.2s ease; }
@keyframes tickup { 0% { color: #3fcf7a; } 100% { color: inherit; } }
@keyframes tickdown { 0% { color: #ff6b5a; } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .live-dot, #c-live.tick-up, #c-live.tick-down { animation: none; } }

/* page titles are h1 for search engines (4 Dec 2026), drawn exactly as the h2 titles were */
.card h1.ptitle { font-size: 21px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.policy .prose h1.ptitle { font-size: 34px; margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Latest wins on a phone: the horse's number square(s) only, so the player's name and the payout have room */
@media (max-width: 520px) {
  .feed-head, .feed-row { grid-template-columns: auto minmax(0, 1.5fr) auto auto; gap: 8px; }
  .feed-row .h b { display: none; }
  .feed-row .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* withdrawal boxes: a browser autofill starts this (empty) animation, so the page can clear what it filled */
@keyframes sd-autofill { from { opacity: 1; } to { opacity: 1; } }
input.no-fill:-webkit-autofill { animation: sd-autofill .01s; }
