/* Optional display styles. Gameplay controls and touch targets stay in place. */
:root{--surface:#fafbf3;--board-surface:#e8ecdf;--tile-surface:#fafbf5;--soft-surface:#edf2e5;--accent:#173f36;--accent-text:#fffdf2;--secondary-text:#6c7d68;--dialog-surface:#fafbf3}
html[data-theme=midnight]{color-scheme:dark;--ink:#d6e6e1;--muted:#98aca8;--paper:#0e1921;--line:#30424a;--surface:#172730;--board-surface:#1d3038;--tile-surface:#223942;--soft-surface:#213940;--accent:#a9d7c8;--accent-text:#132c2b;--secondary-text:#a7b9b3;--dialog-surface:#192c34;--orange:#f0b07c}
html[data-theme=ivory]{color-scheme:light;--ink:#363c38;--muted:#89867d;--paper:#eee9df;--line:#d7d1c5;--surface:#faf7ef;--board-surface:#e4dfd3;--tile-surface:#fffcf5;--soft-surface:#ece6d9;--accent:#555f4b;--accent-text:#fffdf4;--secondary-text:#77796b;--dialog-surface:#faf7ef;--orange:#b27b51}
.compact-ui #languageToggle{border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);min-height:38px;min-width:43px;padding:7px 10px;font-size:12px;font-weight:700}
.compact-ui .atlas-bar,.compact-ui .panel,.compact-ui .feed-details,.compact-ui .online-panel{background:var(--surface);border-color:var(--line)}
.compact-ui .board-shell,.compact-ui .board-center{background:var(--board-surface);border-color:var(--line)}
.compact-ui .tile{background:var(--tile-surface);border-color:var(--line);color:var(--ink)}
.compact-ui .tile .price,.compact-ui .tile .symbol,.compact-ui p,.compact-ui .player-info small,.compact-ui .player-money small,.compact-ui .feed-item small{color:var(--secondary-text)}
.compact-ui .modal,.compact-ui .setup-footer{background:var(--dialog-surface);color:var(--ink)}
.compact-ui .modal input,.compact-ui .modal select{background:var(--tile-surface);border-color:var(--line);color:var(--ink)}
.compact-ui .modal .close,.compact-ui .extra-tools>button,.compact-ui .board-tools button,.compact-ui .selected-map-preview,.compact-ui .connection-switch,.compact-ui .mission-card,.compact-ui .save-card,.compact-ui .guide-target{background:var(--soft-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .atlas-actions>button,.compact-ui .prop-row button,.compact-ui .layout-choices button{background:var(--soft-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .primary,.compact-ui .dark,.compact-ui .roll,.compact-ui .end,.compact-ui #onlineButton,.compact-ui .dock-primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
.compact-ui .action-panel button.secondary,.compact-ui .secondary{background:var(--soft-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .player.active{background:var(--soft-surface)}
.compact-ui .connection-switch button[aria-pressed=true],.compact-ui .map-card,.compact-ui .map-card.chosen{background:var(--tile-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .center-title,.compact-ui .turn-text,.compact-ui .players-panel h2,.compact-ui .action-panel h2{color:var(--ink)}
.compact-ui .dice{background:var(--tile-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .mobile-dock:not([hidden]){background:var(--surface);border-color:var(--line);box-shadow:0 -5px 25px #0000000a}
.compact-ui .dock-buttons button:not(.dock-primary){background:var(--soft-surface);color:var(--ink);border-color:var(--line)}
.compact-ui .journey-news{background:var(--soft-surface)!important;border-color:var(--line)!important}.compact-ui .journey-news h3,.compact-ui .journey-news small{color:var(--ink)}
.compact-ui #economyNote{background:var(--soft-surface);color:var(--secondary-text)}
.compact-ui .board-toolbar>span{font-size:10px!important}.compact-ui .board-toolbar>span:after{content:none!important}
.compact-ui .theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.compact-ui .theme-choices>button{position:relative;border:1px solid var(--line);border-radius:12px;padding:9px;background:var(--surface);color:var(--ink);text-align:left;min-width:0;min-height:120px}.compact-ui .theme-choices b{font-size:13px;display:block;margin:9px 2px 3px}.theme-preview{height:65px;border-radius:7px;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:16px 1fr;gap:5px;padding:7px}.theme-preview i{display:block;border-radius:3px}.theme-preview i:first-child{grid-column:1/-1}.theme-preview-jade{background:#dce6d8}.theme-preview-jade i{background:#f8faf0}.theme-preview-jade i:first-child{background:#346451}.theme-preview-midnight{background:#10242e}.theme-preview-midnight i{background:#29434d}.theme-preview-midnight i:first-child{background:#9bcfbe}.theme-preview-ivory{background:#e3dac9}.theme-preview-ivory i{background:#fffcf5}.theme-preview-ivory i:first-child{background:#6d755c}.theme-check{position:absolute;right:10px;bottom:10px;color:var(--accent);font-weight:800;opacity:0}.theme-choices [aria-pressed=true]{box-shadow:0 0 0 1px var(--accent);border-color:var(--accent)!important}.theme-choices [aria-pressed=true] .theme-check{opacity:1}
.compact-ui .prefs-language{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:15px}.compact-ui .prefs-language select{margin:0}.compact-ui .layout-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compact-ui .layout-choices button{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:9px;font-size:13px}.compact-ui .layout-choices [aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.compact-ui .prefs-help{font-size:12px;line-height:1.65}.compact-ui .prefs-quiet{border-top:1px solid var(--line);margin-top:20px}.compact-ui .prefs-quiet label{display:flex;align-items:center;gap:10px}.compact-ui .prefs-quiet input{min-height:20px;width:20px;height:20px;margin:0;accent-color:var(--accent)}
html[data-layout=focus] .feed-details,html[data-layout=focus] .center-title{display:none!important}html[data-layout=focus] .compact-ui .board-center{justify-content:center}html[data-layout=focus] .compact-ui .dice-area{margin-top:0}html[data-layout=focus] .compact-ui .panel{padding:13px}
html[lang=en] .compact-ui .tile-name{overflow-wrap:anywhere;font-size:clamp(8px,.8vw,11px);line-height:1.15}html[lang=en] .compact-ui .tile .symbol{font-size:20px}html[lang=en] .compact-ui .action-panel button{white-space:normal;line-height:1.4}html[lang=en] .compact-ui #journeyPortal{min-width:105px}
html[data-theme=midnight] .compact-ui .map-card.chosen{box-shadow:inset 0 0 0 2px var(--accent)}html[data-theme=midnight] .compact-ui .brand-icon{background:var(--accent);color:var(--accent-text)}html[data-theme=midnight] .compact-ui .label,html[data-theme=midnight] .compact-ui .eyebrow,html[data-theme=midnight] .compact-ui .selected-map-preview,html[data-theme=midnight] .compact-ui .save-note,html[data-theme=midnight] .compact-ui #marketLabel{color:var(--secondary-text)}
@media(max-width:700px){.compact-ui header nav{gap:6px}.compact-ui #languageToggle{min-width:37px;min-height:36px;padding:6px;font-size:11px}.compact-ui #newGame{padding:8px 10px;font-size:11px}.compact-ui .brand{font-size:15px}.compact-ui .brand-icon{display:none}.compact-ui .theme-choices{gap:7px}.compact-ui .theme-choices>button{padding:7px;min-height:112px}.compact-ui .theme-choices b{font-size:12px}.compact-ui .theme-preview{height:58px}.compact-ui .theme-check{right:8px;bottom:10px}.compact-ui .prefs-help{font-size:12px}html[lang=en] .compact-ui .tile-name{font-size:8px;line-height:1.1}html[lang=en] .compact-ui .atlas-actions>button{font-size:11px}html[lang=en] .compact-ui #journeyPortal{min-width:0}html[lang=en] .compact-ui .extra-tools>button{font-size:11px}.compact-ui .prefs-language{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.theme-choices button{transition:none}}
