/* AUREA Derby — character races (patch #269). Track-first layout. */
.sg-stage { padding: 18px; }
.sg-toprow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sg-theme { font-weight: 800; color: var(--gold, #FFD700); margin: 0; }
.sg-bgm { background: rgba(127,140,180,.14); border: 1px solid rgba(160,170,210,.35); border-radius: 10px; width: 42px; height: 42px; font-size: 1.05rem; cursor: pointer; }
.sg-bgm[aria-pressed="true"] { border-color: #FFD700; box-shadow: 0 0 10px rgba(255,215,0,.35); }
.sg-soon { text-align: center; padding: 10px 0 2px; }

.db-track { position: relative; border: 1px solid rgba(255,215,0,.35); border-radius: 14px;
  background: linear-gradient(180deg, #101736 0%, #0A0F1E 100%); padding: 10px 12px; overflow: hidden; }
.db-lane { position: relative; height: 44px; border-bottom: 1px dashed rgba(160,170,210,.22); }
.db-lane:last-child { border-bottom: none; }
.db-lane::after { content: ""; position: absolute; right: 6px; top: 4px; bottom: 4px; width: 3px;
  background: repeating-linear-gradient(180deg, #FFD700 0 6px, transparent 6px 12px); opacity: .7; }
.db-runner { position: absolute; top: 2px; left: 0; width: 40px; height: 40px; will-change: transform; }
.db-runner img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,215,0,.55);
  background: #141B3A; object-fit: cover; }
.db-runner.win img { border-color: #FFD700; box-shadow: 0 0 14px rgba(255,215,0,.8); }
.db-lane-name { position: absolute; left: 48px; top: 12px; font-size: .8rem; font-weight: 700;
  color: var(--muted, #A7ACC2); pointer-events: none; }
.db-place { position: absolute; right: 16px; top: 10px; font-weight: 800; color: #FFD700; }
.db-call { min-height: 1.4em; font-weight: 700; margin: 10px 2px 0; }
.db-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

.db-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.db-table th, .db-table td { padding: 6px 8px; border-bottom: 1px solid rgba(160,170,210,.18); text-align: left; }
.db-table td.num, .db-table th.num { text-align: right; }
.db-table img { width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.db-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.db-pick button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(160,170,210,.4); background: rgba(127,140,180,.12); color: inherit; cursor: pointer; font-weight: 700; }
.db-pick button img { width: 24px; height: 24px; border-radius: 50%; }
.db-pick button.sel { border-color: #FFD700; box-shadow: 0 0 10px rgba(255,215,0,.4); }
.db-amount { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.db-amount input { width: 110px; padding: 8px; border-radius: 8px; border: 1px solid rgba(160,170,210,.4);
  background: rgba(10,15,30,.6); color: inherit; }
.db-listing { display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(160,170,210,.18); }
.db-listing img { width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.db-train { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 700px) {
  .db-runner, .db-runner img { width: 32px; height: 32px; }
  .db-lane { height: 38px; }
  .db-lane-name { left: 40px; font-size: .72rem; }
  .db-table { font-size: .82rem; }
}
