/* Options V1 — dedicated, touch-friendly Telegram Mini App window. */
.options-overlay{z-index:2150;background:rgba(3,9,26,.92)}
.options-popup-window{width:min(100%,570px);max-height:100%;
 border:1px solid #6d81c1;background:linear-gradient(160deg,#192850,#121b38 70%);
 box-shadow:0 20px 65px #000b}
.options-popup-window *{box-sizing:border-box;min-width:0}
.options-window-head{background:linear-gradient(105deg,#263d70,#222452)}
.options-window-head strong{font-size:calc(21px + 1pt);text-align:center}
.options-window-body{overflow-y:auto;flex:1;min-height:0;padding:15px;overscroll-behavior:contain}
.options-panel{color:#eff6ff}
.options-panel fieldset{border:0;margin:0;padding:0;display:grid;gap:10px}
.options-panel fieldset:disabled{opacity:.65}
.options-intro{font-size:13px;line-height:1.5;color:#bdd0f0;margin:0 0 4px}
.options-panel h3{margin:17px 0 1px;text-align:left;padding-bottom:8px;
 border-bottom:1px solid #465780;font-size:16px;color:#bdeaff}
.options-switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
 border:1px solid #354a72;background:#172542;border-radius:13px;padding:11px 12px;min-height:60px}
.options-row-copy{display:flex;flex:1;flex-direction:column;gap:4px}
.options-switch-row strong,.options-volume-row strong,.options-select-row strong{
 font-size:14px;line-height:1.35;font-weight:750}
.options-row-copy small{font-size:12px;color:#a9bcdd;line-height:1.4}
.options-switch-row input[type=checkbox]{appearance:none;-webkit-appearance:none;cursor:pointer;
 flex:0 0 47px;width:47px;height:28px;border-radius:20px;background:#4c5b77;
 border:1px solid #6c7998;position:relative;transition:background .12s}
.options-switch-row input[type=checkbox]::before{content:'';position:absolute;left:3px;top:3px;
 background:#ebf5ff;border-radius:50%;height:20px;width:20px;transition:left .12s}
.options-switch-row input[type=checkbox]:checked{background:#248a82;border-color:#63dcba}
.options-switch-row input[type=checkbox]:checked::before{left:23px}
.options-switch-row input:focus-visible,.options-panel select:focus-visible,
.options-panel input[type=range]:focus-visible{outline:2px solid #97e6ff;outline-offset:3px}
.options-volume-row,.options-select-row{display:grid;gap:10px;padding:10px 12px;
 border:1px solid #354a72;border-radius:13px;background:#172542}
.options-volume-row>span{display:flex;justify-content:space-between;gap:12px;align-items:center}
.options-volume-row output{font-size:14px;font-weight:800;color:#9cead9}
.options-volume-row input{width:100%;height:27px;accent-color:#71e1c6;touch-action:pan-x}
.options-volume-row input:disabled{opacity:.35}
.options-select-row select{background:#23385e;color:#f4f9ff;border:1px solid #6583b4;
 border-radius:10px;min-height:44px;padding:8px 10px;font-size:14px}
.options-reset-btn{width:100%;margin-top:18px;border-color:#7d7eb0;background:#26335a}
.options-reset-confirm{margin-top:18px;padding:14px;border-radius:12px;
 border:1px solid #bb9a67;background:#3a3048;color:#f1e7dd}
.options-reset-confirm p{font-size:13px;line-height:1.5;margin:0 0 10px}
.options-reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.options-save-label{text-align:center;font-size:12px;color:#9ccbbb;margin:12px 0 3px}
html[data-digigram-text-size="large"] .content{zoom:1.08}
html[data-digigram-text-size="extra"] .content{zoom:1.16}
html.digigram-reduced-motion *,html.digigram-reduced-motion *::before,
html.digigram-reduced-motion *::after{animation:none!important;transition:none!important;
 scroll-behavior:auto!important}
html.digigram-combat-effects-off .arena,html.digigram-combat-effects-off .dungeon-charge-warning{
 animation:none!important;filter:none!important}
html.digigram-graphics-economy .content *{box-shadow:none!important;
 text-shadow:none!important;backdrop-filter:none!important}
@media(max-width:365px){.options-switch-row{padding:9px 10px}.options-panel h3{font-size:15px}}
