/* Loaded last. Restyle inherited store/hiscores/wiki markup onto Rupture. */

.reveal,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

.sec-label,
.pg-label,
.sec-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--rf-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rf-fracture-hot);
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--rf-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  text-align: center;
  margin: 0 0 12px;
}
.sec-title .hl { color: var(--rf-fracture-hot); font-style: normal; }
.sec-sub { text-align: center; color: var(--rf-ash); }

.btn-blood,
.btn-primary,
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: var(--rf-fracture);
  color: #f7f2ff;
  border: 1px solid var(--rf-fracture);
  font-family: var(--rf-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-blood:hover,
.btn-primary:hover {
  background: var(--rf-fracture-hot);
  border-color: var(--rf-fracture-hot);
  color: #fff;
}
.btn-outline,
.btn-secondary,
.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--rf-fracture-hot);
  border: 1px solid var(--rf-line);
  text-decoration: none;
  font-size: 13px;
}

.glass-card {
  background: var(--rf-basalt) !important;
  border: 1px solid var(--rf-line) !important;
  box-shadow: none;
  backdrop-filter: none;
}
.tilt-card:hover { transform: none; box-shadow: none; }

#hero,
.wiki-hero,
.areos-store-header,
#ember-canvas,
.hero-fog-layer,
#td-hero { display: none !important; }

#cat-nav,
#shop-nav {
  background: rgba(12, 8, 20, 0.94) !important;
  border-bottom: 1px solid var(--rf-line) !important;
  backdrop-filter: blur(10px);
}
#cat-nav::after,
#shop-nav::after {
  background: linear-gradient(90deg, transparent, var(--rf-fracture), transparent) !important;
}

.cat-btn,
.sort-btn,
.skill-tab,
.snav-btn,
.panel-title,
.wiki-sidebar-title,
.wiki-nav a,
.hs-search-btn,
.active-toggle-btn,
.ge-tab,
.bst-chip {
  font-family: var(--rf-body) !important;
}
.panel-title,
.wiki-h,
.wiki-layout h2,
.wiki-layout h3 {
  font-family: var(--rf-display) !important;
}

.cat-btn.active,
.sort-btn.active,
.skill-tab.active,
.snav-btn.active,
.ge-tab.active,
.bst-chip.active {
  color: var(--rf-fracture-hot) !important;
  border-color: var(--rf-fracture) !important;
  background: rgba(155, 61, 255, 0.12) !important;
}

.wiki-sidebar {
  background: var(--rf-basalt) !important;
  border-color: var(--rf-line) !important;
  border-radius: 0 !important;
}
.wiki-sidebar-title {
  color: var(--rf-fracture-hot) !important;
  border-bottom-color: var(--rf-line) !important;
}

.goth-div,
.goth-div-c,
.gline,
.gdot { display: none !important; }

#hs-main { background: transparent !important; }

/* Hiscores pager + search: violet, not gothic blood-red */
.pg-btn {
  background: rgba(155, 61, 255, 0.08) !important;
  border-color: rgba(155, 61, 255, 0.3) !important;
  color: var(--rf-fracture-hot) !important;
  font-family: var(--rf-body) !important;
}
.pg-btn:hover:not([disabled]) {
  background: rgba(155, 61, 255, 0.18) !important;
  border-color: var(--rf-fracture) !important;
}
.hs-search-input:focus { border-color: var(--rf-fracture) !important; }

.player-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0 28px;
}
.player-name {
  font-family: var(--rf-display);
  font-size: 36px;
  margin: 0;
}
.player-title { color: var(--rf-ash); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--rf-basalt);
  border: 1px solid var(--rf-line);
  padding: 16px;
}
.stat-number {
  font-family: var(--rf-display);
  font-size: 28px;
  color: var(--rf-fracture-hot);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ash);
}
.skills-grid { display: grid; gap: 0; }
.skill-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--rf-line);
}
.skill-icon { width: 24px; height: 24px; }
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--rf-void);
  border: 1px solid var(--rf-line);
  color: var(--rf-bone);
  font-size: 16px;
  margin-bottom: 12px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.content-section,
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px var(--rf-gutter) 80px;
}

.acct-wrap,
.cart-wrap,
.auth-wrap,
.legal-wrap,
.support-wrap,
.comm-wrap,
.success-wrap,
.btc-wrap,
.wallet-hero,
.cx-wrap,
.ge-wrap,
.bst-wrap {
  font-family: var(--rf-body);
}
.acct-hero h1,
.cart-hero h1,
.cx-hero h1,
.ge-hero h1,
.bst-hero h1,
.wallet-hero h1,
.acct-card h2,
.acct-label,
.acct-btn,
.acct-profile-name,
.cart-btn,
.cart-item-name {
  font-family: var(--rf-display) !important;
  color: var(--rf-bone) !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  filter: none !important;
}
.acct-btn,
.cart-btn-primary {
  background: var(--rf-fracture) !important;
  border-color: var(--rf-fracture) !important;
  color: #f7f2ff !important;
}

.wiki-layout { padding-top: 12px; }

#shop-nav .snav-btn i { color: var(--rf-fracture-hot); }

.policy-banner {
  background: rgba(91, 33, 182, 0.18);
  border-color: var(--rf-line);
}
.policy-banner-text strong { color: var(--rf-fracture-hot) !important; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .compare-grid { grid-template-columns: 1fr; }
  .rf-inner { padding-top: 32px; }
}

/* ── News editor (mobile-first; used by desktop + mobile shells) ───────── */
.news-ed-list { display: flex; flex-direction: column; gap: 12px; }
.news-ed-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--rf-line, #2a2340);
  border-radius: 12px; background: rgba(255, 255, 255, .02);
}
.news-ed-main { min-width: 0; }
.news-ed-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.news-ed-badge {
  display: inline-block; padding: .14em .6em; border-radius: 999px;
  font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.news-ed-badge.is-draft     { color: #e0a020; background: #e0a02018; border: 1px solid #e0a02055; }
.news-ed-badge.is-published { color: #2ecc8f; background: #2ecc8f18; border: 1px solid #2ecc8f55; }
.news-ed-badge.is-source    { color: var(--text-lo, #9a90ab); background: rgba(255,255,255,.04); border: 1px solid var(--rf-line, #2a2340); }
.news-ed-title { font-family: var(--rf-display); color: var(--rf-bone, #f3eefe); font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.news-ed-date { color: var(--text-lo, #9a90ab); font-size: .8rem; margin-top: 3px; }
.news-ed-actions { display: flex; gap: 8px; flex-shrink: 0; }
.news-ed-actions form { margin: 0; }
.news-ed-btn-ghost {
  background: transparent !important; border-color: var(--rf-line, #3a3355) !important;
  color: var(--rf-bone, #e7dfff) !important;
}

.news-ed-form .acct-input { width: 100%; box-sizing: border-box; }
.news-ed-content { min-height: 300px; font-family: monospace; font-size: .85rem; resize: vertical; }
.news-ed-tools { margin: 8px 0 0; }
.news-ed-preview {
  margin: 12px 0 4px; padding: 14px 16px;
  border: 1px dashed var(--rf-line, #3a3355); border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.news-ed-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }

@media (max-width: 640px) {
  .news-ed-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .news-ed-actions { width: 100%; }
  .news-ed-actions form { flex: 1; }
  .news-ed-actions .acct-btn { width: 100%; text-align: center; }
  .news-ed-form-actions { flex-direction: column; align-items: stretch; }
  .news-ed-form-actions .acct-btn { width: 100%; text-align: center; }
  .news-ed-content { min-height: 240px; }
}

/* ── Vote leaderboard split (players | staff) — used by /vote and
      /vote/leaderboard; stacks on narrow screens ─────────────────────── */
.rf-lb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 56px;
  align-items: start;
}
.rf-lb-split h3 {
  font-family: var(--rf-display);
  font-size: 24px;
  margin: 28px 0 0;
}
.rf-lb-split .rf-lb { margin-top: 12px; }
.rf-lb-staff-note { color: var(--rf-ash); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 860px) {
  .rf-lb-split { grid-template-columns: 1fr; gap: 8px; }
}
