@import url('/arcade-v39/casino-scenery.css');
:root{color-scheme:dark;--gold:#efcf87;--ink:#071711;--paper:#fff5db;--muted:#c1cdbf}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 0,#285346 0,transparent 50%),#091d18;color:var(--paper);font:16px/1.5 system-ui,sans-serif;min-height:100vh}a{color:var(--gold);text-underline-offset:4px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px max(22px,calc((100vw - 1200px)/2));border-bottom:1px solid #d1b56b44;background:#06140fe8}.brand{font:700 27px/1 Georgia,serif;letter-spacing:4px;text-decoration:none}.brand span{display:block;font:9px/1.5 system-ui;letter-spacing:3px;margin-top:8px}nav,.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}nav a{padding:8px;text-decoration:none;font-size:14px}main{max-width:1200px;margin:auto;padding:32px 22px}h1,h2,h3{font-family:Georgia,serif;line-height:1.1}h1{font-size:clamp(32px,5vw,56px);margin:10px 0 16px}h2{font-size:30px;margin:8px 0 18px}h3{font-size:24px}.eyebrow{font-size:11px;letter-spacing:2.5px;font-weight:750;color:var(--gold)}.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}.heading>div:first-child{max-width:760px}#subtitle{color:var(--muted);max-width:700px}.panel{padding:28px;border:1px solid #dbbd6b66;border-radius:20px;background:linear-gradient(120deg,#244738b3,#0c251ce6);box-shadow:0 12px 40px #0003;display:flex;gap:30px;align-items:center;justify-content:space-between}.panel>div{max-width:540px}form{min-width:250px;max-width:380px;display:grid;gap:15px}label{display:grid;gap:6px;font-size:14px;color:var(--muted)}button,select{font:inherit;border-radius:10px;border:1px solid #dcc88c77;background:#183b2d;color:var(--paper);padding:11px 16px;min-height:44px}button{cursor:pointer;font-weight:650}button:hover:not(:disabled){background:#2c513e;border-color:var(--gold)}button:disabled{opacity:.48;cursor:default}button.primary{background:linear-gradient(120deg,#ffe5a6,#cba24d);color:#13251b;box-shadow:0 4px 18px #0004;border-color:#ffe2a0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #fff;outline-offset:4px}.check{display:flex;align-items:center;gap:10px}.check input{width:20px;height:20px}.table-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0}.table-bar h2{margin:5px 0}.players{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 18px}.player{padding:10px 16px;border-radius:50px;background:#122b22;border:1px solid #efcf8744;font-size:14px}.player.current{border:2px solid var(--gold);background:#345540}.player small{margin-left:8px;color:var(--muted)}#board-root{margin:22px 0}.table-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin:25px 0}details{background:#082017;padding:15px;border-radius:12px}summary{cursor:pointer}#events{padding-left:25px;color:var(--muted)}.footer-note{font-size:12px;line-height:1.8;color:#bdc6b7;text-align:center;margin:36px 0 0}dialog{position:fixed;inset:0;margin:auto;width:min(650px,calc(100vw - 28px));max-height:90dvh;overflow:auto;color:var(--paper);background:#122d23;border:2px solid var(--gold);border-radius:18px;padding:28px;box-shadow:0 30px 120px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}dialog p{white-space:pre-line}#notice-text{line-height:1.7}#rules-content{white-space:pre-line;margin-bottom:24px;line-height:1.7}.demo-head{display:flex;align-items:center;justify-content:space-between;gap:10px}#demo-stage{height:200px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#47785b,#0b2017);border:1px solid #dcc88c77;border-radius:14px;overflow:hidden}#demo-sample{display:grid;grid-template-columns:repeat(5,40px);gap:5px}#demo-sample>span{width:40px;height:40px;border-radius:5px;background:#e5d5a0;color:#183a2b;display:grid;place-items:center;font-size:22px;font-weight:bold}#demo-sample>span:nth-child(even){background:#375d43;color:#fff}#demo-sample .demo-target{box-shadow:0 0 0 3px #ffe490;transform:translateY(-4px)}#demo-cursor{position:absolute;font-size:44px;color:#fff;filter:drop-shadow(2px 3px 1px #000);left:56%;top:55%;transition:left .5s,top .5s;pointer-events:none}#demo-caption{min-height:75px}#demo-position{font-size:12px;color:var(--gold)}[hidden]{display:none!important}@media(max-width:700px){header{padding:18px;align-items:flex-start;gap:15px}header nav{justify-content:flex-end;gap:0}.brand{font-size:21px}.brand span{font-size:7px}.heading,.panel{flex-direction:column;align-items:stretch}main{padding:22px 14px}.panel{padding:22px}form{min-width:0;max-width:none}.table-bar{align-items:flex-start}.table-bar h2{font-size:24px}.table-bar .tools button{font-size:13px;padding:8px 12px}.players{gap:5px}.player{font-size:12px;padding:8px 10px}dialog{padding:22px}#demo-stage{height:170px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

@media(max-width:700px){body.playing .heading{gap:10px;margin-bottom:8px}body.playing .heading h1{font-size:28px;margin:0}body.playing .heading .eyebrow,body.playing #subtitle,body.playing .table-bar h2{display:none}body.playing .table-bar{padding:8px 0}body.playing .table-bar .eyebrow{margin:0 0 5px}body.playing #table-status{font-size:14px;margin:0}body.playing .table-bar>div:first-child{min-width:0}body.playing #board-root{margin:14px 0}body.playing .heading .tools button{font-size:13px;padding:8px 12px}body.playing .players{margin:8px 0}body.playing main{padding-top:20px}}

/* v51: a quiet frame around tactile boards. */
body{background:radial-gradient(ellipse at 50% 10%,#325044 0,#0d241d 55%,#061711 100%)}header{background:#071a14e8}body.playing main{max-width:1360px;padding-top:24px}body.playing .heading{margin-bottom:12px;gap:18px}body.playing .heading h1{font-size:clamp(28px,3.2vw,42px);margin:0}body.playing .heading .eyebrow,body.playing #subtitle,body.playing .table-bar h2{display:none}body.playing .heading .tools{gap:7px}body.playing .heading .tools button{font-size:13px;padding:9px 13px}body.playing .table-bar{border-top:1px solid #ddc28524;padding:12px 0}body.playing #table-mode{font-size:10px;letter-spacing:1.8px;margin:0 0 5px}body.playing #table-status{font-size:14px;margin:0;color:#d4decf}body.playing .table-bar .tools button{font-size:12px;padding:8px 12px;min-height:38px;background:transparent}body[data-phase=setup] #players,body[data-phase=active] #players,body[data-phase=finished] #players{display:none}#board-root{outline:none;scroll-margin-top:20px}.focus-board>header,.focus-board .footer-note,.focus-board .table-bottom,.focus-board #table>details{display:none}.focus-board main{max-width:1500px;padding-top:12px}.focus-board .heading{position:sticky;top:0;z-index:5;background:#0a211cf2;padding:10px 0;backdrop-filter:blur(8px)}.focus-board .heading h1{font-size:23px}.focus-board .table-bar{padding:7px 0}.focus-board #board-root{scroll-margin-top:86px}.focus-board .heading .tools #show-me,.focus-board .heading .tools #rules-button{display:none}:fullscreen{background:#0a211c;overflow:auto}#demo{width:min(900px,calc(100vw - 24px))}#demo-stage{height:auto;min-height:220px;max-height:520px;padding:15px;overflow:auto;background:radial-gradient(ellipse,#315644,#0a1f16)}#demo-sample.real-board-demo{display:block;width:min(440px,100%);margin:auto;pointer-events:none}#demo-sample.real-board-demo *{pointer-events:none!important}#demo-caption{min-height:0;margin:14px 0}#demo-cursor{z-index:3;left:65%}#demo .demo-head .eyebrow{font-size:10px}#demo h2{font-size:26px;margin:8px 0 16px}
@media(max-width:700px){body.playing main{padding-top:18px}body.playing .heading{gap:12px}.heading .tools{gap:6px}.heading .tools button{font-size:12px!important;min-height:40px;padding:8px 10px!important}body.playing .table-bar{gap:8px}body.playing #table-status{font-size:12px;line-height:1.5}.focus-board .heading{align-items:stretch;padding:8px 0;gap:7px}.focus-board .heading h1{font-size:22px}.focus-board .heading .tools{justify-content:flex-end}.focus-board .table-bar{display:none}.focus-board main{padding:8px}.focus-board #board-root{scroll-margin-top:96px}#demo{padding:17px}#demo-stage{padding:6px;max-height:430px}#demo h2{font-size:23px}#demo .tools{gap:6px}#demo .tools button{font-size:12px;padding:8px 10px}}

/* Phone play: the board shares a measured viewport with its main controls. */
body.game-fit-active{height:100dvh;min-height:0;padding:0!important}
body.game-fit-active>header,body.game-fit-active .footer-note,body.game-fit-active .table-bottom,body.game-fit-active #table>details,body.game-fit-active .table-bar,body.game-fit-active .heading>div:first-child,body.game-fit-active #focus-board,body.game-fit-active #fullscreen-board{display:none!important}
body.game-fit-active main{height:100dvh;max-width:none;padding:4px max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:4px}
body.game-fit-active .heading{position:static;flex:none;display:flex;flex-direction:row;margin:0;padding:0;min-height:44px;gap:4px}
body.game-fit-active .heading .tools{width:100%;display:flex;gap:6px}
body.game-fit-active .heading .tools button{min-height:44px!important;padding:6px 12px!important;font-size:13px!important;flex:1}
body.game-fit-active #table{display:flex;flex:1;min-height:0;flex-direction:column}
body.game-fit-active #board-root{flex:1;min-height:0;margin:0;width:100%}
body.game-fit-active #board-root .gg-wrap{height:100%;width:100%;max-width:none;display:flex;flex-direction:column;align-items:center;gap:4px}
body.game-fit-active #board-root .gg-players,body.game-fit-active #board-root .gg-key,body.game-fit-active #board-root .gg-legend{display:none}
body.game-fit-active #board-root .gg-note{width:100%;flex:none;font:12px/1.35 system-ui;margin:0;padding:5px 8px}
body.game-fit-active #board-root .gg-board-frame{width:var(--fit-board-width,100%);max-width:100%;flex:none;margin:0;padding:14px 4px 13px;box-shadow:inset 0 1px 1px #ffe8a6aa,0 2px 0 #80623e}
body.game-fit-active #board-root .gg-coordinates{top:0;left:5px;right:5px;font-size:9px;line-height:12px}
body.game-fit-active #board-root .gg-coordinates.bottom{top:auto;bottom:0}
body.game-fit-active #board-root .gg-rows{display:none}
body.game-fit-active #board-root .gg-detail{width:100%;min-height:36px;flex:none;padding:3px 7px;margin:0;gap:7px}
body.game-fit-active #board-root .gg-detail-icon{width:27px;height:29px}
body.game-fit-active #board-root .gg-detail strong{font:600 13px/1.3 system-ui}
body.game-fit-active #board-root .gg-detail p{display:none}
body.game-fit-active #board-root .gg-controls{width:100%;flex:none;gap:4px;margin:0}
body.game-fit-active #board-root .gg-controls button{min-height:44px;flex:1;padding:5px 7px;font-size:12px;box-shadow:none}
body.game-fit-active #board-root .sl-game{height:100%;max-width:none;display:flex;flex-direction:column}
body.game-fit-active #board-root .sl-intro{flex:none;display:block;margin:0 0 4px}
body.game-fit-active #board-root .sl-intro>div:first-child{display:none}
body.game-fit-active #board-root .sl-turn{font-size:12px;padding:4px 7px;max-width:none}
body.game-fit-active #board-root .sl-layout{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;flex:1}
body.game-fit-active #board-root .sl-layout>div:first-child{width:100%;display:flex;justify-content:center;min-width:0}
body.game-fit-active #board-root .sl-frame{width:var(--fit-board-width,100%);max-width:100%;padding:6px;margin:0;box-shadow:inset 0 0 0 2px #e4c17c,0 2px 0 #21150f}
body.game-fit-active #board-root .sl-caption,body.game-fit-active #board-root .sl-endpoints,body.game-fit-active #board-root .sl-sidebar .sl-card:not(:first-child),body.game-fit-active #board-root .sl-card h3,body.game-fit-active #board-root .sl-tip{display:none}
body.game-fit-active #board-root .sl-sidebar{width:100%;display:block}
body.game-fit-active #board-root .sl-sidebar .sl-card:first-child{position:static;width:100%;display:flex;align-items:center;gap:8px;padding:5px 8px;min-height:54px;margin:0;box-shadow:none}
body.game-fit-active #board-root .sl-die-row{margin:0;gap:6px;flex:1}
body.game-fit-active #board-root .sl-die{width:40px;height:44px}
body.game-fit-active #board-root .sl-die-label{font-size:10px}
body.game-fit-active #board-root .sl-die-label strong{font-size:11px}
body.game-fit-active #board-root .sl-roll{width:auto;min-width:120px;max-width:50%;min-height:44px;padding:6px 10px;font-size:13px;box-shadow:none}
body.game-fit-active #board-root .sl-watch-note{font-size:12px;line-height:1.35}
#match-details-content>button{margin:6px 6px 10px 0}#match-details-content ol{padding-left:22px}#match-details-content .gg-legend{display:block}#match-details-content .gg-detail p{display:block}
@media(orientation:landscape){
 body.game-fit-active #board-root .gg-wrap{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:auto auto minmax(0,1fr);gap:4px 12px;align-items:start}
 body.game-fit-active #board-root .gg-board-frame{grid-column:1;grid-row:1/4;justify-self:center;align-self:center}
 body.game-fit-active #board-root .gg-note{grid-column:2;grid-row:1}
 body.game-fit-active #board-root .gg-detail{grid-column:2;grid-row:2}
 body.game-fit-active #board-root .gg-controls{grid-column:2;grid-row:3;flex-direction:column}
 body.game-fit-active #board-root .sl-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px;align-items:center}
 body.game-fit-active #board-root .sl-sidebar .sl-card:first-child{flex-direction:column;padding:10px}
 body.game-fit-active #board-root .sl-roll{max-width:none;width:100%}
}
