.auth-page{box-sizing:border-box;background:radial-gradient(ellipse at 50% 0, #cba43d0d, transparent 60%), var(--bg);place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.auth-card{background:var(--panel);border-color:var(--border);width:min(100%,440px);box-shadow:0 20px 70px #0005}.account-controls{flex-shrink:0}.account-email{text-overflow:ellipsis;white-space:nowrap;max-width:180px;overflow:hidden}.admin-page{min-height:100dvh}.admin-content{max-width:1200px;margin:0 auto;padding:32px 20px}.admin-table{border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:8px}@media (width<=640px){.account-email{display:none}.admin-content{padding:24px 12px}}:root{--bg:#0b0d12;--panel:#12151c;--panel-raised:#171b24;--border:#262b36;--gold:#cba43d;--gold-soft:#e4cf98;--ember:#d83f32;--ink:#2c2214}html,body,#root{height:100%}body{background:var(--bg);margin:0}.app{grid-template-rows:auto auto minmax(0,1fr);height:100vh;display:grid;overflow:hidden}.app-header{border-bottom:1px solid var(--border);background:linear-gradient(#161a23,#0f1218);flex-wrap:wrap;align-items:center;gap:12px 20px;padding:10px 16px;display:flex}.brand{align-items:center;gap:10px;margin-right:auto;display:flex}.brand__icon{color:var(--ember);filter:drop-shadow(0 0 6px #d83f3273)}.brand__title{letter-spacing:.08em;color:var(--gold-soft);font-family:Cinzel,Georgia,serif;font-size:18px;font-weight:700}.brand__subtitle{letter-spacing:.04em;color:#8b93a1;font-size:11px}.scene-nav__count{text-align:center;font-variant-numeric:tabular-nums;min-width:96px}.scene-nav__episode{width:300px}@media (width<=640px){.app-header{gap:8px 12px;padding:8px 10px}.brand__subtitle{display:none}.scene-nav{width:100%}.scene-nav__episode{flex:160px;width:auto;min-width:0}}.scene-strip{border-bottom:1px solid var(--border);scrollbar-width:thin;background:#0e1117;gap:6px;padding:8px 16px;display:flex;overflow-x:auto}.scene-pill{border:1px solid var(--border);color:#c9ced6;max-width:230px;font:inherit;cursor:pointer;background:#161a22;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:3px 12px 3px 3px;font-size:12px;transition:border-color .15s,background .15s;display:inline-flex}.scene-pill:hover{border-color:#3d4556}.scene-pill:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.scene-pill__index{background:#232834;border-radius:50%;place-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:inline-grid}.scene-pill__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scene-pill--past{color:#98a0ac}.scene-pill--current{border-color:var(--gold);color:var(--gold-soft);background:linear-gradient(#3a2f12,#261f0e);box-shadow:0 0 12px #cba43d38}.scene-pill--current .scene-pill__index{background:var(--gold);color:#1a1408}.scene-pill--hidden .scene-pill__title{color:#5d6470;font-style:italic}.app-main{grid-template-columns:minmax(0,1fr) 440px;min-height:0;display:grid}.map-pane{min-height:0;position:relative}.side-pane{border-left:1px solid var(--border);background:var(--panel);flex-direction:column;min-height:0;display:flex}.side-tabs{flex-direction:column;flex:1;min-height:0;display:flex}.side-scroll{flex:1;min-height:0}.side-content{padding:16px 14px 28px 16px}.side-footer{border-top:1px solid var(--border);padding:8px 16px}@media (width<=980px){.app{height:auto;min-height:100vh;overflow:visible}.app-main{grid-template-columns:1fr}.map-pane{height:60vh}.side-pane{border-top:1px solid var(--border);border-left:0}}.map-container{background:#0a1219;position:absolute;inset:0;overflow:hidden}.map-svg{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;display:block}.map-svg:active{cursor:grabbing}.coast-glow path{fill:none;stroke:#d6ba801f;stroke-width:16px;stroke-linejoin:round}.land path{fill:url(#land-gradient);stroke:#4a3a22;stroke-width:1.3px;stroke-linejoin:round}.coast-shade path{fill:none;stroke:#624a284d;stroke-width:10px;stroke-linejoin:round}.lakes path{fill:#1d3040;stroke:#4a3a22;stroke-width:1px}.wall__shadow{fill:none;stroke:#2834408c;stroke-width:7px;stroke-linecap:round}.wall__ice{fill:none;stroke:#e8f2f7;stroke-width:3.5px;stroke-linecap:round}.rivers path{fill:none;stroke:#4c7189;stroke-linecap:round;stroke-linejoin:round;opacity:.85}.roads path{fill:none;stroke:#73542c80;stroke-width:1px;stroke-dasharray:4 3}.mountain{fill:none;stroke:#6b5535;stroke-width:1.1px;stroke-linejoin:round}.mountain-shade{fill:#6b553552}.forests path{fill:#4a603880}.sea-labels text{fill:#5f7d90;letter-spacing:.14em;text-anchor:middle;pointer-events:none;font-family:Cinzel,Georgia,serif;font-style:italic}.region-labels text{fill:#48341a80;letter-spacing:.32em;text-anchor:middle;pointer-events:none;font-family:Cinzel,Georgia,serif;font-weight:700}.loc-label{fill:var(--ink);paint-order:stroke;stroke:#ece2c7eb;stroke-width:3px;stroke-linejoin:round;pointer-events:none;font-family:Cinzel,Georgia,serif;font-size:11px;font-weight:700}.loc--sea .loc-label{fill:#9fb6c4;stroke:#0a1219d9;font-style:italic;font-weight:500}.loc--island .loc-label,.loc--landmark .loc-label{font-style:italic}.loc--scene .loc-label{fill:#6b1a12}.loc--occupied .loc-label{font-size:12.5px}.marker{fill:#f3ead6;stroke:var(--ink);stroke-width:1.4px}.marker-dot{fill:var(--ink)}.marker--castle{fill:#3b2f1e;stroke:#f3ead6;stroke-width:1px}.marker--town{fill:#6b5535;stroke:#f3ead6;stroke-width:1px}.marker--ruin{fill:none;stroke:#3b2f1e;stroke-width:1.4px;stroke-dasharray:2 1.5}.loc-hit{fill:#0000;cursor:pointer}.leader{stroke:#2b1f10bf;stroke-width:1.3px;stroke-dasharray:3 2;stroke-linecap:round}.leader-anchor{fill:var(--ink)}.scene-marker__ring{fill:none;stroke:#ffcf5a;stroke-width:2.5px;stroke-dasharray:5 4}.scene-marker__pulse{fill:#ffcf5a47;transform-box:fill-box;transform-origin:50%;animation:2.2s ease-out infinite pulse}@keyframes pulse{0%{opacity:.9;transform:scale(.35)}to{opacity:0;transform:scale(1.7)}}.flash-marker circle{fill:none;stroke:#fff;stroke-width:3px;transform-box:fill-box;transform-origin:50%;animation:1.1s ease-out 2 flash}@keyframes flash{0%{opacity:1;transform:scale(.5)}to{opacity:0;transform:scale(2.2)}}.trail>path{fill:none;stroke-width:2.2px;stroke-dasharray:7 5;opacity:.7}.trail--fresh>path{stroke-width:3px;opacity:1;animation:1.2s linear infinite dash}@keyframes dash{to{stroke-dashoffset:-24px}}.trail-head{fill:none;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.token{cursor:pointer;filter:drop-shadow(0 2px 3px #0009)}.token:hover>circle:first-of-type{stroke-width:3.5px}.token:focus-visible{outline:none}.token--selected>circle:first-of-type{stroke:#fff}.token--fresh>circle:first-of-type{animation:1.4s ease-in-out 3 token-glow}@keyframes token-glow{50%{stroke:#ffe39a;stroke-width:5px}}.token-badge circle{fill:var(--ember);stroke:#1a0d0b;stroke-width:1.2px}.token-badge text{fill:#fff;font-size:9px;font-weight:700}.token-label{fill:#f6efe0;paint-order:stroke;stroke:#0a0a0ad9;stroke-width:3px;pointer-events:none;font-size:11px;font-weight:700}.map-controls{flex-direction:column;gap:6px;display:flex;position:absolute;top:12px;right:12px}.map-legend{border:1px solid var(--border);color:#c9ced6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0c0e13cc;border-radius:8px;flex-wrap:wrap;gap:6px 14px;max-width:calc(100% - 24px);padding:6px 10px;font-size:11px;display:flex;position:absolute;bottom:12px;left:12px}.map-legend__item{align-items:center;gap:6px;display:inline-flex}.dot{border-radius:50%;flex-shrink:0;width:10px;height:10px;display:inline-block}.legend-pulse{border:2px dashed #ffcf5a;border-radius:50%;width:10px;height:10px}.map-popup{z-index:5;border:1px solid var(--border);background:#12151cf7;position:absolute}.map-popup__close{position:absolute;top:6px;right:6px}.eyebrow{letter-spacing:.12em}.display{letter-spacing:.02em;font-family:Cinzel,Georgia,serif}.scene-card{background:linear-gradient(160deg,#1d2230,#151821);border:1px solid #2c3242}.location-link{align-items:center;gap:4px;display:inline-flex}.character-row{border-radius:8px;width:100%;padding:6px 8px;transition:background .15s;display:block}.character-row:hover{background:#ffffff0d}.character-row:focus-visible{outline:2px solid var(--gold)}.character-row__text{flex:1;min-width:0}.avatar{letter-spacing:.02em;border-radius:50%;flex-shrink:0;place-items:center;font-family:Cinzel,Georgia,serif;font-weight:700;display:inline-grid;position:relative}.avatar--dead{filter:grayscale()brightness(.7)}.avatar__photo{background-repeat:no-repeat;border-radius:50%;position:absolute;inset:0}.avatar__badge{color:#ff9b8f;background:#2a0f0d;border-radius:50%;place-items:center;padding:1px;display:grid;position:absolute;bottom:-4px;right:-4px}.fresh{background:#ffffff08;border-radius:8px;padding:6px 8px}.fresh--major{background:#d83f321f;border:1px solid #d83f3259}.recap,.prose{line-height:1.6}.party-card{border:1px solid var(--border);background:var(--panel-raised);border-left:3px solid}.party-card--fresh{box-shadow:0 0 0 1px #cba43d73}.story-list{border-left:2px solid #2a303c;margin:0;padding:0 0 0 14px;list-style:none}.story-item{padding:2px 0 10px 8px;position:relative}.story-item:before{border:2px solid var(--panel);content:"";background:#3a4150;border-radius:50%;width:10px;height:10px;position:absolute;top:6px;left:-29px}.story-item--this-episode:before{background:#9b8a5a}.story-item--major:before{background:var(--ember)}.story-item--last-scene:before{background:var(--gold);box-shadow:0 0 8px #cba43dbf}.drawer-content,.drawer-header{background:var(--panel)}.drawer-header{border-bottom:1px solid var(--border)}
