:root {
  --bg: #121416;
  --bg-2: #1a1d21;
  --bg-3: #22262b;
  --ink: #eceae6;
  --muted: #9a9690;
  --gold: #c9b896;
  --gold-dim: #8f8268;
  --line: rgba(201, 184, 150, 0.14);
  --ok: #6f9e78;
  --danger: #c05a52;
  --font: "Inter", system-ui, sans-serif;
  --display: "Rajdhani", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #dfd0b0; }
.dim { color: var(--muted); }
.inline { display: inline; }

/* —— Landing / auth still use soft theme —— */
.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201,184,150,0.08), transparent 55%),
    linear-gradient(180deg, #0e1012, #15181c 60%, #121416);
}
.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line);
  background: rgba(14,16,18,0.92); position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; gap: 0.65rem; align-items: center; color: inherit; }
.brand__mark {
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 1px solid var(--gold-dim); color: var(--gold); font-family: var(--display); font-weight: 700;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--display); letter-spacing: 0.08em; }
.brand__text small { color: var(--muted); font-size: 0.72rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.main { width: min(1100px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.main--home { width: min(1000px, calc(100% - 2rem)); }
.main--wide { width: min(1280px, calc(100% - 2rem)); }
.footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 2rem; border-top: 1px solid var(--line); }
.hero { min-height: 70vh; display: grid; align-items: end; padding: 3rem 0 2rem; }
.hero__brand { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: 0.08em; margin: 0.2rem 0; text-transform: uppercase; }
.hero__lead { max-width: 34rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-dim); font-size: 0.72rem; font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.panel {
  background: var(--bg-2); border: 1px solid var(--line); padding: 1.15rem 1.25rem; margin-bottom: 1rem;
}
.panel h1, .panel h2, .panel h3 { font-family: var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.muted { color: var(--muted); }
.auth-panel { width: min(400px, 100%); margin: 2rem auto; background: var(--bg-2); border: 1px solid var(--line); padding: 1.4rem; }
.form { display: grid; gap: 0.7rem; max-width: 28rem; }
.form--inline { max-width: none; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.form label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.82rem; }
.form input, .form select, .form textarea, .quick-raid select {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--line);
  background: #0f1113; color: var(--ink); font: inherit;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.1rem; border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, #3a3832, #2a2824); color: var(--gold);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); color: #f0e6d2; text-decoration: none; }
.btn--ghost { background: transparent; }
.btn--small { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
.btn--tiny { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
.linkish { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; }
.news-list { display: grid; gap: 0.8rem; }
.news-item { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.news-item__cover {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  margin: 0 0 0.65rem; border: 1px solid var(--line);
}
.news-item__cover--sm { max-height: 120px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { text-align: left; padding: 0.4rem; border-bottom: 1px solid var(--line); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.admin-body { background: var(--bg); }
.admin-body .main--wide { max-width: 1280px; }

/* —— Admin shell —— */
.admin-shell { display: flex; flex-direction: column; gap: 1rem; }
.admin-header { padding: 1rem 1.15rem; margin: 0; }
.admin-header__top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem;
}
.admin-header h1 { margin: 0.15rem 0 0; font-family: var(--display); font-size: 1.75rem; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-stat {
  min-width: 5.5rem; padding: 0.4rem 0.65rem;
  border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.admin-stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stat strong { font-size: 1.15rem; color: var(--gold); }

.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  border-top: 1px solid var(--line); padding-top: 0.75rem;
}
.admin-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; border: 1px solid var(--line);
  background: #121418; color: var(--muted); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.admin-tab em {
  font-style: normal; font-size: 0.72rem; padding: 0.1rem 0.35rem;
  background: rgba(255,255,255,0.06); border-radius: 2px; color: var(--muted);
}
.admin-tab:hover { color: #fff; border-color: var(--gold-dim); text-decoration: none; }
.admin-tab.is-active {
  color: #fff; border-color: var(--gold-dim);
  background: linear-gradient(180deg, #1a1814 0%, #121418 100%);
}
.admin-tab.is-active em { color: var(--gold); background: rgba(201,184,150,0.12); }

.admin-panels .admin-panel { animation: adminFade 0.2s ease; }
@keyframes adminFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.admin-split {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1rem; align-items: start;
}
.admin-split__form {
  position: sticky; top: 0.75rem;
  padding: 1rem; border: 1px solid var(--line); background: #14171a;
  max-height: calc(100vh - 6rem); overflow-y: auto;
}
.admin-split__list {
  padding: 1rem; border: 1px solid var(--line); background: #121418; min-width: 0;
}
.admin-form-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.admin-form-head h2 { margin: 0; font-size: 1.1rem; }
.admin-form-id { margin: 0 0 0.75rem; font-size: 0.82rem; }
.admin-form-id code { font-size: 0.78rem; }

.admin-list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.admin-search {
  flex: 1 1 12rem; min-width: 10rem;
  padding: 0.45rem 0.65rem; border: 1px solid var(--line);
  background: #0e1012; color: #fff; font: inherit; font-size: 0.88rem;
}
.admin-search:focus { outline: none; border-color: var(--gold-dim); }
.admin-filter {
  padding: 0.45rem 0.55rem; border: 1px solid var(--line);
  background: #0e1012; color: #fff; font: inherit; font-size: 0.85rem;
}
.admin-list-count {
  font-size: 0.78rem; color: var(--muted); padding: 0.25rem 0.5rem;
  border: 1px solid var(--line); white-space: nowrap;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap--short { max-height: 420px; overflow-y: auto; }
.admin-table { width: 100%; font-size: 0.88rem; }
.admin-table .thumb { width: 40px; height: 40px; }
.admin-table tr.is-active { background: rgba(201,184,150,0.08); }
.admin-table tr.is-hidden { display: none; }
.admin-actions { white-space: nowrap; font-size: 0.82rem; }
.admin-actions a { margin-right: 0.35rem; }
.admin-empty { margin: 0.75rem 0 0; text-align: center; }

.admin-field-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem;
}
.admin-field-grid label { margin: 0; }

.admin-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.admin-news-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.65rem; border: 1px solid var(--line); background: rgba(0,0,0,0.15);
}
.admin-news-item.is-active { border-color: var(--gold-dim); background: rgba(201,184,150,0.08); }
.admin-news-item.is-hidden { display: none; }
.admin-news-item strong { display: block; }
.admin-news-item .muted { font-size: 0.78rem; }

.admin-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
}
.admin-tools-card--wide { grid-column: 1 / -1; }
.admin-help-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.admin-help-list code { font-size: 0.78rem; }

.chip-btn--ghost {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 0.75rem; padding: 0.25rem 0.55rem;
}
.chip-btn--ghost:hover { color: #fff; border-color: var(--gold-dim); }

.admin-item-rows__row { align-items: end; margin-bottom: 0.5rem; }
.admin-item-rows__actions { display: flex; align-items: end; padding-bottom: 0.15rem; }

@media (max-width: 960px) {
  .admin-split { grid-template-columns: 1fr; }
  .admin-split__form { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .admin-header__top { flex-direction: column; }
  .admin-stats { width: 100%; }
  .admin-stat { flex: 1; min-width: 0; }
  .admin-tabs { gap: 0.25rem; }
  .admin-tab { flex: 1 1 auto; justify-content: center; padding: 0.4rem 0.5rem; font-size: 0.78rem; }
  .admin-field-grid { grid-template-columns: 1fr; }
}
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.flash {
  padding: 0.65rem 1rem; margin: 0.6rem auto; width: min(1280px, calc(100% - 1.5rem));
  border-left: 3px solid;
}
.flash--ok { background: rgba(111,158,120,0.12); border-color: var(--ok); }
.flash--err { background: rgba(192,90,82,0.14); border-color: var(--danger); }

.admin-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0.85rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid;
  position: sticky;
  top: 0.5rem;
  z-index: 40;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.admin-alert--ok {
  background: #152018;
  border-color: #3f6b48;
  color: #d7ebd9;
}
.admin-alert--err {
  background: #2a1414;
  border-color: #a34a44;
  color: #f3d2cf;
}
.admin-alert__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid currentColor;
}
.admin-alert--ok .admin-alert__mark { color: #8fca98; }
.admin-alert--err .admin-alert__mark { color: #f0a29c; }
.admin-alert__body { flex: 1 1 auto; min-width: 0; }
.admin-alert__title {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.admin-alert__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: inherit;
}
.admin-alert__detail {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.75;
  word-break: break-word;
}
.admin-alert__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 0.15rem;
}
.admin-alert__close:hover { opacity: 1; }

/* —— GAME SHELL (reference style) —— */
.game-shell {
  background: #0f1113;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(201,184,150,0.05), transparent 50%),
    linear-gradient(180deg, #101214, #0c0e10);
  min-height: 100vh;
}
.ticker {
  background: #c9b896;
  color: #1a1814;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.35rem 0.75rem;
}

.game-nav {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 0.7rem 1.25rem;
  background: #16191d;
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.45rem; color: var(--ink); }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo__mark {
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
}
.logo__word {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; font-size: 1.05rem;
}
.game-nav__tabs { display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem; flex: 1; }
.game-nav__tabs a {
  color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.55rem 0.85rem; border-bottom: 2px solid transparent;
}
.game-nav__tabs a:hover { color: var(--ink); text-decoration: none; }
.game-nav__tabs a.is-on {
  color: #1a1814; background: var(--gold); border-bottom-color: transparent;
}
.game-nav__tabs a.is-premium {
  color: var(--gold);
  border-bottom-color: rgba(201, 184, 150, 0.55);
  letter-spacing: 0.1em;
}
.game-nav__tabs a.is-premium:hover {
  color: #e8dcc4;
  text-decoration: none;
}
.game-nav__tabs a.is-premium.is-on {
  color: #1a1814;
  background: var(--gold);
  border-bottom-color: transparent;
}
.game-nav__out button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: 0.72rem; letter-spacing: 0.08em; padding: 0.4rem 0.65rem; cursor: pointer;
}
.game-nav__out button:hover { color: var(--ink); border-color: var(--gold-dim); }

.game-main {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0.85rem auto 2.5rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .status-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .status-strip { grid-template-columns: repeat(2, 1fr); }
}
.status-box {
  background: linear-gradient(180deg, #23272c, #1a1d21);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  min-height: 3.4rem;
}
.status-box__label {
  display: block; color: var(--muted); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.2rem;
}
.status-box strong {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.03em; font-weight: 700;
}

.hub-block { margin-bottom: 1.35rem; }
.hub-block__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.75rem; margin-bottom: 0.65rem;
}
.hub-block__head h1, .hub-block__head h2 {
  margin: 0; font-family: var(--display); font-size: 1.35rem;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.hub-block__head h1 em, .hub-block__head h2 em {
  font-style: normal; color: var(--muted); font-weight: 600;
}
.mini-stats { list-style: none; display: flex; gap: 0.45rem; margin: 0; padding: 0; flex-wrap: wrap; }
.mini-stats li {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); padding: 0.2rem 0.45rem;
}

.chip-btn {
  background: #2a2e33; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.45rem 0.75rem; cursor: pointer;
}
.chip-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.chip-btn--accent {
  background: var(--gold); color: #1a1814; border-color: var(--gold);
}
.chip-btn--accent:hover { filter: brightness(1.05); color: #1a1814; }

/* Squad cards — portrait frames for full-body skins */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 168px));
  gap: 0.65rem;
  justify-content: start;
}
@media (max-width: 560px) {
  .squad-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    justify-content: stretch;
  }
}

.squad-card {
  position: relative; display: block; aspect-ratio: 2 / 3;
  overflow: hidden; border: 1px solid #2a2e33; background: #1a1d21; color: inherit;
  width: 100%;
}
.squad-card:hover { border-color: var(--gold-dim); text-decoration: none; color: inherit; }
.squad-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,184,150,0.35); }
.squad-card.is-dead { filter: grayscale(0.85) brightness(0.65); }
.squad-card__bg { position: absolute; inset: 0; }
.squad-card__img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; border: 0;
}
.squad-card__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,14,0.12) 0%, transparent 28%, rgba(8,9,10,0.88) 100%),
    linear-gradient(90deg, rgba(8,9,10,0.35), transparent 40%);
}
.squad-card__top {
  position: absolute; left: 0.55rem; top: 0.5rem; z-index: 2;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; color: #f2eee6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.squad-card__timer {
  position: absolute; left: 50%; top: 42%; z-index: 2;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 700;
  letter-spacing: 0.06em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.85);
  white-space: nowrap;
}
.squad-card__hp {
  position: absolute; right: 0.55rem; top: 0.5rem; z-index: 2;
  font-size: 0.68rem; font-weight: 600; color: var(--gold);
}
.squad-card__name {
  position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.5rem; z-index: 2;
  font-family: var(--display); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.06em; color: #fff; line-height: 1.15;
}
.squad-card--empty {
  display: grid; place-items: center; border-style: dashed; color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 700;
}

/* Gear strip */
.hub-block--gear {
  background: var(--bg-2); border: 1px solid var(--line); padding: 0.85rem 1rem;
}
.gear-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.45rem;
}
.gear-pill {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  gap: 0.2rem 0.45rem; align-items: center;
  padding: 0.4rem; background: #14171a; border: 1px solid var(--line);
}
.gear-pill > span { grid-column: 1 / -1; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gear-pill em { font-style: normal; font-size: 0.75rem; }
.gear-pill button {
  width: 1.4rem; height: 1.4rem; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer;
}
.quick-raid {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; align-items: center;
}
.quick-raid select { min-width: 220px; }

/* Inventory — dense Sector-like grid */
.inv-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.filter-chip {
  background: #1c2025; border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem; cursor: pointer; border-radius: 999px;
}
.filter-chip.is-on, .filter-chip:hover {
  color: #1a1814; background: var(--gold); border-color: var(--gold);
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
}
.inv-slot {
  position: relative; aspect-ratio: 1;
  background: linear-gradient(180deg, #22262b, #181b1f);
  border: 1px solid #2c3138;
  overflow: hidden;
}
.inv-slot:hover { z-index: 2; }
.inv-icon {
  width: 100%; height: 100%; object-fit: cover; border: 0; background: #15181c;
}
.inv-icon--empty {
  width: 40px; height: 40px; border: 1px dashed var(--line); background: transparent;
}
.inv-slot__qty {
  position: absolute; top: 3px; right: 4px;
  font-size: 0.65rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px #000;
}
.inv-slot__bar {
  position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px;
  background: rgba(255,255,255,0.12); border-radius: 1px;
}
.inv-slot__bar::after {
  content: ""; display: block; height: 100%; width: 100%;
  background: var(--ok); border-radius: 1px;
}

/* Rarity frames & backgrounds */
.rarity-common {
  background: linear-gradient(160deg, #2a2926, #1a1917);
  border: 1px solid #6e6a63;
  box-shadow: inset 0 0 0 1px rgba(183,177,166,0.15);
}
.rarity-common .inv-slot__bar::after,
.rarity-common.loadout-slot__bar i { background: #b7b1a6; }

.rarity-shadow {
  background:
    radial-gradient(circle at 30% 20%, rgba(122,107,154,0.35), transparent 55%),
    linear-gradient(160deg, #1a1622, #0e0c12);
  border: 1px solid #7a6b9a;
  box-shadow:
    inset 0 0 0 1px rgba(122,107,154,0.35),
    0 0 10px rgba(80,60,120,0.25);
}
.rarity-shadow .inv-slot__bar::after { background: #9a88c4; }

.rarity-ethereal {
  background:
    radial-gradient(circle at 70% 30%, rgba(110,201,192,0.28), transparent 50%),
    linear-gradient(160deg, #102028, #0a1418);
  border: 1px solid #6ec9c0;
  box-shadow:
    inset 0 0 0 1px rgba(110,201,192,0.4),
    0 0 12px rgba(60,160,150,0.22);
}
.rarity-ethereal .inv-slot__bar::after { background: #6ec9c0; }

.rarity-legendary {
  background:
    radial-gradient(circle at 50% 0%, rgba(224,179,90,0.32), transparent 55%),
    linear-gradient(160deg, #2a1e12, #14100c);
  border: 1px solid #e0b35a;
  box-shadow:
    inset 0 0 0 1px rgba(224,179,90,0.45),
    0 0 14px rgba(180,120,40,0.28);
}
.rarity-legendary .inv-slot__bar::after { background: #e0b35a; }

.rarity-archaic {
  background:
    radial-gradient(circle at 40% 80%, rgba(196,92,74,0.35), transparent 50%),
    linear-gradient(160deg, #221410, #100c0a);
  border: 1px solid #c45c4a;
  box-shadow:
    inset 0 0 0 1px rgba(196,92,74,0.5),
    0 0 16px rgba(140,40,30,0.3);
  animation: archaicPulse 3.2s ease-in-out infinite;
}
.rarity-archaic .inv-slot__bar::after { background: #c45c4a; }

@keyframes archaicPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(196,92,74,0.45), 0 0 10px rgba(140,40,30,0.2); }
  50% { box-shadow: inset 0 0 0 1px rgba(196,92,74,0.75), 0 0 18px rgba(180,50,40,0.4); }
}

img.rarity-common,
img.rarity-shadow,
img.rarity-ethereal,
img.rarity-legendary,
img.rarity-archaic {
  box-sizing: border-box;
}
img.rarity-common { outline: 1px solid #6e6a63; outline-offset: -1px; }
img.rarity-shadow { outline: 2px solid #7a6b9a; outline-offset: -2px; }
img.rarity-ethereal { outline: 2px solid #6ec9c0; outline-offset: -2px; }
img.rarity-legendary { outline: 2px solid #e0b35a; outline-offset: -2px; }
img.rarity-archaic { outline: 2px solid #c45c4a; outline-offset: -2px; }

.rarity-badge {
  position: absolute; left: 3px; bottom: 8px; z-index: 2;
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.1rem 0.25rem; line-height: 1; text-transform: uppercase;
  pointer-events: none;
}
.rarity-common .rarity-badge { color: #cfc9be; background: rgba(0,0,0,0.45); }
.rarity-shadow .rarity-badge { color: #d2c6f0; background: rgba(40,30,70,0.7); }
.rarity-ethereal .rarity-badge { color: #c8fff8; background: rgba(20,50,55,0.7); }
.rarity-legendary .rarity-badge { color: #1a1208; background: rgba(224,179,90,0.9); }
.rarity-archaic .rarity-badge { color: #fff0ec; background: rgba(120,30,25,0.85); }

.inv-slot:hover { border-color: inherit; filter: brightness(1.06); }
.rarity-common:hover { border-color: #9a958c; }
.rarity-shadow:hover { border-color: #a899c8; }
.rarity-ethereal:hover { border-color: #9ae8e0; }
.rarity-legendary:hover { border-color: #f0cb7a; }
.rarity-archaic:hover { border-color: #e08070; }

.inv-slot__menu {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,9,10,0.82); opacity: 0; transition: opacity 0.12s ease;
}
.inv-slot:hover .inv-slot__menu { opacity: 1; }
.inv-slot__menu button {
  background: var(--gold); border: 0; color: #1a1814;
  font: inherit; font-size: 0.68rem; font-weight: 700; padding: 0.3rem 0.45rem; cursor: pointer;
}
.inv-slot.is-hidden { display: none; }

/* Shared thumbs in admin/other */
.thumb { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); }
.thumb--lg { width: 72px; height: 72px; }
.portrait { width: 72px; height: 72px; object-fit: cover; }
.loc-art { width: 100%; height: 100%; object-fit: cover; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; }
.loc-card--visual { border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.loc-card__media { aspect-ratio: 16/9; }
.loc-card__body { padding: 0.75rem; }
.loc-card__body h3 { margin: 0 0 0.35rem; font-family: var(--display); text-transform: uppercase; }
.raid-card, .market-card, .history-row {
  display: grid; gap: 0.65rem; align-items: center;
  padding: 0.55rem; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 0.45rem;
}
.raid-card { grid-template-columns: 64px 1fr minmax(80px,140px) auto; }
.market-card { grid-template-columns: 64px 1fr auto; }
.history-row { grid-template-columns: 72px 1fr auto; color: inherit; }
.timer { font-family: var(--display); color: var(--gold); font-weight: 700; }
.wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.45rem; margin-bottom: 1rem; }
.wallet__cell, .wallet > div { background: var(--bg-2); border: 1px solid var(--line); padding: 0.7rem; }
.wallet span { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet strong { font-family: var(--display); font-size: 1.2rem; }
.stat-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.stat-chips li { font-size: 0.7rem; border: 1px solid var(--line); padding: 0.15rem 0.4rem; color: var(--muted); }
.market-grid { display: grid; gap: 0.45rem; }
.market-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end;
  margin: 0 0 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.market-toolbar__search { flex: 1 1 220px; display: grid; gap: 0.25rem; }
.market-toolbar__search input {
  width: 100%; min-height: 2.35rem; padding: 0.45rem 0.65rem;
  background: #14171a; border: 1px solid var(--line); color: var(--ink);
}
.market-toolbar__sort { display: grid; gap: 0.25rem; min-width: 150px; }
.market-toolbar__sort span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.market-toolbar__sort select {
  min-height: 2.35rem; padding: 0.4rem 0.5rem;
  background: #14171a; border: 1px solid var(--line); color: var(--ink);
}
.market-card__body { display: grid; gap: 0.15rem; min-width: 0; }
.market-card__body strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.market-card__meta { color: var(--muted); font-size: 0.82rem; }
.market-card__seller { font-size: 0.78rem; color: var(--ink); }
.market-card__seller em { font-style: normal; color: var(--gold); font-weight: 600; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.history-list { display: grid; gap: 0.4rem; }
.history-row__img { width: 72px; height: 40px; object-fit: cover; border: 0; }
.history-row em.ok { color: var(--ok); font-style: normal; }
.history-row em.bad { color: var(--danger); font-style: normal; }
.mb { margin-bottom: 1rem; }
.mt { margin-top: 1rem; }

/* Toast / nav chip */
.game-nav__right { display: flex; align-items: center; gap: 0.65rem; margin-left: auto; }
.nav-raid-chip {
  display: flex; flex-direction: column; align-items: flex-end;
  background: rgba(111,158,120,0.15); border: 1px solid rgba(111,158,120,0.4);
  padding: 0.25rem 0.55rem; font-size: 0.68rem;
}
.nav-raid-chip .timer { font-size: 0.95rem; color: #9fd0a8; }
.toast {
  position: fixed; top: 4.2rem; right: 1rem; z-index: 50;
  background: rgba(111,158,120,0.95); color: #0e120f;
  font-weight: 700; font-size: 0.85rem; padding: 0.65rem 1rem;
  animation: fadeRise 0.35s ease-out, toastOut 0.4s ease 4.2s forwards;
}
.toast--boss {
  background: rgba(160, 70, 70, 0.95); color: #fff;
  animation: fadeRise 0.35s ease-out;
}
.toast--boss .timer { color: #ffd0d0; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

.game-main--map { width: min(1400px, calc(100% - 1rem)); }
.game-main--profile { width: min(1180px, calc(100% - 1.5rem)); }
.game-main--results { width: min(1100px, calc(100% - 1.5rem)); }

/* —— Profile —— */
.profile { padding-bottom: 2rem; }
.profile__stage {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.35rem 0.5rem;
  align-items: start;
  justify-content: center;
  margin-top: 0.5rem;
}
@media (max-width: 800px) {
  .profile__stage { grid-template-columns: 1fr; justify-items: center; }
  .profile__side { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
  .profile__side--right { flex-direction: column; align-items: stretch; }
  .loadout-row { justify-content: center; }
}
.profile__side { display: grid; gap: 0.4rem; padding-top: 1.5rem; justify-items: stretch; }
.rank-box {
  width: 72px; min-height: 72px; height: 72px; box-sizing: border-box;
  background: #1a1d21; border: 1px solid var(--line);
  display: grid; place-content: center; align-content: center; text-align: center;
  gap: 0.15rem; padding: 0.45rem 0.35rem; overflow: hidden;
}
.rank-box strong {
  font-family: var(--display); font-size: 1.55rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rank-box span {
  font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.rank-box--stat {
  gap: 0.2rem;
}
.rank-box--stat span {
  color: var(--gold); font-weight: 700; order: -1;
}
.rank-box--stat strong {
  font-size: 1.15rem; color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile__hero { text-align: center; }
.profile__portrait-wrap {
  width: min(340px, 78vw); aspect-ratio: 4/5; margin: 0 auto;
  border: 1px solid var(--line); overflow: hidden; background: #14171a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.profile__portrait { width: 100%; height: 100%; object-fit: cover; border: 0; }
.profile__portrait-wrap.is-dead { filter: grayscale(1) brightness(0.6); }
.profile__title { color: var(--muted); font-size: 0.8rem; margin: 0.85rem 0 0.2rem; }
.profile__name-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.profile__name-row h1 {
  margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
}
.profile__swap {
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); font-size: 1.2rem;
}
.cta-raid {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; padding: 0.85rem 1.6rem;
  background: linear-gradient(180deg, #d9d5cf, #9e9890);
  color: #14110e; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.14em;
  border: 1px solid #eceae6; text-decoration: none;
}
.cta-raid:hover { filter: brightness(1.05); color: #14110e; text-decoration: none; }
.cta-raid--ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.cta-raid--dead { background: #2a1a1a; color: var(--danger); border-color: var(--danger); }
.cta-raid--small { min-width: auto; padding: 0.55rem 1rem; font-size: 0.8rem; }

.loadout-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-height: 128px;
}
.loadout-slot {
  width: 100px; height: 128px; flex: 0 0 100px; box-sizing: border-box;
  background: #1a1d21; border: 1px solid var(--line); padding: 0.35rem 0.3rem;
  display: grid; grid-template-rows: 56px 1.35em 3px 1em 1em;
  gap: 0.15rem; justify-items: center; align-content: start; text-align: center;
  overflow: hidden;
}
button.loadout-slot {
  cursor: pointer; font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
button.loadout-slot:hover,
button.loadout-slot:focus-visible {
  border-color: var(--gold); background: #21262c; outline: none;
}
button.loadout-slot.is-empty:hover .loadout-slot__empty {
  border-color: var(--gold);
}
.loadout-slot__img,
.loadout-slot__empty {
  width: 56px; height: 56px; object-fit: cover; border: 0; flex: none;
}
.loadout-slot__empty { border: 1px dashed var(--line); box-sizing: border-box; }
.loadout-slot__label {
  font-size: 0.62rem; color: var(--muted); line-height: 1.35em; height: 1.35em;
  width: 100%; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block;
}
.loadout-slot__bar { width: 100%; height: 3px; background: rgba(255,255,255,0.08); align-self: stretch; }
.loadout-slot__bar i { display: block; height: 100%; background: var(--ok); }
.loadout-slot em {
  font-style: normal; font-size: 0.62rem; color: var(--gold); line-height: 1;
  height: 1em;
}
.loadout-cells {
  display: flex; flex-wrap: wrap; align-content: center; gap: 0.28rem;
  max-width: 148px;
}
.loadout-cell {
  width: 44px; height: 44px; flex: 0 0 44px; box-sizing: border-box;
  padding: 0; margin: 0; border: 1px dashed var(--line); background: #14171a;
  overflow: hidden; display: grid; place-items: center;
  appearance: none; -webkit-appearance: none; color: inherit; font: inherit;
}
button.loadout-cell { cursor: pointer; }
button.loadout-cell:hover,
button.loadout-cell:focus-visible {
  border-color: var(--gold); outline: none;
}
.loadout-cell.has-item { border-style: solid; border-color: var(--line); }
.loadout-cell__img {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.profile__vitals {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; margin: 1.25rem 0 0.75rem;
}
@media (max-width: 640px) { .profile__vitals { grid-template-columns: 1fr; } }
.vital {
  background: #1a1d21; border: 1px solid var(--line); padding: 0.7rem 0.85rem; text-align: center;
}
.vital span { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.vital strong { font-family: var(--display); font-size: 1.15rem; }
.vital.is-bad strong { color: var(--danger); }
button.vital--click {
  cursor: pointer; font: inherit; color: inherit; width: 100%;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
button.vital--click:hover,
button.vital--click:focus-visible {
  border-color: var(--gold); outline: none; background: #21262c;
}
.vital__hint {
  display: block; margin-top: 0.25rem;
  font-size: 0.62rem; font-style: normal; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.profile__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center;
  margin-bottom: 1rem;
}
.profile__quick-slots {
  display: none;
}
.profile__bag-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
}
.profile__bag-btn:hover { filter: brightness(1.1); }

.profile__inv { margin: 1.25rem 0 1.5rem; }
.profile__inv .hub-block__head h2 { font-size: 1.05rem; }
.profile-inv-grid { margin-top: 0.65rem; }
.inv-slot.js-item-open {
  cursor: pointer; padding: 0; font: inherit; color: inherit; text-align: left;
  appearance: none; -webkit-appearance: none;
}
.inv-slot.js-item-open.is-disabled { opacity: 0.45; cursor: not-allowed; }

.loadout-slot__form { margin: 0; width: 100%; }
.loadout-slot__btn {
  width: 100%; background: none; border: 0; color: inherit; cursor: pointer;
  display: grid; gap: 0.25rem; justify-items: center; padding: 0; font: inherit;
}
.loadout-slot__hint {
  font-size: 0.58rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; height: 1em;
}
.loadout-slot.has-item:hover { border-color: var(--gold); }

/* Slot gear picker */
.slot-picker {
  position: fixed; inset: 0; z-index: 85;
  display: grid; place-items: center; padding: 1rem;
}
.slot-picker[hidden] { display: none !important; }
.slot-picker__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(2px);
}
.slot-picker__dialog {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  max-height: min(80vh, 560px);
  overflow: auto;
  background: #12151a;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.slot-picker__x {
  position: absolute; top: 0.55rem; right: 0.65rem;
  border: 0; background: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.slot-picker__x:hover { color: var(--text); }
.slot-picker h2 {
  margin: 0 1.5rem 0.25rem 0;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.slot-picker__sub { margin: 0 0 0.85rem; font-size: 0.85rem; }
.slot-picker__unequip { margin-bottom: 0.75rem; }
.chip-btn--warn {
  border-color: var(--danger); color: var(--danger);
}
.slot-picker__list { display: grid; gap: 0.45rem; }
.slot-picker__option {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 0.7rem; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  background: #1a1d21; border: 1px solid var(--line); color: inherit; padding: 0.45rem 0.55rem;
  font: inherit;
}
.slot-picker__option:hover { border-color: var(--gold); }
.slot-picker__option .inv-icon { width: 48px; height: 48px; object-fit: cover; }
.slot-picker__option-body { display: grid; gap: 0.1rem; min-width: 0; }
.slot-picker__option-body strong {
  font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot-picker__option-body em {
  font-style: normal; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.slot-picker__option-body small { font-size: 0.72rem; color: var(--muted); }
.slot-picker__option-go {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.slot-picker__empty { margin: 0.5rem 0 0; }

/* Item modal */
body.has-modal { overflow: hidden; }
.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff, #2f5fd6);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.chat-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.chat-fab__badge[hidden] { display: none !important; }
.chat-fab.has-unread {
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 2px rgba(255,77,94,.55);
}
.support-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #6f8cff, #3f5fd6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.support-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.support-fab__badge[hidden],
.support-widget[hidden] { display: none !important; }
.support-fab.has-unread {
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 2px rgba(255,180,77,.55);
}
.support-widget {
  position: fixed;
  left: 18px;
  bottom: 84px;
  z-index: 121;
  width: min(420px, calc(100vw - 24px));
  height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  background: #141722;
  border: 1px solid rgba(112,130,170,.45);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.52);
  padding: 10px;
}
.support-widget.is-detail { grid-template-rows: auto 1fr; }
.support-widget__head { display:flex; align-items:center; justify-content:space-between; }
.support-widget__close,
.support-widget__back { border:0; background:transparent; color:#cfd6ea; font-size:14px; cursor:pointer; text-align:left; padding:0; }
.support-widget__list { overflow:auto; display:grid; gap:7px; align-content:start; }
.support-item {
  border:1px solid rgba(110,130,170,.45);
  background:#1c2234;
  color:#dce4fb;
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  text-align:left;
}
.support-item.is-unread { border-color:#ffb84d; background:#2d2618; }
.support-item strong { display:block; font-size:13px; }
.support-item span { display:block; font-size:11px; color:#9aa8c8; margin-top:2px; }
.support-item p { margin:.35rem 0 0; font-size:12px; color:#c5cee8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.support-widget__detail { display:grid; grid-template-rows:auto auto 1fr auto; gap:8px; min-height:0; }
.support-widget__detail[hidden] { display: none !important; }
.support-widget__meta {
  padding:8px;
  border-radius:8px;
  background:#1a1f2d;
  border:1px solid rgba(98,116,154,.4);
  font-size:12px;
  color:#d5ddf5;
  white-space:pre-wrap;
}
.support-widget__messages { overflow:auto; display:grid; gap:7px; align-content:start; min-height:0; }
.support-widget__create,
.support-widget__form { display:grid; gap:6px; }
.support-widget__create textarea,
.support-widget__form textarea {
  background:#0f1320;
  border:1px solid rgba(110,130,170,.45);
  color:#e7edff;
  border-radius:8px;
  padding:8px;
  resize:vertical;
  min-height:72px;
}
.support-widget__create button,
.support-widget__form button {
  border:1px solid rgba(110,130,170,.45);
  background:#2d3b62;
  color:#fff;
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
}
.support-widget.is-detail .support-widget__create,
.support-widget.is-detail .support-widget__list { display:none; }
.chat-msg.is-staff {
  background: linear-gradient(180deg, #24304a, #1a2438);
  border-color: rgba(107,141,232,.75);
}
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 121;
  width: min(420px, calc(100vw - 24px));
  height: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #141722;
  border: 1px solid rgba(112,130,170,.45);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.52);
  padding: 10px;
  box-sizing: border-box;
}
.chat-widget[hidden] { display: none !important; }
.chat-widget__head { display:flex; align-items:center; justify-content:space-between; flex:0 0 auto; }
.chat-widget__close { border:0; background:transparent; color:#cfd6ea; font-size:20px; cursor:pointer; }
.chat-widget__ban { padding:8px; border-radius:8px; background:#402127; color:#ffd7d9; font-size:12px; flex:0 0 auto; }
.chat-widget__ban[hidden] { display: none !important; }
.chat-widget__direct { display:grid; grid-template-columns:1fr auto; gap:6px; flex:0 0 auto; }
.chat-widget__direct input,
.chat-widget__form input {
  background:#0f1320;
  border:1px solid rgba(110,130,170,.45);
  color:#e7edff;
  border-radius:8px;
  padding:0 10px;
  height:40px;
  line-height:40px;
  min-width:0;
}
.chat-widget__direct button,
.chat-tab { border:1px solid rgba(110,130,170,.45); background:#1c2234; color:#dce4fb; border-radius:8px; padding:8px 10px; cursor:pointer; }
.chat-widget__form {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  margin-top: auto;
}
.chat-widget__form input { flex:1 1 auto; }
.chat-widget__send {
  flex:0 0 40px;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid rgba(110,130,170,.45);
  background:#2d3b62;
  color:#fff;
  border-radius:8px;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.chat-widget__send:hover { background:#3a4d7a; border-color:#6b8de8; }
.chat-widget__send svg { display:block; }
.chat-widget__tabs { display:flex; gap:6px; overflow:auto; flex:0 0 auto; }
.chat-tab.is-on { background:#2d3b62; border-color:#6b8de8; color:#fff; }
.chat-tab.is-unread { border-color:#ff8a98; color:#fff; background:#3a2430; }
.chat-tab.is-unread.is-on { border-color:#ff6b7d; background:#4a2a38; }
.chat-tab__count {
  display: inline-block;
  margin-left: 6px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
}
.chat-widget__messages {
  overflow:auto;
  padding:4px 2px;
  display:grid;
  gap:7px;
  align-content:start;
  flex:1 1 auto;
  min-height:0;
}
.chat-msg { background:#1a1f2d; border:1px solid rgba(98,116,154,.4); border-radius:8px; padding:7px 8px; }
.chat-msg.is-new {
  background: linear-gradient(180deg, #24304a, #1a2438);
  border-color: rgba(107,141,232,.75);
  box-shadow: inset 3px 0 0 #6b8de8;
}
.chat-msg strong { display:block; font-size:12px; color:#aecdff; margin-bottom:2px; }
.chat-msg p { margin:0; white-space:pre-wrap; word-break:break-word; font-size:13px; }
.item-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
}
.item-modal[hidden] { display: none !important; }
.item-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(2px);
}
.item-modal__dialog {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  display: grid; grid-template-columns: 160px 1fr; gap: 1rem;
  background: #12151a;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  padding: 1rem 1.1rem 1.1rem;
  animation: fadeRise 0.22s ease-out;
}
.item-modal__x {
  position: absolute; top: 0.35rem; right: 0.45rem;
  border: 0; background: none; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.item-modal__x:hover { color: #fff; }
.item-modal__art {
  position: relative;
  aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--line); overflow: hidden;
}
.item-modal__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.item-modal__body { min-width: 0; display: grid; gap: 0.45rem; align-content: start; }
.item-modal__type {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.item-modal__body h2 {
  margin: 0; font-family: var(--display); font-size: 1.45rem;
  letter-spacing: 0.04em; line-height: 1.15;
}
.item-modal__desc {
  margin: 0; color: #c5c8ce; font-size: 0.92rem; line-height: 1.45;
}
.item-modal__stats {
  list-style: none; margin: 0.25rem 0 0; padding: 0;
  display: grid; gap: 0.25rem;
}
.item-modal__stats li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.2rem 0;
}
.item-modal__stats span { color: var(--muted); }
.item-modal__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.55rem; align-items: center;
}
@media (max-width: 560px) {
  .item-modal__dialog { grid-template-columns: 1fr; }
  .item-modal__art { max-width: 200px; margin: 0 auto; width: 100%; }
}

/* Admin item editor */
.admin-item-form { max-width: 34rem; }
.admin-item-preview {
  position: relative; width: 120px; height: 120px;
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 0.25rem;
}
.admin-item-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-image-preview {
  width: 100%; max-width: 220px; min-height: 72px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  margin-bottom: 0.15rem; overflow: hidden;
}
.admin-image-preview.is-empty { display: none; }
.admin-image-preview__img { display: block; width: 100%; height: auto; max-height: 140px; object-fit: cover; }
.admin-news-item__main { display: flex; align-items: center; gap: 0.55rem; }
.admin-news-item__main .thumb { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.admin-fieldset {
  border: 1px solid var(--line); padding: 0.75rem; margin: 0;
  display: grid; gap: 0.55rem;
}
.admin-fieldset legend {
  padding: 0 0.35rem; color: var(--muted); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.checkbox-row {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 0.45rem; grid-template-columns: none !important;
}
.checkbox-row input { width: auto; }

.profile__side--right {
  grid-template-columns: 1fr;
  width: auto;
  max-width: 420px;
  justify-items: start;
}
@media (max-width: 800px) {
  .profile__side--right { width: auto; max-width: none; display: flex; flex-wrap: wrap; }
}
.loadout-row--pair {
  flex-wrap: nowrap;
  align-items: center;
}
.loadout-row--pair.loadout-row--bag {
  flex-wrap: wrap;
}
.loadout-row--bag {
  flex-wrap: wrap;
  min-height: auto;
  align-items: flex-start;
}
.loadout-row--bag .loadout-cells {
  max-width: 148px;
  flex: 0 0 auto;
}
.loadout-cell.has-item {
  background: #1a1d21;
}
.profile__stage.is-raiding {
  grid-template-columns: 1fr;
  justify-items: center;
}
.profile__portrait-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.profile__raid-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center;
  background: rgba(8, 10, 12, 0.62);
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}
.profile__raid-overlay strong {
  font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.12em; color: var(--gold);
}
.profile__raid-overlay span { font-family: var(--display); font-size: 1.5rem; color: #fff; }
.profile__raid-overlay em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.profile__raid-overlay--dead {
  background: rgba(40, 12, 12, 0.7); border-color: var(--danger);
}
.profile__raid-overlay--dead strong { color: var(--danger); }
.profile__dismiss { margin: 0; }
.raid-report {
  margin-top: 1.25rem; margin-bottom: 1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--gold-dim); background: linear-gradient(160deg, #1a1814 0%, #121418 70%);
}
.raid-report--dead { border-color: var(--danger); }
.raid-report__death { margin: 0 0 0.75rem; color: var(--danger); }
.squad-card.is-returned .squad-card__top { color: var(--gold); }
.squad-card__hp--return { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.04em; }
.squad-card__hp--dead { color: var(--danger); font-size: 0.78rem; }
.squad-card__raid-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: rgba(8, 10, 12, 0.55);
  pointer-events: none;
}
.squad-card__raid-overlay strong {
  font-family: var(--display); letter-spacing: 0.14em; color: var(--gold); font-size: 1.1rem;
}
.squad-card__raid-overlay--boss strong { color: #f88; }
.squad-card.is-raid .squad-card__img,
.squad-card.is-boss .squad-card__img { filter: brightness(0.55); }
.raid-report__skills {
  margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem;
  font-size: 0.88rem; color: var(--muted);
}
.raid-report__skills li { color: var(--ink); }

.raid-report__head { margin-bottom: 0.75rem; }
.raid-report__head h2 { margin: 0.15rem 0 0; font-family: var(--display); }
.raid-report__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.85rem;
}
.raid-report__stats div {
  border: 1px solid var(--line); padding: 0.45rem 0.55rem; background: rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.raid-report__stats span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.raid-report__stats strong { font-size: 1.05rem; }
.raid-report__section { margin-bottom: 0.85rem; }
.raid-report__section h3 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.raid-report__events { display: flex; flex-direction: column; gap: 0.45rem; }
.raid-report__event {
  display: flex; align-items: center; gap: 0.65rem;
  border: 1px solid var(--line); padding: 0.4rem 0.55rem; background: rgba(0,0,0,0.2);
}
.raid-report__event-img { width: 40px; height: 40px; object-fit: cover; flex: 0 0 auto; }
.raid-report__event strong { display: block; }
.loot-row--compact { gap: 0.4rem; }
.admin-event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.45rem; align-items: center; }
.admin-event-chance { width: 4.5rem; }
@media (max-width: 720px) {
  .raid-report__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.route-panel {
  position: relative; display: block; height: 140px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 1.25rem; color: inherit;
}
.route-panel:hover { text-decoration: none; color: inherit; border-color: var(--gold-dim); }
.route-panel__map {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; filter: saturate(0.7);
}
.route-panel__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,9,10,0.85), rgba(8,9,10,0.35) 55%, rgba(8,9,10,0.7));
}
.route-panel__info {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.25rem; gap: 0.2rem;
}
.route-panel__info strong { font-family: var(--display); font-size: 2rem; color: #fff; }
.route-panel__info em { font-style: normal; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

.profile__history h2 {
  font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.1rem;
}
.profile__history-sub { margin: 0.2rem 0 0.85rem; font-size: 0.8rem; }
.hist-card {
  position: relative; display: block; height: 88px; margin-bottom: 0.45rem; overflow: hidden;
  border: 1px solid var(--line); color: inherit;
  background-image: var(--bg); background-size: cover; background-position: center;
}
.hist-card:hover { text-decoration: none; color: inherit; border-color: var(--gold-dim); }
.hist-card__shade {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,0.9), rgba(8,9,10,0.4));
}
.hist-card__body {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; gap: 1.25rem; padding: 0 1rem; flex-wrap: wrap;
}
.hist-card__body span { color: var(--muted); font-size: 0.85rem; }

/* —— Map —— */
.raid-map {
  display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 0.75rem; min-height: 70vh;
}
@media (max-width: 900px) {
  .raid-map {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(38vh, 48vh) auto;
    min-height: 0;
    gap: 0.5rem;
  }
  .raid-map__canvas { min-height: 38vh !important; max-height: 48vh; }
  .raid-map__panel {
    width: 100%;
    max-height: none;
    border-radius: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
  }
  .game-main--map { width: 100%; padding-bottom: 0.5rem; }
}
.raid-map__canvas {
  position: relative; min-height: 62vh; overflow: hidden; border: 1px solid var(--line);
  background-color: #0d1012;
  background-image: url('/assets/img/maps/raid_world.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.raid-map__fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, transparent 35%, rgba(8,9,10,0.35) 100%),
    linear-gradient(180deg, rgba(8,9,10,0.15) 0%, transparent 30%, transparent 70%, rgba(8,9,10,0.45) 100%);
}
.raid-map__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  background: none; border: 0; color: #fff; cursor: pointer; z-index: 2; padding: 0;
  text-align: center;
}
.map-pin__dot {
  display: block; width: 14px; height: 14px; margin: 0 auto 0.25rem;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,0.35);
}
.map-pin__label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-shadow: 0 1px 4px #000; white-space: nowrap;
}
.map-pin.is-on .map-pin__dot,
.map-pin:hover .map-pin__dot { background: var(--gold); }
.map-pin--boss .map-pin__icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0 auto 0.2rem;
  color: #f2ece4;
  background: radial-gradient(circle at 40% 35%, #5a1a1a 0%, #2a0c0c 70%, #120606 100%);
  border: 1px solid rgba(255, 120, 100, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45), 0 0 10px rgba(180, 40, 40, 0.45);
}
.map-pin--boss .map-pin__icon svg { display: block; }
.map-pin--boss.is-on .map-pin__icon,
.map-pin--boss:hover .map-pin__icon {
  color: #fff;
  border-color: #f88;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45), 0 0 14px rgba(255, 70, 70, 0.65);
}
.map-events { margin-top: 0.25rem; }
.map-events__label {
  margin: 0 0 0.4rem; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.map-events__list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.map-event {
  position: relative; width: 48px; height: 48px;
  border: 1px solid var(--line); background: #121418; overflow: hidden;
}
.map-event__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-event__chance {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 0.62rem; text-align: center; background: rgba(0,0,0,0.7);
  color: var(--gold); line-height: 1.2; padding: 1px 0;
}
.map-events__empty { margin: 0; font-size: 0.85rem; }
.raid-map__panel {
  background: #16191d; border: 1px solid var(--line); padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-width: 0; overflow: hidden; box-sizing: border-box;
}
.raid-map__panel .mini-stats[hidden],
.raid-map__panel .map-events[hidden],
.raid-map__panel .map-send[hidden],
.raid-map__panel #map-boss-note[hidden] {
  display: none !important;
}
.map-combat-preview {
  margin: 0; padding: 0.45rem 0.55rem;
  border: 1px solid var(--line); background: rgba(0,0,0,0.28);
  font-size: 0.82rem; line-height: 1.35;
}
.map-combat-preview .is-ok { color: var(--ok); font-weight: 700; }
.map-combat-preview .is-bad { color: var(--danger); font-weight: 700; }
.map-preview { aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line); }
.map-preview img { width: 100%; height: 100%; object-fit: cover; }
.map-send {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.map-send .cta-raid {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.75rem 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.map-close {
  text-align: center; color: var(--muted); font-size: 0.8rem; padding: 0.5rem;
}

/* —— Results —— */
.raid-results { position: relative; min-height: 72vh; overflow: hidden; border: 1px solid var(--line); }
.raid-results__bg {
  position: absolute; inset: 0;
  background-image: var(--results-bg); background-size: cover; background-position: center;
  filter: saturate(0.65) brightness(0.55);
}
.raid-results__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,10,0.35) 0%, rgba(8,9,10,0.55) 35%, rgba(8,9,10,0.95) 100%);
}
.raid-results__content {
  position: relative; z-index: 1; padding: 2rem 1.25rem 1.5rem;
}
.results-kicker {
  margin: 0; letter-spacing: 0.2em; font-size: 0.75rem; color: var(--muted); font-weight: 700;
}
.raid-results h1 {
  margin: 0.2rem 0 1.25rem; font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.06em;
}
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.4rem; margin-bottom: 0.55rem;
}
.results-grid--dense { margin-bottom: 1.25rem; }
.results-box {
  background: rgba(18,20,24,0.78); border: 1px solid var(--line);
  padding: 0.7rem 0.8rem; font-size: 0.88rem;
}
.results-box.is-ok { color: #b7dfc0; border-color: rgba(111,158,120,0.45); }
.results-box.is-bad { color: #e0a4a0; border-color: rgba(192,90,82,0.45); }
.raid-results h2 {
  font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1rem;
}
.loot-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.inv-slot--empty { background: rgba(255,255,255,0.03); border-style: dashed; }
.results-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* —— Camp —— */
.camp { padding-bottom: 2rem; }
.camp__lead { margin: 0 0 1.1rem; }
.camp-buildings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.camp-building {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a1814 0%, #121418 70%);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.camp-building:hover {
  border-color: var(--gold-dim);
  text-decoration: none;
  color: inherit;
}
.camp-building strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.camp-building span { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.camp-building__go {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.camp-recipes, .camp-quests { display: grid; gap: 0.75rem; }
.camp-recipe, .camp-quest {
  border: 1px solid var(--line);
  background: #14171a;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.65rem;
}
.camp-recipe__out {
  display: flex; align-items: center; gap: 0.75rem;
}
.camp-recipe__out strong { display: block; font-family: var(--display); letter-spacing: 0.04em; }
.camp-recipe__img {
  width: 56px; height: 56px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line);
}
.camp-recipe__inputs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.35rem;
}
.camp-recipe__inputs li {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem;
}
.camp-recipe__inputs li.is-ok { color: #b7dfc0; }
.camp-recipe__inputs li.is-bad { color: #e0a4a0; }
.camp-recipe__in-img {
  width: 32px; height: 32px; object-fit: cover; border: 1px solid var(--line);
}
.camp-quest-section { margin-top: 1.5rem; }
.camp-quest-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.camp-quest__art {
  width: 100%; max-height: 120px; object-fit: cover;
  border: 1px solid var(--line); margin-bottom: 0.35rem;
}
.camp-pass-banner {
  display: block; width: 100%; max-height: 180px; object-fit: cover;
  border: 1px solid var(--line); margin: 0 0 1rem;
}

/* —— Battle pass dual tracks —— */
.camp--pass { padding-bottom: 2.5rem; }
.pass-xp { margin: 0 0 1rem; }
.pass-bar--wide { height: 0.45rem; }
.pass-actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
  margin: 0 0 1.1rem;
}
.pass-premium-badge {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pass-tracks {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
}
.pass-tracks__labels {
  display: grid;
  grid-template-rows: 2rem 1fr 1fr;
  gap: 0.45rem;
}
.pass-tracks__spacer { min-height: 2rem; }
.pass-tracks__label {
  display: grid;
  align-content: center;
  padding: 0.4rem 0.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: #14161a;
}
.pass-tracks__label--free { color: #c9c2b0; }
.pass-tracks__label--prem {
  color: var(--gold);
  background: linear-gradient(160deg, #241e14, #14161a);
}
.pass-tracks__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  background: #0e1013;
  padding: 0.55rem;
  -webkit-overflow-scrolling: touch;
}
.pass-tracks__rail {
  display: flex;
  gap: 0.45rem;
  min-width: max-content;
  padding-bottom: 0.15rem;
}
.pass-node {
  width: 8.4rem;
  display: grid;
  grid-template-rows: 2rem 1fr 1fr;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.pass-node__lvl {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: #171a1e;
  color: var(--muted);
}
.pass-node.is-current .pass-node__lvl {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.pass-node__cell {
  position: relative;
  min-height: 4.6rem;
  padding: 0.45rem 0.4rem 0.55rem;
  border: 1px solid var(--line);
  background: #15171b;
  display: grid;
  align-content: center;
  gap: 0.2rem;
}
.pass-node__cell--free { background: linear-gradient(165deg, #171914, #121418); }
.pass-node__cell--prem { background: linear-gradient(165deg, #221c12, #121418); }
.pass-node.is-locked .pass-node__cell { opacity: 0.48; }
.pass-node__cell.is-ready {
  border-color: rgba(200, 170, 90, 0.55);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 90, 0.18);
}
.pass-node__cell.is-claimed {
  border-color: rgba(120, 160, 90, 0.4);
  opacity: 0.88;
}
.pass-node__cell.is-locked-track { opacity: 0.42; }
.pass-node__reward {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #ddd6c6;
  word-break: break-word;
}
.pass-node__mark {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  font-style: normal;
  color: var(--gold);
  font-size: 0.75rem;
}
.pass-node__lock {
  position: absolute;
  bottom: 0.25rem;
  right: 0.35rem;
  font-style: normal;
  font-size: 0.7rem;
  opacity: 0.7;
}
@media (max-width: 720px) {
  .pass-tracks { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .pass-node { width: 7.2rem; }
  .pass-tracks__label { font-size: 0.72rem; padding: 0.3rem; }
}

.admin-table-wrap--scroll {
  max-height: 420px;
  overflow: auto;
}
.admin-pass-row { cursor: pointer; }
.admin-pass-row:hover { background: rgba(200, 170, 90, 0.08); }

.camp-quest__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem;
}
.camp-quest__head strong { font-family: var(--display); letter-spacing: 0.04em; }
.camp-quest__type {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.camp-quest__meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; font-size: 0.85rem; color: var(--muted);
}
.camp-quest p { margin: 0; }
.chip-btn:disabled {
  opacity: 0.45; cursor: not-allowed; filter: none;
}
.inv-slot-wrap {
  position: relative; display: grid; gap: 0.2rem;
}
.inv-slot-wrap.is-hidden { display: none; }
.inv-bulk-check {
  position: absolute; top: 2px; left: 2px; z-index: 3;
  width: 1.1rem; height: 1.1rem;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55); border: 1px solid var(--line);
}
.inv-bulk-check input { margin: 0; cursor: pointer; }
.inv-bulk-form { display: none; }
.inv-sell-form { margin: 0; }
.inv-sell-btn {
  width: 100%; border: 1px solid var(--line); background: #1a1d21; color: var(--gold);
  font-size: 0.65rem; letter-spacing: 0.04em; padding: 0.2rem; cursor: pointer;
}
.inv-sell-btn:hover { border-color: var(--gold); }
.camp-quest.is-locked { opacity: 0.45; }

/* —— Теневой рынок (donation shop) —— */
.shop-shell { display: grid; gap: 1rem; }
.shop-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1rem; padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #1a1712 0%, #121417 55%, #16191d 100%);
  border: 1px solid rgba(201, 184, 150, 0.35);
}
.shop-hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--display); letter-spacing: 0.08em; color: var(--gold);
}
.shop-hero__lead { margin: 0; max-width: 38rem; }
.shop-hero__wallet {
  display: grid; gap: 0.2rem; text-align: right;
  padding: 0.65rem 0.85rem; border: 1px solid var(--line); background: #16191d;
}
.shop-hero__wallet span { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.shop-hero__wallet strong { font-family: var(--display); font-size: 1.35rem; color: var(--gold); }

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .shop-layout { grid-template-columns: 1fr; }
}

.shop-menu {
  display: grid; gap: 0.35rem;
  padding: 0.75rem;
  background: #16191d; border: 1px solid var(--line);
  position: sticky; top: 0.75rem;
}
.shop-menu__link {
  display: block; padding: 0.7rem 0.85rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid transparent; text-decoration: none;
}
.shop-menu__link:hover { color: var(--ink); border-color: var(--line); text-decoration: none; }
.shop-menu__link.is-on {
  color: #1a1814; background: var(--gold); border-color: var(--gold);
}

.shop-catalog {
  padding: 0.85rem 1rem 1.15rem;
  background: #16191d; border: 1px solid var(--line);
  min-height: 20rem;
}
.shop-catalog__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 1rem;
}
.shop-catalog__head h2 {
  margin: 0; font-family: var(--display); letter-spacing: 0.06em; font-size: 1.25rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.shop-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: #1a1d21; overflow: hidden;
}
.shop-card__art {
  aspect-ratio: 4 / 5; background: #121417; overflow: hidden;
}
.shop-card__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.shop-card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--display); font-size: 2.5rem; color: var(--gold-dim);
  background: linear-gradient(160deg, #242018, #141618);
}
.shop-card__body {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 0.75rem 0.8rem 0.85rem; flex: 1;
}
.shop-card__body h3 {
  margin: 0; font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em; line-height: 1.2;
}
.shop-card__reward {
  margin: 0; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em;
}
.shop-card__desc {
  margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card__foot {
  margin-top: auto; padding-top: 0.55rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.shop-card__price {
  font-family: var(--display); font-size: 1.15rem; color: #e8dcc4; letter-spacing: 0.04em;
}
.shop-card__price--shards { color: var(--gold); }
.shop-card__buy:disabled {
  opacity: 0.45; cursor: not-allowed; filter: none;
}

/* Skill tree */
.rank-box--level {
  position: relative; cursor: pointer; appearance: none; color: inherit;
  font: inherit; width: 72px; min-height: 72px;
}
.rank-box--level:disabled { cursor: default; opacity: 0.7; }
.rank-box--level.has-sp {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.35), 0 0 18px rgba(212, 175, 95, 0.25);
  animation: sp-pulse 1.6s ease-in-out infinite;
}
.rank-box__sp {
  position: absolute; top: -0.35rem; right: -0.35rem;
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--gold); color: #1a1408;
  font-family: var(--display); font-size: 0.75rem; font-style: normal;
  font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.rank-box__sub {
  display: block; font-size: 0.55rem; color: var(--muted); letter-spacing: 0.02em;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@keyframes sp-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.35), 0 0 12px rgba(212, 175, 95, 0.2); }
  50% { box-shadow: 0 0 0 2px rgba(212, 175, 95, 0.55), 0 0 22px rgba(212, 175, 95, 0.4); }
}
.skill-tree {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
}
.skill-tree[hidden] { display: none !important; }
.skill-tree__backdrop {
  position: absolute; inset: 0; background: rgba(4, 6, 8, 0.82);
}
.skill-tree__dialog {
  position: relative; z-index: 1;
  width: min(980px, 96vw); max-height: min(90vh, 920px);
  overflow: auto;
  background: linear-gradient(180deg, #1c2226 0%, #14181c 100%);
  border: 1px solid rgba(180, 160, 90, 0.28);
  box-shadow: 0 28px 90px rgba(0,0,0,0.65);
  padding: 1.15rem 1.25rem 1.2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
}
.skill-tree__x {
  position: absolute; top: 0.55rem; right: 0.7rem;
  background: transparent; border: 0; color: #8a9096;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.skill-tree__x:hover { color: #e8e4d8; }
.skill-tree__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.45rem;
  color: #ece6d4;
}
.skill-tree__hint {
  margin: 0 0 0.55rem;
  color: #c4b168;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 46rem;
}
.skill-tree__points {
  margin: 0;
  color: #8a9096;
  font-size: 0.9rem;
}
.skill-tree__points strong { color: #e0c56a; font-size: 1.05rem; }
.skill-tree__body {
  display: grid;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
}
.skill-tier {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(120, 130, 140, 0.22);
}
.skill-tier:first-child { border-top: 0; }
.skill-tier.is-locked { opacity: 0.55; }
.skill-tier__badge {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(180, 160, 90, 0.35);
  background: radial-gradient(circle at 40% 35%, #2a3036, #15191d);
  color: #c4b168;
}
.skill-tier__badge em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #9aa0a6;
}
.skill-tier__chev {
  display: block;
  width: 22px;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 48%, #d4c07a 48%, #d4c07a 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, #d4c07a 48%, #d4c07a 52%, transparent 52%);
  background-size: 11px 14px, 11px 14px;
  background-position: left center, right center;
  background-repeat: no-repeat;
}
.skill-tier__chev--2 {
  box-shadow: 0 5px 0 -3px #d4c07a;
}
.skill-tier__chev--3 {
  box-shadow: 0 5px 0 -3px #d4c07a, 0 10px 0 -3px #d4c07a;
}
.skill-tier__chev--4,
.skill-tier__chev--5 {
  width: 24px;
  height: 18px;
  background:
    radial-gradient(circle at 50% 40%, #d4c07a 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 48%, #d4c07a 48%, #d4c07a 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, #d4c07a 48%, #d4c07a 52%, transparent 52%);
  background-size: 100% 100%, 12px 14px, 12px 14px;
  background-position: center, left center, right center;
  background-repeat: no-repeat;
}
.skill-tier__chev--5 {
  filter: drop-shadow(0 0 3px rgba(212, 192, 122, 0.45));
}
.skill-tier__rail { min-width: 0; }
.skill-tier__lock {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: #8a9096;
  letter-spacing: 0.04em;
}
.skill-tier__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}
.skill-node {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: #d7d2c4;
}
.skill-node:focus-visible {
  outline: 2px solid rgba(212, 192, 122, 0.65);
  outline-offset: 4px;
}
.skill-node__diamond {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(210, 205, 190, 0.55);
  background: linear-gradient(145deg, #2a3036, #171b1f);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.skill-node__glyph {
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
}
.skill-node__pips {
  display: flex;
  gap: 0.22rem;
}
.skill-node__pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(160, 150, 110, 0.45);
  background: transparent;
}
.skill-node__pips i.is-on {
  background: #d4c07a;
  border-color: #d4c07a;
}
.skill-node.is-available .skill-node__diamond {
  border-color: rgba(220, 215, 200, 0.75);
  color: #f0ebe0;
}
.skill-node.is-owned .skill-node__diamond {
  border-color: rgba(212, 192, 122, 0.85);
  color: #f3e7b8;
  box-shadow: inset 0 0 0 1px rgba(212, 192, 122, 0.2), 0 0 14px rgba(212, 192, 122, 0.18);
}
.skill-node.is-max .skill-node__diamond {
  border-color: #e0c56a;
  color: #ffe9a0;
  background: linear-gradient(145deg, #3a3424, #1c1a14);
  box-shadow: 0 0 18px rgba(224, 197, 106, 0.28);
}
.skill-node.is-locked {
  color: #5c636a;
  cursor: default;
}
.skill-node.is-locked .skill-node__diamond {
  border-color: rgba(90, 100, 110, 0.45);
  background: #121518;
  box-shadow: none;
}
.skill-node.is-selected .skill-node__diamond {
  border-color: #f0d989;
  box-shadow: 0 0 0 2px rgba(240, 217, 137, 0.35), 0 0 20px rgba(224, 197, 106, 0.35);
}
.skill-tree__detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1.1rem;
  align-items: end;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(180, 160, 90, 0.28);
  background: rgba(10, 12, 14, 0.55);
}
.skill-tree__detail[hidden] { display: none !important; }
.skill-tree__detail-main { min-width: 0; }
.skill-tree__detail h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
  color: #ece6d4;
}
.skill-tree__detail-rank {
  margin: 0.35rem 0 0;
  color: #c4b168;
  font-size: 0.85rem;
}
.skill-tree__detail-effect {
  margin: 0.2rem 0 0;
  color: #b8b3a4;
  font-size: 0.82rem;
}
.skill-tree__detail-form { margin: 0; }
.skill-tree__detail-max,
.skill-tree__detail-blocked {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9096;
}
@media (max-width: 720px) {
  .skill-tier { grid-template-columns: 48px 1fr; gap: 0.55rem; }
  .skill-tier__badge { width: 44px; height: 44px; }
  .skill-node__diamond { width: 44px; height: 44px; }
  .skill-node__glyph { width: 18px; height: 18px; }
  .skill-tree__detail { grid-template-columns: 1fr; }
}

/* —— Retention hub —— */
.streak-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}
.streak-day {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--line);
  background: #14161a;
  text-align: center;
  min-height: 4.2rem;
}
.streak-day__n {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.streak-day strong {
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}
.streak-day--done {
  border-color: rgba(120, 160, 90, 0.45);
  background: linear-gradient(160deg, #1a2218, #121418);
  opacity: 0.85;
}
.streak-day--today {
  border-color: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 90, 0.25);
}
.streak-day--locked { opacity: 0.55; }
@media (max-width: 720px) {
  .streak-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.today-ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}
.today-ops__card {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a1814 0%, #121418 70%);
  color: inherit;
  text-decoration: none;
}
.today-ops__card:hover {
  border-color: var(--gold-dim);
  text-decoration: none;
  color: inherit;
}
.today-ops__card strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}
.today-ops__card span { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.today-ops__card em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.referral-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #14161a;
}
.referral-card__code {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  margin: 0.15rem 0;
}

.lb-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.results-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}
.results-progress__pass,
.results-progress__quests {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.results-progress__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.results-progress__list em {
  font-style: normal;
  color: var(--gold);
  margin-left: 0.25rem;
}
.pass-bar {
  height: 0.35rem;
  background: #0c0e11;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pass-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a7340, var(--gold));
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.login-modal.is-hidden { display: none; }
.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.72);
}
.login-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #1a1814 0%, #101218 70%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.login-modal__claim {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.95rem;
}
.streak-strip--modal {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
@media (max-width: 720px) {
  .streak-strip--modal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
