/* ═══════════════════════════════════════════════════════════
   RACECARDS.CSS — Racecards + Results slides
   Same components · colour varies per context (blue vs orange)
═══════════════════════════════════════════════════════════ */

/* ── View toggle (Course / Time) ── */
.rc-view-tog { display:flex; border:1px solid var(--bdr); border-radius:8px; overflow:hidden; background:var(--sur); margin-bottom:12px; }
.rc-view-btn { font-size:11px; font-weight:800; letter-spacing:1px; text-transform:uppercase; flex:1; padding:8px 12px; border:none; cursor:pointer; transition:all .12s; }
.rc-view-btn.on  { background:var(--navy); color:#fff; }
.rc-view-btn.off { background:transparent; color:var(--mut); }
.rc-view-btn + .rc-view-btn { border-left:1px solid var(--bdr); }

/* ── Meeting header ── */
/* Racecards = blue, Results = orange — white text on both */
.rc-meeting { margin-bottom:8px; border-radius:12px; overflow:hidden; border:1px solid var(--bdr); box-shadow:0 2px 8px rgba(0,0,0,.08); position:relative; z-index:1; background:var(--sur); }
.rc-meeting-hdr { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; transition:filter .1s; border-radius:12px 12px 0 0; }
.rc-meeting-hdr:active { filter:brightness(.92); }
.rc-mtg-blue { background:rgba(37,99,235,.65); }
.rc-mtg-ora  { background:rgba(234,88,12,.65); }
.rc-meeting-flag { font-size:17px; flex-shrink:0; }
.rc-meeting-info { flex:1; min-width:0; overflow:hidden; }
.rc-mtg-course { font-size:20px; font-weight:900; color:#fff; letter-spacing:.2px; line-height:1; }
.rc-mtg-meta   { font-size:11px; color:rgba(255,255,255,.75); margin-top:3px; font-weight:600; letter-spacing:.2px; }
.rc-meeting-chevron { color:rgba(255,255,255,.7); font-size:18px; line-height:1; transition:transform .2s; flex-shrink:0; align-self:center; }
.rc-meeting-chevron.open { transform:rotate(90deg); color:#fff; }
.rc-meeting-body { overflow:hidden; border-radius:0 0 12px 12px; }

/* ── Race row header ── */
.rc-race-row { border-bottom:1px solid var(--bdr); background:var(--sur); }
.rc-race-row:last-child { border-bottom:none; }
.rc-race-hdr { display:flex; align-items:center; justify-content:space-between; padding:10px 14px 9px; background:var(--sur2); cursor:pointer; transition:background .1s; gap:8px; }
.rc-race-hdr:active { background:var(--bdr); }
.rc-race-hdr-left { flex:1; min-width:0; }
.rc-race-time { font-size:16px; font-weight:900; color:var(--navy); letter-spacing:.2px; line-height:1; margin-bottom:3px; }
.rc-race-name { font-size:12px; font-weight:600; color:var(--mut); line-height:1.3; margin-bottom:3px; letter-spacing:.1px; }
.rc-race-meta-row { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.rc-dist-chip { background:var(--sur); color:var(--mut); border:1px solid var(--bdr); padding:2px 7px; border-radius:4px; font-size:10px; font-weight:700; }
.rc-race-runners-lbl { font-size:11px; color:var(--mut); }
.rc-chev { color:var(--mut); font-size:20px; transition:transform .15s, color .15s; flex-shrink:0; }
.rc-chev.open { transform:rotate(90deg); color:var(--blu); }

/* "NEXT" badge */
.rc-next-badge { background:rgba(255,255,255,.2); color:#fff; border:1px solid rgba(255,255,255,.45); padding:1px 6px; border-radius:4px; font-size:9px; font-weight:800; letter-spacing:.5px; margin-right:4px; }

/* "Earlier today" divider */
.rc-earlier-lbl { padding:14px 0 6px; border-top:1px solid var(--bdr); margin-top:4px; font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mut); }

/* ── Info bar (going / distance / prize) ── */
.rc-info-bar  { display:flex; gap:0; background:var(--sur2); border-bottom:1px solid var(--bdr); }
.rc-info-item { flex:1; display:flex; flex-direction:column; padding:9px 14px; border-right:1px solid var(--bdr); }
.rc-info-item:last-child { border-right:none; }
.rc-info-lbl  { font-family:var(--font); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mut); margin-bottom:3px; }
.rc-info-val  { font-family:var(--font); font-size:14px; font-weight:700; color:var(--navy); line-height:1; letter-spacing:.02em; }

/* ── Runner rows ── */
.rc-runner { display:flex; align-items:center; padding:10px 14px; border-bottom:1px solid var(--bdr); gap:10px; background:var(--sur); transition:background .1s; }
.rc-runner:last-child { border-bottom:none; }
.rc-runner-nr { opacity:.4; }
.rc-runner-bet-real { background:rgba(59,130,246,.1); border-left:3px solid #3b82f6; padding-left:11px; }
.rc-runner-bet-virt { background:rgba(234,88,12,.1); border-left:3px solid #ea580c; padding-left:11px; }

/* Cloth number */
.rc-cloth { width:28px; text-align:center; font-size:15px; font-weight:900; color:var(--navy); flex-shrink:0; }
.rc-nr-chip { font-size:8px; font-weight:800; letter-spacing:.5px; background:var(--sur2); color:var(--mut); border:1px solid var(--bdr); border-radius:3px; padding:1px 4px; }

/* Runner body */
.rc-runner-body { flex:1; min-width:0; }
.rc-runner-name-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:3px; }
.rc-runner-name { font-size:16px; font-weight:600; color:var(--txt); letter-spacing:.2px; line-height:1; }
.rc-runner-name-nr { color:var(--mut); }

/* OR rating badge */
.rc-or { font-size:10px; font-weight:800; padding:2px 6px; border-radius:4px; background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.2); color:var(--blu); letter-spacing:.3px; }
.rc-mr-chip { font-size:10px; font-weight:800; padding:2px 6px; border-radius:4px; background:transparent; border:1px solid rgba(234,179,8,.2); color:rgba(234,179,8,.45); letter-spacing:.3px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.rc-mr-chip-set { background:rgba(234,179,8,.08); border-color:rgba(234,179,8,.35); color:#d97706; }
.rc-mr-chip:active { opacity:.6; }

/* Form figures */
.rc-runner-form { font-size:11px; color:var(--mut); letter-spacing:.08em; display:block; margin-bottom:3px; }

/* Labelled detail rows (Form / Jockey / Trainer) */
.rc-runner-detail-row { display:flex; align-items:baseline; gap:6px; margin-bottom:2px; }
.rc-detail-lbl { font-family:var(--font); font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--mut); flex-shrink:0; min-width:42px; }
.rc-runner-jt { font-size:12px; color:var(--txt); font-weight:500; }

/* Watchlist reason pill */
.rc-wl-pill { font-size:12px; }

/* Runner action column */
.rc-runner-actions { display:flex; flex-direction:row; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:5px; flex-shrink:0; }

/* Unified action icon buttons */
.rc-act-btn { width:30px; height:30px; padding:0; border-radius:7px; border:1px solid; background:transparent; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:all .12s; flex-shrink:0; -webkit-tap-highlight-color:transparent; }
.rc-act-btn:active { transform:scale(.9); opacity:.75; }

/* Bet button */
.rc-bet-btn { border-color:rgba(37,99,235,.3); background:rgba(37,99,235,.1); color:var(--blu); }
.rc-bet-btn:active { background:rgba(37,99,235,.2); }


/* Profile toggle (colour set inline from reason) */
.rc-profile-tog { width:24px; height:24px; padding:0; font-size:9px; font-weight:700; border-radius:5px; border:1px solid; background:transparent; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }

/* ── Profile panel ── */
.rc-profile-panel { border-top:1px solid var(--bdr); background:var(--clr-watch-a1); padding:11px 14px 13px; }
.rc-pp-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.rc-pp-reason-badge { font-size:9px; font-weight:800; padding:2px 8px; border-radius:20px; border:1px solid; letter-spacing:.5px; text-transform:uppercase; }
.rc-pp-mr  { font-size:11px; color:var(--gld); font-weight:700; }
.rc-pp-or  { font-size:11px; color:var(--mut); }
.rc-pp-note { font-size:12px; color:var(--txt); line-height:1.55; margin-bottom:8px; font-style:italic; }
.rc-pp-cond { font-size:11px; color:var(--mut); margin-bottom:7px; }
.rc-pp-intel { font-size:11px; color:var(--mut); border-left:2px solid rgba(37,99,235,.3); padding-left:8px; margin-bottom:7px; line-height:1.5; }
.rc-pp-cond-notes { font-size:11px; color:var(--mut); border-left:2px solid rgba(234,88,12,.3); padding-left:8px; margin-bottom:7px; line-height:1.5; }
.rc-pp-sec-lbl { font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:var(--mut); margin-bottom:5px; font-weight:700; }
.rc-pp-obs-row { font-size:11px; color:var(--mut); margin-bottom:4px; line-height:1.4; }
.rc-pp-obs-date { font-size:9px; color:var(--mut); margin-right:5px; }
.rc-pp-obs-result-win { font-size:9px; font-weight:800; color:var(--grn); margin-right:5px; }
.rc-pp-obs-result-mut { font-size:9px; font-weight:700; color:var(--mut); margin-right:5px; }
.rc-pp-target { font-size:11px; color:var(--ora); margin-bottom:3px; font-weight:600; }

/* Edge badges */
.rc-edge-pos { font-size:11px; font-weight:700; color:var(--grn); background:rgba(22,163,74,.08); border:1px solid rgba(22,163,74,.2); padding:2px 7px; border-radius:4px; }
.rc-edge-neg { font-size:11px; font-weight:700; color:var(--red); background:rgba(220,38,38,.08); border:1px solid rgba(220,38,38,.2); padding:2px 7px; border-radius:4px; }
.rc-edge-nil { font-size:11px; color:var(--mut); border:1px solid var(--bdr); padding:2px 7px; border-radius:4px; }

/* ── Results: race block ── */
.rc-race-block { border-radius:12px; border:1px solid var(--bdr); margin-bottom:8px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.rc-race-count { font-size:11px; color:var(--mut); font-weight:600; flex-shrink:0; }

/* Results runner row */
.rc-res-runner { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid var(--bdr); background:var(--sur); }
.rc-res-runner:last-child { border-bottom:none; }
.rc-pos { font-size:17px; font-weight:900; min-width:24px; flex-shrink:0; letter-spacing:.5px; }
.rc-pos-1 { color:var(--grn); }
.rc-pos-2 { color:var(--blu); }
.rc-pos-3 { color:var(--ora); }
.rc-pos-n { color:var(--mut); }
.rc-runner-main { flex:1; min-width:0; }
.rc-runner-right { display:flex; flex-direction:row; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:5px; flex-shrink:0; }
.rc-sp { font-size:14px; color:var(--gld); font-weight:800; letter-spacing:.3px; }

/* Watch buttons — same shape, colour only differs */
.rc-watch-btn { font-size:10px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; padding:5px 10px; border-radius:6px; cursor:pointer; white-space:nowrap; border:1px solid; transition:all .12s; }
.rc-watch-btn-on  { border-color:rgba(22,163,74,.3);   background:rgba(22,163,74,.08);   color:var(--grn); }
.rc-watch-btn-add { border-color:var(--clr-watch-a5);  background:var(--clr-watch-a1);  color:var(--clr-watch); }
.rc-watch-btn-sm  { font-size:10px; font-weight:800; padding:5px 10px; border-radius:6px; border:1px solid var(--clr-watch-a5); background:var(--clr-watch-a1); color:var(--clr-watch); cursor:pointer; }

/* International label */
.rc-intl-lbl { font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:var(--mut); padding:10px 4px 6px; font-weight:700; }

/* ── Toast ── */
.rc-toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%); background:var(--grn); color:#fff; font-size:11px; font-weight:800; letter-spacing:.06em; padding:8px 18px; border-radius:20px; z-index:9999; transition:opacity .4s; pointer-events:none; white-space:nowrap; box-shadow:0 4px 12px rgba(0,0,0,.2); }

/* ── Close bar ── */
.rc-close-bar { position:fixed; bottom:0; left:0; right:0; z-index:202; padding:12px 17px env(safe-area-inset-bottom,16px); background:var(--bg); border-top:1px solid var(--bdr); }
.rc-close-bar-btn { width:100%; padding:14px; border-radius:10px; border:1px solid var(--bdr); background:var(--sur2); color:var(--mut); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }

/* ── Empty states ── */
.rc-empty      { color:var(--mut); font-style:italic; font-size:13px; padding:18px 14px; text-align:center; }
.rc-no-runners { padding:10px 14px; color:var(--mut); font-style:italic; font-size:13px; }

/* ═══════════════════════════════════════════════════════════
   SHORTLIST MODE — Tinder-style runner cards
═══════════════════════════════════════════════════════════ */

/* Shortlist uses the same blue header as Course/Time tabs */
.rc-mtg-pur { background: rgba(37,99,235,.65); }

/* Clickable race rows in picker */
.rc-sl-race-row { cursor: pointer; transition: background .1s; }
.rc-sl-race-row:active .rc-race-hdr { background: var(--bdr); }
.rc-sl-race-header { margin-bottom: 10px; }

/* The swipeable runner card — extends rc-meeting */
.rc-sl-card {
  will-change: transform; user-select: none; touch-action: pan-y;
  margin-bottom: 0;
}

/* Edge badges */
.rc-sl-edge-pos {
  font-size: 10px; font-weight: 700; color: var(--grn);
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  padding: 2px 6px; border-radius: 4px;
}
.rc-sl-edge-neg {
  font-size: 10px; font-weight: 700; color: var(--red);
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25);
  padding: 2px 6px; border-radius: 4px;
}

/* Pass / Shortlist buttons */
.rc-sl-actions {
  display: flex; gap: 10px; margin-top: 12px;
}
.rc-sl-btn-pass {
  flex: 1; padding: 14px; border-radius: 10px; font-size: 14px;
  font-weight: 800; letter-spacing: .05em; cursor: pointer;
  background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.22);
  color: var(--red); transition: all .12s;
}
.rc-sl-btn-pass:active { background: rgba(239,68,68,.16); }
.rc-sl-btn-shortlist {
  flex: 1; padding: 14px; border-radius: 10px; font-size: 14px;
  font-weight: 800; letter-spacing: .05em; cursor: pointer;
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.3);
  color: var(--grn); transition: all .12s;
}
.rc-sl-btn-shortlist:active { background: rgba(22,163,74,.2); }
.rc-sl-btn-added {
  background: rgba(22,163,74,.18); border-color: var(--grn);
}

/* Summary rows */
.rc-sl-summary-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--bdr);
}
.rc-sl-summary-row:last-child { border-bottom: none; }

/* ── Dark mode overrides ── */
body.dark .rc-race-time { color: #fff; }
body.dark .rc-info-val  { color: var(--txt); }
body.dark .rc-cloth     { color: var(--txt); }
body.dark .rc-meeting   { background: var(--sur); border-color: var(--bdr); }
body.dark .rc-view-tog  { background: var(--sur); border-color: var(--bdr); }

/* ── Race simulation: a real racecourse scene with a curved bend, not a
   dead-straight strip — the course geometry is built per-race in JS
   (simulate.js: SIM_TRACK_PTS, _simLayoutTrack) from the real measured
   viewport, and every on-track element (rails, surface, poles, post,
   stand, horses) is positioned off that one curved SVG path. .sim-stage
   hosts the 3D perspective; .sim-course is the tilted "ground plane"
   inside it — a trackside broadcast-camera angle, panning with the field
   as it comes round the bend into the straight. */
.sim-stage {
  perspective: 900px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bdr);
  box-shadow: 0 14px 24px -12px rgba(0,0,0,.4);
  background: #afe3f7;
}
.sim-course {
  position: relative;
  height: 320px;
  overflow: hidden; /* clips the long scrolling world strip to the viewport */
  /* A shallow tilt reads as standing trackside at the rail, roughly eye-level
     with the horses — a steep tilt reads as an aerial/crane shot looking
     down at the track, which is the opposite of "by the side of the track". */
  transform: rotateX(5deg) scale(1.015);
  transform-origin: center bottom;
  /* sky · hazy distant hills — a fixed, non-scrolling backdrop so distant
     scenery reads as far away while the world strip pans underneath it. */
  background: linear-gradient(180deg,
    #afe3f7 0%,  #afe3f7 7%,
    #8fc7c9 7%,  #8fc7c9 11%,
    #6abf5e 11%, #6abf5e 100%);
}
/* The race plays out on a strip 3x wider than the visible viewport;
   simulate.js pans this via translateX (in real px, following the curve)
   so the camera follows the leader instead of squeezing the whole trip
   onto one static screen — the winning post and grandstand only scroll
   into view in the closing stages, same as a real trackside camera. */
.sim-world {
  position: absolute; top: 0; left: 0; height: 100%;
  transition: transform .32s linear;
  will-change: transform;
}
/* The curved course itself — surface fill, rails and the (invisible)
   centerline every other element is positioned from — drawn as one SVG
   so it can genuinely bend instead of faking it with straight divs. */
.sim-track-svg { position: absolute; top: 0; left: 0; pointer-events: none; }
.sim-grandstand {
  position: absolute; top: 0; left: 0; width: 46px; height: 13px;
  background: linear-gradient(180deg, #8a93a6 0%, #8a93a6 55%, #5d6578 55%, #5d6578 100%);
  border-radius: 2px 2px 0 0; opacity: .8; pointer-events: none;
}
.sim-grandstand::before {
  content: ''; position: absolute; top: -4px; left: 2px; right: 2px; height: 5px;
  background: #5d6578; border-radius: 2px 2px 0 0;
}
.sim-scenery {
  position: absolute; top: 2px; left: 0; right: 0; height: 22px;
  display: flex; align-items: flex-end; justify-content: space-around;
  font-size: 15px; opacity: .85; pointer-events: none; user-select: none;
}
/* Hurdle/Chase obstacles — a plain birch-brush bar, same for both disciplines */
.sim-jump {
  position: absolute; top: 0; left: 0; width: 7px; height: 64px;
  background: repeating-linear-gradient(0deg, #8b5a2b 0 4px, #a9744f 4px 8px);
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}
/* The winning post — a real UK-style red-and-white striped post standing
   just outside the rail, same as the furlong poles rather than a barrier
   spanning the whole track (a post that wide would be unrealistic — horses
   run past it, not through it). Capped with a disc so it reads as the one
   marker that matters. */
.sim-finish-post {
  position: absolute; top: 0; left: 0; width: 6px; height: 38px;
  background: repeating-linear-gradient(45deg, #c0392b 0 5px, #fff 5px 10px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
  z-index: 3;
}
.sim-finish-post::after {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid #c0392b;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* Furlong poles — real distance markers standing just outside the rail,
   each labelled with furlongs still to run. Kept off the track itself so
   they never visually collide with a horse marker. */
.sim-furlong-pole {
  position: absolute; top: 0; left: 0; width: 3px; height: 22px;
  background: repeating-linear-gradient(0deg, #222 0 3px, #fff 3px 6px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}
.sim-furlong-label {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 7px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55);
  border-radius: 2px; padding: 0 2px; white-space: nowrap;
}
/* Corner broadcast-style readouts — elapsed time (left) and furlongs-to-go
   (right), pinned to the viewport so they never scroll with the world. */
.sim-hud-row {
  position: absolute; top: 6px; left: 6px; right: 6px;
  display: flex; justify-content: space-between; z-index: 6; pointer-events: none;
}
.sim-hud-box {
  font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: rgba(10,14,22,.62); border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px; padding: 4px 9px; white-space: nowrap;
}
.sim-hud-box-accent { color: #ffd166; }
/* Live running-order leaderboard, overlaid on the scene itself rather than
   sitting below it, updated every tick of simPlay(). */
.sim-leaderboard {
  position: absolute; left: 6px; bottom: 6px; z-index: 6;
  background: rgba(10,14,22,.6); border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 4px 7px; pointer-events: none;
  max-width: 62%;
}
.sim-lb-row { display: flex; align-items: center; gap: 5px; padding: 1.5px 0; }
.sim-lb-pos { width: 11px; font-size: 9px; font-weight: 800; color: #ffd166; flex-shrink: 0; }
.sim-lb-swatch { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; object-fit: contain; }
.sim-lb-num { font-size: 8px; font-weight: 800; color: #fff; opacity: .7; flex-shrink: 0; }
.sim-lb-name {
  font-size: 9.5px; font-weight: 600; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 108px;
}
.sim-horse-marker {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: 3px;
  transition: transform .3s linear;
  will-change: transform;
  animation: sim-gallop .35s ease-in-out infinite alternate;
}
/* A short speed-blur streak trailing behind each runner, for a sense of pace */
.sim-horse-marker::before {
  content: ''; position: absolute; top: 50%; right: 100%;
  width: 18px; height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55));
  border-radius: 2px; pointer-events: none;
}
/* Number label, always visible above the runner — not a tiny corner badge —
   so you can tell at a glance which horse is which while they are running. */
.sim-horse-label {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 2px;
  font-size: 9px; font-weight: 800; line-height: 1.4;
  background: #fff; color: #111; border: 1px solid rgba(0,0,0,.3);
  border-radius: 3px; padding: 0 3px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
/* The runner's silk — real image from the API when available, else a
   deterministic coloured swatch (see _simSilkColor in simulate.js) */
.sim-silk-wrap { position: relative; width: 15px; height: 15px; flex-shrink: 0; }
.sim-silk {
  display: block; width: 15px; height: 15px; border-radius: 3px;
  object-fit: contain; background: #fff; border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
/* The 🐎 glyph faces left by default; the sim always runs left-to-right,
   so it is mirrored to actually face the direction of travel. */
.sim-horse-icon {
  font-size: 27px; line-height: 1;
  display: inline-block; transform: scaleX(-1);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.35));
}
@keyframes sim-gallop {
  from { margin-top: 0; }
  to   { margin-top: -3px; }
}
/* Compact number → horse key, shown below the scene */
.sim-beta-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 8px; font-weight: 800; letter-spacing: .6px;
  background: #a855f7; color: #fff; border-radius: 3px; padding: 1px 4px;
  flex-shrink: 0;
}
.sim-key { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 10px; }
.sim-key-row { display: flex; align-items: center; gap: 6px; font-size: 11px; min-width: 0; }
.sim-key-swatch {
  flex-shrink: 0; width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.2);
}
.sim-key-num {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 3px;
  background: var(--sur2); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--txt);
}
.sim-key-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
