:root{font-family:"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:#303e40;background:#cbe5e7;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #147d83;outline-offset:4px}#app{position:relative;height:100%;height:100dvh;min-height:360px;overflow:hidden}#world{width:100%;height:100%;display:block}header{position:absolute;top:max(25px,env(safe-area-inset-top));left:32px;right:32px;display:flex;justify-content:space-between;align-items:start;pointer-events:none}.brand{padding:15px 21px;background:#fff9eae8;border-radius:18px;box-shadow:0 4px 20px #384b4910}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#7b8d85}h1{font-size:19px;margin:5px 0 0;font-weight:900;letter-spacing:1px}.round{pointer-events:auto;border:1px solid #fff8;background:#fff9eae8;border-radius:50px;padding:14px;font-size:11px;font-weight:bold;color:#52655d;min-width:64px;min-height:44px}.wallet{position:absolute;right:32px;top:99px;background:#fff9eae8;border-radius:16px;padding:13px 19px;text-align:right}.wallet>span{display:block;font-size:10px;color:#7d8b80;margin-bottom:3px}.wallet strong{font-size:24px}.wallet strong span{font-size:10px}.chapter{position:absolute;top:132px;left:39px;font-size:11px;color:#476369;letter-spacing:1px;font-weight:800}.progress{width:156px;height:4px;background:#ffffff90;margin-top:10px;border-radius:5px;overflow:hidden}.progress i{display:block;background:#e7a154;height:100%;width:5%;transition:width .5s}#panel{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(740px,calc(100% - 48px));background:#fffaf0f5;border:1px solid #fff;border-radius:24px;padding:22px 26px 12px;box-shadow:0 10px 40px #25363425;display:grid;grid-template-columns:1fr auto;gap:14px 20px}h2{font-size:20px;margin:7px 0 8px;line-height:1.5}p{font-size:12px;line-height:1.8;margin:0;color:#718079}.panel-copy .eyebrow{font-size:9px;color:#bf8a48}#actions{align-self:center}#primary{min-height:54px;background:#f7b85d;color:#493c2f;border:0;border-bottom:4px solid #df9943;border-radius:15px;font-size:14px;font-weight:900;padding:14px 22px;white-space:nowrap}#primary span{font-size:22px;margin-left:8px}#primary:disabled{cursor:default;opacity:.55}#primary:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}.footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e7dc;padding-top:9px;font-size:10px;color:#91a097}.footer button{border:0;background:none;color:#728980;font-size:11px;min-height:28px}#choices{grid-column:1/-1;display:flex;gap:12px}#choices[hidden]{display:none}#choices button{flex:1;background:#f4ead7;border:2px solid transparent;border-radius:14px;padding:14px;color:#45574f;display:flex;justify-content:space-between;align-items:center;font-size:13px}#choices button:hover{border-color:#efb35a}#choices strong{font-size:11px}#toast{position:absolute;top:27%;left:50%;transform:translateX(-50%);padding:12px 24px;border-radius:40px;background:#fff9eaeF;font-weight:800;font-size:15px;white-space:nowrap;opacity:0;transition:opacity .3s;pointer-events:none}#toast.show{opacity:1}#diceResult{position:absolute;top:24%;left:50%;transform:translateX(-50%) scale(.7);font-size:56px;font-weight:900;color:#fffaf0;text-shadow:0 3px 0 #c77d34,0 6px 20px #b88951;opacity:0;transition:.25s;pointer-events:none}#diceResult.show{opacity:1;transform:translateX(-50%) scale(1)}#loading{position:absolute;inset:0;z-index:20;background:#fff9ed;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}.loading-icon{font-size:62px;color:#f0ad51;animation:spin 4s linear infinite}.loader{height:5px;width:200px;background:#e8e6d9;border-radius:6px;overflow:hidden;margin-top:25px}.loader i{display:block;width:0%;height:100%;background:#6ab9ad;transition:width .2s}dialog{border:0;border-radius:23px;padding:34px;max-width:440px;width:calc(100% - 36px);color:#344a42;background:#fffaf0;box-shadow:0 20px 80px #233c3b50}dialog::backdrop{background:#17323566}dialog p{margin:14px 0;font-size:13px}dialog small{color:#9a9e8a;line-height:1.8}.close{position:absolute;top:10px;right:12px;border:0;background:none;font-size:24px;color:#567b6c;padding:6px 12px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:600px){header{left:16px;right:16px;top:max(16px,env(safe-area-inset-top))}.brand{padding:12px 14px;border-radius:15px}h1{font-size:14px}.eyebrow{font-size:8px;letter-spacing:1.4px}.round{padding:10px;min-width:55px}.wallet{top:87px;right:16px;padding:9px 13px}.wallet strong{font-size:20px}.chapter{top:105px;left:21px;font-size:9px}.progress{width:125px}#panel{width:calc(100% - 28px);bottom:max(14px,env(safe-area-inset-bottom));padding:17px 18px 8px;gap:12px;grid-template-columns:1fr;border-radius:20px}h2{font-size:17px;margin:5px 0}.panel-copy p{font-size:11px}#actions,#primary{width:100%}#primary{min-height:49px;padding:9px 15px}#choices{gap:8px}#choices button{flex-direction:column;gap:8px;padding:12px 5px;font-size:12px}.footer{padding-top:5px}#toast{font-size:12px;padding:10px 18px;top:27%}}@media(max-height:540px) and (min-width:601px){header{top:12px;left:18px;right:18px}.brand{padding:8px 13px}h1{font-size:14px}.chapter{top:83px;left:24px}.wallet{top:67px;right:18px;padding:7px 14px}.wallet strong{font-size:19px}#panel{bottom:10px;padding:12px 20px 5px;width:min(700px,calc(100% - 32px));gap:6px 20px}h2{font-size:16px;margin:3px 0}.footer{padding-top:3px}#choices button{padding:9px}#toast{top:24%}}

.volume{display:block;margin:22px 0;font-size:14px;font-weight:700}.volume output{float:right;color:#80988d;font-size:12px}.volume input{display:block;width:100%;margin-top:13px;accent-color:#59998a;min-height:32px}.audio-toggle{border:0;background:#e4efe4;border-radius:12px;padding:12px 22px;color:#426759;font-weight:800;min-height:46px}
[hidden]{display:none!important}.tools{display:flex;gap:8px;pointer-events:auto}.wallet #stars{color:#b48c3e;font-size:15px;font-weight:900;margin-top:3px}#playersStrip{display:flex;gap:5px;margin-top:11px}.player-chip{display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:5px 8px;border-radius:12px;background:#fff8ebd9;border:2px solid transparent}.player-chip.active{border-color:#daae67}.player-chip i,.dot{display:inline-block;width:12px;height:12px;border-radius:50%}.dot.blue{background:#36a9ec}.dot.pink{background:#ec8dad}.dot.mint{background:#66bea5}.dot.yellow{background:#efc65c}#setup,#results{position:absolute;inset:0;z-index:10;background:#e9f0e47d;display:flex;justify-content:center;align-items:center;padding:20px;overflow:auto;backdrop-filter:blur(4px)}.setup-card,.results-card{background:#fff9edf5;border:1px solid white;border-radius:26px;box-shadow:0 20px 70px #34544935;padding:30px;width:min(460px,100%);max-height:100%;overflow:auto}.setup-card h2,.results-card h2{font-size:25px}.seats{display:grid;gap:10px;margin:24px 0}.seats label{display:flex;align-items:center;gap:12px;padding:10px 13px;background:#f1ecdd;border-radius:13px;font-weight:800;font-size:14px}.seats select{margin-left:auto}select{font:inherit;border:1px solid #d9ddce;color:#47665d;background:#fffaf1;padding:10px;border-radius:9px;min-height:44px}.big{width:100%;border:0;border-bottom:4px solid #da9e4d;background:#f1bc69;border-radius:14px;padding:14px;color:#4c4938;font-weight:900;font-size:15px;min-height:50px}.setup-note{font-size:10px;text-align:center;margin-top:14px}.results-card{width:min(780px,100%)}#resultCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:20px 0}.result-player{background:#f0ecdf;padding:18px;border-radius:16px;border-top:5px solid var(--player-color)}.result-player h3{margin:0 0 10px}.result-score{font-size:19px;font-weight:bold;color:#937841}.souvenirs{font-size:12px;line-height:1.8;margin:12px 0}.photo{width:100%;border:6px solid white;border-bottom-width:18px;border-radius:3px;margin-top:8px}.speed-label{font-size:12px;display:block;margin-bottom:16px}.speed-label select{display:block;width:100%;margin-top:8px}#skip{grid-column:1/-1;border:0;background:transparent;color:#778d80;font-size:12px;padding:5px;min-height:34px;text-decoration:underline}#choices button{flex-direction:column;justify-content:center;gap:7px;min-height:62px}#choices button:disabled{opacity:.4;cursor:default}#transition{position:absolute;inset:0;background:#fff5e7;opacity:0;pointer-events:none;z-index:4}#miniMap svg{width:100%;height:auto;max-height:300px}#mapPlayers{font-size:12px;line-height:2}#mapDialog{max-width:550px}#panel:has(#choices:not([hidden])){gap:8px}#panel:has(#choices:not([hidden])) .panel-copy{grid-column:1/-1}
@media(max-width:600px){header{left:12px;right:12px}.brand{padding:10px 11px}h1{font-size:12px}.brand .eyebrow{font-size:7px;letter-spacing:1px}.tools{gap:4px}.round{padding:8px;min-width:46px;font-size:10px}.chapter{top:96px;left:17px}.wallet{top:83px;right:13px}.wallet strong{font-size:17px}.wallet #stars{font-size:12px}.player-chip{padding:3px 5px;font-size:8px}#panel{padding:13px 15px 6px;gap:8px}.panel-copy h2{font-size:15px}.panel-copy p{font-size:11px}.setup-card,.results-card{padding:23px}.seats{gap:7px;margin:18px 0}.seats label{padding:6px 10px}.setup-card h2,.results-card h2{font-size:22px}#choices button{font-size:12px;min-height:58px;padding:9px 4px}#choices strong{font-size:10px}#toast{max-width:90%;white-space:normal;text-align:center;top:25%}}
@media(max-height:540px){#setup,#results{align-items:flex-start;padding:12px}.setup-card{width:min(700px,100%);padding:18px}.seats{grid-template-columns:1fr 1fr;margin:12px 0}.setup-note{margin-top:8px}.setup-card h2{font-size:20px}.setup-card .big{padding:9px;min-height:42px}#playersStrip{margin-top:5px}.wallet #stars{margin-top:0}.chapter{top:85px}#panel{max-height:46vh;overflow:auto}#panel:has(#choices:not([hidden])) .panel-copy p{display:none}}

.choice-color{display:inline-block;width:1em;height:1em;border-radius:4px;margin-right:.45em;vertical-align:-.1em;border:1px solid #0002}
