.vision-layer.player-fog{z-index:7}
.tile-layer{isolation:isolate}
.tile-layer img{position:absolute;display:block;pointer-events:none}
.fog-appearance{margin:23px 0;padding:17px;border:1px solid var(--theme-line,#dfe6d0);background:var(--theme-raised,#f6f8ed);border-radius:10px}
.fog-color-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:var(--theme-muted,#81946e)}
.fog-color-heading input{width:48px;height:32px;padding:3px;background:var(--theme-surface,#fffff8);border:1px solid var(--theme-line,#d6e1c5);border-radius:6px;cursor:pointer}
.fog-swatches{display:flex;gap:10px;margin:15px 0 23px}
.fog-swatches button{width:29px;height:29px;border-radius:50%;background:var(--fog-swatch);border:3px solid var(--theme-line,#fcfff5);box-shadow:0 0 0 1px var(--theme-shadow,#cad6bb)}
.fog-swatches button:hover{box-shadow:0 0 0 2px var(--theme-shadow,#b3c49d)}
.fog-range label{display:flex;justify-content:space-between;gap:15px;font-size:11px;line-height:1.7}
.fog-range output{color:var(--theme-gold-text,#a8925e);white-space:nowrap}
.fog-range input[type=range]{accent-color:var(--theme-accent,#94a77c);width:100%;padding:0;margin-top:13px;cursor:pointer}
.preview-player-list{display:flex;flex-direction:column;gap:9px;margin-top:21px}
.preview-player-list .scene-card>i{width:13px;height:13px;border-radius:50%;flex-shrink:0;margin:7px}
.preview-player-list .scene-card span{flex:1;min-width:0}
.preview-player-list .scene-card small{line-height:1.7;overflow-wrap:anywhere}
.player-banner button{font:inherit;text-decoration:underline;text-underline-offset:3px;margin-left:10px;color:var(--theme-accent-text,#738c5f)}
.deck-form{display:block}
.deck-form-main{display:flex;align-items:center;gap:6px}
.dice-cards{max-height:min(302px,36vh)}
.dice-card{flex:none}
.roll-mode-picker{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--theme-line,#e1e7d5);background:var(--theme-raised,#f7f9ef);border-radius:6px;margin-top:9px}
.roll-mode-picker[hidden]{display:none}
.roll-mode-picker button{flex:1;padding:6px 3px;font-size:9px;line-height:1.3;color:var(--theme-muted,#9eae8d);border:1px solid transparent;border-radius:4px;white-space:nowrap}
.roll-mode-picker button:hover{background:var(--theme-raised,#edf2e3);color:var(--theme-muted,#7e946c)}
.roll-mode-picker button[aria-pressed=true]{background:var(--theme-raised,#e8eedb);border-color:var(--theme-line,#d3dfc0);color:var(--theme-muted,#7d9368)}
.roll-mode-picker button[data-roll-mode=advantage][aria-pressed=true]{background:var(--theme-raised,#e1edda);border-color:var(--theme-line,#c3d7b4);color:var(--theme-accent-text,#718d5d)}
.roll-mode-picker button[data-roll-mode=disadvantage][aria-pressed=true]{background:var(--theme-gold-bg,#f2e6d5);border-color:var(--theme-gold-line,#e1cdaf);color:var(--theme-gold-text,#ad8c5f)}
.save-mode-heading{font-size:9px;color:var(--theme-muted,#9caa8a);margin-top:17px}
.save-mode-heading .roll-mode-picker{margin-top:7px}
#calculatorForm>.roll-mode-picker{margin:13px 0 20px}
.roll-mode-tag{display:inline-block;font-size:8px;font-style:normal;border:1px solid var(--theme-line,#dce4cd);border-radius:4px;padding:2px 5px;color:var(--theme-muted,#91a47a);margin-left:5px;vertical-align:baseline}
.roll-dice-group b{font-weight:650;color:var(--theme-accent-text,#728c5d)}
.roll-dice-group del{color:var(--theme-muted,#b6bfaa);text-decoration-thickness:1px}
.roll-mode-caption{color:var(--theme-gold-text,#a39773)}
.history-roll-detail{display:block;font-size:10px;line-height:1.8;margin-top:5px;color:var(--theme-muted,#a6b197)}
.roll-strip .roll-dice-group{white-space:nowrap}
.roll-strip>span>small{display:block;margin:5px 0 0;line-height:1.7}
@media(max-width:540px){.roll-mode-picker button{font-size:9px;padding:7px 2px}.fog-appearance{padding:14px}.fog-range label{font-size:10px}}

/* Functional labels and compact headings. */
.wordmark{font-size:clamp(20px,2.1vw,29px);letter-spacing:-1px;white-space:nowrap}
.stage-heading h1,.dialog-heading h2{margin-top:0}
.welcome-card{padding:24px 20px}
.welcome-card>h1{font-family:inherit;font-size:30px;font-weight:600;letter-spacing:-.6px;margin:0 0 14px}
.panel-title{font-size:11px;font-weight:600}
.rail-button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;height:auto;min-height:49px;padding:6px 2px}
.rail-button .rail-label{font-size:8px;line-height:1.15;white-space:nowrap}
.dice-dock-heading h2{flex-basis:100%;margin:0}
.dice-dock-heading>.text-button{font-size:10px;gap:5px;width:auto;height:auto;min-height:28px;justify-content:flex-start;padding:4px 5px}
.stage-footer{height:auto;min-height:39px;flex-wrap:wrap;padding:7px 0;gap:6px 12px}
.stage-footer .text-button{font-size:10px;gap:5px}
@media(max-width:600px){.landing-brand>strong{font-size:29px}.welcome-card{padding:24px 2px}.rail-button .rail-label{font-size:7px}.rail-button{min-height:43px}.stage-footer .text-button{font-size:9px}.dice-dock-heading>.text-button{font-size:9px}}
