:root{color-scheme:dark;--bg:#080e17;--panel:#111e2b;--line:#2c4252;--ink:#edf3f4;--muted:#a8bdc9;--accent:#58d9c6}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0,#143039 0,transparent 45%),var(--bg);color:var(--ink);font:16px/1.6 system-ui,sans-serif}header{max-width:1280px;margin:auto;display:flex;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}a{color:var(--accent);text-decoration:none}header a:nth-child(2){font-weight:850;letter-spacing:.14em;color:var(--ink)}header span{color:var(--muted);font-size:14px}main{max-width:1240px;margin:auto;padding:32px 24px}h1,h2,h3,p{margin:0 0 16px}h1{font-size:clamp(38px,5vw,68px);line-height:1.08;letter-spacing:-.045em}h2{line-height:1.2;font-size:28px;letter-spacing:-.03em}h3{font-size:21px}.eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.18em}.intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;margin:10px 0 38px}.intro p:not(.eyebrow){max-width:460px;color:var(--muted)}.intro-art{border:1px solid var(--line);border-radius:24px;overflow:hidden}.intro-art img{width:100%;height:auto;display:block;aspect-ratio:3/2;object-fit:cover}.panel{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:20px;margin-bottom:20px}.section-title,.table-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-title span,.small{font-size:13px;color:var(--muted)}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted)}select,input{font:inherit;color:var(--ink);background:#0b1521;border:1px solid #405866;padding:12px;border-radius:10px;width:100%;min-width:0}#seat-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.seat-setting{display:grid;grid-template-columns:32px 1fr 100px 100px;align-items:center;gap:9px}.seat-setting b{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#080e17}button{border:0;border-radius:11px;background:var(--accent);color:#08272a;font:750 15px/1.3 system-ui;min-height:46px;padding:13px 19px;cursor:pointer;touch-action:manipulation}button:hover{filter:brightness(1.1)}button:disabled{opacity:.45;cursor:default}.secondary{color:var(--ink);background:#1b3040;border:1px solid #405866}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #fff;outline-offset:3px}.actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.actions label{flex:1;min-width:100px}#online-setup{margin:20px 0}#online-setup p{font-size:14px;color:var(--muted);margin-top:16px}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.board-wrap{position:relative;align-self:start;background:#0e1b28;border:1px solid var(--line);border-radius:24px;overflow:hidden}#board{width:100%;height:auto;display:block;touch-action:manipulation}.dice{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;margin:14px 0}#die{font-size:50px;line-height:1}.dice.rolling #die{animation:shake .15s linear infinite}#moves button{flex:1;padding:12px 8px}.score{display:flex;gap:10px;align-items:center;padding:10px;border-radius:10px;font-size:13px}.score.active{background:#233a48;outline:1px solid var(--accent)}.dot{width:16px;height:16px;border-radius:50%;flex:none}details summary{cursor:pointer;font-weight:750}details p{color:var(--muted);font-size:14px;margin-top:16px}.rules{margin-top:28px}footer{color:var(--muted);font-size:13px;text-align:center;padding:12px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:12px;background:#e7f2f2;color:#10212b;box-shadow:0 8px 40px #0006;max-width:90vw;z-index:50;display:none}#celebration{position:absolute;inset:15% 8%;border-radius:24px;background:#101e2af5;border:1px solid var(--accent);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 0 100px #58d9c644}#celebration p{color:var(--accent);letter-spacing:.2em;font-size:12px}#celebration span{margin-bottom:24px;color:var(--muted)}[hidden]{display:none!important}#xr-view{position:fixed;inset:0;z-index:100;background:#080e17}#xr-canvas{width:100%;height:100%}.xr-toolbar{position:absolute;bottom:20px;left:20px;right:20px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px;background:#101e2be8;border-radius:14px;font-size:13px}.xr-toolbar span:first-child{flex:1}.xr-toolbar button{min-height:42px;padding:10px}#xr-moves{display:flex;gap:5px}#network{overflow-wrap:anywhere}@keyframes shake{50%{transform:rotate(20deg)}}@media(max-width:800px){.game-grid{grid-template-columns:1fr}.game-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game-grid aside details{grid-column:1/-1}.intro{gap:20px}.seat-setting{grid-template-columns:28px 1fr 90px}.seat-setting select:last-child{grid-column:2/-1}.panel{padding:18px}}@media(max-width:520px){main{padding:20px 12px}header{padding:16px 12px;font-size:13px}header span{display:none}.intro{grid-template-columns:1fr;gap:18px;margin-bottom:24px}.intro-art{max-height:190px}.intro-art img{height:190px}.setup-grid,#seat-settings,.game-grid aside{grid-template-columns:1fr}.section-title{align-items:start}.section-title span{max-width:70px}.table-top h2{font-size:24px}.table-top button{padding:10px}.panel{padding:16px}.game-grid{gap:14px}.game-grid aside{gap:0}.dice{min-height:68px}.xr-toolbar{left:8px;right:8px;bottom:8px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.board-area{min-width:0}.board-zoom{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0 0 12px}.board-zoom select{max-width:220px}.board-wrap.zoomed{overflow:auto;max-height:80vh}#board{max-width:none}.board-wrap.zoomed #celebration{position:sticky;min-height:300px;margin:20px}
.theme-setup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(125deg,var(--theme-sky,#102637),transparent)}.theme-setup p{grid-column:1/-1;font-size:13px;color:var(--muted);margin:0}.motion-choice{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap}.motion-choice input{width:18px;height:18px;accent-color:var(--accent)}.table-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.table-tools>label{flex:1;min-width:125px}.table-tools>.board-zoom{flex-direction:column;align-items:stretch;gap:7px;margin:0}.table-tools>.motion-choice{flex:none}.theme-caption{font-size:12px;color:var(--muted);letter-spacing:.04em;margin:0 0 12px}.board-wrap{background:radial-gradient(ellipse at top,var(--theme-sky,#102637),var(--bg));box-shadow:0 18px 50px #0004,0 1px 0 var(--theme-trim,#bcaa78);border-bottom:8px solid var(--theme-trim,#bcaa78)}.angled-preview .board-wrap{perspective:1400px;overflow:auto;max-height:78vh}.angled-preview #board{transform:rotateX(20deg);transform-origin:center;pointer-events:none}.angled-preview{padding-bottom:15px}.xr-ar #xr-view{background:transparent}.xr-ar .xr-toolbar{background:#101e2bc9}.xr-ar #xr-canvas{background:transparent}[data-ludo-theme=newyear] .board-wrap{box-shadow:0 20px 60px #1b134f66,0 1px 0 var(--theme-trim)}[data-ludo-theme=winter] .board-wrap,[data-ludo-theme=christmas] .board-wrap{border-top:3px solid #dbe9ee}[data-ambient-motion=on][data-ludo-theme=newyear] .intro-art{animation:season-light 8s ease-in-out infinite}@keyframes season-light{50%{box-shadow:0 0 35px #9b81c626}}@media(max-width:520px){.theme-setup{grid-template-columns:1fr}.theme-setup p{grid-column:auto}.table-tools>.motion-choice{width:100%;order:3}.table-tools{gap:10px}.table-tools label{font-size:12px}}@media(prefers-reduced-motion:reduce){.intro-art{animation:none!important}}
[data-ambient-motion=on][data-ludo-theme=winter] .board-wrap::after,[data-ambient-motion=on][data-ludo-theme=christmas] .board-wrap::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#eff8ff 1.5px,transparent 2px),radial-gradient(circle,#eff8ff 1px,transparent 1.5px);background-size:117px 139px,179px 191px;opacity:.23;animation:season-snow 18s linear infinite}@keyframes season-snow{to{background-position:42px 278px,-22px 382px}}@media(prefers-reduced-motion:reduce){.board-wrap::after{animation:none!important}}
.view-status{font-size:13px;color:var(--muted);margin:0 0 12px}.view-status:empty{display:none}.world-heading{position:absolute;top:18px;left:20px;right:20px;display:flex;justify-content:space-between;gap:20px;pointer-events:none}.world-heading>div{pointer-events:auto;background:linear-gradient(120deg,#0b1725ec,#102433d9);border:1px solid #85b6c33b;border-radius:17px;padding:16px 20px;backdrop-filter:blur(14px);box-shadow:0 10px 30px #0003}.world-heading h2{font-size:24px;margin:0 0 6px}.world-heading p{margin-bottom:4px;font-size:13px}.world-heading .eyebrow{font-size:10px}.world-options{display:flex;gap:14px;align-items:center}.world-options select{min-width:190px;padding:9px 12px}.world-roster{position:absolute;bottom:100px;left:20px;right:20px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;pointer-events:none}.world-player{display:flex;align-items:center;gap:8px;color:#e8f2f5;background:#102333db;border:1px solid #5f849147;border-radius:30px;font-size:12px;padding:8px 13px;backdrop-filter:blur(10px)}.world-player.current{border-color:var(--accent);background:#193c4be8}.world-player i{width:10px;height:10px;border-radius:50%;display:block}.world-player b{color:#bbced5;font-size:11px}.xr-toolbar{bottom:18px;background:#0b1b2af0;border:1px solid #80b9c144;backdrop-filter:blur(14px);box-shadow:0 12px 40px #0004;justify-content:center}.xr-toolbar #xr-help{flex:1;min-width:150px;font-size:12px;color:#b6cad3}.xr-toolbar #world-die{font-size:38px;line-height:1;flex:none}.xr-toolbar #xr-roll{min-width:110px}.xr-toolbar #xr-moves button{background:var(--accent);color:#102633}#world-win{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);width:min(420px,88vw);text-align:center;padding:35px;background:#0c2332f2;border:1px solid var(--accent);border-radius:24px;box-shadow:0 0 80px #8ac6c344}#world-win p{font-size:12px;letter-spacing:.18em;color:var(--accent)}.xr-ar .world-heading{top:10px}.xr-ar .world-roster{display:none}@media(max-width:700px){.world-heading{top:8px;left:8px;right:8px;gap:7px}.world-heading>div{padding:10px 12px}.world-heading h2{font-size:18px}.world-heading p{font-size:11px;max-width:190px}.world-options{flex-direction:column;gap:6px;align-items:stretch}.world-options select{min-width:130px;max-width:160px;font-size:12px;padding:7px}.world-options button{font-size:12px;min-height:32px;padding:7px}.world-options label{font-size:10px}.world-roster{left:8px;right:8px;bottom:156px;gap:4px}.world-player{font-size:10px;padding:5px 8px;gap:5px}.xr-toolbar{padding:9px;gap:7px}.xr-toolbar #xr-help{width:100%;flex-basis:100%;min-width:0;text-align:center}.xr-toolbar #world-die{font-size:29px}.xr-toolbar button{font-size:12px;padding:9px;min-height:36px}.xr-toolbar #xr-roll{min-width:90px}}@media(max-width:420px){.world-heading h2{font-size:16px}.world-heading .eyebrow{font-size:8px}.world-heading p{max-width:160px}.world-roster{bottom:190px}.world-player{font-size:9px}.world-options select{min-width:120px;max-width:120px}.table-tools>button{flex:1 1 100%}}
.lmlu-world-open body{overflow:hidden}#toast{z-index:200}#world-notice{color:var(--accent);max-width:430px}#world-notice:empty{display:none}.world-heading>div:first-child{max-width:min(520px,55vw)}.world-roster{bottom:116px}.xr-toolbar #world-die{min-width:36px;text-align:center}.xr-toolbar #world-vr,.xr-toolbar #world-ar{background:#254253;color:#e8f4f5;border:1px solid #537281}.xr-toolbar #xr-close{background:#24394b;color:#eef4f5}#xr-canvas canvas{touch-action:none;display:block}@media(max-width:700px){.world-roster{bottom:174px}.world-heading>div:first-child{max-width:55vw}.world-heading p{overflow-wrap:anywhere}#world-status{max-width:180px}.xr-toolbar{max-height:162px;overflow:auto}}@media(max-width:420px){.world-roster{bottom:198px}.world-heading>div:first-child{max-width:55vw}.world-options{max-width:123px}}
[data-primary-view=flat] #flat-view,[data-primary-view=preview] #world-view{border:1px solid var(--accent)}[data-primary-view=loading] #world-view{opacity:.6;pointer-events:none}#world-roster:empty{display:none}
/* Shared, viewport-sized game frame: flat and 3D use the same controls. */
.playing{--frame-height:calc(100dvh - 140px)}.playing body{overflow:hidden}.playing header{height:52px;padding:12px 20px;max-width:none}.playing main{max-width:1500px;padding:10px 18px}.playing #table{height:calc(100dvh - 72px);display:flex;flex-direction:column;gap:8px}.playing .table-top{flex:none;height:48px}.playing .table-top .eyebrow{margin:0;font-size:9px}.playing .table-top h2{font-size:22px;margin:2px 0}.playing .table-top button{min-height:36px;padding:8px 14px}.playing .game-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 260px;gap:14px}.playing .board-area{position:relative;display:flex;flex-direction:column;min-height:0;align-items:center;padding:0}.playing .board-wrap{flex:1;min-height:0;width:100%;border-radius:18px;border-bottom-width:3px;display:flex;align-items:center;justify-content:center;overflow:hidden;max-height:none;perspective:none}.playing #board{width:auto!important;height:100%;max-width:100%;object-fit:contain;transform:none;pointer-events:auto}.playing .board-wrap.zoomed{overflow:auto}.playing .board-wrap.zoomed #board{height:150%;max-width:none;flex:none}.playing .theme-caption{display:none}.playing .view-status{font-size:11px;line-height:1.3;margin:0;flex:none;max-width:100%;padding:0 4px 5px}.table-settings{position:relative;align-self:flex-start;z-index:4;font-size:12px;margin-bottom:5px}.table-settings>summary{padding:6px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.table-settings[open] .table-tools{position:absolute;top:32px;left:0;width:min(600px,85vw);padding:14px;background:#102332;box-shadow:0 10px 30px #0008;border:1px solid var(--line);border-radius:12px;align-items:center}.table-tools button{min-height:36px;padding:8px 12px;font-size:12px}.playing aside{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px}.playing aside .panel{padding:14px;margin:0;border-radius:14px}.playing #status{font-size:13px;line-height:1.4;margin:0;min-height:36px}.playing #network:empty{display:none}.playing .score{font-size:12px;padding:7px}.playing .score br{display:none}.playing .score b{display:block}.playing .rules,.playing footer{display:none}.playing #lobby{padding:10px;margin:0;max-height:150px;overflow:auto}.playing #lobby h3,.playing #lobby p{font-size:12px;margin:3px}.playing #xr-view{position:absolute;inset:0;z-index:2;border-radius:inherit;overflow:hidden}.playing #xr-canvas{height:100%;width:100%}.playing .world-heading,.playing .world-roster,.playing #world-win{display:none}.playing .xr-toolbar{left:8px;right:8px;bottom:8px;padding:6px;gap:5px;max-height:none;overflow:visible;flex-wrap:wrap}.playing .xr-toolbar button{font-size:11px;min-height:30px;padding:6px 8px}.playing .xr-toolbar #xr-help{font-size:10px;min-width:0}.playing #world-die,.playing #xr-roll,.playing #xr-moves,.playing #world-start,.playing #world-invite,.playing #world-vr,.playing #world-ar,.playing #xr-close{display:none}.playing .board-wrap:has(#xr-view:not([hidden])) #board{visibility:hidden}.lmlu-world-open body{overflow:hidden}.xr-immersive #xr-view{position:fixed;inset:0;border-radius:0;z-index:100}.xr-immersive .xr-toolbar #xr-roll,.xr-immersive .xr-toolbar #xr-moves,.xr-immersive .xr-toolbar #xr-close{display:flex}.xr-immersive .world-heading{display:flex}.xr-immersive #world-win:not([hidden]){display:block}
.pip-die{position:relative;display:inline-block;width:54px;height:54px;flex:none;border-radius:12px;background:linear-gradient(140deg,#fff,#dbe9f0);border:1px solid #fff;box-shadow:inset -3px -4px 0 #b4cbd9,0 5px 10px #0004;color:#142d42;transform:rotate(-6deg)}.pip-die i{position:absolute;width:9px;height:9px;background:currentColor;border-radius:50%;display:none;box-shadow:inset 1px 1px 2px #0007}.pip-die i:nth-child(1){left:10px;top:10px}.pip-die i:nth-child(2){right:10px;top:10px}.pip-die i:nth-child(3){left:10px;top:22px}.pip-die i:nth-child(4){left:22px;top:22px}.pip-die i:nth-child(5){right:10px;top:22px}.pip-die i:nth-child(6){left:10px;bottom:10px}.pip-die i:nth-child(7){right:10px;bottom:10px}.pip-die[data-value="1"] i:nth-child(4),.pip-die[data-value="3"] i:nth-child(4),.pip-die[data-value="5"] i:nth-child(4){display:block}.pip-die:not([data-value="1"]) i:nth-child(1),.pip-die:not([data-value="1"]) i:nth-child(7){display:block}.pip-die[data-value="4"] i:nth-child(2),.pip-die[data-value="4"] i:nth-child(6),.pip-die[data-value="5"] i:nth-child(2),.pip-die[data-value="5"] i:nth-child(6),.pip-die[data-value="6"] i:not(:nth-child(4)){display:block}.dice{background:#1c3545;border:1px solid #527386;color:var(--ink);padding:12px;min-height:86px}.dice strong{font-size:15px}.dice.rolling .pip-die{animation:shake .13s linear infinite}
@media(max-width:800px){.playing main{padding:6px 10px}.playing header{height:42px;padding:8px 12px}.playing #table{height:calc(100dvh - 54px);gap:5px}.playing .table-top{height:40px}.playing .table-top h2{font-size:18px}.playing .game-grid{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:7px}.playing aside{overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr);gap:7px}.playing aside .controls{padding:9px;display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center}.playing #status{font-size:11px;min-height:0}.playing .dice{margin:0;min-height:58px;gap:8px;padding:5px 9px;grid-column:2;grid-row:1/3}.playing .dice strong{font-size:12px}.playing .pip-die{width:54px;height:54px;scale:.78;margin:-5px}.playing #moves{gap:4px}.playing #moves button{font-size:11px;padding:7px;min-height:30px}.playing #scores{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:7px}.playing .score{padding:3px;gap:5px;font-size:9px;line-height:1.2}.playing .dot{width:8px;height:8px}.playing aside details{display:none}.playing .table-settings>summary{font-size:11px;padding:4px 10px}.playing .view-status{font-size:10px;line-height:1.2}.playing .xr-toolbar #xr-help{display:none}}
@media(max-width:420px){.playing aside{grid-template-columns:1fr}.playing #scores{display:flex;justify-content:space-around;gap:5px}.playing .score{flex:1;min-width:0}.playing .score b{max-width:60px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playing .controls{min-height:82px}.playing .board-wrap{border-radius:12px}.playing .table-tools>button{flex:1 1 auto}.playing .table-tools>.motion-choice{width:auto}.playing .table-top .eyebrow{font-size:8px}}
@media(max-height:500px) and (min-width:600px){.playing header{display:none}.playing #table{height:calc(100dvh - 12px)}.playing .game-grid{grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:1fr}.playing aside{display:flex;overflow:auto}.playing .table-top{height:34px}.playing #scores{display:grid}.playing .view-status{display:none}}
@media(max-height:500px){.playing header{display:none}.playing main{padding:4px 8px}.playing #table{height:calc(100dvh - 8px);gap:3px}.playing .table-top{height:32px}.playing .table-top h2{font-size:15px}.playing .game-grid{grid-template-columns:minmax(0,1fr) minmax(130px,28%);grid-template-rows:minmax(0,1fr);gap:6px}.playing aside{display:flex;overflow:auto}.playing .controls{display:flex!important;flex-direction:column;min-height:0;padding:7px!important}.playing #status{font-size:10px}.playing .dice{width:100%;min-height:48px;gap:2px;padding:4px}.playing .dice strong{font-size:10px}.playing #scores{display:grid;grid-template-columns:1fr 1fr}.playing .score{font-size:8px}.playing .view-status{display:none}.playing .table-settings>summary{font-size:9px;padding:3px 6px}.playing .table-settings{margin-bottom:3px}.playing .pip-die{scale:.65;margin:-9px}.playing #moves{flex-wrap:wrap}.playing #moves button{font-size:9px;min-height:25px}}

.playing #board{width:var(--board-size,100%)!important;height:var(--board-size,100%);max-width:none;flex:none}.playing .board-wrap.zoomed #board{width:calc(var(--board-size) * var(--zoom-scale,1.5))!important;height:calc(var(--board-size) * var(--zoom-scale,1.5))}

#celebration{z-index:5}

.setup-tip{font-size:13px;color:var(--muted);max-width:760px;margin:18px 0 6px}.seat-setting{padding:10px;border:1px solid #405b6c;border-radius:12px;background:#0e2130}.seat-setting input{font-weight:700}.playing .board-wrap{background:radial-gradient(ellipse at 50% 40%,var(--theme-sky),#0b1927);box-shadow:inset 0 0 50px #0003,0 12px 30px #0002}.playing .table-top h2{color:var(--accent)}.table-settings[open] .table-tools{max-height:min(430px,70dvh);overflow:auto}#setup{box-shadow:0 16px 50px #0003}.playing .score.active{box-shadow:inset 3px 0 var(--accent)}

.intro-art{background:#102b38}.intro-art img{filter:saturate(.85) brightness(.9)}.playing [data-ludo-theme] .dice{color:#edf3f4}
/* Quiet midnight surround: seasonal accents stay on the table. */
body{background:radial-gradient(ellipse at 15% 10%,#17394b80,transparent 52%),radial-gradient(ellipse at 90% 80%,#28365355,transparent 45%),#08131f}.playing .board-wrap{border:1px solid #557384;box-shadow:0 12px 40px #0005,inset 0 1px #c4e8f322}.playing aside .panel{background:linear-gradient(145deg,#152c3bf0,#101f2ded);border-color:#354f60}.playing .dice{background:linear-gradient(135deg,#233f50,#172c3d);box-shadow:0 5px 20px #0002}.playing .table-top h2{color:#e5f2f6}.playing header{background:#0b1c2a99}.playing .xr-toolbar{background:#0b1b2af0;border-color:#54707e66}.playing #xr-canvas{background:#102332}
.xr-ar.playing #xr-canvas{background:transparent}

/* Adventure collection 2.0: reference-inspired forest panels and restrained brass. */
:root{--text:#edf1df;--muted:#b5c8bc;--line:#526c5b;--accent:#8cd5b2;--panel:#122d28}
body{background:radial-gradient(ellipse at 22% 0%,#244c3d 0, var(--bg) 65%);color:var(--text);font-family:system-ui,-apple-system,sans-serif}
header{background:#0a211de8;border-bottom:1px solid #53684e;backdrop-filter:blur(12px)}
header a{color:#dcebdc}header .game-brand{font-size:8px;letter-spacing:1.8px;color:#b7a16a}header>span:last-child{color:#b9cbbd}
h1,h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.6px}.eyebrow{color:#c4b886!important;letter-spacing:2px}
.intro{gap:36px;padding-block:35px}.intro h1{font-size:clamp(38px,5vw,66px);line-height:1.07}.intro p{color:#c4d4c6}.intro-art{border:1px solid #728465;border-radius:22px;overflow:hidden;box-shadow:0 22px 70px #020e0a77}.intro-art img{display:block;width:100%;object-fit:cover}
.panel{background:linear-gradient(145deg,color-mix(in srgb,var(--panel),#466b50 12%),var(--panel));border:1px solid #52705d;border-radius:18px;box-shadow:0 10px 35px #020b0926}
button{border-radius:10px;background:linear-gradient(135deg,var(--accent),#64b795);color:#102d24;border:1px solid #a1d4ae;font-weight:700}button.secondary{background:#18392f;color:#e0eadb;border:1px solid #607760}button:hover{filter:brightness(1.1)}
input,select{background:#0d241f;color:#e7eee0;border-color:#57715d;border-radius:9px}.seat-setting{background:#0d251f99;border:1px solid #456650;border-radius:13px;padding:12px}.section-title span,.small,.setup-tip{color:#b5c8bc}
.score{border-radius:12px}.score.active{background:#365440;border:1px solid #b6ab75}.score b{font-size:12px}.score span{color:#d7e3d6}
.playing .board-wrap{border:1px solid #7c8e68;border-radius:20px;background:radial-gradient(ellipse,#315b45,#0c241d);box-shadow:inset 0 0 50px #06190f66,0 15px 45px #0003}
.playing .controls{background:linear-gradient(145deg,#203e31,var(--panel))}.playing #status{font-family:Georgia,serif;font-size:17px;line-height:1.45}.playing #turn{font-size:clamp(22px,2.7vw,34px)}
.pip-die{background:linear-gradient(135deg,#f1f2df,#c9d9c5)!important;color:#173b2c!important;box-shadow:0 5px 0 #78917e,0 10px 20px #0004!important}.pip-die i{background:#244638!important}
.table-settings summary{font-size:11px;border-color:#61755e;background:#16382c}.xr-toolbar{background:#0b241fe8!important;border-color:#586f57!important}.xr-toolbar button{border-radius:9px}.world-roster{background:#102d25e8}.world-player.current{border-color:#bac58b;background:#3b5535}
.rules summary{color:#d2c695}.rules p{color:#b8cdbd}.view-status{font-size:11px;color:#b3c9bd}.theme-caption{color:#c0d4c3}
@media(max-width:600px){header .game-brand{display:none}.intro{padding-block:18px;gap:15px}.intro h1{font-size:38px}.seat-setting{padding:8px}.playing #status{font-size:13px}}

.header-actions{display:flex;gap:7px}.header-actions button{font-size:10px;padding:8px 11px;min-height:34px}header a[href="/"]{font-weight:850;letter-spacing:.14em;color:#e6edd9}.playing #mode-note{font-size:10px;margin-bottom:6px}.score.active{outline:none}.hunt-settings{background:#102a22;border:1px solid #49634f;border-radius:13px;padding:15px;margin:15px 0}.hunt-settings p{margin:0;align-self:center}@media(max-width:600px){header{gap:8px}.header-actions button{font-size:9px;padding:7px;min-height:32px}header>span:last-of-type{display:none}}

.theme-setup{background:linear-gradient(125deg,#183b2c,#10271f)}.theme-setup p,.theme-setup label{color:#bfd3c4}.playing .controls{background:linear-gradient(145deg,#203e31,var(--panel))!important}

.playing .guide-link{display:none}

/* Grand Atrium: graphite, smoked glass and restrained champagne trim. */
body{background:radial-gradient(ellipse at 15% 0%,#243b4b66,transparent 50%),radial-gradient(ellipse at 100% 95%,#4d443326,transparent 45%),var(--bg)!important;color:#e9eef0}
header{background:#0b141ee8!important;border-color:#43505a!important}header a,header a[href="/"]{color:#e3eaf0!important}header .game-brand,.eyebrow{color:#c3b591!important}
.panel,.playing .controls{background:linear-gradient(145deg,#1b2b38ee,var(--panel))!important;border-color:#485661!important;box-shadow:0 14px 44px #0003,inset 0 1px #ffffff08!important}
input,select{background:#0d1824!important;border:1px solid #485a69!important;color:#e0e9ef!important}.seat-setting,.hunt-settings{background:#0d1926aa!important;border-color:#435564!important}.theme-setup{background:linear-gradient(120deg,#203442,#121f2d)!important}.theme-setup p,.theme-setup label{color:#bdcbd4!important}
button{background:linear-gradient(135deg,#c9dce0,#91afb8);border:1px solid #dce9e9;color:#12252d}.secondary,button.secondary{background:#1c2c3a!important;border:1px solid #526575!important;color:#dfe8ee!important}.playing .board-wrap{background:radial-gradient(ellipse at 45% 30%,#314958,#111c2a 75%)!important;border:1px solid #6c7a83!important;box-shadow:inset 0 1px #e8eee833,inset 0 0 70px #020a1555,0 14px 45px #0006!important}
.score.active{background:linear-gradient(120deg,#35505d,#263b49)!important;border-color:#a3bdc5!important}.xr-toolbar{background:#101c2be8!important;border-color:#5c7080!important}.table-settings summary{background:#182b39!important;border-color:#536779!important}.intro-art{border-color:#687985!important}.world-roster{background:#122231ed!important}.world-player.current{background:#304a59!important;border-color:#a5c2cd!important}.table-top h2{color:#f0eee6}

/* Always-visible discovery bar, kept in flow above the board. */
.playing .table-settings{width:100%;align-self:stretch;flex:none;margin:0 0 5px;z-index:4;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.playing .table-settings .table-tools{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:7px;width:100%;margin:0;padding:0;box-shadow:none;border:0;background:none}
.playing .table-tools>label{flex:1 1 135px;min-width:115px;font-size:11px;gap:3px}
.playing .table-tools>.motion-choice{flex:0 1 auto;min-width:0;gap:5px}
.playing .table-tools button{flex:0 0 auto;min-height:36px;padding:7px 10px;white-space:nowrap}
.playing .table-tools select{min-height:36px;padding:6px 9px;font-size:12px;width:100%;max-width:100%}
.playing .table-tools #vr,.playing .table-tools #ar{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:800px){.playing .table-settings{padding:6px;margin-bottom:3px}.playing .table-settings .table-tools{gap:5px}.playing .table-tools button{font-size:11px;min-height:32px;padding:6px 8px}.playing .table-tools>label{flex:1 1 110px;min-width:95px;font-size:10px}.playing .table-tools select{min-height:32px;font-size:11px}.playing .table-tools>.motion-choice{font-size:10px}.playing .table-tools .motion-choice input{width:15px;height:15px}}
@media(max-height:500px){.playing body{overflow:auto}.playing #table{height:auto;min-height:calc(100dvh - 65px)}.playing .game-grid{min-height:420px}.playing .board-wrap{min-height:260px}}

/* Board-first launch: settings live on the table, not below a large hero. */
.intro[hidden],#setup-stage[hidden]{display:none!important}
body:has(#setup-stage:not([hidden])){background:radial-gradient(ellipse at 18% 35%,#203a49,transparent 55%),#0b1420}
.setup-stage{position:relative;isolation:isolate;min-height:780px;padding:24px 0 32px;display:flex;justify-content:flex-end;align-items:flex-start;gap:24px}
.launch-title{position:absolute;left:0;top:18px;display:flex;gap:14px;align-items:center;max-width:46%;z-index:1}.launch-title h1{font:700 clamp(32px,4vw,54px)/1.1 Georgia,serif;letter-spacing:-.03em;margin:3px 0 8px}.launch-title p{font-size:12px;color:var(--muted);margin:0}.launch-title .eyebrow{font-size:9px;letter-spacing:.16em;color:#c2b17f}.launch-mark{display:grid;place-items:center;width:54px;height:54px;border:1px solid #9eafad;border-radius:16px;color:#d8e5df;background:linear-gradient(135deg,#314d5b,#142532);font-size:32px;box-shadow:0 8px 25px #0004}
#setup-preview{position:absolute;left:-6%;top:155px;width:64%;height:auto;max-height:650px;object-fit:contain;filter:drop-shadow(0 24px 30px #0007);transform:rotate(-5deg);opacity:.9;pointer-events:none}
.setup-stage #setup{position:relative;z-index:2;width:52%;max-width:610px;margin:0;padding:22px;border:1px solid #68818c70;border-radius:22px;background:linear-gradient(150deg,#1d303fee,#10202ff5);box-shadow:0 24px 65px #0006;backdrop-filter:blur(16px)}
.launch-identity{align-items:center;gap:12px;margin-bottom:18px}.launch-identity img{width:72px;height:54px;border-radius:10px;object-fit:cover;border:1px solid #99b5b74d}.launch-identity h2{font-size:27px;margin:0}.launch-identity .eyebrow{font-size:9px;margin:0 0 3px}.launch-identity>span{margin-left:auto;font-size:10px;white-space:nowrap}
.setup-stage .setup-grid{gap:12px}.setup-stage label{font-size:12px;gap:5px}.setup-stage select,.setup-stage input{min-height:40px;padding:9px 10px;font-size:13px}.setup-stage .theme-setup{grid-template-columns:1fr 1fr;padding:12px;gap:10px;margin-top:14px}.setup-stage .theme-setup .motion-choice{grid-column:1/-1}.setup-stage .theme-setup p{font-size:11px;margin:0}.setup-stage .setup-tip{font-size:11px;line-height:1.5;margin:12px 0}.setup-stage .seat-setting{gap:7px;padding:7px 0}.setup-stage #start{width:100%;margin-top:14px;min-height:48px;font-size:16px;background:linear-gradient(120deg,#b9d6d5,#8fb7c2);color:#0d2631;border:1px solid #d0e8e4}
@media(max-width:900px){.setup-stage{min-height:700px}.setup-stage #setup{width:58%;padding:16px}#setup-preview{left:-11%;width:65%;top:170px}.launch-title{max-width:39%}.launch-mark{display:none}.launch-title h1{font-size:34px}}
@media(max-width:650px){main{padding:16px 12px}.setup-stage{display:flex;flex-direction:column;min-height:0;padding-top:0;gap:0}.launch-title{position:relative;top:0;max-width:100%;margin:0 0 10px}.launch-title h1{font-size:30px}.launch-title p:last-child{display:none}.launch-mark{display:grid;width:42px;height:42px;font-size:25px;border-radius:12px}#setup-preview{position:relative;left:auto;top:auto;width:100%;height:230px;max-height:230px;transform:none;opacity:.95}.setup-stage #setup{width:100%;max-width:none;margin-top:-14px;padding:16px;border-radius:18px}.launch-identity>span{font-size:9px}.launch-identity img{width:58px;height:43px}.setup-stage .theme-setup{grid-template-columns:1fr 1fr}.setup-stage .setup-grid{grid-template-columns:1fr 1fr}.setup-stage .seat-setting input{min-width:0}.setup-stage .seat-setting select{min-width:0;padding:7px 4px;font-size:11px}}

.setup-stage #seat-settings{display:grid;grid-template-columns:1fr;gap:5px}.setup-stage .seat-setting{display:grid;grid-template-columns:28px minmax(95px,1fr) 95px 95px;padding:5px 7px;align-items:center}.setup-stage .seat-setting input{width:100%;min-width:0}.setup-stage .seat-setting select{width:100%;min-width:0}@media(max-width:650px){.setup-stage .seat-setting{grid-template-columns:24px minmax(70px,1fr) 70px 70px;gap:5px;padding:5px}.setup-stage .seat-setting input{font-size:12px;padding:7px}.setup-stage #setup{margin-top:-14px}}

/* A light navigation strip and a setup card that stays within desktop height. */
header{display:flex;align-items:center;gap:18px;max-width:1440px;width:calc(100% - 32px);margin:12px auto 0;padding:12px 18px;border:1px solid #6d8d9a38;border-radius:16px;background:linear-gradient(100deg,#162633ed,#0c1722e8);box-shadow:0 9px 30px #0002}
header .header-wordmark{order:-1;margin-right:auto;font:850 19px/1.2 system-ui,sans-serif;letter-spacing:.12em;color:#f0f5f4}header .header-wordmark span{color:#9fcbd0}header .game-brand{font-size:9px;letter-spacing:.13em;color:#bcae87}header>a:not(.header-wordmark){font-size:12px;letter-spacing:0;font-weight:600}header>span:not(.game-brand){display:none}.header-actions{display:flex;gap:7px}.header-actions button{min-height:34px;padding:7px 11px;border-radius:10px;font-size:11px}
body:has(#setup-stage:not([hidden])) main{max-width:1420px;padding:14px 24px}
.setup-stage{min-height:calc(100dvh - 112px);padding:12px 0 18px;align-items:flex-start}
.launch-title{top:12px}.launch-title h1{font-size:clamp(32px,3.5vw,48px)}.launch-mark{border-radius:50%;width:48px;height:48px;font:700 28px Georgia,serif;background:radial-gradient(circle at 35% 25%,#456575,#172e3b);border:1px solid #99bfc26b}
#setup-preview{top:120px;left:-2%;width:57%;max-height:calc(100dvh - 240px);transform:rotate(-3deg)}
.setup-stage #setup{max-height:calc(100dvh - 120px);overflow:auto;scrollbar-width:thin;scrollbar-color:#688a98 #152736;padding:16px 18px;border-radius:20px}.setup-stage .launch-identity{margin-bottom:12px}.setup-stage .theme-setup{margin-top:10px;padding:10px;gap:7px}.setup-stage .setup-tip{margin:9px 0;font-size:10px}.setup-stage .seat-setting{padding:4px 6px}.setup-stage #seat-settings{gap:4px}.setup-stage select,.setup-stage input{min-height:36px;padding:7px 9px;font-size:12px}.setup-stage #start{margin-top:10px;min-height:43px}.setup-stage #online-setup p,.setup-stage .hunter-setup p{font-size:11px;line-height:1.4;margin:6px 0}.setup-stage #theme-note{display:none}
#player-view[aria-pressed=true]{background:#b4d7d9;color:#102936;border-color:#e2f6f3}
.playing header{width:calc(100% - 24px);margin-top:6px;border-radius:12px;padding:7px 12px;height:44px;max-width:none}.playing #table{height:calc(100dvh - 72px)}
@media(max-width:650px){header{margin-top:6px;width:calc(100% - 16px);gap:9px;padding:9px 10px;border-radius:12px}header .game-brand{display:none}header .header-wordmark{font-size:15px}.header-actions button{font-size:10px;padding:6px;min-height:31px}header>a:not(.header-wordmark){font-size:10px}body:has(#setup-stage:not([hidden])) main{padding:12px}.setup-stage{min-height:0;padding-top:0}.launch-title{top:0}.launch-title h1{font-size:28px}#setup-preview{top:auto;left:auto;width:100%;height:200px;max-height:200px;transform:none}.setup-stage #setup{max-height:none;overflow:visible;padding:14px;margin-top:-8px}.playing header{width:calc(100% - 12px);padding:6px 8px}.playing main{padding:6px 8px}}

/* Setup is a dismissible card over the actual board preview. */
.setup-stage{display:flex;justify-content:center;align-items:center;min-height:calc(100dvh - 112px);padding:12px 0;overflow:hidden;border-radius:22px;background:radial-gradient(ellipse,#2b45534d,transparent 70%)}
.setup-stage:not(.setup-dismissed)::before{content:"";position:absolute;inset:0;background:#06101b70;z-index:1;pointer-events:none}
.launch-title{z-index:1;left:20px;top:20px;max-width:27%}.launch-title h1{font-size:clamp(24px,3vw,40px)}.launch-title p:last-child{display:none}.launch-mark{display:none}
#setup-preview{left:0;right:0;top:0;bottom:0;margin:auto;width:auto;height:100%;max-width:100%;max-height:calc(100dvh - 112px);transform:none;opacity:.95}
.setup-stage #setup{width:min(600px,95%);max-width:600px;max-height:calc(100dvh - 140px);margin:0;padding:18px 20px;background:linear-gradient(145deg,#203443f7,#102331fc);box-shadow:0 24px 80px #0009;border:1px solid #93b2b576}
.close-setup{position:absolute;right:12px;top:10px;width:30px;min-height:30px;padding:0;font:22px/1 system-ui;border-radius:50%;z-index:3}.launch-identity{padding-right:26px}.launch-identity>span{display:none}.open-setup{position:relative;z-index:3;align-self:flex-end;margin:0 0 26px;padding:13px 24px;border-radius:30px;background:#b8d8dc;color:#12303d;box-shadow:0 8px 30px #0007}.open-setup[hidden],.setup-stage #setup[hidden]{display:none!important}
@media(max-width:900px){.launch-title{max-width:22%;left:12px}.launch-title h1{font-size:25px}.launch-title .eyebrow{font-size:8px}}
@media(max-width:650px){.setup-stage{min-height:calc(100dvh - 90px);padding:12px 0;justify-content:center;overflow:visible}.launch-title{position:absolute;top:12px;left:12px;max-width:none;opacity:.75}.launch-title h1{font-size:24px}.launch-title .eyebrow{display:none}#setup-preview{position:absolute;inset:0;width:100%;height:auto;max-height:100%;margin:auto}.setup-stage #setup{width:calc(100% - 12px);margin:36px 0 0;padding:14px;max-height:calc(100dvh - 140px);overflow:auto}.setup-stage.setup-dismissed{min-height:calc(100dvh - 100px)}.setup-dismissed .open-setup{margin-top:auto;margin-bottom:18px}.launch-identity{padding-right:23px}.launch-identity h2{font-size:23px}}

/* Two short setup steps fit the viewport; camera choice never changes control. */
header .header-wordmark{white-space:nowrap;letter-spacing:.08em;font-size:18px}
body:has(#setup-stage:not([hidden])){overflow:hidden}
body:has(#setup-stage:not([hidden])) main{height:calc(100dvh - 90px);padding:8px 16px}
.setup-stage{height:100%;min-height:0;padding:12px;overflow:hidden}
#setup-preview{height:100%;width:auto;max-height:100%;max-width:100%;inset:0}
.setup-stage #setup{width:min(620px,100%);max-height:100%;overflow:visible;padding:16px 18px;display:flex;flex-direction:column;gap:9px}
.setup-stage .launch-identity{justify-content:flex-start;margin:0;flex:none;padding-right:28px}.launch-identity>div{margin-right:auto}.launch-identity h2{font-size:24px}.launch-identity img{width:56px;height:42px}
.setup-tabs{display:flex;gap:8px;flex:none}.setup-tabs button{flex:1;min-height:34px;padding:6px;font-size:12px}.setup-tabs button[aria-pressed=true]{background:#bad8db;color:#15313e;border-color:#d8ebeb}
#setup-table-pane[hidden],#setup-players-pane[hidden]{display:none!important}
.setup-stage .setup-grid{margin:0;grid-template-columns:1fr 1fr}.setup-stage .theme-setup{margin-top:10px;grid-template-columns:1fr 1fr}.setup-stage .setup-tip{margin:0 0 8px;font-size:10px;line-height:1.3}.setup-stage #seat-settings{grid-template-columns:1fr;gap:4px}.setup-stage .seat-setting{margin:0;padding:3px 6px}.setup-stage .seat-setting input,.setup-stage .seat-setting select{min-height:33px;font-size:12px;padding:6px 8px}.setup-footer{display:flex;gap:8px;flex-wrap:wrap;flex:none}.setup-footer button{min-height:40px;padding:9px 12px;flex:1;font-size:12px;margin:0!important}.setup-stage #start{width:auto;margin:0;min-height:40px;font-size:14px;flex:1}
#setup[data-step="1"] #start{display:none}.setup-footer #setup-next[hidden]{display:none!important}
.setup-stage #online-setup p{font-size:10px;line-height:1.25;margin:5px 0}.setup-stage #online-setup .actions{gap:5px}.setup-stage #online-setup .actions button{min-height:32px;padding:6px;font-size:11px}
.playing .table-tools>.seat-view-choice{flex:1 1 140px;min-width:120px}.playing .table-tools>.board-zoom{flex:1 1 100px;min-width:95px}
@media(max-width:650px){header .header-wordmark{font-size:15px}.setup-stage{min-height:0;justify-content:center;padding:6px 0}.setup-stage #setup{margin:0;width:100%;padding:12px;max-height:100%;overflow:visible;gap:7px}.setup-stage #seat-settings{gap:3px}.setup-stage .seat-setting{grid-template-columns:22px minmax(65px,1fr) 66px 66px;gap:4px;padding:3px}.setup-stage .seat-setting input,.setup-stage .seat-setting select{min-height:31px;font-size:11px;padding:5px}.setup-stage .setup-tip{font-size:9px}.setup-stage .theme-setup{padding:8px;gap:6px}.setup-stage label{font-size:10px}.setup-stage select{min-height:33px;font-size:11px}.setup-stage .launch-title{display:none}.setup-stage .launch-identity h2{font-size:22px}.playing .table-tools>.seat-view-choice{min-width:100px;flex:1 1 100px}}
@media(max-height:620px) and (min-width:651px){.setup-stage #setup{width:min(900px,100%);padding:10px 14px;gap:6px}.setup-stage #seat-settings{grid-template-columns:1fr 1fr;gap:4px}.setup-stage .seat-setting{grid-template-columns:22px minmax(80px,1fr) 75px 75px;gap:4px}.setup-stage .launch-identity img{display:none}.setup-stage .theme-setup{margin-top:6px;padding:8px;grid-template-columns:1fr 1fr auto}.setup-stage .theme-setup .motion-choice{grid-column:auto}.setup-stage #online-setup p{display:none}.setup-stage .setup-tip{margin-bottom:5px}.setup-footer button{min-height:34px;padding:6px}}

html:has(#setup-stage:not([hidden])){height:100dvh;overflow:hidden}body:has(#setup-stage:not([hidden])){height:100dvh;overflow:hidden}body:has(#setup-stage:not([hidden])) main>.rules,body:has(#setup-stage:not([hidden])) main>footer,body:has(#setup-stage:not([hidden])) main>p:has(a){display:none!important}body:has(#setup-stage:not([hidden])) main{height:calc(100dvh - 90px);overflow:hidden}body:has(#setup-stage:not([hidden])) #setup-stage{height:100%;min-height:0}
