/* Menu reforge v1 (Oct 2026) — one design system for the in-game menus.
 *
 * Everything here is scoped to html.mr1, which the head script in index.html sets unless the
 * feature flag is off (localStorage 'w:mr1' = 'off', or ui-flags.json says off). Remove the
 * class and the game falls straight back to the previous look: no old rule is edited.
 *
 * Direction: the same family as the title screen and the return screen — dusk-green panels,
 * a gold hairline, Cinzel only for panel and dialog titles — but quieter. These are working
 * tools: ~75% interface, ~25% atmosphere. Numbers, prices, stats and settings stay in the UI
 * font. Icons are one stroked line set (js/menu-reforge.js ICONS), never emoji.
 */

html.mr1 {
  --r-bg: #0f1511;
  --r-panel: #151e18;
  --r-panel-2: #1b261f;
  --r-raised: #212e25;
  --r-recess: #0c120e;
  --r-line: rgba(227, 189, 98, .26);
  --r-line-soft: rgba(255, 255, 255, .07);
  --r-ink: #ece6d2;
  --r-ink-2: #c7c9b6;
  --r-muted: #9aa893;
  --r-gold: #e3bd62;
  --r-gold-hi: #f6dc97;
  --r-gold-lo: #a97a2c;
  --r-ok: #8fc98a;
  --r-warn: #e8b55a;
  --r-bad: #f08a62;
  --r-info: #a9c0ea;
  --r-xp: #8ec5ff;
  --r-boost: #f5c542;
  --r-supporter: #7fb4ff;
  --r-focus: #fff2c4;
  --r-radius: 14px;
  --r-radius-s: 10px;
  --r-tap: 48px;           /* minimum touch target */
  --r-row: 52px;           /* standard list row */
  --r-gap: 10px;
  --r-pad: 16px;
  --r-display: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
  --r-fs: 16px;
  --r-fs-s: 13.5px;
  --r-fs-l: 18px;
}

/* ── icons ─────────────────────────────────────────────────────────────── */
html.mr1 .mi { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
html.mr1 .mi.sm { width: 18px; height: 18px; }

/* ── dialogs: one card style for every .modal ─────────────────────────── */
html.mr1 .modal { background: radial-gradient(120% 90% at 50% 30%, rgba(8, 12, 10, .5), rgba(3, 5, 4, .82)); }
html.mr1 .modal-card:not(.parchment):not(.aw-card) {
  background: linear-gradient(180deg, var(--r-panel-2), var(--r-panel) 60%);
  border: 1px solid var(--r-line); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .03);
  color: var(--r-ink);
}
html.mr1 .modal-card:not(.parchment):not(.aw-card) > h2 {
  font-family: var(--r-display); font-weight: 700; letter-spacing: .01em; color: var(--r-gold-hi);
}
html.mr1 .modal-card .muted { color: var(--r-ink-2); }
html.mr1 .modal-card > .panel-close { border-radius: 50%; }

/* buttons */
html.mr1 .modal-card button.primary, html.mr1 .mr-btn.primary {
  min-height: var(--r-tap); border-radius: 12px; border: 1px solid #f3d58a;
  background: linear-gradient(180deg, #f6dc97, #e3bd62 55%, #c8973f); color: #2a1d06;
  font-weight: 800; box-shadow: 0 2px 0 #7a5418;
}
html.mr1 .modal-card button.primary:disabled { filter: grayscale(.6) brightness(.8); box-shadow: none; }
html.mr1 .modal-card button.secondary, html.mr1 .mr-btn.secondary {
  min-height: var(--r-tap); border-radius: 12px; border: 1px solid var(--r-line);
  background: var(--r-raised); color: var(--r-ink); font-weight: 700;
}
html.mr1 .mr-btn.quiet { min-height: 44px; border: 0; background: transparent; color: var(--r-ink-2); font-weight: 600; }
html.mr1 .mr-btn.danger { min-height: var(--r-tap); border-radius: 12px; border: 1px solid rgba(240, 138, 98, .45);
  background: rgba(240, 138, 98, .08); color: #f4b39a; font-weight: 700; }
html.mr1 button:focus-visible, html.mr1 [role="switch"]:focus-visible, html.mr1 a:focus-visible,
html.mr1 select:focus-visible, html.mr1 input:focus-visible { outline: 3px solid var(--r-focus); outline-offset: 2px; }

/* ── panel shell (Character / Skills / Inventory / Shop) ──────────────── */
html.mr1 #panel { background: linear-gradient(180deg, var(--r-panel-2), var(--r-panel) 120px); border-color: var(--r-line); }
html.mr1 #panel .panel-head { border-bottom: 1px solid var(--r-line); }
html.mr1 #panel-title { font-family: var(--r-display); font-weight: 700; color: var(--r-gold-hi); letter-spacing: .01em; }
html.mr1 #panel-close { min-width: 44px; min-height: 44px; }

/* ── shared sheet header (Settings, Boost, Supporter) ─────────────────── */
html.mr1 .mr-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-right: 44px; }
html.mr1 .mr-head .mr-head-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(227, 189, 98, .12); border: 1px solid var(--r-line); color: var(--r-gold); }
html.mr1 .mr-head h2, html.mr1 .mr-head .mr-title { margin: 0; font-family: var(--r-display); font-weight: 700;
  font-size: 22px; color: var(--r-gold-hi); line-height: 1.1; }
html.mr1 .mr-head .mr-sub { display: block; font-family: inherit; font-size: var(--r-fs-s); font-weight: 500; color: var(--r-muted); margin-top: 2px; }

/* ── lists, rows, switches ────────────────────────────────────────────── */
html.mr1 .mr-sec { margin: 0 0 14px; }
html.mr1 .mr-sec > h3 { margin: 0 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-gold); }
html.mr1 .mr-list { display: flex; flex-direction: column; border-radius: var(--r-radius); overflow: hidden;
  background: var(--r-recess); border: 1px solid var(--r-line-soft); }
html.mr1 .mr-list > * + * { border-top: 1px solid var(--r-line-soft); }
html.mr1 .mr-row {
  display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: var(--r-row); margin: 0 !important;
  padding: 10px 14px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
  color: var(--r-ink) !important; font: inherit; font-size: var(--r-fs) !important; font-weight: 600; text-align: left;
  cursor: pointer; box-shadow: none !important;
}
html.mr1 .mr-row:hover { background: rgba(255, 255, 255, .03) !important; }
html.mr1 .mr-row:active { background: rgba(227, 189, 98, .08) !important; }
html.mr1 .mr-row .mi { color: var(--r-gold); }
html.mr1 .mr-row .mr-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
html.mr1 .mr-row .mr-hint { display: block; font-size: 12.5px; font-weight: 500; color: var(--r-muted); margin-top: 1px; }
html.mr1 .mr-row .mr-chev { width: 18px; height: 18px; color: var(--r-muted); }
html.mr1 .mr-row.danger, html.mr1 .mr-row.danger .mi { color: #f4b39a !important; }
html.mr1 .mr-row .mr-val { color: var(--r-muted); font-weight: 600; font-size: var(--r-fs-s); }
html.mr1 .mr-row[hidden], html.mr1 .mr-row.hidden, html.mr1 .mr-row[style*="display: none"] { display: none !important; }
/* switch: the row is the control (role=switch), the track is its picture */
html.mr1 .mr-track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px;
  background: #2b352e; border: 1px solid rgba(255, 255, 255, .14); transition: background .15s; }
html.mr1 .mr-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #cfd3c4; transition: transform .15s; }
html.mr1 [aria-checked="true"] .mr-track { background: #6f9e4f; border-color: #8fc98a; }
html.mr1 [aria-checked="true"] .mr-track::after { transform: translateX(18px); background: #fff; }
html.mr1 .mr-state { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--r-muted); min-width: 26px; text-align: right; }
html.mr1 [aria-checked="true"] .mr-state { color: var(--r-ok); }

/* ── Settings sheet (#music-pop) ──────────────────────────────────────── */
html.mr1 #music-pop.mr-settings {
  position: fixed; z-index: 38; left: 0; right: 0; bottom: 0; top: auto;
  width: auto; max-width: none; max-height: min(86vh, calc(100% - 40px - env(safe-area-inset-top, 0px)));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0; border: 1px solid var(--r-line); border-bottom: 0;
  background: linear-gradient(180deg, var(--r-panel-2), var(--r-panel) 140px); color: var(--r-ink);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .55); transform: none;
}
html.mr1 #music-pop.mr-settings::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 9px;
  background: rgba(255, 255, 255, .18); margin: 0 auto 10px; }
html.mr1 #music-pop.mr-settings > .mp-title { display: none; }
html.mr1 #music-pop .mr-close { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--r-line-soft); background: var(--r-raised); color: var(--r-ink); display: grid; place-items: center; }
html.mr1 #music-pop .mr-account { padding: 10px 14px; }
html.mr1 #music-pop.mr-settings .mr-sec { width: 100%; align-self: stretch; }
html.mr1 a.mr-row, html.mr1 a.mr-row:visited { text-decoration: none; }
/* switches that live directly in a dialog (Sound, Language) */
html.mr1 .modal-card > [role="switch"].mr-row { margin: 8px 0 !important; border-radius: 12px !important;
  background: var(--r-recess) !important; border: 1px solid var(--r-line-soft) !important; }
html.mr1 .modal-card h2 .mi { width: 24px; height: 24px; margin-right: 6px; color: var(--r-gold); vertical-align: -3px; }
html.mr1 #music-pop .mr-account .mp-account-err { color: var(--r-bad); font-size: 13px; }
html.mr1 #music-pop .mr-foot { margin: 6px 4px 0; font-size: 12px; color: var(--r-muted); text-align: center; }
@media (min-width: 760px) {
  html.mr1 #music-pop.mr-settings { left: auto; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); bottom: 16px;
    width: 420px; max-height: none; border-radius: 18px; border-bottom: 1px solid var(--r-line); }
  html.mr1 #music-pop.mr-settings::before { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html.mr1 #music-pop.mr-settings { left: auto; right: 8px; top: 8px; bottom: 8px; width: min(420px, 60vw); max-height: none; border-radius: 16px; border-bottom: 1px solid var(--r-line); }
  html.mr1 #music-pop.mr-settings::before { display: none; }
}

/* ── main menu (#menu-pop) ────────────────────────────────────────────── */
html.mr1 #menu-pop.mr-menu { padding: 10px; border-radius: 16px; border: 1px solid var(--r-line);
  background: linear-gradient(180deg, var(--r-panel-2), var(--r-panel)); min-width: 260px;
  max-height: calc(100% - 120px); overflow-y: auto; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
html.mr1 #menu-pop.mr-menu .mr-sec { margin-bottom: 10px; }
html.mr1 #menu-pop.mr-menu .mr-sec:last-child { margin-bottom: 0; }
html.mr1 #menu-pop .menu-count, html.mr1 #menu-pop .mr-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px;
  background: var(--r-gold); color: #2a1d06; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
html.mr1 #menu-pop .menu-dot.inline { margin-left: auto; }

/* ── 2× Boost ─────────────────────────────────────────────────────────── */
html.mr1 #boost-modal .modal-card.mr-boost { max-width: 440px; text-align: left; }
html.mr1 .mr-boost-status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-radius);
  background: var(--r-recess); border: 1px solid var(--r-line-soft); margin-bottom: 12px; }
html.mr1 .mr-boost-status .mi { width: 30px; height: 30px; color: var(--r-muted); }
html.mr1 .mr-boost-status.on { border-color: rgba(245, 197, 66, .5); background: linear-gradient(135deg, rgba(245, 197, 66, .14), rgba(245, 197, 66, .03)); }
html.mr1 .mr-boost-status.on .mi { color: var(--r-boost); }
html.mr1 .mr-boost-time { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
html.mr1 .mr-boost-status:not(.on) .mr-boost-time { font-size: 20px; color: var(--r-ink-2); }
html.mr1 .mr-boost-ends { font-size: 13px; color: var(--r-muted); }
html.mr1 .mr-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
html.mr1 .mr-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--r-ink-2); }
html.mr1 .mr-facts li .mi { width: 18px; height: 18px; margin-top: 2px; color: var(--r-gold); }
html.mr1 .mr-facts li.no .mi { color: var(--r-muted); }
html.mr1 .mr-facts b { color: var(--r-ink); }
html.mr1 #boost-modal .mr-actions, html.mr1 #sub-modal .mr-actions { display: grid; gap: 8px; margin-top: 12px; }
html.mr1 #boost-modal .mr-actions button, html.mr1 #sub-modal .mr-actions button { width: 100%; margin: 0; }
html.mr1 #boost-modal .mr-note, html.mr1 #sub-modal .mr-note { font-size: 13.5px; color: var(--r-muted); margin: 10px 2px 0; }
html.mr1 #boost-modal #boost-status { display: none; } /* the status card above carries it */

/* ── Wanderer Supporter ───────────────────────────────────────────────── */
html.mr1 #sub-modal .modal-card.mr-sub { max-width: 460px; text-align: left; }
html.mr1 #sub-modal .mr-head .mr-head-ico { color: var(--r-supporter); background: rgba(127, 180, 255, .1); border-color: rgba(127, 180, 255, .35); }
html.mr1 .mr-sub-status { padding: 12px 14px; border-radius: var(--r-radius); background: var(--r-recess); border: 1px solid var(--r-line-soft);
  margin-bottom: 12px; font-size: 14.5px; color: var(--r-ink); }
html.mr1 .mr-sub-status.active { border-color: rgba(127, 180, 255, .45); background: linear-gradient(135deg, rgba(127, 180, 255, .12), rgba(127, 180, 255, .02)); }
html.mr1 .mr-sub-status #sub-status { margin: 0; color: inherit; }
html.mr1 .mr-legal { margin-top: 12px; font-size: 12.5px; color: var(--r-muted); }
html.mr1 .mr-legal a { color: var(--r-ink-2); }

@media (prefers-reduced-motion: reduce) {
  html.mr1 .mr-track, html.mr1 .mr-track::after { transition: none; }
}
@media (max-width: 359px) {
  html.mr1 { --r-fs: 15px; }
  html.mr1 .mr-row { gap: 10px; padding: 9px 12px !important; }
  html.mr1 .mr-state { display: none; }
}

/* ══ Phase 2: Who's Online, profile, Shop, Inventory ═════════════════════ */
/* Who's Online */
html.mr1 #online-modal .modal-card { max-width: 460px; }
html.mr1 #online-list { max-height: min(60vh, 520px); gap: 0; }
/* Let the roster overflow its scrollport instead of shrinking and clipping rows. */
html.mr1 #online-list > .mr-search, html.mr1 #online-list > .mr-orows { flex-shrink: 0; }
html.mr1 #online-rows > .mr-orow { flex: 0 0 auto; }
html.mr1 .mr-search { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 12px; min-height: 46px;
  border-radius: 12px; background: var(--r-recess); border: 1px solid var(--r-line-soft); color: var(--r-muted); }
html.mr1 .mr-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--r-ink); font: inherit; font-size: 16px; outline: none; }
html.mr1 .mr-orows { display: flex; flex-direction: column; border-radius: var(--r-radius); overflow: hidden; background: var(--r-recess); border: 1px solid var(--r-line-soft); }
html.mr1 .mr-orows > * + * { border-top: 1px solid var(--r-line-soft); }
html.mr1 .online-name.mr-orow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px;
  white-space: normal; text-align: left; color: var(--r-ink); text-decoration: none !important; }
html.mr1 .online-name.mr-orow:hover { background: rgba(255, 255, 255, .03); color: var(--r-ink); }
html.mr1 .online-name.mr-orow.is-self { background: rgba(227, 189, 98, .06); }
html.mr1 .mr-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: hsl(var(--h), 32%, 30%); border: 1px solid hsl(var(--h), 40%, 45%); color: #fff; font-weight: 800; }
html.mr1 .mr-oname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
html.mr1 .mr-on { font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
html.mr1 .mr-oreg { font-size: 12.5px; color: var(--r-muted); }
html.mr1 .mr-olvl { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: var(--r-gold-hi);
  background: rgba(227, 189, 98, .1); border: 1px solid var(--r-line); font-variant-numeric: tabular-nums; }
html.mr1 .online-empty { padding: 22px 8px; color: var(--r-ink-2); }
html.mr1 .online-retry { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--r-line); background: var(--r-raised); color: var(--r-ink); font-weight: 700; margin-left: 6px; }

/* Profile */
html.mr1 #profile-modal .modal-card { max-width: 520px; }
html.mr1 #profile-modal h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--r-gold); margin: 16px 2px 6px; }
html.mr1 #profile-modal .summary-row { border-bottom-color: var(--r-line-soft); }
html.mr1 #profile-modal .summary-row span:last-child { font-variant-numeric: tabular-nums; }

/* Shop */
html.mr1 .shop-tabs { gap: 6px; }
html.mr1 .shop-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px !important;
  border: 1px solid var(--r-line-soft) !important; background: var(--r-recess) !important; color: var(--r-ink-2) !important; font-weight: 700; }
html.mr1 .shop-tab.on { border-color: var(--r-gold) !important; background: rgba(227, 189, 98, .12) !important; color: var(--r-gold-hi) !important; }
html.mr1 .shop-tab .mi { width: 18px; height: 18px; }
html.mr1 .shop-head { padding: 10px 2px; border-bottom: 1px solid var(--r-line-soft); margin-bottom: 8px; }
html.mr1 .shop-name { font-family: var(--r-display); font-weight: 700; color: var(--r-gold-hi); }
html.mr1 .shop-coins { font-variant-numeric: tabular-nums; font-weight: 800; }
html.mr1 .shop-h { font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--r-gold) !important; margin: 16px 2px 8px !important; }
html.mr1 .shop-hint { border-radius: 10px; background: rgba(169, 192, 234, .07); border: 1px solid rgba(169, 192, 234, .22); color: var(--r-ink-2); }
html.mr1 .shop-item { border-radius: 12px !important; background: var(--r-recess) !important; border: 1px solid var(--r-line-soft) !important; }
html.mr1 .shop-item .buy-btn, html.mr1 .buy-btn { min-height: 44px; min-width: 96px; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Inventory */
html.mr1 .inv-tab .it-ico .mi { width: 18px; height: 18px; color: var(--r-gold); }
html.mr1 .inv-settings-btn .mi, html.mr1 .inv-skin button .mi { width: 20px; height: 20px; }
html.mr1 .inv-settings-btn, html.mr1 .inv-skin button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
html.mr1 .inv-full-hint { display: flex; gap: 8px; align-items: flex-start; border-radius: 10px; }
html.mr1 .inv-full-hint .mi { width: 18px; height: 18px; color: var(--r-warn); margin-top: 1px; }
html.mr1 .ii-actions button, html.mr1 .rp-btn, html.mr1 .es-remove { min-height: 40px; min-width: 44px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
html.mr1 .ii-actions { gap: 6px; }
html.mr1 .inv-item { border-radius: 12px; }
html.mr1 .gsl-dacts button { min-height: 44px; border-radius: 10px; }
html.mr1 .gsl-dclose { min-width: 44px; min-height: 44px; }
html.mr1 .inv-head .inv-sellall, html.mr1 .inv-head #inv-sort, html.mr1 .inv-tab { min-height: 44px; }
html.mr1 .inv-head #inv-sort { border-radius: 10px; }

/* ══ Phase 3: Skills, Character ══════════════════════════════════════════ */
html.mr1 button.sk-row.mr-skill { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px;
  margin: 0 0 6px; border-radius: 12px; border: 1px solid var(--r-line-soft); background: var(--r-recess); color: var(--r-ink);
  font: inherit; text-align: left; cursor: pointer; }
html.mr1 button.sk-row.mr-skill:hover { border-color: var(--r-line); }
html.mr1 button.sk-row.mr-skill.focused { border-color: rgba(227, 189, 98, .5); }
html.mr1 .mr-skill .sk-badge { display: grid; place-items: center; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); }
html.mr1 .mr-skill .sk-badge .mi { width: 22px; height: 22px; }
html.mr1 .mr-skill .sk-mid { flex: 1 1 auto; min-width: 0; }
html.mr1 .mr-skill .mr-chev { width: 18px; height: 18px; color: var(--r-muted); }
html.mr1 .mr-skill .sk-xp { font-variant-numeric: tabular-nums; }
html.mr1 #mr-skill-modal .mr-skill-card { max-width: 440px; text-align: left; }
html.mr1 .mr-skill-prog { padding: 12px 14px; border-radius: var(--r-radius); background: var(--r-recess); border: 1px solid var(--r-line-soft); margin-bottom: 10px; }
html.mr1 .mr-skill-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
html.mr1 .mr-skill-nums b { font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
html.mr1 .mr-skill-nums span { font-size: 13.5px; color: var(--r-ink-2); font-variant-numeric: tabular-nums; }
html.mr1 .mr-skill-prog .ubar { height: 10px; }
html.mr1 .mr-dl { margin: 0 0 6px; }
html.mr1 .mr-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--r-line-soft); }
html.mr1 .mr-dl dt { color: var(--r-muted); }
html.mr1 .mr-dl dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
html.mr1 #mr-skill-modal .mr-actions button { width: 100%; margin: 0; }
html.mr1 #mr-skill-modal #mr-skill-close { width: 100%; margin-top: 6px; }

/* Character tabs */
html.mr1 .mr-seg { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px;
  margin: 0 0 12px; border-radius: 14px; background: var(--r-recess); border: 1px solid var(--r-line-soft); }
html.mr1 .mr-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px;
  border: 0; border-radius: 10px; background: transparent; color: var(--r-ink-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
html.mr1 .mr-seg button[aria-selected="true"] { background: rgba(227, 189, 98, .14); color: var(--r-gold-hi); box-shadow: inset 0 0 0 1px var(--r-line); }
html.mr1 .mr-seg button .mi { width: 18px; height: 18px; }
html.mr1 .mr-pane .eq-h:first-child { margin-top: 0; }
html.mr1 #btn-my-profile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; }
html.mr1 #btn-my-profile .mi { color: var(--r-gold); }
html.mr1 #rename-section { margin: 14px 0 4px !important; padding: 12px; border-radius: var(--r-radius); background: var(--r-recess); border: 1px solid var(--r-line-soft); }
html.mr1 #rename-input { min-height: 46px; padding: 0 12px !important; border-radius: 10px !important; border: 1px solid var(--r-line-soft) !important;
  background: var(--r-bg) !important; color: var(--r-ink) !important; font-size: 16px !important; }
html.mr1 #btn-rename { min-height: 46px; padding: 0 14px !important; border-radius: 10px !important; border: 1px solid var(--r-line) !important;
  background: var(--r-raised) !important; color: var(--r-ink) !important; font-size: 15px !important; font-weight: 700; }
html.mr1 #rename-err { font-size: 13.5px !important; color: var(--r-bad) !important; }
@media (max-width: 359px) { html.mr1 .mr-seg button span { font-size: 11px; } }
