/* Settings menu, FPS counter, captions, crosshair preview, HUD option classes */
#settings .panel { width: min(980px, 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.st-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.st-tab { flex: none; padding: 9px 14px; font: 600 12px/1 var(--f-mono, monospace); letter-spacing: .12em; color: rgba(255,255,255,.55); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.st-tab:hover { color: #fff; } .st-tab.on { color: #7fe6ff; border-bottom-color: #7fe6ff; }
.st-tabs.focus { outline: 1px solid rgba(127,230,255,.6); outline-offset: 2px; }
.st-body { overflow-y: auto; flex: 1; min-height: 0; padding-right: 6px; }
.st-sec { margin: 14px 0 4px; font: 700 11px/1 var(--f-mono, monospace); letter-spacing: .2em; color: #7fe6ff; opacity: .85; }
.st-row { display: grid; grid-template-columns: minmax(150px, 34%) 1fr 28px; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; }
.st-row.focus { background: rgba(127,230,255,.09); border-color: rgba(127,230,255,.45); }
.st-row .lbl { font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.st-row .desc { grid-column: 1 / -1; font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.35; }
.st-row .ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 0; }
.st-row .ctl button.arr { width: 26px; height: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 4px; cursor: pointer; }
.st-row .ctl .val { min-width: 84px; text-align: center; font: 600 12px var(--f-mono, monospace); }
.st-row .bar { flex: 1; max-width: 240px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.st-row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #7fe6ff; border-radius: 4px; }
.st-row input.num { width: 64px; padding: 4px 6px; background: rgba(0,0,0,.4); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; font: 600 12px var(--f-mono, monospace); text-align: right; }
.st-row select { max-width: 260px; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 5px 8px; font: 12px var(--f-mono, monospace); }
.st-row .rst { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: rgba(255,255,255,.35); cursor: pointer; visibility: hidden; font-size: 14px; }
.st-row.mod .rst { visibility: visible; } .st-row .rst:hover { color: #7fe6ff; }
.st-row.soon { opacity: .45; }
.st-row.act .ctl { justify-content: flex-start; }
.st-btn { padding: 8px 14px; background: rgba(127,230,255,.12); border: 1px solid rgba(127,230,255,.5); color: #fff; border-radius: 5px; font: 700 12px var(--f-mono, monospace); letter-spacing: .1em; cursor: pointer; }
.st-btn:hover { background: rgba(127,230,255,.25); } .st-btn.warn { border-color: #ff6b6b; background: rgba(255,107,107,.12); }
.st-prev { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(0,0,0,.35); }
.st-prev .box { width: 120px; height: 120px; flex: none; border-radius: 6px; position: relative; background: linear-gradient(135deg, #2a3446, #0d1220 60%, #3a2a46); overflow: hidden; }
.st-prev .box svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ret, #fff); }
.st-prev .sw { display: flex; } .st-prev .sw i { width: 26px; height: 40px; }
.st-note { font-size: 12px; color: rgba(255,255,255,.65); padding: 8px 10px; }
.st-banner { margin: 6px 0; padding: 12px; border: 1px solid #ffd84a; border-radius: 8px; background: rgba(255,216,74,.1); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-banner b { color: #ffd84a; flex: 1; min-width: 220px; }
.st-card { margin: 8px 0; padding: 18px; border: 1px solid #7fe6ff; border-radius: 10px; background: rgba(8,16,28,.92); }
.st-card h3 { margin: 0 0 6px; font: 700 18px var(--f-head, sans-serif); letter-spacing: .06em; } .st-card p { margin: 4px 0; font-size: 13px; color: rgba(255,255,255,.75); }
.st-card .pb { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; margin: 10px 0; } .st-card .pb i { display: block; height: 100%; background: #7fe6ff; border-radius: 3px; width: 0; }
.st-card .btns { display: flex; gap: 10px; margin-top: 12px; }
.st-hint { font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .08em; padding: 6px 10px 0; }
.st-foot { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .st-row { grid-template-columns: 1fr 28px; } .st-row .ctl { grid-column: 1 / -1; justify-content: flex-start; } }

#fpsCounter { position: fixed; z-index: 9990; pointer-events: none; padding: 5px 8px; background: rgba(0,0,0,.55); border-radius: 4px; color: #bfffe8; font: 600 11px/1.35 ui-monospace, Consolas, monospace; display: none; }
#fpsCounter pre { margin: 0; font: inherit; white-space: pre; } #fpsCounter pre.mid { color: #ffd84a; } #fpsCounter pre.bad { color: #ff6b6b; }
#fpsCounter canvas { display: none; margin-top: 3px; width: 120px; height: 28px; }
#fpsCounter[data-c="tl"] { left: 8px; top: 8px; } #fpsCounter[data-c="tr"] { right: 8px; top: 8px; } #fpsCounter[data-c="bl"] { left: 8px; bottom: 8px; } #fpsCounter[data-c="br"] { right: 8px; bottom: 8px; }
#captions { position: fixed; left: 50%; bottom: 14%; translate: -50% 0; max-width: 70vw; padding: 6px 14px; background: rgba(0,0,0,.7); color: #fff; font: 600 15px var(--f-body, sans-serif); border-radius: 4px; opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 9980; text-align: center; }
#captions.on { opacity: 1; }
#gfxVig { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,var(--gfx-vig, 0))); }
body.no-feed .feed, body.no-manual .h-tut { display: none !important; }
#hud { opacity: var(--hud-op, 1); }
#hud .h-radar { opacity: var(--op-radar, 1); scale: var(--mm, 1); transform-origin: top left; }
#hud .h-score { opacity: var(--op-info, 1); } #hud .h-weapon, #hud .h-gren { opacity: var(--op-combat, 1); }
body.reduce-motion * { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
body.hi-con #hud { filter: contrast(1.35) saturate(1.2) drop-shadow(0 0 2px #000); }
body.hi-con #hud * { text-shadow: 0 0 3px #000, 0 0 3px #000; }
