*{box-sizing:border-box}body{margin:0;background:#0e101b;color:#f3ead9;font:16px "Trebuchet MS",Arial,sans-serif;min-height:100vh}header{padding:19px max(5vw,20px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303143;background:#151522}.brand,.eyeline,.panelhead,.screenfoot,.controls strong,footer,.label{font: bold 12px "Courier New",monospace;letter-spacing:1.5px}.brand{font-size:15px;display:flex;align-items:center;gap:8px;letter-spacing:1px}.brand b{color:#aa98c4}.brand canvas{width:30px;image-rendering:pixelated}.utility{display:flex;gap:8px}button{color:inherit;background:#232337;border:1px solid #454158;padding:9px 13px;font:inherit;cursor:pointer}button:hover,button:focus-visible{border-color:#ffce62;color:#ffdc82}button:focus-visible{outline:2px solid #ffcf68;outline-offset:2px}main{max-width:1400px;margin:auto;padding:32px max(4vw,16px) 12px}.eyeline,.screenfoot,.panelhead,footer{display:flex;align-items:center;justify-content:space-between}.eyeline{color:#a7a4bc;margin-bottom:12px;font-size:11px}.eyeline i{display:inline-block;width:7px;height:7px;background:#9ee5a4;margin-right:6px}.cabinet{border:1px solid #484052;box-shadow:5px 5px 0 #080810;background:#171725;display:grid;grid-template-columns:minmax(0,2.5fr) minmax(248px,1fr)}.stage{position:relative;min-width:0;background:#242039;display:grid;align-items:center;overflow:hidden}.stage canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;display:block}.screenfoot{position:absolute;bottom:0;left:0;width:100%;padding:8px 13px;background:#161523ee;color:#dbcda9;font-size:10px}.stage #title{position:absolute;left:6%;top:8%;pointer-events:none}h1{font:bold clamp(44px,6.1vw,92px)/.87 Georgia,serif;letter-spacing:-.065em;margin:0;color:#ffedae;text-shadow:3px 3px #783f48,5px 5px #24192c}h1 em{font-style:normal;color:#ffc75e}.titleline{width:44px;background:#ffc564;height:3px;margin:17px 0 10px}#title p{max-width:180px;font:italic bold clamp(13px,1.3vw,18px)/1.35 Georgia;color:#fff0cf;text-shadow:1px 2px #251a2f}.panelhead{padding:14px 18px;background:#252337;font-size:10px;color:#c6bcd2;border-bottom:1px solid #474054}.lights{color:#b290c1}aside{border-left:1px solid #484052;display:flex;flex-direction:column}#panel{padding:clamp(16px,2vw,29px);flex:1}.label{color:#bbaacb;font-size:10px;display:block;margin-bottom:8px}h2{font: bold 27px/1.1 Georgia,serif;margin:6px 0 10px}p{line-height:1.45;color:#bab6c9;margin:0 0 14px}.action{display:block;width:100%;margin:8px 0;font-weight:bold;padding:11px}.primary{background:#ffce69;border-color:#ffdf8c;color:#2a2030;box-shadow:0 3px 0 #855521}.primary:hover,.primary:focus-visible{color:#21152a;background:#ffe19b}.card{border-top:1px solid #393548;margin:19px 0 0;padding-top:14px}.card b{font: bold 18px Georgia;color:#e6d8eb}.card p{font-size:14px;margin:6px 0}.controls{display:flex;gap:clamp(10px,2vw,30px);align-items:center;padding:20px 0;border-bottom:1px solid #343242;flex-wrap:wrap;color:#afaabd;font-size:14px}.controls strong{color:#dbcfae;font-size:10px}kbd{display:inline-block;background:#252536;border:1px solid #494556;border-bottom-width:3px;padding:4px 6px;font:11px monospace;color:#ded9e7}footer{font-size:9px;color:#77738a;padding:18px 0}dialog{max-width:min(440px,92vw);background:#232134;color:#fff0cc;border:2px solid #b59a74;padding:26px}dialog::backdrop{background:#080914c9}.meter{position:relative;height:9px;background:#40364e;margin:10px 0 15px}.meter i{display:block;height:100%;background:#85d8ba}.meter.queen i{background:#e799bc}#touch{display:none}button{touch-action:manipulation}body.live #title{display:none}@media(max-width:760px){main{padding-top:15px}.cabinet{grid-template-columns:1fr}.stage{aspect-ratio:464/320}aside{border-left:0}.panelhead{padding:8px 14px}#panel{padding:13px 16px}.card{margin-top:10px;padding-top:8px}.stage #title{top:10%}h1{font-size:clamp(41px,11vw,80px)}.controls{gap:9px;padding:12px 0}body.live #panel{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}body.live .card{margin:0}.utility button{font-size:13px}header{padding:10px 16px}}@media(pointer:coarse){body.live #touch{display:flex;gap:8px;position:sticky;bottom:0;align-items:center;background:#171624;padding:8px;justify-content:space-between;z-index:2}.pad{display:grid;grid-template-columns:repeat(3,42px);gap:3px}.pad button:first-child{grid-column:2}.pad button:nth-child(2){grid-column:1}#touch button{touch-action:none;user-select:none;min-height:39px}.controls{display:none}}
@media(max-width:760px) and (pointer:coarse){body.live header,body.live footer,body.live .eyeline,body.live .panelhead{display:none}body.live main{padding:4px}body.live .stage{max-height:48svh}body.live #panel{padding:8px;gap:4px 10px}body.live #panel h2{font-size:18px}body.live #panel p{font-size:12px;margin:2px 0}body.live #panel .label{margin-bottom:3px}body.live .meter{margin:3px 0;height:5px}body.live .action{margin:3px 0;padding:5px}body.live #touch{margin-top:3px}}
.favour{text-align:left;line-height:1.4;font-size:14px}.favour:disabled{opacity:.55;cursor:default}.law{font-size:13px;color:#e5c98e;border-left:2px solid #a98855;padding-left:8px}.meter i{transition:width .12s linear}
body.live #screen{touch-action:none}
.hazardGuide{display:flex;align-items:center;gap:8px;padding:5px 8px;margin:5px 0 9px;border:1px solid #554657;background:#30293b;color:#f1dfbf;font-size:13px}.hazardGuide canvas{width:36px;height:29px;flex:none}
.stage canvas{image-rendering:auto}
body{background:radial-gradient(ellipse at 50% 20%,#262435 0,#151421 58%,#0e101b 100%)}header{border-bottom:2px solid #61516a}.cabinet{border:2px solid #75647b;outline:1px solid #342e42;outline-offset:3px;border-radius:5px;overflow:hidden}.panelhead{color:#e8d2a7;background:linear-gradient(90deg,#3c3046,#282438)}aside{background:linear-gradient(145deg,#272134,#181724 62%)}.ticket{display:flex;width:100%;gap:12px;align-items:center;text-align:left;border-radius:4px;background:#302a3d;border:1px solid #64556b;padding:13px 12px;margin:9px 0}.ticket strong,.ticket small{display:block}.ticket strong{font:bold 20px Georgia,serif;color:#f4e9dc}.ticket small{font-size:13px;color:#c9bfd2;margin-top:4px}.sealIcon{display:grid;place-items:center;width:38px;height:41px;flex:none;background:#554753;color:#f0c485;font:25px Georgia;clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%)}.ticket.tour{background:linear-gradient(105deg,#583550,#34273b);border-color:#b6818e}.tour .sealIcon{color:#ffe197;background:#81535c}.ticket.daily .sealIcon{background:#3a625d;color:#bbf2d7}.records{display:flex;gap:20px;padding:12px 0 5px;color:#bbb2c8;font-size:13px}.records b{display:block;color:#f1d8ac;font:20px Georgia;margin-top:2px}.tourList{list-style:none;padding:0}.tourList li{padding:5px;color:#c7becb;font-size:14px}.tourList span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid #685868;margin-right:8px;font:12px monospace}.tourList .current{color:#ffe0a1}.current span{background:#82604b}.roomTrail{display:flex;gap:3px;margin-bottom:9px}.roomTrail i{width:8%;height:5px;background:#463c50}.roomTrail .cleared{background:#80c6aa}.roomTrail .here{background:#ffd17d}.roomTrail i:nth-child(3n){margin-right:4px}.meter{border-radius:5px;overflow:hidden}.meter i{background:linear-gradient(90deg,#478d7c,#afe5c4)}.meter.queen i{background:linear-gradient(90deg,#935e86,#eb9db6)}
.stageShell{min-width:0;display:flex;flex-direction:column;background:#242039}.stageShell>.stage{flex:1}.stageShell #screen{position:absolute;inset:0}.stageShell>.stage{min-height:0;aspect-ratio:464/320}#actionDeck{display:none;gap:6px;padding:7px;background:#201b2a;border-top:1px solid #776676}body.live[data-view=race] #actionDeck{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(105px,1fr)}#actionDeck button{min-width:0;border-radius:4px;text-align:left;background:#332b40;touch-action:manipulation}.pocketAction{display:flex;align-items:center;gap:9px;padding:5px 8px}.pocketAction canvas{width:39px;height:39px;flex:none;background:#463644;border:1px solid #ae8865;border-radius:5px}.pocketAction>span{min-width:0}.pocketAction strong,.pocketAction small,.pocketAction #heldCount{display:block}.pocketAction small,#dashSeconds{font:bold 10px monospace;text-transform:uppercase;letter-spacing:.04em;color:#d3bfdb}.pocketAction strong{font: bold 16px Georgia;color:#fff1ce}.pocketAction #heldCount{font-size:12px;color:#d4cbbf}.pocketAction kbd{margin-left:auto}.pocketAction[data-phase=notice]{border-color:#ffda87!important;background:#4a3942!important}.pocketAction[data-phase=empty] canvas{filter:grayscale(.8)}.dashTop{display:flex;justify-content:space-between;gap:4px;align-items:center}.dashTrack{display:block;height:7px;background:#665368;margin-top:6px;border-radius:4px;overflow:hidden}.dashTrack i{display:block;height:100%;background:#edc986;transition:width .1s linear}#dashSlot[data-phase=ready] .dashTrack i{background:#94dab9}#dashSlot[data-phase=ready] small{color:#a4e7c8}.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:760px){.stageShell>.stage{flex:auto}.pocketAction kbd{display:none}.pocketAction small{font-size:9px}.pocketAction strong{font-size:14px}#actionDeck{padding:4px}}@media(prefers-reduced-motion:reduce){.dashTrack i{transition:none}}
#touchDash{background:linear-gradient(to right,#67b999 var(--charge,100%),#504456 var(--charge,100%)) bottom / 100% 5px no-repeat,#282537;min-width:64px}#touchPower{font-size:13px;max-width:112px;line-height:1.15}.pocketAction[data-phase=notice]{box-shadow:inset 3px 0 #ffcf79}
.tourList small{float:right;color:#dac7a2;font:12px monospace;margin-top:4px}
.duelBoard{margin:10px 0;padding:10px 11px;border-left:3px solid #dc9fae;background:#392d40}.duelBoard b{font:bold 18px Georgia;color:#ffe0bd}.duelBoard p{font-size:13px;margin:5px 0 0}.duelBoard .label{color:#eab7c9}

#steering{display:none}
@media(max-width:760px),(max-width:980px) and (max-height:550px),(pointer:coarse) and (max-width:1400px){
 .controls,footer{display:none}
 body.live[data-view=race]{position:fixed;inset:0;height:100dvh;min-height:0;overscroll-behavior:none;user-select:none;-webkit-user-select:none;background:#201b2a}
 body.live[data-view=race] :is(header,.eyeline,.panelhead,.screenfoot){display:none}
 body.live[data-view=race] main{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);height:100%;max-width:none}
 body.live[data-view=race] .cabinet{height:100%;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);border:0;border-radius:0;box-shadow:none;outline:0}
 body.live[data-view=race] aside{grid-row:1;border:0;border-bottom:1px solid #766074}
 body.live[data-view=race] #panel{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 12px}
 body.live[data-view=race] #panel>div:first-child{min-width:0}
 body.live[data-view=race] #panel :is(.card,#route,.hazardGuide,.law,.label,.duelBoard p){display:none}
 body.live[data-view=race] #panel h2{font-size:18px;margin:1px 0}
 body.live[data-view=race] .duelBoard{padding:0;border:0;margin:0;background:none}
 body.live[data-view=race] .duelBoard b{font:600 14px/1.15 system-ui;color:#ffd292}
 body.live[data-view=race] .roomTrail{margin:0 0 3px;gap:2px}
 body.live[data-view=race] .roomTrail i{width:8px;height:3px}
 body.live[data-view=race] #panel .action{width:auto;min-height:44px;margin:0;padding:5px 12px;border-radius:12px;font-size:14px}
 body.live[data-view=race] .stageShell{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;min-height:0}
 body.live[data-view=race] .stageShell>.stage{grid-column:1/-1;grid-row:1;aspect-ratio:auto;max-height:none;height:100%;background:#29263b}
 #steering{touch-action:none}
 body.live[data-view=race] #steering{display:grid;place-content:center;justify-items:center;padding:8px 4px 4px;color:#dac6ae;gap:2px;font:600 12px system-ui}
 #stickPad{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#584657 8%,#382c40 60%,#302638 62%);border:2px solid #997e89;touch-action:none}
 #stickPad i{width:35px;height:35px;border:2px solid #e6c99e;border-radius:50%;background:radial-gradient(at 40% 30%,#a28386,#72566a);transform:translate(var(--x,0px),var(--y,0px));pointer-events:none}
 body.live[data-view=race] #actionDeck{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(68px,1fr);align-content:center;padding:8px;gap:7px;border-top:0}
 #actionDeck button{touch-action:none;min-height:66px;padding:7px;border-radius:14px}
 #actionDeck button:active{background:#554058}
 #actionDeck kbd,.pocketAction small:empty{display:none}
 #actionDeck .pocketAction{gap:3px;flex-wrap:wrap;align-content:center}
 #actionDeck .pocketAction canvas{height:26px;width:26px}
 #actionDeck .pocketAction small{display:none}
 #actionDeck .pocketAction strong{font-size:14px;line-height:1.05}
 .dashTop{flex-wrap:wrap}
 body.live:not([data-view=race]) #panel{display:block}
 body.live:not([data-view=race]) .action{min-height:44px}
}
@media(orientation:landscape) and (max-height:650px) and (max-width:1400px){
 body.live[data-view=race] .stageShell{grid-template-columns:96px minmax(0,1fr) 110px;grid-template-rows:minmax(0,1fr)}
 body.live[data-view=race] .stageShell>.stage{grid-column:2}
 body.live[data-view=race] #steering{grid-column:1;grid-row:1;align-self:end;margin-bottom:12px}
 body.live[data-view=race] #actionDeck{grid-column:3;grid-row:1;grid-template-columns:1fr;align-content:end;padding-bottom:12px}
}

.outfit{display:flex;align-items:center;gap:10px;text-align:left;padding:3px 10px}.outfit canvas{width:38px;height:43px}.outfit:disabled{opacity:.58}

/* A warm theatre cabinet, with quiet chrome and unmistakable race actions. */
.cabinet{box-shadow:0 18px 55px #05040c80,0 1px 0 #d4b99955 inset}
.ticket{min-height:82px;transition:border-color .12s,background .12s}
.ticket:hover,.ticket:focus-visible{border-color:#ffe0a1;background:#463548}
.ticket small{line-height:1.4}.ticket strong{letter-spacing:-.02em}
.action{border-radius:7px;min-height:44px}
#help{min-width:44px;min-height:44px}
.royalQuote{font-style:italic;color:#f0b9cb!important}
#sceneCaption{display:none;margin:0;padding:9px 12px;border-top:1px solid #80697a;background:#30263a;color:#fff0d3;font:italic 14px/1.35 Georgia,serif;text-align:center}
body:is([data-view=opening],[data-view=result]) #sceneCaption:not(:empty){display:block}
#queenCaption{display:none;position:absolute;bottom:35px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;padding:6px 12px;border:1px solid #ad8192;border-radius:6px;background:#2c2135f2;color:#ffe1dc;font:italic 14px/1.3 Georgia,serif;text-align:center;pointer-events:none}
body.live[data-view=race] #queenCaption:not(:empty){display:block}
#dashSlot[data-phase=ready]{border-color:#96d4b4;box-shadow:inset 0 -3px #527b65}
#dashSlot[data-phase=charging]{border-color:#736075}
.pocketAction[data-phase=active]{border-color:#b4e5cf;background:#344641!important}
.pocketAction[data-phase=empty]{border-style:dashed}
.pocketAction strong{overflow-wrap:anywhere}
#heldCount{font-variant-numeric:tabular-nums}
@media(max-width:760px),(max-width:980px) and (max-height:550px),(pointer:coarse) and (max-width:1400px){
 body.live[data-view=race] #panel{background:#241e30;padding:6px 10px}
 #queenCaption{bottom:9px;font-size:13px;max-width:94%;padding:5px 9px}
 body.live[data-view=race] #panel h2{font-size:17px;color:#fff0d3}
 body.live[data-view=race] .duelBoard b{font-size:12px;color:#bbe6d0}
 body.live[data-view=race] #panel .action{font:600 12px system-ui;background:#3b3047;border-color:#8d7489}
 #actionDeck{box-shadow:0 -1px 0 #a58b7b55;background:#251e30}
 #actionDeck .pocketAction{align-content:center;gap:5px}
 #actionDeck .pocketAction canvas{width:29px;height:29px}
 #actionDeck .pocketAction strong{font-size:13px}
 #actionDeck .pocketAction #heldCount{font-size:11px;color:#e5d6bf}
 #actionDeck .pocketAction[data-phase=active] small{display:block;font:700 9px/1.2 system-ui;max-width:130px;color:#bdebd3}
 #actionDeck .dashTop b{font-size:17px;color:#fff0d3}
 #actionDeck .dashTrack{height:9px;margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.ticket{transition:none}}

@media(max-width:560px){
 header{gap:5px;flex-wrap:wrap}
 header .utility{gap:4px}
 header .utility button{min-height:44px;padding:6px 8px}
}

.privacyLink{font:inherit;letter-spacing:inherit;padding:8px;border:0;text-decoration:underline;min-height:44px}#privacy{max-width:min(640px,94vw);max-height:86dvh;overflow:auto;font-size:16px;line-height:1.5}#privacy h3{font-size:18px;color:#fff0cc}#privacy p{color:#e2d9e7}#privacyClose{min-height:44px;position:sticky;bottom:0;background:#3a3046}body.live .privacyLink{display:none}

.demoTaste{padding:15px 0;margin-top:15px;border-top:1px solid #75647b}.demoTaste b{font:700 19px Georgia;color:#f4d49d}.demoTaste p,.demoReplay{font-size:14px;line-height:1.5;margin:8px 0}.demoTaste small{color:#d1c5d5;font-size:13px}.demoLinks{display:flex;gap:18px;padding:18px 0 0}.demoLinks a{color:#aee1ce;min-height:44px;display:inline-flex;align-items:center}.demoFeatures{display:grid;gap:10px;margin:20px 0}.demoFeatures section{border-left:3px solid #edc986;padding:0 0 0 13px}.demoFeatures h3{font:700 21px Georgia;margin:0 0 6px}#fullGame{max-width:min(620px,94vw);max-height:88dvh;overflow:auto}#fullGame p{font-size:16px;color:#e0d4e3}#fullGameClose{min-height:44px}#demoStoreLink[hidden]{display:none}#fullGame a{text-align:center;text-decoration:none}body[data-view=menu] #panel{overflow:auto}
