/* V2: interactive formats have a role, a current decision and a place to act. */
.desk-head{height:64px}.desk-title{padding:19px 0 22px}.desk-title h1{font-size:24px}.previous-link{margin-left:auto;font-size:12px;color:var(--muted)}.overview-link{margin-left:4px}.preview-controls{height:44px}.specimen-title h2{font-size:14px}.specimen-title>a{padding:7px 0}.annotation{font-size:11px;margin-top:14px;line-height:1.8}.design-notes{margin-top:28px}.desk-foot{margin-top:0}.phone{border-radius:30px}.board{margin:auto;max-width:min(100%,calc((100svh - 230px)*1.386 + 60px))}.preview-controls button{padding:5px 10px;font-size:11px}.preview-controls>span{font-size:10px}.state-controls{gap:10px;font-size:10px}.state-controls>span{white-space:nowrap}.state-controls button{white-space:nowrap}
.play-link{border:0;background:var(--primary);color:#fff;display:flex;gap:7px;align-items:center;justify-content:center;min-height:32px;padding:6px 10px 6px 12px;border-radius:9px;font-size:13px}.play-link svg:first-child{width:15px;height:15px}.play-link svg:last-child{width:12px;height:12px}.home-scroll .app-heading{margin-bottom:18px}.home-scroll .section-head{margin-bottom:7px}.home-scroll .filters{margin-bottom:14px}.home-scroll .book-card>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:46px}.home-scroll .app-section{margin-bottom:25px}.home-scroll .book-card{flex-basis:144px}.play-cover{border-radius:6px 20px 6px 6px;border:1px solid var(--primary)}.play-cover:after{inset:35% 0 0;background:linear-gradient(transparent,#0c1c2ef5)}.format-mark{position:absolute;z-index:2;top:9px;left:9px;background:#0c1c2ef0;color:#fff;border-radius:6px;padding:5px 7px;display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.2}.format-mark svg{width:11px;height:11px}.play-cover .cover-title{bottom:43px;font-size:19px;line-height:1.12;left:11px;right:10px}.cover-role{position:absolute;z-index:2;left:11px;right:11px;bottom:11px;display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:11px;line-height:20px;border-top:1px solid #ffffff40;padding-top:6px}.cover-role svg{width:14px;height:14px}.interactive-card>strong{color:var(--primary)}
/* Play: a scene poster rather than an enlarged book tile. */
.play-scroll .app-heading{margin-bottom:20px}.story-stage{position:relative;isolation:isolate;height:306px;border-radius:20px;overflow:hidden;background:var(--primary);color:white}.stage-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 24%}.stage-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0c1c2e15 0%,#0c1c2e00 23%,#0c1c2e6b 48%,#0c1c2ef5 100%)}.stage-top{position:absolute;top:14px;left:15px;right:12px;display:flex;align-items:center;justify-content:space-between}.role-pass{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;background:#0c1c2edb;color:#fff;border:1px solid #ffffff24;border-radius:6px;font-size:10px;letter-spacing:1px;font-weight:500;line-height:1.25}.role-pass svg{width:13px;height:13px}.stage-top .icon-btn{background:#0c1c2e80;width:36px;height:36px;min-width:36px;border-radius:50%;color:#fff}.stage-top .icon-btn svg{width:17px;height:17px}.stage-top .stage-saved{background:#fff;color:var(--primary)}.stage-copy{position:absolute;left:20px;right:20px;bottom:18px}.stage-copy h2{font:29px/1.07 Georgia,serif;letter-spacing:-.65px;color:white;font-weight:400;margin:0 0 17px}.stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.stage-bottom>span{color:#dee5eb;font-size:12px}.stage-bottom>button{display:flex;align-items:center;gap:13px;min-height:44px;border:0;background:white;color:var(--primary);padding:10px 14px;border-radius:10px;font-size:14px;font-weight:500}.stage-bottom svg{width:17px;height:17px}.decision-teaser{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 0 17px;border-bottom:1px solid var(--line)}.teaser-label{font-size:11px;color:var(--muted)}.teaser-question blockquote{font:20px/1.3 Georgia,serif;letter-spacing:-.35px;margin:6px 0 0}.teaser-open{display:grid;grid-template-columns:19px auto;align-items:center;gap:5px 9px;text-align:left;min-height:55px;padding:7px 10px;background:var(--selected);color:var(--primary);border:0;border-radius:9px;font-size:11px;line-height:1.4;flex-shrink:0}.teaser-open>svg:first-child{width:18px;height:18px;grid-row:1/3}.teaser-open>svg:last-child{width:15px;height:13px;grid-column:2}.stage-catalog{padding-top:20px}.stage-catalog .section-head{margin-bottom:10px}.stage-catalog h2{font-size:18px}.mini-filters{display:flex;align-items:center;gap:10px}.mini-filters button{font-size:11px;padding:3px 0;min-height:36px;background:none;border:0;border-bottom:1.5px solid transparent;color:var(--muted)}.mini-filters button[aria-pressed=true]{color:var(--primary);border-bottom-color:var(--primary)}.scene-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.story-window{padding:0;border:0;background:none;text-align:left;color:var(--ink);width:100%;min-width:0}.window-art{position:relative;display:block;height:134px;border-radius:12px;overflow:hidden;background:var(--primary)}.window-art>img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block}.window-art:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#0c1c2eaa)}.window-art .role-pass{position:absolute;bottom:10px;left:9px;z-index:2;font-size:9px;padding:5px 6px;letter-spacing:.7px;background:#0c1c2edb}.window-art .role-pass svg{width:10px;height:10px}.window-copy{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;padding-top:10px}.window-copy strong{font:18px/1.3 Georgia,serif;font-weight:400}.window-copy svg{width:16px;height:16px;flex-shrink:0;margin-top:3px}.play-scroll .resume{margin-bottom:18px}.play-scroll .resume .cover{border-radius:5px}.play-scroll .resume .cover-title{display:none}
/* Reading: the branch is the current decision, never a spoiler map. */
.reader-identity{display:flex;align-items:center;justify-content:center;gap:7px;font:11px/1.4 'Helvetica Neue',sans-serif;letter-spacing:1.3px;color:var(--r-muted)}.reader-identity svg{width:15px;height:15px;color:var(--r-accent)}.reader-head .reader-book{color:var(--r-ink);max-width:235px}.reader-scroll h1{font-size:27px;margin-bottom:24px}.chapter-label{font-size:12px;letter-spacing:.15px}.decision-block{margin-top:25px}.decision-marker{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--r-accent);font-size:10px;letter-spacing:1.6px;margin:0 0 18px}.decision-marker:before,.decision-marker:after{content:'';height:1px;flex:1;background:var(--r-line)}.decision-marker svg{width:14px;height:14px}.choice-prompt{text-align:center;font-size:23px;margin:0 0 12px;letter-spacing:-.3px}.fork-lines{display:block;width:100%;height:36px;stroke:var(--r-muted);stroke-width:1;stroke-linejoin:round;opacity:.7}.choice-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px}.choice-paths .choice-option{margin:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;padding:15px 14px 17px;min-height:162px;height:100%;border:1px solid var(--r-line);border-radius:3px 3px 13px 13px;font-size:15px;line-height:1.55}.choice-paths .choice-letter{width:100%;height:23px;display:flex;justify-content:space-between;align-items:center;border:0;border-radius:0;font-size:11px;letter-spacing:1px;color:var(--r-muted);background:none}.choice-letter svg{width:15px;height:15px}.choice-paths .choice-option[aria-checked=true]{background:var(--r-surface);border-color:var(--r-accent);box-shadow:inset 0 3px var(--r-accent)}.choice-paths .choice-option[aria-checked=true] .choice-letter{background:none;color:var(--r-accent);border:0}.choice-confirm{margin-top:19px;min-height:50px;font-size:15px}.device[data-stage=choice] .reader-scroll{padding-bottom:28px}
/* The full-width midnight area marks a transition from reading to acting. */
.device[data-stage=scene] .reader-scroll{padding-bottom:0}.turn-panel{position:relative;isolation:isolate;background:var(--primary);color:#fff;margin:27px -28px 0;padding:0 28px 28px;min-height:363px;overflow:visible}.turn-boundary{display:flex;align-items:center;justify-content:center;gap:0;position:relative;top:-16px;margin:0 -28px -7px;height:33px;z-index:3}.turn-boundary>span{height:1px;background:#ffffff35;flex:1}.turn-boundary>svg{width:34px;height:34px;padding:9px;border-radius:50%;background:var(--primary);outline:7px solid var(--paper);color:#fff}.turn-art{position:absolute;z-index:-1;inset:0 0 0 42%;background:url('../assets/commercial-romance-v1.png') 70% 35%/cover no-repeat;opacity:.1;mask-image:linear-gradient(90deg,transparent,#000);-webkit-mask-image:linear-gradient(90deg,transparent,#000)}.turn-content{position:relative;z-index:2}.turn-label{display:flex;align-items:center;justify-content:space-between;color:#becbd7;font-size:10px;letter-spacing:1.5px;margin:14px 0 18px}.turn-label>span:last-child{letter-spacing:.2px;font-size:12px}.turn-panel h2{font:25px/1.4 Georgia,serif;font-weight:400;letter-spacing:-.4px;margin:0 0 18px;max-width:310px}.scene-partner{display:flex;align-items:center;gap:10px;margin-bottom:24px;color:#d3dde5;font-size:13px}.person-avatar{display:block;width:34px;height:34px;flex-shrink:0;border-radius:50%;background-color:var(--primary);background-image:url('../assets/commercial-romance-v1.png');background-repeat:no-repeat;border:1px solid #ffffff40}.person-avatar.ethan{background-size:380%;background-position:84% 12%}.person-avatar.ava{background-size:350%;background-position:33% 11%}.action-entry{width:100%;min-height:58px;border:1px solid #ffffff65;border-radius:10px;padding:10px 12px 10px 16px;display:flex;align-items:center;justify-content:space-between;background:#ffffff0d;color:#fff;gap:10px;text-align:left;font-size:15px}.action-entry>span{flex:1}.action-entry>svg{width:30px;height:30px;padding:6px;border-radius:7px;background:#fff;color:var(--primary)}.turn-skip{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:100%;padding:8px;margin-top:8px;border:0;background:none;color:#c4d0dc;font-size:12px}.turn-skip svg{width:14px;height:14px}.turn-error{color:#d2dde6;font-size:13px;line-height:1.65;margin:0 0 14px}.device[data-theme=warm] .turn-panel{background:#152436}.device[data-theme=night] .turn-panel{background:#111d2b}.device[data-theme=night] .turn-boundary>svg{background:#111d2b}.device[data-theme=warm] .turn-boundary>svg{background:#152436}
/* A scene reads like a script: a person speaking, then room for the player. */
.interaction-head{padding-top:8px;padding-bottom:8px;border-bottom:0}.interaction-head .interaction-title strong{font-size:16px;font-weight:500;text-align:center;margin-left:18px}.interaction-head .text-btn{font-size:13px}.scene-context{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 24px;padding:8px 0 15px;border-bottom:1px solid var(--r-line);font-size:11px;color:var(--r-muted);flex-shrink:0}.context-route{display:flex;align-items:center;gap:7px;letter-spacing:1px;font-size:9px;color:var(--r-accent)}.context-route svg{width:13px;height:13px}.dialogue-scroll{padding:24px 26px 20px}.actor-intro{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--r-muted);margin:0 0 18px}.actor-intro .person-avatar{width:44px;height:44px}.actor-rule{height:1px;flex:1;background:var(--r-line);margin-left:4px}.actor-quote{font:30px/1.35 Georgia,serif;margin:0 0 14px;letter-spacing:-.4px}.stage-direction{font:italic 17px/1.75 Georgia,serif;color:var(--r-muted);margin:0 0 26px}.player-heading{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:var(--r-muted);margin:22px 0 10px}.player-turn{padding:4px 0 4px 16px;margin:0 0 24px;background:none;border-radius:0;border-left:2px solid var(--r-accent);font:italic 19px/1.65 Georgia,serif}.dialogue-byline{gap:8px;font-size:12px;margin:12px 0}.dialogue-byline .person-avatar{width:26px;height:26px}.dialogue-scroll .prose{font-size:19px;line-height:1.65}.draft-panel{padding:16px 24px 16px;border-top:1px solid var(--r-line);background:var(--paper)}.suggestion-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--r-muted);font-size:11px;margin-bottom:10px}.suggestion-heading>span:last-child{font-size:10px}.suggestions{gap:0;margin:0 0 18px;align-items:stretch}.suggestions button{border:0;border-bottom:1px solid var(--r-line);padding:10px 0;background:none;border-radius:0;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.55;min-height:52px}.suggestions button:first-child{padding-top:5px}.suggestions button svg{width:15px;height:15px;color:var(--r-accent);flex-shrink:0}.script-heading{display:flex;align-items:center;gap:8px;margin-bottom:11px;font-size:12px;color:var(--r-muted)}.script-heading .person-avatar{width:25px;height:25px;border-color:var(--r-line)}.script-heading label{color:var(--r-ink)}.script-heading .char-count{margin-left:auto;font-size:10px}.composer{padding:0 0 10px 0;border:0;border-bottom:1px solid var(--r-accent);border-radius:0;gap:12px;align-items:flex-end}.composer:focus-within{border:0;border-bottom:2px solid var(--r-accent);padding-bottom:9px}.composer textarea{font:italic 19px/1.55 Georgia,serif;height:67px;padding:0;min-height:58px}.send-btn{width:42px;height:42px;min-width:42px;border-radius:10px}.send-btn svg{width:21px;height:21px}.draft-panel .inline-status{font-size:13px;line-height:1.5;margin-bottom:15px}.interaction .inline-status .text-btn{font-size:13px;display:inline-flex}.ending-seal{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;border:1px solid var(--r-line);color:var(--r-accent);margin:14px auto 24px}.ending-seal svg{width:25px;height:25px}.device[data-stage=ending] .end-mark{margin-top:0}.device[data-stage=ending] .ending-heading{font-size:32px;margin-bottom:30px}
@media(prefers-reduced-motion:no-preference){.choice-option,.action-entry,.teaser-open{transition:background 150ms,border-color 150ms}.action-entry:active{background:#ffffff20}.story-stage button:active{opacity:.85}}
@media(min-width:761px){body.focus .board{max-width:390px}.board{gap:30px}}
@media(max-width:1100px) and (min-width:761px){.board{gap:20px;max-width:min(100%,calc((100svh - 230px)*1.386 + 40px))}.state-controls{gap:6px;font-size:9px}.preview-controls button{padding:5px 8px}}
@media(max-width:760px){.board{max-width:390px}.desk-head{gap:12px}.desk-head>span{font-size:9px}.previous-link{font-size:10px}.overview-link{display:none}.desk-title{padding-top:20px}.preview-controls{height:48px}.state-controls{font-size:11px;gap:12px}.specimen-title h2{font-size:14px}.design-notes{margin-top:25px}.phone{border-radius:28px}}

/* Fill the bottom of the scene surface through the reader safe area. */
.device[data-stage=scene] .reader-scroll{display:flex;flex-direction:column;bottom:0}.device[data-stage=scene] .reader-scroll>*{flex-shrink:0}.device[data-stage=scene] .turn-panel{flex:1 0 auto;padding-bottom:54px}.device[data-stage=scene] .home-indicator{background:#dce3e9}

/* Preserve 44pt hit targets without enlarging the compact homepage pill. */
.play-link{position:relative;min-height:44px;background:transparent;isolation:isolate}.play-link:before{content:"";position:absolute;inset:6px 0;background:var(--primary);border-radius:9px;z-index:-1}.stage-top .icon-btn{width:44px;height:44px;min-width:44px}.mini-filters button{min-height:44px}.send-btn{width:44px;height:44px;min-width:44px}
