
:root{color-scheme:dark;--bg:#131120;--panel:#1c192c;--ink:#f5f1ff;--muted:#aaa3be;--line:#302b42;--purple:#b6a0ff;--red:#f06a7a;--green:#49c3a3;--yellow:#edbe58;--blue:#70a7ed;--font:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-family:var(--font);font-size:16px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 68% 38%,#29203c55,transparent 54%),var(--bg)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #d7c7ff;outline-offset:5px}svg{width:22px;height:22px}button svg{vertical-align:middle}button{touch-action:manipulation}.site-header{height:101px;max-width:1392px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c;padding:0 36px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:29px;letter-spacing:-1.7px}.brand img{transform:rotate(-9deg)}.brand-dot{color:var(--purple)}.brand-game{font-size:11px;letter-spacing:2.5px;color:var(--muted);font-weight:700;border-left:1px solid var(--line);padding-left:15px;margin-left:7px}nav{display:flex;align-items:center;gap:34px;font-size:14px;font-weight:600}nav button,footer button{background:none;padding:0;color:var(--muted)}nav .nav-active{position:relative;color:var(--ink)}nav .nav-active:after{content:'';position:absolute;left:0;right:0;bottom:-40px;height:3px;background:var(--purple);border-radius:6px}nav button:hover,footer a:hover,footer button:hover{color:var(--purple)}.nav-new{display:inline-block;background:#302844;color:#c6b5ff;padding:3px 6px;margin-left:5px;border-radius:5px;font-size:10px}.header-right{display:flex;align-items:center;gap:22px}.release{font-size:12px;font-weight:700;color:#c2bbd1;border:1px solid var(--line);padding:6px 10px;border-radius:7px}.icon-button{background:transparent;border:1px solid var(--line);border-radius:50%;width:39px;height:39px;color:var(--muted)}.game-layout{max-width:1228px;margin:44px auto 40px;display:grid;grid-template-columns:312px minmax(0,1fr);column-gap:80px;padding:0 28px}.intro{padding-top:8px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#b4a6d3}.sparkle{color:var(--purple);font-size:16px;margin-right:5px}h1{font-size:46px;line-height:1.1;letter-spacing:-2px;margin:19px 0 15px;font-weight:900}h1>span{color:var(--purple)}.intro p{color:var(--muted);line-height:1.6;font-size:15px;margin:0 0 25px}.turn-card{position:relative;background:linear-gradient(155deg,#252034,#1d192c);border:1px solid #3b334d;border-radius:22px;padding:20px 20px 14px;text-align:center;overflow:hidden;box-shadow:0 12px 40px #0001}.turn-top{display:flex;align-items:center;justify-content:space-between}.turn-tag{font-size:10px;letter-spacing:1.2px;font-weight:800;background:#f06a7a18;color:#ff94a0;border:1px solid #f06a7a25;border-radius:5px;padding:6px 8px}.turn-number{font-size:11px;color:#8e849e}.turn-card h2{font-size:19px;letter-spacing:-.4px;margin:2px 0 8px}.status{font-size:13px;line-height:1.55;color:var(--muted);min-height:40px;margin:0 0 15px}.primary-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:10px;background:#b5a0f4;color:#211835;font-size:14px;font-weight:800;box-shadow:0 4px 0 #7861b5;transition:background .2s,transform .2s}.primary-button:hover:not(:disabled){background:#c8b5ff;transform:translateY(-1px)}.primary-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #7861b5}.primary-button:disabled{background:#4a405e;color:#c4b4d7;box-shadow:0 4px 0 #30273e}.button-dice{font-size:24px;line-height:1}kbd{font-family:inherit;font-size:9px;font-weight:700;letter-spacing:.5px;background:#271b3d16;border:1px solid #271b3d20;padding:4px 5px;margin-left:auto;border-radius:4px}#roll-button{justify-content:flex-start;padding:0 15px}.saved-note{font-size:10px;color:#8f859f;margin-top:14px}.new-game-button{display:flex;align-items:center;gap:10px;width:100%;padding:18px 4px;background:transparent;color:#cec6df;font-size:13px}.new-game-button svg{width:15px}.new-game-button>span{font-size:10px;color:#92889f;margin-left:auto}.next-update{display:flex;align-items:center;gap:12px;border:1px solid #342b47;border-radius:13px;padding:15px 12px;background:linear-gradient(110deg,#231d32,#1b1828);cursor:pointer}.update-icon{color:var(--purple);background:#aa8ce818;display:grid;place-items:center;width:39px;height:42px;border-radius:10px;flex-shrink:0}.coming-label{font-size:8px;letter-spacing:1.25px;color:#b29bcf;font-weight:800}.next-update strong{display:block;font-size:12px;margin:6px 0}.next-update p{color:#8f849f;font-size:10px;margin:0}.play-area{min-width:0;max-width:660px;padding-top:8px}.board-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.live-mode{font-size:9px;font-weight:700;letter-spacing:1.3px;display:flex;gap:8px;color:#a9a0b8;align-items:center}.live-mode>span:first-child{width:5px;height:5px;border-radius:50%;background:#a491cc}.player-row{display:flex;justify-content:space-between;gap:20px;padding:0 12px;position:relative;z-index:2}.player-card{--player:var(--red);display:flex;align-items:center;gap:12px;min-width:160px;padding:9px 12px;border:1px solid transparent;border-radius:12px;transition:background .3s,border-color .3s}.player-card.active{border-color:color-mix(in srgb,var(--player) 38%,transparent);background:color-mix(in srgb,var(--player) 8%,transparent)}.player-card.inactive{opacity:.35}.avatar{width:34px;height:34px;flex-shrink:0;position:relative;--token:var(--player)}.player-info{flex:1}.player-info strong{font-size:13px;display:block;letter-spacing:.2px}.player-info small{display:block;font-size:10px;color:#9b91ac;margin-top:5px}.player-kind{font-size:8px;color:#bdb1cc;border:1px solid #4a3b5655;border-radius:4px;margin-left:6px;padding:2px 4px}.home-counter{display:flex;gap:3px;margin-top:7px}.home-counter i{height:4px;width:13px;border-radius:5px;background:color-mix(in srgb,var(--player) 22%,#24202e)}.home-counter i.done{background:var(--player)}.player-turn{width:5px;height:5px;background:var(--player);border-radius:50%;display:none}.active .player-turn{display:block;box-shadow:0 0 8px color-mix(in srgb,var(--player) 50%,transparent)}.board-stage{perspective:1200px;padding:10px 6px 27px;position:relative}.board-stage:after{content:'';position:absolute;left:12%;right:8%;bottom:13px;height:60px;background:#06030b;filter:blur(26px);opacity:.8;z-index:0;border-radius:50%}.token-shell{display:block;position:absolute;width:80%;height:80%;left:7%;top:11%;transform:rotate(-7deg);isolation:isolate}.bottom-players{padding-top:6px}.board-hint{color:#8f839f;font-size:11px;text-align:center;margin-top:25px}.hint-star{font-size:16px;color:#bca7d1;margin-right:5px}.game-extras{max-width:1172px;margin:70px auto 0;padding:32px 0;border-top:1px solid #ffffff0b;display:flex;justify-content:space-between;align-items:center;gap:45px}.mini-label{font-size:9px;letter-spacing:1.5px;color:#998ba8;font-weight:800}.game-extras h2{font-size:23px;letter-spacing:-.7px;margin:9px 0}.game-extras p{font-size:13px;color:#9a90a9;max-width:580px;line-height:1.8;margin:0}.feature-pills{display:flex;flex-wrap:wrap;gap:10px;max-width:320px;justify-content:flex-end}.feature-pills span{font-size:11px;color:#b1a5c1;white-space:nowrap;padding:9px 12px;border:1px solid #332a40;border-radius:25px}footer{max-width:1172px;margin:0 auto;min-height:94px;display:flex;gap:20px;align-items:center;border-top:1px solid #ffffff0a;color:#84788f;font-size:11px}.footer-brand{font-size:19px;font-weight:900;color:#b7a7c6;letter-spacing:-.7px}footer>div{margin-left:auto;display:flex;gap:24px}footer button{font-size:11px}.footer-version{font-size:9px;letter-spacing:1px;margin-left:14px}dialog{border:1px solid #51415f;background:#211b30;color:var(--ink);border-radius:24px;width:min(470px,calc(100% - 32px));padding:34px;box-shadow:0 28px 100px #0009;max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#08050fc9;backdrop-filter:blur(7px)}dialog h2{font-size:29px;letter-spacing:-1px;line-height:1.2;margin:14px 0}dialog p{font-size:14px;line-height:1.7;color:#b2a6c1}dialog .primary-button{margin-top:26px}.close-dialog{position:absolute;right:17px;top:13px;background:none;color:#b4a4c8;font-size:27px;line-height:1}.field-label,legend{font-size:13px;font-weight:700;display:block;margin:20px 0 10px}input:not([type=radio]),select{display:block;width:100%;background:#161020;border:1px solid #483754;color:#eee2ff;border-radius:9px;padding:12px 14px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23baa6cd'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}fieldset{padding:0;border:0;margin:0}legend{padding:0}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-options label{position:relative}.mode-options input{position:absolute;left:12px;top:12px;accent-color:#b7a0ff}.mode-options label>span{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #42334e;padding:15px 6px;border-radius:12px;font-size:24px;cursor:pointer}.mode-options strong{font-size:13px}.mode-options small{font-size:10px;color:#9f8eaf}.mode-options input:checked+span{background:#b19be91a;border-color:#a188c9}.setup-note{font-size:11px;color:#a492b3;line-height:1.6;margin-top:20px}.rules-list{padding-left:22px;color:#d1bdf0}.rules-list li{padding-left:7px;margin:22px 0;font-size:14px}.rules-list strong{color:#e9def7}.rules-list p{font-size:13px;margin:7px 0}.rule-footnote{padding:15px;background:#15101e;border-radius:10px;font-size:12px;line-height:1.7;color:#ac9bbd}.update-hero,.winner-art{font-size:66px;color:var(--purple);margin:0 0 10px}.roadmap-row{display:flex;align-items:center;gap:14px;border-top:1px solid #ffffff0a;padding:18px 0}.roadmap-row strong{font-size:13px}.roadmap-row p{font-size:12px;margin:6px 0 0}.roadmap-check{color:#65c8a9}.roadmap-soon{color:var(--purple)}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#e9dfff;color:#372844;border-radius:12px;padding:12px 22px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){.game-layout{margin-top:58px;column-gap:100px;max-width:1290px;grid-template-columns:330px minmax(0,1fr)}.play-area{max-width:680px}h1{font-size:51px}.intro p{margin-bottom:30px}}
@media(max-width:1100px){.game-layout{column-gap:35px;grid-template-columns:275px minmax(0,1fr);padding:0 25px;margin-top:28px}h1{font-size:39px}.eyebrow{font-size:8px}.player-card{min-width:140px;padding:8px}.player-row{padding:0 4px}.game-extras,footer{margin-left:25px;margin-right:25px}.game-extras{margin-top:45px}.board-hint{font-size:10px}.turn-card{padding:15px}.site-header{padding:0 25px;height:88px}nav .nav-active:after{bottom:-34px}}
@media(max-width:800px){.site-header{height:77px;padding:0 20px}.brand{font-size:25px}.brand img{width:33px;height:33px}.brand-game{display:none}nav{gap:20px}nav .nav-active{display:none}nav button{font-size:12px}.header-right{gap:10px}.release{display:none}.game-layout{display:flex;flex-direction:column;padding:0 20px;max-width:660px;margin:23px auto 0}.control-column{display:contents}.intro{order:0;display:flex;justify-content:space-between;align-items:center;padding:0;margin-bottom:15px}.intro .eyebrow{display:none}.intro h1{font-size:29px;line-height:1.12;letter-spacing:-1px;margin:0}.intro p{font-size:12px;margin:0;text-align:right}.play-area{order:1;width:100%;padding:0}.board-toolbar{margin-bottom:14px}.board-stage{padding:5px 4px 23px}.player-row{padding:0 6px}.player-card{padding:6px 10px;min-width:143px}.player-info strong{font-size:12px}.player-info small{font-size:9px}.board-hint{margin:16px 0}.turn-card{order:2;display:grid;grid-template-columns:96px 1fr;grid-template-rows:auto auto auto;column-gap:15px;padding:17px;text-align:left;border-radius:18px}.turn-top{grid-column:2;grid-row:1}.turn-card h2{grid-column:2;grid-row:2;margin:8px 0 5px;font-size:17px}.turn-card .status{grid-column:2;grid-row:3;font-size:12px;margin-bottom:0;min-height:34px}.turn-card .primary-button{grid-column:1/span 2;margin-top:12px}.saved-note{grid-column:1/span 2;text-align:center;margin-top:12px}.new-game-button{order:3;padding:18px 6px}.next-update{order:4;padding:15px;margin-bottom:10px}.next-update strong{font-size:13px}.next-update p{font-size:11px}.coming-label{font-size:9px}.game-extras{padding:30px 0;margin:30px 25px 0;display:block}.game-extras h2{font-size:22px}.feature-pills{justify-content:flex-start;max-width:none;margin-top:20px}.game-extras p{font-size:12px}footer{flex-wrap:wrap;padding:22px 0;gap:15px}footer>span:nth-child(2){margin-left:auto}footer>div{width:100%;margin-left:0;justify-content:space-between}.footer-version{display:none}.home-counter i{width:10px}.bottom-players{padding-top:0}}
@media(max-width:420px){.site-header{padding:0 15px}.brand{gap:8px;font-size:24px}nav{gap:15px}nav button{font-size:10px}.nav-new{display:none}.icon-button{width:33px;height:33px}.game-layout{padding:0 13px;margin-top:20px}.intro h1{font-size:26px}.intro p{font-size:10px}.live-mode{font-size:8px;letter-spacing:.8px}.player-card{gap:8px;min-width:128px;padding:6px}.player-kind{font-size:7px;margin-left:3px}.avatar{width:28px;height:28px}.player-info strong{font-size:11px}.player-info small{font-size:8px}.board-hint{font-size:9px}dialog{padding:29px 23px}dialog h2{font-size:26px}.turn-card{grid-template-columns:85px 1fr;gap:0 12px}}
@media(min-width:801px) and (max-height:850px){.site-header{height:72px}.site-header nav .nav-active:after{bottom:-27px}.game-layout{margin-top:20px;margin-bottom:20px;grid-template-columns:290px minmax(0,1fr);column-gap:65px;max-width:1110px}.intro{padding-top:0}.intro h1{font-size:38px;margin:12px 0 10px}.intro p{font-size:13px;margin-bottom:18px}.turn-card{padding:16px}.turn-card h2{font-size:17px}.status{font-size:12px;min-height:38px;margin-bottom:10px}.saved-note{margin-top:12px}.next-update{padding:12px}.play-area{padding-top:0;max-width:570px}.board-toolbar{margin-bottom:12px}.board-stage{width:min(100%,calc(100dvh - 246px));margin:auto;padding-top:0;padding-bottom:20px}.player-row{max-width:520px;margin:auto}.player-card{padding:6px 10px}.avatar{width:29px;height:29px}.board-hint{margin-top:14px}.bottom-players{padding-top:0}.game-extras{margin-top:25px}}
.world-view{position:absolute;inset:0;z-index:3;visibility:hidden;overflow:visible}.world-view canvas{display:block;width:100%;height:100%;touch-action:pan-y}.world-ready .board-stage{width:100%;padding:0;aspect-ratio:1.12}.move-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:14px;grid-column:1/-1}.move-options[hidden]{display:none}.quick-move{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:63px;border:1px solid #c8b1ec50;background:#b5a0f410;border-radius:10px;padding:7px 2px;font-size:10px;font-weight:700;color:#e7dcfa}.quick-move .token-shell{width:23px;height:23px;top:8px;left:calc(50% - 13px)}.quick-move:hover{background:#b5a0f42b;border-color:#c4abed}.quick-move:active{transform:translateY(2px)}.world-ready .board-hint{margin-top:8px}.world-ready .board-toolbar{margin-bottom:10px}@media(min-width:801px) and (max-height:850px){.world-ready .board-stage{width:min(100%,calc(100dvh - 215px));aspect-ratio:1.12}.world-ready .game-layout{column-gap:50px;grid-template-columns:290px minmax(0,1fr);max-width:1190px}.world-ready .play-area{max-width:680px}.world-ready .player-row{max-width:550px}}
@media(max-width:800px){.world-ready .board-stage{margin:0 -10px;width:calc(100% + 20px)}.world-ready .board-hint{margin:8px 0 16px}.move-options{margin-top:13px}.world-ready .turn-card{box-shadow:0 10px 35px #0002}}
.crew-portrait{height:150px;position:relative;display:flex;align-items:center;justify-content:center}.turn-mascot{position:relative;width:87px;height:120px;z-index:2;animation:hero-idle 3.5s ease-in-out infinite}.turn-mascot .person-shell{inset:0!important;width:100%!important;height:100%!important;transform:none!important;filter:drop-shadow(0 8px 3px #0003)}.portrait-halo{position:absolute;width:114px;height:114px;border-radius:50%;background:radial-gradient(circle,#b5a0f421,#b5a0f407 69%,transparent 70%);border:1px solid #b5a0f41c}.portrait-spark{position:absolute;right:53px;top:24px;color:#b49ae5;font-size:19px}.last-roll{position:absolute;bottom:20px;right:4px;display:flex;flex-direction:column;gap:5px;font-size:8px;letter-spacing:1.1px;font-weight:800;color:#9185a3}.last-roll strong{font-size:19px;letter-spacing:0;align-self:center;background:#30273f;color:#dfd1f3;border:1px solid #51415f;border-radius:7px;width:31px;height:31px;line-height:29px}.is-rolling:before{content:'';position:absolute;inset:20% 18%;background:radial-gradient(ellipse,#b5a0f41a,transparent 70%);pointer-events:none;z-index:0}@keyframes hero-idle{50%{transform:translateY(-4px) rotate(1deg)}}
@media(min-width:801px) and (max-height:850px){.crew-portrait{height:130px}.turn-mascot{width:75px;height:103px}.portrait-halo{width:100px;height:100px}}
@media(max-width:800px){.crew-portrait{grid-column:1;grid-row:1/span 3;height:115px}.turn-mascot{width:63px;height:90px}.portrait-halo{width:83px;height:83px}.portrait-spark{right:-2px;top:10px;font-size:14px}.last-roll{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* A dedicated 3D stage: controls and results always stay outside the canvas. */
.board-stage,.world-ready .board-stage{position:relative;perspective:none;width:100%;aspect-ratio:1.12;padding:0;margin:0 auto}
.board-stage:after{display:none}
.world-view{position:absolute;inset:0;z-index:1;visibility:hidden;overflow:hidden;border-radius:18px}
.world-ready .world-view{visibility:visible}
.world-view canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.board-toolbar,.world-ready .board-toolbar{gap:12px;margin-bottom:10px}
.view-label{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#b7a3d2;white-space:nowrap}
.zoom-controls{display:flex;align-items:center;gap:9px;max-width:470px;margin:0 auto 10px;padding:5px 7px;border:1px solid #3c304d;background:#1c1729;border-radius:13px}
.zoom-controls button{height:40px;min-width:40px;flex-shrink:0;border:1px solid #4a3b5e;border-radius:8px;background:#30263f;color:#ddcef5;font-size:24px;line-height:1;transition:background .2s}
.zoom-controls button:hover:not(:disabled){background:#48365e}
.zoom-controls button:disabled{opacity:.4}
.zoom-controls #zoom-reset{font-size:12px;font-weight:700;padding:0 11px}
.zoom-controls input[type=range]{display:block;flex:1;min-width:35px;width:100%;height:34px;padding:0;margin:0;border:0;box-shadow:none;background:transparent;accent-color:var(--purple);cursor:pointer}
.zoom-controls output{font-size:12px;font-weight:700;color:#c5b6db;min-width:38px;text-align:center;font-variant-numeric:tabular-nums}
.world-loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:30px;text-align:center;color:#c3b2dc;font-size:14px}
.world-loading[hidden]{display:none}
.loading-star{font-size:42px;color:var(--purple)}
.world-loading p{max-width:270px;line-height:1.6;margin:0}
#retry-world{padding:12px 18px;border:1px solid #6f578e;border-radius:9px;background:#3e2e55;color:#eee3ff}
.roll-summary{min-height:66px;display:flex;align-items:center;justify-content:center;margin:9px 12px 0;padding:8px 12px;border-top:1px solid #ffffff0b}
#roll-summary-idle{font-size:12px;line-height:1.5;color:#9e90af;text-align:center;margin:0}
.board-roll-result{display:flex;align-items:center;justify-content:center;gap:12px;text-align:left;animation:result-arrive .22s ease-out}
.board-roll-result[hidden]{display:none}
.board-roll-result>strong{display:grid;place-items:center;width:40px;height:40px;background:#edbe5812;border:1px solid #edbe5845;border-radius:10px;font-size:26px;line-height:1;color:#ffe0a0}
.board-roll-result>div{display:flex;flex-direction:column;gap:4px}
#board-result-name{font-size:11px;letter-spacing:1px;font-weight:800;color:#d8c8e7}
#board-result-note{font-size:12px;color:#a99ab8}
.board-hint,.world-ready .board-hint{margin-top:0}
@keyframes result-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:801px) and (max-height:850px){.board-stage,.world-ready .board-stage{width:min(100%,calc(100dvh - 230px));margin:auto}}
@media(max-width:800px){.board-stage,.world-ready .board-stage{margin:0 -10px;width:calc(100% + 20px)}.zoom-controls{max-width:420px}.roll-summary{margin-top:7px;min-height:64px}.board-hint,.world-ready .board-hint{margin:0 0 16px}}
@media(max-width:420px){.zoom-controls{gap:6px;padding:5px}.zoom-controls button{height:38px;min-width:36px}.zoom-controls #zoom-reset{padding:0 8px}.view-label{font-size:9px}.roll-summary{padding:8px 0;margin-left:0;margin-right:0}#roll-summary-idle{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
