/* Device preferences are loaded by the player only, never by the owner editor. */
.comfort-panel[hidden]{display:none!important}
.right-pane .panel-actions #comfortButton{grid-column:1 / -1}
.comfort-panel{position:fixed;z-index:130;top:50%;left:50%;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid var(--theme-border,#c6a74e);border-radius:12px;background:var(--panel,#10271e);color:var(--cream,#fff5dc);box-shadow:0 0 0 100vmax #020611cc,0 18px 70px #000b;font:400 15px/1.5 'Segoe UI',Arial,sans-serif;}
.comfort-panel .comfort-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.comfort-panel h2{font:700 23px/1.25 'Segoe UI',Arial,sans-serif;margin:0;color:var(--theme-accent,#ffe373)}
.comfort-panel p{font:inherit;margin:12px 0;color:inherit}
.comfort-panel fieldset{margin:18px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--theme-border,#c6a74e)}
.comfort-panel legend{font-weight:700;padding:0 10px 0 0;color:var(--theme-accent,#ffe373)}
.comfort-panel label{display:block;margin:12px 0;font:inherit}
.comfort-panel .comfort-check{display:flex;align-items:center;gap:10px;min-height:44px}
.comfort-panel input[type='checkbox']{width:22px;height:22px;flex:0 0 auto;accent-color:var(--theme-accent,#ffe373)}
.comfort-panel input[type='range']{display:block;width:100%;min-height:38px;accent-color:var(--theme-accent,#ffe373)}
.comfort-panel select{display:block;width:100%;min-height:44px;margin-top:6px;padding:8px;color:var(--cream,#fff5dc);background:var(--theme-surface-2,#18332b);border:1px solid var(--theme-border,#c6a74e);border-radius:5px;font:inherit}
.comfort-panel .comfort-note{font-size:13px;line-height:1.55;color:var(--muted,#d0dacd)}
.comfort-panel .comfort-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.comfort-panel button{min-height:44px;font:700 13px/1.4 'Segoe UI',Arial,sans-serif}
.comfort-panel :focus-visible{outline:3px solid var(--theme-secondary,#70ff9a);outline-offset:4px}
body[data-player-readable='on'] :is(.session-receipt,.help-toast,.stage-description){font-family:'Segoe UI',Arial,sans-serif}
body[data-player-motion='off'] *,body[data-player-motion='off'] *::before,body[data-player-motion='off'] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body[data-player-motion='off'] .drink-stage .glass-button:is(.is-spilling,.is-spilled,.is-sipping) .glass-float-anchor{animation:none!important;transform:none!important;opacity:.7}
body[data-player-motion='off'] .drink-stage .glass-button.is-spilling .spill-liquid{opacity:.7;transform:translateX(-10%) scale(1)}
@media(max-width:380px){.comfort-panel{padding:16px}.comfort-panel h2{font-size:21px}}
/* Enlarged personal text must wrap status copy instead of clipping the phone. */
@media(max-width:480px){.deck-heading{flex-wrap:wrap}.deck-heading strong{white-space:nowrap}.machine-footline{height:auto;min-height:29px;align-items:flex-start}.machine-footline #connectionNotice{flex:1 1 210px;min-width:0;overflow-wrap:anywhere}.machine-topline{height:auto;min-height:46px;gap:6px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}.machine-live{min-width:0;overflow-wrap:anywhere}}
