@font-face{font-family:IM Fell English;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/im-fell-english-latin-400-normal-BhowGHCQ.woff2)format("woff2"),url(/assets/im-fell-english-latin-400-normal-CxhBQSzl.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IM Fell English;font-style:italic;font-display:swap;font-weight:400;src:url(/assets/im-fell-english-latin-400-italic-DD_ylKHZ.woff2)format("woff2"),url(/assets/im-fell-english-latin-400-italic-hN89MLGX.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IM Fell English SC;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/im-fell-english-sc-latin-400-normal-CW_nhHm4.woff2)format("woff2"),url(/assets/im-fell-english-sc-latin-400-normal-DPW2r_p4.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.scene{touch-action:manipulation;--scene-serif:"Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;background:#03050a;position:absolute;inset:0;overflow:hidden}.scene-backdrop{width:100%;height:100%;display:block;position:absolute;inset:0}.scene-vignette{pointer-events:none;background:radial-gradient(#0000 45%,#0000008c 85%,#000c 100%);position:absolute;inset:0}.scene-place{pointer-events:none;justify-content:center;align-items:center;animation:1.8s cubic-bezier(.2,.7,.2,1) both scene-arrive;display:flex;position:absolute;inset:0}.scene-place-img{object-fit:contain;opacity:0;-webkit-mask-composite:source-in;filter:drop-shadow(0 0 60px #000c);max-width:min(94vw,1800px);max-height:86vh;transition:opacity 1.2s;animation:40s ease-in-out infinite alternate scene-drift;-webkit-mask-image:linear-gradient(90deg,#0000,#000 7% 93%,#0000),linear-gradient(#0000,#000 7% 93%,#0000);mask-image:linear-gradient(90deg,#0000,#000 7% 93%,#0000),linear-gradient(#0000,#000 7% 93%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}.scene-place-img.loaded{opacity:1}@keyframes scene-arrive{0%{opacity:0;filter:blur(6px)brightness(1.6);transform:scale(1.12)}to{opacity:1;filter:none;transform:none}}@keyframes scene-drift{0%{transform:scale(1)}to{transform:scale(1.04)translateY(-.6%)}}.scene-caption{left:50%;bottom:calc(5vh + env(safe-area-inset-bottom));box-sizing:border-box;text-align:center;background:radial-gradient(closest-side,#03050ab3,#03050a00);flex-direction:column;align-items:center;gap:.25em;width:max-content;max-width:90vw;padding:.6em 2.2em;font-size:clamp(14px,2.2vmin,26px);transition:bottom 1.2s cubic-bezier(.3,.7,.2,1),font-size 1.2s cubic-bezier(.3,.7,.2,1);display:flex;position:absolute;transform:translate(-50%)}.scene-caption.alone,.showcase .scene-caption{bottom:50%;transform:translate(-50%,50%)}.showcase .scene-caption{font-size:clamp(22px,4.4vmin,56px)}.scene-name{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.14em;color:#f4e2b8;text-shadow:0 0 .4em #d9a4418c,0 0 1.4em #d9a44140,0 2px 4px #000;font-size:2em;line-height:1.1}.scene-title{font-family:var(--scene-serif);letter-spacing:.06em;color:#c9cfdb;text-shadow:0 1px 3px #000;font-size:1em;font-style:italic}.scene-rule{background:linear-gradient(90deg,#0000,#d9a441cc,#0000);width:12em;max-width:60vw;height:1px;display:block}.showcase .scene-name{animation:1.6s cubic-bezier(.2,.7,.2,1) both scene-name-in}.showcase .scene-rule{animation:1.6s cubic-bezier(.2,.7,.2,1) .3s both scene-rule-in}@keyframes scene-name-in{0%{opacity:0;letter-spacing:.5em;filter:blur(8px)}to{opacity:1;letter-spacing:.14em;filter:none}}@keyframes scene-rule-in{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:none}}.scene-lobby{pointer-events:none;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1.2em;padding:0 5vw;display:flex;position:absolute;inset:0}.scene-lobby-name{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.18em;color:#f4e2b8;text-shadow:0 0 .35em #d9a44180,0 0 1.2em #d9a44133,0 2px 6px #000;font-size:clamp(28px,7vmin,96px);animation:2.4s cubic-bezier(.2,.7,.2,1) both scene-name-in,7s ease-in-out 2.4s infinite alternate scene-breathe}.scene-lobby-hint{font-family:var(--scene-serif);color:#9aa3ad;font-size:clamp(13px,2vmin,20px);font-style:italic;animation:4s ease-in-out infinite alternate scene-breathe}@keyframes scene-breathe{0%{opacity:.75}to{opacity:1}}.scene-controls{left:var(--music-bar-space,64px);right:var(--music-bar-space,64px);width:fit-content;bottom:calc(14px + env(safe-area-inset-bottom));z-index:4;box-sizing:border-box;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:.55;background:#0a0c10b3;border:1px solid #d9a44159;border-radius:10px;flex-wrap:wrap;justify-content:center;gap:8px;max-width:calc(100vw - 24px);margin:0 auto;padding:6px 8px;transition:opacity .3s;display:flex;position:absolute}.scene-controls:hover,.scene-controls:focus-within{opacity:1}.scene-controls button{white-space:nowrap}@media (width<=1100px){.scene-controls{right:12px}}@media (width<=700px){.scene-controls{left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom))}}.scene-controls.settling button{pointer-events:none}@media (pointer:coarse){.scene-controls{opacity:1}.scene-controls button{min-height:44px}}@media (width<=480px){.scene .wide-only{display:none}.scene-controls{gap:6px;padding:6px}.scene-controls button{padding:4px 8px;font-size:14px}}.scene-controls button{padding:4px 12px}.scene-controls button.accent{background:var(--accent);color:#000;border-color:var(--accent)}.scene:has(.scene-controls) .scene-caption:not(.alone){bottom:calc(5vh + 56px + env(safe-area-inset-bottom))}.scene:has(.scene-controls) .showcase .scene-caption{bottom:50%}.present-dialog .tabs button{background:0 0;border:0;border-radius:6px 6px 0 0;padding:6px 12px}.present-dialog .tabs button.active{color:var(--accent);background:#252a31}.present-show{color:#9aa3ad;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 10px;font-size:13px;display:flex}.present-show label{color:var(--fg);align-items:center;gap:4px;display:flex}.present-show .present-sound{margin-left:auto}.present-search{box-sizing:border-box;width:100%;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:6px;margin-bottom:10px;padding:6px 10px}.present-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:55vh;display:grid;overflow-y:auto}.present-card{text-align:left;flex-direction:column;align-items:stretch;gap:4px;padding:6px;display:flex}.present-card img,.present-noimg{aspect-ratio:4/3;object-fit:cover;background:#0e1013;border-radius:4px;width:100%}.present-noimg{color:#6b7480;justify-content:center;align-items:center;font-size:12px;display:flex}.present-card-name{font-weight:600}.present-card-title{color:#9aa3ad;font-size:12px}.present-card:hover{border-color:var(--accent)}.present-card{position:relative}.present-card.on-stage{border-color:#d9a44199}.present-badge{background:var(--accent);color:#000;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:600;position:absolute;top:10px;left:10px}.present-kind{color:var(--fg);gap:14px;font-size:14px;display:flex}.present-kind label{align-items:center;color:var(--fg)!important;flex-direction:row!important}.present-loose{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}@media (width<=600px){.present-loose{grid-template-columns:1fr}}.present-drop{cursor:pointer;color:#9aa3ad;text-align:center;border:1px dashed #4a5462;border-radius:8px;justify-content:center;align-items:center;min-height:200px;padding:8px;display:flex;overflow:hidden}.present-drop img{object-fit:contain;max-width:100%;max-height:40vh}.present-fields{flex-direction:column;gap:8px;display:flex}.present-fields label{color:#9aa3ad;flex-direction:column;gap:4px;font-size:13px;display:flex}.present-fields input{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:6px;padding:6px 10px}.cast-dim{z-index:2;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#02030899;animation:.5s both cast-fade;position:absolute;inset:0}@keyframes cast-fade{0%{opacity:0}}.cast-card{z-index:1;flex-direction:column;align-items:center;gap:4px;transition:left .9s cubic-bezier(.3,.7,.2,1),top .9s cubic-bezier(.3,.7,.2,1),width .9s cubic-bezier(.3,.7,.2,1);animation:.8s cubic-bezier(.2,.7,.2,1) both cast-in;display:flex;position:absolute}.cast-card.big{z-index:5}.cast-card.arriving{animation:1.4s cubic-bezier(.2,.7,.2,1) both cast-arrive}@keyframes cast-in{0%{opacity:0;transform:translateY(12px)}}@keyframes cast-arrive{0%{opacity:0;filter:blur(10px)brightness(1.8);transform:scale(1.15)}to{opacity:1;filter:none;transform:none}}.cast-portrait{all:unset;box-sizing:border-box;cursor:pointer;width:100%;height:var(--portrait-h);background:radial-gradient(circle at 50% 35%,#2a3346,#0c1018);border:1px solid #d9a4418c;border-radius:6px;transition:height .9s cubic-bezier(.3,.7,.2,1),box-shadow .9s;display:block;overflow:hidden;box-shadow:0 0 0 1px #0009,0 6px 22px #000000b3,0 0 18px #d9a44126}.cast-portrait:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.cast-portrait img{object-fit:cover;object-position:50% 20%;width:100%;height:100%;display:block}.big .cast-portrait{background:#05070c;box-shadow:0 0 0 1px #0009,0 20px 60px #000000d9,0 0 60px #d9a4414d}.big .cast-portrait img{object-fit:contain}.cast-initial{width:100%;height:100%;font-family:var(--scene-serif);font-size:calc(var(--portrait-h) * .4);color:#f4e2b8cc;justify-content:center;align-items:center;transition:font-size .9s;display:flex}.cast-caption{text-align:center;max-width:100%;font-size:clamp(11px,1.7vmin,18px);transition:font-size .9s}.big .cast-caption{width:max-content;max-width:90vw;font-size:clamp(16px,3vmin,34px)}.cast-name{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.08em;color:#f4e2b8;text-shadow:0 1px 3px #000,0 0 10px #000c;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.big .cast-name{letter-spacing:.14em;white-space:normal;text-shadow:0 0 .4em #d9a44180,0 2px 4px #000;font-size:1.6em}.cast-title{font-family:var(--scene-serif);color:#c9cfdb;text-shadow:0 1px 3px #000;white-space:nowrap;text-overflow:ellipsis;font-size:.85em;font-style:italic;overflow:hidden}.big .cast-title{white-space:normal;font-size:1em}.cast-name.secret,.cast-title.secret{opacity:.45;-webkit-text-decoration:line-through #f4e2b880;text-decoration:line-through #f4e2b880}.cast-card:not(.big) .cast-title{display:none}.cast-actions{background:#0a0c10cc;border:1px solid #d9a44159;border-radius:8px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;width:max-content;max-width:90vw;margin-top:6px;padding:6px 8px;font-size:14px;animation:.4s .5s both cast-fade;display:flex}.cast-actions label{align-items:center;gap:4px;display:flex}.cast-actions button{padding:4px 10px}@media (pointer:coarse){.cast-actions button{min-height:44px}}@media (prefers-reduced-motion:reduce){.cast-card,.cast-portrait{transition:none!important;animation:none!important}.scene-place,.scene-place-img,.scene-name,.scene-rule,.scene-lobby-name{animation:none!important}}.history-dialog h4{margin:10px 0 6px}.history-head-actions{gap:6px;display:flex}.history-grid{max-height:none}.history-dialog{max-height:calc(100% - 24px)}.history-grid img.portrait{aspect-ratio:3/4;object-position:50% 20%}.present-card-name.unknown{color:#9aa3ad;font-style:italic;font-weight:400}.history-detail{flex-direction:column;align-items:center;gap:8px;display:flex}.history-detail>img{object-fit:contain;border:1px solid #d9a44166;border-radius:6px;max-width:100%;max-height:60vh}.history-noimg{width:min(320px,100%)}.history-title{font-family:var(--scene-serif,Georgia, serif);color:#c9cfdb;margin:0;font-style:italic}.history-title.secret{opacity:.5;text-decoration:line-through}.history-actions{flex-wrap:wrap;align-items:center;justify-content:center!important}.history-actions label{align-items:center;gap:4px;display:flex}.cast-strip{right:calc(6px + env(safe-area-inset-right));top:calc(var(--hud-bottom,48px) + 10px);bottom:calc(10px + env(safe-area-inset-bottom));pointer-events:none;--strip-w:clamp(52px, 6vw, 84px);flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute}.cast-strip>*{pointer-events:auto}.cast-strip-toggle{font:inherit;color:#f4e2b8;background:#0a0c10cc;border-color:#d9a44173;padding:2px 8px;font-size:13px}@media (pointer:coarse){.cast-strip-toggle{min-width:40px;min-height:40px}}.cast-strip-list{scrollbar-width:thin;flex-direction:column;gap:6px;max-height:100%;padding:2px;animation:.4s both cast-fade;display:flex;overflow-y:auto}.cast-strip-item{all:unset;box-sizing:border-box;cursor:pointer;width:var(--strip-w);background:#0a0c10cc;border:1px solid #d9a44173;border-radius:6px;flex-direction:column;flex:none;align-items:stretch;display:flex;overflow:hidden;box-shadow:0 4px 12px #0009}.cast-strip-item:hover,.cast-strip-item:focus-visible{border-color:var(--accent)}.cast-strip-item img{aspect-ratio:3/4;object-fit:cover;object-position:50% 20%;width:100%;display:block}.cast-strip-initial{aspect-ratio:3/4;color:#f4e2b8;background:radial-gradient(circle at 50% 35%,#2a3346,#0c1018);justify-content:center;align-items:center;font-family:Georgia,serif;font-size:24px;display:flex}.cast-strip-name{text-align:center;color:#f4e2b8;white-space:nowrap;text-overflow:ellipsis;padding:2px 3px;font-size:10px;line-height:1.3;overflow:hidden}.scroll-paper,.scroll-sheet{--paper-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .07 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--paper-stains:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .27 0 0 0 0 .08 0 0 -1.6 0 .85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");background:radial-gradient(ellipse at 30% 20%, #fffae18c, transparent 55%), var(--paper-stains), var(--paper-grain), radial-gradient(ellipse at 50% 50%, transparent 50%, #78481673 100%), linear-gradient(to right, #d9bf8a, #efdfb4 15%, #f4e7c4 50%, #ecd9ab 85%, #d6b880)}.scroll{z-index:2;left:0;right:0;top:calc(var(--hud-bottom,48px) + 16px);--paper-h:50vh;width:min(760px,68vw);margin:0 auto;animation:.7s cubic-bezier(.2,.7,.2,1) both scroll-appear,9s ease-in-out 2.4s infinite alternate scroll-float;position:absolute}.scene:has(.scene-controls) .scroll{--scroll-bottom:80px}.scroll-inner{filter:drop-shadow(0 22px 34px #000c);flex-direction:column;align-items:center;display:flex;position:relative}.scroll-aura{pointer-events:none;background:radial-gradient(closest-side,#d9a44152,#d9a4411a 55%,#0000);border-radius:50%;animation:2.4s ease-out both scroll-aura-in,6s ease-in-out 2.4s infinite alternate scroll-aura;position:absolute;inset:-12% -18%}.scroll-body{width:100%;margin:-6px 0;animation:1.7s cubic-bezier(.5,.05,.2,1) .45s both scroll-unroll;position:relative}.scroll-sheet{filter:url(#scroll-rough);position:absolute;inset:0 -3px;box-shadow:inset 0 0 28px #6e3c0f80,inset 0 0 4px #462308b3}.scroll-defs{width:0;height:0;position:absolute}.scroll-roller{z-index:2;flex:none;width:calc(100% + 22px);height:30px;position:relative}.scroll-roller.bottom{animation:1.7s cubic-bezier(.5,.05,.2,1) .45s both scroll-roll-down}.scroll-roll{background:linear-gradient(to bottom, #3c1e058c, transparent 22%, #fffae68c 40%, transparent 58%, #3c1e05a6), var(--paper-grain-roll,none), linear-gradient(to right, #c9a96f, #e9d6a6 12%, #efdfb6 50%, #e5cf9c 88%, #c4a264);border-radius:7px/15px;position:absolute;inset:0;box-shadow:0 2px 4px #00000073,inset 0 0 0 1px #5a370f40}.scroll-roller.bottom .scroll-roll{background-size:100% 100%,auto,100% 100%;animation:1.7s linear .45s both scroll-spin}.scroll-rod{background:linear-gradient(#1c0f06,#5e3817 30%,#9a6232 45%,#4a2a10 70%,#1c0f06);border-radius:6px;height:12px;position:absolute;top:50%;left:-30px;right:-30px;transform:translateY(-50%)}.scroll-rod:before,.scroll-rod:after{content:"";background:radial-gradient(at 38% 30%,#fff5c8f2,#0000 30%),linear-gradient(#5a3a0c,#e8c46a 28%,#fff0b8 40%,#c08a2c 60%,#4a2e08);border-radius:45%/50%;width:20px;height:30px;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 0 10px #ffc85a59,0 2px 3px #00000080}.scroll-rod:before{left:-12px}.scroll-rod:after{right:-12px}.scroll-seal{width:0;height:0;animation:.5s cubic-bezier(.3,1.6,.5,1) 2.05s both scroll-stamp;position:absolute;top:14px;left:50%}.scroll-ribbon{width:32px;height:66px;position:absolute;top:6px;left:-16px}.scroll-ribbon:before,.scroll-ribbon:after{content:"";clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%);background:linear-gradient(90deg,#5a0c0c,#a81e1e 50%,#6a1010);width:12px;height:66px;position:absolute;top:0}.scroll-ribbon:before{transform-origin:top;left:1px;transform:rotate(14deg)}.scroll-ribbon:after{transform-origin:top;right:1px;transform:rotate(-14deg)}.scroll-wax{color:#460505d9;text-shadow:0 1px #ff8c8c59,0 -1px #0006;background:radial-gradient(circle at 36% 32%,#e04848,#9e1818 48%,#5a0808 85%);border-radius:52% 48% 50% 46%/48% 54% 46% 52%;justify-content:center;align-items:center;width:48px;height:46px;font-size:22px;display:flex;position:absolute;top:2px;left:-24px;box-shadow:0 3px 6px #0000008c,inset 0 0 0 4px #5a08088c,inset 0 0 0 5px #ff787826,inset -3px -4px 6px #00000059}.scroll-paper{--scroll-font:24px;box-sizing:border-box;width:100%;max-height:calc(100vh - var(--hud-bottom,48px) - 16px - 60px - 30px - var(--scroll-bottom,16px) - env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#8a6a3a transparent;font-family:IM Fell English,Cormorant Garamond,Palatino Linotype,Palatino,Book Antiqua,Georgia,serif;font-size:var(--scroll-font);color:#2e1c0b;text-shadow:0 0 .06em #3c1e0573;-webkit-user-select:text;user-select:text;padding:1.5em 2.4em 1.7em;line-height:1.5;position:relative;overflow-y:auto}.scroll .scroll-paper{background:0 0}.scroll-heading{text-align:center;flex-direction:column;align-items:center;margin-bottom:.7em;display:flex}.scroll-title{letter-spacing:.08em;background:linear-gradient(#a8741f,#6e430c 55%,#9a6519);color:#0000;text-shadow:none;filter:drop-shadow(0 1px #fff0c899);-webkit-background-clip:text;background-clip:text;font-family:IM Fell English SC,IM Fell English,Georgia,serif;font-size:1.5em;line-height:1.15}.scroll-flourish{width:min(13em,80%);height:.9em;margin-top:.25em;overflow:visible}.scroll-flourish path,.scroll-flourish circle{fill:none;stroke:#8a5a1a;stroke-width:1.3px;stroke-linecap:round}.scroll-flourish circle{fill:#8a5a1a;stroke:none}.scroll-flourish .gem{fill:#a81e1e;stroke:#6a3a0a;stroke-width:1px}.scroll .scroll-flourish{animation:1.6s ease-out 1.4s both scroll-draw}.scroll .scroll-flourish path:not(.gem){stroke-dasharray:140;animation:1.8s ease-out 1.3s both scroll-stroke}.text-body .has-drop-cap{display:flow-root}.drop-cap{float:left;shape-margin:.12em;-webkit-user-select:none;user-select:none;pointer-events:none;margin:.08em .08em 0 -.06em}.drop-cap-plain{float:left;color:#8e1a12;margin-right:.08em;font-family:IM Fell English SC,IM Fell English,Georgia,serif;font-size:2.6em;line-height:.9}.text-body .sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.scroll-paper .text-body h3{font-variant:normal;color:#7a2a12;letter-spacing:.06em;font-family:IM Fell English SC,IM Fell English,Georgia,serif}.scroll-paper .text-body blockquote{color:#4a2f14;border-left:none;padding-left:1.1em;position:relative}.scroll-paper .text-body blockquote:before{content:"";background:linear-gradient(#0000,#a8741f 20% 80%,#0000);width:2px;position:absolute;top:.2em;bottom:.2em;left:0}.scroll-paper .text-body ul>li::marker{content:"✦  ";color:#a8741f;font-size:.8em}.scroll .text-body .pending{opacity:.28;filter:blur(.3px)}@keyframes scroll-appear{0%{opacity:0;transform:translateY(-18px)scale(.94)}to{opacity:1;transform:none}}@keyframes scroll-float{0%{transform:translateY(0)}to{transform:translateY(-5px)}}@keyframes scroll-aura-in{0%{opacity:0;transform:scale(.6)}25%{opacity:1;transform:scale(1.08)}to{opacity:.75;transform:none}}@keyframes scroll-aura{0%{opacity:.75}to{opacity:1}}@keyframes scroll-unroll{0%{clip-path:inset(0 -40px calc(100% - 21px))}to{clip-path:inset(-20px -40px -9px)}}@keyframes scroll-roll-down{0%{transform:translateY(calc(-1 * var(--paper-h) + 12px))}to{transform:none}}@keyframes scroll-spin{0%{filter:brightness(1.05)}50%{filter:brightness(.92)}to{filter:none}}@keyframes scroll-stamp{0%{opacity:0;transform:scale(1.9)rotate(-14deg)}60%{opacity:1}to{opacity:1;transform:none}}@keyframes scroll-stroke{0%{stroke-dashoffset:140px}to{stroke-dashoffset:0}}@keyframes scroll-draw{0%{opacity:0}30%{opacity:1}to{opacity:1}}.scroll.folded .scroll-body{pointer-events:none;animation:.6s cubic-bezier(.6,0,.4,1) both scroll-rollup}.scroll.folded .scroll-roller.bottom{animation:.6s cubic-bezier(.6,0,.4,1) both scroll-roll-up}.scroll.folded .scroll-aura{opacity:0;transition:opacity .4s}.scroll .scroll-roller{pointer-events:none}button.scroll-wax{cursor:pointer;pointer-events:auto;border:0;margin:0;padding:0;font-family:inherit;line-height:1}button.scroll-wax:focus-visible{outline-offset:2px;outline:2px solid #f4e2b8}.scroll.leaving{pointer-events:none;animation:1.1s cubic-bezier(.5,0,.7,.4) both scroll-leave}.scroll.leaving .scroll-body{animation:.75s cubic-bezier(.6,0,.4,1) both scroll-rollup}.scroll.leaving .scroll-roller.bottom{animation:.75s cubic-bezier(.6,0,.4,1) both scroll-roll-up}.scroll.leaving .scroll-seal{opacity:0;transition:opacity .2s;animation:none}.scroll.leaving .scroll-aura{animation:1.1s ease-in both scroll-aura-out}@keyframes scroll-rollup{0%{clip-path:inset(-20px -40px -9px)}to{clip-path:inset(0 -40px calc(100% - 21px))}}@keyframes scroll-roll-up{0%{transform:none}to{transform:translateY(calc(-1 * var(--paper-h) + 12px))}}@keyframes scroll-leave{0%,60%{opacity:1;filter:none;transform:none}to{opacity:0;filter:blur(4px)brightness(1.8);transform:translateY(-30px)scale(.9)}}@keyframes scroll-aura-out{0%{opacity:.8}65%{opacity:1;transform:scale(1.15)}to{opacity:0;transform:scale(.4)}}@media (width<=700px){.scroll{width:calc(100vw - 92px)}.scroll-rod{left:-18px;right:-18px}.scroll-rod:before,.scroll-rod:after{width:14px;height:22px}.scroll-rod:before{left:-8px}.scroll-rod:after{right:-8px}.scroll-paper{padding:1.2em 1.5em 1.4em}}@media (prefers-reduced-motion:reduce){.scroll,.scroll-body,.scroll-roller.bottom,.scroll-seal,.scroll-aura,.scroll .scroll-flourish,.scroll .scroll-flourish path,.scroll.leaving{animation:none!important}}.text-body>*{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 .6em}.text-body>:last-child{margin-bottom:0}.text-body h3{font-variant:small-caps;letter-spacing:.05em;margin-top:.2em;font-size:1.2em}.text-body blockquote{border-left:3px solid #6e411473;margin-left:.4em;padding-left:.8em;font-style:italic}.text-body ul,.text-body ol{white-space:normal;padding-left:1.4em}.text-body li{white-space:pre-wrap;margin-bottom:.2em}.text-body .center{text-align:center}.text-body .fresh{animation:1.6s both text-fresh}.scroll .text-body .fresh{animation:1.5s cubic-bezier(.4,.1,.3,1) both text-sweep,2.6s ease-out backwards text-ink;-webkit-mask-image:linear-gradient(90deg,#000 42%,#0000 58%);mask-image:linear-gradient(90deg,#000 42%,#0000 58%);-webkit-mask-size:260% 100%;mask-size:260% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}@keyframes text-sweep{0%{-webkit-mask-position:100% 0;mask-position:100% 0}to{-webkit-mask-position:0 0;mask-position:0 0}}@keyframes text-ink{0%{color:#f6d98c;text-shadow:0 0 .5em #ffcd6ef2,0 0 1.2em #ffb43c99}45%{color:#b07a22;text-shadow:0 0 .35em #ffc8648c}to{color:#2e1c0b;text-shadow:0 0 .06em #3c1e0573}}.text-body .pending{opacity:.3}.text-body li.pending,.text-body li.fresh{list-style-position:outside}@keyframes text-fresh{0%{opacity:0;filter:blur(4px);transform:translateY(.3em)}to{opacity:1;filter:none;transform:none}}.present-text{flex-direction:column;gap:10px;display:flex}.present-text-title{color:#9aa3ad;flex-direction:column;gap:4px;font-size:13px;display:flex}.present-text-title input{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:6px;padding:6px 10px;font-size:14px}.present-text-panes{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;display:grid}@media (width<=700px){.present-text-panes{grid-template-columns:1fr}}.present-text-editor{min-height:220px;max-height:45vh;color:var(--fg);-webkit-user-select:text;user-select:text;background:#0e1013;border:1px solid #333a44;border-radius:6px;outline:none;padding:10px;font-size:14px;line-height:1.4;overflow-y:auto}.present-text-editor:focus{border-color:var(--accent)}.present-text-editor:empty:before{content:attr(data-placeholder);color:#6b7480}.present-text-editor :is(p,h2,blockquote,ul,ol){margin:0 0 .5em}.present-text-editor h2{font-size:1.15em}.present-text-editor blockquote{border-left:3px solid #4a5462;padding-left:8px;font-style:italic}.present-text-preview{clip-path:none;--scroll-font:15px;border-radius:4px;min-height:220px;max-height:45vh;padding:12px 16px;font-size:15px;overflow-y:auto}.present-text-preview .hint{color:#7a6040;font-style:italic}.present-text-foot{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.present-text-foot>span{margin-right:auto}.present-text-foot label{align-items:center;gap:4px;display:flex}.history-text-thumb{aspect-ratio:4/3;clip-path:none;--scroll-font:9px;border-radius:4px;width:100%;max-height:none;margin:0;padding:6px 8px;font-size:9px;display:block;overflow:hidden}.history-text{clip-path:none;--scroll-font:17px;border-radius:4px;width:100%;max-height:60vh;margin:0;padding:16px 22px;font-size:17px}.cast-strip-scroll{aspect-ratio:1;box-sizing:border-box;background:radial-gradient(closest-side,#d9a44159,#0000);flex-direction:column;justify-content:center;align-items:center;padding:8px 12px;display:flex}.cast-strip-scroll .mini-paper{background-image:repeating-linear-gradient(#0000 0 5px,#2e1c0b73 5px 6px,#0000 6px 9px),radial-gradient(#0000 50%,#78481673 100%),linear-gradient(90deg,#d9bf8a,#f4e7c4 50%,#d6b880);background-position:50%;background-repeat:no-repeat;background-size:70% 100%,auto,auto;flex:1;width:100%;max-height:none;margin:-1px 0;padding:0;overflow:hidden;box-shadow:inset 0 0 6px #6e3c0f80}.cast-strip-scroll .mini-roller{z-index:1;background:linear-gradient(#8a6a3a,#efdfb6 45%,#8a6a3a);border-radius:3px;width:calc(100% + 6px);height:6px;position:relative;box-shadow:-5px 0 0 -1px #d9a441,5px 0 0 -1px #d9a441}.text-body.numbered{padding-left:1.8em}.text-body.numbered [data-part]{position:relative}.text-body.numbered [data-part]:before{content:attr(data-part);text-align:right;color:#6e411499;width:1.5em;font-size:.7em;font-style:normal;font-weight:600;line-height:2.2;position:absolute;left:-1.9em}.text-body.numbered li[data-part]:before{left:-3.3em}.history-actions button.danger{color:#ff8a80;border-color:#ff8a8073}.dialogue-dim{z-index:2;pointer-events:none;background:radial-gradient(#02030826,#020308a6 75%);animation:.8s both cast-fade;position:absolute;inset:0}.cast-card.listening{filter:brightness(.42)saturate(.6);transition:left .9s cubic-bezier(.3,.7,.2,1),top .9s cubic-bezier(.3,.7,.2,1),width .9s cubic-bezier(.3,.7,.2,1),filter .8s}.cast-card.speaking{z-index:3;transition:left .9s cubic-bezier(.3,.7,.2,1),top .9s cubic-bezier(.3,.7,.2,1),width .9s cubic-bezier(.3,.7,.2,1),filter .8s}.cast-card.speaking .cast-caption{display:none}.speaking .cast-portrait{background:#05070c;border-color:#d9a441cc;animation:6s ease-in-out infinite alternate speak-breathe;box-shadow:0 0 0 1px #0009,0 24px 60px #000000d9,0 0 70px #d9a44152,0 0 0 4px #05070ce6,0 0 0 5px #d9a44147}.speaking .cast-portrait img{object-fit:contain}@keyframes speak-breathe{0%{transform:scale(1)}to{transform:scale(1.012)}}.dialogue-box{z-index:3;box-sizing:border-box;color:#efe4c8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:default;background:radial-gradient(at 20% 0,#d9a44124,#0000 60%),linear-gradient(#0e111ce6,#06080eeb);border:1px solid #d9a44199;border-radius:4px;padding:1.5em 1.8em 1.4em;font-family:IM Fell English,Cormorant Garamond,Georgia,serif;font-size:clamp(17px,2.5vmin,32px);line-height:1.5;animation:.9s cubic-bezier(.2,.7,.2,1) both dlg-in;position:absolute;overflow:visible;transform:translateY(-50%);box-shadow:inset 0 0 0 5px #06080ed9,inset 0 0 0 6px #d9a44138,0 0 50px #d9a44124,0 24px 60px #000000bf}.dialogue-box.stacked{animation-name:dlg-in-stacked;transform:none}@keyframes dlg-in{0%{opacity:0;filter:blur(6px);transform:translateY(-50%)translate(-24px)scaleX(.85)}to{opacity:1;filter:none;transform:translateY(-50%)}}@keyframes dlg-in-stacked{0%{opacity:0;filter:blur(6px);transform:translateY(16px)}to{opacity:1;filter:none;transform:none}}.dialogue-box:not(.narrator):not(.stacked):before,.dialogue-box:not(.narrator):not(.stacked):after{content:"";border-style:solid;width:0;height:0;position:absolute;top:50%;transform:translateY(-50%)}.dialogue-box:not(.narrator):not(.stacked):before{border-width:13px 15px 13px 0;border-color:#0000 #d9a441a6 #0000 #0000;left:-15px}.dialogue-box:not(.narrator):not(.stacked):after{border-width:12px 14px 12px 0;border-color:#0000 #0c0f19f7 #0000 #0000;left:-13px}.dialogue-box.stacked:not(.narrator):before{content:"";border:13px solid #0000;border-top-width:0;border-bottom:14px solid #d9a441a6;position:absolute;top:-14px;left:50%;transform:translate(-50%)}.dlg-corner{pointer-events:none;filter:drop-shadow(0 0 4px #d9a44199);border:2px solid #d9a441;width:18px;height:18px;position:absolute}.dlg-corner.tl{border-bottom:none;border-right:none;top:-4px;left:-4px}.dlg-corner.tr{border-bottom:none;border-left:none;top:-4px;right:-4px}.dlg-corner.bl{border-top:none;border-right:none;bottom:-4px;left:-4px}.dlg-corner.br{border-top:none;border-left:none;bottom:-4px;right:-4px}.dlg-nameplate{background:linear-gradient(#141826,#07090f);border:1px solid #d9a441b3;border-radius:3px;align-items:baseline;gap:.6em;max-width:calc(100% - 2.2em);padding:.15em .9em .2em;animation:1s cubic-bezier(.2,.7,.2,1) .15s both dlg-name-in;display:flex;position:absolute;top:0;left:1.1em;transform:translateY(-58%);box-shadow:0 4px 14px #0009,0 0 18px #d9a4412e}.dlg-name{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.14em;color:#f4e2b8;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 0 .4em #d9a4418c,0 0 1.2em #d9a44140,0 1px 3px #000;font-size:1.05em;line-height:1.2;overflow:hidden}.dlg-title{font-family:var(--scene-serif);color:#c9cfdb;white-space:nowrap;text-overflow:ellipsis;font-size:.7em;font-style:italic;overflow:hidden}.dlg-name.secret,.dlg-title.secret{opacity:.5;-webkit-text-decoration:line-through #f4e2b880;text-decoration:line-through #f4e2b880}@keyframes dlg-name-in{0%{opacity:0;letter-spacing:.4em;filter:blur(5px)}to{opacity:1;filter:none}}.dlg-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:inherit;scrollbar-width:thin;text-shadow:0 1px 2px #000c;overflow-y:auto}.dlg-text strong{color:#fff3d6}.dlg-unsaid{opacity:0}.dlg-more{color:#d9a441;opacity:0;text-shadow:0 0 8px #d9a441cc;font-size:.7em;transition:opacity .4s;position:absolute;bottom:.35em;right:.8em}.dlg-more.on{opacity:1;animation:1.6s ease-in-out infinite alternate dlg-pulse}@keyframes dlg-pulse{0%{opacity:.35;transform:translateY(0)}to{opacity:1;transform:translateY(-2px)}}.dialogue-box.narrator{text-align:center;color:#e2d6b8;background:linear-gradient(#0a0c14c7,#04060ad1);padding:1.1em 2.2em;font-style:italic}.dlg-rule{color:#d9a441;align-items:center;gap:.6em;margin-bottom:.6em;font-size:.6em;font-style:normal;display:flex}.dlg-rule.bottom{margin:.6em 0 0}.dlg-rule:before,.dlg-rule:after{content:"";background:linear-gradient(90deg,#0000,#d9a441cc);flex:1;height:1px}.dlg-rule:after{background:linear-gradient(270deg,#0000,#d9a441cc)}.dialogue-next{box-sizing:border-box;color:#9aa3ad;white-space:nowrap;text-overflow:ellipsis;text-align:center;flex:0 0 100%;width:0;min-width:100%;padding:0 4px 2px;font-size:13px;overflow:hidden}.dialogue-next b{color:#d9a441;font-weight:600}@media (prefers-reduced-motion:reduce){.dialogue-box,.dlg-nameplate,.dlg-more.on,.speaking .cast-portrait,.dialogue-dim{animation:none!important}}.dlg-composer{flex-direction:column;gap:10px;display:flex}.dlg-cast{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.dlg-chip{border-radius:999px;align-items:center;gap:6px;padding:3px 10px 3px 3px;font-size:13px;display:inline-flex}.dlg-chip.add{border-style:dashed;padding:4px 12px}.dlg-chip.narrator{font-style:italic}.dlg-chip-avatar{color:#d9a441;background:#0e1013;border:1px solid #d9a44180;border-radius:50%;flex:none;justify-content:center;align-items:center;width:26px;height:26px;font-size:12px;display:inline-flex;overflow:hidden}.dlg-chip-avatar img{object-fit:cover;object-position:50% 20%;width:100%;height:100%}.dlg-chip-new{color:#000;background:var(--accent);border-radius:4px;padding:0 4px;font-size:10px}.dlg-chip-wrap{align-items:center;display:inline-flex}.dlg-chip-x{color:#6b7480;background:0 0;border:0;margin-left:-4px;padding:0 6px;font-size:11px}.dlg-picker{background:#15181d;border:1px solid #333a44;border-radius:8px;padding:0 12px 12px}.dlg-picker .tabs{margin:0 -12px 8px;top:0}.dlg-picker-close{margin-left:auto}.dlg-picker-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));max-height:32vh}.dlg-lines{counter-reset:dlg;flex-direction:column;gap:6px;max-height:46vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.dlg-line{grid-template-columns:minmax(110px,160px) minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.dlg-line select{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:6px;padding:6px;font-size:13px}.dlg-line-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#0e1013;border:1px solid #333a44;border-radius:6px;outline:none;min-height:1.5em;padding:6px 10px;font-family:IM Fell English,Georgia,serif;font-size:16px;line-height:1.45}.dlg-line-text:focus{border-color:var(--accent)}.dlg-line.said .dlg-line-text{opacity:.55}.dlg-said{color:#6b7480;padding-top:8px;font-size:11px}.dlg-line-x{color:#6b7480;background:0 0;border:0;padding:4px 8px}.dlg-empty{text-align:center;padding:12px}@media (width<=600px){.dlg-line{grid-template-columns:minmax(0,1fr) auto}.dlg-line select{grid-column:1/-1}}.scene .scene-caption{transition:bottom 1.2s cubic-bezier(.3,.7,.2,1),font-size 1.2s cubic-bezier(.3,.7,.2,1),opacity .6s}.scene:has(.dialogue-box) .scene-caption{opacity:0}.dlg-name{flex:0 auto;min-width:3em}.dlg-title{flex:0 100 auto;min-width:0}.history-dlg-thumb{aspect-ratio:4/3;box-sizing:border-box;color:#efe4c8;background:linear-gradient(#12151f,#07090f);border:1px solid #d9a44180;border-radius:4px;flex-direction:column;gap:4px;padding:8px 10px;font-family:IM Fell English,Georgia,serif;font-size:12px;line-height:1.35;display:flex;overflow:hidden;box-shadow:inset 0 0 0 3px #07090f,inset 0 0 0 4px #d9a4412e}.history-dlg-who{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.1em;color:#f4e2b8;font-size:11px}.history-dlg-says{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.dlg-viewer{flex-direction:column;gap:12px;padding:8px 0;display:flex}.dlg-viewer-stage{background:radial-gradient(at 50% 40%,#1b2034,#05070c);border-radius:8px;justify-content:center;align-items:center;gap:28px;min-height:260px;padding:18px 8px 6px;display:flex}.dlg-viewer-portrait{aspect-ratio:3/4;color:#f4e2b8;width:min(180px,30vw);font-family:var(--scene-serif);background:#05070c;border:1px solid #d9a441b3;border-radius:6px;flex:none;justify-content:center;align-items:center;font-size:48px;display:flex;overflow:hidden;box-shadow:0 0 30px #d9a44133}.dlg-viewer-portrait img{object-fit:contain;width:100%;height:100%}.dialogue-box.static{flex:1;max-width:520px;font-size:18px;animation:.35s both dlg-fade;position:relative;top:auto;left:auto;transform:none}.dialogue-box.static.unsaid{opacity:.55}.dialogue-box.static:before,.dialogue-box.static:after{display:none}@keyframes dlg-fade{0%{opacity:0}}.dlg-viewer-nav{justify-content:center;align-items:center;gap:16px;display:flex}.dlg-viewer-nav button{min-width:44px}@media (width<=600px){.dlg-viewer-stage{flex-direction:column;gap:22px}.dialogue-box.static{width:100%;max-width:none}}.cast-strip-dialogue{aspect-ratio:1;box-sizing:border-box;background:radial-gradient(closest-side,#d9a4414d,#0000);flex-direction:column;justify-content:center;gap:4px;padding:14px 10px;display:flex}.cast-strip-dialogue span{opacity:.8;background:#efe4c8;border-radius:2px;height:3px;display:block;box-shadow:0 0 4px #d9a44199}.cast-strip-dialogue span:nth-child(2){width:80%}.cast-strip-dialogue span:nth-child(3){width:55%}.cast-strip-dialogue{outline-offset:-6px;outline:1px solid #d9a4418c}.cast-portrait{position:relative}.cast-portrait img{transition:filter .9s}.cast-portrait.veiled img,img.veiled{filter:brightness(.5)saturate(.35)contrast(.9)}.cast-portrait.veiled:after{content:"Silueta";letter-spacing:.04em;color:#cfd8f0;pointer-events:none;white-space:nowrap;background:#080a12d9;border:1px solid #96afeb8c;border-radius:999px;padding:1px 8px;font:600 11px system-ui,sans-serif;position:absolute;bottom:6%;left:50%;transform:translate(-50%)}.history-detail:has(>img.veiled):after{content:"Silueta";letter-spacing:.04em;color:#cfd8f0;pointer-events:none;white-space:nowrap;background:#080a12d9;border:1px solid #96afeb8c;border-radius:999px;padding:1px 8px;font:600 11px system-ui,sans-serif;position:absolute;bottom:6%;left:50%;transform:translate(-50%)}.history-detail{position:relative}.cast-portrait img.img-dissipate{animation:1.6s ease-in both img-dissipate;position:absolute;inset:0}.cast-portrait img.img-emerge{animation:1.8s cubic-bezier(.2,.7,.2,1) both img-emerge}@keyframes img-dissipate{0%{opacity:1;filter:none;transform:none}to{opacity:0;filter:blur(18px)brightness(2.2);transform:scale(1.12)}}@keyframes img-emerge{0%{opacity:0;filter:brightness(3)blur(8px)}35%{opacity:1}to{opacity:1;filter:none}}.dlg-chip-veiled{color:#cfd8f0;background:#1b2130;border:1px solid #96afeb80;border-radius:4px;padding:0 4px;font-size:10px}@media (prefers-reduced-motion:reduce){.cast-portrait img.img-dissipate,.cast-portrait img.img-emerge{animation-duration:10ms!important}}.dlg-back{align-self:flex-start;margin-bottom:8px}.dlg-drafts{flex-direction:column;gap:10px;display:flex}.dlg-drafts-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.dlg-drafts ul{flex-direction:column;gap:8px;max-height:55vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.dlg-draft{background:#15181d;border:1px solid #333a44;border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 12px;display:flex}.dlg-draft-info{flex-direction:column;flex:1;gap:2px;min-width:200px;display:flex}.dlg-draft-first{color:#cdbf9c;white-space:nowrap;text-overflow:ellipsis;font-family:IM Fell English,Georgia,serif;overflow:hidden}.dlg-draft-first b{font-family:var(--scene-serif,Georgia, serif);font-variant:small-caps;color:#d9a441;font-weight:600}.dlg-draft-actions{gap:6px;display:flex}.dlg-draft-actions .danger{color:#ff8a80}.dlg-line .dlg-reveal{flex-wrap:wrap;grid-area:2/2;align-items:center;gap:4px;font-size:12px;display:flex}.dlg-reveal button{border-radius:999px;padding:1px 8px;font-size:12px}.dlg-reveal button.on{border-color:var(--accent);color:var(--accent);background:#d9a44133}.dlg-reveal button.on:before{content:"✦ "}@media (width<=600px){.dlg-line .dlg-reveal{grid-area:auto/1/auto/-1}}.dlg-name,.dlg-title{animation:1.2s cubic-bezier(.2,.7,.2,1) both dlg-name-in}.dlg-start{background:#15181d;border:1px solid #333a44;border-radius:8px;padding:4px 10px;font-size:13px}.dlg-start summary{cursor:pointer;color:#9aa3ad;padding:2px 0}.dlg-start table{border-collapse:collapse;margin:4px 0}.dlg-start th{text-align:left;white-space:nowrap;padding:2px 14px 2px 0;font-weight:600}.dlg-start td{flex-wrap:wrap;align-items:center;gap:12px;padding:2px 0;display:flex}.dlg-start label{align-items:center;gap:4px;display:inline-flex}.dlg-start label:has(input:disabled){opacity:.6}.dlg-start .dlg-stays{border-left:1px solid #333a44;padding-left:12px}.dlg-draft-done{color:#9aa3ad;vertical-align:middle;border:1px solid #4a5462;border-radius:4px;margin-left:8px;padding:0 5px;font-size:11px;font-weight:400}.dialogue-box.static{min-width:0}.dialogue-box.static .dlg-nameplate{max-width:none;margin:-2.45em 0 .5em -.7em;display:inline-flex;position:relative;top:auto;left:auto;transform:none}.dialogue-box.static .dlg-name,.dialogue-box.static .dlg-title{text-overflow:clip;overflow:visible}.dialogue-box.static .dlg-text{min-width:8em}.scene.story{cursor:pointer}.story-nav{opacity:1;align-items:center}.story-count{color:#c9b98f;font-variant-numeric:tabular-nums;text-align:center;min-width:4.5em;padding:0 6px}.story-on{color:#c9b98f;border-left:1px solid #d9a44159;align-items:center;gap:6px;padding-left:10px;display:inline-flex}@media (width<=640px){.story-on{border-left:0;padding-left:0}}.dlg-chip.place .dlg-chip-avatar{border-radius:4px}.dlg-line.dlg-line-place{border-top:1px dashed #d9a44159;border-bottom:1px dashed #d9a44159;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:4px 0}.dlg-line.dlg-line-place select{grid-column:auto;max-width:280px}.dlg-place-tag{color:#c9b98f;white-space:nowrap;font-size:13px}.dlg-line-place.said{opacity:.55}.dlg-viewer-place{flex-direction:column;gap:10px;position:relative;overflow:hidden}.dlg-viewer-place img{object-fit:cover;opacity:.55;width:100%;height:100%;position:absolute;inset:0}.dlg-viewer-place-name{letter-spacing:.08em;color:#f1dfb4;text-shadow:0 2px 12px #000;font-family:IM Fell English SC,serif;font-size:26px;position:relative}.dlg-viewer-place.unsaid{opacity:.6}.story-cover{z-index:2;text-align:center;pointer-events:none;background:radial-gradient(#05070c59,#05070ccc);flex-direction:column;justify-content:center;align-items:center;gap:.9em;padding:0 6vw;display:flex;position:absolute;inset:0}.story-cover-game{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.22em;color:#c9b98f;font-size:clamp(16px,3.2vmin,40px);animation:1.8s cubic-bezier(.2,.7,.2,1) both scene-name-in}.story-cover-title{font-family:var(--scene-serif);font-variant:small-caps;letter-spacing:.12em;color:#f4e2b8;text-shadow:0 0 .35em #d9a44180,0 0 1.2em #d9a44133,0 2px 6px #000;font-size:clamp(30px,8vmin,110px);line-height:1.1;animation:2.4s cubic-bezier(.2,.7,.2,1) .5s both scene-name-in,7s ease-in-out 2.9s infinite alternate scene-breathe}.story-cover .scene-rule{width:min(320px,50vw)}@media (prefers-reduced-motion:reduce){.story-cover-game,.story-cover-title{animation:none}}.entrance-step{flex-direction:column;gap:12px;display:flex}.entrance-music{flex-direction:column;gap:8px;display:flex}.entrance-music .label{color:#9aa3ad;font-size:13px}.entrance-options{flex-direction:column;gap:6px;display:flex}.entrance-options label{align-items:center;gap:6px;display:flex}.entrance-music .song-link{background:#1b1f24;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.entrance-dialog{flex-direction:column;gap:12px;display:flex}.remove-menu{display:flex;position:relative}.remove-menu .card-menu{z-index:6;min-width:170px;bottom:calc(100% + 6px);left:50%;right:auto;transform:translate(-50%)}.scene-controls .remove-menu .card-menu button{padding:6px 10px}.music-bar{z-index:25;left:calc(10px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));box-sizing:border-box;background:#14161aeb;border:1px solid #333a44;border-radius:999px;align-items:center;gap:6px;max-width:calc(100vw - 20px);padding:5px 8px;display:flex;position:absolute}.music-bar button{border-radius:999px;min-width:32px;height:32px;padding:0 8px;font-size:14px}.music-bar button.on{border-color:var(--accent);color:var(--accent)}.music-bar .music-pick{color:var(--accent);justify-content:center;align-items:center;gap:4px;padding:0 5px;display:inline-flex}.music-bar .music-pick:has(span){padding-right:10px}.music-bar .music-icon{justify-content:center;align-items:center;width:32px;padding:0;display:inline-flex}.music-now{flex-direction:column;width:220px;min-width:0;line-height:1.15;display:flex}.music-progress{align-items:center;gap:6px;display:flex}.music-seek{cursor:pointer;appearance:none;background:0 0;flex:1;min-width:0;height:14px;margin:0}.music-seek:disabled{cursor:default}.music-seek::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--seek), #3a414c var(--seek));border-radius:2px;height:4px}.music-seek::-moz-range-track{background:linear-gradient(to right, var(--accent) var(--seek), #3a414c var(--seek));border-radius:2px;height:4px}.music-seek::-webkit-slider-thumb{-webkit-appearance:none;background:var(--fg);border:none;border-radius:50%;width:10px;height:10px;margin-top:-3px}.music-seek::-moz-range-thumb{background:var(--fg);border:none;border-radius:50%;width:10px;height:10px}.music-seek:not(:hover):not(:active):not(:focus-visible)::-webkit-slider-thumb{opacity:0}.music-seek:not(:hover):not(:active):not(:focus-visible)::-moz-range-thumb{opacity:0}.music-title{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.music-time{color:#9aa3ad;font-variant-numeric:tabular-nums;flex:none;font-size:11px}.music-volume{color:#9aa3ad;align-items:center;gap:4px;font-size:14px;display:flex}.music-volume input{width:80px}.sound-toggle{min-width:32px}@media (width<=600px){.music-now{width:130px;min-width:70px}.music-progress .music-time,.music-volume span{display:none}.music-volume input{width:60px}}.sound-corner{z-index:25;left:calc(10px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));position:absolute}.sound-corner .sound-toggle{opacity:.7;background:#14161acc;border-radius:999px;height:36px;padding:0 8px}.sound-corner .sound-toggle:hover{opacity:1}.sound-unlock{z-index:40;border:1px solid var(--accent);color:var(--accent);background:#14161af2;border-radius:999px;padding:14px 24px;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 30px #d9a44159}.song-picker-tools{flex-wrap:wrap;align-items:center;gap:12px;margin:10px 0;display:flex}.song-picker-tools input[type=search]{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;flex:240px;padding:6px 10px}.song-picker-tools .check{align-items:center;gap:6px;display:flex}.song-picker-styles{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.song-picker-styles .chip{border-radius:999px;padding:3px 11px;font-size:13px}.song-picker-styles .chip.on{background:var(--accent);border-color:var(--accent);color:#14161a}.song-picker-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.song-picker-list li{background:#1b1f24;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:8px;padding:8px 10px;display:flex}.song-picker-row{align-items:center;gap:8px;display:flex}.song-picker-name{flex-direction:column;flex:1;min-width:0;display:flex}.song-picker-name strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.music-bar .music-list{white-space:nowrap;text-overflow:ellipsis;max-width:160px;overflow:hidden}@media (width<=600px){.music-list-name{display:none}}.song-picker-list li.playing{border-color:var(--accent)}.song-picker-list li.played{opacity:.6}.song-picker .list-add{margin-top:10px}.song-picker .history-head-actions{gap:6px;display:flex}.game-songs{border-top:1px solid #333a44;margin-top:16px;padding-top:10px}.game-songs .song-picker-tools{align-items:baseline}:root{--bg:#14161a;--fg:#e6e6e6;--accent:#d9a441;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;accent-color:var(--accent)}:where(button,select){color:var(--fg);font:inherit;cursor:pointer;background:#252a31;border:1px solid #333a44;border-radius:6px}:where(button,select):where(:hover:not(:disabled)){border-color:#4a5462}:where(button:disabled,select:disabled){opacity:.45;cursor:default}:where(button,select,input,textarea):where(:focus-visible){outline:2px solid var(--accent);outline-offset:1px}html,body,#root{background:var(--bg);height:100%;color:var(--fg);margin:0;font-family:system-ui,sans-serif;overflow:hidden}html,body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.board-host{touch-action:none;position:absolute;inset:0}.hud{top:calc(8px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));background:#0009;border-radius:6px;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;font-size:13px;display:flex;position:absolute}.hud button{font:inherit;padding:2px 8px}.offline-banner{left:50%;bottom:calc(12px + env(safe-area-inset-bottom));color:#fff;white-space:nowrap;background:#7a2a2a;border-radius:6px;padding:8px 14px;font-size:14px;position:absolute;transform:translate(-50%)}@media (pointer:coarse){.hud{font-size:15px}.hud button{min-width:44px;min-height:44px;padding:0 14px}}.hud button.active{background:var(--accent);color:#000}.role{border-radius:4px;padding:2px 8px;font-weight:600}.role-director{background:var(--accent);color:#000}.role-player{color:#fff;background:#2980b9}.center-screen{text-align:center;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:24px;display:flex}.center-screen h1{color:var(--accent);margin:0 0 12px}.hint{color:#9aa3ad;font-size:13px}.panel{top:calc(var(--hud-bottom,48px) + 8px);left:calc(8px + env(safe-area-inset-left));width:min(420px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)));box-sizing:border-box;-webkit-user-select:text;user-select:text;background:#14161af2;border:1px solid #333a44;border-radius:8px;padding:12px;position:absolute}.panel-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.panel .link{box-sizing:border-box;width:100%;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:6px;font:13px monospace}.panel-actions{gap:8px;margin-top:8px;display:flex}.panel button{font:inherit;padding:4px 10px}@media (pointer:coarse){.panel button{min-height:44px}}.panel-right{left:auto;right:calc(8px + env(safe-area-inset-right));width:min(340px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)))}.flag{cursor:pointer;align-items:flex-start;gap:10px;padding:6px 0;display:flex}.flag input{width:18px;height:18px;margin:2px 0 0}.flag small{color:#9aa3ad;font-size:12px;display:block}@media (pointer:coarse){.flag{padding:10px 0}.flag input{width:24px;height:24px}}.hud label.toggle{cursor:pointer;align-items:center;gap:4px;display:inline-flex}.panel{max-height:calc(100dvh - var(--hud-bottom,48px) - 16px - env(safe-area-inset-bottom));overflow-y:auto}.panel-section{border-top:1px solid #333a44;flex-direction:column;gap:8px;padding:10px 0;display:flex}.panel-section:first-of-type{border-top:0;padding-top:0}.field{flex-direction:column;flex:1;gap:4px;font-size:13px;display:flex}.field input{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;min-width:0;padding:6px;font-size:14px}.field-row{gap:8px;display:flex}.panel button.danger{color:#fff;background:#7a2a2a;border:1px solid #a33;align-self:flex-start}.hud select{font:inherit;max-width:220px;padding:2px 4px}@media (pointer:coarse){.hud select{min-height:44px}.field input{min-height:40px}}.no-board{pointer-events:none;text-align:center;color:#9aa3ad;justify-content:center;align-items:center;padding:24px;display:flex;position:absolute;inset:0}.error{color:#ff8a80;margin:0;font-size:13px}.modal-backdrop{z-index:10;box-sizing:border-box;background:#0009;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{box-sizing:border-box;background:#14161a;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:10px;max-width:100%;max-height:100%;padding:14px;display:flex;overflow-y:auto}.modal .hint{max-width:280px;margin:0}.modal button{font:inherit;padding:4px 10px}@media (pointer:coarse){.modal button{min-height:44px}}.crop-view{touch-action:none;cursor:grab;background:#0e1013;border-radius:6px;flex-shrink:0;align-self:center;position:relative;overflow:hidden}.crop-view:active{cursor:grabbing}.crop-view img{pointer-events:none;-webkit-user-drag:none;max-width:none;position:absolute}.crop-circle{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;position:absolute;box-shadow:0 0 0 9999px #0009}.place-view{background-image:linear-gradient(45deg,#15181c 25%,#0000 25% 75%,#15181c 75%),linear-gradient(45deg,#15181c 25%,#0000 25% 75%,#15181c 75%);background-position:0 0,8px 8px;background-size:16px 16px}.place-cells{pointer-events:none;position:absolute;top:0;left:0}.place-cell{fill:#4fc3f71f;stroke:#ffffff59;stroke-width:1px;stroke-dasharray:3 3}.place-edge{stroke:#4fc3f7;stroke-width:2px}.place-front{fill:#fff;stroke:#000;stroke-width:1px}.place-cell.proposed{fill:#ffb74d38;stroke:#ffb74d99}.place-edge.proposed{stroke:#ffb74d}.place-slot{fill:none;stroke:#ffffff1f;stroke-width:1px}.place-anchor{fill:#fff;stroke:#000;stroke-width:1px}.place-view.cells-mode{cursor:cell}.calibrate-view{cursor:crosshair}.calibrate-line{stroke:#4fc3f7;stroke-width:1px;opacity:.8}.calibrate-rect{fill:#ffb74d1f;stroke:#ffb74d;stroke-width:2px}.calibrate-row{flex-wrap:wrap;align-items:center;margin-top:0}.calibrate-row input.num{width:4.5em;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:4px}.calibrate-row button{min-width:32px;padding:4px 8px}.calibrate-tune{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.calibrate-tune:disabled{opacity:.5}.map-row{justify-content:space-between;align-items:center;margin-top:0}.board-size{align-items:flex-end}.erase-view canvas{touch-action:none;pointer-events:none;position:absolute}.brush-cursor{pointer-events:none;box-sizing:border-box;border:1.5px solid #fff;border-radius:50%;position:absolute;box-shadow:0 0 0 1px #000c,inset 0 0 0 1px #000c}.brush-cursor.erase{background:#f4433626}.brush-cursor.restore{background:#4caf502e}.erase-zoom{align-items:center;margin-top:0}.erase-zoom .hint{margin-right:auto}.field-head{justify-content:space-between;align-items:center;margin-top:4px;font-size:13px;display:flex}.panel-section>input{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:6px;font-size:14px}.eye{color:#9aa3ad;cursor:pointer;align-items:center;gap:4px;font-size:12px;display:inline-flex}.hp-editor{align-items:center;gap:6px;display:inline-flex}.hp-editor input.num{text-align:center;width:4.5em;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:4px}.hp-editor button{min-width:32px}.statuses{flex-wrap:wrap;gap:6px;display:flex}.chip{background:#2b313a;border-radius:12px;align-items:center;gap:4px;padding:2px 4px 2px 10px;font-size:13px;display:inline-flex}.chip:not(:has(button)){padding-right:10px}.chip button{color:#c9d1d9;cursor:pointer;background:0 0;border:0;padding:0 4px;font-size:15px}.chip-add{gap:4px;display:inline-flex}.chip-add input{font:inherit;width:9em;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:3px 6px;font-size:13px}.card-title{color:#9aa3ad;font-size:12px;display:block}.align-start{align-self:flex-start}@media (pointer:coarse){.chip button{min-width:32px;min-height:32px}.hp-editor button{min-width:44px}}.panel-actions{flex-wrap:wrap}.panel{overflow-x:hidden}.token-tip{z-index:5;background:#14161af2;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:6px;width:max-content;max-width:min(260px,100vw - 16px);padding:8px 10px;font-size:13px;display:flex;position:fixed;top:0;left:0;box-shadow:0 4px 16px #00000080}.token-tip .panel-head{align-items:flex-start;gap:12px;margin:0}.token-tip .panel-head button{color:#c9d1d9;cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:14px}.tip-line{margin:0}@media (pointer:coarse){.token-tip .panel-head button{min-width:32px;min-height:32px}}.segmented{display:flex}.panel .segmented button{border-radius:0;flex:1;margin-left:-1px}.panel .segmented button:first-child{border-radius:4px 0 0 4px;margin-left:0}.panel .segmented button:last-child{border-radius:0 4px 4px 0}.panel .segmented button.active{background:var(--accent);color:var(--bg);border-color:var(--accent);opacity:1}.shape-grid{align-self:center;gap:2px;width:100%;max-width:252px;display:grid}.panel .shape-grid button.shape-cell{aspect-ratio:1;color:#fff;cursor:pointer;background:#0e1013;border:1px solid #333a44;border-radius:3px;min-height:0;padding:0;font-size:11px}.panel .shape-grid button.shape-cell.on{border-color:var(--accent);background:#5b4a21}.panel .shape-grid button.shape-cell.center{cursor:default;opacity:1}.panel .hint{color:#9aa3ad;font-size:12px}.token-tip .panel-actions button{font:inherit;padding:4px 10px}.panel .segmented button{white-space:nowrap;min-width:0;padding:4px 6px}.panel button.template-thumb{cursor:grab;touch-action:none;background:#0e1013;border:1px solid #333a44;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:52px;height:52px;padding:2px;display:flex}.panel button.template-thumb:active{cursor:grabbing}.colors{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.panel button.swatch{border:2px solid #0000;border-radius:50%;width:24px;height:24px;min-height:0;padding:0}.panel button.swatch.active{border-color:#fff}.colors input[type=color]{background:0 0;border:1px solid #333a44;width:32px;height:26px;padding:0}.catalog{z-index:30;padding:calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));box-sizing:border-box;background:#0e1013f7;flex-direction:column;display:flex;position:fixed;inset:0}.catalog-head{align-items:center;gap:12px;margin-bottom:12px;display:flex}.catalog-head strong{font-size:18px}.catalog-head .hint{margin:0}.catalog-head button{font:inherit;margin-left:auto;padding:4px 10px}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-content:start;gap:12px;padding-bottom:8px;display:grid;overflow-y:auto}.board-card{cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;background:#1b1e23;border:2px solid #333a44;border-radius:8px;flex-direction:column;display:flex;position:relative;overflow:visible}.board-card:hover{border-color:#4a5462}.board-card.current{border-color:var(--accent)}.board-card.drop-here{border-color:#ffb74d;box-shadow:0 0 0 3px #ffb74d59}.board-card.dragging{opacity:.5}.board-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.board-thumb{aspect-ratio:4/3;background:#0e1013;border-radius:6px 6px 0 0;width:100%;display:block}.board-card-body{flex-direction:column;gap:2px;min-width:0;padding:8px 10px 10px;display:flex}.board-card-name{text-overflow:ellipsis;white-space:nowrap;padding-right:28px;overflow:hidden}.board-card-body .hint{margin:0}.board-status{border-radius:999px;align-self:flex-start;margin-top:4px;padding:1px 8px;font-size:12px}.board-status.seen{color:#9be0b0;background:#1f3d2a}.board-status.hidden{color:#e8a8a8;background:#3a2a2a}.card-menu-button{font:inherit;padding:0 8px;line-height:1.6;position:absolute;bottom:30px;right:6px}.card-menu{z-index:2;background:#14161a;border:1px solid #333a44;border-radius:6px;flex-direction:column;min-width:190px;padding:4px;display:flex;position:absolute;bottom:58px;right:6px}.card-menu button{font:inherit;text-align:left;color:var(--fg);background:0 0;border:0;border-radius:4px;padding:6px 10px}.card-menu button:hover:not(:disabled){background:#252a31}.card-menu button.danger{color:#ff8a80}.new-board-card{cursor:default;touch-action:auto;justify-content:center;min-height:160px;padding:10px}.new-board-card .panel-section{border:0;margin:0;padding:0}.new-board-button{font:inherit;color:var(--fg);background:0 0;border:2px dashed #4a5462;border-radius:6px;height:100%;padding:16px;font-size:16px}.level-switch{gap:2px;display:inline-flex}.board-switch{text-overflow:ellipsis;white-space:nowrap;max-width:40vw;overflow:hidden}.board-name{font-weight:600}@media (pointer:coarse){.card-menu button{min-height:44px}.card-menu-button{min-height:36px}}.tool-bar{left:50%;top:calc(var(--hud-bottom,48px) + 8px);z-index:20;background:#14161af2;border:1px solid #ffb74d;border-radius:8px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:calc(100vw - 32px);padding:8px 12px;display:flex;position:absolute;transform:translate(-50%)}.tool-bar button{font:inherit;padding:4px 10px}.link-kinds{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;display:grid}.link-kinds button{font:inherit;text-align:left;padding:6px 8px}.link-kinds button.active{outline:2px solid var(--accent)}.link-form{max-width:min(460px,100vw - 32px)}.link-row{font:inherit;text-align:left;color:var(--fg);cursor:pointer;background:#1b1e23;border:1px solid #333a44;border-radius:6px;padding:6px 8px}.link-row:hover{border-color:#4a5462}.crew-portrait{color:#fff;vertical-align:middle;border:1px solid #000;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:700;display:inline-flex;overflow:hidden}.crew-portrait.pc{border:2px solid #f4e7c3}.crew-portrait img{object-fit:cover;width:100%;height:100%}.crew-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.crew-list li{align-items:center;gap:6px;display:flex}.ship-card{flex-direction:column;gap:4px;margin-top:6px;display:flex}.crew-row{padding:2px 0}.boarding-actions{flex-direction:column;gap:4px;margin-top:6px;display:flex}.crew-pick{flex-direction:column;max-height:40vh;display:flex;overflow-y:auto}.crew-row-line{justify-content:space-between;align-items:center;gap:6px;display:flex}.crew-row-line button{font:inherit;flex-shrink:0;padding:2px 8px}.flag-grid{grid-template-columns:1fr 1fr;gap:4px 10px;margin-bottom:8px;display:grid}.token-origin{box-sizing:border-box;color:#c9d1d9;border-left:2px solid var(--accent);background:#2a2417;border-radius:4px;justify-content:space-between;align-items:center;gap:8px;min-height:30px;margin-bottom:10px;padding:3px 4px 3px 8px;font-size:13px;display:flex}.token-origin.none{color:#9aa3ad;background:0 0;border-left:2px dashed #4a5462}.token-origin-name{overflow-wrap:anywhere;min-width:0}.token-origin-name b{color:#f1d393}.token-origin>button{flex:none;padding:3px 8px;font-size:12px}.flag-compact{cursor:pointer;align-items:center;gap:6px;font-size:13px;display:flex}.flag-compact input{width:16px;height:16px;margin:0}.tabs{z-index:1;background:#14161afa;border-bottom:1px solid #333a44;gap:2px;margin:4px -12px 8px;padding:0 12px;display:flex;position:sticky;top:-12px}.tabs button{font:inherit;color:#9aa3ad;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:6px 12px}.tabs button.active{color:var(--fg);border-bottom-color:var(--accent)}[role=tabpanel][hidden]{display:none}.game-create{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.game-create input{min-width:200px;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;flex:1;padding:6px 8px}.finished-banner{left:50%;bottom:calc(12px + env(safe-area-inset-bottom));background:#333a44;border-radius:6px;padding:8px 14px;font-size:14px;position:absolute;transform:translate(-50%)}.game-name{color:#9aa3ad}.dialog-backdrop{z-index:30;box-sizing:border-box;background:#0009;justify-content:center;align-items:center;padding:12px;display:flex;position:absolute;inset:0}.dialog{box-sizing:border-box;-webkit-user-select:text;user-select:text;background:#14161a;border:1px solid #333a44;border-radius:8px;width:min(560px,100%);max-height:100%;padding:14px;overflow-y:auto}.dialog.wide{width:min(860px,100%)}.dialog h4{margin:12px 0 4px}.dialog .error{color:#e57373}.dialog button,.dialog select,.dialog input[type=text],.dialog input:not([type]){font:inherit;padding:4px 10px}@media (pointer:coarse){.dialog button,.dialog select,.dialog input{min-height:44px}}.dialog .primary{background:var(--accent);color:#000;border:0;border-radius:4px}.dialog .panel-actions{justify-content:flex-end}.plan-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.plan-list li{background:#ffffff0a;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}.plan-list li.cut{opacity:.7}.picker-bar{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.picker-bar input{min-width:160px;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;flex:1}.picker-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;max-height:50vh;display:grid;overflow-y:auto}.picker-grid .pick{cursor:pointer}.flag-row{align-items:center;gap:8px;display:flex}.spacer{flex:1}.batch-bar input,.editor-fields input:not([type=checkbox]),.editor-fields select,.editor-fields textarea,.tag-input input{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:5px 8px}.chip{color:var(--fg);background:#333a44;border:0;border-radius:12px;align-items:center;gap:4px;padding:2px 10px;font-size:13px;display:inline-flex}.chip.on{background:var(--accent);color:#000}.chip button{color:inherit;cursor:pointer;background:0 0;border:0;padding:0 2px}.batch-bar{z-index:5;border:1px solid var(--accent);background:#1d2128;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;padding:8px;display:flex;position:sticky;top:0}.batch-bar button.danger{color:#ff8a80}.meta{flex-wrap:wrap;gap:4px;display:flex}.badge{background:#333a44;border-radius:8px;padding:1px 7px;font-size:11px}.badge.player{background:#2980b9}.badge.cat{background:#5b4a21}.editor-grid{grid-template-columns:180px 1fr;gap:14px;display:grid}@media (width<=640px){.editor-grid{grid-template-columns:1fr}}.portrait-box{flex-direction:column;gap:6px;display:flex}.portrait-box img{aspect-ratio:1;object-fit:cover;border-radius:6px;width:100%}.editor-fields{flex-direction:column;gap:8px;display:flex}.editor-fields label,.editor-fields .label{color:#9aa3ad;flex-direction:column;gap:2px;font-size:13px;display:flex}.editor-fields label.check{color:var(--fg);flex-direction:row;align-items:center;gap:6px}.editor-fields .row,.plan-list .row{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.tag-input{flex-direction:column;gap:6px;display:flex}.tag-input input{box-sizing:border-box;width:100%}.tag-list{flex-wrap:wrap;gap:6px;display:flex}.tag-list .chip{box-sizing:border-box;overflow-wrap:anywhere;max-width:100%}.catalog-filters{flex-wrap:wrap;gap:8px;padding:0 12px 8px;display:flex}.catalog-filters input,.catalog-filters select{font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:4px 8px}.catalog-filters input{flex:1;min-width:180px}.notice-banner{left:50%;bottom:calc(60px + env(safe-area-inset-bottom));color:#fff;cursor:pointer;background:#7a2a2a;border-radius:6px;padding:8px 14px;font-size:14px;position:absolute;transform:translate(-50%)}.statuses-editor{flex-direction:column;gap:6px;display:flex}.statuses-editor .chip-add input,.template-name{flex:1;min-width:0}.hud{box-sizing:border-box;background:#14161af0;border:1px solid #333a44;border-radius:10px;gap:6px 0;padding:6px}.hud-group{border-right:1px solid #333a44;flex-wrap:wrap;align-items:center;gap:4px;padding:0 10px;display:flex}.hud-group:first-child{padding-left:2px}.hud-group:nth-last-child(2){border-right:0}.hud button{min-height:32px;padding:4px 10px}.hud .game-name{text-overflow:ellipsis;white-space:nowrap;max-width:24ch;padding:0 4px;overflow:hidden}.hud .toggle{padding:0 6px}.hud-readout{color:#9aa3ad;font-variant-numeric:tabular-nums;gap:10px;padding:0 10px;font-size:12px;display:flex}.hud button.plain,.panel button.plain,.modal button.plain{background:0 0;border-color:#0000}.hud button.plain:hover:not(:disabled),.panel button.plain:hover:not(:disabled),.modal button.plain:hover{background:#252a31}.hud button.accent,.panel button.accent,.modal button.accent{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:600}.hud button.active,.hud button.plain.active{border-color:var(--accent);color:#f1d393;background:#5b4a21}.panel,.modal{border-radius:10px}@media (width<=1500px){.hud .wide-only{display:none}}@media (width<=640px){.hud{gap:6px;padding:6px}.hud-group{border-right:0;gap:6px;padding:0}.hud-group.hud-where{border-bottom:1px solid #333a44;flex:100%;padding:0 0 6px}.hud-group:not(.hud-where){display:contents}.hud .toggle{padding:0 4px}.hud .game-name,.hud-readout{display:none}}.catalog-panel .panel-head{gap:6px}.catalog-panel .panel-head strong{font-size:16px}.catalog-search{box-sizing:border-box;width:100%;min-height:34px;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:6px;margin-bottom:8px;padding:5px 10px}.catalog-tabs{margin-bottom:8px}.panel .catalog-tabs button{font-size:13px}.segment-count{opacity:.65}.catalog-selects{grid-template-columns:repeat(auto-fit,minmax(10.5em,1fr));gap:6px;margin-bottom:8px;display:grid}.catalog-selects select{min-width:0;min-height:30px;font-size:13px}.catalog-list{margin:0;padding:0;list-style:none}.catalog-row{border-bottom:1px solid #252a31}.catalog-row:last-child{border-bottom:0}.catalog-row.active{box-shadow:inset 2px 0 0 var(--accent);background:#2a2417}.catalog-row.archived{opacity:.75}.catalog-line{align-items:center;gap:8px;padding:6px 4px;display:flex}.catalog-line>svg{flex:none}.catalog-row.no-template .template-thumb{border-style:dashed}.catalog-row.no-template .template-thumb svg{opacity:.55}.panel button.catalog-pick{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:0;padding:4px;display:flex}.catalog-name{overflow-wrap:anywhere;max-width:100%}.catalog-name.grow{flex:1;min-width:0}.catalog-detail{color:#9aa3ad;overflow-wrap:anywhere;max-width:100%;font-size:12px}.panel button.catalog-create{color:var(--accent);white-space:nowrap;flex:none;font-size:12px}.panel button.catalog-open{white-space:nowrap;flex:none;font-size:12px}.catalog-empty{padding:16px 4px}.duplicate-ask{width:min(400px,100%)}.duplicate-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.duplicate-list li{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.duplicate-where{overflow-wrap:anywhere;flex:1;min-width:0}.modal.duplicate-ask .hint{max-width:none}@media (width<=640px){.catalog-panel.is-placing{display:none}}.picker-grid .place-image{aspect-ratio:3/2;object-fit:cover;width:100%;display:block}.place-target{border:1px solid #333a44;border-radius:6px;flex-direction:column;gap:6px;margin:10px 0 0;padding:10px 12px;display:flex}.place-target legend{color:var(--muted);padding:0 4px;font-size:12px}.place-target>input,.place-target>select{margin-left:24px}.picker-grid .board-card-name{white-space:normal;overflow-wrap:anywhere;padding-right:0}.picker-grid .flag-row{align-items:flex-start}.picker-grid .flag-row input{margin-top:3px}.catalog-head .catalog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto;display:flex}.catalog-head .catalog-actions button{margin-left:0}.board-card-place{overflow-wrap:anywhere}.move-group h4{margin:12px 0 6px}.dialog .move-group .picker-grid{max-height:none}.song-player{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.song-player .play{border-radius:50%;flex:none;width:36px;height:36px;padding:0;font-size:14px}.song-player input[type=range]{flex:160px;min-width:120px}.song-player input[type=range].clipped,.library .dialog .song-player input[type=range].clipped{appearance:none;background:linear-gradient(to right, #333a44 var(--from), var(--accent) var(--from), var(--accent) var(--until), #333a44 var(--until));border:0;border-radius:3px;height:6px;min-height:0;padding:0}.song-player input[type=range].clipped::-webkit-slider-thumb{appearance:none;background:var(--fg);border-radius:50%;width:14px;height:14px}.song-player input[type=range].clipped::-moz-range-thumb{background:var(--fg);border:0;border-radius:50%;width:14px;height:14px}.song-player .time{color:#9aa3ad;font-variant-numeric:tabular-nums;font-size:13px}.song-player .error{color:#f08a7e;font-size:13px}.character-card .portrait.song{color:var(--accent);background:radial-gradient(circle at 50% 40%,#3a3224,#22262c 70%)}.song-sheet{padding:18px}.song-sheet .song-player{margin-bottom:8px}.song-file{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.song-users{margin:4px 0 0;padding-left:18px}.song-users li{margin:2px 0}.song-users button.link-button,.song-link-head button.link-button{min-height:0;color:var(--accent);background:0 0;border:0;padding:2px 0}.music-tab{flex-direction:column;gap:12px;display:flex}.music-tab>select{align-self:flex-start}.song-links{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.song-link{background:#1b1f24;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.song-link-head{align-items:center;gap:10px;display:flex}.song-link-fields{flex-wrap:wrap;gap:12px;display:flex}.song-link-fields label{flex-direction:column;gap:4px;font-size:13px;display:flex}.song-link-fields input{width:90px}.song-link-fields input[aria-invalid=true]{border-color:#d9534f}.song-search{max-width:480px;position:relative}.song-search input[type=search]{box-sizing:border-box;width:100%;font:inherit;color:var(--fg);background:#0e1013;border:1px solid #333a44;border-radius:4px;padding:6px 10px}.song-search-results{background:#14161a;border:1px solid #333a44;border-radius:8px;flex-direction:column;gap:2px;max-height:360px;margin:6px 0 0;padding:6px;list-style:none;display:flex;overflow-y:auto;box-shadow:0 6px 20px #00000080}.song-search-results li.hint{padding:8px 12px}.song-search-results button{text-align:left;width:100%;min-height:38px;color:var(--fg);font:inherit;background:0 0;border:0;border-radius:4px;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.song-search-results button.active{background:#252a31}.song-search-results button .hint{flex:none}.song-player .wave-bar{flex:240px;min-width:160px;position:relative}.song-player .wave-bar canvas{cursor:pointer;touch-action:none;background:#0e1013;border-radius:4px;width:100%;height:56px;display:block}.song-player .wave-loading{color:#9aa3ad;pointer-events:none;font-size:11px;position:absolute;top:4px;left:8px}.library{--surface:#1b1e23;--raised:#252a31;--well:#0e1013;--line:#333a44;--line-strong:#4a5462;--muted:#9aa3ad;--radius:8px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;overscroll-behavior:contain;-webkit-user-select:text;user-select:text;height:100%;font-size:14px;overflow-y:auto}.library-top{background:var(--bg);border-bottom:1px solid var(--line);padding:calc(20px + env(safe-area-inset-top)) max(20px, calc((100% - 1160px) / 2)) 0}.library-top.plain{padding-bottom:14px}.library-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;min-height:38px;display:flex}.library-bar h1{color:var(--accent);margin:0;font-size:26px;line-height:1.2}.create-menu{position:relative}.create-menu .card-menu{z-index:5;min-width:160px;top:calc(100% + 4px);bottom:auto;right:0}.library-tabs{scrollbar-width:none;gap:28px;margin-top:14px;display:flex;overflow-x:auto}.library-tabs a{white-space:nowrap;color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:8px;padding:10px 2px;font-size:15px;text-decoration:none;display:inline-flex}.library-tabs a:hover{color:var(--fg)}.library-tabs a[aria-current=page]{color:var(--fg);border-bottom-color:var(--accent)}.tab-count{box-sizing:border-box;background:var(--raised);min-width:20px;color:var(--muted);text-align:center;border-radius:999px;padding:1px 7px;font-size:12px}.library-tabs a[aria-current=page] .tab-count{color:#f1d393;background:#5b4a21}.library-body{padding:20px max(20px, calc((100% - 1160px) / 2)) calc(32px + env(safe-area-inset-bottom))}.library button,.library select,.library .enter{box-sizing:border-box;min-height:36px;font:inherit;color:var(--fg);background:var(--raised);border:1px solid var(--line);cursor:pointer;border-radius:6px;padding:6px 14px;line-height:1.3}.library select{max-width:100%}.library button:hover:not(:disabled),.library select:hover{border-color:var(--line-strong)}.library button:disabled{opacity:.45;cursor:default}.library :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.library button.primary,.library .enter{background:var(--accent);border-color:var(--accent);color:#14161a;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.library button.primary:hover:not(:disabled),.library .enter:hover{filter:brightness(1.1)}.library button.ghost{color:var(--muted);background:0 0;border-color:#0000}.library button.ghost:hover:not(:disabled){background:var(--raised);color:var(--fg)}.library button.danger{color:#ff8a80}.library button.ghost.danger:hover:not(:disabled){color:#ff8a80;background:#3a2a2a}.library button.link-button{min-height:0;color:var(--accent);background:0 0;border:0;padding:4px 0;font-size:13px}.library button.link-button:hover{text-decoration:underline}.library button.chip{border-radius:999px;min-height:28px;padding:3px 11px;font-size:13px}.library button.chip.on{background:var(--accent);border-color:var(--accent);color:#14161a}.library .chip button{min-height:0;color:inherit;background:0 0;border:0;padding:0 2px}.chip-count{opacity:.65}.library .toolbar{flex-wrap:wrap;gap:8px;display:flex}.library .search{box-sizing:border-box;min-width:0;min-height:36px;font:inherit;color:var(--fg);background:var(--well);border:1px solid var(--line);border-radius:6px;flex:260px;padding:6px 12px}.library button.filter-toggle.on{border-color:var(--accent);color:var(--accent)}.filter-drawer{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:12px;margin-top:10px;padding:12px;display:flex}.filter-fields{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.filter-fields label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.filter-fields select{font-size:14px}.tag-filter{flex-wrap:wrap;gap:6px;display:flex}.list-head{min-height:28px;color:var(--muted);flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0 10px;font-size:13px;display:flex}.library .batch-bar{top:8px}.character-grid,.place-grid,.game-list{margin:0;padding:0;list-style:none}.character-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;display:grid}.place-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;display:grid}.character-card,.place-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;transition:border-color .12s;position:relative;overflow:hidden}.character-card:hover,.place-card:hover{border-color:var(--line-strong)}.character-card.picked{border-color:var(--accent)}.character-card.archived .portrait{filter:grayscale();opacity:.6}.library button.character-open{border-radius:var(--radius);text-align:left;background:0 0;border:0;flex-direction:column;align-items:stretch;width:100%;height:100%;padding:0;display:flex}.library button.character-open:focus-visible,.library .place-open:focus-visible{outline-offset:-2px}.character-card .portrait{aspect-ratio:1;color:#6b7480;background:#2a2f36;flex:none;justify-content:center;align-items:center;width:100%;font-size:56px;display:flex;overflow:hidden}.character-card .portrait img{object-fit:cover;object-position:50% 25%;width:100%;height:100%}.character-card .portrait .board-thumb{width:100%;height:100%}.card-body{flex-direction:column;gap:4px;min-width:0;padding:10px 12px 12px;display:flex}.card-name{overflow-wrap:anywhere;font-size:15px}.card-sub,.card-tags{color:var(--muted);overflow-wrap:anywhere;font-size:13px}.card-tags{font-size:12px}.library .badge{box-sizing:border-box;overflow-wrap:anywhere;border-radius:999px;max-width:100%;padding:2px 8px}.library .badge.cat{color:#f1d393}.character-card .pick{z-index:2;width:20px;height:20px;accent-color:var(--accent);cursor:pointer;margin:0;position:absolute;top:10px;left:10px}.library button.star{z-index:2;min-width:30px;min-height:30px;color:var(--accent);background:#0e1013b3;border:0;border-radius:50%;padding:0;font-size:17px;position:absolute;top:6px;right:6px}@media (hover:hover) and (pointer:fine){.character-card .pick,.library button.star{opacity:0}.character-card:hover :is(.pick,.star),.character-card:focus-within :is(.pick,.star),.character-grid.selecting .pick,.character-card .pick:checked,.library button.star.on{opacity:1}}.place-open{height:100%;color:var(--fg);flex-direction:column;text-decoration:none;display:flex}.place-map{background:var(--well);padding:8px;display:block}.place-map .board-thumb{border-radius:4px}.place-card .card-body{padding-bottom:44px}.library button.place-label{min-height:30px;color:var(--accent);background:0 0;border-color:#0000;padding:3px 10px;font-size:13px;position:absolute;bottom:6px;right:6px}.game-list{flex-direction:column;gap:10px;display:flex}.game-row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 16px;display:flex}.game-row.is-active{border-color:#6b5526}.game-row-main{min-width:0;color:var(--fg);flex-direction:column;flex:240px;gap:3px;text-decoration:none;display:flex}.game-row-main strong{overflow-wrap:anywhere;font-size:18px}.game-row.is-finished .game-row-main strong{color:var(--muted)}.game-row-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.library select.status-select.is-active{color:#9be0b0;background:#1f3d2a}.library select.status-select.is-finished{color:var(--muted)}.game-row .manual-link{box-sizing:border-box;color:var(--fg);background:var(--well);border:1px solid var(--line);border-radius:4px;flex-basis:100%;padding:6px;font:13px monospace}.empty-state{text-align:center;border:1px dashed var(--line);border-radius:var(--radius);flex-direction:column;align-items:center;gap:8px;padding:56px 16px;display:flex}.empty-state strong{font-size:17px}.empty-state p{color:var(--muted);margin:0 0 6px}.library .dialog-backdrop{position:fixed}.library .dialog{background:#181b20;border-radius:12px;padding:18px}.library .dialog.narrow{width:min(420px,100%)}.library .dialog h4{color:var(--muted);margin-top:18px;font-size:13px}.library .dialog input:not([type=checkbox]),.library .dialog textarea{box-sizing:border-box;min-height:36px;color:var(--fg);background:var(--well);border:1px solid var(--line);font:inherit;border-radius:6px;padding:6px 10px}.library .dialog input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--accent);margin:0}.library .dialog textarea{resize:vertical}.library .editor-fields{gap:12px}.library .editor-fields .label{margin-bottom:4px}.library .editor-fields .short-field{align-self:flex-start}.library .panel-actions{margin-top:18px}.library .sheet{padding:0}.library .sheet-head{z-index:2;border-bottom:1px solid var(--line);background:#181b20;margin:0;padding:14px 18px;position:sticky;top:0}.sheet-title{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.sheet-title strong{font-size:18px}.library .sheet .editor-grid{grid-template-columns:220px minmax(0,1fr);gap:20px;padding:18px}.library .sheet>.error{padding:0 18px 10px}.library .sheet-actions{z-index:2;border-top:1px solid var(--line);background:#181b20;margin:0;padding:12px 18px;position:sticky;bottom:0}.library .sheet .portrait-box img{object-position:50% 25%}.library .portrait-box>.hint{aspect-ratio:1;background:#2a2f36;border-radius:6px;justify-content:center;align-items:center;display:flex}@media (width<=640px){.library-top,.library-body{padding-left:14px;padding-right:14px}.library-bar h1{font-size:21px}.library-tabs{gap:20px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.place-grid,.library .sheet .editor-grid{grid-template-columns:minmax(0,1fr)}.library .sheet .portrait-box img,.library .portrait-box>.hint{align-self:center;width:160px}.library .sheet-actions .spacer{display:none}.library .sheet-actions button{flex:40%;justify-content:center}.library .toolbar select{flex:140px;min-width:0}}@media (pointer:coarse){.library button,.library select,.library .enter,.library .search{min-height:44px}.library-tabs a{box-sizing:border-box;min-height:44px}.library button.chip{min-height:36px}.library button.star{min-width:40px;min-height:40px}.library .chip button{min-width:28px;min-height:32px}.character-card .pick{width:24px;height:24px}}.sheet-tabs{border-bottom:1px solid var(--line);gap:24px;padding:0 18px;display:flex}.library .sheet-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;align-items:center;gap:8px;padding:10px 2px;display:inline-flex}.library .sheet-tabs button[aria-selected=true]{color:var(--fg);border-bottom-color:var(--accent)}.library .badge.token{color:#9be0b0;background:#1f3d2a}.token-tab{padding:18px}.token-switch{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;align-items:flex-start;gap:10px;padding:12px;display:flex}.token-switch.on{border-color:#2f6b45}.token-switch span{flex-direction:column;gap:3px;display:flex}.token-switch small{color:var(--muted);font-size:12px}.token-switch small.everyone{color:var(--accent)}.token-body{border:0;grid-template-columns:180px minmax(0,1fr);gap:20px;min-width:0;margin:16px 0 0;padding:0;display:grid}.token-body:disabled{opacity:.45}.token-body:disabled :is(button,input,label){cursor:default}.token-preview{text-align:center;background:var(--well);border:1px solid var(--line);border-radius:var(--radius);overflow-wrap:anywhere;flex-direction:column;align-self:start;align-items:center;gap:6px;min-width:0;padding:12px;display:flex;position:sticky;top:64px}.token-preview .hint{font-size:12px}.token-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 20px;display:grid}.token-fields .form-column{min-width:0}.library .token-fields .segmented{flex-wrap:wrap;row-gap:4px}.library .token-fields .segmented button{white-space:nowrap;border-radius:0;flex:auto;min-width:0;margin-left:-1px;padding:4px}.library .token-fields .segmented button:first-child{border-radius:6px 0 0 6px;margin-left:0}.library .token-fields .segmented button:last-child{border-radius:0 6px 6px 0}.library .token-fields .segmented button.active{background:var(--accent);border-color:var(--accent);color:#14161a;opacity:1;position:relative}.library .token-fields button.shape-cell{aspect-ratio:1;background:var(--well);border-radius:3px;min-height:0;padding:0;font-size:11px}.library .token-fields button.shape-cell.on{border-color:var(--accent);opacity:1;background:#5b4a21}.library .token-fields button.swatch{border:2px solid #0000;border-radius:50%;width:24px;height:24px;min-height:0;padding:0}.library .token-fields button.swatch.active{border-color:#fff}.library .token-fields input[type=color]{width:34px;height:26px;min-height:26px;padding:0}.library .token-fields input.num{width:6em}.library .token-fields .chip-add{display:flex}.library .token-fields .chip-add input{flex:1;width:auto}.library .token-fields .panel-actions{justify-content:flex-start;margin-top:4px}.library .token-fields .flag input{flex:none}.library .token-fields .field-head{flex-wrap:wrap;gap:2px 8px}.field-origin{color:var(--muted);align-items:center;margin-left:auto;font-size:11px;display:inline-flex}.library .field-origin button{min-height:0;color:var(--accent);background:0 0;border:0;padding:0;font-size:11px;text-decoration:underline}.library .modal .segmented button.active{background:var(--accent);color:#14161a}.library .modal input[type=range]{background:0 0;border:0;min-height:0;padding:0}@media (width<=760px){.token-fields{grid-template-columns:minmax(0,1fr)}}@media (width<=640px){.token-body{grid-template-columns:minmax(0,1fr)}.token-preview{justify-self:stretch;position:static}}.library .sheet [role=tabpanel][hidden]{display:none}.library.overlay{z-index:40;height:auto;position:fixed;inset:0;overflow:hidden}.token-note{color:var(--accent);margin:0;font-size:13px}.place-maps{flex-direction:column;gap:14px;display:flex}.map-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.map-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;display:grid}.map-thumb{aspect-ratio:3/2;background:var(--well);border-radius:4px;display:block;overflow:hidden}.map-thumb .board-thumb{width:100%;height:100%}.map-info{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.map-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.map-add{border:1px dashed var(--line);border-radius:var(--radius);flex-direction:column;gap:8px;padding:12px;display:flex}.map-add .row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.map-add .row label{flex-direction:column;gap:4px;display:flex}.map-add .row label:first-child{flex:200px}.map-add input.num{width:6em}@media (width<=640px){.map-item{grid-template-columns:72px minmax(0,1fr)}.map-actions{grid-column:1/-1;justify-content:flex-start}}.library .badge.world{color:#a9cdef;background:#1f3346}.library .map-add .check{align-items:center;gap:8px;display:flex}.library .map-add .check input{margin:0}.library .sheet-tabs button.tab-off:not([aria-selected=true]){opacity:.55}.no-sheet{flex-direction:column;gap:8px;display:flex}.no-sheet p{margin:0}
