:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f6f1e7;--card:#fffdf8;--ink:#1d1b18;--muted:#6b645a;--line:#b9b0a2;--wall:#1d1b18;--accent:#2f5d8a;--red:#b3261e;--highlight:#ffe36e;--radius:10px;color:var(--ink);background:var(--paper);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:16px;line-height:1.4}*{box-sizing:border-box}html,body{background:var(--paper);margin:0;overflow-x:hidden}body{padding:env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left))}button{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;min-height:44px;padding:.5rem .9rem}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.screen{max-width:900px;margin:0 auto;padding-bottom:1.5rem}.bar{align-items:center;gap:.75rem;padding:.6rem 0;display:flex}.bar h1{white-space:nowrap;text-overflow:ellipsis;flex:1;margin:0;font-size:1.2rem;overflow:hidden}h2{margin:1.2rem 0 .5rem;font-size:1rem}.hint{color:var(--muted);margin:.4rem 0;font-size:.9rem}.msg{min-height:1.4em;margin:.5rem 0;font-weight:500}.msg.error{color:var(--red)}.library-list{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.library-list li{gap:.5rem;display:flex}.library-list li.empty{color:var(--muted);padding:1rem 0}.library-list .open{text-align:left;flex-direction:column;flex:1;min-width:0;display:flex}.library-list .name{font-weight:600}.library-list .meta{color:var(--muted);font-size:.85rem}.library-list .delete{color:var(--red)}.bar .gear{min-width:44px;padding:.5rem;font-size:1.2rem;line-height:1}.key-status{font-weight:500}.key-form input{width:100%;font:inherit;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);min-height:44px;color:var(--ink);padding:.6rem .7rem;font-size:16px}.key-form .key-actions{justify-content:flex-start;margin-top:.6rem}.controls{flex-wrap:wrap;gap:1rem;margin:.5rem 0 1rem;display:flex}.stepper{align-items:center;gap:.4rem;display:flex}.stepper .label{min-width:4.5rem}.stepper button{width:44px;padding:0}.stepper output{text-align:center;min-width:2ch;font-weight:600}.actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.board-wrap{justify-content:center;display:flex}.board{width:min(100%, calc((100dvh - 17rem) * var(--cols) / var(--rows)), 760px);min-width:min(100%,18rem);aspect-ratio:var(--cols) / var(--rows);touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background-size:100% 100%;position:relative;container-type:inline-size}.cells{grid-template-columns:repeat(var(--cols), 1fr);grid-template-rows:repeat(var(--rows), 1fr);display:grid;position:absolute;inset:0}.cell{all:unset;min-width:0;min-height:0;font-size:calc(100cqw / var(--cols) * .55);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;font-weight:700;line-height:1;display:flex;position:relative}.cell.present{background-color:var(--card)}.board.has-photo .cell.present{background-color:#0000}.cell.missing{cursor:default;background:0 0}.board.editing .cell.missing{cursor:pointer;background:repeating-linear-gradient(45deg,#0000 0 6px,#00000014 6px 8px)}.cell:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.cell.person{color:var(--ink)}.cell.person.victim{color:var(--red)}.board.has-photo .cell.person{background-color:#fffdf8d9}.cell.picking{box-shadow:inset 0 0 0 3px var(--accent)}.cell.manual-x{color:var(--red);font-weight:400}.cell.auto-mark:after{content:"";aspect-ratio:1;background:#3c373259;border-radius:50%;width:22%}.cell.highlight{background-color:var(--highlight)!important}.board.has-photo .cell.highlight{background-color:#ffe36e8c!important}.cell.murderer{box-shadow:inset 0 0 0 3px var(--red)}.cell.blocked:before{content:"";pointer-events:none;background:repeating-linear-gradient(-45deg,#3c373266 0 2px,#0000 2px 8px);position:absolute;inset:0}.board.has-photo .cell.blocked:before{background:repeating-linear-gradient(-45deg,#1d1b1899 0 2px,#fffdf840 2px 8px)}.cell.disputed{outline-offset:-4px;outline:3px dashed #e07b00}.board:not(.has-photo) .cell.obj{background-position:50%;background-repeat:no-repeat;background-size:70% 70%}.cell.obj-B{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9083' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='2'/><rect x='7' y='5' width='10' height='4' rx='1'/></svg>")}.cell.obj-C{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9083' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3v18M7 13h10v8'/></svg>")}.cell.obj-R{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9083' stroke-width='1.5' stroke-dasharray='2 2'><rect x='3' y='5' width='18' height='14' rx='1'/></svg>")}.cell.obj-P{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23597a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 15h8l-1 6H9z'/><path d='M12 15V9'/><path d='M12 10C9 10 7 8 7 5c3 0 5 2 5 5z'/><path d='M12 9c0-3 2-5 5-5 0 3-2 5-5 5z'/></svg>")}.cell.obj-D{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6a58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9h18M5 9v11M19 9v11M3 9v2h18V9'/></svg>")}.cell.obj-S{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6a58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18'/><path d='M5 9h14M5 15h14'/></svg>")}.cell.obj-T{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6a58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='12' rx='1'/><path d='M9 21h6M12 17v4'/></svg>")}.cell.obj-X{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6a58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='5' width='14' height='14'/><path d='M5 5l14 14M19 5L5 19'/></svg>")}.room-names{pointer-events:none;position:absolute;inset:0}.room-name{max-width:calc(100cqw / var(--cols) * 3);text-overflow:ellipsis;white-space:nowrap;font-size:max(9px, calc(100cqw / var(--cols) * .17));color:var(--muted);background:#fffdf8d9;border-radius:3px;margin:2px 0 0 2px;padding:0 3px;font-weight:600;line-height:1.3;position:absolute;overflow:hidden}.board-lines{pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.board-lines line{vector-effect:non-scaling-stroke;stroke-linecap:square}.board-lines .grid{stroke:var(--line);stroke-width:1px}.board-lines .wall{stroke:var(--wall);stroke-width:4px}.edge-layer{pointer-events:none;position:absolute;inset:0}.edge{all:unset;pointer-events:auto;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:absolute}.edge:active,.edge:focus-visible{background:#2f5d8a59;border-radius:4px}.mode-switch{align-items:center;gap:.35rem;margin:0 0 .5rem;display:flex}.mode-switch .hint{margin:0 .2rem 0 0}.mode-switch .seg[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.disputed-hint{color:#a85a00}.play-hint{text-align:center;margin:.4rem 0 0}.palette{flex-wrap:wrap;justify-content:center;gap:.35rem;margin:.25rem 0 .75rem;display:flex}.chip{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:0 .5rem;font-size:1rem;font-weight:700;display:inline-flex}.chip.victim{color:var(--red)}.chip.placed{color:var(--muted);background:#ebe5d8;border-style:dashed}.chip.victim.placed{color:#c98a85}.chip.selected,.chip.selected.placed,.chip.victim.selected{background:var(--accent);border:1px solid var(--accent);color:#fff;box-shadow:0 0 0 3px #2f5d8a4d}.picker-backdrop{z-index:50;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;position:fixed;inset:0}.cell-picker{z-index:51;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);-webkit-touch-callout:none;flex-wrap:wrap;justify-content:center;gap:.35rem;width:max-content;max-width:min(17rem,100vw - 16px);padding:.45rem;display:flex;position:absolute;box-shadow:0 6px 20px #0000002e}.pick{min-width:44px;padding:.4rem .6rem;font-size:1.1rem;font-weight:700}.pick.victim{color:var(--red)}.pick.placed{color:var(--muted);background:#ebe5d8;border-style:dashed}.pick.victim.placed{color:#c98a85}.pick.here{border:2px solid var(--accent)}.pick.remove{flex:1 0 100%;font-size:1rem;font-weight:500}.toolbar{flex-wrap:wrap;justify-content:center;gap:.4rem;display:flex}.letter-picker{flex-wrap:wrap;gap:.4rem;margin:.5rem 0;display:flex}.letter{min-width:48px;font-size:1.15rem;font-weight:700}.letter.current{background:var(--accent);border-color:var(--accent);color:#fff}.cast .toolbar{margin:.6rem 0 .2rem}.board.has-photo .board-lines .wall{stroke:#d62626d9;stroke-width:3px}.board.has-photo .board-lines .grid{stroke:#2f5d8a59}label.button{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;min-height:44px;padding:.5rem .9rem;display:inline-flex}label.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}label.button:focus-within{outline:3px solid var(--accent);outline-offset:2px}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.photo-import{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.library-photo{margin:.1rem 0 .9rem}label.button.camera-button{display:none}@media (any-pointer:coarse){label.button.camera-button{display:inline-flex}.library-photo .paste-hint{display:none}}.screen.drop-target{outline:3px dashed var(--accent);outline-offset:6px}.spinner{border:4px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:40px;height:40px;margin:2rem auto .5rem;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.import .msg,.import .skip-row{text-align:center}.corner-stage{width:min(100%, calc((100dvh - 16rem) * var(--w) / var(--h)));min-width:min(100%,16rem);aspect-ratio:var(--w) / var(--h);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;margin:0 auto;position:relative}.corner-stage img{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.corner-overlay{touch-action:none;width:100%;height:100%;position:absolute;inset:0}.corner-overlay line,.corner-overlay polyline{fill:none;vector-effect:non-scaling-stroke}.corner-overlay .grid{stroke:#2f5d8acc;stroke-width:1px}.corner-overlay .outline{stroke:#2f5d8a;stroke-width:2px}.corner-overlay .wall{stroke:#d62626e6;stroke-width:4px;stroke-linecap:round}.corner-overlay .missing{stroke:#2f5d8ae6;stroke-width:2px}.corner-overlay .handle{fill:#fffdf859;stroke:#2f5d8a;stroke-width:3px;vector-effect:non-scaling-stroke;cursor:grab}
