:root{--ink:#dfe6e5;--muted:#94a5ab;--gold:#dfbd80;--bg:#101b22;--panel:#15222a;--line:#2d3d43;--green:#83b4a0;color-scheme:dark;font-family:Inter,"Segoe UI",sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;overflow:hidden;height:100dvh;display:flex;flex-direction:column}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,#atlas:focus-visible,.spotlight-roster:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.topbar{height:68px;flex-shrink:0;padding:0 24px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);background:#101c23;position:relative;z-index:5}.brand{display:flex;gap:10px;align-items:center;flex-shrink:0}.brand-mark{font-size:42px;line-height:1;color:var(--gold)}.brand b{font:600 20px Georgia,serif;letter-spacing:.19em}.brand small{display:block;font-size:8px;letter-spacing:.22em;color:var(--muted);margin-top:4px}.session-label{font:italic 13px Georgia,serif;color:#afbfbd}.top-actions{display:flex;align-items:center;gap:16px;margin-left:auto}.connection{font-size:11px;color:var(--green);white-space:nowrap}.connection:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px}.connection.waiting{color:var(--gold)}.connection.error{color:#ecab93}.button{border:1px solid #415359;background:#1a2b32ed;border-radius:7px;padding:10px 14px;font-size:12px;line-height:1.25}.button:hover{background:#33444b}.button.active{color:#efce91;background:#474535;border-color:#8b7853}.map-shell{position:relative;flex:1;min-height:0;background:radial-gradient(ellipse at 45% 44%,#223943 0,#13242c 53%,#0e1b22 90%);overflow:hidden}#atlas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#atlas:active{cursor:grabbing}.map-title{position:absolute;left:25px;top:24px;pointer-events:none;text-shadow:0 2px 7px #07141b;max-width:calc(100% - 50px)}.eyebrow{font-size:9px;letter-spacing:.15em;color:#a4b7b9;font-weight:600}.map-title h1{font:normal 37px Georgia,serif;letter-spacing:-.025em;margin:7px 0;color:#e5dfce}.map-title p{font:italic 13px Georgia,serif;color:#bcc8c3;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hex{fill:transparent;stroke:#73908f;stroke-opacity:.25;stroke-width:.6}.hex.hidden{fill:#142932;fill-opacity:1;stroke:#344951;stroke-opacity:1;stroke-width:1.2}.hex.known{fill:#dbb875;fill-opacity:.08;stroke:#d5b877;stroke-opacity:.65;stroke-width:.8;cursor:pointer}.hex.visited{fill:#84c2aa;fill-opacity:.06;stroke:#b4e4c7;stroke-opacity:.65;stroke-width:.8;cursor:pointer}.hex.known:hover,.hex.visited:hover{stroke:#ffe0a6;stroke-opacity:1;stroke-width:1.6}#selected-outline{fill:none;stroke:#f9d99a;stroke-width:2;pointer-events:none}#party-token{filter:drop-shadow(0 3px 3px #07131dcc)}.hex-name{font:600 8px "Segoe UI",sans-serif;fill:#f3e6c7;text-anchor:middle;paint-order:stroke;stroke:#13252e;stroke-width:2.5px;stroke-linejoin:round;pointer-events:none}.map-actions{display:flex;align-items:center;gap:7px;position:absolute;left:22px;bottom:48px;z-index:2}.zoom{display:flex;overflow:hidden;border-radius:7px;border:1px solid #415359;background:#1a2b32ed}.zoom button{height:35px;width:36px;background:none;border:0;font-size:20px}.zoom button+button{border-left:1px solid #415359}.zoom button:hover{background:#33444b}.map-footer{position:absolute;bottom:0;left:0;right:0;padding:14px 24px;background:linear-gradient(transparent,#101e26 40%);font-size:10px;color:#8fa6aa;display:flex;justify-content:space-between;pointer-events:none;gap:15px}.map-credit{white-space:nowrap;font-size:9px}.journal-toggle{position:absolute;right:22px;bottom:48px;z-index:2}.journal{position:absolute;right:16px;top:16px;bottom:100px;width:340px;max-width:calc(100% - 32px);border:1px solid #43575b;border-radius:12px;background:#15222af7;box-shadow:0 18px 60px #0006;z-index:4;display:flex;flex-direction:column;backdrop-filter:blur(12px)}.journal-top{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #33464b;gap:10px}.icon-button{border:1px solid #405157;background:#23343b;border-radius:6px;font-size:20px;width:32px;height:32px;flex-shrink:0}.journal-content{padding:22px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.journal-content h2{font:28px Georgia,serif;color:#e9e4d5;margin:8px 0 12px;overflow-wrap:anywhere}.hex-meta{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}.hex-kind{font-size:12px;color:#a3b6b7;margin:0 0 20px;overflow-wrap:anywhere}.section-label{font-size:9px;letter-spacing:.14em;color:#abc0bc;font-weight:600;margin:26px 0 12px}.public-notes,.history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:13px;color:#cfdbd7}.empty{font-size:12px;color:#90a8af;line-height:1.7}.history-entry{border-left:1px solid #536256;padding:0 0 15px 14px;margin-left:3px}.history-meta{font-size:9px;color:#94aaaa;display:flex;justify-content:space-between;gap:10px}.history-entry p{margin:7px 0 0}.notice{position:absolute;inset:0;z-index:6;background:#12232bea;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px}.notice-mark{font-size:64px;color:var(--gold)}.notice h2{font:30px Georgia,serif;color:#e7e3d3;margin:12px 0}.notice p{color:#9eb5bb;line-height:1.7;max-width:410px;font-size:13px;margin:0 0 20px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:7px;padding:12px 20px;background:#e0c388;color:#243237;font-size:12px;z-index:20;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}:fullscreen .topbar{height:52px}:fullscreen .brand-mark{font-size:32px}:fullscreen .brand b{font-size:16px}:fullscreen .brand small{display:none}:fullscreen .map-title{top:18px}:fullscreen .map-title h1{font-size:29px}
@media(min-width:1600px){.topbar{padding:0 32px}.map-title{left:32px;top:30px}.map-title h1{font-size:46px}}
@media(max-width:700px){.topbar{height:61px;padding:0 13px;gap:12px}.brand{gap:6px}.brand-mark{font-size:32px}.brand b{font-size:16px}.brand small{font-size:7px}.session-label{display:none}.top-actions{gap:8px}.connection{font-size:9px;max-width:96px;white-space:normal;line-height:1.3}.top-actions .button{font-size:10px;padding:9px}.map-title{left:17px;top:18px}.map-title h1{font-size:30px;margin:5px 0}.map-title .eyebrow{font-size:8px}.map-title p{font-size:12px;max-width:80vw}.map-actions{left:12px;bottom:91px;gap:6px}.map-actions .button{padding:10px;font-size:11px}.map-footer{padding:13px 14px 15px;font-size:9px;gap:5px}.map-credit{font-size:8px}.journal-toggle{left:12px;right:12px;bottom:43px;padding:12px;max-width:400px}.journal{left:8px;right:8px;bottom:91px;top:auto;max-height:52dvh;width:auto;max-width:none;border-radius:12px}.journal-content{padding:18px}.journal-top{padding:10px 14px}.journal-content h2{font-size:25px}.notice h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Changing the overlay never changes hidden-hex fog or reveals source pixels. */
#atlas{--hex-strength:.45}
#atlas .hex.known{fill-opacity:calc(.08 * var(--hex-strength));stroke-opacity:calc(.65 * var(--hex-strength))}
#atlas .hex.visited{fill-opacity:calc(.06 * var(--hex-strength));stroke-opacity:calc(.65 * var(--hex-strength))}
#atlas .hex.hidden{fill-opacity:1}
#atlas .hex.known:hover,#atlas .hex.visited:hover{stroke-opacity:1}
.opacity-control{position:absolute;right:22px;top:24px;display:flex;align-items:center;gap:8px;padding:10px;background:#162830ed;border:1px solid #364d56;border-radius:7px;color:#b5c6c7;font-size:10px}
.opacity-control input{width:85px;accent-color:#dfbd80;cursor:pointer}
.opacity-control output{width:28px;text-align:right;color:#dfbd80;font-variant-numeric:tabular-nums}
@media(max-width:700px){.opacity-control{top:112px;right:12px;padding:7px;gap:6px;font-size:9px}.opacity-control input{width:70px}}

/* Shared spotlight takes its own row, preserving the map controls below it. */
.spotlight{display:flex;align-items:center;gap:20px;flex-shrink:0;min-height:88px;padding:12px 24px;border-bottom:1px solid #756447;background:linear-gradient(100deg,#282c26,#15252b 65%);position:relative;z-index:4}
.spotlight-current{order:1;width:clamp(240px,28vw,420px);max-width:38vw;flex-shrink:0;min-width:0;display:flex;flex-direction:column;gap:4px}
.spotlight-current .eyebrow{font-size:8px;letter-spacing:.19em;color:#d8b879}
.spotlight-current strong{font:600 20px Georgia,serif;color:#f7dfac;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;line-height:1.2;min-height:2.4em;max-height:2.4em}
.spotlight-stale{font-size:10px;color:#edac91}
.spotlight.stale{border-bottom-color:#a56d56}
.spotlight-roster{order:2;display:flex;align-items:center;gap:8px;list-style:none;padding:3px 0 5px;margin:0;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#6c6752 transparent;overscroll-behavior-x:contain}
.spotlight-toggle{order:3;flex-shrink:0;min-height:40px;padding:9px 12px;font-size:11px;white-space:nowrap}
.spotlight.compact{min-height:64px;padding-top:9px;padding-bottom:9px}
.spotlight.compact .spotlight-current{flex:1;width:auto;max-width:none}
.spotlight.compact .spotlight-current strong{min-height:1.2em}
.spotlight-person{display:flex;flex-shrink:0;align-items:center;gap:7px;border:1px solid #44534f;border-radius:8px;padding:9px 11px;background:#17282b;color:#bdccca;max-width:280px;min-height:38px}
.spotlight-person-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}
.spotlight-person.current{border-color:#d7b878;background:#3c3d2d;color:#f6dfa9;box-shadow:inset 3px 0 #dfbd80}
.spotlight-person.acted:not(.current){background:#18252b;color:#9cafaf}
.spotlight-marker,.spotlight-acted{font-size:8px;font-weight:600;letter-spacing:.04em;border-radius:4px;padding:3px 5px;flex-shrink:0;background:#4f5038;color:#f2d59e}
.spotlight-acted{background:#243b3c;color:#b4d0c7}
@media(min-width:1600px){.spotlight{padding:14px 32px;gap:32px}.spotlight-current{width:clamp(310px,28vw,480px)}.spotlight-current strong{font-size:24px}.spotlight-person-name{font-size:14px;max-width:200px}.spotlight-person{max-width:320px;padding:11px 14px}.spotlight-marker,.spotlight-acted{font-size:10px}}
@media(max-width:700px){.spotlight{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 9px;padding:9px 13px 6px;min-height:0}.spotlight-current{grid-column:1;width:auto;max-width:none;gap:2px;position:relative}.spotlight-toggle{grid-column:2;order:2;align-self:center;min-height:44px;padding:8px;font-size:10px}.spotlight-current strong{font-size:18px;line-height:1.25;min-height:2.5em;max-height:2.5em}.spotlight-current .eyebrow{font-size:7px}.spotlight-stale{font-size:9px}.spotlight-roster{grid-column:1 / -1;order:3;margin-top:5px;gap:6px;padding-bottom:3px}.spotlight.compact .spotlight-current strong{min-height:1.25em}.spotlight-roster:empty{display:none}.spotlight-person{padding:6px 8px;min-height:31px;gap:5px;max-width:240px}.spotlight-person-name{font-size:11px;max-width:135px}.spotlight-marker,.spotlight-acted{font-size:7px;padding:3px 4px}}
@media(max-height:500px) and (min-width:701px){.spotlight{min-height:60px;padding-top:7px;padding-bottom:7px}.spotlight-current strong{font-size:17px}}
