/* Classic preserves the original palette. Monochrome removes color throughout the game. */
html[data-theme="monochrome"]{filter:grayscale(1)}
#menuBackdrop{inset:0!important;background:url('menu-loop-v46.jpg') 62% 54%/cover!important;animation:none!important;transform:none!important}#menuVideo{display:block;width:100%;height:100%;object-fit:cover;object-position:62% 54%;transform:scale(1.12);pointer-events:none}#menuVideo[hidden]{display:none}#menuAtmosphere{display:none!important}#titleScreen::before{background:linear-gradient(90deg,#fafafab8,transparent 72%)!important}#titleScreen .title-actions{gap:5px}#titleScreen .title-actions button{min-height:40px}
#gameSettings{box-sizing:border-box;width:min(670px,calc(100dvw - 24px));height:min(570px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:18px;border:2px solid #292929;background:#eee9df url('paper-ui.png') center/cover;color:#171717;overflow:hidden}#gameSettings[open]{display:flex;flex-direction:column;gap:12px}#gameSettings .settings-head{display:flex;align-items:center;justify-content:space-between;gap:10px}#gameSettings h2{font:700 26px/1.1 monospace;margin:4px 0}#gameSettings h3{font:600 16px monospace;margin:0 0 10px}#gameSettings small{font:11px monospace}#closeGameSettings{min-width:42px;font-size:24px}#gameSettings .settings-tabs{display:flex;gap:5px}#gameSettings .settings-tabs button{flex:1;min-height:42px}#gameSettings button[aria-pressed="true"]{box-shadow:inset 0 -3px #171717;font-weight:700}#gameSettings .settings-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:13px;font:13px monospace}#gameSettings .settings-page[hidden]{display:none}#gameSettings label{display:flex;flex-direction:column;gap:5px;margin:0;min-width:0;font:13px monospace}#gameSettings select{width:100%;min-width:0;height:38px;font:12px monospace}#gameSettings input[type="range"]{width:100%;height:28px;margin:0}#gameSettings label small{color:#505050;font-size:10px;line-height:1.3}#gameSettings .theme-choices{display:flex;gap:12px}#gameSettings .theme-choices button{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:5px;padding:8px;border:1px solid #5a554c}#gameSettings .theme-preview{display:block;width:100%;padding:9px;font:700 18px/.9 monospace;min-height:54px;background:url('paper-ui.png') center/cover;color:#222}.classic-preview{background-color:#d7c9a9!important;background-blend-mode:multiply}.mono-preview{filter:grayscale(1);background-color:#fff!important}#gameSettings .setting-check{flex-direction:row;align-items:center;min-height:38px}#gameSettings .setting-check input{width:20px;height:20px}#gameSettings footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #8a8579;padding-top:8px;font:11px monospace}#gameSettings footer button{min-width:84px;min-height:40px}#gameSettings #settings-audio{display:grid;grid-template-columns:1fr 1fr;gap:10px}#gameSettings #settings-audio[hidden]{display:none}#gameSettings #nowPlaying{grid-column:1/-1;margin:0;font-size:11px;min-height:26px}#gameSettings #settings-audio button{min-height:38px;font-size:12px}#gameSettings #settings-audio #skipMusic{margin:0}#quickGameSettings{font:22px monospace}
html[data-ui-scale="large"] #panel button,html[data-ui-scale="large"] #commandBar button{font-size:13px!important}html[data-ui-scale="large"] #cardPage .card b{font-size:14px!important}html[data-ui-scale="large"] #cardPage .card .cost{font-size:12px!important}html[data-ui-scale="large"] #gameSettings label{font-size:15px}
@media(max-width:600px){#gameSettings{padding:12px;gap:9px}#gameSettings h2{font-size:22px}#gameSettings .settings-page{gap:10px}.resources{gap:8px!important}header .wordmark{max-width:78px}#quickGameSettings{width:36px;min-width:36px}#gameSettings .theme-choices{gap:6px}#gameSettings .theme-choices small{font-size:10px}#gameSettings label small{font-size:10px}}
@media(max-height:560px){#gameSettings{height:calc(100dvh - 12px);padding:8px 12px;gap:6px!important}#gameSettings .settings-head small{display:none}#gameSettings h2{font-size:20px}#gameSettings .settings-tabs button{min-height:34px}#gameSettings h3{font-size:13px;margin:0}#gameSettings .settings-page{gap:6px}#gameSettings .theme-preview{display:none}#gameSettings .theme-choices button{padding:5px;gap:2px}#gameSettings select{height:32px}#gameSettings label small{display:none}#gameSettings footer{padding-top:5px}#gameSettings footer button{min-height:32px}#gameSettings .setting-check{min-height:30px}#gameSettings #settings-audio{gap:4px 10px}#gameSettings input[type="range"]{height:22px}#gameSettings #nowPlaying{min-height:13px;font-size:10px}#gameSettings #settings-audio button{min-height:28px}#gameSettings #settings-graphics p{font-size:11px;margin:4px 0}}

html[data-theme="monochrome"] dialog,html[data-theme="monochrome"] [popover]{filter:grayscale(1)}html[data-theme="monochrome"] dialog::backdrop{background:#0008}#openOptions[hidden]{display:none!important}
