/* =====================================================================
   Floxy design system — cartoon brand
   Thick ink outlines, rounded corners, chunky buttons with a solid
   offset shadow. Fonts: Lilita One (headings) + Nunito (text).
   ===================================================================== */
:root {
  /* Brand palette */
  --lavender: #c3b1fa;
  --violet: #7c5ce6;
  --ink: #2a1b47;
  --cream: #fff4e8;
  --mint: #4ff0c0;
  --blush: #ff9cc8;
  --gold: #ffd45c;

  /* Surfaces */
  --bg: var(--cream);
  --bg-2: #fbe9d7;
  --panel: #ffffff;
  --panel-2: #f4efff;
  --input: #ffffff;
  --line: #e4dcf3;          /* soft dividers (rows, separators) */
  --line-soft: #efe8fa;
  --outline: 3px solid var(--ink);

  /* Text */
  --text: var(--ink);
  --text-2: #463766;
  --muted: #65578a;          /* 6:1 on white */

  /* Actions & status */
  --accent: var(--violet);
  --accent-strong: var(--violet);   /* white text 4.6:1 */
  --accent-hover: #6a48db;
  --accent-text: #5a3cc8;           /* links: 5.9:1 on white */
  --accent-soft: #efe8ff;
  --accent-on-soft: var(--ink);
  --ok: var(--mint);
  --ok-text: #0b6b50;
  --warn: var(--gold);
  --warn-text: #7a5200;
  --danger: #d92d3a;                /* white text 4.8:1 */
  --danger-strong: #d92d3a;
  --danger-text: #b4232f;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --pop: 0 6px 0 var(--ink);        /* chunky offset shadow */
  --pop-sm: 0 4px 0 var(--ink);
  --shadow: 0 5px 0 var(--ink);
  --shadow-lg: 0 8px 0 var(--ink);
  --ring: 0 0 0 4px var(--mint);

  /* Type */
  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Lilita One", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.3, 1.4, .5, 1); /* a little bounce */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 600 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
h1 { margin: 0 0 12px; }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 {
  font: 900 12.5px/1.3 var(--font-sans);
  margin: 24px 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
p { margin: 0 0 12px; }
b, strong { font-weight: 800; }
a { color: var(--accent-text); font-weight: 800; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code {
  font-family: var(--font-mono);
  background: var(--panel-2);
  border: 2px solid var(--lavender);
  padding: 0 6px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.muted { color: var(--muted); }
.small { font-size: 13.5px; font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.error { color: var(--danger-text); margin: 0; font-size: 14.5px; font-weight: 800; }
.notice { color: var(--ok-text); margin: 0; font-weight: 800; }
.pending { color: var(--warn-text); font-weight: 800; }
.notice-strong { color: var(--ok-text) !important; font-weight: 800; }

/* Inline SVG icons (see icon() in common.js) */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* Brand images */
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.mascot { display: block; height: auto; user-select: none; -webkit-user-drag: none; }

/* ---------- Surfaces ---------- */
.card {
  background: var(--panel);
  border: var(--outline);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font: 800 15px/1.2 var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: var(--outline);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  margin-bottom: 6px;          /* room for the offset shadow */
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--pop-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); color: var(--ink); background: var(--panel-2); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--violet); color: #fff; box-shadow: var(--pop); }
.btn.primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 7px 0 var(--ink); }
.btn.primary:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); margin-bottom: 0; }
.btn.ghost:hover { background: var(--panel-2); border-color: transparent; box-shadow: none; transform: none; }
.btn.danger { color: var(--danger-text); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: 13.5px; border-width: 2.5px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 3px; }
.btn.small:active { transform: translateY(3px); box-shadow: none; }
.btn.big { min-height: 54px; padding: 12px 26px; font-size: 17px; border-radius: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--pop-sm), var(--ring); }
.btn.primary:focus-visible { box-shadow: var(--pop), var(--ring); }
.tab:focus-visible, .chip:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---------- Top bar & navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: #fff;
  border-bottom: var(--outline);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--text); min-width: 0; }
.brand strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.brand > img:not(.brand-logo):not(.brand-mark) { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); }
.brand div { display: grid; min-width: 0; }
.logo-mark { display: none; } /* replaced by the real logo */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); border: 2px solid var(--ink); }
.status.online::before { background: var(--mint); }
.status.offline::before { background: var(--danger); }
.back { color: var(--text-2); text-decoration: none; white-space: nowrap; font-size: 14.5px; font-weight: 800; }
.back:hover { color: var(--ink); }
.me { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font: 800 14.5px/1 var(--font-sans);
  color: var(--text-2);
  background: none;
  border: 2.5px solid transparent;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.tab:hover { background: var(--panel-2); }
.tab.active { color: var(--ink); background: var(--lavender); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }

.content { max-width: 1160px; margin: 0 auto; padding: 28px 20px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head h1 { margin: 0; font-size: 34px; }

.banner {
  display: block;
  background: #fff6d6;
  border: 3px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--ink);
}
.banner a { color: var(--accent-text); }

/* ---------- Login / auth ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; display: grid; gap: 12px; padding: 30px; }
.login-card h1 { font-size: 30px; margin: 0; }
.login-card .brand-logo { height: 54px; }
.link { color: var(--accent-text); font-size: 14.5px; text-align: center; }
.login-box { max-width: 500px; margin: 56px auto; display: grid; gap: 14px; text-align: center; justify-items: center; padding: 34px; }
.login-box h1 { font-size: 30px; margin: 0; }
.login-box .mascot { width: 170px; margin-bottom: -6px; }

/* ---------- Stats & overview ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-bottom: 20px; }
.stats .card { margin-bottom: 0; }
.stat { display: grid; gap: 6px; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.stat .value { font: 400 34px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.stats .card:nth-child(6n+1) { background: #f4efff; }
.stats .card:nth-child(6n+2) { background: #e6fcf5; }
.stats .card:nth-child(6n+3) { background: #fff6d6; }
.stats .card:nth-child(6n+4) { background: #ffeef6; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 20px; }

/* ---------- Tables ---------- */
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar input { flex: 1; min-width: 220px; }
.toolbar select { width: auto; }
.toolbar .btn { margin-bottom: 0; }
.table-card { padding: 0; overflow-x: auto; }
.table-title { padding: 18px 20px 4px; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 2px solid var(--line-soft); white-space: nowrap; font-size: 14.5px; }
th {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--panel-2);
  border-bottom: 3px solid var(--ink);
}
tbody tr { transition: background-color .1s ease; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf7ff; }
tbody tr[data-player] { cursor: pointer; }
.user { display: flex; align-items: center; gap: 10px; }
.user img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); }
.avatar-blank { width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); border: 2px solid var(--ink); display: inline-block; flex: none; }
.sub { display: block; margin-left: 42px; }
.sub-0 { display: block; }
.tag-pill {
  display: inline-block;
  font: 900 12px/1.7 var(--font-mono);
  padding: 0 8px;
  border-radius: 8px;
  background: var(--lavender);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; border: 2px solid var(--ink); }
.actions { text-align: right; display: flex; gap: 8px; justify-content: flex-end; }
.empty { padding: 28px 16px; margin: 0; text-align: center; }
.empty .mascot { width: 150px; margin: 0 auto 8px; }
.msg-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form h2:not(:first-child) { margin-top: 10px; padding-top: 18px; border-top: 2.5px dashed var(--line); }
label { display: grid; gap: 7px; font-weight: 800; font-size: 14.5px; }
label small { font-weight: 600; color: var(--muted); font-size: 13.5px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
input, select, textarea {
  font: 600 15.5px/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--input);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  width: 100%;
  min-height: 46px;
  transition: box-shadow .12s ease, background-color .12s ease;
}
input:hover, select:hover, textarea:hover { background: #fffdfa; }
input:focus, select:focus, textarea:focus { box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #8e82ab; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--violet); margin: 0; }
input[type="color"] { width: 64px; height: 44px; padding: 4px; }
textarea { resize: vertical; line-height: 1.5; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  font: 800 13.5px/1 var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease), background-color .1s ease;
}
.chip:hover { background: var(--panel-2); }
.chip:active { transform: translateY(3px); box-shadow: none; }
.chip.selected { background: var(--lavender); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--panel-2); border: 2.5px solid var(--ink); border-radius: 14px; width: fit-content; }
.segmented label { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; font-weight: 800; cursor: pointer; border: 2px solid transparent; }
.segmented label:has(input:checked) { background: #fff; border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.segmented input { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.6;
  padding: 1px 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); border: 1.5px solid var(--ink); }
.badge.ok { background: #d9fbef; }
.badge.ok::before { background: var(--mint); }
.badge.info { background: #efe8ff; }
.badge.info::before { background: var(--violet); }
.badge.warn { background: #fff3c4; }
.badge.warn::before { background: var(--gold); }
.badge.bad { background: #ffe1ee; }
.badge.bad::before { background: var(--danger); }

/* ---------- Dialogs ---------- */
dialog {
  background: var(--panel);
  color: var(--text);
  border: var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(42, 27, 71, .45); }
dialog.wide { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; font-size: 26px; }
.dialog-actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.user.big img, .user.big .avatar-blank { width: 58px; height: 58px; border-width: 3px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 22px;
  margin: 0;
  padding: 18px;
  background: var(--panel-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
}
.facts dt { font-size: 11.5px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 3px 0 0; word-break: break-word; font-weight: 700; }
table.mini td { padding: 8px 10px; white-space: normal; }
#pd-chart { margin-top: 8px; }
#pd-events { max-height: 240px; overflow-y: auto; }

/* ---------- Bar chart ---------- */
.chart { display: flex; gap: 8px; height: 150px; margin-top: 8px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: var(--muted); text-align: right; min-width: 20px; font-variant-numeric: tabular-nums; }
.chart-plot {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  border-bottom: 3px solid var(--ink);
  background-image: linear-gradient(var(--line) 2px, transparent 2px);
  background-size: 100% 50%;
  background-position: 0 -1px;
}
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar { width: 100%; background: var(--violet); border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; min-height: 0; transition: background-color .1s ease; }
.bar[style*="height:0%"] { border: 0; }
.bar-slot:hover .bar, .bar-slot:focus .bar { background: var(--mint); }
.chart-x { display: flex; justify-content: space-between; margin: 6px 0 0 28px; font-weight: 700; }
.chart-table { margin-top: 10px; }
.chart-table summary { cursor: pointer; font-weight: 800; }
.tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Lists ---------- */
.rank, .feed { list-style: none; margin: 0; padding: 0; }
.rank li, .feed li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 2px solid var(--line-soft);
  border-radius: 10px;
}
.rank li:last-child, .feed li:last-child { border-bottom: 0; }
.rank li[data-player], .feed li[data-player] { cursor: pointer; }
.rank li[data-player]:hover, .feed li[data-player]:hover { background: var(--panel-2); }
.feed time { white-space: nowrap; font-size: 13px; }
#recent-events { max-height: 360px; overflow-y: auto; }

/* ---------- My servers ---------- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 18px; }
.server-card { display: grid; gap: 16px; align-content: space-between; margin: 0; transition: transform .15s var(--ease); }
.server-card:hover { transform: translateY(-3px); }
.server-card p { margin: 0; }
.server-card .btn { justify-self: start; }
.server-head { display: flex; gap: 12px; align-items: center; }
.server-head h2 { margin: 0 0 6px; font-size: 20px; }
.server-head img, .icon-fallback { width: 52px; height: 52px; border-radius: 50%; flex: none; border: 3px solid var(--ink); }
.icon-fallback { display: grid; place-items: center; background: var(--lavender); font: 400 18px/1 var(--font-display); color: var(--ink); }

/* ---------- Plans & billing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.plan { display: grid; gap: 10px; align-content: start; margin: 0; }
.plan h2 { margin: 0; }
.plan p { margin: 0; }
.plan .btn { justify-self: start; margin-top: 8px; }
.plan.featured { background: #f4efff; box-shadow: var(--shadow-lg); }
.price { font: 400 40px/1.05 var(--font-display); }
.price .muted { font: 700 15px var(--font-sans); }
.big-status { font: 400 28px/1.15 var(--font-display); margin: 0 0 6px; }

/* ---------- POKE ---------- */
.poke-card { margin-bottom: 20px; }
.poke-card.yellow { background: #fffaf0; border-top-width: 8px; border-top-color: var(--gold); }
.poke-card.red { background: #fff6f8; border-top-width: 8px; border-top-color: var(--danger); display: grid; gap: 14px; align-content: start; }
.poke-card h2 { display: flex; align-items: center; gap: 10px; }
.poke-card p { margin: 0; }
.poke-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; border: 2.5px solid var(--ink); }
.poke-dot.yellow { background: var(--gold); }
.poke-dot.red { background: var(--danger); }
.btn.poke-yellow { background: var(--gold); color: var(--ink); }
.btn.poke-yellow:hover { background: #ffcb2e; color: var(--ink); }
.btn.poke-red { background: var(--danger); color: #fff; }
.btn.poke-red:hover { background: #c0202d; color: #fff; }
.voice-list { max-height: 320px; overflow-y: auto; }
.voice-list img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); }
.pick-list { max-height: 220px; overflow-y: auto; }
.pick-list li { cursor: pointer; padding: 8px 10px; border-radius: 10px; }
.pick-list li:hover { background: var(--panel-2); }
.pick-list img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); }
.picked { margin: 0; display: flex; align-items: center; gap: 8px; }
.red-group { border-top-width: 8px; border-top-color: var(--danger); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px 10px; }
.group-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.group-actions select, .red-group td select { width: auto; min-width: 180px; }
.room { display: inline-flex; align-items: center; gap: 6px; }
.room .icon { color: var(--muted); }

/* ---------- Motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .content { padding: 20px 16px 40px; }
  .card { padding: 18px; }
  .page-head h1 { font-size: 28px; }
  .brand-logo { height: 34px; }
}

/* ---------- Language menu & company line ---------- */
.lang-select {
  width: auto;
  min-height: 38px;
  padding: 6px 30px 6px 12px;
  font: 800 14px/1.2 var(--font-sans);
  border-radius: 12px;
}
.topbar-lang { display: inline-flex; }
.app-footer { text-align: center; padding: 28px 16px 36px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.app-footer a, .company-line a { color: var(--accent-text); font-weight: 800; }
.company-line { margin: 0 0 12px; }

/* ---------- "Update" box at the bottom of every page ---------- */
.build-badge {
  display: flex; align-items: center; gap: 7px; width: fit-content; margin: 8px auto 22px;
  padding: 6px 13px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); box-shadow: 0 3px 0 var(--ink);
}
.build-badge b { color: var(--ink); font-weight: 900; }
.build-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }

/* ---------- Announcements from the Floxy team ---------- */
.announce { position: relative; padding: 14px 44px 14px 18px; margin-bottom: 14px; background: #efe8ff;
  border: var(--outline); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink); }
.announce.warning { background: #fff3c4; }
.announce h3 { margin: 0 0 4px; font-size: 16px; }
.announce p { margin: 0; white-space: pre-line; color: var(--text-2); }
.announce .announce-close { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 2px 10px; }
.announce-host:empty { display: none; }

/* Reminder card (Players tab) */
.remind-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.remind-card h2 { margin: 0 0 4px; }
.remind-card p { margin: 0; }
.remind-card .notice { flex-basis: 100%; }
.small-status { font-size: 22px; margin: 6px 0 4px; }

/* Owner panel: monitor */
.section-h { font-size: 18px; margin: 26px 0 12px; }
.ok-text { color: var(--ok-text); }
.bad-text { color: var(--danger); }
