:root{--ivory:#f6eedc;--ink:#202934;--vermilion:#cd493d;--cobalt:#3e62a8;--ember:#e28a35;--paper:#eadfc8;--muted:#786f61;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:Avenir Next,Avenir,Segoe UI,sans-serif;font-weight:500}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0;overflow:hidden}body{min-height:100svh}button{color:inherit;font:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid var(--ember);outline-offset:2px}.game-shell{width:min(100%,430px);height:100svh;min-height:640px;padding:max(9px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 25%, #ffffff5c, transparent 60%), var(--paper);flex-direction:column;gap:10px;margin:0 auto;display:flex;position:relative;overflow:hidden}.hud{flex:none}.hud-top{border-bottom:1px solid #20293426;justify-content:space-between;align-items:center;gap:8px;height:35px;padding-bottom:7px;display:flex}.brand{align-items:center;gap:6px;display:flex}.brand-mark{letter-spacing:-.8px;font:700 18px/1 Fraunces,Georgia,serif}.brand-mark span{color:var(--vermilion);font-size:13px}.brand-name{white-space:nowrap;font:700 14px/1 Fraunces,Georgia,serif}.floor-count{color:var(--muted);white-space:nowrap;font:600 12px/1 Fraunces,Georgia,serif}.new-run-link{text-underline-offset:3px;min-height:44px;color:var(--muted);background:0 0;border:0;padding:6px 0 6px 6px;font-size:11px;text-decoration:underline}.hud-stats{align-items:center;gap:14px;height:32px;display:flex}.health{color:var(--vermilion);gap:3px;display:flex}.health svg{stroke:none;width:17px;height:17px}.heart-empty{opacity:.23}.shield-count{color:var(--cobalt);align-items:center;gap:2px;font-size:11px;display:flex}.shield-count svg{stroke:none;width:14px;height:14px}.shield-empty{opacity:.26}.mines-left{color:var(--muted);align-items:center;gap:5px;margin-left:auto;font-size:11px;display:flex}.mine-dot{background:var(--ink);border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 2px #2029341f}.progress{padding-top:1px}.progress-line{letter-spacing:.02em;justify-content:space-between;font-size:10px;font-weight:700;line-height:13px;display:flex}.progress-line span:last-child{color:var(--muted);font:600 9px/13px Fraunces,Georgia,serif}.progress-track{background:#20293424;border-radius:9px;height:5px;margin-top:3px;overflow:hidden}.progress-track span{border-radius:inherit;background:var(--cobalt);height:100%;transition:width .22s;display:block}.progress--open .progress-line,.progress--open .progress-line span:last-child{color:#a94c20}.progress--open .progress-track span{background:var(--ember);box-shadow:0 0 8px #e28a358c}.play-area{flex-direction:column;flex:auto;gap:8px;min-height:0;display:flex}.board-wrap{flex:0 auto;justify-content:center;min-height:0;display:flex}.board{aspect-ratio:1;touch-action:manipulation;align-content:stretch;gap:4px;width:min(100%,100svh - 477px);display:grid}.tile{aspect-ratio:1;cursor:pointer;background:var(--ivory);border:1.5px solid #202934db;border-radius:8px;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative;overflow:hidden;box-shadow:0 2px #20293424}.tile:disabled{cursor:default;opacity:1}.tile--hidden{background-color:var(--cobalt);color:var(--ivory);border-color:#294b89;box-shadow:0 2px #172a4f59}.card-back-pattern{background:repeating-linear-gradient(45deg,#0000 0 7px,#f6eedc38 7px 8px),repeating-linear-gradient(-45deg,#0000 0 7px,#f6eedc38 7px 8px);border:1px solid #f6eedccc;border-radius:5px;position:absolute;inset:4px}.tile-flag{z-index:1;width:19px;height:19px;color:var(--ivory);fill:none;position:relative}.tile--revealed,.tile--scorched,.tile--exit,.tile--confirmedMine,.tile--spentMine{background-color:var(--ivory)}.tile--scorched{background-image:radial-gradient(at 85% 100%,#2029348c,#0000 48%),radial-gradient(at 0 0,#e28a357a,#0000 52%)}.clue-badge{z-index:2;background:var(--ink);width:16px;height:16px;color:var(--ivory);box-shadow:0 0 0 2px var(--ivory);border-radius:50%;place-items:center;font:700 10px/1 Fraunces,Georgia,serif;display:grid;position:absolute;top:3px;left:3px}.tile-card{box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;gap:0;width:100%;height:100%;padding:6px 0 0 12px;font:700 clamp(19px,5.4vw,30px)/.92 Fraunces,Georgia,serif;display:flex}.tile-card b{font:inherit}.tile-card svg,.tile-card .suit-glyph{width:clamp(15px,4vw,23px);height:clamp(15px,4vw,23px);font-size:clamp(15px,4vw,23px)}.tile--confirmedMine{outline:2px solid var(--vermilion);outline-offset:-4px}.tile-mine{width:28px;height:28px;color:var(--ink);stroke-width:1.3px}.tile-mine--spent{opacity:.34}.mine-strike{background:var(--vermilion);width:34px;height:2px;position:absolute;transform:rotate(-45deg)}.tile--exit{color:var(--ink)}.tile--exit-open{color:var(--ember);outline:2px solid var(--ember);outline-offset:-4px;box-shadow:0 0 11px #e28a3573,0 2px #20293424}.tile-door{stroke-width:1.5px;width:27px;height:27px}.tile-lock{width:13px;height:13px;position:absolute;bottom:5px;right:5px}.exit-state{letter-spacing:.08em;font:700 7px/1 Fraunces,Georgia,serif;position:absolute;bottom:3px}.tile.is-targeted{outline:3px solid var(--ember);outline-offset:-3px;z-index:2}.tile.is-targeted.tile--hidden{box-shadow:inset 0 0 0 2px #ffffff80}.tile--loss{outline-offset:-3px;z-index:3;outline:3px solid var(--vermilion)!important}.truth-mine{width:15px;height:15px;color:var(--vermilion);opacity:.83;position:absolute;bottom:2px;right:2px}.tile--truth-mine{box-shadow:inset 0 0 0 2px #cd493db3}.tile--flip{animation:.16s ease-out both flip-in}.tile--burn-flash{animation:.36s ease-out both burn-flash}.shield-pop{z-index:4;width:30px;height:30px;color:var(--cobalt);fill:#f6eedce6;animation:.42s ease-out both shield-pop;position:absolute}.board--shake{animation:.2s ease-out board-shake}.mode-toggle{background:#2029341a;border-radius:10px;flex:0 0 44px;grid-template-columns:1fr 1fr;width:100%;height:44px;padding:3px;display:grid}.mode-toggle button{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:8px;font-size:12px}.mode-toggle button.mode-active{color:var(--ivory);background:var(--ink);font-weight:700;box-shadow:0 2px 4px #20293433}.hand-heading{flex:none;justify-content:space-between;align-items:center;font:700 12px/16px Fraunces,Georgia,serif;display:flex}.hand-heading small{color:var(--muted);font:600 10px/16px Avenir Next,Avenir,sans-serif}.hand{flex:none;grid-template-columns:repeat(5,1fr);gap:7px;min-height:0;display:grid}.hand-slot{background:#f6eedc4d;border:1.5px dashed #20293452;border-radius:10px;place-items:center;width:100%;height:clamp(72px,10.8svh,92px);padding:4px;transition:transform .16s,opacity .16s;display:grid;position:relative}.hand-slot--filled{border-style:solid;border-color:var(--ink);background:0 0;padding:0;box-shadow:0 2px 4px #2029341f}.hand-slot--selected{outline:2px solid var(--ember);outline-offset:1px;z-index:2;transform:translateY(-10px)}.hand--disabled{opacity:.42;pointer-events:none}.empty-slot-mark{color:#20293452;font:400 20px/1 sans-serif}.card-face{border:1.5px solid var(--ink);width:100%;height:100%;color:var(--ink);background:var(--ivory);border-radius:9px;display:block;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #fff6}.card-red{color:var(--vermilion)}.card-black{color:var(--ink)}.card-corner{z-index:1;flex-direction:column;align-items:center;font:700 12px/.9 Fraunces,Georgia,serif;display:flex;position:absolute}.card-corner svg,.card-corner .suit-glyph{width:10px;height:10px;font-size:10px}.card-corner--top{top:4px;left:4px}.card-corner--bottom{bottom:4px;right:4px;transform:rotate(180deg)}.card-pip{width:28px;height:28px;margin:auto;position:absolute;inset:0}.suit-glyph{place-items:center;font-family:Georgia,serif;line-height:1;display:inline-grid}.card-face--compact{border-width:1px;border-radius:6px;width:76%;max-width:44px;height:76%;max-height:56px;box-shadow:0 2px 4px #20293426}.card-face--compact .card-corner{font-size:8px}.card-face--compact .card-corner--top{top:2px;left:3px}.card-face--compact .card-corner--bottom{bottom:2px;right:3px}.card-face--compact .card-corner svg,.card-face--compact .card-corner .suit-glyph{width:7px;height:7px;font-size:7px}.card-face--compact .card-pip{width:19px;height:19px}.ability-area{flex-direction:column;flex:none;justify-content:flex-start;align-items:stretch;gap:5px;min-height:38px;display:flex}.ability-list{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.ability-button{text-align:left;background:#f6eedccc;border:1px solid #20293433;border-radius:9px;flex:46%;align-items:center;gap:8px;max-width:195px;min-height:44px;padding:5px 8px;display:flex}.ability-button:disabled{opacity:.55}.ability-icon{width:21px;height:21px;color:var(--cobalt);flex:none}.ability-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.ability-copy b{font:700 11px/1 Fraunces,Georgia,serif}.ability-copy small{color:var(--muted);white-space:nowrap;font-size:8px;line-height:1.1}.ability-empty,.combination-hint{text-align:center;color:var(--muted);margin:0;font-size:10px}.combination-hint{letter-spacing:-.01em;font-size:9px}.return-button,.cancel-button{background:0 0;border:1px solid #2029343d;border-radius:8px;min-height:44px;padding:0 12px;font-size:11px;font-weight:700}.return-button{min-height:34px;color:var(--cobalt);border-color:#3e62a861;align-self:center}.target-panel{background:#f6eedcdb;border:1px solid #20293429;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;min-height:62px;padding:7px 9px;display:flex}.target-instructions{flex-direction:column;gap:3px;display:flex}.target-instructions b{font:700 13px/1 Fraunces,Georgia,serif}.target-instructions span{color:var(--muted);font-size:9px}.target-actions{align-items:center;gap:6px;display:flex}.target-actions .primary-button,.target-actions .cancel-button{min-height:44px}.primary-button{min-height:44px;color:var(--ivory);background:var(--ink);border:0;border-radius:9px;padding:0 16px;font-size:12px;font-weight:700;box-shadow:0 3px #20293433}.primary-button:disabled{opacity:.4;box-shadow:none}.toast{z-index:6;background:var(--ink);max-width:calc(100% - 30px);color:var(--ivory);text-align:center;border-radius:9px;padding:9px 13px;font-size:11px;position:absolute;bottom:128px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #20293440}.game-shell--shake{animation:.2s ease-out board-shake}.overlay{z-index:10;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#2029347a;place-items:center;padding:22px;display:grid;position:absolute;inset:0}.lost-sheet{z-index:10;padding:12px 16px max(12px, env(safe-area-inset-bottom));background:#eadfc8fa;border-top:1px solid #2029343d;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #2029342e}.lost-sheet .modal{max-width:430px;box-shadow:none;background:0 0;border:0;border-radius:12px;margin:0 auto;padding:8px 12px 10px}.lost-sheet .modal h1{margin:4px 0;font-size:23px}.lost-sheet .modal p{margin-bottom:8px;font-size:11px}.modal{border:1.5px solid var(--ink);text-align:center;background:var(--ivory);border-radius:18px;width:100%;max-width:340px;padding:25px 21px 22px;box-shadow:0 10px 35px #20293447}.modal-eyebrow{color:var(--vermilion);letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:800}.modal h1{margin:8px 0;font:700 30px/1.1 Fraunces,Georgia,serif}.modal p{color:var(--muted);margin:0 auto 17px;font-size:13px;line-height:1.45}.reward-options{flex-direction:column;gap:8px;display:flex}.reward-choice{background:var(--paper);text-align:left;border:1px solid #20293440;border-radius:10px;flex-direction:column;gap:3px;min-height:54px;padding:8px 12px;display:flex}.reward-choice b{font:700 14px/1 Fraunces,Georgia,serif}.reward-choice span{color:var(--muted);font-size:10px}.held-copy{font-size:11px!important}.win-hearts{font:700 18px Fraunces,Georgia,serif;color:var(--vermilion)!important}.modal .primary-button{width:100%}@keyframes flip-in{0%{opacity:.3;transform:scaleX(.05)}to{opacity:1;transform:scaleX(1)}}@keyframes burn-flash{0%{box-shadow:inset 0 0 0 0 var(--ember)}35%{box-shadow:inset 0 0 18px 6px var(--ember)}to{box-shadow:inset 0 0 #0000}}@keyframes board-shake{20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}@keyframes shield-pop{0%{opacity:0;transform:scale(.25)}45%{opacity:1;transform:scale(1.35)}to{opacity:0;transform:scale(1)}}@media (height<=760px){.game-shell{padding-top:max(6px, env(safe-area-inset-top));gap:6px}.board{width:min(100%,100svh - 425px)}.play-area{gap:6px}.hand-slot{height:clamp(66px,9.5svh,78px)}.ability-button{min-height:40px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.hand-slot--selected{transform:none}}
