/* WORLD ORDER v036 (interface 0.36.0)
   - OPTIONS: one dialog for sound, visuals, match and developer settings. In the main menu it opens from OPTIONS (below
     IMPORT REPLAY); in the duel from the OPTIONS button in the bottom-right corner, where the separate buttons used to be.
   - Main menu: the deck and opponent dropdowns are a little smaller, with the arrow moved in from the right edge.
   - v036.1: Putin's new portraits are whole (no side cut), so the edge fade of v036 is gone. */

/* ---------------------------------------------------------------- OPTIONS dialog */
.options-dialog{position:fixed;inset:auto;margin:0;width:min(392px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);overflow:auto;padding:0;
  border:1px solid #cbb17b99;border-radius:6px;background:linear-gradient(160deg,#17303af8,#0a1922fb);color:#e7ecea;font-family:var(--wo-text);
  box-shadow:0 24px 70px #000e,inset 0 1px 0 #ffffff12}
.options-dialog::backdrop{background:#01070a73}
.options-dialog.is-centered{inset:0;margin:auto}
.options-dialog svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
.options-dialog button{font-family:var(--wo-title);cursor:pointer}
.opt-head{position:relative;display:flex;flex-direction:column;gap:5px;padding:15px 18px 12px;border-bottom:1px solid #ffffff14}
.opt-head .eyebrow{font:600 10px/1 var(--wo-title);letter-spacing:.22em;color:#cbb07a}
.opt-head h2{margin:0;font:700 23px/1 var(--wo-title);letter-spacing:.08em;text-transform:uppercase;color:#f3ead4}
.opt-close{position:absolute;right:12px;top:12px;width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid #8ca69b44;border-radius:50%;background:#0b182099;color:#aebcb9}
.opt-close:hover{border-color:#d4aa5b;color:#f0d9a5}
.opt-close svg{width:13px;height:13px;stroke-width:2.6}
.opt-group{padding:11px 18px 12px;border-bottom:1px solid #ffffff10}
.opt-group[hidden]{display:none}
.opt-group h3{margin:0 0 5px;font:600 10.5px/1 var(--wo-title);letter-spacing:.22em;text-transform:uppercase;color:#e6c47d}
.opt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:38px;padding:2px 0}
.opt-audio{grid-template-columns:150px minmax(0,1fr)}
.opt-label{font:600 14px/1.15 var(--wo-text);color:#e3e8e4;min-width:0}
.opt-label small{display:block;margin-top:2px;font:400 11.5px/1.3 var(--wo-text);color:#8ea3a4}
/* on/off switch for music and sound effects (a real checkbox underneath) */
.opt-switch{position:relative;display:flex;align-items:center;gap:10px;cursor:pointer;font:600 14px/1 var(--wo-text);color:#e3e8e4;user-select:none}
.opt-switch input{position:absolute;left:0;top:0;width:34px;height:18px;margin:0;opacity:0;cursor:pointer}
.opt-switch i{position:relative;flex:none;width:34px;height:18px;border-radius:9px;background:#22323b;border:1px solid #8ca69b55;transition:background .15s,border-color .15s;pointer-events:none}
.opt-switch i::after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#8fa4a6;transition:transform .15s,background .15s}
.opt-switch input:checked+i{background:#5b4724;border-color:#d4aa5b}
.opt-switch input:checked+i::after{transform:translateX(16px);background:#f3dca6}
.opt-switch input:focus-visible+i{outline:2px solid #f0cf8a;outline-offset:2px}
.opt-switch input:disabled+i,.opt-switch input:disabled~span{opacity:.45}
.opt-audio input[type=range]{width:100%;margin:0;accent-color:#d9b46a;cursor:pointer}
.opt-audio input[type=range]:disabled{opacity:.4}
.opt-note{margin:5px 0 0;font:11.5px/1.35 var(--wo-text);color:#9fb1b4}
/* choices: a small segmented control per setting (a radio group) */
.opt-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid #8ca69b44;border-radius:4px;background:#0b1820d9}
.opt-seg button{min-width:50px;height:28px;padding:0 10px;border:0;border-radius:3px;background:none;color:#9fb1b4;font:600 11.5px/1 var(--wo-title);letter-spacing:.12em;text-transform:uppercase;transition:background .12s,color .12s}
.opt-seg button:hover{color:#f0d9a5;background:#d4aa5b1a}
.opt-seg button[aria-checked="true"]{background:linear-gradient(180deg,#e2be74,#b98b3e);color:#17110a;box-shadow:inset 0 1px 0 #fff3cf77}
.opt-seg button:focus-visible{outline:2px solid #f0cf8a;outline-offset:1px}
/* match actions (duel only) */
.opt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:3px}
.opt-action{display:flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 10px;border:1px solid #d4aa5b77;border-radius:3px;background:#0d1d27;color:#f0d9a5;font:600 12px/1 var(--wo-title);letter-spacing:.14em;text-transform:uppercase}
.opt-action:hover{background:#2b2616;border-color:#e8c98a;color:#fff1cf}
.opt-action:focus-visible,.opt-close:focus-visible{outline:2px solid #f0cf8a;outline-offset:2px}
.opt-foot{padding:9px 18px 12px;font:11.5px/1.3 var(--wo-text);color:#8ea3a4}
.options-dialog .opt-group:last-of-type{border-bottom:1px solid #ffffff10}
html:not(.wo-reduced-motion) .options-dialog[open]{animation:opt-in .18s cubic-bezier(.2,.7,.2,1)}
@keyframes opt-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-height:760px){
  .opt-head{padding:12px 18px 10px}
  .opt-head h2{font-size:20px}
  .opt-group{padding:8px 18px 9px}
  .opt-row{min-height:34px}
  .opt-foot{display:none}
  .mm-side-foot{border-top-color:transparent}   /* its only line (the save note) is hidden at this height */
}

/* ---------------------------------------------------------------- duel: OPTIONS in the bottom-right corner */
.dock-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:9px;padding:0 0 0 4px}
.options-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:46px;padding:0 14px;border:1px solid #d4aa5b88;border-radius:4px;
  background:linear-gradient(180deg,#152a34f0,#0b1820f2);color:#f0d9a5;font:700 15px/1 var(--wo-title);letter-spacing:.22em;
  box-shadow:inset 0 1px 0 #ffffff12,0 8px 20px #0009;transition:border-color .15s,background .15s,color .15s;cursor:pointer}
.options-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;flex:none}
.options-button:hover,.options-button[aria-expanded="true"]{border-color:#f0cf8a;background:linear-gradient(180deg,#2e2918f2,#17140cf2);color:#fff1cf}
.options-button:focus-visible{outline:2px solid #f0cf8a;outline-offset:2px}
.dock-actions .autosave-status{grid-column:auto;margin:0;text-align:center}

/* ---------------------------------------------------------------- main menu */
/* OPTIONS is the ninth item of the navigation (RETURN and RESUME are hidden most of the time) */
html:not(.wo-reduced-motion) .main-menu[open] .mm-nav .mm-item:nth-child(8){animation-delay:.35s}
html:not(.wo-reduced-motion) .main-menu[open] .mm-nav .mm-item:nth-child(9){animation-delay:.4s}
.mm-item[aria-expanded="true"]{background:linear-gradient(90deg,#d4aa5b24,transparent 85%);border-left-color:#d4aa5b;color:#f6e6bd}


/* deck and opponent dropdowns: a little smaller; a drawn arrow sits 12 px in from the right edge */
.main-menu .mm-field select{height:34px;padding:0 34px 0 11px;font-size:13.5px;-webkit-appearance:none;appearance:none;
  background:#0c1c26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23d8bd85' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center/11px 8px}
.main-menu .mm-field select:hover{border-color:#d4aa5b88}
.main-menu .mm-vs-fields select{height:31px}
.main-menu .seed-control input{height:34px}
.main-menu .seed-control button{height:34px}
@media (max-height:820px){
  .main-menu .mm-field select{height:31px}
  .main-menu .mm-vs-fields select{height:29px}
  .main-menu .seed-control input,.main-menu .seed-control button{height:31px}
}
