:root {
  --bg: #0f1020;
  --bg2: #171a33;
  --panel: rgba(23, 26, 51, 0.92);
  --line: #2e3463;
  --line-strong: #8b93ff;
  --text: #eef0ff;
  --muted: #9aa0c8;
  --given: #ffffff;
  --accent: #8b93ff;
  --accent2: #ffcf5c;
  --good: #4ade80;
  --bad: #ff5c7a;
  --cell: #1b1f3d;
  --cell-empty: #14172e;
  /* Board: light "paper" with dark ink for maximum number contrast. */
  --b-empty: #f8f9ff;
  --b-given-bg: #dde2f7;
  --b-given: #0e1130;
  --b-claimed-bg: #ffffff;
  --b-line: #b7bde0;
  --b-line-strong: #2f3576;
  --b-coord: #7d84ad;
  --b-note: #3a418c;
  --b-hint: #5d6390;
  --b-mark: #b77900;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at top left, #232860 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}
body.transparent { background: transparent; }

/* ---------- Setup ---------- */
#setup { display: none; min-height: 100%; padding: 24px 16px; overflow: auto; }
body.setup-mode { overflow: auto; }
body.setup-mode #setup { display: grid; place-items: center; }
body.setup-mode #game { display: none; }
.setup-card { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.setup-card p { color: var(--muted); line-height: 1.5; }
.setup-card p.small { font-size: 13px; margin-top: -4px; }
.setup-card a { color: var(--accent2); }
#setup-form { display: grid; gap: 14px; }
#setup-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
#setup-form label.check { display: flex; align-items: center; gap: 8px; }
#setup-form label b { color: var(--accent2); }
#setup-form input[type=range] { width: 100%; padding: 0; accent-color: var(--accent); }
#setup-form input[type=range]:disabled { opacity: 0.4; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; }
#setup-form input:not([type=checkbox]), #setup-form select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 18px; background: var(--accent); color: #0f1020; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---------- Game layout ---------- */
#game { display: flex; height: 100vh; padding: 0.8vh 2.5vh 0.8vh 0.8vh; gap: 2.5vh; }
.board-wrap { flex: 0 0 auto; height: 98.4vh; aspect-ratio: 1; display: grid; place-items: center; }
#board {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 0.35fr repeat(9, 1fr);
  grid-template-rows: 0.35fr repeat(9, 1fr);
  gap: 0;
}
.lbl { display: grid; place-items: center; color: var(--accent); font-weight: 800; font-size: 2.7vh; }
.lbl.col { align-items: end; padding-bottom: 0.3vh; }
.lbl.row { justify-items: end; padding-right: 0.7vh; }

.cell {
  position: relative;
  display: grid; place-items: center;
  background: var(--b-claimed-bg);
  border-right: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
  transition: background 0.3s;
}
/* outer frame */
#board > .cell:nth-child(10n + 2) { border-left: 3px solid var(--b-line-strong); }
#board > .cell:nth-child(n + 12):nth-child(-n + 20) { border-top: 3px solid var(--b-line-strong); }
#board > .cell:nth-child(10n) { border-right: 3px solid var(--b-line-strong); }
#board > .cell:nth-child(n + 92) { border-bottom: 3px solid var(--b-line-strong); }
.cell.br { border-right: 3px solid var(--b-line-strong); }
.cell.bb { border-bottom: 3px solid var(--b-line-strong); }

.cell.empty { background: var(--b-empty); }
.cell .num { font-size: 6vh; font-weight: 700; line-height: 1; }
.cell .num { color: var(--b-given); }
.cell.given .num { color: var(--b-given); font-weight: 800; }
.cell.given { background: var(--b-given-bg); }
.cell.hint .num { color: var(--b-hint); font-style: italic; }
.cell .who {
  position: absolute; bottom: 0.35vh; left: 0; right: 0; text-align: center;
  font-size: 1.15vh; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.3vh; opacity: 0.9;
}
.cell .coord { position: absolute; top: 0.3vh; left: 0.5vh; font-size: 1.15vh; color: var(--b-coord); opacity: 0; }
.cell.empty .coord { opacity: 0.85; }

.cell.pop .num { animation: pop 0.5s ease-out; }
@keyframes pop { 0% { transform: scale(0.2); opacity: 0; } 60% { transform: scale(1.35); } 100% { transform: scale(1); opacity: 1; } }
.cell.wrong { animation: shake 0.45s; background: #ffd3db; }
.cell.wrong .num { color: #c8102e !important; }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-0.6vh); } 40%, 80% { transform: translateX(0.6vh); } }
.cell.unit { animation: unit 1.1s ease-out; }
@keyframes unit { 0% { background: #ffd66b; } }

/* Pencil-mark notes: a 3x3 mini grid, digit d sits in position d. */
.cell .notes {
  position: absolute; inset: 1.5vh 0.5vh 0.5vh; display: none;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  place-items: center; pointer-events: none;
}
.cell.has-notes .notes { display: grid; }
.cell.wrong .notes { display: none; }
.cell .notes span { font-size: 2vh; font-weight: 700; line-height: 1; color: var(--b-note); visibility: hidden; }
.cell .notes span.on { visibility: visible; }
.cell.noted .notes { animation: noted 0.6s ease-out; }
@keyframes noted { 0% { opacity: 0.2; transform: scale(0.85); } 100% { opacity: 1; transform: none; } }
.how .notes-how { margin-top: 0.8vh; }
.how p.get-it { margin-top: 1vh; padding-top: 0.8vh; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.how .note-ex { color: var(--text); font-size: 1.8vh; }
.how .note-ex code { font-size: 2.4vh; font-weight: 800; background: var(--bg); border-radius: 0.6vh; padding: 0.1vh 0.8vh; font-family: ui-monospace, Consolas, monospace; }
/* The always-on notes example cell. */
.cell.example { outline: 0.35vh dashed var(--b-mark); outline-offset: -0.55vh; }
.cell.example .notes span { color: var(--b-mark); }
.cell.example .coord { color: var(--b-mark); font-weight: 700; }

/* Variant regions: a tint that works on given, empty and claimed cells. */
.cell.x-diag, .cell.x-win, .cell.x-dot, .cell.x-star { box-shadow: inset 0 0 0 100vh rgba(255, 186, 40, 0.22); }
.cell.x-dot::after, .cell.x-star::after {
  position: absolute; top: 0.25vh; right: 0.6vh; font-size: 1.6vh; line-height: 1; color: var(--b-mark);
}
.cell.x-dot::after { content: "●"; }
.cell.x-star::after { content: "★"; }

/* ---------- Panel ---------- */
.panel {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 1.6vh;
  background: var(--panel); border: 1px solid var(--line); border-radius: 1.6vh; padding: 2.2vh 2.4vh;
  font-size: 1.9vh; overflow: hidden;
}
h1 { margin: 0; font-size: 4vh; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
.setup-card h1 { font-size: 34px; }
h2 { margin: 0 0 0.8vh; font-size: 1.5vh; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.meta { display: flex; gap: 1.2vh; align-items: center; margin-top: 1vh; color: var(--muted); }
.meta.small { font-size: 1.5vh; justify-content: space-between; margin-top: 0.6vh; }
#timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
#difficulty { text-transform: capitalize; font-weight: 700; padding: 0.2vh 1vh; border-radius: 99px; background: var(--line); color: var(--text); }
#difficulty[data-level=easy] { background: #1f5f3f; }
#difficulty[data-level=medium] { background: #6a5520; }
#difficulty[data-level=hard] { background: #7a2338; }
#difficulty[data-level=expert] { background: #4b1f7a; }
#difficulty[data-level=custom] { background: #1f4f6a; text-transform: none; }
#variant { font-weight: 700; padding: 0.2vh 1vh; border-radius: 99px; background: #6a5520; color: var(--accent2); }
.how p.rule { color: var(--accent2); font-weight: 700; background: rgba(255, 207, 92, 0.1); border-left: 0.4vh solid var(--accent2); padding: 0.6vh 1vh; border-radius: 0.6vh; margin-bottom: 1vh; }
.progress { height: 1vh; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 1.2vh; }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.25s linear, background 0.6s; }
#progress-bar.snap { transition: none; }
/* Hint countdown: drains from full to empty, warming up as the next hint gets close. */
#progress-bar[data-level=ok] { background: var(--accent); }
#progress-bar[data-level=low] { background: var(--accent2); }
#progress-bar[data-level=urgent] { background: var(--bad); animation: hintpulse 0.8s ease-in-out infinite; }
@keyframes hintpulse { 50% { opacity: 0.55; } }

.how p { margin: 0.4vh 0; color: var(--muted); line-height: 1.4; }
.how p b { color: var(--text); }
.small { font-size: 1.5vh; }
.example { font-size: 3.6vh; font-weight: 800; color: var(--accent2); background: var(--bg); border-radius: 1vh; padding: 0.6vh 1.4vh; display: inline-block; margin: 0.4vh 0; font-family: ui-monospace, Consolas, monospace; }
code { color: var(--accent2); }

.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5vh; }
.lb li { display: flex; gap: 1vh; align-items: center; background: rgba(255, 255, 255, 0.04); border-radius: 0.8vh; padding: 0.35vh 1vh; }
.lb .rk { width: 2.4vh; color: var(--muted); font-weight: 700; }
.lb .nm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .dt { font-variant-numeric: tabular-nums; color: var(--text); }
.lb li:first-child .rk { color: var(--accent2); }
.lb .empty-li { color: var(--muted); justify-content: center; }

.feed-wrap { flex: 1 1 0; min-height: 8vh; overflow: hidden; }
.panel > section, .panel > header, .panel > footer, #test-input { flex-shrink: 0; }
#feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4vh; font-size: 1.7vh; }
#feed li { animation: slidein 0.3s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feed li.good em { color: var(--good); font-style: normal; font-weight: 700; }
#feed li.bad span { color: var(--bad); }
#feed li.bad em { color: var(--bad); font-style: normal; }
#feed li.system { color: var(--accent2); }
#feed small { color: var(--accent2); }
@keyframes slidein { from { transform: translateX(2vh); opacity: 0; } to { transform: none; opacity: 1; } }

footer { font-size: 1.4vh; color: var(--muted); }
#status[data-state=connected], #status[data-state=demo] { color: var(--good); }
#status[data-state=disconnected] { color: var(--bad); }
#test-input { font: inherit; font-size: 1.8vh; padding: 1vh; border-radius: 0.8vh; border: 1px solid var(--line); background: var(--bg); color: var(--text); }

/* ---------- Round-end overlay ---------- */
#overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(8, 9, 20, 0.72); backdrop-filter: blur(4px); }
#overlay.show { display: grid; animation: fade 0.4s; }
@keyframes fade { from { opacity: 0; } }
.ov-card { background: var(--bg2); border: 2px solid var(--accent); border-radius: 2vh; padding: 4vh 6vh; text-align: center; min-width: 50vh; box-shadow: 0 0 6vh rgba(139, 147, 255, 0.35); }
.ov-title { font-size: 7vh; font-weight: 900; color: var(--accent2); }
.ov-mvp-lbl { margin-top: 1vh; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; font-size: 1.6vh; }
#ov-mvp { font-size: 5vh; font-weight: 800; }
#ov-time { color: var(--muted); margin: 1vh 0 2vh; font-size: 2vh; }
#ov-list { text-align: left; font-size: 2.2vh; }
#ov-adapt { margin-top: 2.4vh; font-size: 2.2vh; font-weight: 700; color: var(--text); }
#ov-adapt[data-dir="1"] { color: var(--good); }
#ov-adapt[data-dir="-1"] { color: var(--bad); }
.ov-next { margin-top: 1.2vh; color: var(--muted); font-size: 2vh; }
.ov-next b { color: var(--text); }

/* ---------- Stopped ---------- */
#paused-card { position: fixed; inset: 0; display: none; place-content: center; text-align: center; gap: 1vh; background: rgba(8, 9, 20, 0.78); backdrop-filter: blur(6px); z-index: 10; }
body.paused #paused-card { display: grid; animation: fade 0.3s; }
.pc-icon { font-size: 10vh; line-height: 1; color: var(--accent); }
.pc-title { font-size: 8vh; font-weight: 900; color: var(--accent2); }
.pc-sub { font-size: 2.6vh; color: var(--muted); }

/* ---------- Framed: fills the torn window of GuildScribe's "Sudoku on Stream" theme scene ----------
   Wood-desk background, a cream parchment board and dark-glass panel like the theme's goldboard card.
   The padding keeps everything clear of the theme's torn edge, which overlaps the window by up to ~28 px. */
body.framed {
  --f-pad: 3.9vh;
  --f-head: "Cinzel", Georgia, serif;
  --text: #f6ead2;
  --muted: #c8ab82;
  --accent: #e6a56e;
  --accent2: #f2c46a;
  --line: #5e4128;
  --bg: #120c07;
  --bg2: #1d140c;
  --panel: rgba(21, 16, 11, 0.86);
  --b-empty: #fdf6e3;
  --b-given-bg: #ecdcb2;
  --b-given: #2b1a0a;
  --b-claimed-bg: #fffaf0;
  --b-line: #ccb489;
  --b-line-strong: #5a3a16;
  --b-coord: #a08355;
  --b-note: #6b4419;
  --b-hint: #7a6040;
  --b-mark: #b26a12;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(255, 214, 150, 0.10), transparent 60%),
    repeating-linear-gradient(97deg, transparent 0 34px, rgba(0, 0, 0, 0.10) 34px 35px, transparent 35px 71px),
    linear-gradient(160deg, #3b2716 0%, #24180d 55%, #170f08 100%);
}
body.framed.transparent { background: transparent; }
.framed #game { padding: var(--f-pad); gap: var(--f-pad); }
.framed .board-wrap { height: calc(100vh - 2 * var(--f-pad)); }
.framed .lbl { color: var(--accent2); font-family: var(--f-head); text-shadow: 0 0.2vh 0.4vh #000; }
.framed .cell.unit { animation-name: unit-framed; }
@keyframes unit-framed { 0% { background: #f7c96a; } }
.framed .panel {
  font-size: 1.8vh; gap: 1.3vh; padding: 2vh 2.2vh;
  border: 1px solid rgba(230, 165, 110, 0.5);
  border-radius: 1vh;
  box-shadow: inset 0 0 0 0.5vh rgba(0, 0, 0, 0.18), inset 0 0 0 0.6vh rgba(230, 165, 110, 0.18), 0 0.8vh 2.4vh rgba(0, 0, 0, 0.45);
}
.framed h1 { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.04em; color: var(--accent2); font-size: 3.3vh; }
.framed h1 span { color: var(--text); }
.framed h2 { font-family: var(--f-head); font-weight: 700; color: var(--accent); letter-spacing: 0.14em; font-size: 1.6vh; }
.framed .lb li { background: rgba(255, 236, 200, 0.06); padding: 0.2vh 1vh; }
.framed .example { font-size: 3.2vh; }
.framed .example { border: 1px solid rgba(242, 196, 106, 0.35); }
.framed #difficulty { background: var(--line); }
.framed #overlay { background: rgba(14, 9, 4, 0.72); }
.framed .ov-card { background: var(--bg2); border-color: var(--accent2); box-shadow: 0 0 6vh rgba(242, 196, 106, 0.28); }
.framed .ov-title, .framed .pc-title, .framed #ov-mvp { font-family: var(--f-head); }
.framed #paused-card { background: rgba(14, 9, 4, 0.8); }
/* Room for the Live feed: all-time shows its top 3 here (this puzzle keeps 5). */
.framed #all-list li:nth-child(n + 4) { display: none; }
.framed .feed-wrap { min-height: 12vh; }

/* ---------- Tavernworks colours (default; ?theme=indigo keeps the original look) ---------- */
:root {
  --chrome: #1b1e3a; --chrome2: #23274a; --chrome-line: #363c70; --chrome-edge: #12142a; --chrome-text: #cfd3f5; --well: #0b0c1a;
  --head: var(--font);
}
body.tw {
  --bg: #15100c;
  --bg2: #1e1611;
  --panel: rgba(36, 26, 19, 0.94);
  --line: #3a2a1d;
  --line-strong: #e0a84a;
  --text: #f1e6d6;
  --muted: #b9a68f;
  --accent: #e0a84a;
  --accent2: #f5c873;
  --good: #7fb069;
  --bad: #e0704a;
  --b-empty: #fdf6e3;
  --b-given-bg: #ecdcb2;
  --b-given: #2b1a0a;
  --b-claimed-bg: #fffaf0;
  --b-line: #ccb489;
  --b-line-strong: #5a3a16;
  --b-coord: #a08355;
  --b-note: #6b4419;
  --b-hint: #7a6040;
  --b-mark: #b26a12;
  --chrome: #1e1611; --chrome2: #2e2219; --chrome-line: #3a2a1d; --chrome-edge: #0f0b08; --chrome-text: #e6d6bf; --well: #0f0b08;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --head: Cinzel, Georgia, serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 168, 74, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(201, 87, 43, 0.10), transparent 70%),
    var(--bg);
}
body.tw.transparent { background: transparent; }
.tw h1 { font-family: var(--head); font-weight: 800; letter-spacing: 0.02em; }
.tw h1 span { color: var(--accent); }
.tw .ov-title, .tw .pc-title, .tw #ov-mvp { font-family: var(--head); }
.tw .lbl { color: var(--accent2); }
.tw .cell.unit { animation-name: unit-framed; }
.tw .lb li { background: rgba(255, 236, 200, 0.05); }
.tw #overlay { background: rgba(14, 9, 4, 0.74); }
.tw #paused-card { background: rgba(14, 9, 4, 0.8); }
.tw .ov-card { border-color: var(--accent2); box-shadow: 0 0 6vh rgba(242, 196, 106, 0.28); }
.tw .setup-card a { color: var(--accent2); }
.tw button { color: var(--bg); }
.tw button.ghost { color: var(--text); }

/* ---------- Window frame (default; ?window=0 turns it off) ----------
   A desktop media-player style window around the game, matching the control page. */
#gwin > .gw { display: none; }
#gwin { display: contents; }
body.windowed #gwin { display: flex; flex-direction: column; height: 100vh; border: 1px solid var(--chrome-line); }
body.windowed #gwin > .gw { display: flex; }
body.windowed #game { flex: 1 1 auto; min-height: 0; height: auto; position: relative; padding: 0.8vh 2vh 0.8vh 0.8vh; }
body.windowed .board-wrap { height: 100%; }
body.windowed #overlay, body.windowed #paused-card { position: absolute; }
.gw { user-select: none; flex: none; align-items: center; background: var(--chrome); color: var(--chrome-text); font-family: var(--font); }
.gw-title { height: 3.6vh; border-bottom: 1px solid var(--chrome-edge); font-size: 1.55vh; }
.gw-title .tw-logo { width: 2.5vh; height: 2.5vh; margin: 0 1vh 0 1.1vh; flex: none; }
.gw-title .ttl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-btns { display: flex; align-self: stretch; }
.gw-btns span { width: 5.4vh; display: grid; place-items: center; font-size: 1.6vh; }
.gw-menu { height: 3.2vh; padding: 0 0.6vh; gap: 0.4vh; font-size: 1.55vh; border-bottom: 1px solid var(--chrome-line); color: var(--text); }
.gw-menu > span { padding: 0.3vh 1.1vh; }
.gw-menu u { text-underline-offset: 0.25vh; }
.gw-menu .gw-tip { margin-left: auto; color: var(--muted); }
.gw-menu .gw-tip b { color: var(--accent2); font-family: ui-monospace, Consolas, monospace; font-size: 1.7vh; }
/* Transport buttons live on the menu bar, after the menus. */
.gw-tools { display: flex; align-items: center; gap: 0.3vh; margin-left: 1.2vh; padding-left: 1.2vh; border-left: 1px solid var(--chrome-line); align-self: stretch; }
.gw-tools .ib { width: 3.4vh; height: 3vh; display: grid; place-items: center; color: var(--text); opacity: 0.85; border-radius: 0.5vh; }
.gw-tools .ib:hover:not(:disabled) { background: var(--chrome2); opacity: 1; }
.gw-tools .ib:disabled { opacity: 0.35; cursor: default; }
.gw-tools .ib.big { color: var(--accent2); opacity: 1; }
.gw-tools svg { width: 1.9vh; height: 1.9vh; fill: currentColor; }
.gw-tools .sep { width: 1px; align-self: stretch; background: var(--chrome-line); margin: 0.6vh 0.6vh; }
body.windowed.transparent #gwin { border-color: transparent; }
/* The window takes ~11% of the height, so the side panel tightens up to keep the Live feed. */
body.windowed .panel { font-size: 1.7vh; gap: 1.1vh; padding: 1.8vh 2.2vh; }
body.windowed h1 { font-size: 3.5vh; }
body.windowed .example { font-size: 3.1vh; }
body.windowed .how .note-ex { font-size: 1.65vh; }
body.windowed .how .note-ex code { font-size: 2.1vh; }
body.windowed #all-list li:nth-child(n + 4) { display: none; }
body.windowed .feed-wrap { min-height: 10vh; }

/* ---------- Working menus and player buttons in the game window (same as the control page) ---------- */
.gw-menu { position: relative; z-index: 30; }
.gw .menu { position: relative; }
.gw button { font: inherit; font-weight: 400; color: inherit; background: transparent; border: 0; border-radius: 0.4vh; padding: 0; cursor: pointer; }
.gw-menu .top { color: var(--text); padding: 0.3vh 1.1vh; }
.gw-menu .menu.open > .top, .gw-menu .top:hover { background: var(--chrome2); }
.gw-menu .drop { display: none; position: absolute; top: 100%; left: 0; min-width: 30vh; padding: 0.5vh 0; background: var(--chrome2); border: 1px solid var(--chrome-line); border-radius: 0.6vh; box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.5); }
.gw-menu .menu.open .drop { display: block; }
.gw-menu .drop button { display: block; width: 100%; text-align: left; white-space: nowrap; color: var(--text); border-radius: 0; padding: 0.6vh 1.6vh 0.6vh 3.6vh; position: relative; }
.gw-menu .drop button:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.gw-menu .drop button:disabled { opacity: 0.4; cursor: default; }
.gw-menu .drop button.armed { background: var(--bad); color: var(--bg); }
.gw-menu .drop .ic { position: absolute; left: 1.1vh; width: 1.8vh; text-align: center; }
.gw-menu .drop hr { border: 0; border-top: 1px solid var(--chrome-line); margin: 0.5vh 0; }
.gw-menu .drop .hd { padding: 0.5vh 1.6vh 0.2vh; font-size: 1.25vh; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.gw-tools .ib.big:hover { background: var(--accent); color: var(--bg); }
