.horse-profile-panel{max-width:1280px;margin:0 auto 18px}.preset-toolbar,.preset-save-row{display:grid;align-items:end;gap:12px}.preset-toolbar{grid-template-columns:minmax(240px,1fr) auto auto auto;margin-top:18px}.preset-save-row{grid-template-columns:minmax(240px,1fr) auto;margin-bottom:18px}.preset-toolbar label,.preset-save-row label{margin:0}.horse-profile-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.horse-profile-card{min-width:0;padding:11px;border:1px solid #d5cbbb;border-radius:15px;background:#fffdf8}.horse-profile-card>strong{display:block;margin:8px 0 2px}.horse-profile-card label{margin:9px 0;font-size:.78rem}.horse-profile-card input,.horse-profile-card select{min-width:0;padding:8px;font-size:.78rem}.horse-profile-preview{width:68px;height:68px;display:grid;place-items:center;margin:0 auto;overflow:hidden;border:4px solid #fff;border-radius:50%;box-shadow:0 4px 12px #0003;color:#fff;font-size:2.5rem}.horse-profile-preview img,.horse-card-color img{width:100%;height:100%;object-fit:cover}.horse-profile-preview .dark{color:#303030}.horse-card-color{overflow:hidden}@media(max-width:1100px){.horse-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:820px){.preset-toolbar{grid-template-columns:1fr 1fr}.preset-save-row{grid-template-columns:1fr}.horse-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.preset-toolbar,.horse-profile-grid{grid-template-columns:1fr}}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172018;background:#eee8dc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin-top:0}h1{margin-bottom:4px}h2{margin-bottom:8px}.center-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#f8f1df 0,#e9e2d5 55%,#ddd5c8)}.dashboard-shell,.race-shell{min-height:100vh;padding:28px;background:linear-gradient(180deg,#f7f1e5,#e8e0d2)}.topbar,.section-heading,.brand-row,.room-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar{max-width:1280px;margin:0 auto 24px}.topbar h1{font-size:clamp(1.6rem,3vw,2.35rem)}.race-topbar p:last-child{margin:5px 0 0;color:#5f574d}.panel{background:#ffffffeb;border:1px solid rgba(75,62,41,.14);border-radius:20px;padding:24px;box-shadow:0 14px 34px #49361c17}.auth-panel{width:min(460px,100%)}.brand-row{justify-content:flex-start;margin-bottom:24px}.horse-mark{font-size:3rem}.card-icon{font-size:2.3rem}.eyebrow{margin:0 0 5px;letter-spacing:.13em;text-transform:uppercase;font-size:.75rem;font-weight:800;color:#765f3f}.tab-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}.tab-row button,.secondary,.danger{border:1px solid #b8ac98;background:#fff;color:#3c3327;border-radius:12px;padding:10px 14px}.tab-row button.active{background:#2f5b3a;color:#fff;border-color:#2f5b3a}.danger{border-color:#bd6d6d;color:#962d2d;background:#fff8f7;font-weight:800}.danger:hover{background:#a53c3c;border-color:#a53c3c;color:#fff}label{display:grid;gap:7px;margin:14px 0;font-weight:700}input,select{width:100%;border:1px solid #b9ad99;border-radius:12px;padding:11px 12px;background:#fff;color:#1f231e}input:focus,select:focus{outline:3px solid rgba(47,91,58,.2);border-color:#2f5b3a}.primary{border:0;border-radius:12px;padding:11px 16px;background:#2f5b3a;color:#fff;font-weight:800}.primary:hover:not(:disabled){background:#24482d}.compact{padding:9px 14px;min-width:84px}.auth-submit{width:100%;margin-top:8px}.large-button{min-width:240px;margin-top:16px}.message,.notice{margin:16px 0 0;padding:12px 14px;border-radius:12px;background:#fff4cf}.notice{max-width:1280px;margin:0 auto 20px}.page-notice{margin-top:18px}.action-grid{max-width:1280px;margin:0 auto 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mode-card{background:linear-gradient(145deg,#eff7e7f2,#fffffff2)}.ready-badge,.rule-pill{display:inline-flex;align-items:center;border-radius:999px;background:#ddedcf;color:#245131;padding:7px 12px;font-weight:800;font-size:.84rem}.room-list-panel{max-width:1280px;margin:0 auto}.room-list{display:grid;gap:12px}.room-row{padding:14px;border:1px solid #d5cbbb;border-radius:15px;background:#fffdf8}.room-info{display:grid;gap:4px;flex:1}.room-info span{color:#6b6256;font-size:.92rem}.room-actions{display:flex;gap:8px}.empty{color:#6d655a;margin-bottom:0}.setup-panel,.final-panel{max-width:980px;margin:0 auto;text-align:center}.setup-panel>p{color:#635b50}.count-field{max-width:220px;margin:18px auto;text-align:left}.player-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;text-align:left}.player-name-grid label{position:relative}.player-name-grid .player-dot{position:absolute;right:8px;top:4px}.player-dot{display:inline-block;width:12px;height:12px;margin-right:7px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000002e}.score-strip{max-width:1280px;margin:0 auto 18px;display:flex;flex-wrap:wrap;gap:8px}.score-strip>div{flex:1 1 170px;display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid #d4c8b6;border-radius:13px;background:#ffffffdb}.score-strip>div b{margin-left:auto}.rank{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#efe5d4;color:#745f43;font-size:.75rem;font-weight:900}.bet-summary-panel{max-width:1280px;margin:0 auto 18px;padding:16px 20px}.bet-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.bet-summary-heading h2{margin-bottom:0;font-size:1.15rem}.bet-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bet-summary-player{display:grid;grid-template-columns:minmax(120px,.7fr) 2fr;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#faf6ed;border:1px solid #ded3c2}.bet-summary-player>strong{display:flex;align-items:center}.bet-summary-tokens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.bet-summary-token{min-width:0;display:grid;grid-template-columns:27px 10px 1fr;align-items:center;gap:5px;padding:5px;border-radius:9px;background:#fff;border:1px solid #ddd1bf}.bet-summary-token b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.75rem}.bet-horse-color{width:10px;height:34px;border-radius:5px;box-shadow:inset 0 0 0 1px #0003}.race-status,.track-panel,.race-controls,.horse-card-section,.betting-panel,.settlement-panel{max-width:1280px;margin:0 auto 18px}.race-status{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.race-status div{display:grid;gap:4px;padding:12px;border-radius:14px;background:#f8f3e8}.race-status span{color:#655d53}.track-panel{padding:12px;overflow:hidden;background:#fbf7ee}.board-scroll{overflow-x:auto;border-radius:15px}.turf-board{display:block;width:100%;min-width:760px;height:auto;background:radial-gradient(circle,#f7edcf,#e2d3b2);border-radius:15px}.space-number{fill:#fff9df;font-size:16px;font-weight:800;paint-order:stroke;stroke:#17381e99;stroke-width:3px}.board-kicker{fill:#785d2f;font-size:19px;font-weight:900;letter-spacing:8px}.board-title{fill:#274a2f;font-size:42px;font-weight:900}.board-state{fill:#5e513d;font-size:24px;font-weight:800}.board-pace{fill:#876c32;font-size:16px;font-weight:800}.payout-shell{fill:#2d2a22;stroke:#d1ba73;stroke-width:6px;filter:url(#pieceShadow)}.payout-title{fill:#f3df9d;font-size:20px;font-weight:900;letter-spacing:6px}.payout-head{fill:#202a30;stroke:#1a1713;stroke-width:2px}.payout-head-text{fill:#d5d9d2;font-size:16px;font-weight:900}.payout-cell{stroke:#1a1713;stroke-width:2px}.payout-row-1{fill:#a48a2c}.payout-row-2{fill:#6d6d6d}.payout-row-3{fill:#7b3c25}.payout-cell-text{fill:#f5e4b0;font-size:19px;font-weight:900;paint-order:stroke;stroke:#00000047;stroke-width:2px}.payout-rank{stroke:#e5d6aa;stroke-width:3px}.payout-rank-1{fill:#c0a127}.payout-rank-2{fill:#878787}.payout-rank-3{fill:#9a572d}.payout-rank-text{fill:#fff7da;font-size:22px;font-weight:900;paint-order:stroke;stroke:#00000059;stroke-width:3px}.payout-last-slot{fill:#efe3c8;stroke:#1a1713;stroke-width:2px}.payout-last-help{fill:#7d2a2a;font-size:18px;font-weight:900}.payout-horse-icon,.move-preview{pointer-events:none}.move-preview circle{fill:#ffea7633;stroke:#ffea76;stroke-width:6px;stroke-dasharray:10 7;animation:move-preview-pulse .9s ease-in-out infinite alternate}.move-preview text{fill:#fff6ba;font-size:17px;font-weight:900;paint-order:stroke;stroke:#22381ed9;stroke-width:5px}.svg-horse{cursor:pointer;outline:none;transition:transform 80ms linear,opacity .2s;will-change:transform}.svg-horse:hover:not(.disabled) circle,.svg-horse:focus:not(.disabled) circle{stroke:#ffea76;stroke-width:8px}.svg-horse.disabled{cursor:default}.svg-horse.used{opacity:.52;filter:grayscale(.75)}.svg-horse.moving>circle,.svg-horse.moving>text{animation:horse-stride .24s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}.svg-horse.blocked>circle{stroke:#ffcc5c;stroke-width:7px}.horse-glyph{fill:#fff;font-size:40px;font-weight:900}.horse-glyph.dark{fill:#303030}.place-badge{fill:#9a1f27;font-size:22px;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:5px}.race-controls{text-align:center}.race-controls .notice{margin-top:14px;margin-bottom:0}.roulette-button{position:relative;min-width:250px;min-height:116px;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:12px 24px 12px 18px;overflow:visible}.roulette-button:disabled{opacity:.82}.roulette-wheel{position:relative;flex:0 0 88px;width:88px;height:88px;border:5px solid #f7e2a0;border-radius:50%;background:conic-gradient(#355f8c 0deg 60deg,#4776a6 60deg 120deg,#5b88b5 120deg 180deg,#8b5b9f 180deg 240deg,#d26d3f 240deg 300deg,#b18c35 300deg 360deg);box-shadow:inset 0 0 0 3px #1e191273,0 4px 10px #00000040}.roulette-wheel.result{animation:roulette-reveal .85s cubic-bezier(.18,.78,.24,1)}.roulette-face{position:absolute;left:50%;top:50%;width:24px;height:24px;display:grid;place-items:center;color:#fff8d8;font-size:15px;font-weight:900;text-shadow:0 1px 3px #211a10}.roulette-center{position:absolute;left:50%;top:50%;width:36px;height:36px;display:grid;place-items:center;transform:translate(-50%,-50%);border:3px solid #ead28c;border-radius:50%;background:#2f2a20;color:#fff4c4;font-size:20px;font-weight:900;box-shadow:0 2px 6px #00000059}.roulette-pointer{position:absolute;z-index:2;left:59px;top:3px;color:#ffe36e;font-size:24px;filter:drop-shadow(0 2px 1px rgba(0,0,0,.45))}.roulette-label{min-width:118px;font-size:1.08rem;font-weight:900}.horse-card-section .section-heading{align-items:end}.performance-help{margin:0;color:#6a6257;font-size:.88rem}.horse-card-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.horse-card{min-width:0;padding:10px;border:1px solid #cdbfa9;border-radius:14px;background:#fbf7ed;color:#20251f;display:grid;justify-items:stretch;gap:8px;text-align:left}.horse-card:hover:not(:disabled){border-color:#2f5b3a;box-shadow:0 6px 16px #2f5b3a2b;transform:translateY(-2px)}.horse-card.used{filter:grayscale(.65)}.horse-card-color{height:58px;display:grid;place-items:center;border-radius:10px;color:#fff;font-size:2.35rem;text-shadow:0 2px 2px rgba(0,0,0,.35)}.horse-card:nth-child(7) .horse-card-color{color:#222}.horse-card strong{min-height:2.6em;font-size:.78rem}.horse-card small{color:#726859}.horse-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.horse-stats>span{display:grid;place-items:center;padding:4px 2px;border-radius:6px;background:#eee6d7;font-size:.78rem;font-weight:900}.horse-stats b{font-size:.72rem}.horse-stats .rolled{background:#ffdf67;color:#382d0d;box-shadow:0 0 0 2px #c99620}.betting-panel>p{color:#645d52}.bet-player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bet-card{border:1px solid #d7cbb8;border-radius:15px;padding:14px;background:#fffdf8}.bet-card.invalid{border-color:#c35a5a;background:#fff8f6}.bet-card h3{display:flex;align-items:center;margin-bottom:10px}.bet-card label{grid-template-columns:auto auto 1fr;align-items:center;margin:9px 0}.bet-card select{padding:8px 10px}.chip{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;color:#fff;font-weight:900;box-shadow:inset 0 0 0 2px #ffffff59}.chip-1{background:#416ca8}.chip-2{background:#a94764}.field-error{color:#a33636;font-weight:800}.settlement-table{display:grid;gap:8px}.settlement-table>div{display:grid;grid-template-columns:minmax(130px,1fr) auto auto;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#faf6ed}.settlement-table strong{display:flex;align-items:center}.settlement-table small{grid-column:1 / -1;color:#6b6256}.plus{color:#236a37}.minus{color:#a43838}.final-ranking{max-width:660px;margin:24px auto;display:grid;gap:10px}.final-ranking>div{display:grid;grid-template-columns:55px 18px 1fr auto;align-items:center;gap:8px;padding:14px;border:1px solid #d6c7af;border-radius:13px;background:#fffaf0;text-align:left}.final-ranking>div.winner{background:linear-gradient(90deg,#fff0a7,#fffaf0);border-color:#d3a93c;font-size:1.13rem}@keyframes roulette-reveal{0%{transform:rotate(-1080deg) scale(.82)}to{transform:rotate(0) scale(1)}}@keyframes move-preview-pulse{0%{opacity:.65;stroke-dashoffset:0}to{opacity:1;stroke-dashoffset:-17}}@keyframes horse-stride{0%{transform:translateY(1px) scale(.98)}to{transform:translateY(-3px) scale(1.04)}}@media(prefers-reduced-motion:reduce){.svg-horse{transition-duration:1ms}.svg-horse.moving>circle,.svg-horse.moving>text,.move-preview circle,.roulette-wheel.result{animation:none}}@media(max-width:1000px){.horse-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.race-status{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.action-grid{grid-template-columns:1fr}.topbar{align-items:flex-start}.bet-player-grid,.player-name-grid,.bet-summary-grid{grid-template-columns:1fr}.horse-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.dashboard-shell,.race-shell{padding:18px}.topbar,.room-row{align-items:stretch;flex-direction:column}.room-actions{display:grid;grid-template-columns:1fr 1fr}.compact{width:100%}.race-status{grid-template-columns:1fr 1fr}.bet-summary-player,.bet-summary-tokens{grid-template-columns:1fr}.bet-summary-token{grid-template-columns:27px 10px 1fr}.track-panel{padding:7px}.horse-card-grid{grid-template-columns:1fr}.horse-card{grid-template-columns:60px 1fr;align-items:center}.horse-card-color{grid-row:1 / span 3;height:60px}.horse-card strong{min-height:0}.settlement-table>div{grid-template-columns:1fr auto}.settlement-table>div>span:nth-child(3){grid-column:2}}
