/* Ignyte site: one stylesheet for the public pages, the login and the admin panel */
:root { --bg: #0c1518; --panel: #131e22; --panel2: #19272c; --line: #26383e; --text: #d8e5e4; --muted: #8aa0a3; --accent: #2f9e3a; --accent2: #d4ef6a;
        --warn: #e0b45a; --bad: #e06a5a; --good: #7dff4a; --neon: #7dff4a; --lemon: #d4ef6a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 14px; font-weight: 600; }
h2 { font-size: 17px; margin: 22px 0 10px; font-weight: 600; }
.card h2 { margin-top: 0; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: 13px; }
.good { color: var(--good); }
.warn { color: var(--warn); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }

/* forms */
label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  background: #0e181b; color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #7dff4a; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
label.check input { width: auto; margin: 0; }
button, .btn { display: inline-block; background: var(--accent); color: #ffffff; border: 0; border-radius: 5px; padding: 8px 16px; font: inherit; cursor: pointer; }
button:hover, .btn:hover { background: #5eac2a; text-decoration: none; }
button.ghost, .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.bad { background: var(--bad); }
button.link { background: none; border: 0; padding: 0; color: var(--accent2); cursor: pointer; }
form.inline { display: inline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid2 > label.check, .grid2 > div { grid-column: 1 / -1; }

/* messages */
.msg { padding: 9px 12px; border-radius: 5px; margin: 0 0 12px; border: 1px solid; }
.msg.ok { border-color: #3c6420; background: #132220; color: var(--good); }
.msg.warn { border-color: #5a4a2a; background: #2a2414; color: var(--warn); }
.msg.err { border-color: #5a2f2a; background: #2a1614; color: var(--bad); }

/* boxes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 0 0 16px; }
.card.danger { border-color: #5a2f2a; }
details.card summary { cursor: pointer; color: var(--accent2); }
details.card[open] summary { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.cards .card { margin: 0; color: var(--muted); }
.big { font-size: 28px; color: var(--text); font-weight: 600; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
pre { white-space: pre-wrap; font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--muted); margin: 0; max-height: 420px; overflow: auto; }

/* tables */
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: normal; font-size: 13px; }
table.list tr:hover td { background: var(--panel2); }
table.kv { width: auto; margin-bottom: 8px; }
table.kv th { text-align: left; color: var(--muted); font-weight: normal; padding: 5px 24px 5px 0; }
table.kv td { padding: 5px 0; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); vertical-align: middle; }
.tag.active { color: var(--good); border-color: #3c6420; }
.tag.disabled { color: var(--bad); border-color: #5a2f2a; }

/* layouts */
body.center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
main.narrow, .card.narrow { width: 100%; max-width: 380px; }
.narrow-form { max-width: 420px; }
body.home main { text-align: center; }
.brand { letter-spacing: 5px; font-size: 34px; margin-bottom: 8px; }
nav.top { position: fixed; top: 14px; right: 18px; display: flex; gap: 14px; align-items: center; color: var(--muted); }

body.admin header.bar { display: flex; align-items: center; gap: 20px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 52px; flex-wrap: wrap; }
.brand-sm { color: var(--text); font-weight: 600; letter-spacing: 1px; }
nav.tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav.tabs a { color: var(--muted); padding: 15px 12px 13px; border-bottom: 2px solid transparent; }
nav.tabs a:hover { color: var(--text); text-decoration: none; }
nav.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.who { color: var(--muted); display: flex; gap: 12px; align-items: center; }
main.wide { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
p.row a.on { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .grid2, .cols { grid-template-columns: 1fr; }
  table.list { display: block; overflow-x: auto; white-space: nowrap; }
  nav.tabs a { padding: 10px 8px; }
}

/* VPS tab */
.state-running { color: var(--good); }
.state-stopped { color: var(--muted); }
.state-crashed { color: var(--bad); }
.row.actions form { margin: 0; }
.crumbs { color: var(--muted); }
.editor textarea { display: block; width: 100%; min-height: 62vh; background: #091315; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; font: 13px/1.5 ui-monospace, Consolas, "Courier New", monospace; tab-size: 2; white-space: pre; overflow: auto; resize: vertical; }
.editor textarea:focus { outline: none; border-color: var(--accent); }
pre.log { background: #091315; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; max-height: 380px; min-height: 120px; color: var(--text); }
pre.log .l-err { color: var(--bad); }
pre.log .l-agent { color: var(--accent2); }
table.files td:first-child { font-family: ui-monospace, Consolas, monospace; }

/* roles: administrators gold and bold, moderators teal, players light blue (names everywhere) */
:root { --admin: #ffd84d; --moderator: #7fe8d8; --beta: #9ba6ff; --player: #8fd3ff; }
.name.role-admin { color: var(--admin); font-weight: 700; }
.name.role-moderator { color: var(--moderator); font-weight: 600; }
.name.role-beta { color: var(--beta); font-weight: 600; }
.name.role-player { color: var(--player); }
.name.gone { text-decoration: line-through; opacity: .55; }
.who .name { font-size: 15px; }
.btn.small, button.small { padding: 4px 10px; font-size: 13px; }
.btn.admin-btn { background: transparent; border: 1px solid var(--admin); color: var(--admin); font-weight: 700; }
.btn.admin-btn:hover { background: rgba(245, 230, 66, .12); }
.row.spread { justify-content: space-between; }

/* lobby */
.lobby-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.lobby-grid h2:first-child { margin-top: 0; }
.subtabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.subtabs button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; }
.subtabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.subtabs button:disabled { opacity: .4; cursor: default; }
.subtabs button:hover:not(:disabled) { background: none; color: var(--text); }
.gamelist { margin-bottom: 14px; }
.gtable { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.grow { display: grid; grid-template-columns: 1.4fr 1.6fr 90px 80px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.grow.ghead { border-top: 0; background: var(--panel2); color: var(--muted); font-size: 13px; padding: 7px 14px; }
.grow.mine { box-shadow: inset 3px 0 0 var(--accent); }
.grow.running { background: #131812; }
.gplayers { line-height: 1.7; }
.gname .name { font-size: 13px; }
#createForm { margin-top: 6px; }
#createForm input { flex: 1; min-width: 140px; }
.members, .players { display: grid; gap: 6px; margin-bottom: 12px; }
.member, .player { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.member .push, .player .push { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.member.offline { opacity: .6; }
.member.gone { opacity: .45; }
.player.me { border-color: #3c6420; }
.tag.host { color: var(--admin); border-color: #6b6420; }
.check { font-size: 13px; padding: 2px 10px; border-radius: 10px; border: 1px solid var(--line); }
.check.on { color: #0b1417; background: var(--good); border-color: var(--good); font-weight: 700; }
.check.off { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3a453a; }
.dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
/* the ready checkbox */
label.readybox { display: inline-flex; gap: 10px; align-items: center; margin: 0; color: var(--text); font-size: 15px; cursor: pointer; user-select: none;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); }
label.readybox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.readybox .box { width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; transition: all .12s; }
label.readybox input:checked + .box { background: var(--good); border-color: var(--good); }
label.readybox input:checked + .box::after { content: ''; width: 6px; height: 11px; border: solid #0b1417; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
label.readybox input:focus-visible + .box { outline: 2px solid var(--accent2); outline-offset: 2px; }
label.readybox:has(input:checked) { border-color: #3c6420; color: var(--good); }
label.readybox:has(input:disabled) { opacity: .5; cursor: default; }
/* countdown + game over overlay */
.countdown { position: fixed; inset: 0; background: rgba(4, 10, 12, .82); display: flex; align-items: center; justify-content: center; z-index: 50; text-align: center; }
.cd-text { font-size: 20px; color: var(--text); margin: 12px 0 18px; letter-spacing: 2px; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
/* chat */
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.chatlog { height: 300px; overflow-y: auto; font-size: 14px; padding: 2px 4px 8px; }
.chatlog.short { height: 220px; }
.chatlog .line { padding: 2px 0; word-wrap: break-word; }
.chatlog .line.info { color: var(--muted); font-style: italic; }
.chatlog .line.system { color: var(--admin); font-weight: 600; }
#chatForm { margin: 6px 0 0; }
#chatForm input { flex: 1; min-width: 100px; }
#netState.active { color: var(--good); border-color: #3c6420; }
/* game page */
.stage { min-height: 420px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #142422 0%, #0d120b 70%); }
.stage-inner { text-align: center; }
.stage .brand { font-size: 40px; letter-spacing: 8px; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 860px) { .lobby-grid { grid-template-columns: 1fr; } .grow { grid-template-columns: 1fr 1fr; } .grow.ghead { display: none; } }

/* updates */
.mono { font-family: ui-monospace, Consolas, monospace; }
input.pw-small { width: 120px; padding: 5px 8px; margin-right: 6px; }
input[type=file] { color: var(--muted); }
h3 { font-size: 15px; margin: 16px 0 6px; font-weight: 600; color: var(--muted); }

/* lobby monitor */
.mon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.mon-grid > div { min-width: 0; }
table.list td .name { white-space: nowrap; }
table.list td.ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.feed { height: 280px; overflow-y: auto; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.feed .line { padding: 2px 0; }
.feed .line.admin-act { color: var(--admin); }
#monBroadcast input { flex: 1; }
@media (max-width: 1000px) { .mon-grid { grid-template-columns: 1fr; } }

/* ================================================================ logo, loaders, transition (content/js/logo.js) */
.ig-logo { display: inline-flex; vertical-align: middle; line-height: 0; }
.brand-sm { display: inline-flex; align-items: center; gap: 8px; }
body.home .hero-logo { margin-bottom: 4px; }
h1.titled { display: flex; align-items: center; gap: 10px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
#netState { display: inline-flex; align-items: center; gap: 6px; }
#netState .ig-logo { margin-left: -3px; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }
#fxLogo { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 101; pointer-events: none; opacity: 0; transition: opacity .25s; }
html.ig-arrive body { background: #0c1518; }
html.ig-arrive body > *:not(#fx):not(#fxLogo) { visibility: hidden; }
.crumb { color: #44523f; margin: 0 -10px 0 -8px; }
.gametitle { color: var(--text); font-weight: 600; letter-spacing: 1px; }

/* lobby */
.lobby-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lobby-head h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.lobby-head h1 .muted { font-size: 16px; font-weight: 400; margin-left: 4px; }

/* countdown: a small panel, airport-board letters */
.igb { display: inline-flex; gap: calc(var(--c) * .6); justify-content: center; line-height: 0; }
.igb-t { position: relative; display: inline-block; padding: calc(var(--c) * 1.1); background: #16282a; border: 1px solid #2a3c21; border-radius: 2px; }
.igb-t::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .4); }
.igb-t svg { display: block; fill: #e9f3dc; }
.igb-t.flip svg { animation: igbIn .3s ease-out; }
@keyframes igbIn { from { opacity: .2; } to { opacity: 1; } }
.countdown.cd { background: rgba(4, 10, 12, .55); }
.cd-box { min-width: 250px; padding: 16px 20px 14px; background: var(--panel); border: 1px solid var(--line); border-top: 1px solid #5f9a2c; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); text-align: center; }
.cd-box .igb { display: flex; }
.cd-title, .cd-num { line-height: 0; }
.cd-num .igb-t svg { fill: #f1f4ee; }
.cd-title.igb { gap: 2px; padding: 6px 10px; background: rgba(132, 222, 44, .07); border-radius: 2px; }
.cd-title .igb-t { padding: 0; background: none; border: 0; }
.cd-title .igb-t::after { display: none; }
.cd-title .igb-t svg { fill: #a9c497; transition: fill .3s; }
.cd-title.done .igb-t svg { fill: #b6e86a; }
.cd-num { margin: 16px 0 14px; transition: opacity .3s; }
.cd-bar { height: 3px; background: #1f281b; border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.cd-bar i { display: block; height: 100%; width: 100%; background: #7dff4a; transform-origin: left; }

/* in game: the same header, slimmer, with the game controls; the game area fills the rest */
.gamectl { display: none; }
body.ingame .gamectl { display: flex; flex: 1; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); min-width: 0; }
body.ingame nav.tabs { flex: 0 0 auto; }
body.ingame header.bar { min-height: 40px; gap: 14px; background: #0f1d17; }
body.ingame nav.tabs a { padding: 10px 10px 8px; }
body.ingame .brand-sm, body.ingame .gametitle { font-size: 14px; }
body.ingame .who .admin-btn { display: none; }
.gc-match { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-time { font-variant-numeric: tabular-nums; color: #b6e86a; min-width: 44px; }
.gc-team { display: inline-flex; gap: 3px; } .gc-team i { width: 7px; height: 7px; border-radius: 1px; background: #7dff4a; }
.gc-team i.away { background: #5d6b58; } .gc-team i.abandoned { background: #5a2f2a; }
.gc-sp { flex: 1; }
.gbtn { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 3px 10px; font-size: 13px; border-radius: 3px; }
.gbtn:hover { background: #16282a; } .gbtn.on { border-color: #4e7a2a; background: #142422; }
.gbtn.gbad { color: var(--bad); border-color: #4a2a26; } .gbtn.gbad:hover { background: #2a1614; }
.gbadge { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px; border-radius: 8px; background: #2f9e3a; color: #ffffff; font-size: 11px; line-height: 16px; }
main.gameview { padding: 0; }
.gstage { position: relative; height: calc(100vh - 41px); background: #060e10; overflow: hidden; }
.gmount { position: absolute; inset: 0; }
.gload { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .4s; background: radial-gradient(ellipse at center, #141d10 0%, #060e10 70%); }
.gload .loader { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gload .gbar { width: 260px; height: 4px; margin-top: 6px; background: #1e2427; border-radius: 2px; overflow: hidden; }
.gload .gbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5c8f86, #7dff4a); transition: width .5s; }
.gload .pct { color: var(--admin); font-weight: 700; font-variant-numeric: tabular-nums; }
.gstage.ready .gload { opacity: 0; pointer-events: none; }
.gdrawer { position: absolute; left: 12px; top: 52px; width: 300px; max-width: calc(100% - 24px); background: rgba(16, 22, 14, .95); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 13px; z-index: 5; }
.gd-h { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 6px; }
.gd-p { display: flex; gap: 8px; align-items: center; padding: 3px 0; } .gd-p .push { margin-left: auto; }
.gdrawer .chatlog { height: 150px; font-size: 13px; }
.gdrawer #gChatForm { margin: 6px 0 0; } .gdrawer #gChatForm input { flex: 1; min-width: 0; }
body.gfs header.bar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; transform: translateY(-100%); transition: transform .2s ease; }
body.gfs header.bar.peek { transform: none; }
body.gfs .gstage { height: 100vh; }
@media (max-width: 860px) { body.ingame .gc-team, body.ingame .gametitle, body.ingame .crumb { display: none; } }

/* ================================================================ palette 0.4.1: lemon > green > soft blue-green darks (low saturation), gradient bands and buttons */
:root { --bg: #0e171b; --panel: #161b1d; --panel2: #1c2225; --line: #2a3235; --text: #dbe1df; --muted: #8b9696; }
html { background: #0b1417; }
body { background: linear-gradient(180deg, #0d1719 0%, #0c1518 45%, #0b1417 100%) fixed; min-height: 100vh; }
body.admin header.bar { background: linear-gradient(90deg, #1a2a19 0%, #17231a 40%, #151d1c 75%, #151a1e 100%); border-bottom-color: #2a3530; }
body.ingame header.bar { background: linear-gradient(90deg, #162414 0%, #141f17 40%, #13191a 75%, #13171c 100%); }
input[type=text], input[type=password], select { background: #101517; }
.grow.ghead { background: #1a2023; }
.grow.running { background: #13181a; }
.gstage { background: #081114; }
.gload { background: radial-gradient(ellipse at center, #14201f 0%, #081114 70%); }
.stage { background: radial-gradient(ellipse at center, #14201f 0%, #0b0e10 70%); }
.gdrawer { background: rgba(20, 25, 27, .95); }
.cd-box { border-top: 0; position: relative; }
.cd-box::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #e9e070, #7dff4a 35%, #5c8f86 70%, #6a7894); }
.igb-t { background: #1a2022; border-color: #2b3336; }
.cd-title.igb { background: linear-gradient(90deg, rgba(132, 222, 44, .06), rgba(110, 140, 150, .06)); }
.cd-title .igb-t svg { fill: #a8b8b0; }
.cd-bar { background: #1e2427; }
.cd-bar i { background: linear-gradient(90deg, #6a7894, #5c8f86 35%, #7dff4a 75%, #e9e070); }
.countdown.cd { background: rgba(8, 10, 11, .55); }
.crumb { color: #46504f; }
.gbtn:hover { background: #1d2427; }
.dot:not(.on) { background: #39423f; }
:root { --admin: #ffd84d; --accent: #3f8a45; }
button, .btn { background: linear-gradient(135deg, #47944a 0%, #3b8160 55%, #366f78 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
button:hover, .btn:hover { background: linear-gradient(135deg, #53a656 0%, #45936d 55%, #3f8088 100%); }
button.ghost, .btn.ghost, .gbtn { background: linear-gradient(135deg, rgba(80, 150, 90, .08), rgba(60, 110, 130, .08)); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover, .gbtn:hover { background: linear-gradient(135deg, rgba(80, 150, 90, .18), rgba(60, 110, 130, .18)); }
button.link { background: none; box-shadow: none; }
button:disabled:hover { background: linear-gradient(135deg, #47944a 0%, #3b8160 55%, #366f78 100%); }
button.bad, .gbtn.gbad { background: linear-gradient(135deg, #b5584a, #9a4a5a); }
.gbtn.gbad { background: transparent; }
.name.role-admin { text-shadow: 0 0 8px rgba(212, 242, 87, .45); }
.btn.admin-btn { background: rgba(212, 242, 87, .06); box-shadow: 0 0 10px rgba(212, 242, 87, .18), inset 0 0 6px rgba(212, 242, 87, .08); }
.btn.admin-btn:hover { background: rgba(212, 242, 87, .14); }
/* start button not ready yet: dimmed */
button:disabled, .btn.disabled { opacity: .38; cursor: default; filter: saturate(.5); }


/* lobby monitor diagnostics */
.feed.mono { font: 12px/1.45 ui-monospace, Consolas, monospace; }
textarea.diag-copy { width: 100%; height: 160px; margin-top: 10px; background: #0b0e0f; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font: 12px/1.4 ui-monospace, Consolas, monospace; }
h1 .tag { font-size: 12px; font-weight: 400; vertical-align: 4px; margin-left: 8px; }

/* ================================================================ 0.4.3: everything clickable shows it on hover; lobby monitor in panels */
button, .btn, nav.tabs a, .gbtn { transition: background .15s, box-shadow .15s, border-color .15s, color .15s, transform .08s; }
button:not(:disabled), .btn { cursor: pointer; }
button:not(:disabled):hover, .btn:hover { box-shadow: 0 0 0 1px rgba(170, 235, 120, .35), 0 3px 12px rgba(0, 0, 0, .35); }
button:not(:disabled):active, .btn:active { transform: translateY(1px); }
button.ghost:not(:disabled):hover, .btn.ghost:hover, .gbtn:hover { border-color: #6a9c52; color: #ffffff; }
button.link:not(:disabled):hover { box-shadow: none; color: #c8f28a; text-decoration: underline; }
a:hover { color: #c8f28a; }
nav.tabs a:hover { background: rgba(255, 255, 255, .035); }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #d4ef6a; outline-offset: 2px; }

.mon-cards .card { text-align: left; }
.mpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin: 0 0 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.mon-grid { gap: 16px; }
.mon-grid > .mpanel { margin: 0 0 16px; }
.mp-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(125, 255, 74, .05), rgba(90, 140, 150, .03)); min-height: 44px; }
.mp-head h2 { margin: 0; font-size: 15px; }
.mp-head .muted { flex: 1; }
.mp-head button { margin-left: auto; }
.mp-body { overflow-x: auto; }
.mp-pad { padding: 12px 14px; margin: 0; }
.mp-pad h3 { margin-top: 0; }
.mpanel > .feed { border: 0; border-radius: 0; height: 260px; background: transparent; }
.feed .line { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .03); }
table.mtable th { text-transform: uppercase; font-size: 11px; letter-spacing: .6px; background: var(--panel2); padding: 8px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.mtable td { padding: 8px 12px; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, .04); }
table.mtable tr:nth-child(odd) td { background: rgba(255, 255, 255, .015); }
table.mtable tr:hover td { background: rgba(125, 255, 74, .05); }
table.mtable tr:last-child td { border-bottom: 0; }
table.mtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.mtable .c-act { text-align: right; width: 1%; white-space: nowrap; }
table.mtable .c-date { white-space: nowrap; color: var(--muted); }
table.mtable .c-name { white-space: nowrap; }
table.mtable tr.none td { text-align: center; padding: 16px; background: none; }
button.mact { padding: 3px 12px; font-size: 12px; border-radius: 4px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
button.mact:hover { background: rgba(132, 222, 44, .12); border-color: #6a9c52; color: #ffffff; }
button.mact.danger { color: #f0a090; border-color: #4a2e2a; }
button.mact.danger:hover { background: rgba(224, 106, 90, .18); border-color: #e06a5a; color: #ffffff; box-shadow: 0 0 0 1px rgba(224, 106, 90, .3); }
button.mact.warn { color: #e8cf8a; border-color: #4a422a; }
button.mact.warn:hover { background: rgba(224, 180, 90, .16); border-color: #e0b45a; color: #ffffff; box-shadow: 0 0 0 1px rgba(224, 180, 90, .3); }

/* the game in its frame (game/mp.html) */
.gframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #081114; }

/* ---- the room (lobby game setup): slots, ready ticks, avatars, colours, map, options ---- */
.tick { position: relative; width: 20px; height: 20px; flex: 0 0 auto; margin: 0; cursor: default; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick i { display: block; width: 20px; height: 20px; border-radius: 4px; border: 2px solid #4a5654; transition: all .12s; }
.tick.on i { background: var(--good); border-color: var(--good); }
.tick.on i::after { content: ''; display: block; width: 5px; height: 10px; margin: 1px 0 0 5px; border: solid #0e171b; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tick.mine { cursor: pointer; } .tick.mine i { border-color: #7dff4a; } .tick.mine:hover i { box-shadow: 0 0 0 3px rgba(143, 217, 74, .25); }
.tick-space { width: 20px; flex: 0 0 auto; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.room-head { display: flex; align-items: center; gap: 12px; }
.room-head h2 { margin: 0; font-size: 18px; }
.room-head .push { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.slots { width: 100%; border-collapse: collapse; }
.slots th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 500; padding: 7px 8px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.slots td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: middle; }
.slots tr.closed td { opacity: .45; }
.slots tr.me td { background: rgba(132, 222, 44, .04); }
.slots select { padding: 4px 6px; font-size: 13px; }
.who-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.who-cell .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #0e171b; background-size: cover; background-position: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.avatar.ai { background: #232b2e; color: #8b9696; font-size: 10px; letter-spacing: .5px; }
.avatar.open { background: transparent; box-shadow: inset 0 0 0 1px #3a4446; color: #5d6b68; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 4px; border: 2px solid rgba(0, 0, 0, .35); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; position: relative; padding: 0; }
.swatch:hover { box-shadow: 0 0 0 2px #d4ef6a; }
.swatch[disabled] { cursor: default; box-shadow: none; }
.palette { position: absolute; z-index: 30; display: grid; grid-template-columns: repeat(4, 26px); gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.palette button { width: 26px; height: 26px; border-radius: 4px; padding: 0; border: 2px solid rgba(0, 0, 0, .35); }
.palette button.taken { opacity: .2; cursor: not-allowed; }
.team-tag { display: inline-block; min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.team-A { background: rgba(80, 150, 255, .15); color: #8fb8ff; } .team-B { background: rgba(255, 110, 90, .15); color: #ff9c8c; } .team-C { background: rgba(120, 220, 120, .15); color: #9fe39f; } .team-D { background: rgba(240, 200, 60, .15); color: #f0d070; } .team-ffa { color: var(--muted); }
.mapbox { padding: 12px; }
.mapbox canvas { display: block; width: 100%; height: auto; border-radius: 4px; background: #0b0f10; }
.mapname { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 10px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.opts label { margin: 0; font-size: 12px; }
.opts select, .opts input { width: 100%; padding: 5px 7px; font-size: 13px; margin-top: 3px; }
.opts .wide { grid-column: 1 / -1; }
.locked-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.room-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.room-foot .push { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.setline { font-size: 12px; color: var(--muted); }
.me-card { display: flex; align-items: center; gap: 12px; }
.me-card .avatar { width: 46px; height: 46px; font-size: 16px; }
.room .slots-wrap { overflow-x: auto; }
.me-card { margin: 0 0 14px; padding: 10px 12px; }
.me-card .grow1 { flex: 1; min-width: 0; }
.players .avatar.sm, .player .avatar.sm { margin-right: 2px; }
.bar .who .avatar.sm { margin-right: -2px; }
@media (max-width: 1250px) { .room { grid-template-columns: 1fr; } }
.me-card .pick { cursor: pointer; }
.room { grid-template-columns: minmax(0, 1fr); }
.room .mapbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.room .mapbox .mapname { grid-column: 1; grid-row: 2; margin: 6px 0 0; }
.room .mapbox .opts { grid-column: 2; grid-row: 1 / span 3; }
.room .mapbox .locked-note { grid-column: 1; grid-row: 3; }
@media (max-width: 700px) { .room .mapbox { grid-template-columns: 1fr; } .room .mapbox .opts, .room .mapbox .mapname, .room .mapbox .locked-note { grid-column: 1; grid-row: auto; } }
.swatch[disabled] { opacity: 1; }
/* ---- my account: picture and password; the name in the header links to it ---- */
.me-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 16px; padding: 2px 8px 2px 2px; transition: background .12s; }
.me-link:hover { background: rgba(143, 217, 74, .08); }
img.avatar { object-fit: cover; }
.avatar.initials { background: #8fa6c9; }
.avatar.big { width: 72px; height: 72px; font-size: 24px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-grid .mp-pad, .acc-pic .mp-pad { padding: 14px; }
.acc-grid .me-card, .acc-pic .me-card { align-items: flex-start; gap: 16px; margin: 0; }
.acc-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; }
.acc-form input[type=file] { flex: 1; min-width: 0; }
.acc-pic { margin: 0 0 16px; max-width: 640px; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } }
/* ---- games (play.php): one card per game, each opens its own lobby ---- */
.crumb-link { color: #9aa79f; text-decoration: none; font-size: 14px; }
.crumb-link:hover { color: #cfe8b0; }
body.ingame .crumb-link { display: none; }
.gamecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 6px; }
.gamecard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.gamecard:hover { border-color: #6a9c52; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(132, 222, 44, .15); }
.gc-art { position: relative; height: 170px; display: flex; align-items: flex-end; padding: 16px 18px;
  background: linear-gradient(160deg, rgba(20, 28, 22, 0) 30%, rgba(10, 14, 12, .85) 100%),
              repeating-linear-gradient(30deg, rgba(125, 255, 74, .05) 0 1px, transparent 1px 34px),
              repeating-linear-gradient(-30deg, rgba(125, 255, 74, .05) 0 1px, transparent 1px 34px),
              radial-gradient(ellipse at 30% 20%, #2c3d27 0%, #18272b 55%, #121817 100%); }
.gc-ironsteer { background-color: #18272b; }
.gc-ironsteer::after { content: ''; position: absolute; right: 22px; top: 26px; width: 92px; height: 66px; background: linear-gradient(135deg, #47944a, #366f78); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .35; }
.gc-title { position: relative; z-index: 1; font-size: 26px; font-weight: 800; letter-spacing: 5px; color: #e9f3e1; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.gc-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 16px; flex: 1; }
.gc-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #d4ef6a; }
.gc-text { color: #c3ccc8; font-size: 14px; line-height: 1.45; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-go { margin-top: auto; display: flex; justify-content: flex-end; }
.gamecard.soon { opacity: .45; border-style: dashed; }
.gamecard.soon .gc-title { font-size: 16px; letter-spacing: 4px; color: #8b9696; }
.acc-form.busy { opacity: .6; pointer-events: none; }
/* ---- admin: backup ---- */
.bak-make { margin: 14px 0 16px; }
.bak-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bak-list td { vertical-align: top; }
.bak-act { white-space: nowrap; text-align: right; }
.bak-act form { margin-left: 8px; }
.bak-steps { margin: 0; padding: 12px 14px 14px 34px; line-height: 1.6; }
/* ---- admin dashboard: who is on the site ---- */
.online-box { margin: 0 0 14px; }
.on-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 14px 4px; }
.on-cards .card { margin: 0; }
.on-tabs { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); }
.on-tabs button { background: none; box-shadow: none; color: var(--muted); border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 7px 14px; }
.on-tabs button:hover { color: var(--text); }
.on-tabs button.on { color: var(--text); background: var(--panel2); border-color: var(--line); }
table.online td { vertical-align: top; }
table.online .who-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.avatar.vis { background: #2a3234; color: #8b9696; font-size: 9px; }
.on-note { padding: 6px 14px 10px; margin: 0; }
.on-sum { padding: 10px 14px 6px; }
.gwatch { font-size: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.mon-acts { display: inline-flex; gap: 6px; align-items: center; }
.on-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.on-stats button { display: flex; align-items: baseline; gap: 7px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--muted); box-shadow: none; font-size: 13px; }
.on-stats button b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.on-stats button:hover { border-color: var(--accent); color: var(--text); }
.on-now { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.on-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; color: var(--text); box-shadow: none; }
.on-chip .avatar { width: 22px; height: 22px; font-size: 11px; }
.on-chip .muted { font-size: 12px; }
.on-chip.bg { opacity: .6; }
button.on-chip { cursor: pointer; } button.on-chip:hover { border-color: var(--accent); }
.dr-tabs b { font-weight: 400; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.dr-tabs button.on b { color: var(--accent2); }
.dr-tabs { margin: 6px 0 10px; }
button.dr-card { display: block; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font: inherit; cursor: pointer; box-shadow: none; color: var(--muted); padding: 14px 18px; }
button.dr-card .big { display: block; }
button.dr-card:hover { border-color: var(--accent); color: var(--text); }
.dr-pl { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-tabs button.warn b { color: var(--warn); }
.sus-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 2px 0 10px; }
.sus-bar form { margin: 0; } .sus-bar .push { flex: 1; }
.sus-kinds, .sus-kk { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sus-kk { margin: 0; }
.sus-k { font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.sus-k b { color: var(--text); }
.sus-k.k-probe, .sus-k.k-inject, .sus-k.k-traversal { border-color: #6a3a32; color: #e8a090; }
.sus-k.k-redirect, .sus-k.k-login { border-color: #6b5a28; color: var(--warn); }
.sus-h { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sus-u { word-break: break-all; min-width: 240px; }
.dr-tabs { flex-wrap: wrap; } .dr-tabs button { white-space: nowrap; padding: 7px 11px; }
.sus-all { margin: 10px 0; } .sus-all summary { cursor: pointer; color: var(--accent2); font-size: 13px; }
@media (max-width: 900px) { .on-cards { grid-template-columns: 1fr 1fr; } table.online { display: block; overflow-x: auto; } }

/* ---- Admin > Game reports: the list, and the game over the page (report, replay) */
.rep-filter { max-width: 260px; margin-left: auto; }
.rep-players { white-space: normal; }
.rep-p { display: inline-flex; align-items: center; gap: 4px; margin: 1px 10px 1px 0; padding-left: 7px; border-left: 3px solid currentColor; font-weight: 600; }
.rep-p.ai { font-weight: 400; opacity: .85; }
.tc0 { color: #2f7bff; } .tc1 { color: #e63030; } .tc2 { color: #3fbf3f; } .tc3 { color: #e8c020; } .tc4 { color: #27c8d8; } .tc5 { color: #6355e8; } .tc6 { color: #a0a6ac; } .tc7 { color: #f08a24; }
.rep-res { font-style: normal; font-size: 10px; padding: 0 4px; border: 1px solid; border-radius: 3px; color: #99aabb; }
.rep-res.won { color: #66ff66; } .rep-res.lost { color: #ff5555; } .rep-res.left { color: #99aabb; }
.rep-act button { margin-left: 6px; }
.rep-view { position: fixed; inset: 0; z-index: 1000; background: #0e171b; }
.rep-view[hidden] { display: none; }
.rep-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.rep-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #99aabb; font: 15px monospace; letter-spacing: 2px; }
body.rep-open { overflow: hidden; }
.gbtn.gadm { color: #f2c230; border-color: #5a4a1a; } .gbtn.gadm:hover { background: #2a2410; }

/* ---- Admin > Builds, and the build of a lobby game */
.tag.b-admin { color: #e6a04a; border-color: #5a4220; }
.tag.b-staff { color: #6fb7e8; border-color: #24465c; }
.tag.b-beta { color: #9ba6ff; border-color: #343f70; background: #151c30; }
.ig-upd { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9999; background: #1d2a22; color: #cfe8d6; border: 1px solid #3c8f5a; border-radius: 6px; padding: 8px 14px; font: 13px monospace; }
.b-labels, .b-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.b-labels .chk, .b-who .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tag.b-default { color: var(--accent2); border-color: var(--accent); background: #132220; }
.b-notes { max-width: 520px; }
.b-list td { vertical-align: middle; }
.b-status { display: grid; gap: 10px; }
.b-opt { display: flex; align-items: center; gap: 12px; }
.b-opt button { min-width: 190px; text-align: left; }
.b-opt.on button[disabled] { opacity: 1; cursor: default; box-shadow: 0 0 0 1px var(--accent2) inset; }
.b-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.b-repair { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.b-upload { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.b-upload input[type=file] { max-width: 340px; }
.b-upload .b-dest { display: flex; align-items: center; gap: 8px; margin: 0; }
.b-upload .b-dest select { width: auto; }
.b-upload .b-note { flex-basis: 100%; }
.b-prog { flex-basis: 100%; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.b-prog i { display: block; height: 100%; width: 0; background: var(--accent2); transition: width .15s; }
.b-files td { vertical-align: middle; }
.b-arch summary { color: var(--muted); }
.gbuild { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 9px; border: 1px solid #5a4220; color: #e6a04a; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.gbuild.pub { border-color: var(--line); color: var(--muted); }

.upd-log { max-height: 320px; overflow: auto; margin-top: 10px; background: #0c100d; border: 1px solid var(--line); padding: 8px 10px; }
.upd-run .mp-head b { color: var(--accent2); }
.b-repair .b-prog { flex-basis: 100%; }
.gc-build { background-color: #241f16; }
.gc-btag { position: absolute; left: 18px; top: 14px; z-index: 1; font-size: 12px; }

/* build cards and thumbnails (0.8.9) */
.gc-art.gc-img { overflow: hidden; }
.gc-art .gc-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc-art.gc-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 12,0) 35%, rgba(10, 14, 12,.82) 100%); pointer-events: none; }
.gc-art.gc-img::after { display: none; }
.gc-art.gc-img .gc-title, .gc-art.gc-img .gc-btag { z-index: 2; }
.gamecard.locked { opacity: .7; cursor: default; }
.gamecard.locked .gc-art { filter: grayscale(.6); }
.lobby-head.lh-img { align-items: center; justify-content: flex-start; gap: 16px; }
.lh-thumb { width: 192px; height: 108px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.lh-descr { margin: 6px 0 0; max-width: 760px; color: #b9c4c0; font-size: 14px; line-height: 1.45; }
.gbuild .gb-thumb { width: 32px; height: 18px; object-fit: cover; border-radius: 3px; vertical-align: middle; margin: -2px 6px 0 -2px; }
.b-card { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.b-cardprev { position: relative; width: 384px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #17262a; }
.b-cardprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-cardprev .b-thumbprev { position: absolute; right: 8px; bottom: 8px; width: 96px; height: 54px; border: 2px solid rgba(0, 0, 0,.6); border-radius: 4px; }
.b-noimg { display: flex; align-items: center; justify-content: center; color: #6b7a74; letter-spacing: 3px; font-weight: 700; background: repeating-linear-gradient(135deg, #17262a 0 12px, #1d2722 12px 24px); }
.b-lthumb { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 10px; display: inline-block; border: 1px solid var(--line); }
.b-conf textarea { width: 100%; font-size: 12px; line-height: 1.4; white-space: pre; overflow: auto; }
@media (max-width: 640px) { .lh-thumb { width: 120px; height: 68px; } .lobby-head.lh-img { flex-wrap: wrap; } }

.gload .gload-x { display: flex; gap: 10px; margin-top: 14px; }
.gstage.ready .gload .gload-x, .gload[hidden] .gload-x { display: none; }

/* ---- 0.8.21: report tabs, user tags, day registry ---- */
.chip { --c: #99aabb; display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 10px; font-size: 12px; line-height: 20px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: color-mix(in srgb, var(--c) 80%, #ffffff); background: rgba(255, 255, 255, .03); cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: none; }
.chip i { font-style: normal; opacity: .6; }
.chip.on { background: color-mix(in srgb, var(--c) 25%, transparent); }
.chip.add { border-style: dashed; color: var(--muted); --c: #778899; }
.chip .x { opacity: .7; margin-left: 2px; }
.tagbar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 8px 0 10px; }
.tagbar.edit .chip[data-tag]::after { content: ' \270E  \00D7'; opacity: .7; }
.utags { white-space: normal; }
.utags .chip { margin: 1px 3px 1px 0; }
.tagpick { position: absolute; z-index: 50; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.tagpick .chip { justify-content: flex-start; }
.rtabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); }
.rtabs .sp { flex: 1; }
.rtabs a { --c: #6fd3a0; padding: 7px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-size: 14px; box-shadow: inset 0 3px color-mix(in srgb, var(--c) 70%, transparent); cursor: pointer; user-select: none; }
.rtabs a i { font-style: normal; opacity: .6; font-size: 12px; margin-left: 4px; }
.rtabs a:hover { color: var(--text); }
.rtabs a.on { color: var(--text); background: var(--panel2); border-color: var(--line); font-weight: 600; }
.rtabs a.add { box-shadow: none; border: 1px dashed var(--line); border-bottom: 0; }
.rtabs a.drop { background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--text); outline: 2px dashed var(--c); }
.rtabs a.drag { opacity: .4; }
.rbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.rbar .sp { flex: 1; }
.rbar.rsel { background: rgba(111, 211, 160, .08); }
.rbar .mv { --c: #6fd3a0; border: 1px solid var(--c); }
.rbar[hidden] { display: none; }
#repList tr[draggable="true"] { cursor: grab; }
#repList tr.sel td { background: rgba(111, 211, 160, .08); }
#repList tr.dragging td { opacity: .4; }
.dragcount { position: fixed; top: -100px; left: -100px; padding: 4px 10px; border-radius: 6px; background: #2c5e47; color: #ffffff; font: 13px sans-serif; }
.dr-spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; padding: 8px 14px 4px; }
.dr-spark a { flex: 1; max-width: 26px; display: flex; align-items: flex-end; gap: 1px; height: 100%; }
.dr-spark a i { flex: 1; border-radius: 2px 2px 0 0; min-height: 1px; }
.dr-spark a i.m { background: rgba(111, 211, 160, .6); } .dr-spark a i.v { background: rgba(111, 180, 224, .45); }
.dr-spark a.on { outline: 1px solid rgba(255, 255, 255, .4); }
.dr-grid { display: grid; grid-template-columns: 230px 1fr; gap: 0; border-top: 1px solid var(--line); }
.dr-days { max-height: 640px; overflow: auto; border-right: 1px solid var(--line); }
.dr-days a { display: grid; grid-template-columns: 1fr 38px 38px 12px; gap: 4px; padding: 3px 10px; line-height: 1.3; border-bottom: 1px solid rgba(255, 255, 255, .04); color: inherit; text-decoration: none; font-size: 13px; }
.dr-days a:hover { background: rgba(255, 255, 255, .03); } .dr-days a.on { background: rgba(111, 211, 160, .12); }
.dr-days summary { display: block; padding: 4px 10px; cursor: pointer; list-style: none; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.dr-days summary::-webkit-details-marker { display: none; } .dr-days summary > span:first-child::before { content: '\25B8  '; color: var(--muted); } .dr-days details[open] > summary > span:first-child::before { content: '\25BE  '; }
.dr-days .dr-mon > summary { background: rgba(255, 255, 255, .05); font-weight: 600; } .dr-days .dr-wk > summary { padding-left: 18px; font-size: 12px; color: var(--muted); } .dr-days .dr-wk > summary i { font-style: normal; opacity: .6; }
.dr-days .dr-wk a { padding-left: 28px; } .dr-days summary:hover { background: rgba(255, 255, 255, .03); }
.dr-days .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.dr-ok { color: #6fd3a0; } .dr-no { color: var(--muted); }
.dr-main { padding: 8px 14px 4px; min-width: 0; }
.dr-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.dr-head h3 { margin: 4px 0; }
.dr-btns { display: flex; gap: 6px; align-items: center; }
.dr-btns form { margin: 0; }
.dr-cards { grid-template-columns: repeat(6, 1fr); margin: 8px 0; }
.dr-hours { display: flex; gap: 2px; align-items: flex-end; height: 56px; margin-top: 4px; }
.dr-hours i { flex: 1; display: block; background: rgba(111, 211, 160, .55); border-radius: 2px 2px 0 0; }
.dr-hl { display: grid; grid-template-columns: repeat(24, 1fr); font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.dr-tabs { padding-left: 0; }
.dr-tl { display: flex; flex-wrap: wrap; gap: 3px; }
.dr-tl span { font-size: 11px; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.dr-tl span.g { background: rgba(111, 211, 160, .2); } .dr-tl span.a { background: rgba(224, 111, 111, .2); }
/* (0.8.550) the Day registry's members, visitors, robots: each one in a rounded frame of its own (the same four columns as before) */
.dr-vis { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.dr-vh, .dr-v { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(170px, 250px); gap: 14px; }
.dr-vh { padding: 0 13px; font-size: 13px; color: var(--muted); }
.dr-v { align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.dr-v:hover { border-color: var(--edge, #3a578c); }
.dr-v .who-cell { white-space: nowrap; }
.dr-wt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dr-wt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.dr-wt-top .who-cell { min-width: 0; }
.dr-min { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--edge, var(--line)); background: rgba(255, 216, 77, .08); color: var(--accent2); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.dr-min small { font-size: 10.5px; font-weight: 600; opacity: .8; }
.dr-wt-time { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, .18); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-wt-time b { font-weight: 600; } .dr-wt-time i { font-style: normal; color: var(--muted); }
.dr-wt-time em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: auto; }
.dr-addr { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .dr-v { grid-template-columns: 1fr 1fr; } .dr-vh { display: none; } .dr-v > .dr-what { grid-column: 1 / -1; } }
@media (max-width: 900px) { .dr-grid { grid-template-columns: 1fr; } .dr-days { max-height: 180px; border-right: 0; } .dr-cards { grid-template-columns: repeat(3, 1fr); } }
/* report rows: one line per cell */
#repList td { vertical-align: middle; }
#repList th.c-mid, #repList td.c-mid { text-align: center; white-space: nowrap; width: 1%; }
#repList th.c-act, #repList td.c-act { text-align: right; white-space: nowrap; width: 1%; }
.rep-when { white-space: nowrap; width: 1%; line-height: 1.25; }
.rep-when b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-when span { font-size: 12px; color: var(--muted); }
.rep-game { min-width: 160px; line-height: 1.3; }
.rep-game .l1 { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rep-game .l1 .gbuild { margin: 0; }
.rep-game .l2 { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rep-game .code { font-family: monospace; cursor: copy; }
.rep-game .code:hover { color: var(--text); } .rep-game .code.ok { color: #88ff88; }
.rep-win { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; background: rgba(111, 211, 160, .15); color: #8fe0b4; font-weight: 700; }
.rep-act { display: table-cell; }
.rep-btns { display: inline-flex; vertical-align: middle; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-right: 6px; }
.rep-btns button { margin: 0 !important; border: 0; border-radius: 0; box-shadow: none; padding: 4px 10px; }
.rep-btns button + button { border-left: 1px solid var(--line); }
.rep-act select { width: auto; max-width: 120px; padding: 4px 6px; font-size: 12px; vertical-align: middle; }
/* report players: small rounded cards in the player's colour */
#repList .rep-players { white-space: normal; }
#repList .rep-p { display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0; padding: 2px 8px; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-left-width: 1px; border-radius: 6px; background: color-mix(in srgb, currentColor 16%, transparent); line-height: 18px; font-size: 13px; }
#repList .rep-p.ai { font-weight: 400; opacity: 1; border-style: dashed; background: color-mix(in srgb, currentColor 8%, transparent); }
#repList .rep-p .rep-res { margin-left: 1px; background: rgba(0, 0, 0, .35); border-color: transparent; }
/* ---- 0.8.26: Game reports > Log viewer ---- */
.rtop { display: flex; gap: 4px; margin: 4px 0 10px; }
.rtop a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; text-decoration: none; user-select: none; }
.rtop a:hover { color: var(--text); } .rtop a.on { color: var(--text); background: var(--panel2); border-color: rgba(111, 211, 160, .5); font-weight: 600; }
.mpanel[hidden] { display: none; }
.lv-bar .lv-pick { flex: 1 1 320px; max-width: 520px; }
.lv-body { padding: 4px 16px 16px; }
.lv-head { padding: 10px 0 6px; } .lv-title { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.lv-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 4px; }
.lv-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.lv-card .big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; } .lv-card .lab { font-size: 12px; color: var(--muted); }
.lv-card.good { border-color: rgba(111, 211, 160, .5); } .lv-card.good .big { color: #8fe0b4; }
.lv-card.warn { border-color: rgba(224, 165, 74, .5); } .lv-card.warn .big { color: #f2c27a; }
.lv-card.bad { border-color: rgba(224, 111, 111, .6); } .lv-card.bad .big { color: #f29f9f; }
.lv-sec { margin-top: 18px; } .lv-sec h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .3px; }
.lv-find { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lv-find li { padding: 6px 10px 6px 30px; border-radius: 6px; background: rgba(255, 255, 255, .03); position: relative; font-size: 14px; }
.lv-find li::before { content: 'i'; position: absolute; left: 9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; font: 700 10px/14px sans-serif; text-align: center; background: #445566; color: #ccddee; }
.lv-find li.good::before { content: '\2713'; background: #2c5e47; color: #bbffee; } .lv-find li.warn::before { content: '!'; background: #6b4d1c; color: #ffdd99; } .lv-find li.bad::before { content: '\00D7'; background: #6b2424; color: #ffbbbb; }
.lv-find li.bad { background: rgba(224, 111, 111, .08); } .lv-find li.warn { background: rgba(224, 165, 74, .07); }
.lv-scroll { overflow-x: auto; }
.lv-tab th.n, .lv-tab td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-tab td.best { font-weight: 700; color: #ffffff; } .lv-tab td.good { color: #8fe0b4; } .lv-tab td.bad { color: #f29f9f; }
.lv-pl { --c: #99aabb; display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 70%, #ffffff); font-weight: 600; font-size: 13px; white-space: nowrap; }
.lv-tl { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.lv-tl li { display: grid; grid-template-columns: 52px 70px 1fr; gap: 8px; padding: 3px 8px; position: relative; font-size: 13px; }
.lv-tl li::before { content: ''; position: absolute; left: -16px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #445566; }
.lv-tl li.warn::before { background: #e0a54a; } .lv-tl li.bad::before { background: #e06f6f; } .lv-tl li.bad { color: #f29f9f; }
.lv-tl .g { font-weight: 700; font-variant-numeric: tabular-nums; } .lv-tl .c { color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-cbox { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.lv-chart { width: 100%; height: 130px; display: block; }
.lv-chart .grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; } .lv-chart .ax { fill: #778899; font-size: 11px; }
.lv-chart .ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lv-leg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.lv-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lv-kcol { display: flex; flex-direction: column; gap: 3px; } .lv-kcol .lv-pl { align-self: flex-start; margin-bottom: 4px; }
.lv-krow { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.lv-krow .bar { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 4px; overflow: hidden; } .lv-krow .bar i { display: block; height: 100%; opacity: .7; }
.lv-krow .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lv-raw { margin: 4px 0; } .lv-raw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.lv-pre { max-height: 360px; overflow: auto; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 11px; }
@media (max-width: 900px) { .lv-cards { grid-template-columns: repeat(3, 1fr); } }
/* report rows: big tick boxes, swept with the mouse held down */
#repList th.c-sel, #repList td.c-sel { width: 44px; padding: 0 !important; text-align: center; cursor: pointer; user-select: none; }
#repList td.c-sel { height: 100%; }
.cbx { display: inline-block; width: 22px; height: 22px; border: 2px solid #5f7570; border-radius: 6px; background: rgba(0, 0, 0, .25); vertical-align: middle; position: relative; transition: background .08s, border-color .08s; }
td.c-sel:hover .cbx, th.c-sel:hover .cbx { border-color: #8fe0b4; }
.cbx.on { background: #2f8a5f; border-color: #6fd3a0; }
.cbx.on::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #ffffff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.cbx.some::after { content: ''; position: absolute; left: 4px; right: 4px; top: 8px; height: 3px; background: #8fe0b4; border-radius: 2px; }
body.sweeping, body.sweeping * { cursor: ns-resize !important; user-select: none !important; }
.rbar.rsel { min-height: 46px; box-sizing: border-box; }
.rbar.rsel.empty { background: none; }
.upd-hhead { align-items: center; margin-top: 18px; } .upd-hhead h2 { margin: 0; }
.upd-more { text-align: center; margin: 10px 0; }

/* Admin > Build viewer */
main.wide.xwide { max-width: 1680px; }
.bv-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.bv-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.bv-stage { position: relative; aspect-ratio: 16 / 9; background: #070a07; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.bv-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.bv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bv-side { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.bv-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 10px 0 6px; }
.bv-h:first-child { margin-top: 0; }
.bv-kinds, .bv-acts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bv-acts + .bv-acts { margin-top: 6px; }
.bv-k.dk { border-color: #2f6f7a; }
.bv-k.on { border-color: var(--accent2); color: var(--accent2); }
.bv-in { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.bv-in input { width: 64px; padding: 4px 6px; margin: 0; }
.bv-acts select { padding: 4px 6px; font-size: 13px; }
.bv-acts label.check { margin: 0; }
.bv-cmd { display: flex; gap: 5px; }
.bv-cmd input { flex: 1; min-width: 0; padding: 5px 8px; font-family: ui-monospace, monospace; font-size: 13px; }
.bv-log { height: 220px; overflow: auto; margin: 8px 0 0; padding: 6px 8px; background: #091315; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; white-space: pre-wrap; }
.bv-seg button.on, .bv-tog.on { background: var(--accent); border-color: var(--accent2); color: #ffffff; }
#bvDmg { width: 140px; accent-color: var(--accent2); }
.bv-log .bv-me { color: var(--accent2); }
.bv-log .bv-err { color: var(--bad); }
@media (max-width: 1100px) { .bv-main { grid-template-columns: 1fr; } }


/* ================================================================ the admin header (one line, never taller): logo › menu ‹ you.
   Three segments locked by soft chevrons; the menu's groups split by a small diamond; the open tab lit from top and bottom by
   a beam with a diamond (admin.js places them, and puts what does not fit into More) */
body.admin header.bar.nb { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; height: 56px; min-height: 56px; white-space: nowrap; overflow: visible; position: relative; z-index: 30;
  background: linear-gradient(180deg, #102018, #0d1a14); border-bottom: 1px solid #2a4a32; }
.nb .nb-brand, .nb .nb-menu, .nb .nb-who { position: relative; display: flex; align-items: center; }
.nb .nb-brand { flex: 0 0 auto; gap: 11px; padding: 0 30px 0 18px; color: #e9f3ea; background: linear-gradient(180deg, rgba(110, 200, 110, .10), rgba(110, 200, 110, .05));
  clip-path: polygon(0 0, calc(100% - 14px) 0, calc(100% - 2px) 44%, calc(100% - 2px) 56%, calc(100% - 14px) 100%, 0 100%); }
.nb .nb-brand:hover { text-decoration: none; }
.nb .nb-name { font-weight: 650; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.nb .nb-brand .ig-logo { filter: drop-shadow(0 0 5px rgba(125, 255, 74, .35)); }
.nb .nb-menu { flex: 1 1 0; min-width: 0; margin-left: -9px; padding: 0 30px 0 26px; align-items: stretch; background: linear-gradient(180deg, rgba(125, 255, 74, .10), rgba(125, 255, 74, .045));
  clip-path: polygon(0 0, calc(100% - 14px) 0, calc(100% - 2px) 44%, calc(100% - 2px) 56%, calc(100% - 14px) 100%, 0 100%, 12px 56%, 12px 44%); }
.nb .nb-brand::after, .nb .nb-menu::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg, transparent, rgba(125, 255, 74, .2)); pointer-events: none; }
.nb .nb-who { flex: 0 0 auto; gap: 8px; margin-left: -9px; padding: 0 16px 0 26px; background: linear-gradient(180deg, rgba(110, 200, 110, .10), rgba(110, 200, 110, .05));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 56%, 12px 44%); }
.nb .nb-who > a, .nb .nb-who .link { color: var(--lemon); padding: 6px 8px; border-radius: 6px; }
.nb .nb-who > a:hover, .nb .nb-who .link:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
.nb .nb-who .me-link { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 20px; background: rgba(125, 255, 74, .06); border: 1px solid rgba(125, 255, 74, .14); }
nav.nb-tabs { position: relative; display: flex; flex: 1 1 0; min-width: 0; flex-wrap: nowrap; gap: 0; overflow: hidden; align-items: stretch; }
nav.nb-tabs a { position: relative; display: flex; align-items: center; flex: 0 0 auto; padding: 0 12px; height: auto; font-size: 14px; color: #a9c9a0; border: 0; border-radius: 0; background: none; }
nav.nb-tabs a:hover { color: #eaf6c4; text-decoration: none; background: linear-gradient(180deg, rgba(125, 255, 74, .05), transparent 40%, transparent 60%, rgba(125, 255, 74, .05)); }
nav.nb-tabs a.on { color: #f4fbd2; border: 0; background: linear-gradient(180deg, rgba(125, 255, 74, .10), rgba(125, 255, 74, .02) 45%, rgba(125, 255, 74, .02) 55%, rgba(125, 255, 74, .10)); }
nav.nb-tabs a.nb-more { color: var(--lemon); cursor: pointer; }
nav.nb-tabs .nb-hid { display: none !important; }
.nb-gs { flex: 0 0 auto; align-self: center; width: 4px; height: 4px; margin: 0 6px; transform: rotate(45deg); background: rgba(212, 239, 106, .45); }
.nb-ind { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(125, 255, 74, .95), transparent); }
.nb-ind::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: #b6ff7a; box-shadow: 0 0 10px rgba(125, 255, 74, .85); }
.nb-ind.nb-ind2 { top: 0; bottom: auto; }
.nb-ind.nb-ind2::after { top: auto; bottom: -3px; }
.nb-ready .nb-ind { transition: left .25s cubic-bezier(.3, .7, .2, 1), width .25s cubic-bezier(.3, .7, .2, 1); }
.nb-moremenu { position: absolute; top: 100%; margin-top: 4px; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); z-index: 40; }
.nb-moremenu[hidden] { display: none; }
.nb-moremenu a { display: block; padding: 8px 12px; border-radius: 6px; color: #b9cdb7; }
.nb-moremenu a:hover, .nb-moremenu a.on { background: rgba(125, 255, 74, .08); color: #f4fbd2; text-decoration: none; }

/* ================================================================ Admin mails */
.mail-head { display: flex; align-items: center; gap: 12px; }
.mail-head .muted { flex: 1; }
.mail-lock { max-width: 520px; }
.mail-lock form { padding: 16px; }
.mtabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.mtabs a { position: relative; display: inline-flex; align-items: center; padding: 10px 16px; color: #97abad; }
.mtabs a:hover { color: #eaf6c4; text-decoration: none; background: linear-gradient(180deg, transparent 60%, rgba(125, 255, 74, .05)); }
.mtabs a.on { color: #f4fbd2; background: linear-gradient(180deg, transparent 30%, rgba(125, 255, 74, .09)); }
.mtabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(125, 255, 74, .95), transparent); }
.mtabs a.on::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: #b6ff7a; box-shadow: 0 0 10px rgba(125, 255, 74, .85); z-index: 1; }
.mtabs .mnew { margin-left: auto; color: var(--lemon); }
.mtabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #5d7377; }
.mtabs .dot.ok { background: var(--neon); box-shadow: 0 0 6px rgba(125, 255, 74, .6); }
.mtabs .dot.err { background: var(--bad); }
.mcount { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: #ffffff; font-size: 11px; font-weight: 700; text-align: center; }
.mcount[hidden] { display: none; }
.mail-grid { display: grid; grid-template-columns: minmax(320px, 1fr) 1.5fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .mail-grid { grid-template-columns: 1fr; } }
.mlist .mp-head select { width: auto; padding: 4px 8px; max-width: 180px; }
.msearch { padding: 8px 10px; border-bottom: 1px solid var(--line); margin: 0; }
.msearch input { width: 100%; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; outline: none; }
.mrow:hover, .mrow:focus-visible { background: rgba(110, 175, 180, .05); }
.mrow.on { box-shadow: inset 3px 0 0 var(--neon); background: linear-gradient(90deg, rgba(125, 255, 74, .08), transparent); }
.mrow .from { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b9cccc; }
.mrow .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mrow .subj { grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.mrow.unread .from, .mrow.unread .subj { color: var(--text); }
.mrow .u { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.mrow.unread .u { background: var(--neon); box-shadow: 0 0 6px rgba(125, 255, 74, .6); }
.mrow .clip { margin-left: 6px; font-size: 12px; }
.mmore { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.mmore button[hidden] { display: none; }
.mread { min-height: 460px; }
.rempty { padding: 48px 20px; text-align: center; }
.rhead { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rhead table.kv { margin: 0; } .rhead table.kv th { padding: 2px 16px 2px 0; vertical-align: top; } .rhead table.kv td { padding: 2px 0; word-break: break-word; }
.rnote { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 16px; background: rgba(212, 239, 106, .06); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--lemon); }
.rframe { display: block; width: 100%; height: 68vh; min-height: 360px; border: 0; background: #ffffff; }
.ratt { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); }
.ratt a { border: 1px solid var(--line); border-radius: 5px; padding: 4px 10px; font-size: 13px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }
.mcreate { max-width: 960px; }
.mcreate form.mp-pad { padding: 16px; }
.mdel { border-top: 1px solid var(--line); }
.mset { margin-top: 4px; }
.bad { color: var(--bad); }
button.danger { border-color: rgba(224, 106, 90, .5); color: #f29f9f; }

/* the same bar on the members' pages (Games, My account, the lobby and the game: slimmer there) */
.nb .crumb { align-self: center; margin: 0 14px 0 2px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nb .crumb .crumb-link { color: var(--lemon); }
.nb .crumb .gametitle { color: #e9f3ea; font-weight: 600; }
.nb nav.nb-tabs-game { flex: 0 0 auto; }
body.ingame header.bar.nb { height: 44px; min-height: 44px; }
body.ingame .nb .nb-menu { align-items: stretch; }
body.ingame .nb .gamectl { flex: 1 1 auto; padding-left: 12px; align-self: center; }
.nb .nb-who .admin-btn { padding: 5px 10px; }
/* the menu segment (between the two chevrons) tinted by role: moderators soft teal, administrators orange (merging from the green);
   the band, the logo and the "you" segments stay as they are */
.nb-mod .nb-menu { background: linear-gradient(0deg, rgba(110, 230, 215, .26) 0%, rgba(110, 230, 215, .12) 30%, rgba(110, 230, 215, .04) 65%, rgba(110, 230, 215, 0) 100%), linear-gradient(90deg, rgba(150, 210, 80, .06), rgba(110, 230, 215, .04) 30%); }      /* (teal rising from the bottom, fading softly upward: as the administrators' gold) */
.nb-mod .nb-menu::after { background: linear-gradient(90deg, transparent, rgba(110, 230, 215, .22)); }
.nb-mod nav.nb-tabs a { color: #a8e0d8; }
.nb-mod nav.nb-tabs a:hover { color: #e6fbf7; background: linear-gradient(180deg, rgba(110, 230, 215, .06), transparent 40%, transparent 60%, rgba(110, 230, 215, .06)); }
.nb-mod nav.nb-tabs a.on { color: #f2fffc; background: linear-gradient(180deg, rgba(110, 235, 220, .2), rgba(110, 235, 220, .03) 45%, rgba(110, 235, 220, .03) 55%, rgba(110, 235, 220, .2)); }
.nb-mod .nb-ind { background: linear-gradient(90deg, transparent, rgba(120, 240, 225, 1), transparent); }
.nb-mod .nb-ind::after { background: #b4fff2; box-shadow: 0 0 10px rgba(110, 230, 215, .85); }
.nb-mod .nb-gs { background: rgba(140, 220, 210, .45); }
.nb-mod nav.nb-tabs a.nb-more, .nb-mod .crumb .crumb-link { color: #a6f0e4; }
.nb-adm .nb-menu { background: linear-gradient(0deg, rgba(250, 215, 70, .26) 0%, rgba(250, 215, 70, .12) 30%, rgba(250, 215, 70, .04) 65%, rgba(250, 215, 70, 0) 100%), linear-gradient(90deg, rgba(150, 210, 80, .06), rgba(250, 215, 70, .04) 30%); }      /* (yellow-gold rising from the bottom, fading softly upward) */
.nb-adm .nb-menu::after { background: linear-gradient(90deg, transparent, rgba(245, 215, 80, .24)); }
.nb-adm nav.nb-tabs a { color: #f2e199; }
.nb-adm nav.nb-tabs a:hover { color: #fffadb; background: linear-gradient(180deg, rgba(245, 215, 80, .06), transparent 40%, transparent 60%, rgba(245, 215, 80, .06)); }
.nb-adm nav.nb-tabs a.on { color: #fffdeb; background: linear-gradient(180deg, rgba(250, 220, 90, .2), rgba(245, 215, 80, .02) 45%, rgba(245, 215, 80, .02) 55%, rgba(250, 220, 90, .2)); }
.nb-adm .nb-ind { background: linear-gradient(90deg, transparent, rgba(255, 228, 100, 1), transparent); }
.nb-adm .nb-ind::after { background: #fff09a; box-shadow: 0 0 10px rgba(245, 215, 80, .85); }
.nb-adm .nb-gs { background: rgba(250, 230, 140, .5); }
.nb-adm nav.nb-tabs a.nb-more, .nb-adm .crumb .crumb-link { color: #ffe896; }

/* administrators' names: gold, the same as their menu */
.name.role-admin { color: var(--admin); text-shadow: 0 0 8px rgba(255, 216, 77, .25); }
.name.role-moderator { color: var(--moderator); text-shadow: 0 0 8px rgba(127, 232, 216, .25); }
.name.role-beta { color: var(--beta); text-shadow: 0 0 8px rgba(155, 166, 255, .25); }
.btn.admin-btn.mod-btn { border-color: var(--moderator); color: var(--moderator); }
.btn.admin-btn.mod-btn:hover { background: rgba(127, 232, 216, .12); }

/* ================================================================ the landing page's corner (logged out: Log in; logged in: Games, you, Log out):
   a band alone on the right, its chevron pointing out to the left and ending on a diamond; Log in lit like the open tab of the menu */
nav.top { display: none; }
.cbwrap { position: fixed; top: 0; right: 0; height: 56px; display: flex; align-items: center; z-index: 20; }
.cbdia { width: 9px; height: 9px; margin-right: 9px; transform: rotate(45deg); background: #b6ff7a; box-shadow: 0 0 10px rgba(125, 255, 74, .75); }
.cb { position: relative; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 34px; border-bottom: 1px solid #2a4a32;
  background: linear-gradient(180deg, rgba(110, 200, 110, .10), rgba(110, 200, 110, .05)); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.cb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, rgba(125, 255, 74, .55), rgba(125, 255, 74, .12)); clip-path: polygon(16px 0, 26px 0, 10px 50%, 26px 100%, 16px 100%, 0 50%); }
.cb > a, .cb .link { color: var(--lemon); padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.cb > a:hover, .cb .link:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
.cb .me-link { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 20px; background: rgba(125, 255, 74, .06); border: 1px solid rgba(125, 255, 74, .14); }
.cb a.cb-go { position: relative; height: 56px; display: flex; align-items: center; padding: 0 20px; border-radius: 0; color: #f4fbd2; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  background: linear-gradient(180deg, rgba(125, 255, 74, .12), rgba(125, 255, 74, .02) 45%, rgba(125, 255, 74, .02) 55%, rgba(125, 255, 74, .12)); }
.cb a.cb-go:hover { background: linear-gradient(180deg, rgba(125, 255, 74, .18), rgba(125, 255, 74, .04) 45%, rgba(125, 255, 74, .04) 55%, rgba(125, 255, 74, .18)); }
.cb-go::before, .cb-go::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(125, 255, 74, .95), transparent); }
.cb-go::before { top: 0; } .cb-go::after { bottom: 0; }
.cb-go i { position: absolute; left: 50%; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: #b6ff7a; box-shadow: 0 0 10px rgba(125, 255, 74, .85); }
.cb-go i.t { top: -3px; } .cb-go i.b { bottom: -3px; }

/* ================================================================ the login page: a box with soft 45° corners, its edge a soft gradient, the beam of the menu on top */
main.lw { position: relative; width: 380px; max-width: calc(100vw - 32px); padding: 1px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  background: linear-gradient(160deg, rgba(125, 255, 74, .35), rgba(216, 229, 228, .06) 35%, rgba(216, 229, 228, .04) 65%, rgba(110, 230, 215, .30));
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
.lcard { position: relative; padding: 30px 32px 26px; background: linear-gradient(180deg, #141f24, #111b1f);
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); }
.lbeam { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(125, 255, 74, .9), transparent); }
.lbeam i { position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: #b6ff7a; box-shadow: 0 0 10px rgba(125, 255, 74, .85); }
.ltag { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.ldia { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, rgba(125, 255, 74, .22), rgba(110, 230, 215, .12)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ltag h1 { margin: 0; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: #e9f3ea; font-weight: 650; }
.ltag small { display: block; font-size: 11px; letter-spacing: .12em; color: #6f8689; text-transform: uppercase; margin-top: 2px; }
.lcard label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7f9598; margin-bottom: 12px; }
.lcard input[type=text], .lcard input[type=password] { width: 100%; margin-top: 6px; background: #0e181b; border: 0; border-radius: 2px; padding: 11px 12px; font-size: 15px; box-shadow: inset 0 0 0 1px #26383e; }
.lcard input:focus { outline: none; box-shadow: inset 0 0 0 1px #7dff4a, inset 3px 0 0 #7dff4a; }
.lgo { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding: 12px 16px 12px 18px; border: 0; border-radius: 0; cursor: pointer; color: #ffffff; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px;
  background: linear-gradient(135deg, #2f9e3a, #3c8f8a); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.lgo:hover { filter: brightness(1.12); }
.lgo i { width: 24px; height: 14px; background: #ffffff; opacity: .55; clip-path: polygon(0 0, 5px 0, 12px 50%, 5px 100%, 0 100%, 7px 50%, 0 0, 0 0, 12px 0, 17px 0, 24px 50%, 17px 100%, 12px 100%, 19px 50%, 12px 0); }
.lfoot { margin: 14px 0 0; font-size: 11px; color: #5d7477; }
.lwho { display: flex; align-items: center; gap: 8px; }

/* ================================================================ the member dashboard (dashboard.php): four numbers, the last games */
.md { max-width: 900px; }
.md-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.md-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
a.lgo.md-play { width: auto; margin: 0; gap: 18px; text-decoration: none; }
.md-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #26383e; border: 1px solid #26383e; margin-bottom: 28px; }
.md-stats div { background: #121c20; padding: 18px 20px; }
.md-stats div:first-child { box-shadow: inset 0 2px 0 rgba(125, 255, 74, .7); }
.md-stats b { display: block; font-size: 28px; font-weight: 600; color: #eaf6e6; }
.md-stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7f9598; }
.md-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #7f9598; font-weight: 600; margin: 0 0 8px; }
.md-g { display: grid; grid-template-columns: auto 90px 1fr auto 130px; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #1d2c30; font-size: 14px; }
.md-g i { width: 7px; height: 7px; transform: rotate(45deg); background: #5d7377; }
.md-g.win i { background: #7dff4a; box-shadow: 0 0 6px rgba(125, 255, 74, .6); }
.md-g .r { font-weight: 600; color: #97abad; } .md-g.win .r { color: #b6ff7a; }
.md-g .m { color: #c9d6d5; } .md-g .d, .md-g .w { color: #7f9598; text-align: right; }
@media (max-width: 700px) { .md-stats { grid-template-columns: repeat(2, 1fr); } .md-g { grid-template-columns: auto 70px 1fr auto; } .md-g .w { display: none; } .md-head { flex-wrap: wrap; } }

/* the Updates button: at the end of the menu, after a separator, a block of its own in the corner (never sent to More) */
.nb-sep { flex: 0 0 auto; align-self: center; width: 1px; height: 26px; margin: 0 12px 0 8px; background: linear-gradient(180deg, transparent, rgba(212, 239, 106, .45), transparent); position: relative; }
.nb-sep::after { content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; transform: rotate(45deg); background: rgba(212, 239, 106, .7); }
a.nb-upd { flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin: 8px 6px 8px 0; padding: 0 16px 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #1a1f0c;
  background: linear-gradient(180deg, #f0e07a, #d9c24e); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); transition: filter .15s; }
a.nb-upd:hover { text-decoration: none; filter: brightness(1.08); }
a.nb-upd.on { background: linear-gradient(180deg, #fff2a0, #f0d860); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }

/* My account: in the corner with your name (a small angled tab joined to the name chip) */
.nb .me-chip { display: inline-flex; align-items: stretch; border-radius: 20px 4px 4px 20px; background: rgba(125, 255, 74, .06); border: 1px solid rgba(125, 255, 74, .14); }
.nb .nb-who .me-chip .me-link { border: 0; background: none; border-radius: 20px 0 0 20px; padding: 3px 10px 3px 3px; }
.nb .nb-who a.me-acc { display: flex; align-items: center; padding: 0 12px 0 16px; margin: -1px -1px -1px 0; font-size: 12px; letter-spacing: .04em; color: #cfe3c9; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, rgba(125, 255, 74, .14), rgba(125, 255, 74, .06)); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.nb .nb-who a.me-acc:hover { color: #f4fbd2; text-decoration: none; background: linear-gradient(180deg, rgba(125, 255, 74, .22), rgba(125, 255, 74, .10)); }
.nb .nb-who a.me-acc.on { color: #0c1518; background: linear-gradient(180deg, #b6ff7a, #7dff4a); }

/* build viewer: its own plain buttons (the site's framed, slanted buttons left out here: small flat keys, normal text) */
.bv .bv-btn { all: unset !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 28px !important; padding: 0 11px !important; background: #1b252b !important; border: 1px solid #3c4c55 !important; border-radius: 3px !important;
  color: #dde6ea !important; font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
  cursor: pointer !important; white-space: nowrap !important; user-select: none !important; clip-path: none !important; box-shadow: none !important; }
.bv .bv-btn::before, .bv .bv-btn::after { content: none !important; display: none !important; }
.bv .bv-btn:hover { background: #24323a !important; border-color: #5b707c !important; color: #ffffff !important; }
.bv .bv-btn:active { background: #172026 !important; }
.bv .bv-btn:focus-visible { outline: 2px solid #6fa8d8 !important; outline-offset: 1px !important; }
.bv .bv-btn.on { background: #2c5a85 !important; border-color: #4f8fc4 !important; color: #ffffff !important; }
.bv .bv-btn.bv-go { background: #23472f !important; border-color: #3e7a52 !important; }
.bv .bv-btn.bv-go:hover { background: #2b5a3b !important; border-color: #57a06f !important; }
.bv .bv-btn.bv-warn { color: #f3a5a5 !important; border-color: #6b3d3d !important; }
.bv .bv-btn.bv-warn:hover { background: #3a2222 !important; }
.bv .bv-row { display: flex; gap: 6px; align-items: center; }
.bv .bv-sel { height: 28px !important; padding: 0 8px !important; margin: 0 !important; font: 13px system-ui, sans-serif !important; background: #131b20 !important; color: #dde6ea !important; border: 1px solid #3c4c55 !important; border-radius: 3px !important; }
.bv .bv-row .bv-sel, .bv .bv-acts .bv-sel { flex: 1; min-width: 0; }
.bv .bv-in input { height: 28px; }
/* the build viewer's side: boxed by kind */
.bv .bv-side { padding: 8px !important; max-height: calc(100vh - 140px); overflow: auto; }
.bv .bv-box { background: #0f171b; border: 1px solid #24323a; border-radius: 6px; padding: 8px 10px 9px; margin: 0 0 8px; }
.bv .bv-box:last-child { margin-bottom: 0; }
.bv .bv-bh { font: 600 11px system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #8fb3c7; margin: 0 0 7px; padding: 0 0 5px; border-bottom: 1px solid #1e2b32; }
.bv .bv-bh .small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bv .bv-gap { margin-top: 6px; }
.bv .bv-box .bv-acts + .bv-acts, .bv .bv-box .bv-row + .bv-acts, .bv .bv-box .bv-acts + .bv-row { margin-top: 6px; }
.bv .bv-lab { font-size: 12px; color: #8a9aa3; min-width: 62px; }
.bv .bv-txt { flex: 1; min-width: 0; height: 28px; padding: 0 8px; margin: 0; font: 12px ui-monospace, monospace; background: #131b20; color: #dce6ea; border: 1px solid #33434c; border-radius: 4px; box-sizing: border-box; }
.bv .bv-note { margin-top: 5px; line-height: 1.35; }
.bv .bv-dbg { margin: 7px 0 0; max-height: 240px; overflow: auto; padding: 6px 8px; background: #071014; border: 1px solid #1f3a33; border-radius: 4px; color: #9fe8dc; font: 11px/1.4 ui-monospace, monospace; white-space: pre; }
.bv .bv-log { height: 160px; }

/* ================================================================ member pages (dashboard.php, messages.php): the old deviantArt layout in Ignyte's colours.
   Small rounded boxes, thin title bars with a 24 px picture first, dense insides; comments in the lobby chat's box */
.pf { max-width: 1100px; }
.pf-top { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.pf-top .avatar.big { width: 56px; height: 56px; font-size: 19px; box-shadow: 0 0 0 2px #0e171b, 0 0 0 3px rgba(125, 255, 74, .35); }
.pf-top h1 { margin: 0; font-size: 20px; }
.pf-top .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pf-top .sub .on { color: #b6ff7a; }
.pf-top .acts { margin-left: auto; display: flex; gap: 8px; }
.pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; padding-top: 4px; align-items: start; }
.pf-body > div { min-width: 0; }
.pf .mpanel { border-radius: 6px; margin: 0 0 12px; }
.pf .mp-head { min-height: 0; padding: 3px 10px 3px 6px; gap: 6px; background: linear-gradient(180deg, rgba(125, 255, 74, .07), rgba(90, 140, 150, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.pf .mp-head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 5px; line-height: 24px; }
.pf .mp-head h2 .emo { margin: 0; vertical-align: middle; }
.pf .mp-head .r { margin-left: auto; font-size: 11px; }
.pf .mp-head .muted.small { font-size: 11px; }
.pf .mp-pad { padding: 8px 10px; }
.pf .pf-none { margin: 2px 0; }
/* the stats: one thin bar */
.pf .md-stats { grid-template-columns: repeat(4, 1fr); margin: 0; border: 0; }
.pf .md-stats div { padding: 6px 10px; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pf .md-stats b { font-size: 16px; display: inline; white-space: nowrap; }
.pf .md-stats span { font-size: 10px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the last game */
.pf-lg { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.pf-map { height: 72px; border: 1px solid var(--line); border-radius: 2px; background: linear-gradient(135deg, #253321, #18221c 55%, #2b2a1c); position: relative; overflow: hidden; }
.pf-map::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(30deg, rgba(125, 255, 74, .05) 0 1px, transparent 1px 14px), repeating-linear-gradient(-30deg, rgba(125, 255, 74, .05) 0 1px, transparent 1px 14px); }
.pf-res { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #b6ff7a; display: flex; align-items: center; gap: 8px; }
.pf-res i { width: 7px; height: 7px; transform: rotate(45deg); background: #7dff4a; box-shadow: 0 0 6px rgba(125, 255, 74, .6); }
.pf-res.loss, .pf-res.other { color: #97abad; } .pf-res.loss i, .pf-res.other i { background: #5d7377; box-shadow: none; }
.pf-lg h3 { margin: 2px 0 1px; font-size: 14px; font-weight: 600; }
.pf-lg .m { color: var(--muted); font-size: 12px; }
.pf .md-list { margin: 8px -10px -8px; border-top: 1px solid var(--line); }
.pf .md-g { padding: 6px 10px; font-size: 12px; grid-template-columns: auto 70px 1fr auto 110px; }
.pf .md-g:last-child { border-bottom: 0; }
/* the profile picture and the description */
.pf-idpic { position: relative; aspect-ratio: 1 / 1; background: #101517 repeating-linear-gradient(45deg, rgba(125, 255, 74, .03) 0 10px, transparent 10px 20px); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.pf-idpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-idpic .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #5d7477; font-size: 12px; line-height: 1.6; }
.pf-desc { margin: 8px 0 0; white-space: pre-wrap; word-wrap: break-word; font-size: 13px; }
.pf-form { margin: 10px 0 0; }
.pf-form textarea, .pf-form input[type=text] { width: 100%; }
.pf-form textarea { min-height: 76px; resize: vertical; }
.pf-form label.check { margin: -4px 0 10px; }
.pf-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pf-bar .sp { flex: 1; }
.pf-form .emo-pick { display: inline-block; margin-top: 6px; } .pf-form .emo-pop { left: 0; right: auto; }
/* the comments: the lobby chat's box */
.pf-chat .chat { border: 0; border-radius: 0; background: transparent; padding: 6px 10px 8px; }
.pf-chat .chatlog { height: 280px; font-size: 13px; }
.pf-chat .chatlog .line { position: relative; padding: 2px 22px 2px 0; line-height: 22px; }
.pf-chat .chatlog .line .avatar.sm { vertical-align: middle; margin: 0 5px 0 2px; }
.pf-chat .pf-del { position: absolute; right: 0; top: 4px; margin: 0; }
.pf .chat .row { flex-wrap: nowrap; margin: 6px 0 0; } .pf .chat .row input[type=text] { flex: 1; min-width: 0; }
.pf .chat .row input[type=text], .pf .chat .emo-edit { font-size: 13px; padding: 5px 8px !important; }
.pf .chat-more { margin: 0 0 6px; font-size: 10px; padding: 3px 10px; }
/* the small close / delete crosses: plain text, none of the site's framed buttons */
.pf-ok .x, .pf-del .x { all: unset !important; box-sizing: border-box !important; cursor: pointer !important; padding: 0 4px !important; font: 16px/1 system-ui, sans-serif !important; color: #8bb37a !important; }
.pf-ok .x::before, .pf-ok .x::after, .pf-del .x::before, .pf-del .x::after { content: none !important; display: none !important; }
.pf-ok .x { margin-left: auto !important; } .pf-ok .x:hover { color: #ffffff !important; }
.pf-del .x { color: var(--muted) !important; opacity: 0 !important; }
.pf-chat .chatlog .line:hover .pf-del .x, .pf-del .x:focus-visible { opacity: .7 !important; }
.pf-del .x:hover { opacity: 1 !important; color: var(--bad) !important; }
/* the success box: its icon first, the text, a close */
.pf-ok { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 6px; margin: 0 0 10px; border: 1px solid #3c6420; border-radius: 6px; background: linear-gradient(90deg, rgba(125, 255, 74, .10), rgba(125, 255, 74, .03)); color: #cfeeb8; font-size: 13px; }
.pf-ok b { color: #b6ff7a; font-weight: 600; }
.pf .msg { font-size: 13px; padding: 6px 10px; margin-bottom: 10px; }
/* messages: folders | conversations | the open one */
.pf-nt { display: grid; grid-template-columns: 160px 300px minmax(0, 1fr); min-height: 520px; padding: 0; flex-direction: row; }
.pf-nt > div { min-width: 0; }
.nt-f { border-right: 1px solid var(--line); padding: 10px 0; background: rgba(0, 0, 0, .12); }
.nt-f .btn { display: block; margin: 0 10px 10px; text-align: center; white-space: nowrap; padding-left: 10px; padding-right: 14px; font-size: 12px; }
.nt-f a.f { display: flex; justify-content: space-between; padding: 5px 12px; font-size: 13px; color: var(--muted); border-left: 2px solid transparent; }
.nt-f a.f:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .03); }
.nt-f a.f.on { color: var(--text); border-left-color: #7dff4a; background: var(--panel2); font-weight: 600; }
.nt-f a.f .n { color: #d4ef6a; font-weight: 700; }
.nt-l { border-right: 1px solid var(--line); overflow: auto; max-height: 640px; }
.nt-l .mp-head { position: sticky; top: 0; z-index: 1; background-color: var(--panel); }
.nt-l .pf-none { padding: 10px; }
a.nt-i { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--text); }
a.nt-i:hover { background: rgba(255, 255, 255, .03); text-decoration: none; }
a.nt-i.on { background: var(--panel2); box-shadow: inset 2px 0 0 #7dff4a; }
.nt-i .avatar { width: 34px; height: 34px; font-size: 12px; }
.nt-i > span:not(.avatar) { display: block; min-width: 0; }
.nt-i .w { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.nt-i .w .name { font-weight: 600; font-size: 13px; }
.nt-i .s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b9c4c2; font-size: 13px; }
.nt-i.unread .s { color: var(--text); font-weight: 600; }
.nt-i.unread .w .name::before { content: ""; display: inline-block; width: 6px; height: 6px; transform: rotate(45deg); background: #d4ef6a; margin-right: 7px; vertical-align: 2px; }
.nt-r { padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.nt-r h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; word-wrap: break-word; }
.nt-r .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nt-r .meta .nt-arch { margin-left: auto; } .nt-r .meta .nt-arch button { font-size: 12px; }
.nt-empty { align-items: center; justify-content: center; }
.nt-thread { flex: 1; overflow: auto; padding: 4px 0; max-height: 420px; }
.nt-m { padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .04); } .nt-m:last-child { border-bottom: 0; }
.nt-m .mh { font-size: 12px; color: var(--muted); margin-bottom: 3px; } .nt-m .mh .name { font-weight: 600; font-size: 13px; }
.nt-m.me { padding-left: 24px; }
.nt-m .mt { white-space: pre-wrap; word-wrap: break-word; }
.pf-reply { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0 0; }
.pf-reply .row { margin: 0 !important; }
.pf-new label { margin-bottom: 10px; }
/* the member pages' pictures (24 px, pixel art like the emotes): content/img/ui */
.ico { display: inline-block; width: 24px; height: 24px; flex: none; background: no-repeat; image-rendering: pixelated; vertical-align: middle; }
.ico-id { background-image: url(../img/ui/profile.png); }
.ico-cm { background-image: url(../img/ui/comments.png); }
.ico-env { background-image: url(../img/ui/envelope.png); }
.ico-env0 { background-image: url(../img/ui/envelope_off.png); }
.ico-ok { background-image: url(../img/ui/ok.png); }
/* the unread count: pixel digits beside the envelope (in the header, the Messages title) */
.cnt { display: inline-flex; vertical-align: middle; margin: 0 6px 0 1px; }
.cnt i { display: block; width: 12px; height: 16px; margin-right: -2px; background: url(../img/ui/digits.png) no-repeat; background-size: 132px 16px; image-rendering: pixelated; }
.cnt .d0 { background-position: 0 0; } .cnt .d1 { background-position: -12px 0; } .cnt .d2 { background-position: -24px 0; } .cnt .d3 { background-position: -36px 0; }
.cnt .d4 { background-position: -48px 0; } .cnt .d5 { background-position: -60px 0; } .cnt .d6 { background-position: -72px 0; } .cnt .d7 { background-position: -84px 0; }
.cnt .d8 { background-position: -96px 0; } .cnt .d9 { background-position: -108px 0; } .cnt .dp { background-position: -120px 0; }
a.nb-msg { display: inline-flex; align-items: center; gap: 3px; }
.nb-tabs a.nb-msg .cnt { margin: 0 5px 0 0; }
.nb-who a.nb-msg .cnt, .cb a.nb-msg .cnt { margin: 0 0 0 1px; }
.pf-mh { display: flex; align-items: center; gap: 4px; }
.pf-mh .cnt { margin: 0 10px 0 0; }
@media (max-width: 900px) { .pf-body { grid-template-columns: 1fr; } .pf .md-stats { grid-template-columns: repeat(2, 1fr); } .pf-nt { grid-template-columns: 1fr; }
  .nt-f { display: flex; flex-wrap: wrap; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px; } .nt-f .btn { margin: 0 8px 0 0; }
  .nt-l { border: 0; border-bottom: 1px solid var(--line); max-height: 260px; } .pf-lg { grid-template-columns: 1fr; } .pf .md-g { grid-template-columns: auto 60px 1fr auto; } .pf .md-g .w { display: none; } }
/* the members (members.php): online now first (small pictures), then every member in a list */
.mb-dot { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: none; }
.mb-dot::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: #7dff4a; box-shadow: 0 0 6px rgba(125, 255, 74, .7); }
.mb-on { display: flex; flex-wrap: wrap; gap: 6px; }
a.mb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; background: rgba(125, 255, 74, .04); }
a.mb-chip:hover { text-decoration: none; border-color: #4f6a45; background: rgba(125, 255, 74, .09); }
a.mb-chip.inv { opacity: .55; border-style: dashed; }
.mb-tools { display: flex; align-items: center; gap: 8px; }
.mb-tools input[type=search] { padding: 3px 8px; font-size: 12px; width: 170px; }
.mb-f { display: inline-flex; gap: 2px; }
.mb-f button { all: unset !important; cursor: pointer !important; font: 11px/1.4 system-ui, sans-serif !important; padding: 3px 8px !important; border-radius: 4px !important; color: var(--muted) !important; }
.mb-f button::before, .mb-f button::after { content: none !important; display: none !important; }
.mb-f button:hover { color: var(--text) !important; background: rgba(255, 255, 255, .04) !important; }
.mb-f button.on { color: #0c1518 !important; background: #b6ff7a !important; font-weight: 600 !important; }
.mb-list { max-height: 640px; overflow: auto; }
a.mb-row { display: grid; grid-template-columns: 30px minmax(120px, 1fr) minmax(0, 1fr) 90px 110px; align-items: center; gap: 12px; padding: 5px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 13px; color: var(--text); }
a.mb-row:hover { text-decoration: none; background: rgba(125, 255, 74, .04); }
a.mb-row[hidden] { display: none; }
.mb-row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-row .mb-r, .mb-row .mb-g, .mb-row .mb-w { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-row .mb-g, .mb-row .mb-w { text-align: right; }
.mb-row .on, .pf-top .sub .on { color: #b6ff7a; }
.pf-top .sub .inv { color: #8b9696; font-style: italic; }
.mb-none { padding: 10px; }
/* the dashboard's share link */
.pf-share { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .15); min-width: 0; }
.pf-share input[type=text] { width: 270px; max-width: 40vw; padding: 3px 6px; border: 0; background: transparent; font: 12px ui-monospace, Consolas, monospace; color: #d4ef6a; }
.pf-share button { font-size: 11px; padding: 4px 10px; }
/* My account: the profile (profile picture, description, status) */
.acc-prof { margin-bottom: 16px; }
.acc-prof-f { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-prof-f .emo-pick { display: inline-block; margin: -6px 0 12px; } .acc-prof-f .emo-pop { left: 0; right: auto; }
@media (max-width: 700px) { a.mb-row { grid-template-columns: 30px minmax(0, 1fr) auto; } .mb-row .mb-r, .mb-row .mb-w { display: none; } .acc-prof-f { grid-template-columns: 1fr; } .pf-top { flex-wrap: wrap; } .pf-share { margin-left: 0; width: 100%; } .pf-share input[type=text] { flex: 1; max-width: none; } }
.acc-prof .mp-head h2 { display: flex; align-items: center; gap: 5px; }
.tag.b-ph { background: #2a3034; color: #aab4b6; border: 1px dashed #5d6b6e; }
.mb-row.ph, a.mb-chip.ph { opacity: .6; } .mb-row.ph .name::after, a.mb-chip.ph .name::after { content: " placehold"; font-size: 10px; font-weight: 400; letter-spacing: .08em; color: #8b9696; }
/* My account > Profile: the cropper (a picture over 600 px) */
.pf-crop { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; flex-wrap: wrap; }
.pf-crop canvas { width: 300px; height: 300px; max-width: 100%; border: 1px solid var(--line); border-radius: 2px; cursor: grab; touch-action: none; background: #161b1d; box-shadow: 0 0 0 1px rgba(125, 255, 74, .25); }
.pf-crop canvas:active { cursor: grabbing; }
.pf-crop-c { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pf-crop-c label { width: 100%; margin: 0; } .pf-crop-c input[type=range] { width: 100%; accent-color: #7dff4a; }
.btn.pf-pm { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; } .btn.pf-pm .ico { margin: -4px 0; }
.acc-status { margin-bottom: 16px; }
.acc-status-f { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.acc-status-f label { margin: 0; min-width: 220px; }
.mb-dot.off::before { background: #5d6b6e; box-shadow: none; }
.acc-descr { margin-bottom: 16px; } .acc-descr textarea { width: 100%; min-height: 110px; resize: vertical; }
.acc-descr .emo-pick { display: inline-block; margin: 6px 0 10px; } .acc-descr .emo-pop { left: 0; right: auto; }
.acc-descr .mp-head h2, .acc-status .mp-head h2 { display: flex; align-items: center; gap: 5px; }
/* the footer (every page): the site's name, the legal notice */
.ig-foot { display: flex; justify-content: center; gap: 14px; padding: 18px 16px 22px; font-size: 12px; color: #5d7477; }
.ig-foot a { color: #8b9696; } .ig-foot a:hover { color: #c8f28a; }
body.ingame .ig-foot, body.gfs .ig-foot { display: none; }
/* the legal notice (legal.php) */
.legal { max-width: 760px; }
.legal section { margin: 0 0 12px; }
.legal .mp-pad p, .legal .mp-pad li { font-size: 14px; line-height: 1.6; color: #c9d3d1; }
.legal .mp-pad ul { margin: 6px 0 10px; padding-left: 20px; }
.legal .mp-pad p:first-child { margin-top: 0; } .legal .mp-pad p:last-child { margin-bottom: 0; }
.legal code { font: 12px ui-monospace, Consolas, monospace; color: #d4ef6a; }
.acc-data { margin-bottom: 16px; } .acc-data-f textarea { width: 100%; resize: vertical; } .acc-data-f select { max-width: 360px; }
/* Admin > Invitations */
.inv-new { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .inv-new label { margin: 0; min-width: 200px; } .inv-new label:first-of-type { flex: 1; }
.inv-list .inv-link { display: inline-flex; gap: 6px; align-items: center; } .inv-list .inv-link input { width: 300px; font: 12px ui-monospace, Consolas, monospace; color: #d4ef6a; padding: 3px 6px; }
.inv-list tr.inv-fresh td { background: rgba(125, 255, 74, .07); }
.tag.inv-pending { background: #2c3a1c; color: #c8f28a; } .tag.inv-joined { background: #1c3a2c; color: #7dff4a; } .tag.inv-expired, .tag.inv-revoked { background: #2a3034; color: #8b9696; }
/* the invitation page (invite.php) */
.lcard label.inv-legal { text-transform: none; letter-spacing: 0; }
.lcard .inv-hi { font-size: 14.5px; line-height: 1.75; } .lcard .inv-hi .emo { vertical-align: -6px; }
.lcard .inv-legal { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); } .lcard .inv-legal input { width: auto; margin: 3px 0 0; }
.pf-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-map.pic::after { content: none; }
.pf-map span { position: absolute; left: 6px; right: 6px; bottom: 4px; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #eaf6e6; text-shadow: 0 1px 2px #000000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf .md-g { grid-template-columns: auto 70px 1fr auto 110px; }
.pf-lg h3 .pf-gname { color: #d4ef6a; }

/* ================================================================ the game menu (0.8.328, Edenwreck: lobby.php with data-gm): the stage under the header (content/js/gmenu.js),
   the game's title and a HUD menu; Solo game, Multiplayer (the lobby), the game room over the stage, dimmed; the path in the header and in a HUD nav */
.gm-stage { position: fixed; left: 0; right: 0; top: 52px; bottom: 0; z-index: 0; overflow: hidden; background: #06090d; }
.gm-stage > div { position: absolute; inset: 0; pointer-events: none; }
/* the picture with its glows (the light's, the title's) and dark edges: painted once */
.gm-bg { background: radial-gradient(ellipse 60% 70% at 62% 0%, rgba(64, 99, 128, .32), transparent 70%), radial-gradient(ellipse 40% 45% at 50% 24%, rgba(48, 88, 160, .2), transparent 70%),
  radial-gradient(ellipse 75% 75% at 50% 50%, transparent 45%, rgba(3, 6, 10, .78) 100%), #06090d url(../img/games/edenwreck/bg.webp) center / cover no-repeat; animation: gmFade .9s ease-out both; }
/* the god rays: two pictures made once (gmenu.js), laid over each other, still */
.gm-rays { animation: gmFade 1.2s .2s ease-out both; }
.gm-ray { position: absolute; left: 0; top: 0; width: 100%; height: 86%; background: center / 100% 100% no-repeat; opacity: .62; }
/* the dust: a dozen dots rising slowly */
.gm-dust i { position: absolute; bottom: -4px; width: 3px; height: 3px; border-radius: 50%; background: rgba(175, 204, 255, .55); box-shadow: 0 0 4px rgba(175, 204, 255, .5); will-change: transform, opacity; opacity: 0; }
/* behind a page: darker, the rays fainter, everything still */
.gm-shade { background: rgba(5, 9, 14, .5); opacity: 0; }      /* (darker at once: a full-screen fade is what a browser drawing without the graphics card finds heavy) */
.gm-stage.dim .gm-shade { opacity: 1; } .gm-stage.dim .gm-rays { opacity: .5; }
.gm-title { position: relative; display: flex; justify-content: center; }
.gm-lglow { position: absolute; left: -12%; right: -12%; top: -30%; bottom: -30%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(100, 160, 255, .32), rgba(100, 165, 255, .12) 45%, transparent 70%); will-change: opacity; }

.gm-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2vh; padding: 0 16px 16vh; pointer-events: none; }
.gm-ui > * { pointer-events: auto; }
.gm-logo { width: min(560px, 78vw); filter: drop-shadow(0 0 18px rgba(90, 170, 255, .35)) drop-shadow(0 0 2px rgba(180, 230, 255, .6)); position: relative; animation: gmLogoIn .9s .3s cubic-bezier(.2, .8, .2, 1) both; user-select: none; -webkit-user-drag: none; }
@keyframes gmFade { from { opacity: 0; } }
@keyframes gmLogoIn { from { opacity: 0; transform: scale(.96); } }
.gm-menu { display: flex; flex-direction: column; gap: 12px; width: min(360px, 86vw); margin-top: 1vh; }
/* a menu button: chamfered HUD plate, index, label, note; hover: the label glows and spreads, brackets open, a scan passes */
.gm-btn { --c: #9fe7ff; --g: rgba(110, 200, 255, .35); position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; height: 58px; padding: 0 18px 0 14px; color: #e6f4ff; text-decoration: none; cursor: pointer; isolation: isolate; outline: none;
  font: 700 15px/1 system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; background: none; border: 0; text-align: left; opacity: 0; transform: translateX(-24px); animation: gmIn .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.gm-btn:nth-child(1) { animation-delay: 1s; } .gm-btn:nth-child(2) { animation-delay: 1.1s; } .gm-btn:nth-child(3) { animation-delay: 1.2s; } .gm-btn:nth-child(4) { animation-delay: 1.3s; }
@keyframes gmIn { to { opacity: 1; transform: none; } }
.gm-btn::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: linear-gradient(90deg, rgba(20, 34, 60, .78), rgba(14, 25, 36, .55)); box-shadow: inset 0 0 0 1px rgba(150, 210, 255, .18); transition: background .2s; }
.gm-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: linear-gradient(100deg, transparent 30%, rgba(160, 230, 255, .22) 50%, transparent 70%) no-repeat; background-size: 220% 100%; background-position: 160% 0; }
.gm-btn .gm-i { font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: rgba(159, 231, 255, .55); }
.gm-btn .gm-l { position: relative; display: block; }
.gm-btn .gm-l span { display: block; transition: letter-spacing .25s, color .25s, text-shadow .25s; }
.gm-btn:hover .gm-l .t, .gm-btn:focus-visible .gm-l .t { color: var(--c); letter-spacing: .38em; text-shadow: 0 0 12px var(--g); }
.gm-btn.off:hover .gm-l .t { color: inherit; letter-spacing: inherit; text-shadow: none; }
.gm-btn.off:hover::after { animation: none; } .gm-btn.off:hover .gm-k, .gm-btn.off:hover .gm-bar { opacity: 0; }
.gm-btn .gm-n { font: 600 10px/1 system-ui, sans-serif; letter-spacing: .2em; color: rgba(170, 210, 255, .5); }
.gm-btn .gm-k { position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--c); opacity: .0; transition: transform .25s, opacity .25s; }
.gm-btn .gm-k.a { left: -6px; top: -6px; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.gm-btn .gm-k.b { right: -6px; bottom: -6px; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.gm-btn .gm-bar { position: absolute; left: 0; top: 14px; bottom: 0; width: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); transform: scaleY(.25); transform-origin: top; opacity: .55; transition: transform .25s, opacity .25s; }
.gm-btn:hover::before, .gm-btn:focus-visible::before { background: linear-gradient(90deg, rgba(30, 60, 100, .85), rgba(18, 34, 56, .65)); box-shadow: inset 0 0 0 1px rgba(159, 231, 255, .55), 0 0 24px var(--g); }
.gm-btn:hover::after, .gm-btn:focus-visible::after { animation: gmScan .7s ease-out; }
@keyframes gmScan { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.gm-btn:hover .gm-k, .gm-btn:focus-visible .gm-k { opacity: 1; transform: none; }
.gm-btn:hover .gm-bar, .gm-btn:focus-visible .gm-bar { transform: none; opacity: 1; }
.gm-btn:hover, .gm-btn * { text-decoration: none !important; }
.gm-btn:active { transform: translateY(1px) scale(.995); }
/* not open yet: dimmed, "coming soon" */
.gm-btn.off { color: rgba(200, 220, 240, .4); cursor: default; --c: #8b9aa8; --g: rgba(140, 150, 170, .15); }
.gm-btn.off .gm-n { color: #d4ef6a; opacity: .8; }
.gm-btn.pick::before { background: rgba(159, 231, 255, .35); }
@media (max-width: 760px) { .gm-btn { height: 52px; letter-spacing: .24em; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .gm-logo, .gm-stage *, .gm-btn, .gm-btn * { animation: none !important; } .gm-dust { display: none; } .gm-btn { opacity: 1; transform: none; } }
body.gm-page main#lobby { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 60px 16px 40px; background: none; box-shadow: none; border-radius: 0; }
body.gm-page main#lobby::before, body.gm-page main#lobby::after { display: none; }
body.gm-page .ig-foot { position: relative; z-index: 1; }
body.gm-page.ingame .gm-stage, body.gm-page.gm-menu-on .ig-foot { display: none; }
body.gm-page.gm-menu-on { overflow: hidden; }
body.gm-page #lobby :is(.mpanel, .gtable, .card, .chat, .lobby-online .players) { background: rgba(10, 16, 24, .8) !important; }      /* (no backdrop blur: it would be redone every frame over the moving stage) */
body.gm-page #lobby .grow, body.gm-page #lobby .grow.ghead { background: transparent; } body.gm-page #lobby .grow.running { background: rgba(255, 255, 255, .02); }
body.gm-page #lobby #createForm { margin-bottom: 14px; }
body.gm-page #lobby .lobby-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
body.gm-page #lobby .lobby-grid:not(:has(#hpPick:not([hidden]))) { grid-template-columns: 1fr; }
@media (max-width: 900px) { body.gm-page #lobby .lobby-grid { grid-template-columns: 1fr; } }
body.gm-page #lobby.vin { animation: gmFade .14s ease-out both; }      /* menu <-> a page: a short fade, nothing moved (0.8.334) */
.gm-ui.vin { animation: gmFade .14s ease-out both; }
.gm-ui.back .gm-btn { animation-duration: .22s; }
.gm-wait { margin: 18px 0; }
.gm-ui.back .gm-logo { animation: none; }
.gm-ui.back .gm-btn:nth-child(1) { animation-delay: 0s; } .gm-ui.back .gm-btn:nth-child(2) { animation-delay: .03s; } .gm-ui.back .gm-btn:nth-child(3) { animation-delay: .06s; } .gm-ui.back .gm-btn:nth-child(4) { animation-delay: .09s; }
/* Solo game: the room alone (your game against the AI): no games list, no lobby chat, no Ready to tick (it follows your hero), no All games / Leave */
#lobby.gm-solo :is(#roomList, #createForm, .lobby-chat, #matchBanner, #toLobby, #leaveBtn) { display: none !important; }
#lobby.gm-solo #slots .tick { visibility: hidden; }

/* the game menu's debug panel (0.8.331, administrators): the button, the panel, and the switches that turn a part off */
.gmd-btn { all: unset !important; position: fixed !important; right: 12px !important; bottom: 12px !important; z-index: 90 !important; padding: 5px 10px !important; font: 600 11px/1 ui-monospace, Consolas, monospace !important; color: #ffd84d !important; background: rgba(20, 16, 6, .85) !important; border: 1px solid rgba(255, 216, 77, .5) !important; border-radius: 4px !important; cursor: pointer !important; }
.gmd { position: fixed; right: 12px; bottom: 44px; z-index: 91; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 120px); overflow: auto; padding: 10px 12px; background: rgba(10, 13, 20, .96); border: 1px solid rgba(255, 216, 77, .45); border-radius: 8px; font-size: 12px; }
.gmd-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: #ffd84d; } .gmd-x { cursor: pointer; font-size: 18px; padding: 0 4px; }
.gmd-live { margin: 0 0 8px; padding: 6px 8px; background: #070a0e; border-radius: 4px; font: 11px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; color: #ccffee; }
.gmd-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin-bottom: 8px; } .gmd-sw label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; } .gmd-sw input { width: auto; margin: 0; }
.gmd-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.gmd-out { width: 100%; height: 120px; font: 10px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
body.gmd-norays .gm-rays, body.gmd-nodust .gm-dust, body.gmd-noglow .gm-lglow, body.gmd-nobeams .nb-ind, body.gmd-nostage .gm-stage { display: none !important; }
body.gmd-nobg .gm-bg { background: #06090d !important; }
body.gmd-nobtn .gm-btn { animation: none !important; opacity: 1 !important; transform: none !important; } body.gmd-nobtn .gm-btn::after { animation: none !important; }
body.gmd-nofilter .gm-logo { filter: none !important; }

/* the legal notice: the community's text in a dashed block; Contact us (contact.php) */
.legal .lg-rate { border: 1px dashed #d4ef6a; border-radius: 4px; margin: 10px; padding: 10px 14px; }
.ct-wrap { max-width: 760px; }
.ct-f { display: flex; flex-direction: column; gap: 12px; } .ct-f [hidden] { display: none; }
.ct-note { font-size: 12.5px; margin: 0; }
/* Admin > Day registry: what members sent from Contact us and Report (its Reports tab, a count beside the day) */
.dr-days a .dr-rep { display: inline-block; font-style: normal; min-width: 16px; padding: 0 4px; line-height: 15px; border-radius: 9px; background: rgba(255, 106, 90, .22); color: #ff9a8a; font-size: 11px; font-weight: 700; text-align: center; }
.dr-tabs button.rep b, .dr-card.rep .big { color: #ff9a8a; }
.tag.cr-report { background: #3a1c1c; color: #ff9a8a; } .tag.cr-bug { background: #3a2f17; color: #f2d48a; } .tag.cr-question, .tag.cr-idea, .tag.cr-other { background: #1c2c3a; color: #8ac8f2; }
.dr-reps tr.cr-done td { opacity: .5; } .dr-reps .cr-acts { margin-top: 4px; display: flex; gap: 8px; align-items: center; } .dr-reps .cr-body { white-space: normal; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- quick Play of Edenwreck (beta testers: ew_quick_html): in the band and on the dashboard */
.ewq { display: inline-flex; align-items: stretch; text-decoration: none !important; color: inherit; position: relative; }
.ewq .ewq-pic { position: relative; overflow: hidden; background: #080d14 url("../img/games/edenwreck/bg.webp") center 42% / cover no-repeat; border: 1px solid rgba(139, 176, 255, .45); border-right: 0; }
.ewq .ewq-pic::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, rgba(8, 13, 20, 0) 30%, rgba(8, 13, 20, .7)); }
.ewq .ewq-pic::after { content: ""; position: absolute; inset: 0; background: url("../img/games/edenwreck/logo.webp") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(120, 190, 255, .45)); transition: transform .15s, filter .15s; }
.ewq .ewq-go { display: flex; align-items: center; gap: 7px; font: 700 13px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase;
  color: #12161f; background: linear-gradient(180deg, #d6f77a, var(--lime, #b8f53c)); transition: filter .15s; }
.ewq .ewq-go i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ewq:hover .ewq-pic::after { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(140, 210, 255, .8)); }
.ewq:hover .ewq-go { filter: brightness(1.12); }
.ewq:hover .ewq-pic { border-color: var(--violet-l, #8bb0ff); }
.nb .ewq-bar { align-self: center; height: 32px; margin-left: 10px; flex: none; }
.nb .ewq-bar .ewq-pic { width: 126px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }
.nb .ewq-bar .ewq-pic::after { inset: 1px 4px; }
.nb .ewq-bar .ewq-go { padding: 0 16px 0 10px; font-size: 12px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.pf-top .ewq-dash { margin-left: auto; height: 56px; flex: none; }
.ewq-dash .ewq-pic { flex: none; width: 214px; clip-path: polygon(var(--cut, 9px) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut, 9px)); }
.ewq-dash .ewq-pic::after { inset: 7px 14px; }
.ewq-dash .ewq-go { padding: 0 24px 0 16px; font-size: 15px; letter-spacing: 2.5px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); }
.ewq-dash .ewq-go i { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.ewq-dash .ewq-two { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ewq-dash .ewq-two small { font-size: 10px; letter-spacing: 2px; opacity: .72; }
.ewq-dash .ewq-two > span { display: flex; align-items: center; gap: 7px; }
@media (max-width: 760px) { .nb .ewq-bar { display: none; } .pf-top .ewq-dash { margin-left: 0; width: 100%; } .ewq-dash .ewq-pic { flex: 1; width: auto; } }

/* ---------------------------------------------------------------- no picture yet: the painter emote (avatar_html / lobby.js .noav; dashboard and account .emo-empty) */
.avatar.noav { background: #222d45 url("../img/emotes/painter_face.png") 30% 60% / 92% no-repeat !important; image-rendering: pixelated; color: transparent !important; font-size: 0 !important; text-indent: -99px; overflow: hidden; }
.pf-idpic.emo-empty { background: url("../img/emotes/logo_dots.svg") 0 0 / 72px 72px, #141d2a; }
.pf-idpic.emo-empty .ph.emo-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #828ea6; }
.pf-idpic.emo-empty .ph.emo-ph i { width: 86px; height: 48px; background: url("../img/emotes/painter.png") center / contain no-repeat; image-rendering: pixelated; }
.pf-idpic.emo-empty .ph.emo-ph span { background: rgba(18, 22, 31, .75); padding: 3px 9px; border-radius: 3px; }

/* ---------------------------------------------------------------- the beta tester badge after a name (beta_badge / prof_name) */
.bt-badge { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 3px 6px 2px; border-radius: 3px; font: 700 9px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
  color: #e2ebff; background: rgba(77, 130, 255, .28); box-shadow: inset 0 0 0 1px rgba(139, 176, 255, .55); text-decoration: none; }
h1 .bt-badge { font-size: 11px; margin-left: 9px; padding: 4px 8px 3px; }

/* ---------------------------------------------------------------- Admin > Users: the login lock (login_lock_state) */
.tag.lk-tag { color: #ff8a8a; border-color: #6a2a2a; background: #2a1216; font-weight: 600; letter-spacing: .5px; text-decoration: none; }
a.tag.lk-tag:hover { color: #ffffff; border-color: #aa3333; }
.card.lk-card.lk-on { border-color: #6a2a2a; box-shadow: inset 3px 0 0 #e25555; }
.card.lk-card p { margin: 6px 0 10px; }

/* ---------------------------------------------------------------- the games' bar (play_header): the site's pages, then the green bubble of the game */
.nb .nb-menu > .nb-tabs { flex: 0 1 auto; min-width: 0; }
.nb .nb-gb { align-self: center; flex: none; display: inline-flex; align-items: stretch; height: 32px; margin-left: 12px; border: 1px solid rgba(125, 255, 74, .40); border-radius: 7px; background: rgba(125, 255, 74, .06); box-shadow: inset 0 0 12px rgba(125, 255, 74, .05); overflow: hidden; }
.nb .nb-gb [hidden] { display: none !important; }
.nb .nb-gb .gb-t { display: flex; align-items: center; padding: 0 10px 0 11px; font: 600 12px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #b6ff7a; border-right: 1px solid rgba(125, 255, 74, .24); background: rgba(125, 255, 74, .08); white-space: nowrap; }
.nb .nb-gb .gb-tabs { display: flex; align-items: stretch; }
.nb .nb-gb .gb-tabs a { display: flex; align-items: center; padding: 0 12px; color: #d4dbea; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.nb .nb-gb .gb-tabs a:hover { background: rgba(125, 255, 74, .12); color: #ffffff; }
.nb .nb-gb .gb-tabs a.on { color: #12161f; background: linear-gradient(180deg, #b6ff7a, #7dff4a); font-weight: 600; }
.nb .nb-gb .gb-tabs a + a { border-left: 1px solid rgba(125, 255, 74, .16); }
.nb .nb-gb .gb-in { display: none; }
body.ingame .nb .nb-gb .gb-in { display: flex; }
body.ingame .nb .nb-gb .gb-tabs a:not(#tabGame) { display: none; }      /* (during a match: Game, then the match) */
.nb .nb-gb .gb-m { align-items: center; gap: 7px; padding: 0 9px; font-size: 12px; color: #cfe8c4; border-left: 1px solid rgba(125, 255, 74, .16); white-space: nowrap; max-width: 320px; }
.nb .nb-gb .gb-m .gc-match { color: #ffffff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.nb .nb-gb .gb-m .gc-time { min-width: 0; color: #b6ff7a; font-variant-numeric: tabular-nums; }
.nb .nb-gb .gb-m .gc-time:empty, .nb .nb-gb .gb-m .gc-team:empty { display: none; }
.nb .nb-gb .gb-b { align-self: stretch; align-items: center; padding: 0 10px !important; border: 0 !important; border-left: 1px solid rgba(125, 255, 74, .16) !important; border-radius: 0 !important; font: 600 11px/1 "Chakra Petch", system-ui, sans-serif !important; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; clip-path: none !important; box-shadow: none !important; min-width: 0 !important; height: auto !important; }
.nb .nb-gb .gb-b::before { display: none !important; }
.nb .nb-gb .gb-ab { background: rgba(226, 85, 85, .14) !important; color: #ff9a9a !important; }
.nb .nb-gb .gb-ab:hover { background: rgba(226, 85, 85, .3) !important; color: #ffffff !important; }
.nb .nb-gb .gb-adm { background: rgba(242, 194, 48, .1) !important; color: #f2c230 !important; }
.nb .nb-gb .gb-adm:hover { background: rgba(242, 194, 48, .22) !important; }
@media (max-width: 860px) { .nb .nb-gb .gb-t, .nb .nb-gb .gc-team { display: none !important; } }

/* ---------------------------------------------------------------- Messages: Archived is silenced (0.8.420) */
.nt-f a.f .n-quiet { color: var(--muted); font-size: 11px; font-weight: 400; opacity: .85; }
.nt-silent { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- reading areas (0.8.421): blue-violet, balanced, dark. Title boxes a step darker than
   the text, the text areas, comment bubbles a step lighter, quotes darker; one quiet line colour. The member pages (body.lobby) and the forum (forum.css) */
:root { --rd: #1c232a; --rd2: #252e36; --rd-line: #313c46; --rd-q: #171b20; --rd-text: #e7edf1; --rd-mute: #a6b3bb; --rd-dim: #85939c; --rd-side: #151b1f;
        --rd-h1: #1a2127; --rd-h2: #161b20; --rd-hline: #33404b; --rd-edge: #8ba5c0; }
body.lobby .mpanel { border-color: var(--rd-line); }
body.lobby .mpanel > .mp-head, body.lobby .pf .mpanel > .mp-head { background: linear-gradient(180deg, var(--rd-h1), var(--rd-h2)); border-bottom: 1px solid var(--rd-hline); box-shadow: none; color: #e9eff3; }
body.lobby .mpanel > .mp-head .muted { color: #9eacb6; }
body.lobby .pf .mpanel .mp-pad { background: var(--rd); color: var(--rd-text); }
body.lobby .pf .md-stats { background: var(--rd-line); }
body.lobby .pf .md-stats div { background: var(--rd); }
body.lobby .pf .md-stats b { color: var(--rd-text); } body.lobby .pf .md-stats span { color: var(--rd-dim); }
body.lobby .pf-idpic:not(.emo-empty) { background-color: var(--rd-q); }
body.lobby .chatlog { background: var(--rd); border: 1px solid var(--rd-line); border-radius: 8px; padding: 6px 10px 8px; color: var(--rd-text); }
body.lobby .chatlog .line.info { color: var(--rd-mute); }
body.lobby .pf-chat .chat { background: transparent; }
body.lobby .nt-thread { background: var(--rd); border: 1px solid var(--rd-line); border-radius: 8px; padding: 4px 12px; }
body.lobby .nt-m { border-bottom-color: var(--rd-line); color: var(--rd-text); }
body.lobby .nt-m .mh { color: var(--rd-dim); }

/* ---------------------------------------------------------------- (0.8.423) the reading tone woven in: one surface per panel (no box in a box), the fields,
   the emote buttons and the small buttons in the same family. body.admin.lobby: above aurora's own panel rule (same pages) */
body.admin.lobby .mpanel { background: var(--rd); border-color: var(--rd-line); border-radius: 12px; overflow: hidden; }
body.admin.lobby .pf .mpanel .mp-pad { background: transparent; }
body.admin.lobby .pf .md-stats { background: var(--rd-line); gap: 1px; }
body.admin.lobby .pf .md-stats div, body.admin.lobby .md-stats div { background: var(--rd); }
body.admin.lobby .chat, body.admin.lobby .lobby-chat .chat { background: var(--rd); border: 1px solid var(--rd-line); border-radius: 12px; padding: 8px 12px 10px; }
body.admin.lobby .pf-chat .chat { border: 0; border-radius: 0 0 11px 11px; }
body.admin.lobby .chatlog { background: transparent; border: 0; border-radius: 0; padding: 4px 2px 8px; }
body.admin.lobby .chat .row { border-top: 1px solid var(--rd-line); padding-top: 10px; margin-top: 2px; }
body.admin.lobby .chat input[type=text], body.admin.lobby .chat .emo-edit { background: var(--rd-q) !important; border: 1px solid var(--rd-line) !important; color: var(--rd-text); border-radius: 9px !important; }
body.admin.lobby .chat .emo-btn { background: var(--rd2) !important; border: 1px solid var(--rd-line) !important; border-radius: 9px !important; }
body.admin.lobby .chat-more { background: transparent !important; color: var(--rd-mute) !important; border: 0 !important; clip-path: none !important; box-shadow: none !important; padding: 2px 4px !important; font-size: 11px !important; letter-spacing: 1px; }
body.admin.lobby .chat-more::before { display: none !important; }
body.admin.lobby .chat-more:hover { color: #ffffff !important; }
body.admin.lobby .pf-idpic.emo-empty { background: url("../img/emotes/logo_dots.svg") 0 0 / 72px 72px, var(--rd-q); border: 1px solid var(--rd-line); border-radius: 10px; }
body.admin.lobby .pf-idpic.emo-empty .ph.emo-ph span { background: rgba(20, 25, 30, .8); }
body.admin.lobby .lobby-online .players { background: var(--rd); border: 1px solid var(--rd-line); border-radius: 12px; }
body.admin.lobby .nt-thread { background: transparent; border: 0; padding: 4px 2px; }
body.admin.lobby .pf-nt .nt-l, body.admin.lobby .pf-nt .nt-f { border-color: var(--rd-line); }

/* ---------------------------------------------------------------- maintenance (0.8.424): the admin's panel and strip, the page everyone else sees */
.mt-box.mpanel { margin: 0 0 16px; }
.mt-box .mt-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mt-box.on { border-color: #6b4a14; box-shadow: inset 4px 0 0 #f2a43a; }
.mt-box.on .mp-head { background: linear-gradient(180deg, #2b2010, #21180c); border-bottom-color: #5a3e12; }
.tag.mt-on { background: #3a2608; border-color: #8a5a14; color: #ffc46a; font-weight: 700; letter-spacing: 1px; }
.mt-strip { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px 12px; background: repeating-linear-gradient(135deg, #2a1d08 0 14px, #251a07 14px 28px); border-bottom: 1px solid #6b4a14; color: #ffc46a; font: 600 12px/1.2 "Chakra Petch", system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.mt-strip a { color: #ffffff; text-transform: none; letter-spacing: 0; font-weight: 400; text-decoration: underline; }
body.maint { min-height: 100vh; }
.mt-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.mt-card { max-width: 420px; width: 100%; text-align: center; padding: 34px 30px 22px; border-radius: 14px; background: #1c232a; border: 1px solid #313c46; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.mt-card h1 { margin: 0 0 12px; font-size: 22px; letter-spacing: 1px; }
.mt-card .mt-soon { margin: 0 0 18px; font-size: 18px; color: #e7edf1; }
.mt-card .mt-adm { font-size: 11px; color: #6f7e87; }

/* ---------------------------------------------------------------- suspended members (0.8.427): Admin > Users, the notice, the boxes hidden (the site refuses them too) */
.tag.su-tag { color: #ffb070; border-color: #6a3d14; background: #2a1a0b; font-weight: 600; letter-spacing: .5px; }
.su-f { margin: 0; } .su-cb { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.su-cb input { width: 16px; height: 16px; accent-color: #f29a3a; margin: 0; }
.su-wrap { max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.su-note { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: #251a10; border: 1px solid #5a3a16; color: #ffcf99; font-size: 13.5px; }
.su-note b { color: #ffb070; letter-spacing: 1px; font: 700 11px/1 "Chakra Petch", system-ui, sans-serif; text-transform: uppercase; flex: none; }
body.susp .fm .p-reply, body.susp .fm .p-compose, body.susp .fm .cin, body.susp .fm .f-acts, body.susp .pf-chat form.row, body.susp .pf-reply, body.susp .pf-new, body.susp .nt-f > a.btn, body.susp #createForm, body.susp #chatForm, body.susp #gChatForm { display: none !important; }
/* 0.8.433: Admin > Lobby monitor > Game state: a game in progress opened / folded in the list, its minimap and players */
.gs-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(49, 60, 70,.6); cursor: pointer; flex-wrap: wrap; }
.gs-row:hover { background: rgba(139, 165, 192,.06); } .gs-row .gs-who { flex: 1; text-align: right; }
.gs-live { font: 700 11px system-ui; color: #66ff66; letter-spacing: .06em; } .gs-live:before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #66ff66; margin-right: 6px; box-shadow: 0 0 8px #66ff66; }
.gs-none { padding: 14px; }
.mon-tabs { margin: 4px 0 14px; }
.gvfold { display: inline-block; width: 14px; color: #8ba5c0; transform: rotate(-90deg); transition: transform .15s; flex: none; }
.gs-row.open .gvfold { transform: none; }
.gvbody { padding: 10px 12px 14px; border-bottom: 1px solid rgba(49, 60, 70,.55); }
.gv-off { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gvbody .gv[hidden] { display: none; }
.gv-tw { overflow-x: auto; }
/* (0.8.550) the game state, compact: the mode and clock, the minimap (named HQs, heroes, mineral fields, nests), a row a player: nothing that scrolls */
.gs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 8px; flex-wrap: wrap; }
.gs-mode { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .gs-m { background: rgba(255, 216, 77,.12); color: var(--accent2); } .gs-x { background: rgba(47, 230, 210,.12); color: #7cefe0; } .gs-x[hidden] { display: none; }
.gs-clock { display: flex; align-items: baseline; gap: 6px; } .gs-clock b { font-size: 20px; font-variant-numeric: tabular-nums; } .gs-clock button { margin-left: 10px; align-self: center; }
.gv2 { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.gv2 canvas { width: 100%; height: auto; display: block; background: #07090a; border-radius: 10px; border: 1px solid var(--line); }
.gs-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.gs-legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.lg-b { width: 8px; height: 8px; background: #b3a48c; } .lg-hq { width: 11px; height: 11px; background: #b3a48c; outline: 1px solid #000000; } .lg-u { width: 4px; height: 4px; background: #b3a48c; } .lg-r { width: 3px; height: 9px; }
.lg-h { font-style: normal; color: #ffffff; font-size: 12px; } .lg-n { width: 6px; height: 6px; background: #6fe7ff; transform: rotate(45deg); } .lg-x { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #2fe6d2; }
.gs-players { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gs-side { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 3px 2px 0; } .gs-side.x { color: #7cefe0; }
.gp { display: grid; grid-template-columns: 150px 66px 128px minmax(0, 1fr) 104px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); padding: 5px 10px; }
.gp.out { opacity: .45; }
.gp-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .gp-who small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pl, .rv-pl { display: inline-flex; align-items: center; gap: 7px; min-width: 0; } .gs-pl i, .rv-pl i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0,.6); }
.gs-pl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-pl small { color: var(--muted); font-size: 11.5px; }
.gp-st { font-size: 11px; color: var(--muted); line-height: 1.35; text-align: right; white-space: nowrap; } .gp-st b { color: var(--text); font-variant-numeric: tabular-nums; } .gp-st small { color: var(--muted); }
.r4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.r4 i { font-style: normal; padding-left: 7px; position: relative; } .r4 i::before { content: ''; position: absolute; left: 0; top: 4px; width: 3px; height: 9px; border-radius: 1px; }
.r4 .g::before { background: #ffd84d; } .r4 .m::before { background: #6fe7ff; } .r4 .t::before { background: #c08a50; } .r4 .f::before { background: #8fd060; }
.tier { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; justify-self: start; }
.tier.t1 { color: #e6d6bd; } .tier.t2 { color: var(--accent2); } .tier.t3 { color: #ffb347; background: rgba(240, 144, 42,.12); } .tier.wv { color: #7cefe0; border-color: rgba(47, 230, 210,.4); font-weight: 600; }
.gp .chips, .rv-chips { display: flex; flex-wrap: wrap; gap: 3px; } .gp .chips span, .rv-chips span { padding: 0 6px; font-size: 11px; line-height: 1.6; border-radius: 5px; background: rgba(255, 255, 255,.06); }
.gp .chips span b { color: var(--accent2); } .gp .chips span.civ { opacity: .7; } .rv-chips span { font-size: 12px; padding: 1px 8px; }
@media (max-width: 1100px) { .gv2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .gp { grid-template-columns: 1fr 1fr; } }
/* (0.8.550) the game report, on the page: Start, End of game, Chronology, Minimap replay */
.rv[hidden] { display: none; }
.rv-in { padding: 14px 16px 18px; }      /* (0.8.553: a view of the page, as the Log viewer) */
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-title { display: flex; flex-direction: column; gap: 3px; } .rv-title h2 { margin: 0; font-size: 18px; } .rv-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-win { color: var(--good, #b8f53c); }
.rv-tabs { margin-bottom: 12px; }
.rv-p[hidden] { display: none; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; } .rv-wide { grid-column: 1 / -1; }
.rv-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); padding: 10px 14px; } .rv-card h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.rv-game { display: flex; gap: 14px; align-items: flex-start; } .rv-game .rv-kv { flex: 1; min-width: 0; }
.rv-mini { flex: 0 0 190px; margin: 0; text-align: center; } .rv-mini img { width: 100%; height: auto; display: block; background: #07090a; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 4px; }
.rv-kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0; font-size: 13px; } .rv-kv dt { color: var(--muted); } .rv-kv dd { margin: 0; }
.rv-sub { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.rv-res { display: flex; flex-wrap: wrap; gap: 6px; } .rv-res span { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 7px; background: rgba(0, 0, 0,.2); font-size: 11.5px; color: var(--muted); }
.rv-res b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 13px; }
.rv-res .g { box-shadow: inset 2px 0 #ffd84d; } .rv-res .m { box-shadow: inset 2px 0 #6fe7ff; } .rv-res .t { box-shadow: inset 2px 0 #c08a50; } .rv-res .f { box-shadow: inset 2px 0 #8fd060; } .rv-res .e { box-shadow: inset 2px 0 #8c9eff; }
.rv-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.rv-t { margin: 0; } table.rv-t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } table.rv-t th { vertical-align: bottom; } table.rv-end th { text-align: right; }
table.rv-t tr:nth-child(even) td { background: rgba(255, 255, 255,.015); }
/* the chronology, in the Ignyte style: a cut-corner glass frame, Chakra Petch capitals, chevron keys, a gold hairline */
.rv-tlf { --c: 14px; position: relative; padding: 1px; background: linear-gradient(135deg, rgba(255, 210, 110,.75), rgba(240, 144, 42,.25) 30%, rgba(255, 210, 110,.12) 70%, rgba(255, 216, 77,.6));
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.rv-tlf > * { position: relative; }
.rv-tlt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px 9px 22px; background: linear-gradient(180deg, #2a1f12, #17110a);
  clip-path: polygon(calc(var(--c) - 1px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--c) - 1px)); border-bottom: 1px solid rgba(255, 210, 110,.22); }
.rv-tlt .ttl { font: 700 15px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #ffd84d; text-shadow: 0 0 14px rgba(255, 216, 77,.35); }
.rv-tlt .sub { font: 600 11.5px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rv-mk { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.rv-mk > span { --t: 7px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 12px; font: 700 11.5px/1.2 "Chakra Petch", system-ui, sans-serif; letter-spacing: .06em;
  background: rgba(255, 255, 255,.06); clip-path: polygon(var(--t) 0, calc(100% - var(--t)) 0, 100% 50%, calc(100% - var(--t)) 100%, var(--t) 100%, 0 50%); color: #f1e9dc; }
.rv-mk em { font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--muted); }
.rv-mk .k-t, .rv-mk .k-n { color: #ffd84d; } .rv-mk .k-d { color: #efe6d6; } .rv-mk .k-b { color: #ff6a50; } .rv-mk .k-w { color: #2fe6d2; } .rv-mk .k-a i { width: 18px; height: 8px; background: linear-gradient(180deg, rgba(255, 255, 255,.15), rgba(255, 255, 255,.45)); }
.rv-tlw { position: relative; padding: 8px 8px 6px; background: radial-gradient(circle at 1px 1px, rgba(255, 210, 110,.07) 1px, transparent 1.3px) 0 0 / 7px 7px,
  radial-gradient(ellipse at 70% 0%, rgba(240, 144, 42,.10), transparent 60%), linear-gradient(180deg, #120d07, #0a0705);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, 0 100%); }
.rv-tlw canvas { width: 100%; height: auto; display: block; }
.rv-tip { --c: 9px; position: absolute; z-index: 3; min-width: 230px; padding: 9px 12px 8px; font-size: 12px; pointer-events: none; background: linear-gradient(180deg, rgba(36, 26, 14,.97), rgba(14, 10, 6,.97));
  box-shadow: inset 0 2px 0 rgba(255, 216, 77,.8); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.rv-tip[hidden] { display: none; }
.rv-tip > b { display: block; font: 700 14px/1 "Chakra Petch", system-ui, sans-serif; letter-spacing: .14em; color: #ffd84d; margin-bottom: 6px; }
.rv-tip div { display: flex; align-items: center; gap: 7px; line-height: 1.55; } .rv-tip div i { width: 9px; height: 9px; transform: rotate(45deg); }
.rv-tip div span { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; } .rv-tip small { color: var(--muted); font-weight: 400; }
.rv-tip .ev { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 210, 110,.2); color: #ffd84d; font-size: 11.5px; }
/* the minimap replay: Generate, then the player */
.rv-gen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; background: rgba(0, 0, 0,.18); }
.rv-gen > div:first-child { display: flex; flex-direction: column; gap: 4px; } .rv-run { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .rv-run[hidden] { display: none; }
.rv-bar { flex: 1; min-width: 200px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255,.06); overflow: hidden; } .rv-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0902a, #ffd84d); box-shadow: 0 0 10px rgba(255, 216, 77,.6); }
.rv-fr { flex-basis: 100%; } .rv-genf { width: 240px; height: 135px; border: 1px solid var(--line); border-radius: 6px; opacity: .5; pointer-events: none; display: block; }
.rv-rpl { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rv-rpl canvas { width: 100%; height: auto; display: block; background: #07090a; border-radius: 10px; border: 1px solid var(--line); }
.rv-rs { display: flex; flex-direction: column; gap: 10px; } .rv-time b { font-size: 24px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.rv-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .rv-sp { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rv-sp button { border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 4px 11px; font-size: 12px; cursor: pointer; } .rv-sp button.on { background: rgba(255, 216, 77,.15); color: #ffd84d; }
.rv-rpl .rv-map { cursor: default; }
.rv-tlx { grid-column: 1 / -1; position: relative; height: 62px; padding-top: 18px; cursor: ew-resize; touch-action: none; user-select: none; }
.rv-tlx canvas { width: 100%; height: 44px; display: block; background: rgba(0, 0, 0,.25); border: 1px solid var(--line); border-radius: 6px; }
.rv-ph { position: absolute; top: 14px; bottom: 0; width: 2px; margin-left: -1px; background: #ffd84d; box-shadow: 0 0 8px rgba(255, 216, 77,.8); pointer-events: none; }
.rv-ph::before { content: ''; position: absolute; top: -4px; left: -5px; border: 6px solid transparent; border-top-color: #ffd84d; }
.rv-ev { position: absolute; left: 0; right: 0; top: 0; height: 16px; pointer-events: none; } .rv-ev span { position: absolute; transform: translateX(-50%); font-size: 12px; line-height: 16px; pointer-events: auto; }
.rv-ev .e-wave { color: #2fe6d2; } .rv-ev .e-nuke { color: #ffd84d; } .rv-ev .e-battle { color: #ff6a50; } .rv-ev .e-dead { color: #efe6d6; }
.rv-bars { display: flex; flex-direction: column; gap: 4px; } .rv-br { display: grid; grid-template-columns: 12px 110px 1fr 38px; align-items: center; gap: 7px; font-size: 12.5px; }
.rv-br i { width: 10px; height: 10px; border-radius: 2px; } .rv-br .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-br .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255,.06); overflow: hidden; } .rv-br .bar b { display: block; height: 100%; } .rv-br .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .rv-rpl, .rv-grid { grid-template-columns: 1fr; } .rv-game { flex-direction: column; } }
/* 0.8.437: the game room's options in four coloured boxes: Match, Rules, Resources, AI */
.opts.og-wrap { display: flex; flex-direction: column; gap: 8px; }
.opts .og { background: #151c23; border: 1px solid color-mix(in srgb, var(--oc) 35%, #2a333d); border-radius: 10px; overflow: hidden; }
.opts .og-h { display: flex; align-items: center; gap: 8px; font: 800 11px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--oc); padding: 6px 12px; background: color-mix(in srgb, var(--oc) 14%, #151c23); border-bottom: 1px solid color-mix(in srgb, var(--oc) 30%, #2a333d); }
.opts .og-h::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--oc); box-shadow: 0 0 8px var(--oc); }
.opts .og-b { display: grid; grid-template-columns: 1fr 1fr; padding: 2px 0; }
.opts .og-b label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; white-space: nowrap; margin: 0; padding: 4px 12px; font-weight: 600; font-size: 13px; color: #e9eff3; }
.opts .og-b label[hidden] { display: none; }
.opts .og-b label.wide { grid-column: 1 / -1; }
.opts .og-b select { height: 28px; min-width: 0; margin: 0; font-size: 13.5px; color: #ffffff; background: #0e1318; border: 1px solid #3a4652; border-radius: 6px; padding: 0 10px; }
.opts .og-b select:focus { border-color: var(--oc); outline: none; }
.opts .og-b select:disabled { opacity: .75; }
.opts .og-match { --oc: #5ee08a; } .opts .og-rules { --oc: #93abff; } .opts .og-eco { --oc: #ffd04a; } .opts .og-ai { --oc: #36d6b4; }
body.admin.lobby .opts .og { background: #151c23; }

/* (0.8.447) Update in progress: the build's checker (Admin > Builds) and what players see */
.b-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; border: 1px solid rgba(255, 179, 71,.25); border-radius: 4px; background: rgba(255, 179, 71,.04); }
.b-hold .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; flex: 0 0 auto; }
.b-hold .chk input { width: auto; margin: 0; }
.b-hold.on { border-color: #ffb347; background: rgba(255, 179, 71,.12); }
.b-hold.on b { color: #ffb347; }
.upd-bar { position: relative; z-index: 30; background: repeating-linear-gradient(135deg, #3a2a08 0 12px, #2a1e06 12px 24px); color: #ffd27a; font: 700 12px/1 system-ui; letter-spacing: 1.5px; text-align: center; padding: 8px 12px; border-bottom: 1px solid #ffb347; }
.upd-hold { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.uh-box { max-width: 520px; width: 100%; text-align: center; padding: 34px 28px 28px; border: 1px solid rgba(255, 179, 71,.45); background: linear-gradient(180deg, rgba(40, 30, 10,.9), rgba(14, 12, 8,.92)); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.uh-box h1 { margin: 14px 0 8px; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; color: #ffb347; }
.uh-box p { margin: 6px 0; }
.uh-ico { display: inline-flex; gap: 6px; height: 34px; align-items: flex-end; }
.uh-ico span { width: 8px; background: #ffb347; animation: uhb 1s ease-in-out infinite; }
.uh-ico span:nth-child(2) { animation-delay: .15s; } .uh-ico span:nth-child(3) { animation-delay: .3s; }
@keyframes uhb { 0%, 100% { height: 10px; opacity: .5; } 50% { height: 34px; opacity: 1; } }
.uh-act { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* (0.8.447) the Games page: a build being updated, its card greyed */
.gamecard.gc-hold .gc-pic, .gamecard.gc-hold .gc-title { filter: grayscale(1) brightness(.5); }
.gamecard.gc-hold .gc-art { background-color: #15171a; }
.gamecard.gc-hold.locked { opacity: 1; }
.gamecard.gc-hold { position: relative; }
.gc-upd { position: absolute; left: 0; right: 0; top: 47%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 10px; background: rgba(10, 8, 4,.82); border-top: 1px solid #ffb347; border-bottom: 1px solid #ffb347; text-align: center; }
.gc-upd b { color: #ffb347; font-size: 15px; letter-spacing: 3px; }
.gc-upd small { color: #c9b48a; font-size: 12px; }
.gc-upd .uh-ico { height: 22px; } .gc-upd .uh-ico span { width: 6px; }

/* (0.8.447) the beta Play buttons while the build is being updated: greyed */
.ewq.ewq-hold { cursor: default; }
.ewq.ewq-hold .ewq-pic { filter: grayscale(1) brightness(.5); border-color: rgba(150, 150, 150,.35); }
.ewq.ewq-hold .ewq-go { background: #3a3d42 !important; color: #a3a8ad !important; filter: none !important; }
.ewq.ewq-hold:hover .ewq-pic::after { transform: none; }

/* (0.8.449) the update icon: an hourglass that turns */
.uh-ico { display: inline-block; width: 26px; height: 34px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23ffb347%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%202h18M3%2030h18%22/%3E%3Cpath%20d%3D%22M5%202c0%208%207%2010%207%2014S5%2022%205%2030M19%202c0%208-7%2010-7%2014s7%206%207%2014%22/%3E%3C/g%3E%3Cpath%20d%3D%22M8%208h8c-1%203-4%205-4%206.5C12%2013%209%2011%208%208z%22%20fill%3D%22%23ffb347%22/%3E%3Cpath%20d%3D%22M12%2019c0%202-5%205-5%209h10c0-4-5-7-5-9z%22%20fill%3D%22%23ffb347%22%20opacity%3D%22.85%22/%3E%3C/svg%3E") center / contain no-repeat; animation: uhg 2.4s ease-in-out infinite; }
.uh-ico span { display: none; }
.gc-upd .uh-ico { width: 18px; height: 24px; }
@keyframes uhg { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

/* (0.8.454) beta news */
/* beta news on the dashboard (beta testers): the last state of the game update */
.bn-box { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: start; margin: 0 0 16px; padding: 14px 18px 14px 16px; border: 1px solid rgba(139, 176, 255,.45); background: linear-gradient(100deg, rgba(28, 39, 70,.92), rgba(16, 22, 34,.92) 55%, rgba(16, 24, 18,.9)); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.bn-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #b8f53c, #8bb0ff); }
.bn-tag { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 2px; }
.bn-tag b { font: 700 11px/1 "Chakra Petch", system-ui; letter-spacing: 2px; color: #12161f; background: linear-gradient(180deg, #d6f77a, #b8f53c); padding: 4px 10px 4px 8px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.bn-tag span { font: 700 18px/1 "Chakra Petch", system-ui; color: #e3ecff; letter-spacing: 1px; }
.bn-tag small { color: #909cb8; font-size: 11px; }
.bn-box { scroll-margin-top: 80px; }
.bn-txt { color: #d4dbea; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow: visible; overflow-wrap: anywhere; padding-bottom: 2px; }      /* (0.8.566: the whole message, no scroll box) */
.bn-txt h3 { margin: 0 0 4px; font: 700 15px "Chakra Petch", system-ui; letter-spacing: 1px; color: #ffffff; }
.bn-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bn-new { font: 700 10px/1 system-ui; letter-spacing: 1.5px; color: #12161f; background: #ffb347; padding: 3px 7px; border-radius: 2px; }
.bn-act a { font-size: 13px; white-space: nowrap; }
/* (0.8.570) the beta news: reactions and comments (when allowed), under the message, the box's whole width */
.bn-talk { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(139, 176, 255, .2); }
.bn-r { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bn-re { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; margin: 0; border: 1px solid rgba(139, 176, 255, .28); border-radius: 15px; background: rgba(20, 28, 44, .7); color: #cfd8ea; font: 700 12px/1 system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.bn-re:hover { border-color: rgba(184, 245, 60, .6); background: rgba(184, 245, 60, .1); }
.bn-re.on { border-color: #b8f53c; background: rgba(184, 245, 60, .18); color: #e9ffc0; }
.bn-re.zero .emo { opacity: .7; } .bn-re.zero:hover .emo { opacity: 1; }
.bn-re b { font-weight: 700; }
.bn-cms { display: grid; gap: 8px; }
.bn-cms-h { font: 700 12px "Chakra Petch", system-ui; letter-spacing: 1.5px; text-transform: uppercase; color: #aebbd8; }
.bn-cm { display: flex; gap: 9px; align-items: flex-start; }
.bn-cm > div { flex: 1; min-width: 0; }
.bn-cm-h { display: flex; align-items: center; gap: 8px; font-size: 13px; } .bn-cm-h .muted { font-size: 11px; } .bn-cm-h .pf-del { margin-left: auto; }
.bn-cm-b { color: #d4dbea; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bn-cm-0 { font-size: 13px; }
.bn-cm-f { display: flex; gap: 8px; margin: 2px 0 0; } .bn-cm-f input[type=text] { flex: 1; }
@media (max-width: 720px) { .bn-box { grid-template-columns: 1fr; } .bn-tag { grid-row: auto; flex-direction: row; align-items: center; flex-wrap: wrap; } .bn-act { flex-direction: row; justify-content: space-between; align-items: center; } }
/* its editor (Admin > Workspace) */
.bn-edit { display: grid; gap: 10px; }
.bn-edit .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bn-edit input[type=text] { max-width: 220px; }
.bn-edit textarea { min-height: 110px; }
.bn-edit .muted { font-size: 12px; }
.bn-edit .chk { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.bn-edit .chk input { width: auto; margin: 0; }
.bn-edit label { display: grid; gap: 4px; }
.bn-edit label.chk { display: inline-flex; }
/* (0.8.513b) Admin > Builds, a build's page: one box of tabs; its Play modes */
.bx .bx-tabs { flex-wrap: wrap; }
.bx-tabs .bx-n { font-weight: 600; font-size: 11px; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #0e181b; border: 1px solid var(--line); color: var(--muted); }
.bx-p { min-height: 160px; }
.bx-det { max-width: 680px; }
.bx-fnote { margin: 0; padding-bottom: 0; }
.pm-intro { margin-top: 0; }
.pm-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pm-row:first-child { border-top: 0; }
.pm-name { display: flex; flex-direction: column; gap: 4px; }
.pm-name b { font-size: 15px; }
.pm-name .tag { align-self: flex-start; }
.pm-off { opacity: .5; }
.pm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pm-who .pm-full, .pm-pl, .pm-sum { width: 100%; }
.pm-who .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; width: auto; white-space: nowrap; color: var(--text); }
.pm-pl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; background: #0e181b; border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px 2px 10px; font-size: 13px; }
.pm-chip .pm-x { background: none; box-shadow: none; color: var(--muted); padding: 0 6px; border: 0; min-height: 0; }
.pm-chip .pm-x:hover { color: #ff8a80; }
.pm-pl .pm-add { width: 200px; padding: 5px 8px; font-size: 13px; margin: 0; }
.pm-sum { font-size: 12px; color: var(--muted); }
.pm-save { margin-top: 14px; }
@media (max-width: 700px) { .pm-row { grid-template-columns: 1fr; } }
/* (0.8.516) Solo game: its play mode, picked before its room */
.solo-mode { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 40px 0; }
.solo-mode button { min-width: 220px; padding: 26px 34px; font-size: 22px; font-weight: 700; letter-spacing: .5px; background: #0e181b; border: 1px solid var(--line); color: var(--text); box-shadow: none; border-radius: 8px; }
.solo-mode button:hover { border-color: var(--accent); background: #173022; }
.solo-mode button.last { border-color: #2f9e3a88; }
/* (0.8.572) admin > builds > details: the lobby options */
.b-lobopt .b-res { margin: 6px 0; } .b-lobopt .b-res td, .b-lobopt .b-res th { padding: 4px 8px; } .b-lobopt .b-res input[type=number] { width: 96px; }
