/* Options and Dev (js/options.js), and dev mode's cheat screen in their look (js/cheatscreen.js, at the end): one screen over the title and the pause menu. The tab strip at the top, the settings in sections under it, the focused
   setting's panel beside them, the key hints at the foot. Laid out for 1920x900; on a taller window it moves down by half the extra height (--short) */
#options{position:fixed;inset:0;z-index:42;display:flex;flex-direction:column;align-items:center;padding-top:var(--pageTop);box-sizing:border-box;
  font-family:var(--ui-head);color:#d8d2c0;background:rgba(4,3,2,.82);transition:background .25s}
#options:empty{display:none}
#title.options{visibility:hidden} /* the title's own page under it: the logo and list */
body:has(#options:not(:empty)) #pause{visibility:hidden} /* the pause menu under it, its blur too: the scene shows through the screen's own dim */
#options .otop{display:flex;flex-direction:column;align-items:center;width:1220px;flex:none}
#options .ohead{margin-bottom:22px} /* (its look: the page title's, menus.css) */
#options .otabs{display:flex;align-items:center;justify-content:center;gap:34px;min-width:100%;padding-bottom:0;border-bottom:1px solid rgba(178,165,135,.3);white-space:nowrap} /* the tab strip: L1 / R1 (Q / E) at its ends, the open tab gold and underlined */
#options .otabs>.keyOn{margin:0 0 10px}
#options .otab{padding:4px 2px 12px;margin-bottom:-1px;border-bottom:2px solid transparent;font-size:21px;letter-spacing:.02em;color:#8f8873;cursor:pointer}
#options .otab:hover{color:#cfc8b4}
#options .otab.on{color:#ebe8e0;border-bottom-color:#cfc6b0}
:is(#options,#cheats) .obody{display:flex;align-items:flex-start;width:1220px;flex:none}
:is(#options,#cheats) .olist{width:700px;flex:none;margin-top:18px;max-height:calc(660px - var(--short) / 2);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#817353 transparent} /* a page too long for the screen scrolls, ending above the key hints (#1495) */
#options.peek .olist{overflow:hidden}
#options .olist{scroll-padding-block:56px} /* (the focused row kept clear of the fade below) */
#options .olist.more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 56px),transparent)} /* more rows below: the list fades out at its foot (optListFade) */
#options .osec{display:flex;align-items:center;gap:14px;padding:16px 18px 6px;font-weight:600;font-size:15px;letter-spacing:.06em;color:#b2a587;text-transform:uppercase}
#options .osec:first-child{padding-top:4px}

:is(#options,#cheats) .orow{position:relative;display:flex;align-items:center;height:44px;padding:0 18px;font:20px Georgia,serif;color:#cfc8b4;cursor:pointer;box-sizing:border-box}
:is(#options,#cheats) .orow .olab{flex:1;display:flex;align-items:center;gap:10px;white-space:nowrap}
:is(#options,#cheats) .odot{width:7px;height:7px;border-radius:50%;flex:none} /* a gold dot: the setting is off its default */
:is(#options,#cheats) .odot.on{background:#cfc6b0;box-shadow:none}
:is(#options,#cheats) .orow.sel{background:var(--ui-sel-bg);color:var(--ui-sel-fg)} /* the one selection look: the row the dark block, everything on it light (the rules after #options .orow.sel .oseg) */
:is(#options,#cheats) .orow.btn{margin-top:16px}
:is(#options,#cheats) .orow.btn .olab{padding-left:17px} /* (in line with the settings' names, which stand after their 7px dot and its 10px gap: the way out looks like its siblings) */
:is(#options,#cheats) .orow.btn~.orow.btn{margin-top:0}
#options .orow.btn.oact{margin-top:0} /* a button among the settings (Run Benchmark): no gap above it, and what a press does at its right */
#options .ogo{text-align:right;padding-right:6px;font:18px var(--ui-head);letter-spacing:.02em;color:#a9a18c}#options .orow.sel .ogo{color:var(--ui-sel-fg)}
:is(#options,#cheats) .orow.btn.sel{color:var(--ui-sel-fg)}
:is(#options,#cheats) .orow.btn.back{margin-top:0} /* Back: the page's last row, under its Reset button, a row in the same look (the menus' way out is their last row) */
:is(#options,#cheats) .orow.btn.back.sel{color:var(--ui-sel-fg)}
#options .orow.dim .olab,#options .orow.dim .octl{opacity:.42} /* works only while another setting is on, which is off */
#options .ohold{position:absolute;left:18px;bottom:5px;height:2px;width:0;background:#cfc6b0;box-shadow:none;pointer-events:none} /* R / Y held: the Reset button fills */
:is(#options,#cheats) .octl{width:340px;flex:none}
/* a segmented choice: every option shown, the current lit, low to high left to right */
:is(#options,#cheats) .oseg{display:flex;gap:4px}
:is(#options,#cheats) .oseg span{flex:1;text-align:center;font-size:17px;color:#7b735d;padding:5px 0 4px;border-bottom:3px solid rgba(255,255,255,.1);white-space:nowrap}
:is(#options,#cheats) .oseg span:hover{color:#cfc8b4}
:is(#options,#cheats) .oseg span.on{color:#ebe8e0;border-bottom-color:#a79875}
:is(#options:not(.peek),#cheats) .orow.sel .oseg span{color:#a89d84;border-bottom-color:rgba(255,248,232,.16)}:is(#options:not(.peek),#cheats) .orow.sel .oseg span.on{color:var(--ui-sel-fg);border-bottom-color:var(--ui-sel-fg)}
#options.peek .orow.sel .oseg span.on{border-bottom-color:#cfc6b0}
/* a notched bar: one notch per step over the lowest, so the count and the top show; the value beside it */
#options .obar{display:flex;align-items:center;gap:12px}
#options .ob{flex:1;display:flex;align-items:center;gap:3px;height:24px}
#options .ob i{flex:1;height:10px;border-radius:0;background:rgba(255,255,255,.12);pointer-events:none}
#options .ob i.f{background:#b5a88b}
#options .orow.sel .ob i.f{background:#cfc6b0}
#options:not(.peek) .orow.sel .ob i{background:rgba(255,248,232,.16)}#options:not(.peek) .orow.sel .ob i.f{background:var(--ui-sel-fg)}
:is(#options:not(.peek),#cheats) .orow.sel :is(.onum,.obind,.ostep,.ostep b,.oneed,.odef){color:var(--ui-sel-fg)}:is(#options:not(.peek),#cheats) .orow.sel .odot.on{background:var(--ui-sel-fg)}
#options:not(.peek) .orow.sel .obind .kk kbd{color:var(--ui-sel-fg)}
#options .onum{width:64px;text-align:right;font:600 17px var(--ui-head);font-variant-numeric:lining-nums tabular-nums;color:#e4e0d5} /* lining figures, so a 7 or a 9 sits level with its bar (Georgia's drop below it) */
/* a key binding (keybinds.js): its key or button, shown whichever device is in use; waiting for a new one, a pulsing line in its place */
#options .orow.obr{height:40px} /* (a page of eleven: a little tighter, to fit 900 with its Reset and Back) */
#options .obind{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#e4e0d5}
#options .obind .kp{display:inline-block}#options .obind .kk{display:inline-flex;gap:6px}
#options .obind .kk kbd{font-size:16px}
#options .obind .owait{font:italic 18px Georgia,serif;color:#ebe8e0;animation:oWait 1.1s ease-in-out infinite alternate}
@keyframes oWait{from{opacity:.45}to{opacity:1}}
#options .orow.sel .obind.wait{outline:1px solid rgba(193,182,158,.6);outline-offset:6px}
#options .ostep{display:flex;align-items:center;justify-content:space-between;color:#e4e0d5}
#options .ostep b{width:24px;text-align:center;font-weight:normal;color:#6f664c}
#options .orow.sel .ostep b{color:#cfc6b0}
:is(#options,#cheats) .opanel{width:470px;flex:none;margin:30px 0 0 50px;box-sizing:border-box;padding:22px 26px;background:var(--ui-panel);border:1px solid var(--ui-panel-line)}
:is(#options,#cheats) .opanel:empty{visibility:hidden}
:is(#options,#cheats) .opanel h3{margin:0 0 12px;font-weight:600;font-size:22px;letter-spacing:.02em;color:#ebe8e0}
:is(#options,#cheats) .opanel p{margin:0;font:18px/1.5 Georgia,serif;color:#cbc3ac}
:is(#options,#cheats) .odef{margin-top:16px;font:16px Georgia,serif;color:#b2a587}
#options .odef.same{color:#6f6a58}
#options .odr{margin-left:10px;cursor:pointer;color:#cfc6b0;white-space:nowrap}
#options .odr:hover{color:#ebe8e0}
#options>.ps{position:fixed;left:0;right:0;bottom:22px;margin:0;font:16px Georgia,serif;letter-spacing:.02em;color:#bdb6a0;text-align:center}
#options .oneed{margin-top:12px;font:16px Georgia,serif;color:#b2a587}
/* the reset question: a small box over the page, Yes first; the dim behind it takes a click as No */
#options .oaskBg{position:fixed;inset:0;background:rgba(4,3,2,.55)}
#options .oask{position:fixed;top:50%;left:50%;width:480px;margin-left:-240px;transform:translateY(-50%);box-sizing:border-box;padding:26px 30px 22px;text-align:center;
  background:rgba(12,10,7,.97);border:1px solid rgba(178,165,135,.55);box-shadow:0 14px 40px rgba(0,0,0,.7)}
#options .oask h3{margin:0 0 10px;font-weight:600;font-size:22px;letter-spacing:.02em;color:#ebe8e0}
#options .oask p{margin:0 0 20px;font:18px/1.45 Georgia,serif;color:#cbc3ac}
#options .oaskB{display:flex;justify-content:center;gap:16px}
#options .oab{min-width:120px;padding:8px 0;font-size:18px;letter-spacing:.02em;color:#a9a18c;border:1px solid rgba(178,165,135,.3);cursor:pointer}
#options .oab.sel{color:var(--ui-sel-fg);border-color:var(--ui-sel-line);background:var(--ui-sel-bg)}
/* the menu steps aside (opt.peek): the focused row floats at the top over the fight's HUD or the scene, with its keys under it */
#options .opk{display:none}
#options.peek{background:transparent}
#options.peek .otop,#options.peek .opanel,#options.peek .osec,#options.peek .orow:not(.sel),#options.peek>.ps{visibility:hidden}
#options.peek .orow.sel{position:fixed;top:118px;left:50%;width:760px;margin-left:-380px;padding:0 26px;background:rgba(8,7,5,.86);color:#ebe8e0;border:1px solid rgba(178,165,135,.45);border-bottom:none;box-shadow:0 10px 30px rgba(0,0,0,.6)}
#options.peek .opk{display:block;position:fixed;top:162px;left:50%;width:760px;margin-left:-380px;box-sizing:border-box;padding:6px 0 10px;background:rgba(8,7,5,.86);border:1px solid rgba(178,165,135,.45);border-top:none}
#options.peek .opk .ps{margin:0;font:15px Georgia,serif;color:#a9a18c;text-align:center}
#options .ofps{display:none}
#options.peek .ofps{display:block;position:fixed;top:118px;left:50%;margin-left:396px;min-width:64px;padding:12px 10px;box-sizing:border-box;background:rgba(8,7,5,.72);border:1px solid rgba(178,165,135,.3);font:15px Georgia,serif;color:#a9a18c;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap} /* the preset preview's frame rate (options.js optFpsTick): beside the floating row */
body.optHud #hud{opacity:1!important;transition:none} /* a HUD setting floating: the HUD shows, over the title or the pause */
/* the temporary Tuning page (js/gfx-tune.js): its bars are continuous (many steps), the value wider */
#options .orow.tn .ob{gap:0}
#options .orow.tn .ob i{border-radius:0}
#options .orow.tn .onum{width:96px;font-size:15px}
#options .opanel .tid{font:14px Consolas,monospace;color:#8f8873}
#options .opanel .tcopy{display:inline-block;margin-top:10px;font:16px Georgia,serif;color:#cfc6b0;cursor:pointer}
#options .opanel .tcopy:hover{color:#ebe8e0}
/* the graphics benchmark (js/bench.js): its scene shown bare, the HUD and every other overlay hidden, a small panel at the top saying what is measured */
body.benching>*:not(canvas):not(#bench):not(#ver){visibility:hidden}
#bench{position:fixed;left:0;right:0;margin:0 auto;width:fit-content;top:40px;z-index:35;min-width:440px;padding:16px 36px 18px;text-align:center;background:rgba(18,16,10,.78);border:1px solid #998962;box-shadow:0 0 30px rgba(0,0,0,.7);display:none}
#bench.on{display:block}
#bench .bq{font-family:var(--ui-head);font-size:22px;letter-spacing:.02em;color:#ddd5c3;margin-bottom:6px}
#bench .bt{font-family:Georgia,serif;font-size:18px;line-height:1.5;color:#b9b399}#bench .bt b{color:#eae6de;font-weight:normal}
#bench .bbar{height:4px;margin-top:12px;background:rgba(255,255,255,.12)}#bench .bbar i{display:block;height:100%;width:0;background:#ddd5c3}
/* the cheat screen before a New Run in dev mode (js/cheatscreen.js): a title page in Options' look, its rows and panel the shared rules above, its choices wider
   for God Mode's long one; the panel's last line says what the run will be, a loss's color while a cheat is on */
#cheats{display:none}
#title.cheats>.col,#title.cheats #hallBoard{display:none}
#title.cheats{align-items:flex-start}
#title.cheats #cheats{display:flex;flex-direction:column;align-items:center;margin-top:var(--pageTop);font-family:var(--ui-head);color:#d8d2c0}
#cheats .pgT0{margin-bottom:24px}
#cheats .octl{width:440px}
#cheats .oseg span{flex:auto;padding:5px 12px 4px}
#cheats .odef.on{color:#f0907a}
