
  .craft-home{padding:16px 20px 28px}.craft-home-header{padding-bottom:12px;gap:10px}.desk-brand{font-size:29px}.craft-home-header .paper-link{font-size:14px}.craft-home-intro{display:flex;flex-direction:column;gap:20px;margin:26px 0}.craft-home-intro>div{width:100%}.craft-home-intro h1{font-size:40px;margin-bottom:16px}.craft-home-intro p:not(.paper-kicker){font-size:16px;line-height:1.8;margin-bottom:12px}.home-timing{font-size:12px}.craft-home-photo img{height:220px}.craft-home-photo span{font-size:12px}.craft-role-grid{grid-template-columns:1fr;gap:24px;padding-top:22px}.craft-role{grid-template-columns:84px 1fr;gap:15px}.craft-role img{max-height:235px}.craft-role .paper-kicker{font-size:12px}.craft-role h2{font-size:30px}.craft-role p:not(.paper-kicker){font-size:16px;line-height:1.6}.craft-role .paper-button{padding:10px 14px;width:100%}.craft-home-footer{display:block;margin-top:22px;line-height:1.7}.craft-home-footer small{display:block;margin-top:10px}.opening-workshop{display:flex;flex-direction:column;padding:16px 22px 30px;gap:20px;min-height:100dvh}.opening-copy{order:2;width:100%}.opening-workshop>.paper-link{order:0;margin-right:auto}.opening-object{order:1;min-height:0;width:100%;flex-direction:row;align-items:center;gap:0;margin:6px 0}.opening-object>svg{width:70%;max-height:175px;z-index:1}.old-notebook{width:36%;min-width:0;padding:10px 12px;margin:0 0 0 -24px;border-left-width:5px;min-height:130px}.old-notebook strong{font-size:23px;line-height:1.3;margin:9px 0}.old-notebook small{font-size:10px;line-height:1.5;display:block}.old-notebook i{right:7px;top:-5px;height:50px;width:5px}.opening-copy .paper-kicker{font-size:12px;margin-bottom:10px}.opening-copy h1{font-size:36px;line-height:1.3;margin-bottom:12px}.opening-copy>p:not(.paper-kicker){font-size:16px;line-height:1.7;margin:10px 0}.opening-copy .opening-invitation{display:none}.opening-swatches{margin:16px 0}.opening-copy>small{font-size:13px;margin-top:14px}.color-swatch{min-height:70px;min-width:58px}.color-swatch span{height:32px;width:32px}
  .desk-header{padding:16px 20px;gap:10px}.desk-header>span:nth-child(2){display:none}.desk-header .paper-link{font-size:14px;padding:8px 14px}.desk-layout{display:flex;flex-direction:column;padding:24px 20px 30px;gap:36px}.desk-editor{order:0}.desk-story{order:1;border-top:1px solid var(--craft-line);padding-top:30px}.editor-heading .paper-kicker{font-size:12px;margin-bottom:12px}.editor-heading h2{font-size:33px;line-height:1.5;margin:10px 0}.editor-heading>p:not(.paper-kicker){font-size:16px;line-height:1.7;margin:12px 0 5px}.craft-stage{margin:0;max-width:470px}.craft-caption{font-size:12px;margin:6px 0 16px}.half-tabs button{font-size:16px;padding:8px}.tool-tabs{gap:8px;margin:12px 0}.tool-tabs button{font-size:16px;padding:8px 4px}.color-palette{margin:15px 0}.craft-exports{padding-top:20px;margin-top:12px}.craft-exports .primary{font-size:16px}.craft-exports .paper-button{font-size:16px;padding:10px}.craft-exports .paper-button small{font-size:12px}.making-details{font-size:16px}.story-result{height:230px;margin-bottom:18px}.desk-story h1{font-size:37px;margin:16px 0}.desk-story>p:not(.paper-kicker),.desk-story blockquote{font-size:16px}.desk-story blockquote{margin:20px 0;padding-left:16px}.desk-footer{padding:18px 20px 30px;font-size:12px;line-height:1.7}.editor-utility{font-size:12px}


  .app-shell[data-ui=story]{--topbar-h:58px}.app-shell[data-ui=story] .topbar{grid-template-columns:44px 1fr auto;gap:4px;padding-right:8px;padding-left:8px}.topbar-back{font-size:0!important;min-width:44px;width:44px;padding:0!important}.topbar-back span:first-child{font-size:20px}.topbar-back span:last-child{display:none}.topbar-center{position:relative;text-align:left}.chapter-stamp{display:none}.night-clock{position:static;min-width:0}.night-clock small{font-size:10px}.night-clock strong{font-size:15px;line-height:1.4}.night-clock .clock-full{display:none}.night-clock .clock-compact{display:block}.topbar-actions{gap:3px}.topbar-actions .topbar-button{min-width:44px;padding:6px;font-size:12px;letter-spacing:0}.topbar-actions .button-rune{display:none}#hint-button,#status-button{display:none}
  .app-shell[data-ui=story] .scene-art{inset:0 0 auto;height:62%;background-size:cover;background-position:center}.app-shell[data-ui=story] .scene-label{top:12px;left:14px;right:14px;font-size:12px}.app-shell[data-ui=story] .character-art{right:-3%;bottom:36%;height:49%;max-height:none;max-width:64vw;object-fit:contain}.app-shell[data-ui=story] .dialogue-panel{left:0;right:0;bottom:0;border-radius:0;grid-template-columns:1fr;display:flex;flex-direction:column;padding:15px 17px max(12px,env(safe-area-inset-bottom));gap:7px;margin:0;min-height:0;max-height:none;height:43%}.app-shell[data-ui=story] .dialogue-panel.dialogue-only{height:34%;min-height:185px}.dialogue-panel.dialogue-only .dialogue-copy{min-height:0;overflow:auto;flex:1}.dialogue-panel.dialogue-only .choice-area{width:100%;flex:0 0 auto;max-height:none;overflow:visible;display:block}.app-shell[data-ui=story] .dialogue-panel .dialogue-text{font-size:16px;line-height:1.7;margin-top:8px}.dialogue-eyebrow{font-size:11px;line-height:1.5;margin-bottom:3px}.dialogue-speaker{font-size:24px;line-height:1.4;margin:0}.app-shell[data-ui=story] .dialogue-panel.explore-mode .dialogue-copy{flex:none;max-height:80px;overflow:auto}.dialogue-panel.explore-mode .dialogue-text .explore-progress{font-size:12px;line-height:1.5}.app-shell[data-ui=story] .dialogue-panel .choice-area{width:100%;min-height:0;overflow:auto;flex:1;max-height:none;grid-template-columns:1fr;gap:8px;display:block}.app-shell[data-ui=story] .choice-area .explore-option-grid{grid-template-columns:1fr;gap:8px}.choice-card,.clue-card{min-height:60px!important;width:100%;padding:10px 12px!important}.choice-name,.clue-name,.dialogue-panel.night-mode .choice-name{font-size:16px;line-height:1.5}.choice-meta,.clue-meta,.dialogue-panel.night-mode .choice-meta{font-size:16px;line-height:1.5}.choice-index,.clue-index{font-size:10px}.explore-section-title{font-size:12px;margin:0 0 9px}.choice-area .explore-section+.explore-section{margin-top:14px}.dialogue-panel .continue-button{min-height:46px;font-size:16px}.app-shell[data-ui=story] .hotspots{inset:0 0 auto;height:62%}.hotspot-marker{min-width:44px;min-height:44px}.hotspot-caption{font-size:12px}.app-shell[data-ui=story] .dialogue-panel.night-mode,.app-shell[data-ui=story] .dialogue-panel.task-mode{height:52%}.dialogue-panel.night-mode .dialogue-copy,.dialogue-panel.task-mode .dialogue-copy{max-height:100px;overflow:auto;flex:none}.dialogue-panel.night-mode .dialogue-copy.has-night-plan{max-height:48%;flex:none;display:block}.dialogue-panel.night-mode .night-plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.dialogue-panel.night-mode .night-plan-actions button{font-size:14px!important;min-height:48px}.dialogue-panel.night-mode .choice-area{display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:minmax(72px,auto);align-content:start}.state-hud{flex:none;min-height:32px;font-size:12px;display:flex;gap:8px;flex-wrap:wrap}.hud-value{font-size:13px}.paper-moment{padding:10px;font-size:16px}.paper-mark{padding:8px 4px;font-size:16px}.notebook-marks{height:54px}.journal-paper .notebook-marks{height:50px}.dialogue-panel.task-mode .journal-paper{display:none}.observation-notes li{padding:9px 0}.side-drawer{width:min(92vw,430px)}.modal-card{max-width:calc(100vw - 28px);max-height:88dvh}.legacy-card{padding:22px}.legacy-card h2{font-size:28px}

/* Phone document layout. No viewport breakpoints: this file belongs to mobile.html. */
html,body{min-width:0;background:#102227}
.app-shell{width:100%;max-width:480px;height:100dvh;min-height:0;margin:0 auto;box-shadow:0 0 50px #0005}
.game-canvas{height:calc(100% - var(--topbar-h) - var(--safe-top))}
.phone-scene-frame{position:absolute;inset:0 0 auto;height:62%;overflow:hidden}
.app-shell[data-ui=story] .phone-scene-frame .scene-art,.app-shell[data-ui=story] .phone-scene-frame .hotspots{height:100%;inset:0}
.app-shell[data-ui=story] .phone-scene-frame .character-art{bottom:0;height:85%;right:-4%;max-width:66%;max-height:none}
.app-shell[data-ui=story]:has(.dialogue-only) .phone-scene-frame{height:66%}
.app-shell[data-ui=story]:has(.night-mode,.task-mode) .phone-scene-frame{height:48%}
.app-shell[data-ui=home] .phone-scene-frame,.app-shell[data-ui=desk] .phone-scene-frame{display:none}
.phone-topbar-actions{display:flex;align-items:center;gap:7px;justify-self:end}
.phone-topbar-actions .topbar-button{font-size:16px;padding:0 10px;min-height:44px;min-width:44px}
.phone-menu{position:relative;font-size:16px}
.phone-menu>summary{list-style:none;cursor:pointer;display:flex;justify-content:center;align-items:center;border:1px solid #eee4cc47;min-height:44px;min-width:52px;padding:0 7px}
.phone-menu>summary::-webkit-details-marker{display:none}
.phone-menu[open]>summary{color:var(--ember);border-color:var(--ember)}
.phone-menu nav{position:absolute;top:calc(100% + 10px);right:0;width:170px;padding:8px;display:grid;gap:7px;background:#17292b;border:1px solid #7d7359;box-shadow:0 12px 30px #0008}
.phone-menu nav a{display:flex;justify-content:center;align-items:center;text-decoration:none}
.phone-home-header{display:grid;grid-template-columns:1fr auto;gap:8px;padding-bottom:8px}
.phone-home-header .home-links{grid-column:1/-1;justify-content:space-between;border-top:1px solid var(--craft-line);padding-top:4px}
.craft-edition-link{font-size:16px;color:var(--craft-ink);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.phone-home-header .paper-link{font-size:16px;min-height:44px}
.phone-home-intro{display:flex;flex-direction:column;gap:17px;margin:22px 0}
.phone-home-intro .craft-home-photo img{height:205px}
.phone-home-intro h1{font-size:38px;line-height:1.4;margin:10px 0 12px}
.phone-home-intro p:not(.paper-kicker){font-size:16px}
.home-timing,.craft-home-photo span,.old-notebook small,.opening-copy>small{font-size:14px}
.phone-desk-layout{display:block;padding:24px 20px 30px}
.phone-desk-layout .desk-editor{margin:0}
.phone-desk-layout .desk-story{padding-top:20px;border:0}
.phone-desk-layout .editor-heading h2{font-size:33px;line-height:1.45;margin:12px 0}
.phone-desk-layout .editor-heading .paper-kicker{font-size:14px}
.phone-desk-layout .editor-heading>p:not(.paper-kicker){font-size:16px;line-height:1.7}
.phone-story-fold{margin-top:26px;border-top:1px solid var(--craft-line);border-bottom:1px solid var(--craft-line)}
.phone-story-fold>summary{min-height:56px;display:flex;align-items:center;gap:10px;font-size:18px;cursor:pointer;padding:12px 0;line-height:1.5}
.phone-story-fold>summary::before{content:'＋';color:#97663e}
.phone-story-fold[open]>summary::before{content:'－'}
.phone-story-fold>summary::-webkit-details-marker{display:none}
.desk-header .paper-link{font-size:16px;padding:8px 12px}
.dialogue-panel.night-mode .night-plan-actions button{font-size:16px!important}
.app-shell[data-ui=story] .dialogue-panel.night-mode:has(.has-night-plan) .choice-area{display:none!important}
.app-shell[data-ui=story] .dialogue-panel.night-mode .dialogue-copy.has-night-plan{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;max-height:none;flex:1;overflow:hidden;min-height:0;gap:3px}
.dialogue-copy.has-night-plan .dialogue-text{overflow:auto;min-height:0}
.dialogue-copy.has-night-plan .night-plan-actions{margin-top:8px}
.paper-moment .notebook-marks{height:40px}
.app-shell[data-ui=story] .choice-meta,.app-shell[data-ui=story] .clue-meta{font-size:16px!important;line-height:1.6}
.dialogue-panel .choice-area.explore-control-list .explore-option-grid{display:grid;grid-template-columns:1fr;overflow:visible;max-height:none}
.dialogue-panel.explore-mode .dialogue-text{font-size:16px!important}
.side-drawer{max-width:100%;width:100%}
.modal{padding:14px}.modal-card{max-width:100%;width:100%}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.phone-role-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:25;width:min(100%,480px);display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#EFE3C7F5;border-top:1px solid var(--craft-line);box-shadow:0 -10px 24px #81673514}.phone-role-bar .paper-button{font-size:16px;min-width:0;min-height:52px;padding:10px 7px;line-height:1.5}.phone-role-bar .paper-button:last-child{background:transparent;color:var(--craft-ink);border-color:var(--craft-ink)}.craft-home:has(+.phone-role-bar){padding-bottom:110px}
