body[data-screen="creation"] .game {max-width:none;padding:0;}
.creation-film {position:fixed!important;inset:0;z-index:45;max-width:none!important;width:100%;height:100%;margin:0!important;overflow:auto;background:#1c2528;color:#e1d5bb;box-sizing:border-box;}
.creation-progress {position:sticky;top:0;z-index:4;padding:1rem 3vw;background:#172023ee;border-bottom:1px solid #9e89533b;}
.creation-progress ol {list-style:none;display:flex;justify-content:space-between;gap:1rem;margin:0;padding:0;}
.creation-progress li {display:flex;align-items:center;gap:.5rem;color:#92998e;font-size:.8rem;white-space:nowrap;}
.creation-progress li span {width:1.65rem;height:1.65rem;display:grid;place-items:center;border:1px solid #707765;border-radius:50%;}
.creation-progress li[aria-current] {color:#e1c88b;}.creation-progress li[aria-current] span {background:#ac90562b;border-color:#b3985d;}.creation-progress .complete {color:#b3c1ab;}
.creation-visual {position:fixed;inset:0;overflow:hidden;pointer-events:none;background:linear-gradient(#334047,#686b56);}
.creation-visual canvas {position:absolute;inset:0;width:100%;height:100%;}
.creation-visual canvas[hidden] {display:none;}
.creation-visual::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,#17202300 31%,#172023b8 51%,#172023f5 70%);}
.creation-fallback {position:absolute;inset:0;background:linear-gradient(#334047,#686b56);}
.creation-fallback svg {width:100%;height:100%;}.creation-fallback * {animation:none!important;}
.creation-reading {position:relative;width:min(43rem,48vw);margin:0 5vw 0 auto;padding:3rem 0 2rem;box-sizing:border-box;}
.creation-eyebrow {font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:#c5b17e;margin:0 0 1rem;}
.creation-reading h1 {font-size:clamp(1.9rem,3vw,3.3rem);line-height:1.13;margin:.5rem 0 1.25rem;color:#efdeb8;}
.creation-reading h2 {font-size:1.25rem;line-height:1.4;margin:1.4rem 0 .8rem;color:#cfbd96;}
.creation-reading p {line-height:1.7;}.creation-film .cine-say {pointer-events:auto;position:static;max-width:none;width:auto;padding:0;margin:0;text-align:left;}
.creation-film .cine-line {font-size:1.08rem;line-height:1.8;min-height:0;white-space:normal;color:#e0d2b3;transform:none;opacity:1;}
.creation-film .cine-note {font-size:.87rem;color:#b4baa9;text-align:left;max-width:none;margin:1.25rem 0;}
.creation-film .cine-foot,.creation-film .deck-foot {display:flex;position:static;gap:.7rem;flex-wrap:wrap;opacity:1;pointer-events:auto;margin:1.8rem 0 0;padding:0;border:0;transform:none;}
.creation-playback {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:1.5rem 0 .6rem;font-size:.85rem;color:#b6b9a9;}
.creation-playback .btn {font-size:.78rem;padding:.55rem .75rem;}.creation-film .cine-rail {pointer-events:auto;display:flex;position:static;gap:.45rem;transform:none;justify-content:flex-start;margin:.75rem 0;}
.creation-film .cine-pip {display:block;flex:none;width:22px;height:7px;border:1px solid #93805b;background:transparent;border-radius:1px;padding:0;cursor:pointer;opacity:1;}.creation-film .cine-pip.on {background:#c5aa6e;}
.creation-stat-level {border-left:2px solid #b8995c;padding-left:.8rem;color:#c9b580;}
.condition-effects,.creation-review {padding:1rem 1.1rem;background:#0d171980;border:1px solid #9d875438;margin:1.2rem 0;}
.condition-effects h3,.creation-review h3 {font-size:.85rem;letter-spacing:.06em;color:#c8b788;margin:.3rem 0;}
.creation-review summary {cursor:pointer;font-size:1rem;color:#dfc994;}.creation-review dl {display:grid;grid-template-columns:6rem 1fr;gap:.5rem;margin:1rem 0;}.creation-review dt {color:#b1b6a4;}.creation-review dd {margin:0;}.creation-review p {font-size:.85rem;}
.review-stats {display:grid;grid-template-columns:1fr 1fr;gap:.6rem;border-block:1px solid #85754e44;padding:1rem 0;}.review-stats span {display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;}.review-stats b {color:#dcc794;}
.creation-film .deck-card {position:static;inset:auto;width:auto;min-height:0;height:auto;opacity:1;transform:none!important;transition:none;pointer-events:auto;border:0;background:none;box-shadow:none;padding:0;}
.creation-film .deck-card[hidden] {display:none!important;}.creation-film .deck-name {font-size:clamp(1.9rem,3vw,3.3rem);margin:0 0 .8rem;}.creation-film .deck-sub {font-size:.86rem;letter-spacing:0;margin:0 0 1.2rem;color:#bfae84;}.creation-film .deck-line {max-width:none;font-size:1.03rem;margin:1rem 0;text-align:left;line-height:1.7;}
.creation-film .deck-chips {display:grid;gap:.65rem;margin:1.2rem 0;}.creation-film .deck-chip {font-size:.87rem;line-height:1.6;text-align:left;border:0;border-left:2px solid #9d8856;border-radius:0;padding:.6rem .8rem;background:#0e181b80;white-space:normal;}
.creation-film .deck-verse {margin:1rem 0;max-width:none;font-size:.9rem;line-height:1.65;}.creation-film .deck-tabs {position:static;display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem;}.creation-film .deck-tab {font-size:.75rem;}.creation-film .deck-tab[aria-pressed="true"] {color:#e3cb8d;border-color:#b39459;}
.creation-options {margin:1.1rem 0;color:#b6b9a8;font-size:.85rem;}.creation-options summary {cursor:pointer;margin-bottom:.8rem;}.creation-option-list {display:grid;grid-template-columns:1fr 1fr;gap:.4rem;}
.deck-jump {text-align:left;padding:.7rem .6rem;background:#182324;border:1px solid #74806a55;color:#bfc4b0;font:inherit;cursor:pointer;}.deck-jump[aria-pressed="true"] {color:#ecd39b;border-color:#ad9359;background:#8f754720;}
.creation-film .deck-aside {position:static;max-width:none;margin:1rem 0;}.creation-film .deck-held {display:grid;gap:.5rem;justify-content:start;padding:.8rem;border:1px solid #89794b55;}.creation-film .deck-held-one {display:flex;flex-wrap:wrap;gap:.4rem;max-width:none;}.creation-film .deck-held-mark {width:1.5rem;height:1.5rem;}.creation-film .deck-held-eff {font-size:.8rem;}.creation-film .deck-held-name {font-size:.85rem;}
.allocation-screen {position:fixed;inset:0;z-index:45;overflow:auto;color:#ded2b5;background:#192327;padding-bottom:2rem;}
.allocation-title {max-width:1100px;margin:2rem auto 1.4rem;padding:0 2rem;}.allocation-title h1 {font-size:2.1rem;margin:.5rem 0;}.allocation-title>p:last-child {max-width:50rem;line-height:1.65;color:#b9bfad;}
.alloc-layout {max-width:1100px;margin:auto;padding:0 2rem;display:grid;grid-template-columns:.85fr 1.15fr;gap:2.5rem;align-items:start;}
.alloc-visual {position:sticky;top:5rem;background:#253133;border:1px solid #7e805455;padding-bottom:1rem;}.alloc-visual canvas {width:100%;height:240px;display:block;background:linear-gradient(#334047,#686b56);}.allocation-explainer {padding:0 1rem;}.allocation-explainer h2 {font-size:1.05rem;color:#dbc18c;}.allocation-explainer p {font-size:.85rem;line-height:1.6;min-height:2.8rem;}
.allocation-screen .wheel-wrap {max-width:320px;margin:0 auto;padding:0;}.allocation-screen .alloc-wheel {width:100%;max-width:285px;display:block;margin:auto;}.allocation-screen .wheel-hint {font-size:.76rem;padding:0 1rem;margin:.5rem 0;color:#b6bca8;}
.allocation-budget {color:#ddc68f;margin:.1rem 0 1rem;}.allocation-screen .presets {display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin:0 0 1rem;}.allocation-screen .preset {font-size:.75rem;text-align:left;line-height:1.5;padding:.6rem;border:1px solid #7f86555a;background:#233033;color:#b9c0aa;}
.allocation-screen .alloc-exact {margin:0 0 1rem;padding:0;max-width:none;}.allocation-screen .alloc-exact>summary {font-size:.9rem;color:#cfba89;}.allocation-screen #stat-list {display:grid;gap:.6rem;margin-top:.8rem;}.allocation-screen .stat-row {margin:0;border:1px solid #82917438;border-radius:0;padding:.7rem;background:#233034;}.allocation-screen .stat-head {font:inherit;border:0;background:none;color:#d8ceaf;padding:0;display:flex;align-items:center;gap:.4rem;cursor:pointer;text-align:left;}.allocation-screen .stat-head:hover {color:#ecd5a0;}.allocation-screen .stat-name {font-size:.85rem;}.allocation-screen .stat-short {font-size:.65rem;color:#a9b097;}.allocation-screen .stat-desc {font-size:.75rem;line-height:1.5;margin:.35rem 0;color:#b8bea9;}.allocation-screen .stat-emblem {width:1.4rem;height:1.4rem;}.allocation-screen .stat-range {margin:.2rem 0 0;}.allocation-screen .stat-num {width:4rem;color:#ecd39c;}
.allocation-screen .create-actions {max-width:1100px;padding:1.5rem 2rem 0;margin:auto;display:flex;justify-content:flex-end;gap:.8rem;}
@media(max-width:850px){.creation-progress {padding:.7rem .8rem;}.creation-progress ol {gap:.3rem;}.creation-progress li {font-size:0;gap:0;}.creation-progress li[aria-current] {font-size:.72rem;gap:.3rem;}.creation-progress li span {font-size:.7rem;width:1.4rem;height:1.4rem;}.creation-reading {width:auto;margin:0;padding:1.3rem 1.2rem 2rem;}.creation-visual {position:relative;height:36vh;min-height:220px;}.creation-visual::after {background:linear-gradient(transparent 65%,#1c2528);}.creation-reading h1 {font-size:2rem;}.creation-reading h2 {font-size:1.15rem;}.creation-option-list {grid-template-columns:1fr 1fr;}.review-stats {grid-template-columns:1fr;}.alloc-layout {grid-template-columns:1fr;gap:1rem;padding:0 1rem;}.alloc-visual {position:static;display:grid;grid-template-columns:1fr 1fr;align-items:center;}.alloc-visual canvas {height:190px;}.allocation-explainer {grid-column:1;}.allocation-screen .wheel-wrap {grid-column:2;grid-row:1 / span 2;}.allocation-title {padding:0 1rem;margin:1.4rem auto;}.allocation-title h1 {font-size:1.7rem;}.allocation-screen .create-actions {padding:1.4rem 1rem 0;flex-wrap:wrap;}.creation-film .cine-line {font-size:1rem;}}
@media(max-width:450px){.alloc-visual {display:flex;flex-direction:column;}.alloc-visual canvas {width:100%;height:180px;}.allocation-screen .wheel-wrap {width:100%;max-width:260px;}.allocation-screen .alloc-wheel {max-width:220px;}.creation-option-list {grid-template-columns:1fr;}.allocation-screen .presets {grid-template-columns:1fr;}.creation-progress li[aria-current] {max-width:8rem;white-space:normal;}}
@media(prefers-reduced-motion:reduce){.creation-film *,.allocation-screen * {animation:none!important;transition:none!important;}}

/* Keep the commitment reachable while reading a long option or life story. */
.creation-film .creation-reading {padding-bottom:7rem;}
.creation-film .cine-foot,.creation-film .deck-foot {position:fixed;right:5vw;bottom:0;width:min(43rem,48vw);box-sizing:border-box;z-index:5;margin:0;padding:.9rem 0;background:#172023f5;border-top:1px solid #9b885540;}
@media(max-width:850px){.creation-film .cine-foot,.creation-film .deck-foot {right:0;width:100%;padding:.75rem 1.2rem;}.creation-film .creation-reading {padding-bottom:10rem;}}

.creation-film .deck-chip {max-width:none;width:100%;box-sizing:border-box;}
.allocation-screen {padding-bottom:6rem;}
.allocation-screen .preset {border-radius:0;}
.allocation-budget {position:sticky;top:4rem;z-index:3;padding:.7rem;background:#192327f5;border-bottom:1px solid #89784b55;}
.allocation-screen .create-actions {position:fixed;left:0;right:0;bottom:0;z-index:4;max-width:none;padding:.9rem 2rem;background:#172023f5;border-top:1px solid #9b885540;}
@media(max-width:850px){.allocation-screen .create-actions {padding:.75rem 1rem;}.allocation-budget {top:3rem;}}

.creation-gift-mark {width:3rem;height:3rem;float:right;color:#d1b371;opacity:.8;margin:0 0 .7rem 1rem;}
.creation-gift-mark svg {width:100%;height:100%;}

.creation-film .cine-pip {position:relative;width:28px;height:28px;border:0;background:transparent!important;}
.creation-film .cine-pip::after {content:"";position:absolute;left:3px;right:3px;top:11px;height:6px;border:1px solid #93805b;}
.creation-film .cine-pip.on::after {background:#c5aa6e;}

.alloc-visual canvas[hidden] {display:none;}
.allocation-screen .preset[aria-pressed="true"] {border-color:#b29a5c;color:#e2ce9d;background:#806c3b30;}

.creation-film .deck-chips {grid-template-columns:1fr;justify-content:stretch;}

/* Creation is a close workbench study; its setting is separate from the prologue. */
.creation-visual {background:radial-gradient(ellipse at 26% 40%,#71614c,#2f3330 60%,#202a28);}
.creation-subchoices,.gift-slots,.circumstance-modes {border:1px solid #9e895348;padding:1rem;margin:1.2rem 0;display:grid;gap:.6rem;}
.creation-subchoices legend,.gift-slots legend,.circumstance-modes legend {padding:0 .4rem;color:#d0b77d;font-size:.9rem;}
.creation-choice {font:inherit;text-align:left;border:1px solid #6c776450;background:#1c2b28;color:#c6cfba;padding:.8rem;cursor:pointer;line-height:1.5;}
.creation-choice b,.creation-choice span {display:block;}.creation-choice span {font-size:.8rem;margin-top:.3rem;color:#a9b59f;}
.creation-choice[aria-pressed="true"] {border-color:#c6a76d;background:#8c74432a;color:#ecce90;}
.history-note {display:block;color:#c9bb95;margin-top:1rem;font-size:.9rem;}.history-note textarea {display:block;width:100%;box-sizing:border-box;background:#152522;color:#e0d3b6;border:1px solid #82917470;padding:.8rem;margin-top:.6rem;font:inherit;line-height:1.6;resize:vertical;}
.circumstance-modes label,.season-choice {display:grid;grid-template-columns:1.2rem 1fr;gap:.3rem .6rem;align-items:start;color:#cdd0b8;padding:.7rem;background:#172522;border:1px solid #7281664d;cursor:pointer;}
.circumstance-modes label span,.season-choice span {grid-column:2;font-size:.8rem;color:#aab59e;line-height:1.55;}
.circumstance-modes input,.season-choice input,.condition-option input {accent-color:#c5a46b;}
.condition-options {display:grid;grid-template-columns:1fr 1fr;gap:.5rem;}.condition-option {background:#1a2825;padding:.7rem;border:1px solid #7281664d;}.condition-option label {display:flex;gap:.5rem;font-size:.85rem;line-height:1.5;}.condition-preview {font:inherit;font-size:.73rem;color:#c7b17b;border:0;background:none;padding:.5rem 0 0;cursor:pointer;text-align:left;}
.condition-description {padding:1rem;background:#162622;border-left:2px solid #bea069;margin-top:1rem;}.season-options {display:grid;gap:.55rem;}
.allocation-tools {display:flex;gap:.5rem;flex-wrap:wrap;}.allocation-tools .btn,#allocationTrial {font-size:.75rem;padding:.5rem .7rem;}
#allocationTrialResult {font-size:.8rem;line-height:1.6;color:#d3bc88;}.allocation-explainer {padding-bottom:1rem;}
@media(max-width:500px){.condition-options {grid-template-columns:1fr;}.creation-subchoices,.gift-slots {padding:.7rem;}}

.creation-film .btn:not(.ghost):hover,.creation-film .btn:not(.ghost):focus-visible {color:#172522;}
.condition-description {position:fixed;left:3.5vw;bottom:2.5rem;width:36vw;max-height:35vh;overflow:auto;box-sizing:border-box;z-index:3;background:#172521ee;border:1px solid #8d8c5955;}
.condition-description h2 {margin-top:0;font-size:1.15rem;}
@media(max-width:850px){.condition-description {position:static;width:auto;max-height:none;margin:1rem 0;}}

.condition-options[hidden] {display:none!important;}

/* Object theatre: captions explain the actual study; native text stays sharp. */
.creation-study-label {position:absolute;left:3.5vw;top:6rem;width:35vw;max-width:32rem;box-sizing:border-box;z-index:2;color:#d7c6a0;background:#182528e8;border-left:2px solid #b79c61;padding:.7rem .9rem;font-size:.82rem;line-height:1.55;}
.creation-fallback {background:#202d30;}.creation-fallback[hidden] {display:none;}
.alloc-visual {position:sticky;}.alloc-visual .creation-study-label {position:static;width:auto;max-width:none;margin:.5rem .7rem 0;font-size:.75rem;}
@media(max-width:850px){.creation-visual {height:40vh;min-height:265px;}.creation-study-label {left:1rem;right:1rem;top:auto;bottom:.8rem;width:auto;max-width:none;padding:.5rem .7rem;font-size:.74rem;}.alloc-visual {position:static;}.alloc-visual .creation-study-label {grid-column:1;grid-row:3;margin:.5rem;width:auto;}.creation-fallback svg {width:100%;height:100%;}}
