/* THE GILDED ROAD · v1.5 · real HTML controls with high-contrast fantasy art direction. */
:root{--btbc-black:#0d1113;--btbc-panel:#18191a;--btbc-panel2:#24201d;--btbc-paper:#f1e4c8;--btbc-muted:#dac5a1;--btbc-gold:#e7bc70;--btbc-edge:#b38b50}
body{color:var(--btbc-paper);background:#0d1416;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #f9d889!important;outline-offset:2px!important}
::selection{background:#b98732;color:#13110e}
.mast{background:linear-gradient(#1b1d1f,#101316)!important;border-bottom:2px solid #ab7f40;box-shadow:0 3px 15px #0009}
.brand{color:#f9e6b7!important;text-shadow:0 1px 2px #000!important}.brand small{color:#caa870!important}
.phase-marker{color:#e4c38a!important}.nav button{color:#f5dfb4!important}.nav button:hover{background:#584323!important}
.mast-extra button{color:#f4d69e!important}
/* Approved cinematic artwork without baked UI text. */
.title-screen{background-image:linear-gradient(90deg,rgba(7,13,16,.95) 1%,rgba(7,13,16,.86) 38%,rgba(8,13,16,.27) 78%),var(--back)!important;background-size:cover!important;background-position:center 44%!important}
.title-shadow{max-width:min(740px,85vw)!important;background:linear-gradient(90deg,#141617e8,#1b1b1db7,#13191a00)!important;border-left:3px solid var(--btbc-gold);padding:24px clamp(18px,3vw,40px)!important;margin:clamp(18px,5vw,60px)!important;box-shadow:0 12px 40px #0007}
.title-shadow h1{color:#f5deae!important;font-family:Georgia,'Times New Roman',serif!important;text-shadow:0 4px 6px #000b,0 0 32px #000!important;line-height:1.05!important}
.title-shadow h1 em{color:#f6d897!important}.title-shadow p{color:#f7ebd7!important;font:clamp(16px,1.35vw,20px)/1.6 Georgia,serif!important;max-width:650px;text-shadow:0 2px 3px #000}
.title-sub,.intro-brand,.title-fine{color:#f5cb7a!important}
/* Prologue is deliberately DARK; every passage remains scrollable. */
.prologue{background:#101718!important}
.intro-illustration{border-color:#b48b50!important;background:#121819}
.intro-illustration img{filter:brightness(.90) contrast(1.09) saturate(1.05);object-position:50% 50%!important}
.intro-paper{background:radial-gradient(ellipse at top,#2a2927 0%,#161819 70%,#101314 100%)!important;color:#f6e8cf!important;border-left:2px solid #b48b50;box-shadow:inset 5px 0 35px #0006;overflow-y:auto!important;overscroll-behavior:contain;justify-content:safe center!important;scrollbar-color:#a9824a #14191b;scrollbar-width:thin}
.intro-paper .eyebrow{color:#dfb66e!important;font-weight:800!important;letter-spacing:2px!important}
.intro-paper h1{color:#f7dfaa!important;text-shadow:0 2px 4px #000;font:700 clamp(28px,3.1vw,45px)/1.12 Georgia,serif!important}
.intro-paper p{color:#f3e7d3!important;font:clamp(16px,1.22vw,19px)/1.63 Georgia,serif!important;margin:0 0 18px!important;max-width:68ch;text-shadow:none!important}
.intro-action{padding-bottom:8px!important;background:linear-gradient(transparent,#141718 20%);position:relative}
.intro-action .btn{min-height:42px!important;font-size:clamp(11px,1vw,14px)!important}
/* Rich, matte controls; never rely on artwork baked-in buttons. */
.btn.primary{background:linear-gradient(180deg,#f9d78b,#b77d2f)!important;border:2px solid #efd38f!important;color:#20180e!important;text-shadow:0 1px 0 #ffe4a899;font-weight:800!important;box-shadow:0 3px 11px #0008,inset 0 1px #fff5cf}
.btn.primary:hover:not(:disabled){background:linear-gradient(180deg,#ffe5a4,#d9a34e)!important;transform:translateY(-1px)}
.btn.outline,.btn.ghost{border:1px solid #b99a65!important;background:#252725!important;color:#f4e0b5!important}
.btn.outline:hover:not(:disabled),.btn.ghost:hover:not(:disabled){background:#3e3b31!important}
/* Provisioning and portrait rosters: high contrast for all small labels. */
.party-screen,.supply-screen{background:linear-gradient(155deg,#152021,#0c1315)!important}
.page-head h1{font-family:Georgia,serif!important;color:#f6dfae!important}.page-head p{color:#e2d0af!important;font-size:clamp(12px,1vw,15px)!important}
.page-head .eyebrow,.stock-list .eyebrow{color:#eac389!important}
.party-left,.wagon-ledger,.stock-list{background:linear-gradient(160deg,#242421,#171a19)!important;color:#f4e4c8!important;border-color:#9f783f!important;box-shadow:inset 0 0 22px #0007}
.wagon-ledger h3,.stock-heading h2{color:#f6dca9!important;font-family:Georgia,serif!important}
.wagon-image{border:2px solid #b28a4e;border-radius:3px;box-shadow:0 7px 18px #0007}
.wagon-image img{object-position:center 48%!important}
.wagon-plate{background:#1c1b1aca!important;color:#f6dfb0!important}
.budget-counters{background:#161b1b!important;border:1px solid #8d754e!important}
.budget-counters strong{color:#f4da97!important}.budget-counters small{color:#dbbe85!important}
.budget-counters .remaining strong{color:#f7dc88!important}
.weight-display{color:#f6dfb2!important}.weight-display b{color:#f4e5c6!important}
.requirements .met{background:#1d3929!important;color:#c2f2be!important;border-color:#4b9569!important}
.requirements .unmet{background:#4d2b28!important;color:#ffd6c7!important;border-color:#aa5149!important}
.stock-list{min-width:0}
.goods-scroller{scrollbar-color:#b08a4a #1a2020!important}
.goods-row{border-color:#66563d!important;background:#242522!important;color:#f5e7d0!important;padding:7px 5px!important;grid-template-columns:50px minmax(95px,1fr) 55px minmax(150px,auto)!important;gap:9px!important;min-height:66px!important}
.goods-row:nth-child(even){background:#1e2221!important}
.goods-symbol{width:48px;height:49px;display:grid;place-items:center;overflow:hidden;border:1px solid #ab854d;border-radius:4px;background:#171715}
.ui-icon{display:inline-block;object-fit:cover;object-position:center;width:27px;height:27px;vertical-align:middle;border-radius:3px;flex-shrink:0}
.goods-symbol .ui-icon{width:46px;height:45px;object-fit:cover}
.goods-desc b{color:#f9e6bf!important;font:700 14px Georgia,serif!important}
.goods-desc small{color:#d1c09e!important;font:11px/1.25 system-ui,sans-serif!important}
.goods-price b{color:#f3d282!important}.goods-price small{color:#d7c5a6!important}
.qty output{color:#ffeba9!important;font-weight:800!important}.qty button{background:#3d3528!important;color:#ffe1a5!important;border:1px solid #947040!important}.qty button:disabled{opacity:.48!important}
.provision-crew strong{color:#e8c58a!important}
/* HUD: all icons represent distinct categories, retain readable labels. */
.trail-hud{background:#161b1b!important;border-top:1px solid #947549!important;border-bottom:1px solid #957042!important}
.trail-hud>div{border-color:#6e5a38!important}
.trail-hud span{display:flex;align-items:center;gap:5px;color:#ddc69c!important;white-space:nowrap}
.trail-hud strong{color:#ffe2a5!important}.trail-hud .ui-icon{height:25px;width:25px;object-fit:cover}
/* One-screen road; text is a separate accessible surface. */
.road-base .story-note,.road-base .road-controls{background:#1b201f!important;color:#efe0c4!important;border-color:#987748!important;box-shadow:inset 0 0 25px #0005}
.road-base .story-note .eyebrow,.next-label{color:#d6b477!important}
.road-base .story-note p{color:#f3e5cd!important}
.road-base .story-note blockquote{color:#e2caa7!important;font-family:Georgia,serif!important}
.story-note .road-remembrance{color:#e0c59a!important}.road-activity-recap{color:#d4bc92!important}
.road-controls .next-label strong{color:#ffe1ad!important}
.quick-actions button{background:#272925!important;color:#f7e1bc!important;border:1px solid #967344!important;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:33px}
.quick-actions button:hover{background:#48402d!important}
.quick-actions .ui-icon{width:22px;height:22px}
/* Story dialogs: no washed-out parchment, real selectable high-contrast type. */
.veil{background:#080c10da!important;backdrop-filter:blur(6px)}
.veil .dialog{background:#0e1214!important;border:3px solid #c49b58!important;box-shadow:0 24px 85px #000e,inset 0 0 0 2px #6c512d!important}
.veil .dialog-content{background:linear-gradient(150deg,#202323 0%,#141818 100%)!important;color:#f2e4cc!important}
.veil .dialog-heading{background:linear-gradient(115deg,#2a2620,#181c1d)!important;border-bottom:2px solid #9e7943!important}
.veil .dialog-heading .eyebrow{color:#d5b27a!important}
.veil .dialog-heading h2{color:#ffe2ac!important;font:700 clamp(25px,2.4vw,38px)/1.13 Georgia,serif!important;border:0!important;text-shadow:0 2px 6px #000!important}
.veil .dialog-body{background:transparent!important;color:#f2e4cc!important;scrollbar-color:#bd9458 #171e20!important;scrollbar-width:auto!important}
.veil .dialog-body p,.veil .dialog-body .prose{color:#f1e3c8!important;font:clamp(16px,1.23vw,19px)/1.62 Georgia,serif!important}
.veil .dialog-body h3{color:#f3d69e!important;font-family:Georgia,serif!important}
.veil .dialog-body b,.veil .dialog-body strong{color:#fff0c9}
.veil .dialog-footer{background:#22211e!important;border-top:2px solid #806137!important}
.veil .reader-label{color:#e0c18b!important}
.veil .dialog-reading-tools button{border:1px solid #aa864e!important;background:#32302b!important;color:#f8e6c6!important}
.veil .dialog-reading-tools button:hover{background:#4b3d2c!important}
.veil .story-narration{background:linear-gradient(130deg,#2c302d,#222725)!important;border-left:4px solid #d6a754!important;box-shadow:inset 0 0 0 1px #776342!important}
.veil .story-narration-label{color:#e4c38f!important}
.veil .story-narration p{color:#f9edda!important}
.veil .story-history{color:#ead6b2!important;border-left:2px solid #927746!important}
.veil .story-dialogue{background:#292a27!important;border:1px solid #977747!important}
.veil .story-speaker{background:#3b3429!important;border-right:1px solid #a68a57!important}
.veil .story-speaker strong{color:#ffe2a9!important}
.veil .story-speaker small{color:#d6b988!important}
.veil .story-dialogue blockquote{color:#f6e8cb!important}
.veil .decision-heading{border-color:#7c6241!important}.veil .decision-heading span{color:#f0d3a5!important}.veil .decision-heading small{color:#d9bb89!important}
.veil button.story-choice{background:linear-gradient(130deg,#2d302e,#232522)!important;border:1px solid #a3885f!important;color:#f7e7c8!important;box-shadow:inset 4px 0 #b18a54!important}
.veil button.story-choice:hover:not(:disabled){background:#44412f!important;border-color:#f3ca83!important;box-shadow:inset 4px 0 #ffce7d,0 2px 14px #0006!important}
.veil .choice-index{background:#ad7d38!important;color:#fff8de!important}
.veil .choice-copy strong{color:#ffebc4!important;font:700 clamp(16px,1.15vw,19px)/1.35 Georgia,serif!important}
.veil .choice-copy>span{color:#e8d4ad!important;font:clamp(13px,.98vw,15px)/1.42 Georgia,serif!important}
.veil .choice-copy em{color:#ddbc88!important}
.veil button.story-choice.locked{opacity:.65;filter:none!important}.veil .choice-locked{color:#ffc3ad!important}
.veil .outcome-dossier{background:#30352f!important;border-left:4px solid #bd9554!important}.veil .outcome-dossier p{color:#f8e8cc!important}
.veil .outcome-effects{background:#292d29!important;border:1px solid #937848!important}.veil .outcome-effects strong{color:#efd8b1!important}
.veil .outcome-effects span{color:#f6e9d3!important;background:#30352f!important;border:1px solid #88704a!important}
.veil .outcome-future{color:#d5c2a0!important}
.veil .camp-conversation{background:#292b28!important;border-color:#9b7a47!important;color:#f5e2bb!important}
.veil .camp-conversation p,.veil .camp-reflection{color:#e8d6b6!important}
.veil .battle-last{background:#303026!important;color:#f2ddad!important}
.veil .enemy-numbers{background:#2a2e2c!important;border-color:#907345!important;color:#f5e3bf!important}
.veil .battle-numbers span{background:#33352e!important;color:#f9e7c5!important}
.veil .branch-ledger,.veil .cargo-book,.veil .cargo-focus,.veil .cargo-capacity>div{color:#f6dfb6!important}
.veil .member-row p,.veil .journal-list li,.veil .aside-caption{color:#ead5b3!important}
.veil .cargo-slot{background:#262b28!important;color:#f1dcb5!important;border-color:#98744a!important}
.veil .cargo-slot .cargo-emblem{display:flex;align-items:center;justify-content:center}.veil .cargo-slot .ui-icon{height:49px;width:54px}
.veil .cargo-focus strong{display:flex;align-items:center;gap:9px}
.veil .trading-list>div{background:#212723!important;border:1px solid #66583f!important;color:#f8e4c0!important}.veil .trading-list .ui-icon{width:32px;height:30px;margin-right:5px}
.veil .trading-list button{border:1px solid #ae894e;background:#303427;color:#f4daa6;min-height:34px}
.veil .market-painting{border-color:#ad8650!important}
/* Responsive, without sacrificing reader legibility. */
@media(max-width:1050px){.goods-row{grid-template-columns:42px minmax(70px,1fr) 43px minmax(125px,auto)!important;gap:4px!important}.goods-symbol,.goods-symbol .ui-icon{width:40px;height:44px}.trail-hud .ui-icon{width:20px;height:20px}.title-shadow{margin:16px!important}}
@media(max-width:759px){
 .title-screen{background-position:57% center!important}
 .title-shadow{max-width:96%!important;margin:8px!important;padding:12px!important;background:#13191bea!important}
 .title-shadow p{font-size:15px!important;line-height:1.45!important}
 .prologue .intro-illustration{border-bottom:2px solid #ad874f!important}
 .intro-paper{border-left:0!important;border-top:2px solid #99723b;padding:15px!important;justify-content:safe flex-start!important}
 .intro-paper p{font-size:15px!important;line-height:1.48!important;margin-bottom:11px!important}
 .intro-paper h1{font-size:25px!important}
 .intro-action{display:flex;gap:5px;flex-wrap:wrap}
 .intro-action .btn{padding:9px 8px!important;font-size:10px!important;min-height:36px!important}
 .goods-row{grid-template-columns:44px minmax(85px,1fr) 45px!important;gap:5px!important}
 .goods-row .qty{grid-column:2/4}.goods-symbol,.goods-symbol .ui-icon{width:43px;height:43px}
 .veil .dialog-heading h2{font-size:24px!important}
 .veil .dialog-body p,.veil .dialog-body .prose{font-size:16px!important;line-height:1.53!important}
 .veil .story-narration p{font-size:16px!important}
 .veil .story-dialogue blockquote{font-size:15px!important;line-height:1.45!important}
 .veil button.story-choice{padding:12px!important}
 .veil .choice-copy strong{font-size:15px!important}
 .veil .choice-copy>span{font-size:13px!important}
 .veil .dialog-footer{padding:7px!important}
 .trail-hud .ui-icon{width:19px;height:19px}
 .quick-actions .ui-icon{width:18px;height:18px}
}
@media(max-width:420px){.title-shadow h1{font-size:clamp(35px,9vw,50px)!important}.phase-marker{display:none!important}.trail-hud span{flex-direction:column;gap:1px}.trail-hud .ui-icon{width:16px;height:16px}.goods-desc b{font-size:12px!important}.goods-desc small{font-size:9px!important}.qty button{padding:4px!important;min-width:25px!important}.veil .dialog-reading-tools button{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Final contrast correction: inherited parchment quote surface must not reappear in the journal. */
.road-base .story-note blockquote{background:#2a2b27!important;color:#f6e5c5!important;border:1px solid #846b43!important;border-left:3px solid #dfb86e!important;padding:8px 12px!important;text-shadow:none!important}
.road-base .story-note p,.road-base .story-note blockquote{font-size:clamp(12px,1vw,15px)!important;line-height:1.48!important}
.road-base .story-note .road-activity-recap{background:transparent!important;color:#e5cc9f!important}
.goods-price b{font-size:clamp(11px,.9vw,14px)!important}.goods-price small{font-size:10px!important}
.goods-row .qty button{font-weight:800!important}
