/* Mu Unbound — portal. Steel, gold and arcane blue, like the logo. */
@import url("../fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #0a0f1b;
  --panel: rgba(13, 19, 33, .9);
  --panel-2: rgba(9, 13, 24, .94);
  --line: rgba(201, 164, 92, .26);
  --line-strong: rgba(201, 164, 92, .55);
  --text: #e7eaf0;
  --muted: #98a3b6;
  --faint: #6c768a;
  --gold: #c9a45c;
  --gold-light: #ecd08e;
  --gold-dark: #6f5524;
  --arcane: #3d8bff;
  --arcane-light: #8cc3ff;
  --steel: #cfd6e2;
  --ok: #5bd18b;
  --warn: #f0b552;
  --bad: #ff6b6b;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 var(--body); color: var(--text); background-color: var(--bg);
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(61, 139, 255, .16), transparent 70%),
    radial-gradient(50% 40% at 100% 30%, rgba(201, 164, 92, .06), transparent 70%),
    radial-gradient(50% 40% at 0% 70%, rgba(61, 139, 255, .07), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-decoration: none; }
a:hover, a:focus-visible { color: #fff2c8; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--arcane-light); outline-offset: 2px; }
::selection { background: rgba(61, 139, 255, .35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); margin-inline: auto; }

/* Headings */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 18px; letter-spacing: .06em; }
.gold-text { background: linear-gradient(180deg, #fff1c4 0%, var(--gold-light) 35%, var(--gold) 70%, #8d6a2c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.lead { font-size: 18px; color: #c7cfdc; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* Ornamented frame: thin gold border with diamond corners, like MU's windows. */
.frame {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); box-shadow: 0 0 10px rgba(201, 164, 92, .5);
}
.frame::before { top: -5px; left: -5px; }
.frame::after { bottom: -5px; right: -5px; }
.frame-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.frame-title h2, .frame-title h3 { margin: 0; }
.frame-title a { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 7, 13, .94), rgba(5, 7, 13, .82));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line-strong), transparent) 1; }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(61, 139, 255, .35)); }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav-links a { display: block; padding: 8px 12px; color: var(--steel); font: 600 13px/1 var(--display);
  letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] {
  color: var(--gold-light); text-decoration: none; background: rgba(201, 164, 92, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.menu-button { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 3px;
  padding: 8px 10px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 3px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transition: filter .15s, box-shadow .15s, background .15s; }
.btn-gold { color: #1b1306; background: linear-gradient(180deg, #f6dc9b 0%, var(--gold) 55%, #9a7533 100%);
  border-color: #f3d48a; box-shadow: 0 6px 20px rgba(201, 164, 92, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover, .btn-gold:focus-visible { color: #1b1306; filter: brightness(1.08); box-shadow: 0 6px 26px rgba(201, 164, 92, .45); }
.btn-ghost { color: var(--gold-light); background: rgba(201, 164, 92, .06); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff2c8; background: rgba(201, 164, 92, .14); }
.btn-arcane { color: #fff; background: linear-gradient(180deg, #4f97ff, #1f5fd6); border-color: #7db4ff;
  box-shadow: 0 6px 20px rgba(61, 139, 255, .3); }
.btn-arcane:hover, .btn-arcane:focus-visible { color: #fff; filter: brightness(1.1); }
.btn-danger { color: #ffe1e1; background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .5); }
.btn-danger:hover, .btn-danger:focus-visible { color: #fff; background: rgba(255, 107, 107, .22); }
.btn-small { padding: 8px 13px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* Server status pill */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.status.is-online .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(91, 209, 139, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 209, 139, 0); } }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 50% 40%, rgba(61, 139, 255, .22), transparent 70%),
              conic-gradient(from 200deg at 50% 45%, transparent, rgba(61, 139, 255, .08), transparent 30%); }
.hero-logo { width: min(760px, 96%); margin: 0 auto 6px; display: block;
  filter: drop-shadow(0 14px 50px rgba(61, 139, 255, .3)); animation: rise .9s ease both; }
.hero p.lead { max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fact strip */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 40px; }
.fact { background: var(--panel-2); padding: 16px 12px; text-align: center; }
.fact b { display: block; font: 700 22px/1.2 var(--display); color: var(--gold-light); }
.fact span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Layout grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.section { padding: 28px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.page-head { padding: 40px 0 18px; }
.page-head p { color: var(--muted); max-width: 720px; }
.stack > * + * { margin-top: 24px; }

/* Cards */
.card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 28, 47, .7), rgba(10, 14, 25, .7)); }
.card h3 { color: var(--gold-light); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 3px;
  color: var(--arcane-light); background: rgba(61, 139, 255, .1); border: 1px solid rgba(61, 139, 255, .3); }
.icon svg { width: 22px; height: 22px; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; display: grid; place-items: center; font: 700 20px/1 var(--display); color: var(--gold-light);
  border: 1px solid var(--line-strong); transform: rotate(45deg); }
.step::before { content: ""; }
.step .step-num { position: absolute; left: 0; top: -2px; width: 44px; height: 44px; display: grid; place-items: center;
  font: 700 18px/1 var(--display); color: var(--gold-light); }

/* Lists of events, news, top players */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: 13px; color: var(--muted); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--arcane-light); white-space: nowrap; }
.countdown.is-now { color: var(--ok); }
.rank { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; font: 700 13px/1 var(--display);
  color: var(--gold-light); border: 1px solid var(--line); border-radius: 3px; }
.rank-1 { color: #1b1306; background: linear-gradient(180deg, #f6dc9b, var(--gold)); border-color: #f3d48a; }
.rank-2 { color: #111; background: linear-gradient(180deg, #f1f4f8, #aab4c3); border-color: #e3e8ef; }
.rank-3 { color: #1a0d05; background: linear-gradient(180deg, #e7b086, #9a5b31); border-color: #e7b086; }

/* News */
.news-item + .news-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.news-item h3 { margin-bottom: 4px; }
.news-item h3 a { color: var(--text); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 2px; font: 600 11px/1.4 var(--body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--arcane-light); background: rgba(61, 139, 255, .12); border: 1px solid rgba(61, 139, 255, .3); }
.prose { color: #cfd5df; }
.prose h3 { margin-top: 1.4em; color: var(--gold-light); }
.prose ul { padding-left: 1.2em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 12px 14px; font: 600 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(201, 164, 92, .06); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(61, 139, 255, .05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv th { width: 45%; font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted);
  background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .05); font-weight: 500; }
.kv td { font-weight: 600; }

/* Class badges */
.cls { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cls::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); box-shadow: 0 0 8px var(--c, #888); }
.cls-mago { --c: #6aa8ff; } .cls-caballero { --c: #ff8a5b; } .cls-elfa { --c: #7ee08a; } .cls-gladiador { --c: #c08bff; }
.cls-senor { --c: #f3c969; } .cls-invocadora { --c: #ff7ab6; } .cls-luchador { --c: #f06a6a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--steel);
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.chip:hover, .chip:focus-visible { text-decoration: none; color: var(--gold-light); border-color: var(--line-strong); }
.chip[aria-current="true"] { color: #1b1306; background: linear-gradient(180deg, #f6dc9b, var(--gold)); border-color: #f3d48a; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; font: 600 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs a:focus-visible { color: var(--gold-light); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

/* Forms */
.form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #d6dbe4; }
.field .hint { margin-top: 6px; font-size: 13px; color: var(--faint); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(3, 5, 10, .6); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .18); }
input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--gold); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.strength { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.strength i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.alert { padding: 12px 14px; border-radius: 3px; border: 1px solid; font-size: 15px; }
.alert-error { color: #ffd7d7; background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .4); }
.alert-ok { color: #d6ffe6; background: rgba(91, 209, 139, .1); border-color: rgba(91, 209, 139, .4); }
.alert-info { color: #d9e9ff; background: rgba(61, 139, 255, .1); border-color: rgba(61, 139, 255, .35); }
.alert-warn { color: #ffeccb; background: rgba(240, 181, 82, .1); border-color: rgba(240, 181, 82, .4); }
.code-box { font: 700 22px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; text-align: center;
  padding: 16px; border: 1px dashed var(--gold); border-radius: 3px; color: var(--gold-light); background: rgba(201, 164, 92, .06);
  user-select: all; word-break: break-all; }
.pow-note { font-size: 13px; color: var(--faint); }

/* Panel */
.panel-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 32px 0 48px; }
.side-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 90px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 3px; color: var(--steel);
  border: 1px solid transparent; font-weight: 500; }
.side-nav a:hover, .side-nav a:focus-visible { text-decoration: none; background: rgba(255, 255, 255, .04); color: var(--gold-light); }
.side-nav a[aria-current="page"] { background: rgba(201, 164, 92, .1); border-color: var(--line); color: var(--gold-light); }
.side-nav .side-title { padding: 6px 14px; font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.char-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); position: relative;
  background: linear-gradient(180deg, rgba(22, 31, 52, .85), rgba(10, 14, 25, .9)); }
.char-card h3 { margin: 0 0 2px; font-size: 20px; }
.char-card h3 a { color: var(--text); }
.char-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.char-stats div { padding: 8px 4px; border-radius: 3px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); }
.char-stats b { display: block; font: 700 18px/1.2 var(--display); color: var(--gold-light); }
.char-stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.char-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 12px; padding: 3px 8px; border-radius: 2px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.flag-ok { color: #c9ffd9; background: rgba(91, 209, 139, .12); }
.flag-bad { color: #ffd2d2; background: rgba(255, 107, 107, .12); }
.flag-warn { color: #ffe3b3; background: rgba(240, 181, 82, .14); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.service h3 { display: flex; align-items: center; gap: 10px; }
.req { list-style: none; padding: 0; margin: 12px 0 16px; font-size: 14px; }
.req li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.req .ok { color: var(--ok); }
.req .no { color: var(--bad); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat-grid label { font-size: 13px; color: var(--muted); }
.stat-grid output { display: block; font-size: 12px; color: var(--faint); }

/* Footer */
.site-footer { margin-top: 48px; padding: 36px 0 28px; border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line), transparent) 1; background: rgba(3, 5, 10, .6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid img { height: 54px; width: auto; }
.footer-grid h4 { margin: 0 0 10px; font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold-light); }
.legal { margin-top: 26px; font-size: 12.5px; color: var(--faint); }

/* Empty states */
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .1); border-radius: var(--radius); }

/* Responsive */
@media (max-width: 1020px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-main { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 8px 8px; letter-spacing: .08em; }
}
@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 10px 16px 16px; background: rgba(5, 7, 13, .98); border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 12px 6px; }
  .nav { gap: 12px; }
  .nav-actions .btn-ghost { display: none; }
  .panel-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .side-nav .side-title { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .frame { padding: 18px; }
  .brand img { height: 38px; }
  .nav-actions .btn { padding: 9px 12px; }
  .hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Utilities (no inline styles: the CSP does not allow them) */
.row-flex { display: flex; gap: 12px; align-items: center; }
.center-text { text-align: center; }
.center-block { margin: 0 auto 20px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; }
.reading { width: min(820px, 100% - 32px); margin-inline: auto; }
.plain-ol { padding-left: 1.2em; margin: 0; }
.plain-list { margin: 0; padding-left: 1.1em; }
.no-pad { padding: 0 0 6px; }
.page-head.no-pad h1 { margin-bottom: 6px; }
.nav-actions form { display: inline; margin: 0; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-inline input { flex: 1 1 220px; width: auto; }
.facts-4 { grid-template-columns: repeat(4, 1fr); margin: 0; }
.actions-cell { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.actions-cell form { margin: 0; }
.char-card .ribbon { position: absolute; top: 14px; right: -1px; padding: 4px 10px; font: 700 10px/1.2 var(--display);
  letter-spacing: .12em; text-transform: uppercase; color: #1b1306; background: linear-gradient(180deg, #f6dc9b, var(--gold)); }
.is-bad { color: var(--bad) !important; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 3px; text-align: center;
  font: 600 12px/1.6 ui-monospace, Menlo, monospace; color: var(--gold-light); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-bottom-width: 2px; }
.code-inline { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; user-select: all; }

/* Icon sizes (inline SVG has none of its own) */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-nav svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.menu-button svg { width: 22px; height: 22px; display: block; }
.frame-title svg, .service h3 svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }
.nowrap { white-space: nowrap; }
