/* Tabletop edition: one continuous book, not a collection of effects.
   Content stays usable without enhancement; cinematic pacing is opt-in. */
html.journey-enhanced .journey{height:900vh;height:900svh}
.ch:not(.c)>div::before{inset:-60px -80px;background:radial-gradient(closest-side,rgba(2,9,7,.78),transparent)}
#chapter-table>div{max-width:530px}
#chapter-table h2{font-size:clamp(40px,4.7vw,74px)}
#chapter-table p{max-width:390px}
.after{position:relative;background:radial-gradient(ellipse at 85% 0,rgba(141,86,34,.12),transparent 38%),linear-gradient(180deg,#16110c,#0e100d 68%,#08140f)}
.after::before{content:"";position:absolute;inset:0 auto 0 max(10px,calc((100vw - 1600px)/2));width:3px;pointer-events:none;background:linear-gradient(180deg,transparent,#735534 12%,#382c1d 85%,transparent);opacity:.45}
section.blk{max-width:1600px;margin-inline:auto;padding:clamp(72px,8vw,128px) clamp(20px,6vw,96px)}
.chapter-heading{display:flex;align-items:center;gap:16px;margin-bottom:48px;color:#b8a184;font:500 11px/1.5 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.chapter-heading>span:first-child{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #766044;border-radius:50%;font:400 15px Cinzel,serif;color:#e2c796}
.chapter-heading i{height:1px;flex:1;background:linear-gradient(90deg,#756045,transparent)}
.play{gap:24px clamp(32px,5vw,76px);grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start}
.play-intro{grid-column:1;grid-row:1}
.play-intro .big{font-size:clamp(56px,6vw,86px);line-height:1.05}
.play-intro .big em{display:block}
.play-intro .lede{max-width:330px;margin-top:24px;font-size:23px;line-height:1.5}
.demo-workspace{grid-column:2;grid-row:1/span 2;min-width:0}
.demo-explainer{grid-column:1;grid-row:2;align-self:start;max-width:370px}
.demo-explainer .turn-steps{display:flex;flex-wrap:wrap;gap:12px 20px;margin:0 0 24px;padding:0;font-size:16px}
.demo-explainer .turn-steps li{display:flex;gap:8px}
.demo-explainer details{border-block:1px solid #5a4b35;color:#c4baa8;font:15px/1.65 system-ui,sans-serif}
.demo-explainer summary{padding-block:15px;min-height:48px;cursor:pointer;font-size:13px;color:#e7d3ae}
.demo-explainer details p{margin:0 0 18px;font-size:13px;line-height:1.7}
.demo-explainer .text-link{margin-top:24px}
.demo-context{margin-bottom:4px;gap:12px}
.demo-context .kick{letter-spacing:.16em;font-size:10px}
.demo-note{margin:0 0 14px;font:12px/1.65 system-ui,sans-serif;color:#beb39d}
.console{border-radius:3px 9px 9px 3px;border-color:#b39663;border-left:4px solid #b39663;padding:24px 28px;box-shadow:inset 3px 0 8px rgba(77,42,15,.14),0 18px 40px rgba(0,0,0,.22)}
.console h3{font-size:13px;letter-spacing:.22em}
.console .log{height:210px;padding-top:12px}
.log .nar{font-style:normal;font-size:23px;line-height:1.45}
.action-prompt{margin:20px 0 8px;font:500 12px/1.5 system-ui,sans-serif;letter-spacing:.08em;color:#e4d3b4}
.chips{margin:0;gap:8px}
.chips button{border-radius:5px;font:500 15px/1.35 "EB Garamond",serif;min-height:44px;padding:10px 14px;background:rgba(216,185,130,.04)}
.chips button:not(:disabled):hover{color:#fff1d8;border-color:#d4b780;background:rgba(216,185,130,.13)}
.say{background:transparent;border:0;padding:0;gap:8px;margin-top:14px;border-radius:0}
.say input{border-radius:4px;background:rgba(4,8,6,.36);min-height:46px}
.say button{border-radius:4px;font-size:9px;letter-spacing:.08em;padding-inline:14px;background:#d9b579}
.demo-tools{margin-top:12px}
.demo-status{min-height:1.5em;font-size:12px}
.adventure-progress{margin:5px 0 10px;color:#e9cd94;font-size:12px;text-transform:capitalize}
.adventure-summary:not([hidden]){margin:12px 0 0;padding:14px 16px;border-left:2px solid #c4a16b;background:rgba(183,141,75,.09);color:#e4d8c1;font:15px/1.7 system-ui,sans-serif}
#classes{border-top:1px solid rgba(166,132,83,.18)}
.class-intro{max-width:640px}
.class-feature{border-radius:3px;border-color:#756044;border-left:3px solid #b59a68;background:linear-gradient(110deg,rgba(159,117,61,.12),rgba(12,20,14,.4));box-shadow:none}
.class-feature .calling-label{margin-top:0;color:#bdaa8d;font:500 10px/1.5 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.14em}
.class-feature .text-link{max-width:100%;overflow-wrap:anywhere}
.arch{border-radius:110px 110px 4px 4px}
.build-label{display:flex;flex-wrap:wrap;gap:8px 20px;margin:30px 0 20px;color:#e1bf8a;font:600 10px/1.7 system-ui,sans-serif;letter-spacing:.12em}
.build-label span{font-weight:400;letter-spacing:0;font-size:12px;color:#bfb7a5}
.devices{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.25fr);gap:24px 32px;height:auto;margin-top:0;padding:18px 8px 24px;overflow:visible;perspective:none;align-items:center}
.devices .dv{position:relative;inset:auto;margin:0;width:100%;transform:none;filter:none}
.devices .dv img{display:block;width:100%;height:auto;border-radius:3px;border:1px solid #8a7450;box-shadow:0 14px 32px rgba(0,0,0,.25)}
.devices .dv.desk{grid-column:1;grid-row:1/span 2;width:100%}
.devices .dv.tab{grid-column:2;grid-row:1;width:100%}
.devices .dv.ph{grid-column:2;grid-row:2;width:min(100%,120px);justify-self:center}
.devices .dv.ph img{border-radius:10px}
.devices .dv figcaption{position:static;margin-top:12px;transform:none;text-align:left;white-space:normal;font:500 9px/1.6 system-ui,sans-serif;letter-spacing:.12em;color:#c9b99b}
.gameplay-guide{margin-top:22px}
.faq{border-top:1px solid rgba(166,132,83,.18)}
.end{background:radial-gradient(ellipse at 50% 100%,rgba(158,120,60,.12),transparent 65%),#06140e;border-top:1px solid rgba(166,132,83,.25);min-height:70svh}
.end>div{padding-block:90px}
.end .kick{display:block;margin-bottom:24px}
.end .finale-status{display:block;width:fit-content;max-width:100%;margin:24px auto 0;padding:12px 4px;min-height:44px;color:#c1c7b7;font:13px/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:5px}
/* Keep scene text inside a centred reading stage on ultrawide screens. */
html.journey-enhanced .ch:not(.c){inset-inline:0;width:min(100%,1600px);margin-inline:auto}
/* Restore scroll-linked artwork, not the old overlapping device pile.
   Transform only images; their captions and the next section stay in normal flow. */
.devices{max-width:1200px;margin-inline:auto}
@media(min-width:861px) and (max-width:1799px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .devices .dv{padding:12px;perspective:1400px}
 .devices .dv img{transform:translateY(var(--y,0px)) rotateY(var(--ry,0deg)) rotateX(var(--rx,0deg));transform-origin:50% 50%;max-width:100%}
 .devices .dv figcaption{margin-top:30px}
}
@media(max-width:960px){
 .play{grid-template-columns:1fr;gap:24px}
 .play-intro,.demo-workspace,.demo-explainer{grid-column:1;grid-row:auto}
 .play-intro .big em{display:inline}
 .play-intro .lede{max-width:550px;font-size:21px;margin-top:16px}
 .demo-explainer{max-width:none}
 .devices{grid-template-columns:minmax(0,1fr) minmax(130px,.3fr);gap:20px}
}
@media(max-width:600px){
 .ch.c .cta .solid{min-height:44px}
 html.journey-enhanced .journey{height:600vh;height:600svh}
 section.blk{padding-block:64px;padding-inline:20px}
 .chapter-heading{margin-bottom:30px;gap:12px;font-size:9px;letter-spacing:.12em}
 .chapter-heading>span:first-child{width:30px;height:30px;font-size:12px}
 #play .chapter-heading{margin-bottom:20px}
 #play{padding-top:32px}
 .play{gap:18px}
 .play-intro .kick{font-size:9px;letter-spacing:.17em}
 .play-intro .big{font-size:46px;margin-top:10px}
 .play-intro .lede{font-size:19px;line-height:1.4;margin:12px 0 0;max-width:34ch}
 .demo-context{font-size:10px;gap:6px}
 .demo-context .kick{font-size:9px;letter-spacing:.1em}
 .demo-note{font-size:10px;margin-bottom:10px}
 .console{padding:16px 18px}
 .console h3{font-size:11px}
 .console .log{height:174px;gap:10px;padding-top:8px}
 .log .nar{font-size:21px;line-height:1.4}
 .action-prompt{margin-top:14px}
 .chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .chips button{padding:8px;font-size:16px}
 .say{padding:0;flex-direction:row}
 .say input{font-size:16px;padding-inline:10px;width:0;flex:1}
 .say button{width:auto;min-height:46px;padding-inline:10px;font-size:8px;max-width:105px}
 .demo-tools{gap:6px 14px;flex-wrap:wrap}
 .demo-explainer .turn-steps{gap:16px;margin-bottom:16px}
 .demo-explainer .text-link{margin-top:16px}
 .class-feature{padding:24px 20px}
 .build-label{margin-top:24px;gap:4px}
 .devices{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 0 20px;gap:22px}
 .devices .dv.desk{grid-column:1/span 2;grid-row:1}
 .devices .dv.tab{grid-column:1;grid-row:2;align-self:center}
 .devices .dv.ph{grid-column:2;grid-row:2;width:min(100%,100px)}
 .devices .dv figcaption{font-size:8px;letter-spacing:.06em}
 .end .kick{font-size:9px;letter-spacing:.2em}
 #chapter-table>div{max-width:100%}
 #chapter-table p{max-width:100%}
}
@media(prefers-reduced-motion:reduce){html.journey-enhanced .journey{height:auto}}
@media(forced-colors:active){.chapter-heading i{background:CanvasText}.class-feature,.console{border-color:CanvasText}}
