/* SGEN Village HUD theme.
   The interface borrows from the village's own street furniture: panels are the dark iron of the lamp posts,
   keys are lit like the lanterns on top of them, and the SGEN sign red marks the one main action in a panel.
   Loaded after the inline styles in index.html, so it sets the look of everything on screen. */
:root {
  --iron: #262b31;        /* panels, toolbar */
  --iron-2: #30363e;      /* controls on a panel */
  --iron-3: #3d454f;      /* hover, keycaps */
  --line: rgba(237, 234, 227, .11);
  --chalk: #edeae3;       /* text */
  --mute: #a2a9b0;        /* secondary text */
  --lantern: #f4bd45;     /* keys, selection, focus */
  --signal: #cf2b31;      /* SGEN red: the main action */
  --lawn: #6aa94c;        /* online, accept, on */
  --r-panel: 12px;
  --r-ctl: 7px;
  --shadow: 0 10px 28px rgba(12, 14, 18, .38);
  --font: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
}
body, button, input, select, textarea { font-family: var(--font); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }

/* ---- keycaps: lantern letters on iron caps */
kbd { display: inline-block; min-width: 1.35em; padding: 0 .35em; box-sizing: border-box; text-align: center; border-radius: 4px;
  background: var(--iron-3); color: var(--lantern); border: 1px solid rgba(0, 0, 0, .35); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3);
  font: 700 10.5px/1.6 var(--font); vertical-align: 1px; }

/* ---- controls legend (top left): title plate, H opens the key list */
#hud { background: var(--iron); color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow);
  padding: 10px 14px 11px; font-size: 12.5px; line-height: 1.45; max-width: min(380px, calc(100vw - var(--mini-w, 400px) - 60px)); }
#hud .hud-title { display: flex; align-items: baseline; gap: 10px; }
#hud .hud-title b { font-size: 15px; font-weight: 700; letter-spacing: .1px; }
#hud .hud-title span { color: var(--mute); font-size: 12px; }
#hud .keys { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 10px 0 0; }
#hud .keys dt { white-space: nowrap; }
#hud .keys dd { margin: 0; color: var(--mute); }
#hud .keys dd b { color: var(--chalk); font-weight: 600; }
#hud .keys kbd + kbd { margin-left: 2px; }
#hud.min .hud-full { display: none; }
#hud .hud-min { display: inline; }
#hud:not(.min) .hud-min { display: none; }

/* ---- the toolbar (bottom left): one bar, buttons grouped by what they act on */
#dock { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0; padding: 5px; pointer-events: auto;
  background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
#dock .dock-row { flex-wrap: nowrap; gap: 2px; padding: 0 4px; }
#dock .dock-row + .dock-row { border-left: 1px solid var(--line); }

#dock .dock-row > button { all: unset; box-sizing: border-box; position: relative !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 62px; max-width: 108px; height: 54px; padding: 6px 8px 5px; border-radius: 8px; cursor: pointer; color: var(--chalk);
  font: 600 11.5px/1.1 var(--font); text-align: center; }
#dock .dock-row > button:hover { background: var(--iron-2); }
#dock .dock-row > button:active { background: var(--iron-3); }
#dock .dock-row > button:focus-visible { outline: 2px solid var(--lantern); outline-offset: -2px; }
#dock .dock-row > button .ic { width: 22px; height: 22px; color: var(--chalk); }
#dock .dock-row > button .tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dock .dock-row > button kbd { position: absolute; top: 3px; right: 4px; font-size: 9.5px; line-height: 1.45; min-width: 1.4em; }
#dock .dock-row > button.open { background: var(--iron-2); box-shadow: inset 0 -2px 0 var(--lantern); }
#dock #houseBtn { max-width: 140px; }
#dock #ownerBtn .ic { color: var(--lantern); }

/* ---- panels that open above the toolbar, and the other floating panels */
.dock-panel, #villageEd, .nt-people, #callBar, #musicPlayer, .av-devs, .nt-banner {
  background: var(--iron) !important; color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); backdrop-filter: none; }
.dock-panel, #villageEd { padding: 14px; gap: 10px; font-size: 13px; }
.vp-h, .nt-ph { font: 700 15px var(--font); }
.vp-x, .nt-ph button, .mp-x, .gm-x, .bd-x, .cr-x { all: unset; box-sizing: border-box; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-ctl);
  color: var(--mute); cursor: pointer; font-size: 14px; }
.vp-x:hover, .nt-ph button:hover, .mp-x:hover, .gm-x:hover, .bd-x:hover, .cr-x:hover { background: var(--iron-2); color: var(--chalk); }
.vp-note, .sk-l small, .gm-small, .gm-help { color: var(--mute); }
.vp-stat { color: var(--mute); }
.vp-stat b { color: var(--chalk); }
.sk-l { font-weight: 600; color: var(--chalk); margin-top: 2px; }

/* buttons inside panels: one family; the red one is the main action, a lantern edge is "selected" */
.vp-add, .vp-del, .hb-itembtns button, .ex-row button, .ex-arch-toggle, .gm-row button, .gm-actions button, .sk-snd button, .nt-invite, .of-relayout, .nt-p button, .nt-row button, .cb-ok, .cb-no, #callBar button {
  background: var(--iron-2) !important; color: var(--chalk); border: 1px solid var(--line) !important; border-radius: var(--r-ctl); font: 600 12.5px var(--font); cursor: pointer; }
.vp-add:hover, .vp-del:hover, .hb-itembtns button:hover, .ex-row button:hover, .ex-arch-toggle:hover, .gm-row button:hover, .gm-actions button:hover, .sk-snd button:hover, .nt-invite:hover, .nt-p button:hover, .nt-row button:hover, #callBar button:hover { background: var(--iron-3) !important; }
.vp-add, .gm-actions .gm-primary, #callBar .cb-ok, .nt-go, .cr-foot .cr-primary { background: var(--signal) !important; border-color: transparent !important; color: #fff; }
.vp-add:hover, .gm-actions .gm-primary:hover, #callBar .cb-ok:hover, .nt-go:hover, .cr-foot .cr-primary:hover { filter: brightness(1.08); }
.gm-actions .gm-danger, #callBar .cb-no { color: #ffb4b0; }
.ex-row button.sel, .sk-snd button.sel { box-shadow: inset 0 0 0 2px var(--lantern); }
.vp-add:disabled, .vp-del:disabled { opacity: .45; cursor: default; }

/* the power list: name over what it does; the picked one has a lantern edge */
.pw-grid { gap: 4px; }
.pw-card { display: block; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--iron-2); border: 1px solid var(--line); color: var(--chalk); text-align: left; }
.pw-card b { display: block; font-size: 13px; font-weight: 700; }
.pw-card small { display: block; margin-top: 2px; color: var(--mute); font-size: 11.5px; }
.pw-card:hover { background: var(--iron-3); }
.pw-card.sel { background: var(--iron-2); border-color: var(--lantern); box-shadow: inset 3px 0 0 var(--lantern); }

/* segmented choices (weather, time of day) */
.sk-row { gap: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.sk-row button { border: 0; border-radius: 0; background: var(--iron-2); color: var(--chalk); padding: 8px 2px; font: 600 12px var(--font); }
.sk-row button + button { border-left: 1px solid var(--line); }
.sk-row button:hover:not(:disabled) { background: var(--iron-3); }
.sk-row button.sel { background: var(--iron-3); box-shadow: inset 0 -2px 0 var(--lantern); border-color: var(--line); }
.sk-snd input, .hb-angle input, .cr-slider input { accent-color: var(--lantern); }

/* text fields */
.of-text, .ex-nbody, .nt-search, .nt-in, .nt-status, .ex-row select, .av-devs select, .nt-name {
  background: var(--iron-2) !important; color: var(--chalk); border: 1px solid var(--line) !important; border-radius: var(--r-ctl); font-family: var(--font); }
.of-text:focus, .ex-nbody:focus, .nt-in:focus, .nt-name:focus { border-color: var(--lantern) !important; outline: none; }
.nt-tab { background: var(--iron-2); border-radius: var(--r-ctl); color: var(--chalk); }
.nt-tab.sel { background: var(--iron-3); box-shadow: inset 0 -2px 0 var(--lantern); }

/* ---- people, chat, toasts, banners */
.nt-chip { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow); font: 600 12.5px var(--font); }
.nt-p.turn, .gm-p.turn { background: rgba(244, 189, 69, .16); box-shadow: inset 3px 0 0 var(--lantern); }
.nt-line { background: rgba(38, 43, 49, .88); border-radius: var(--r-ctl); }
.nt-line.dm { background: rgba(38, 43, 49, .95); box-shadow: inset 3px 0 0 #b07ad6; }
.nt-scope { background: var(--iron) !important; }
.nt-scope.dm { box-shadow: inset 0 -2px 0 #b07ad6; }
.nt-emotes { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.nt-toast { background: var(--iron); color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow), inset 3px 0 0 var(--signal); font-weight: 600; }
.nt-banner button { background: var(--signal) !important; border-radius: var(--r-ctl); }
.nt-card { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-panel); }
.nt-title { color: var(--chalk); font: 700 20px var(--font); }
#hint { background: var(--iron); color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-ctl); font: 600 14px var(--font); box-shadow: var(--shadow); }

/* ---- calls, room music, greeters */
#callBar { padding: 10px 12px; font-size: 13px; }
#musicPlayer { padding: 10px; }
.mp-h { font-weight: 600; color: var(--mute); }
#greeterCard { background: var(--iron); color: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow), inset 3px 0 0 var(--lantern); padding: 12px 16px; }
#greeterCard b { color: var(--lantern); font-weight: 700; }

/* ---- voice / video bar */
.av-bar { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 5px; gap: 4px; }
.av-bar button { width: 38px; height: 34px; border-radius: 8px; background: var(--iron-2); color: var(--chalk); display: grid; place-items: center; }
.av-bar .ic { width: 19px; height: 19px; }
.av-bar button:hover { background: var(--iron-3); }
.av-bar button.on { background: rgba(106, 169, 76, .32); box-shadow: inset 0 -2px 0 var(--lawn); }
.av-bar button.off { background: rgba(207, 43, 49, .22); }
.av-tile { border-radius: var(--r-ctl); background: var(--iron); }
.av-tile.talk { border-color: var(--lawn); }
.av-sound button { background: var(--signal); border-radius: var(--r-ctl); }

/* ---- game and whiteboard windows */
.gm-card, .bd-card { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-panel); }
.gm-title { font: 700 18px var(--font); }
.gm-p { background: var(--iron-2); border-radius: var(--r-ctl); }
.gm-note { color: var(--lantern); }
.gm-h { font-weight: 700; }
.bd-tools button.sel { border-color: var(--lantern); }

/* ---- character creator, house builder, office editor (shared .cr-* panels) */
.cr-panel { background: var(--iron) !important; backdrop-filter: none; border: 1px solid var(--line); border-radius: var(--r-panel); color: var(--chalk); }
.cr-title { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--chalk); font: 700 19px var(--font); }
.cr-sub { color: var(--mute); }
.cr-tab { color: var(--mute); border-radius: var(--r-ctl); }
.cr-tab:hover { background: var(--iron-2); color: var(--chalk); }
.cr-tab.sel { background: var(--iron-2); color: var(--chalk); box-shadow: inset 0 -2px 0 var(--lantern); }
.cr-bt { background: var(--iron-2); border-color: var(--line); border-radius: var(--r-ctl); color: var(--chalk); }
.cr-bt-male.sel, .cr-bt-female.sel { background: var(--iron-3); border-color: var(--lantern); }
.cr-chip { background: var(--iron-2); border-color: var(--line); border-radius: var(--r-ctl); }
.cr-chip:hover { background: var(--iron-3); border-color: var(--line); }
.cr-chip.of-sel { background: var(--iron-3); border-color: var(--lantern); }
.cr-card { background: var(--iron-2); border-radius: var(--r-ctl); }
.cr-card:hover { border-color: var(--iron-3); }
.cr-card.sel { border-color: var(--lantern); box-shadow: none; }
.cr-check { background: var(--lantern); color: #262b31; }
.cr-sw button.sel { box-shadow: 0 0 0 2px var(--lantern); }
.cr-body h4 { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--chalk); font-weight: 700; }
.cr-foot button { background: var(--iron-2); border-radius: var(--r-ctl); }
.cr-foot button:hover { background: var(--iron-3); }
.cr-hint { background: var(--iron); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.of-layout { background: var(--iron-2); border-color: var(--line); border-radius: var(--r-ctl); }
.of-note { background: rgba(244, 189, 69, .12); color: var(--lantern); border-radius: var(--r-ctl); }
.of-note.hb-warn, .hb-toast { background: rgba(207, 43, 49, .18); color: #ffc0bc; border-radius: var(--r-ctl); }

@media (max-width: 720px) {
  #dock .dock-row > button { min-width: 52px; height: 50px; font-size: 10.5px; }
  #hud { max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- audit pass 1 ---- */
/* toolbar shortcuts: shown when you point at or tab to a button, not as badges on every corner */
#dock .dock-row > button kbd { opacity: 0; transition: opacity .12s; }
#dock .dock-row > button:hover kbd, #dock .dock-row > button:focus-visible kbd { opacity: 1; }
/* chat placeholder was near-invisible */
.nt-in::placeholder { color: var(--mute); opacity: 1; }
/* the name card never wider than the screen */
.nt-card { width: min(340px, calc(100vw - 32px)); box-sizing: border-box; }
/* touch screens: no keyboard hints */
@media (hover: none) and (pointer: coarse) {
  #hud .hud-min, #hud .hud-full, #dock .dock-row > button kbd { display: none !important; }
}
/* phones: small minimap, one swipeable toolbar row, chat above the toolbar */
@media (max-width: 720px) {
  #minimap:not(.big) { width: 120px !important; height: auto !important; right: 10px; top: 10px; }
  #hud { padding: 8px 12px; }
  #dock { left: 10px !important; right: 10px !important; max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #dock::-webkit-scrollbar { display: none; }
  .nt-chat { left: 10px; right: 10px !important; width: auto !important; bottom: 84px !important; }
  /* call controls: right edge above the chat bar instead of on top of the toolbar */
  .av-bar { left: auto !important; right: 10px; transform: none !important; bottom: 134px !important; }
  .av-strip { bottom: 186px !important; }
  /* a toolbar panel takes the bottom of the screen; the chat and call bar step aside instead of peeking out */
  body:has(#dock .dock-row > button.open) .nt-chat, body:has(#dock .dock-row > button.open) .av-bar { visibility: hidden; }
}

/* tablets / small laptops: the centred call controls would sit on the toolbar, so they move above the chat */
@media (min-width: 721px) and (max-width: 1180px) {
  .av-bar { left: auto !important; right: 14px; transform: none !important; bottom: 66px !important; }
}

/* the toolbar goes away with everything else while an editor or the character creator is open */
body.creating #dock, body.house-editing #dock, body.office-editing #dock { display: none !important; }

/* ---- lobby (lobby.js): sign in, organizations, villages, invites.
   One iron column on the left like a noticeboard by the gate; the live village stays visible on the right. */
#lobby { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 500px) 1fr; color: var(--chalk); font-size: 15px; line-height: 1.5; }
#lobby::after { content: ''; background: linear-gradient(90deg, rgba(20, 23, 27, .45), rgba(20, 23, 27, 0) 40%); }
#lobby .lb-wrap { background: var(--iron); overflow-y: auto; padding: 34px 36px 56px; box-sizing: border-box; box-shadow: 10px 0 40px rgba(10, 12, 15, .35); border-right: 1px solid var(--line); }
#lobby .lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* the street-name plate: SGEN red enamel with a cream inset rim */
#lobby .lb-sign { margin: 0; display: inline-block; padding: 9px 18px 11px; border-radius: 9px; background: var(--signal); color: #fff8ee;
  box-shadow: inset 0 0 0 3px var(--signal), inset 0 0 0 5px #f6ead8, 0 3px 0 #8f1d21; font: 800 25px/1 var(--font); letter-spacing: .01em; }
#lobby .lb-tag { margin: 14px 0 26px; color: var(--mute); }
#lobby h2 { margin: 0; font: 700 19px/1.25 var(--font); }
#lobby h3 { margin: 22px 0 10px; font: 700 14px var(--font); color: var(--chalk); }
#lobby .lb-user { display: flex; gap: 6px; }
#lobby .lb-ico-s { width: 16px; height: 16px; margin: -3px 6px 0 0; vertical-align: middle; }
#lobby .lb-card { padding: 22px 0; border-top: 1px solid var(--line); }
#lobby main > .lb-card:first-child, #lobby .lb-back + .lb-card { border-top: 0; padding-top: 4px; }
#lobby .lb-card > header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
#lobby .lb-role { font: 600 12.5px var(--font); color: var(--iron); background: var(--lantern); padding: 1px 8px; border-radius: 99px; }
#lobby .lb-count, #lobby small, #lobby .lb-hint, #lobby .lb-empty { color: var(--mute); }
#lobby .lb-hint { display: block; font-size: 13px; margin: 8px 0 0; }
#lobby button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 14px; border-radius: var(--r-ctl); background: var(--iron-3); color: var(--chalk); font: 600 14px var(--font); text-align: center; white-space: nowrap; }
#lobby button:hover { background: #4a535e; }
#lobby button:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
#lobby button:disabled { opacity: .55; cursor: default; }
#lobby button.lb-main { background: var(--signal); color: #fff; box-shadow: 0 2px 0 #8f1d21; }
#lobby button.lb-main:hover { background: #e0353b; }
#lobby button.armed { background: #7a2226; }
#lobby a.lb-sgenid { display: block; box-sizing: border-box; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--signal); color: #fff; box-shadow: 0 2px 0 #8f1d21; font: 700 15px var(--font); text-align: center; text-decoration: none; }
#lobby a.lb-sgenid:hover { background: #e0353b; }
#lobby a.lb-sgenid:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
#lobby input, #lobby select { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid rgba(237, 234, 227, .16); background: #1d2126; color: var(--chalk); font: 15px var(--font); }
#lobby input::placeholder { color: #6f7780; }
#lobby input:focus, #lobby select:focus { outline: 2px solid var(--lantern); outline-offset: 0; border-color: transparent; }
#lobby label { display: flex; flex-direction: column; gap: 6px; font: 600 13px var(--font); color: var(--chalk); }
#lobby .lb-form { display: flex; flex-direction: column; gap: 16px; }
#lobby .lb-form > button { height: 46px; font-size: 15px; }
#lobby .lb-form.lb-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
#lobby .lb-form.lb-row label { flex: 1 1 130px; }
#lobby .lb-form.lb-row > button { height: 44px; }
#lobby .lb-inline { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
#lobby .lb-inline input, #lobby .lb-inline label { flex: 1; }
#lobby .lb-inline > button { height: 44px; }
#lobby .lb-auth { padding-top: 0; border-top: 0; }
#lobby .lb-tabs { display: flex; gap: 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
#lobby .lb-tabs button { background: none; border-radius: 0; padding: 10px 0; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: 15px; }
#lobby .lb-tabs button:hover { background: none; color: var(--chalk); }
#lobby .lb-tabs button[aria-selected="true"] { color: var(--chalk); border-bottom-color: var(--lantern); }
#lobby .lb-first, #lobby .lb-invite { margin: 0 0 20px; padding: 12px 14px; border-radius: var(--r-ctl); background: rgba(244, 189, 69, .1); border-left: 3px solid var(--lantern); }
#lobby .lb-note { margin: 0 0 18px; padding: 11px 14px; border-radius: var(--r-ctl); background: rgba(106, 169, 76, .14); border-left: 3px solid var(--lawn); }
#lobby .lb-note.bad { background: rgba(207, 43, 49, .15); border-left-color: var(--signal); }
#lobby ul { list-style: none; margin: 0; padding: 0; }
#lobby .lb-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
#lobby .lb-list li:first-child { border-top: 0; }
#lobby .lb-list li > form { flex: 1 1 240px; margin: 0; }
#lobby .lb-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#lobby .lb-acts select { width: auto; height: 38px; }
#lobby .lb-acts button { padding: 8px 12px; font-size: 13.5px; }
/* a village: a house plate you walk up to */
#lobby .lb-villages { display: flex; flex-direction: column; gap: 8px; }
#lobby .lb-village { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 10px; background: var(--iron-2); border: 1px solid var(--line); }
#lobby .lb-village:hover { border-color: rgba(244, 189, 69, .45); }
#lobby .lb-ico { width: 30px; height: 30px; flex: none; color: var(--lantern); }
#lobby .lb-vtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#lobby .lb-vname { font: 700 17px/1.25 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lobby .lb-online { font-size: 13px; color: var(--mute); }
#lobby .lb-online.on { color: var(--lawn); }
#lobby .lb-online.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lawn); margin-right: 6px; vertical-align: 1px; }
#lobby .lb-enter { padding: 10px 18px; }
#lobby .lb-orgacts { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
#lobby .lb-orgacts .lb-inline { margin: 0; flex: 1 1 240px; }
#lobby .lb-back { margin: 0 0 14px; }
#lobby .lb-back button { background: none; padding-left: 0; color: var(--lantern); }
#lobby .lb-back button::before { content: '\2190  '; }
#lobby .lb-newlink { display: flex; gap: 8px; margin-top: 12px; }
#lobby .lb-newlink input { font-size: 13px; color: var(--lantern); }
#lobby code { font-size: 12.5px; color: var(--mute); }
#lobby .lb-danger button { background: #4a2326; }
#lobby .lb-joincard { padding: 16px; border: 1px solid rgba(244, 189, 69, .4); border-radius: 10px; background: rgba(244, 189, 69, .07); margin-bottom: 14px; }
#lobby .lb-joincard p { margin: 0 0 12px; }
@media (max-width: 760px) {
  #lobby { grid-template-columns: 1fr; }
  #lobby::after { display: none; }
  #lobby .lb-wrap { padding: 24px 16px 48px; border-right: 0; }
  #lobby .lb-inline { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { #lobby .lb-wrap { animation: lb-in .35s ease-out; } @keyframes lb-in { from { transform: translateX(-24px); opacity: 0; } } }
#lobby .lb-wrap { display: flex; flex-direction: column; }
#lobby .lb-about { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--mute); font-size: 14px; }
#lobby .lb-about li { display: flex; gap: 12px; align-items: center; }
#lobby .lb-about .lb-ico { width: 24px; height: 24px; }
body.lobby-open > :not(#lobby):not(canvas):not(script), body.lobby-open > #minimap { visibility: hidden !important; }
#lobby button.lb-link { all: unset; margin-left: auto; cursor: pointer; color: var(--lantern); font: 600 13.5px var(--font); }
#lobby button.lb-link:hover { text-decoration: underline; background: none; }
#lobby button.lb-link:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
#lobby .lb-orgacts:empty { display: none; }
#lobby .lb-newform { margin-top: 14px; }
.hb-give { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.hb-give button { border: 0; border-radius: var(--r-ctl); padding: 8px 12px; background: var(--iron-3); color: var(--chalk); font: 600 13px var(--font); cursor: pointer; }
.hb-give button:hover { background: #4a535e; }
.hb-give button.armed { background: var(--signal); color: #fff; }
