:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;background:#080c15;color:#f5f5fb;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0}p{margin:0}button{font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:48px;border:1px solid #77879b;border-radius:8px;background:#1c293d}button:focus-visible{outline:3px solid #ffe4a7;outline-offset:2px}[hidden]{display:none!important}.shell{max-width:450px;height:calc(100dvh - var(--nav-height,88px));margin:auto;padding:3px 5px max(5px,env(safe-area-inset-bottom))}.stage{height:100%;min-height:540px;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid #b6a079;border-radius:16px;background:radial-gradient(ellipse at 50% 34%,#344054,#111b2a 65%);overflow:auto}.hud{display:flex;justify-content:space-between;font-size:12px;color:#ffedca;font-variant-numeric:tabular-nums}.warning{display:flex;justify-content:space-between;align-items:center;gap:4px}.warning strong{font-size:22px;color:#ffe3a1}.warning span{font-size:16px;font-weight:800}.clue{font-size:13px;min-height:2.7em;line-height:1.4;color:#e7edf5}.timebar{height:5px;background:#3d4859;border-radius:8px;overflow:hidden;flex-shrink:0}.timebar i{display:block;height:100%;background:#e7c787}.stage[data-urgent=true] .timebar i{background:#ff9971}
.landscape{position:relative;isolation:isolate;flex:1;min-height:320px;overflow:hidden;border-radius:12px;border:1px solid #84968b66;background:linear-gradient(#344958 0%,#51635f 17%,#2b4f48 18%,#183b38 100%);box-shadow:inset 0 0 35px #020f18}.landscape:before{content:"";position:absolute;inset:14% -15% -20%;background:repeating-linear-gradient(158deg,transparent 0 58px,#8da28a15 60px 62px,transparent 64px 100px);transform:skewY(-8deg)}.board{position:absolute;inset:32px 5px 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:4px;touch-action:none}.tile{position:relative;min-width:0;min-height:0;padding:0;border:0;border-radius:12px;background:transparent;touch-action:none;box-shadow:none;overflow:visible}.tile:disabled{opacity:1}.terrain{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 3px #0006)}.tile[data-selected=true]:before{content:"";position:absolute;left:8%;right:8%;top:calc(49% - (var(--height,1) - 1)*10px);height:21%;border:2px solid #ffe09b;border-radius:50%;background:#fddd7a33;box-shadow:0 0 13px #ffe6a866;z-index:1;pointer-events:none}.tile[data-height="2"]{--height:2}.tile[data-height="3"]{--height:3}.tile[data-safe=true] .ground{fill:#a2b478;stroke:#d0efb2}.tile[data-hit=true] .ground{fill:#786b56}.surge,.bolt,.rubble,.dust{opacity:0}.sky{position:absolute;inset:0 0 auto;height:40px;overflow:hidden;opacity:.85;pointer-events:none}.sky i{position:absolute;top:-22px;left:-10%;width:65%;height:50px;border-radius:50%;background:#25303f;box-shadow:50px 5px 0 #263343,130px -4px 0 #273343}.sky i:nth-child(2){left:40%;top:-30px}.sky i:nth-child(3){left:80%;top:-17px}.weather{position:absolute;inset:0;pointer-events:none;z-index:4;opacity:0}.traveller{position:absolute;left:calc(10px + (var(--col) + .5)*(100% - 20px)/3);top:calc(32px + (var(--row) + .49)*(100% - 40px)/3 - var(--lift));transform:translate(-50%,-63%);z-index:5;display:flex;align-items:flex-end;pointer-events:none;filter:drop-shadow(0 3px 3px #0008)}.traveller img{width:48px;height:55px;object-fit:contain}.you{display:block;width:21px;height:30px;border-radius:9px 9px 5px 5px;background:linear-gradient(#edca93 0 33%,#dfae4f 33% 78%,#28394b 78%);box-shadow:inset -5px 0 #0002;color:transparent;border:1px solid #f9dfaa;position:relative}.you:after{content:"";position:absolute;top:2px;left:3px;width:12px;height:7px;border-radius:8px 8px 0 0;background:#423a34}.location{position:absolute;left:50%;top:100%;transform:translateX(-50%);white-space:nowrap;font-size:9px;font-weight:800;padding:2px 5px;border-radius:5px;background:#f4d48f;color:#29230f}.traveller[data-safe=true] .location{background:#b5edba}.traveller[data-hit=true]{filter:grayscale(.6) drop-shadow(0 0 6px #f47b60)}.pause-veil{display:none;position:absolute;inset:0;z-index:8;align-items:center;justify-content:center;background:#101c2ed9;font-weight:800;color:#ffe3a1}.stage[data-paused=true] .pause-veil{display:flex}
.stage[data-type=flood] .landscape{background:linear-gradient(#344657,#3e6470 17%,#1b6275 18%,#1a4561)}.stage[data-type=flood][data-phase=playing] .surge{opacity:calc(.15 + var(--water)*.45);transform:translateY(calc((1 - var(--water))*25px))}.stage[data-type=flood]:is([data-phase=roundResult],[data-phase=result]) .surge{opacity:.92}.stage[data-type=flood]:is([data-phase=roundResult],[data-phase=result]) .tile[data-height="3"] .surge{opacity:.5}.stage[data-type=lightning] .sky{filter:drop-shadow(0 4px 5px #e5c77755)}.stage[data-type=lightning][data-urgent=true] .sky{filter:drop-shadow(0 5px 7px #ffdf8c)}.stage[data-type=lightning]:is([data-phase=roundResult],[data-phase=result]) .tile[data-hit=true] .bolt{opacity:1}.stage[data-type=lightning]:is([data-phase=roundResult],[data-phase=result]) .tile[data-safe=true] .shelter{filter:drop-shadow(0 0 4px #bff9d1)}.stage[data-type=collapse] .dust{opacity:.7}.stage[data-type=collapse]:is([data-phase=roundResult],[data-phase=result]) .tile[data-hit=true] .terrain{transform:translateY(14px) rotate(7deg)}.stage[data-type=collapse]:is([data-phase=roundResult],[data-phase=result]) .tile[data-hit=true] .rubble{opacity:1}.stage[data-type=collapse]:is([data-phase=roundResult],[data-phase=result]) .tile[data-hit=true] .ground{fill:#34352c}
.notice{font-size:12px;color:#ffedca;min-height:2.7em;line-height:1.4}.buddy{display:flex;gap:8px;align-items:center;min-height:70px;flex-shrink:0}.buddy img{width:70px;height:70px;object-fit:contain}.buddy div{min-width:0;flex:1}.buddy b{font-size:13px}.buddy p{font-size:13px;line-height:1.4;background:#ffffff0b;border:1px solid #d2dbea22;border-radius:10px 10px 10px 3px;padding:7px;margin-top:4px}.actions{display:flex;gap:8px;flex-shrink:0;margin-top:auto;position:sticky;bottom:0;z-index:9;background:#111b2a;padding-top:3px;border-radius:8px}.actions button{font-size:14px;font-weight:800;padding:10px;flex:1}.actions .primary{background:linear-gradient(#e7c787,#bc944e);border-color:#f0d69a;color:#241b12;flex:2}.actions button:disabled{opacity:.5}.summary{text-align:center;color:#ffe3a1;font-weight:800;padding:5px 0;white-space:pre-line;font-size:15px;line-height:1.6}.stage[data-phase=result]{border-color:#ffe3a1}
@media(max-height:740px){.stage{gap:5px;padding:7px;min-height:510px}.buddy img{width:54px;height:54px}.buddy{min-height:54px}.buddy p{font-size:12px;padding:5px}.warning strong{font-size:19px}.landscape{min-height:270px}.notice{font-size:11px;min-height:2.6em}.clue{min-height:1.5em;font-size:12px}.traveller img{width:40px;height:46px}.summary{font-size:13px}}
@media(prefers-reduced-motion:no-preference){.traveller{transition:left .18s ease-out,top .18s ease-out}.stage[data-type=flood] .surge{animation:ripple 1.4s ease-in-out infinite alternate}.stage[data-type=flood][data-phase=playing] .weather{opacity:.35;background:repeating-linear-gradient(112deg,transparent 0 17px,#a1dcf55c 18px 19px,transparent 20px 35px);animation:rain .55s linear infinite}.stage[data-type=collapse][data-phase=playing] .dust{animation:dust 1.1s ease-out infinite}.stage[data-type=collapse][data-urgent=true][data-phase=playing] .tile[data-cracked=true] .terrain{animation:rumble .25s linear infinite}.stage[data-type=lightning][data-phase=playing] .sky i{animation:cloud 2.5s ease-in-out infinite alternate}.stage[data-type=lightning]:is([data-phase=roundResult],[data-phase=result]) .tile[data-hit=true] .bolt{animation:strike .45s ease-out both}.stage[data-paused=true] *{animation-play-state:paused!important;transition:none!important}@keyframes ripple{to{translate:0 3px}}@keyframes rain{to{background-position:-15px 35px}}@keyframes dust{0%{translate:0 6px;opacity:.1}70%{opacity:.7}100%{translate:4px -8px;opacity:.1}}@keyframes rumble{25%{translate:-1px 1px}75%{translate:1px -1px}}@keyframes cloud{to{translate:10px 2px}}@keyframes strike{0%{opacity:0;stroke-width:9px}40%{opacity:1;stroke-width:2px}100%{opacity:.8}}}
