.illustrated-choice{align-items:center;text-align:center;padding:1rem .65rem;gap:.45rem;min-height:155px}.handbook-art{width:88px;height:88px;object-fit:cover;border-radius:50%;border:1px solid var(--outline);flex-shrink:0;background:var(--surface-top)}.art-summary{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:.3rem 0 1rem}.art-summary .handbook-art{width:62px;height:62px}.art-fallback{display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}.record-art{width:42px;height:42px;border-radius:8px;object-fit:cover;flex-shrink:0;border:1px solid var(--outline);background:var(--surface-top)}.portrait-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:.5rem;max-height:60vh;overflow:auto}.portrait-gallery .choice{padding:3px;align-items:center}.gallery-art{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}.background-art-chooser{margin:.5rem 0}.background-art-chooser summary{cursor:pointer;margin-bottom:.6rem}
.investigation-frame{position:relative;min-width:0}.investigation-viewport{width:100%;height:clamp(360px,60vh,850px);overflow:auto;border:1px solid var(--outline);border-radius:12px;background:var(--surface-top);overscroll-behavior:contain}.investigation-size{position:relative;overflow:hidden}.investigation-canvas{position:absolute;left:0;top:0;transform-origin:top left;background-image:radial-gradient(var(--outline) .8px,transparent .8px);background-size:18px 18px}.investigation-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.investigation-lines line{stroke:var(--muted);stroke-width:2;stroke-dasharray:6 5}.investigation-lines .edge-confirmed{stroke:var(--accent);stroke-dasharray:none}.investigation-lines .edge-disproved{stroke:#ad675c}.investigation-lines text{font-size:12px;fill:var(--ink);paint-order:stroke;stroke:var(--surface-top);stroke-width:5px;stroke-linejoin:round}.investigation-node{position:absolute;transform:translate(-50%,-50%);width:184px;height:78px;border:1px solid var(--outline);border-radius:9px;background:var(--surface-top);box-shadow:0 3px 9px #0002;display:flex;align-items:center}.investigation-node.selected{outline:2px solid var(--accent)}.node-card{border:0;background:none;color:var(--ink);display:flex;align-items:center;gap:8px;text-align:left;width:100%;height:100%;padding:8px;cursor:grab;touch-action:none;user-select:none;overflow:hidden}.node-card .record-art{width:48px;height:54px}.node-card span,.shelf-card span{min-width:0;overflow:hidden}.node-card strong,.shelf-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}.node-card small,.shelf-card small{display:block}.node-port{position:absolute;right:-9px;top:50%;transform:translateY(-50%);width:23px;height:23px;min-height:0;padding:0;border:1px solid var(--outline);border-radius:50%;background:var(--accent);color:var(--surface-top);cursor:pointer;font-size:14px}.investigation-shelf{display:flex;gap:.5rem;overflow:auto;padding:3px;max-width:100%}.shelf-card{flex:0 0 175px;flex-direction:row;align-items:center;gap:8px;min-height:64px}.investigation-mini{position:absolute;right:14px;top:12px;width:120px;height:76px;border:1px solid var(--outline);background:var(--surface-top);border-radius:6px;pointer-events:none;opacity:.92}.investigation-mini rect{fill:var(--accent)}
.mapstage .atlas-artwork{width:100%;display:block}.mapstage.placing-marker .atlas-artwork{cursor:crosshair}.mapstage .pencil-pin{position:absolute;transform:translate(-50%,-50%);width:44px;height:48px;min-height:0;display:block;padding:0;border:0;background:transparent;overflow:visible;cursor:pointer;z-index:2}.mapstage .pencil-pin .pencil-symbol,.marker-preview .pencil-symbol{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.pencil-label{position:absolute;top:45%;left:85%;color:#3f332a;font-family:Georgia,serif;font-style:italic;font-weight:bold;font-size:13px;white-space:nowrap;pointer-events:none;text-shadow:1px 1px #f4e5c8,-1px -1px #f4e5c8,-1px 1px #f4e5c8,1px -1px #f4e5c8}.marker-preview{width:100%;height:76px;background:#e6dbc0;border-radius:8px;padding:8px}.atlas-routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;stroke:#654a2d;stroke-width:2;stroke-dasharray:5 4;opacity:.85}
@media(max-width:600px){.illustrated-choice{min-height:126px;padding:.65rem .35rem}.handbook-art{width:64px;height:64px}.investigation-mini{width:85px;height:52px}.investigation-viewport{height:55vh}.portrait-gallery{grid-template-columns:repeat(auto-fill,minmax(62px,1fr))}}
.mapstage .canonical-dot{width:9px;height:9px;border:1px solid #e6dbc0;background:#435847;box-shadow:0 0 0 1px #435847;z-index:1}.mapstage .pencil-pin{transform:translate(-50%,-62.5%)}.mapstage .canonical-dot::after{inset:-8px}

/* 2.9.11: responsive origin gallery, combat navigation, viewport tiles. */
.background-grid2911{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.background-choice2911{display:flex;flex-direction:column;align-items:stretch;text-align:left;overflow:hidden;padding:0;gap:0;min-width:0;background:var(--surface);border:1px solid var(--outline);border-radius:12px;color:var(--ink)}.background-choice2911.selected{outline:2px solid var(--accent);outline-offset:-2px}.background-image2911{width:100%;height:130px;object-fit:cover;object-position:center 38%;display:block;background:var(--surface-top)}.background-copy2911{display:flex;flex-direction:column;align-items:flex-start;padding:12px;gap:5px}.background-copy2911 strong{font-size:1.04rem}.background-detail2911{display:flex;align-items:center;gap:15px;border:1px solid var(--outline);border-radius:12px;padding:12px;background:var(--surface-top)}.background-detail-art2911{width:104px;height:104px;object-fit:cover;border-radius:8px;flex-shrink:0}.background-detail2911 p{margin:0}.background-section2911 h3{margin:0}.combat-tabs2911{display:flex;gap:5px;flex-wrap:wrap;padding:6px;border:1px solid var(--outline);border-radius:10px;background:var(--surface-top)}.combat-tabs2911 button{flex:1;white-space:nowrap}.combat-grid2911{align-items:start}.atlas-tile-layer{position:absolute;inset:0;overflow:hidden;background:#d6c6a9;isolation:isolate}.atlas-tile{position:absolute!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;display:block;pointer-events:none}.atlas-tile-error{position:sticky;left:8px;top:8px;z-index:4;color:#fff;background:#823c38;padding:8px}.atlas-tile-error[hidden]{display:none}.mapstage{max-width:none!important}.atlas-tile-layer[role=img]{height:100%}.atlas-routes{z-index:1}
@media(max-width:600px){.background-grid2911{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.background-image2911{height:92px}.background-copy2911{padding:9px}.background-detail-art2911{width:70px;height:82px}.combat-tabs2911{position:sticky;top:0;z-index:5;overflow-x:auto;flex-wrap:nowrap}.combat-tabs2911 button{flex:0 0 auto}.combat-grid2911{display:flex;flex-direction:column}.combat-grid2911>*{width:100%}}

@media(max-width:600px){.combat-grid2911:not(.combat-tab-actions) .combat-vitals2911{display:none}.combat-grid2911:not(.combat-tab-actions)>:first-child:empty{display:none}.combat-tab-features>div:first-child,.combat-tab-recovery>div:first-child{order:1}.combat-tab-features>div:nth-child(2){order:0}.combat-tab-recovery>div:nth-child(2):empty{display:none}.combat-grid2911 .stack:empty{display:none}}
