#Floors2{display:flex;align-items:flex-start;justify-content:center;gap:8px;width:100%;padding:4px;box-sizing:border-box;color:#e0ddd5;--ff-side:190px;--ff-board:786px}
#Floors2 *{box-sizing:border-box}#Floors2 .ff-main{width:var(--ff-board);max-width:100%;min-width:0}#Floors2 .ff-board{position:relative;width:100%;aspect-ratio:786/552}#Floors2 .ff-map{display:block;width:100%;height:100%;max-width:none}#Floors2 .ff-cells,#Floors2 .ff-pools,#Floors2 .ff-route{position:absolute;inset:0;width:100%;height:100%}#Floors2 .ff-pools img{position:absolute}#Floors2 .ff-route{pointer-events:none}#Floors2 .ff-route polyline{fill:none;stroke:#fff;stroke-width:3;stroke-dasharray:7 6;filter:drop-shadow(0 0 2px #153215)}
#Floors2 button{cursor:default;border:0;background:transparent;padding:0;color:inherit;touch-action:manipulation}#Floors2 button:disabled{opacity:1}#Floors2 button.ff-active,#Floors2 button.ff-info{cursor:pointer}#Floors2 button:focus-visible{outline:3px solid #e0a66e;outline-offset:1px}#Floors2 .ff-cell{position:absolute;width:5.853%;height:8.334%;display:grid;place-items:center;border-radius:12%}#Floors2 .ff-cell img{width:100%;height:100%;object-fit:contain}#Floors2 .ff-cell.ff-active{box-shadow:inset 0 0 0 2px #d69b69;background:#bd784344}#Floors2 .ff-cell.ff-active:hover{background:#d3a07566}#Floors2 .ff-selected{outline:3px solid #f0b985;outline-offset:-2px}#Floors2 .ff-used{filter:saturate(.5)}
#Floors2 .ff-sidebar{width:var(--ff-side);flex-shrink:0;min-width:0}#Floors2 .ff-title{height:58px;display:flex;justify-content:center}#Floors2 .ff-title img{max-width:100%;height:100%;object-fit:contain}#Floors2 .ff-players{display:grid;gap:6px}#Floors2 .ff-player{padding:5px;border-left:5px solid var(--ff-color);border-radius:5px;background:linear-gradient(145deg,#303238,#1c1e23);overflow:hidden}#Floors2 .ff-player header{display:flex;gap:4px;font-size:clamp(12px,1.2vw,17px);font-weight:600;align-items:center}#Floors2 .ff-login{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#Floors2 .ff-star{font-size:.7em}#Floors2 .ff-figures{display:flex;gap:4px;align-items:center;margin-top:4px}#Floors2 .ff-figure{position:relative;min-width:0;flex:1;max-width:46px;height:48px;border-radius:5px}#Floors2 .ff-figure img{width:100%;height:36px;object-fit:contain}#Floors2 .ff-figure span{display:block;font-size:10px;line-height:12px;font-weight:700}#Floors2 .ff-figure.ff-active{background:#6b4936}
#Floors2 .ff-bottom{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:76px;margin-top:10px;padding:10px 6px;border-top:1px solid #625043}#Floors2 .ff-decks{display:flex;gap:7px}#Floors2 .ff-deck{position:relative;width:43px;height:45px}#Floors2 .ff-deck img{height:100%;width:100%;object-fit:contain}#Floors2 .ff-deck b{position:absolute;bottom:0;right:0;background:#121419;border-radius:4px;min-width:18px;font-size:13px}#Floors2 .ff-round{font-size:12px;font-weight:600;flex:1;min-width:60px}#Floors2 .ff-help{margin-left:auto}#Floors2 .ff-help button{border:1px solid #766050;padding:2px 10px}#Floors2 .ff-controls{display:flex;gap:5px;min-height:29px;align-items:center;flex-wrap:wrap}#Floors2 .ff-controls button{padding:3px 8px;border:1px solid #8e6d51;background:#343035;font-size:12px}#Floors2 [hidden]{display:none!important}#Floors2 .ff-setup{display:flex;gap:5px;flex-wrap:wrap}#Floors2 .ff-tile{position:relative;width:43px;height:36px}#Floors2 .ff-tile img{width:100%;height:100%;object-fit:contain}#Floors2 .ff-tile b{position:absolute;bottom:0;right:0;background:#121419;font-size:11px}#Floors2 .ff-tile.ff-active{background:#6b4936}
#Floors2.ff-narrow{flex-direction:column;align-items:center}#Floors2.ff-narrow .ff-sidebar{order:1;width:100%}#Floors2.ff-narrow .ff-main{width:100%}#Floors2.ff-narrow .ff-title{display:none}#Floors2.ff-narrow .ff-players{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#Floors2.ff-narrow .ff-player{padding:3px 5px}#Floors2.ff-narrow .ff-player header{font-size:12px}#Floors2.ff-narrow .ff-figures{margin-top:1px}#Floors2.ff-narrow .ff-figure{height:33px;max-width:42px}#Floors2.ff-narrow .ff-figure img{height:24px}#Floors2.ff-narrow .ff-figure span{font-size:9px;line-height:9px}
@media(max-width:600px){#Floors2 .ff-main{width:100%}#Floors2 .ff-controls{gap:4px}#Floors2 .ff-bottom{gap:6px}#Floors2 .ff-round{font-size:11px}}
body.floors2-game #log .ff-log{display:inline;line-height:1.5;white-space:normal}body.floors2-game #log .ff-log img{display:inline-block;width:auto;height:28px;max-width:55px;object-fit:contain;vertical-align:middle;margin:1px 3px}body.floors2-game #log .move.color0{background:#c6dfbb;color:#27451e}body.floors2-game #log .move.color1{background:#c3d8ef;color:#203a57}body.floors2-game #log .move.color2{background:#f0c4ba;color:#542721}body.floors2-game #log .move.color3{background:#f4e6a5;color:#4e4316}body.floors2-game #log .move.color4{background:#ddd0b6;color:#493d27}.floors-popover{max-width:min(360px,90vw)}.floors-popover .ff-card-list{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.floors-popover .ff-card-list img{width:48px;height:48px;object-fit:contain}

/* Game-owned dungeon atmosphere; framework navigation keeps its own controls. */
body.floors2-game #content,body.floors2-game #game{background:#14161b}
body.floors2-game #game{background:radial-gradient(ellipse at 85% 12%,#71452b26,transparent 48%),radial-gradient(ellipse at 15% 90%,#48505b26,transparent 60%),linear-gradient(125deg,#202329,#101216);color:#e0ddd5}
#Floors2{padding:10px;gap:14px}
#Floors2 .ff-board{box-shadow:0 8px 24px #0009,0 0 0 1px #685d4b;border-radius:3px;overflow:hidden}
#Floors2 .ff-player{border-top:1px solid #4b4c50;border-bottom:1px solid #111318;box-shadow:0 3px 8px #0004}

#Floors2 .ff-figure span{color:#d5c6b5}
#Floors2 .ff-deck b,#Floors2 .ff-tile b{color:#eee2d0;border:1px solid #766050}
#Floors2 .ff-controls button,#Floors2 .ff-help button{border-radius:4px;color:#ead9c6;background:linear-gradient(#443b35,#29252a)}
#Floors2 .ff-controls button.ff-active:hover,#Floors2 .ff-help button:hover{background:#614735;border-color:#c39165}
body.floors2-game .floors-popover{--bs-popover-bg:#24262c;--bs-popover-header-bg:#323036;--bs-popover-header-color:#f0e1cf;--bs-popover-body-color:#e0ddd5;--bs-popover-border-color:#78604c}
#Floors2.ff-narrow .ff-bottom{min-height:66px;margin-top:6px;padding:5px 6px}
@media(max-width:600px){#Floors2{padding:5px;gap:8px}}

body.floors2-game{--content-min:320px}

/* Persistent local previews move above hit targets; tracks stay on the floor. */
#Floors2 .ff-preview{position:absolute;inset:0;pointer-events:none;z-index:3}
#Floors2 .ff-route{z-index:1}
#Floors2 .ff-cells{z-index:2}
#Floors2 .ff-preview-piece{position:absolute;width:5.853%;height:8.334%;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
#Floors2 .ff-preview-hidden{visibility:hidden}
#Floors2 .ff-footprint{opacity:.92;filter:drop-shadow(0 0 1px #111)}
#Floors2 .ff-scrape{stroke:#37271c;stroke-width:2;stroke-linecap:round;opacity:.65;filter:drop-shadow(1px 1px 0 #d5c7a677)}

/* Captured figures occupy the unused dungeon room, outside playable cells. */
#Floors2 .ff-prison{position:absolute;left:3.18%;top:81.52%;width:13.74%;height:15.4%;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(var(--ff-prison-rows,1),minmax(0,1fr));pointer-events:none}
#Floors2 .ff-prisoner{width:100%;height:100%;object-fit:contain;object-position:center bottom;min-width:0;min-height:0}
#Floors2 .ff-figure{height:38px}
#Floors2.ff-narrow .ff-figure{height:26px}
#Floors2 .ff-monster-left{fill:#382a20;stroke:#d3b78b;stroke-width:.6;opacity:.9}
#Floors2 .ff-route .ff-monster-drag{fill:none;stroke:#493322;stroke-width:3;stroke-linecap:round;opacity:.8;filter:drop-shadow(1px 1px 0 #d3b78b)}

#Floors2 .ff-active-side{display:flex;align-items:center;gap:5px;margin-top:4px;line-height:1.25;color:#f2e3cc}#Floors2 .ff-active-side img{width:28px;height:28px;flex-shrink:0;object-fit:contain}
#Floors2 .ff-round{flex-basis:100%;order:3}

#Floors2 .ff-cell.ff-planned{box-shadow:inset 0 0 0 3px #66c9df;background:#24465455}#Floors2 .ff-route-step{position:absolute;z-index:4;min-width:15px;padding:0 2px;border-radius:3px;background:#12333e;color:#dbf8ff;font-size:clamp(10px,calc(var(--ff-board)*.018),16px);font-weight:700;line-height:1.15;pointer-events:none}.floors-popover .ff-move-choice{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.floors-popover .ff-move-choice button{color:#ead9c6;border-color:#8e6d51}

.floors-popover .ff-move-choice button{display:flex;align-items:center;gap:7px}.floors-popover .ff-move-choice img{width:34px;height:34px;object-fit:contain}.floors-popover .ff-move-choice button>span:last-child{margin-left:auto}

.ff-monster{display:block;position:relative;width:100%;height:100%}.ff-monster img{width:100%;height:100%;object-fit:contain}.ff-monster svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.ff-monster polygon{fill:#f20d0d;stroke:#17110e;stroke-width:2;stroke-linejoin:round}

/* The same crossed-out portrait identifies casualties in the log and last monster move. */
.ff-eaten-pawn{display:inline-block;position:relative;width:28px;height:28px;vertical-align:middle;pointer-events:none}
.ff-eaten-pawn>img,.ff-eaten-pawn>.ff-eaten-cross{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
body.floors2-game #log .ff-log .ff-eaten-pawn{margin:1px 3px}
body.floors2-game #log .ff-log .ff-eaten-pawn>img{width:100%;height:100%;margin:0}
#Floors2 .ff-cell .ff-eaten-ghost{position:absolute;inset:0;width:100%;height:100%;opacity:.3}

body.floors2-game #log .ff-log-monster>img{height:56px;max-width:110px}
body.floors2-game #log .ff-log .ff-eaten-pawn{width:56px;height:56px}
body.floors2-game #log .ff-log-round{display:block;font-weight:700;padding:6px 0}

body.floors2-game #log .ff-log-detail{display:block;margin:3px 0}body.floors2-game #log .ff-log-detail>.ff-monster{display:inline-block;width:28px;height:28px;vertical-align:middle}

/* A move is the action; only its consequences follow the framework arrow. */
body.floors2-game #log .ff-log-consequences .ff-log-detail{display:inline}
body.floors2-game #log .ff-log-consequences .ff-log-detail+.ff-log-detail::before{content:'; '}

.floors-popover .ff-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.floors-popover .ff-popover-close{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;margin:-5px -6px -5px 0;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer}
.floors-popover .ff-popover-close:hover{background:#8883}.floors-popover .ff-popover-close:focus-visible{outline:2px solid currentColor;outline-offset:1px}

#Floors2 .ff-help{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
#Floors2 .ff-capture-test{font-size:11px;padding:3px 6px}
.ff-capture-layer{position:absolute;inset:0;pointer-events:none;z-index:6;overflow:visible}
.ff-capture-piece{position:absolute;pointer-events:none;will-change:transform,opacity}
.ff-capture-piece>img,.ff-capture-piece>svg{width:100%;height:100%;object-fit:contain;display:block}
.ff-capture-cross>svg{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 1px 2px #17100a)}
.ff-capture-hidden{visibility:hidden!important}

.ff-capture-live{position:fixed;z-index:1200}

/* Color-independent, static corner brackets for available and selected figures. */
#Floors2 .ff-cell.ff-active[data-pawn]:not(.ff-planned),#Floors2 .ff-cell.ff-selected{--ff-corner:calc(var(--ff-board)*.014);--ff-line:max(1px,calc(var(--ff-board)*.00382));--ff-frame-outside:calc(var(--ff-board)*-.00509);--ff-frame-inset:calc(var(--ff-board)*.00127);--ff-accent:calc(var(--ff-board)*.00636);box-shadow:none;background:transparent;outline:none}
#Floors2 .ff-cell.ff-selected{--ff-corner:calc(var(--ff-board)*.01908);--ff-line:max(1px,calc(var(--ff-board)*.00509))}
#Floors2 .ff-cell.ff-active[data-pawn]:not(.ff-planned)::before,#Floors2 .ff-cell.ff-selected::before{content:'';position:absolute;inset:var(--ff-frame-outside);z-index:5;pointer-events:none;filter:drop-shadow(0 1px 1px #000) drop-shadow(0 0 2px #000);background:linear-gradient(#fff,#fff) left top/var(--ff-corner) var(--ff-line) no-repeat,linear-gradient(#fff,#fff) left top/var(--ff-line) var(--ff-corner) no-repeat,linear-gradient(#fff,#fff) right top/var(--ff-corner) var(--ff-line) no-repeat,linear-gradient(#fff,#fff) right top/var(--ff-line) var(--ff-corner) no-repeat,linear-gradient(#fff,#fff) left bottom/var(--ff-corner) var(--ff-line) no-repeat,linear-gradient(#fff,#fff) left bottom/var(--ff-line) var(--ff-corner) no-repeat,linear-gradient(#fff,#fff) right bottom/var(--ff-corner) var(--ff-line) no-repeat,linear-gradient(#fff,#fff) right bottom/var(--ff-line) var(--ff-corner) no-repeat}
#Floors2 .ff-cell.ff-active[data-pawn]:not(.ff-planned)::after,#Floors2 .ff-cell.ff-selected::after{content:'';position:absolute;inset:var(--ff-frame-inset);z-index:5;pointer-events:none;filter:drop-shadow(0 0 1px #142e34);background:linear-gradient(#51ecdf,#51ecdf) left top/var(--ff-accent) var(--ff-accent) no-repeat,linear-gradient(#51ecdf,#51ecdf) right top/var(--ff-accent) var(--ff-accent) no-repeat,linear-gradient(#51ecdf,#51ecdf) left bottom/var(--ff-accent) var(--ff-accent) no-repeat,linear-gradient(#51ecdf,#51ecdf) right bottom/var(--ff-accent) var(--ff-accent) no-repeat}



/* Planned history is quiet; remaining legal steps stay bright on stone and blood. */
#Floors2 .ff-cell.ff-next{box-shadow:inset 0 0 0 3px #67f5e7,0 0 0 1px #102f37;background:#184a5a88}
#Floors2 .ff-cell.ff-next:hover{background:#2e8b9a99;box-shadow:inset 0 0 0 3px #e6fff9,0 0 0 2px #28cdbc}
#Floors2 .ff-cell.ff-planned:not(.ff-selected):not(.ff-next){box-shadow:inset 0 0 0 1px #83bdc577;background:#25424d22}
#Floors2 .ff-route-step{border:1px solid #bce8e8;box-shadow:0 1px 2px #000a}
#Floors2 .ff-blood-groove{fill:none;stroke:#731a1b;stroke-width:2.7;stroke-linecap:round;filter:drop-shadow(1px 1px 0 #f4d1a9)}
#Floors2 .ff-blood-splash{fill:#a62d27;stroke:#ecc29e;stroke-width:.5}

#Floors2 .ff-monster-tease{position:absolute;z-index:3;width:5.853%;height:8.334%;background:transparent;cursor:default;touch-action:manipulation}
#Floors2 .ff-monster-tease:focus-visible{outline:2px solid #f0e5cc;outline-offset:2px}
#Floors2 .ff-monster-angry>img{filter:sepia(.45) saturate(2.4) hue-rotate(-30deg)}
#Floors2 .ff-monster .ff-monster-anger{overflow:visible;pointer-events:none}

/* Daylight marks the physical exit; the gold arrow is the existing escape action. */
#Floors2 .ff-exit-light{position:absolute;left:1.3%;top:.5%;width:17%;height:24%;z-index:1;pointer-events:none;clip-path:polygon(12% 4%,30% 0,100% 80%,78% 100%,0 28%);background:linear-gradient(135deg,#fffdebd9,#ffe8a960,transparent);opacity:.4}
#Floors2 .ff-escape-ready .ff-exit-light{opacity:1}
#Floors2 .ff-exit{position:absolute;left:2.3%;top:1.2%;width:4.6%;height:6.5%;min-width:24px;min-height:24px;z-index:5;border:1px solid #fff7d3;border-radius:30%;background:linear-gradient(90deg,#fff8d6,#e8bd6377);box-shadow:0 0 7px #fff2b8,0 1px 3px #30240f}
#Floors2 .ff-exit svg{display:block;width:100%;height:100%}
#Floors2 .ff-exit.ff-active:hover,#Floors2 .ff-exit:focus-visible{background:#fff9de;outline:2px solid #fff;outline-offset:2px}
#Floors2 .ff-rescue-slot>img{width:100%;height:100%;object-fit:contain;display:block}
.ff-freedom-prints{position:absolute;pointer-events:none}.ff-freedom-prints svg{width:100%;height:100%;display:block}

#Floors2 .ff-exit-portal{position:absolute;left:2.3%;top:1.2%;width:4.6%;height:6.5%;pointer-events:none}
#Floors2 .ff-rescued-area{position:absolute;inset:0;pointer-events:none;z-index:4}
#Floors2 .ff-rescue-row{position:absolute;display:flex;gap:3px;pointer-events:auto}
#Floors2 .ff-rescue-slot{display:block;flex:1;min-width:0;height:100%;border:1px solid var(--ff-rescue-color);border-radius:50%;background:#27352720;box-shadow:0 1px 1px #12200c66}
#Floors2 .ff-rescue-slot.ff-rescued{background:transparent;border-color:transparent;box-shadow:none}

body.floors2-game #log .ff-log-move>img.ff-log-token{width:42px;height:42px;max-width:42px;margin:1px 3px;vertical-align:middle}

body.floors2-game #log .ff-log .ff-log-connector{display:inline-block;width:16px;height:20px;vertical-align:middle;margin:0 3px;color:inherit;flex-shrink:0}
body.floors2-game #log .ff-log .ff-log-flip{width:19px;margin:0 4px}
body.floors2-game #log .ff-log-coordinate{white-space:nowrap;vertical-align:middle}
body.floors2-game #log .ff-log-blood{display:inline-block;vertical-align:middle;border-radius:47% 35% 43% 28%/36% 55% 31% 50%;padding:3px 6px;margin:1px 3px;background:#b52d32;color:#fff4df;box-shadow:inset 0 1px 1px #f1a57b,inset 0 -1px 2px #691b24}
body.floors2-game #log .ff-log-shove{display:inline-flex;align-items:center;gap:1px;vertical-align:middle;padding:1px 4px;margin:1px 3px;border:1px solid #85724999;border-radius:5px;background:#e6d7a7aa;color:#243625;font-size:.9em}
body.floors2-game #log .ff-log-shove.ff-log-blood{background:#b52d32;color:#fff4df;border-color:#711c26}
body.floors2-game #log .ff-log-shove>img{width:24px;height:24px;max-width:24px;margin:0 2px}
body.floors2-game #log .ff-log-removed{font-weight:bold;font-size:18px;color:#9d2026}

#Floors2 .ff-deck{width:64.5px;height:67.5px}
#Floors2 .ff-round-progress{display:grid;gap:5px;width:100%;max-width:180px;margin:2px 0 6px}
#Floors2 .ff-stage-row{display:grid;grid-template-columns:15px repeat(7,minmax(0,1fr));align-items:center;gap:3px}
#Floors2 .ff-stage-number{font-size:11px;color:#c7bba3;text-align:center}
#Floors2 .ff-round-dot{display:block;width:100%;max-width:14px;aspect-ratio:1;border:1px solid #706354;border-radius:50%;background:#14181b55}
#Floors2 .ff-round-dot.ff-round-done{border-color:#674a42;background:#332326;color:#d94945}
#Floors2 .ff-round-dot.ff-round-current{border:2px solid #ffe4a0;background:#ac823f33;box-shadow:0 0 3px #e6bc6780}
#Floors2 .ff-round-dot svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 0 #160f0b)}

@media(max-height:800px){#Floors2:not(.ff-narrow) .ff-title{height:48px}#Floors2:not(.ff-narrow) .ff-player{padding-top:4px;padding-bottom:4px}}

/* Sidebar priority: optional title, round tracker, cards, players, active face. */
#Floors2 .ff-sidebar{display:flex;flex-direction:column;gap:8px}
#Floors2 .ff-sidebar>.ff-round{order:0;flex:0 0 auto;width:100%}
#Floors2 .ff-round-progress{margin:0}
#Floors2 .ff-sidebar>.ff-decks{flex-shrink:0}
#Floors2 .ff-sidebar .ff-active-side{margin-top:0}
#Floors2 .ff-player header,#Floors2.ff-narrow .ff-player header,#Floors2 .ff-active-side{font-size:clamp(11px,.95vw,13px)}
#Floors2.ff-no-title .ff-title{display:none}
#Floors2 .ff-controls{min-height:0}

/* Reserve portraits use spare sidebar space without shrinking the board. */
#Floors2 .ff-figure,#Floors2.ff-narrow .ff-figure{max-width:var(--ff-reserve-size,36px);height:calc(var(--ff-reserve-size,36px) + 2px);flex:0 1 var(--ff-reserve-size,36px)}
#Floors2 .ff-figure img,#Floors2.ff-narrow .ff-figure img{height:var(--ff-reserve-size,36px);width:100%}

#Floors2 .ff-round-label{width:100%;max-width:180px;text-align:center;font-size:12px;font-weight:600;margin-bottom:5px;color:#e0ddd5}

body.floors2-game #log span.ff-log-teleport,body.floors2-game #log span.ff-log-wall{display:inline-block;vertical-align:middle;margin:1px 3px;padding:3px 5px;border-radius:10px;background:#ded6ef;border:1px solid #8c7baa;color:#3c315c}
body.floors2-game #log span.ff-log-wall{background:#e0d6bd;border-color:#9d8c69;color:#4b4030}
body.floors2-game #log .ff-log .ff-log-portal{width:24px;height:24px;max-width:24px;margin:0 2px;vertical-align:middle}
body.floors2-game #log .ff-log-monsterstep{color:#493528}

/* Original scan orientation is normalized to east, then turned by the renderer. */
.ff-portal-art{transform:rotate(calc(var(--ff-portal-base) + var(--ff-portal-turn,0deg)))}
.ff-portal-skulls{--ff-portal-base:143deg}
.ff-portal-spiral{--ff-portal-base:-90deg}

/* Static portal contrast stays readable against the mottled dungeon floor. */
#Floors2 .ff-cell.ff-portal-cell{--ff-portal-edge:#e8baff;--ff-portal-halo:#782ca7;background:radial-gradient(circle,#13101bed 0 54%,var(--ff-portal-edge) 56% 59%,var(--ff-portal-halo) 61% 68%,transparent 71%)}
#Floors2 .ff-cell.ff-portal-cell-spiral{--ff-portal-edge:#b5fff8;--ff-portal-halo:#127f89}
#Floors2 .ff-portal-cell>img.ff-portal-art{width:108%;height:108%;max-width:none;filter:drop-shadow(0 0 1px #fff5dc) drop-shadow(0 1px 2px #080910)}

#Floors2 .ff-tutorial-link{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:6px 9px;border:1px solid #94cce3;border-radius:3px;background:#172b3b;color:#d6f2ff;font:12px/18px Arial,sans-serif;text-decoration:none}
#Floors2 .ff-tutorial-link:hover{background:#254358;color:#fff}
#Floors2 .ff-tutorial-link:focus-visible{outline:2px solid #d6f2ff;outline-offset:2px}

/* Framework color controls live outside #Floors2 and need their own image bounds. */
body.floors2-game .ff-color-choice{display:block;width:32px;height:32px;max-width:32px;max-height:32px;object-fit:contain}
body.floors2-game .colorChooser .chooseColor{display:grid;grid-template-columns:minmax(0,1fr) 32px 72px;align-items:start;gap:10px;padding:5px 0}
body.floors2-game .colorChooser .chooseColor::after{content:none}
body.floors2-game .colorChooser .chooseColor .txtPlayer{float:none;min-width:0;margin:0;padding-top:9px;font-size:14px;text-align:right}
body.floors2-game .colorChooser .chooseColor .mplPlayer{float:none;margin:4px 0 0;width:32px;height:32px}
body.floors2-game .colorChooser .custom-select{float:none;width:72px}
body.floors2-game .colorChooser .select-selected,body.floors2-game .colorChooser .select-items>div{padding:3px 24px 3px 4px;min-height:40px}
body.floors2-game .colorChooser .select-selected::after{top:16px;right:8px}

#Floors2 .ff-shove-hidden{visibility:hidden!important}
.ff-shove-layer{position:fixed;inset:0;z-index:1199;pointer-events:none}
.ff-shove-piece{position:absolute;object-fit:contain;max-width:none;pointer-events:none}

/* Decorative dungeon art and retired figures must not start browser selections. */
#Floors2 .ff-board{-webkit-user-select:none;user-select:none}
#Floors2 .ff-board img{-webkit-user-drag:none}

body.floors2-game #log .ff-log-coordinate{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
#Floors2 .ff-cell.ff-log-indicated{outline:3px solid white;outline-offset:-3px;box-shadow:inset 0 0 0 6px #24c7cf;z-index:6}

body.floors2-game #log button.ff-log-coordinate{border:0;padding:0 2px;background:transparent;color:inherit;font:inherit}

#Floors2 .ff-wall-edges{position:absolute;inset:0;z-index:4;pointer-events:none}
#Floors2 button.ff-wall-edge{position:absolute;pointer-events:auto;border-radius:3px}
#Floors2 button.ff-wall-source,#Floors2 button.ff-wall-partner{background:#ffd3698c;outline:2px solid #8e4619;outline-offset:-1px}
#Floors2 button.ff-wall-partner{box-shadow:0 0 8px #ffc56b,inset 0 0 0 2px #fff3cd}
