/* Classic stable (game.js) re-skinned to the shared Wire to Wire theme. Loaded after styles.css + theme.css. */
:root { --green: #f3d98a; --green2: #d8b45a; --green3: #8fd0ff; --gold: #d8b45a; --gold2: #f3d98a; --cream: #0a1722; --paper: #112a3c; --ink: #f2f6f9; --muted: #b7c7d3; --line: rgba(255,255,255,.13);
  --red: #e0564a; --blue: #8fd0ff; --shadow: 0 2px 10px rgba(0,0,0,.25); --sans: var(--w-sans); }
body { font-size: 16px; background: radial-gradient(1200px 640px at 50% -160px, #1f4560, #0e2231 55%, #0a1722); }
h1, h2, h3, h4 { color: var(--w-brass2); }
a { color: var(--w-brass2); }
.topbar { position: sticky; top: calc(var(--w-h) + var(--w-safeT)); background: #0e2433; border-bottom: 1px solid var(--w-line2); padding: 8px 18px; color: var(--w-txt); }
.topbar .logo { display: none; }
.brand-name { font-size: 1.2rem; color: #fff; } .brand-name span { color: var(--w-brass2); }
.brand-sub { color: var(--w-muted); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.hud-label { color: var(--w-muted); }
.coins-hud span:last-child { color: var(--w-good); }
.tabs { top: calc(var(--w-h) + var(--w-safeT) + 62px); background: #0b1d2b; border-bottom: 1px solid var(--w-line2); }
.tabs button { color: var(--w-muted); font-size: 15px; }
.tabs button:hover { background: rgba(255,255,255,.07); color: #fff; }
.tabs button.active { background: linear-gradient(180deg, #ffe9a6, var(--w-brass) 60%, #b8892e); color: #241600; }
.btn { background: var(--w-raise); color: #fff; border: 1px solid var(--w-line2); }
.btn-gold { background: linear-gradient(180deg, #ffe9a6, var(--w-brass) 60%, #b8892e); color: #241600; border-color: #f7e4a6; }
.btn-ghost { background: transparent; color: var(--w-brass2); border: 1.5px solid var(--w-line); }
.btn-red { background: #9e2b22; }
.card, .stat-tile { border-color: var(--w-line2); }
.stat-tile .v, .horse-name, .race-card .purse, .pack .amt, .tier .price { color: #fff; }
.badge { background: rgba(255,255,255,.1); color: #dce8f0; }
.badge.gold, .badge.stakes { background: rgba(216,180,90,.22); color: var(--w-brass2); }
.badge.red { background: rgba(224,86,74,.22); color: #ffb2a9; }
.badge.blue, .badge.maiden { background: rgba(143,208,255,.16); color: #bfe4ff; }
.badge.gray { background: rgba(255,255,255,.08); color: #c7d2da; }
.badge.claiming { background: rgba(255,170,90,.18); color: #ffcf9e; }
.badge.allowance { background: rgba(134,224,143,.16); color: #b9f0be; }
.rating { background: #0a1c2a; border: 1px solid var(--w-line); color: #fff; } .rating small { color: var(--w-muted); }
.bar { background: rgba(255,255,255,.1); }
.bar i { background: linear-gradient(90deg, #a57b26, var(--w-brass2)); }
.tbl td { border-bottom-color: var(--w-line2); }
.tbl tr.me td, .standings li.me { background: rgba(216,180,90,.16); }
.seg { background: rgba(0,0,0,.25); }
.seg button.on { background: var(--w-brass); color: #241600; }
.modal-bg { background: rgba(3,8,12,.7); }
.modal { border-top-color: var(--w-brass); border: 1px solid var(--w-line); }
.modal-x { background: rgba(255,255,255,.1); color: #fff; }
.ped div { background: rgba(255,255,255,.07); }
.ped .p0 { background: #0a1c2a; color: var(--w-brass2); }
.commentary { background: #08161f; }
.result-banner { background: linear-gradient(90deg, #163449, #1d4f74); }
.pill { background: var(--w-raise); }
.notice { background: rgba(216,180,90,.12); border-color: var(--w-line); color: #f6e6b8; }
.notice.green { background: rgba(134,224,143,.12); border-color: rgba(134,224,143,.35); color: #c9f5cd; }
input[type=text], select { background: #08161f; color: #fff; border-color: var(--w-line2); font-size: 16px; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--w-brass); }
.toast { background: #163449; border: 1px solid var(--w-line); }
.opt { background: rgba(255,255,255,.04); color: var(--w-txt); }
.opt.on { background: rgba(216,180,90,.14); }
.foal-pred { background: rgba(255,255,255,.06); }
.hero { background: linear-gradient(120deg, #163449, #1d4f74 60%, #24607f); }
.hero p { color: #dbe8f1; }
.footer { background: transparent; border-top: 1px solid var(--w-line2); color: rgba(220,232,240,.6); font-size: 12px; }
.footer strong { color: rgba(220,232,240,.85); }
.footer .linkbtn { color: var(--w-brass2); }
.silkpick { display: grid; grid-template-columns: 52px 1fr; gap: 8px 10px; align-items: center; margin-top: 6px; }
.silkpick > span { font-size: 13px; font-weight: 700; color: var(--w-muted); }
.silkprev { width: 46px; height: 46px; border-radius: 10px; margin-top: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .topbar { position: relative; top: 0; }
  .tabs { position: sticky; top: calc(var(--w-h) + var(--w-safeT)); }
  .tabs button span { display: inline; } .tabs button { font-size: 14px; padding: 8px 12px; }
}
.modal-bg { z-index: 80; } #silkPrev .silk { display: block; }