/* Keep playback controls inside the modal without restarting the simulation. */
#raceStage{border:0;background:transparent}
#playerDialog{position:fixed;inset:0;margin:0;padding:0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#edf5f9;color:#123b4b;overflow:auto}
#playerDialog::backdrop{background:#edf5f9}
#playerDialog #playerShell{display:flex;flex-direction:column;gap:8px;min-height:100%;padding:16px;box-sizing:border-box}
#playerDialog #raceStage{flex:none;width:min(100%,calc(max(130px,100dvh - 240px) * 820 / 440));margin:auto;aspect-ratio:820/440;background:#073448}
#playerDialog #raceStage svg{width:100%;height:auto;aspect-ratio:820/440}
#playerDialog .status,#playerDialog .actions{flex:none;margin:0 auto;width:min(100%,1100px)}
#playerDialog .status{color:#123b4b}
#playerDialog .actions{padding-bottom:8px;align-items:center}
.player-toolbar{display:flex;justify-content:flex-end;flex:none;padding:6px 0}
#playerShell .stage-expand{position:static;transform:none;min-height:44px;flex:none}
@media(max-width:650px){#playerDialog #playerShell{padding:8px}#playerDialog #raceStage{width:min(100%,calc(max(130px,100dvh - 290px) * 820 / 440))}}
.beta-notice{display:grid;gap:5px;margin:0 0 18px;padding:12px 16px;border:1px solid #8bc8d1;border-radius:13px;background:#eefafa;color:#234c59}
.beta-notice strong{color:#006f72;font-size:16px}.beta-notice small{font-size:13px;line-height:1.55;color:#4c6872}
.judgment-badge{display:inline-block;padding:3px 7px;border-radius:6px;background:#e7edf2;color:#344c5f;font-size:14px}.judgment-reason{display:block;margin-top:7px;font-size:14px;font-weight:400;line-height:1.5}

.ai-hit-news-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.ai-hit-card{min-width:0;border:1px solid #d6e1e8;border-radius:14px;padding:14px;background:#f7fafb}.ai-hit-card-gold{border-color:#cf9f27;background:linear-gradient(135deg,#fff9df,#fff 68%)}.ai-hit-card-special{border:2px solid #d6a21f;background:linear-gradient(135deg,#fff4c1,#fff9e7 46%,#fff);box-shadow:0 5px 18px #b88b2729}.ai-hit-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-hit-race{font-weight:800}.ai-hit-plans{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.ai-hit-plan{padding:3px 8px;border-radius:999px;background:#e6f0f4;font-size:12px;font-weight:700}.ai-hit-ticket{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;padding:8px 0;border-top:1px solid #dce6ea}.ai-hit-payout{font-weight:800}.ai-hit-gold{color:#885c00}.ai-hit-special{color:#7b4a00;font-size:15px}.ai-hit-source{font-size:12px}.ai-hit-empty{padding:12px;border-radius:10px;background:#f2f5f7}
@media(max-width:650px){.ai-hit-news-list{grid-template-columns:minmax(0,1fr)}.ai-hit-card{padding:12px}.ai-hit-top{align-items:flex-start}}
/* A populated ticket table must scroll within its wrapper, not widen the player grid. */
.grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.grid>*,#playerShell,.ticketplan,.tablewrap{min-width:0}
.tablewrap{max-width:100%}
@media(max-width:820px){.grid{grid-template-columns:minmax(0,1fr)}}
