/* ==========================================================================
   Ancient SMP Dashboard — Obsidian Dark Neomorphism System
   Deep AMOLED Obsidian · Dual Hairline Bevels · Recessed Wells · 24px Rhythm
   ========================================================================== */
:root {
  /* Obsidian AMOLED Palette */
  --obsidian-base: #050508;
  --obsidian-panel: #080b12;
  --obsidian-card: #0a0e17;
  --obsidian-card-elevated: #101524;
  --obsidian-well: #030509;
  --obsidian-btn: #121726;
  --obsidian-btn-hover: #182033;
  --obsidian-btn-active: #0c101a;

  /* Surfaces & Gradients */
  --obsidian-surface: linear-gradient(165deg, rgba(16, 21, 35, 0.85) 0%, rgba(9, 12, 20, 0.92) 100%);
  --obsidian-card-grad: linear-gradient(165deg, rgba(14, 18, 30, 0.85) 0%, rgba(8, 11, 18, 0.92) 100%);
  --obsidian-card-elevated-grad: linear-gradient(165deg, rgba(20, 26, 44, 0.9) 0%, rgba(12, 16, 28, 0.95) 100%);
  --obsidian-btn-grad: linear-gradient(165deg, #181e30 0%, #101422 100%);
  --obsidian-btn-hover-grad: linear-gradient(165deg, #20273f 0%, #151a2c 100%);
  --obsidian-btn-active-grad: linear-gradient(165deg, #0d111d 0%, #080a12 100%);

  /* Core Variables */
  --bg: #050508;
  --bg-deep: #080b12;
  --panel: #0a0e17;
  --panel-solid: #0a0e17;
  --panel-2: #101524;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;

  /* Brand & Minecraft Accents */
  --amber: #ffbe55;
  --pink: #ff6492;
  --violet: #9366f9;
  --cyan: #38e8ff;
  --green: #3ce696;
  --red: #ff6270;
  --soul-cyan: #38e8ff;
  --soul-blue: #00d2ff;
  --void-purple: #9366f9;
  --ancient-gold: #ffbe55;
  --grad: linear-gradient(130deg, #ffbe55 0%, #ff6492 52%, #9366f9 100%);
  --grad-soul: linear-gradient(135deg, #38e8ff 0%, #9366f9 100%);

  /* Standardized Geometric Radiuses */
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 999px;

  /* 24px Grid Rhythm */
  --grid-rhythm: 24px;
  --pad-card: 24px;
  --gap-rhythm: 24px;

  /* 16px Backdrop Blur */
  --backdrop-blur: 16px;
  --glass-blur: 16px;

  /* Dual-Directional Hairline Bevels & Neomorphic Shadows */
  --card-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  --well-inset: inset 2px 2px 6px rgba(0, 0, 0, 0.7), inset -1px -1px 2px rgba(255, 255, 255, 0.02);

  --obsidian-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);

  --obsidian-card-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);

  --obsidian-btn-shadow:
    0 3px 8px -2px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);

  --obsidian-btn-active-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  --obsidian-primary-shadow:
    0 4px 20px rgba(147, 102, 249, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);

  --obsidian-well-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.7),
    inset -1px -1px 2px rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.03);

  --obsidian-well-focus-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.85),
    0 0 0 2px rgba(147, 102, 249, 0.35);

  /* Typography & Timing */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Syne", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --mc: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background-color: var(--obsidian-base);
  background-image:
    radial-gradient(circle at 18% 14%, rgba(56, 232, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 82% 22%, rgba(147, 102, 249, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.92) 0%, rgba(8, 11, 18, 0.96) 55%, var(--obsidian-base) 100%);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text);
  font: 400 14px/1.6 var(--font);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* GPU Soul-Ember Ambient Background Canvas */
#bg-soul-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  display: block;
  will-change: transform;
}

/* Elevate interactive UI root containers above particle canvas */
.login,
.app {
  position: relative;
  z-index: 1;
}

.hidden { display: none !important; }
code, .mono { font-family: var(--mono); }
code {
  background: var(--obsidian-well);
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 0.92em;
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.6);
  color: #ffd485;
}
.display { font-family: var(--display); letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.tiny { font-size: 11.5px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap { gap: 8px; }
.gap-lg { gap: 14px; }
.grow { flex: 1; min-width: 0; }
.wrap, .flex-wrap { flex-wrap: wrap; }
.h3 { font-size: 15px; margin: 0; font-weight: 700; }
.error-text { color: var(--red); min-height: 1.2em; margin: 8px 0 0; }

/* --------------------------------------------------------------- Obsidian Neomorphic Panels */
.glass,
.obsidian-card {
  background: var(--obsidian-card-grad);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--obsidian-card-shadow);
}

.obsidian-glass {
  background: var(--obsidian-card-grad);
  backdrop-filter: blur(var(--backdrop-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--obsidian-shadow);
}

/* --------------------------------------------------------------- Recessed Obsidian Wells */
.input, select.input, textarea.input, .obsidian-well {
  background: var(--obsidian-well);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font: inherit;
  outline: none;
  box-shadow: var(--obsidian-well-shadow);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  min-width: 0;
}
.input:focus, select.input:focus, textarea.input:focus {
  border-color: rgba(147, 102, 249, 0.65);
  box-shadow: var(--obsidian-well-focus-shadow);
}
.input.mono, .rich { font-family: var(--mono); font-size: 12.5px; }
select.input {
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
select.input option { background: #0c0f1a; color: var(--text); }
textarea.input { resize: vertical; min-height: 70px; }
.input.invalid { border-color: var(--red); }

/* --------------------------------------------------------------- Obsidian Precision Buttons */
.btn {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--obsidian-btn-grad);
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font: 600 13.5px var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--obsidian-btn-shadow);
  transition: transform .12s var(--ease), filter .12s, border-color .12s, background .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn:hover {
  background: var(--obsidian-btn-hover-grad);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.btn:active {
  background: var(--obsidian-btn-active-grad);
  transform: translateY(1px);
  box-shadow: var(--obsidian-btn-active-shadow);
}
.btn:focus-visible, .tab:focus-visible, .seg-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.btn.primary {
  background: linear-gradient(135deg, #9366f9 0%, #7c3aed 50%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font: 600 14px var(--font);
  box-shadow: var(--obsidian-primary-shadow);
}
.btn.primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.btn.primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.btn.ghost {
  background: rgba(18, 23, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn.ghost:hover {
  background: rgba(28, 35, 58, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn.danger {
  background: linear-gradient(165deg, #7f1d1d 0%, #450a0a 100%);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn.danger:hover {
  background: linear-gradient(165deg, #991b1b 0%, #5a0d0d 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn.icon { padding: 7px 11px; font-size: 14px; line-height: 1; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- Obsidian Toggle Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--obsidian-well);
  box-shadow: var(--obsidian-well-shadow);
  position: relative;
  transition: background .2s var(--ease);
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform .22s var(--spring);
}
.switch input:checked + .track {
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
}
.switch input:checked + .track::after {
  transform: translateX(18px);
  background: #ffffff;
}

/* --------------------------------------------------------------- Live Sync Status Pill */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px var(--mono);
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  user-select: none;
  box-shadow: var(--obsidian-btn-shadow);
}
.sync-pill.ok {
  background: linear-gradient(145deg, #163d31, #0f2921);
  color: #5ef5b4;
  border: 1px solid rgba(60, 230, 150, 0.35);
}
.sync-pill.sync {
  background: linear-gradient(145deg, #3f3218, #2b210e);
  color: #ffd166;
  border: 1px solid rgba(255, 190, 85, 0.4);
}
.sync-pill.warn {
  background: linear-gradient(145deg, #422c16, #2d1d0d);
  color: #ffbe55;
  border: 1px solid rgba(255, 190, 85, 0.45);
}
.sync-pill.error {
  background: linear-gradient(145deg, #451b24, #2e1118);
  color: #ff8590;
  border: 1px solid rgba(255, 98, 112, 0.45);
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hint { font-size: 11.5px; color: var(--dim); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* --------------------------------------------------------------- Login */
.login { height: 100%; overflow-y: auto; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(480px, 100%); padding: 28px 30px; text-align: center; }
.login-card h1 { font-size: 26px; margin: 6px 0 4px; }
.login-card form { margin-top: 12px; }

/* --------------------------------------------------------------- App Shell & Topbar */
.app { height: 100%; display: flex; flex-direction: column; padding: 12px; gap: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-size: 19px; font-weight: 800; line-height: 1.1; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad);
  position: relative;
  box-shadow: var(--obsidian-primary-shadow);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 7px;
  border-radius: 3px;
  background: repeating-linear-gradient(#120c1c 0 3px, transparent 3px 6px);
  opacity: .85;
}
.brand-mark.big { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; }
.brand-mark.big::after { inset: 16px 13px; background: repeating-linear-gradient(#120c1c 0 6px, transparent 6px 11px); }

.tabs {
  display: flex;
  gap: 5px;
  background: var(--obsidian-well);
  padding: 4px;
  border-radius: 14px;
  box-shadow: var(--obsidian-well-shadow);
}
.tab {
  background: none;
  border: 0;
  color: var(--muted);
  font: 600 12.5px var(--font);
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  background: var(--obsidian-btn-grad);
  box-shadow: var(--obsidian-btn-shadow);
}

.workspace { flex: 1; min-height: 0; }
.tab-panel { height: 100%; }
.screens-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 390px;
  gap: 12px;
  height: 100%;
}

/* --------------------------------------------------------------- Sidebar Clay Tree View */
.sidebar { padding: 12px; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.screen-list {
  list-style: none;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--obsidian-well);
  border-radius: 14px;
  box-shadow: var(--obsidian-well-shadow);
}

.tree-section-header {
  font: 700 10px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 7px 6px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 5px;
  user-select: none;
}
.tree-section-header:first-child { border-top: 0; margin-top: 0; padding-top: 2px; }

.tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  padding-left: calc(7px + var(--depth, 0) * 13px);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  user-select: none;
}
.tree-node:hover { background: rgba(255, 255, 255, 0.05); }
.tree-node.active {
  background: linear-gradient(145deg, #2d2546, #211b36);
  border-color: rgba(255, 100, 146, 0.45);
  box-shadow: var(--obsidian-btn-shadow);
}
.tree-node.screen-node { font-weight: 600; }
.tree-node.btn-node { font-size: 12px; }

.tree-toggle {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  font-size: 10px;
  flex: none;
}
.tree-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.tree-toggle.open { color: var(--amber); }
.tree-toggle.leaf { opacity: .25; pointer-events: none; font-size: 8px; background: transparent; }

.tree-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}

.tree-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tree-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); line-height: 1.2; }
.tree-sub { font-size: 10px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }

.tree-badges { display: flex; align-items: center; gap: 4px; flex: none; }
.badge {
  font: 700 9.5px var(--mono);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: none;
}
.badge.esc { background: var(--grad); color: #1a0c14; font-weight: 800; }
.badge.submenu { background: rgba(147, 102, 249, 0.22); color: #d5c7ff; border: 1px solid rgba(147, 102, 249, 0.4); }
.badge.return { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge.warn { background: rgba(255, 98, 112, .22); color: #ffbec4; }
.badge.ok { background: rgba(60, 230, 150, 0.18); color: #5ef5b4; border: 1px solid rgba(60, 230, 150, 0.35); }

.tree-add-btn {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--obsidian-btn-grad);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  opacity: .55;
  flex: none;
}
.tree-node:hover .tree-add-btn { opacity: 1; }
.tree-add-btn:hover { background: var(--grad); color: #140b12; border-color: transparent; }

.tree-empty {
  padding: 4px 6px 4px calc(24px + var(--depth, 0) * 13px);
  font-size: 11px;
  color: var(--dim);
  font-style: italic;
}

.load-errors { display: flex; flex-direction: column; gap: 5px; max-height: 25%; overflow: auto; }
.load-errors .err { font-size: 11px; color: #ffbec4; background: rgba(255,98,112,0.12); border: 1px solid rgba(255,98,112,0.3); padding: 6px 9px; border-radius: 10px; }

/* --------------------------------------------------------------- Clean Organized Clay Editor */
.editor { padding: 0; overflow-y: auto; overflow-x: hidden; min-height: 0; display: flex; flex-direction: column; }
.editor-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: #1b1f32;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 6px 16px rgba(4, 5, 11, 0.45);
}
.editor-head-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.editor-head h2 { margin: 0; font-size: 18px; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.editor-subnav {
  display: flex;
  gap: 5px;
  background: var(--obsidian-well);
  padding: 4px;
  border-radius: 11px;
  box-shadow: var(--obsidian-well-shadow);
  overflow-x: auto;
}
.subnav-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 600 11.5px var(--font);
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.subnav-btn:hover { color: var(--text); }
.subnav-btn.active {
  background: var(--obsidian-btn-grad);
  color: var(--text);
  box-shadow: var(--obsidian-btn-shadow);
}

.editor-body { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--obsidian-card-shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font: 700 14px var(--display); letter-spacing: .01em; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty h2 { font-size: 24px; color: var(--text); }

.type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.type-opt {
  text-align: left;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  box-shadow: var(--obsidian-btn-shadow);
}
.type-opt:hover { background: var(--obsidian-btn-hover-grad); }
.type-opt.active {
  border-color: rgba(255, 100, 146, 0.65);
  background: linear-gradient(145deg, #35243e, #24192e);
  box-shadow: 0 0 0 2px rgba(255, 100, 146, 0.25);
}
.type-opt b { display: block; font-family: var(--display); font-size: 13px; margin-bottom: 2px; }
.type-opt span { font-size: 11px; color: var(--muted); }

.list-row { display: flex; gap: 6px; align-items: center; }
.list-row .handle { color: var(--dim); font-size: 11.5px; width: 18px; text-align: center; font-family: var(--mono); }

/* --------------------------------------------------------------- Compact Collapsible Accordion Button Cards */
.btn-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(145deg, #1b1f32, #141726);
  box-shadow: var(--obsidian-well-shadow);
  overflow: hidden;
}
.btn-card.expanded {
  border-color: rgba(147, 102, 249, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.btn-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
}
.btn-card-head:hover { background: rgba(255, 255, 255, 0.05); }
.btn-card-head .num {
  font: 700 10.5px var(--mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
}
.btn-card-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-card-summary img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  object-fit: contain;
  flex: none;
}
.btn-card-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-card.collapsed .btn-card-body { display: none; }

.action-kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.kind {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--obsidian-btn-grad);
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  font: 600 11px var(--font);
  cursor: pointer;
}
.kind:hover { color: var(--text); }
.kind.active {
  color: #190a14;
  background: var(--grad);
  border-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}
.lines { display: flex; flex-direction: column; gap: 6px; }
.line-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 11.5px; list-style: none; font-weight: 600; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }
details.more > .grid-3, details.more > .grid-2 { margin-top: 8px; }

/* --------------------------------------------------------------- Auto-Whitelist & Anti-VPN Security Tab */
.security-layout {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
  padding-bottom: 32px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.kpi-card {
  background: var(--obsidian-surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--obsidian-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-card .kpi-label { font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-card .kpi-val { font: 800 26px var(--display); color: var(--text); line-height: 1.15; }
.kpi-card .kpi-sub { font-size: 11.5px; color: var(--dim); }

.sec-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.sim-result-box {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--obsidian-well);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.sim-result-box.approved {
  background: rgba(60, 230, 150, 0.11);
  border-color: rgba(60, 230, 150, 0.45);
  color: #82f9c5;
}
.sim-result-box.rejected {
  background: rgba(255, 98, 112, 0.12);
  border-color: rgba(255, 98, 112, 0.45);
  color: #ffb3ba;
}
.sim-emoji {
  font-size: 26px;
  line-height: 1;
  flex: none;
}

.sec-table-wrap {
  background: var(--obsidian-well);
  border-radius: 14px;
  box-shadow: var(--obsidian-well-shadow);
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
}
.sec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.sec-table th {
  position: sticky;
  top: 0;
  background: #141829;
  color: var(--muted);
  font: 700 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.sec-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sec-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--obsidian-well);
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--obsidian-well-shadow);
}
.audit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--muted);
  font-size: 12px;
}
.audit-item.ok { border-left-color: var(--green); }
.audit-item.bad { border-left-color: var(--red); }

/* --------------------------------------------------------------- Rich-Text Clay Toolbar */
.rich-toolbar {
  position: fixed;
  z-index: 50;
  padding: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 560px;
  background: #22273e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: var(--obsidian-shadow);
}
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  padding: 0;
}
.swatch:hover { transform: scale(1.15); }
.tb-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 2px; }
.tb-btn {
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 8px;
  font: 600 11.5px var(--font);
  cursor: pointer;
}
.tb-btn:hover { background: var(--obsidian-btn-hover-grad); }
.tb-btn.fx { background: var(--grad); color: #170c13; border: 0; font-weight: 700; }
input[type="color"].pick {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--obsidian-well);
  cursor: pointer;
}

/* --------------------------------------------------------------- Live Preview / Minecraft Stage */
.preview-pane { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.pane-head { display: flex; align-items: center; justify-content: space-between; }
.seg {
  display: flex;
  background: var(--obsidian-well);
  border-radius: 11px;
  padding: 3px;
  box-shadow: var(--obsidian-well-shadow);
  gap: 3px;
}
.seg-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: 600 11.5px var(--font);
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.seg-btn.active {
  background: var(--obsidian-btn-grad);
  color: var(--text);
  box-shadow: var(--obsidian-btn-shadow);
}
.mc-stage {
  --px: 2px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    repeating-conic-gradient(#3b2a1a 0 25%, #4a3522 0 50%) 0 0 / 32px 32px;
  box-shadow: inset 3px 4px 10px rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
  font-family: var(--mc);
  font-size: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 20px;
  gap: 8px;
}
.mc-stage.pause-bg { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), linear-gradient(#5f8fd6, #9fc6ff 55%, #5b8d3b 55%, #4a7a2e); }
.mc-title { text-align: center; margin: 6px 0 4px; line-height: 1.3; }
.mc-body { text-align: center; white-space: pre-wrap; line-height: 1.35; max-width: 100%; }
.mc-grid { display: grid; gap: 4px 8px; justify-content: center; }
.mc-grid .mc-btn.full-span, .mc-btn.full-span {
  grid-column: 1 / -1;
  justify-self: center;
  width: 306px !important;
  max-width: 100%;
}
.mc-btn {
  position: relative;
  height: 40px;
  min-width: 60px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(125deg, #3c4678 0%, #583582 50%, #2b5878 100%);
  background-size: 240% 240%;
  animation: gradientFlow 6s ease infinite;
  color: #ffffff;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.28), inset -2px -4px 0 rgba(0, 0, 0, 0.48);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-btn:hover { border-color: #fff; background: #7f86b8; box-shadow: inset 2px 2px 0 #bec6ff, inset -2px -4px 0 #59609a; }
.mc-btn .tip { display: none; }
.mc-btn:hover .tip {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(16, 0, 16, .94);
  border: 2px solid #2b0b60;
  outline: 1px solid #120018;
  padding: 5px 8px;
  white-space: pre-wrap;
  min-width: 120px;
  max-width: 260px;
  text-align: left;
  pointer-events: none;
}
.mc-footer { margin-top: auto; display: flex; gap: 8px; justify-content: center; padding-top: 10px; }
.mc-input { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.mc-text { width: 200px; height: 40px; background: #000; border: 2px solid #a0a0a0; }
.mc-check { display: flex; gap: 6px; align-items: center; }
.mc-check i { width: 17px; height: 17px; background: #000; border: 2px solid #a0a0a0; display: inline-block; }
.mc-slider { width: 200px; height: 40px; background: #3a3a3a; border: 2px solid #000; display: flex; align-items: center; justify-content: center; position: relative; }
.mc-sprite {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  image-rendering: pixelated;
  object-fit: contain;
  margin-right: 4px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.45));
}
.mc-btn .mc-sprite { margin-right: 5px; }
.mc-head { width: 1.25em; height: 1.25em; vertical-align: -0.22em; image-rendering: pixelated; margin-right: 4px; }
.pause-col { display: flex; flex-direction: column; gap: 6px; width: 300px; margin-top: 10px; }
.pause-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pause-col .mc-btn { width: 100%; }
.pause-col .mc-btn.custom {
  font-size: 15.5px;
  font-weight: 500;
  box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -4px 0 #555, 0 0 0 2px rgba(255, 181, 71, .85);
}
.preview-errors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.preview-errors li { font-size: 12px; color: #ffbec4; background: rgba(255,98,112,.12); border: 1px solid rgba(255,98,112,.3); border-radius: 10px; padding: 7px 10px; }

/* --------------------------------------------------------------- Settings & Help */
.settings { height: 100%; overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-content: start; padding-bottom: 40px; }
.settings .card { background: var(--obsidian-surface); box-shadow: var(--obsidian-shadow); }
.kv-row { display: grid; grid-template-columns: 140px minmax(0,1fr) auto auto; gap: 7px; align-items: center; }
.pill-ok { color: var(--green); font-weight: 700; }
.pill-no { color: var(--amber); font-weight: 700; }
.help { height: 100%; overflow: auto; padding: 24px 28px; }
.help h2 { font-size: 20px; margin: 22px 0 8px; }
.help h2:first-child { margin-top: 0; }
.help table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
.help td, .help th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.help th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* --------------------------------------------------------------- Clay Modal & Toast */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 7, 14, .75);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(650px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #1a1e30;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: var(--obsidian-shadow);
}
.modal-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-head h3 { margin: 0; font: 700 17px var(--display); }
.modal-body { padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.cmd-group h4 { margin: 8px 0 6px; font: 700 12px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cmd-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.cmd-item:hover { background: rgba(255, 255, 255, .07); }
.cmd-item b { font-family: var(--mono); font-weight: 600; }
.cmd-item span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: #20253b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--green);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: var(--obsidian-shadow);
  max-width: 400px;
}
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }

@keyframes card-flash {
  0% { outline: 2px solid var(--pink); }
  100% { outline: 2px solid transparent; }
}
.highlight-card { animation: card-flash 1.4s var(--ease) both !important; }

.mc-btn.has-glow {
  border-color: var(--btn-glow, #ffd700);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.4), inset -2px -4px 0 rgba(0, 0, 0, 0.5), 0 0 10px var(--btn-glow, rgba(255, 215, 0, 0.65));
}

.mc-serif, [data-font="uniform"], [data-font="minecraft:uniform"], .font-times {
  font-family: "Times New Roman", Times, "Noto Serif", Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 1.15em;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------- Picture / Texture Library Picker */
.item-picker-tabs {
  display: flex;
  gap: 5px;
  background: var(--obsidian-well);
  padding: 4px;
  border-radius: 12px;
  box-shadow: var(--obsidian-well-shadow);
  overflow-x: auto;
}
.item-tab-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font: 600 11.5px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.item-tab-btn:hover { color: var(--text); }
.item-tab-btn.active {
  color: #190a14;
  background: var(--grad);
  font-weight: 700;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 9px;
  background: var(--obsidian-well);
  border-radius: 14px;
  box-shadow: var(--obsidian-well-shadow);
}
.item-cell {
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.item-cell:hover {
  background: var(--obsidian-btn-hover-grad);
  border-color: rgba(255, 190, 85, 0.55);
}
.item-cell img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  object-fit: contain;
}
.item-cell .name {
  font: 10px var(--font);
  color: var(--text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* --------------------------------------------------------------- Upload Dropzone & Custom Gallery */
.upload-dropzone {
  border: 2px dashed rgba(255, 190, 85, 0.45);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  background: var(--obsidian-well);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--amber);
  background: rgba(255, 190, 85, 0.07);
}
.upload-dropzone input[type="file"] { display: none; }
.upload-icon { font-size: 26px; color: var(--amber); }
.custom-pic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  background: var(--obsidian-well);
  border-radius: 14px;
}
.custom-pic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  cursor: pointer;
  text-align: center;
}
.custom-pic-card img { width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }
.custom-pic-card .pic-name { font-size: 10.5px; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- Recipe Studio (3x3 Crafting Grid) */
.recipe-bench {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  background: var(--obsidian-well);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}
.recipe-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 44px);
  gap: 4px;
  background: #2b2b2b;
  padding: 6px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
}
.recipe-slot {
  width: 44px;
  height: 44px;
  background: #8b8b8b;
  border: 2px solid #373737;
  border-right-color: #fff;
  border-bottom-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.recipe-slot img { width: 30px; height: 30px; image-rendering: pixelated; object-fit: contain; }
.recipe-arrow { font-size: 28px; color: var(--amber); user-select: none; }
.recipe-result-box { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.recipe-result-slot {
  width: 54px;
  height: 54px;
  background: #8b8b8b;
  border: 2px solid #373737;
  border-right-color: #fff;
  border-bottom-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.recipe-result-slot img { width: 38px; height: 38px; image-rendering: pixelated; object-fit: contain; }

/* --------------------------------------------------------------- Dual-Morphism Discord Auth Gateway & SMP Hub */
.auth-gateway {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.staff-token-accordion {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.staff-token-accordion summary {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.staff-token-accordion summary:hover {
  color: #e2e8f0;
}

.discord-auth-card {
  padding: 28px 30px;
  border-color: rgba(138, 112, 255, 0.35);
}
.admin-auth-card {
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font: 700 10.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.discord-pill {
  background: rgba(88, 101, 242, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(88, 101, 242, 0.45);
}
.admin-pill {
  background: rgba(246, 193, 92, 0.16);
  color: var(--amber);
  border: 1px solid rgba(246, 193, 92, 0.38);
  align-self: flex-start;
}
.discord-btn {
  background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
  background-size: 240% 240%;
  animation: gradientFlow 5s ease infinite;
  color: #ffffff;
  font: 700 17px "Times New Roman", Times, Georgia, serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 20px rgba(88, 101, 242, 0.42),
    inset 0 2px 2px rgba(255, 255, 255, 0.32),
    inset 0 -3px 6px rgba(23, 27, 84, 0.55);
}
.discord-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.field-label {
  font: 600 11.5px var(--font);
  color: #cbd5e1;
}
.code-input {
  font-size: 20px;
  letter-spacing: 0.32em;
  text-align: center;
  font-weight: 700;
  color: #a5b4fc;
}
.matched-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(60, 230, 150, 0.13), rgba(26, 33, 56, 0.9));
  border: 1px solid rgba(60, 230, 150, 0.38);
  box-shadow: var(--obsidian-well-shadow);
}
.matched-account-card img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  image-rendering: pixelated;
  border: 2px solid rgba(60, 230, 150, 0.55);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: var(--dim);
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}
.server-quick-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--obsidian-well);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 10px;
}

/* Topbar Identity Pill */
.identity-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 11px 4px 6px;
  border-radius: 999px;
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--obsidian-btn-shadow);
}
.identity-pill img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  image-rendering: pixelated;
}
.identity-pill .ign {
  font: 700 12.5px var(--font);
  color: var(--text);
}
.identity-pill .sub {
  font: 500 10.5px var(--mono);
  color: var(--muted);
}

/* SMP Hero & Player Profile Clay-Glass Banner */
.smp-hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(138, 112, 255, 0.28), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(60, 230, 150, 0.18), transparent 55%),
    linear-gradient(150deg, #1e233a, #131626);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--obsidian-card-shadow);
}
.player-id-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(14, 17, 29, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(138, 112, 255, 0.32);
  box-shadow: var(--obsidian-well-shadow);
}
.player-id-card img.mc-body {
  width: 58px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

/* Concept & Rule Cards Grid */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}
.concept-card {
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--obsidian-card-shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.concept-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 112, 255, 0.45);
}
.concept-highlights {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #cbd5e1;
  font-size: 12.5px;
}

/* Custom Recipes Showcase Workbench */
.recipes-showcase-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.workbench-stage {
  background: linear-gradient(155deg, #21263d, #151829);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--obsidian-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mc-crafting-grid {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(3, 62px);
  gap: 6px;
  background: #2b2d38;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--obsidian-well-shadow);
}
.mc-craft-slot {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1c2033, #131624);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  position: relative;
}
.mc-craft-slot img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  object-fit: contain;
}
.mc-craft-slot .slot-lbl {
  font-size: 9px;
  color: var(--muted);
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recipe-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.recipe-select-card {
  background: var(--obsidian-btn-grad);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--obsidian-btn-shadow);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.recipe-select-card:hover, .recipe-select-card.active {
  border-color: rgba(168, 85, 247, 0.65);
  background: linear-gradient(145deg, #2d2546, #1d1930);
  transform: translateY(-2px);
}
.recipe-select-card img {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  object-fit: contain;
}

/* Leaderboard Podium */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.podium-card {
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--obsidian-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.podium-card.rank-1 { border-color: rgba(246, 193, 92, 0.6); background: linear-gradient(150deg, rgba(246, 193, 92, 0.14), #181c2e); }
.podium-card.rank-2 { border-color: rgba(148, 163, 184, 0.5); }
.podium-card.rank-3 { border-color: rgba(217, 119, 6, 0.5); }

/* Ancient SMP Rune Brand Logo */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(56, 232, 255, 0.35));
  flex: none;
}
.brand-logo.big {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 16px rgba(56, 232, 255, 0.45));
}
.brand-logo.hero-emblem {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 16px rgba(56, 232, 255, 0.45));
}

/* Server Management Panel (Console + File Manager + 24GB RAM Telemetry) */
.panel-split-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 1.25fr);
  gap: 16px;
  align-items: start;
}
.console-terminal {
  background: #070910;
  border: 1px solid rgba(56, 232, 255, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  height: 430px;
  overflow-y: auto;
  font: 12px/1.5 var(--mono);
  color: #dbeafe;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
}
.console-line {
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}
.console-line.warn { color: #fde047; }
.console-line.err { color: #fca5a5; font-weight: 600; }
.console-line.ok { color: #6ee7b7; }
.resource-meter {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(9, 11, 18, 0.85);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}
.resource-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3ce696, #38e8ff, #ffbe55);
  transition: width 0.3s ease;
}
.file-path-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--obsidian-well);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 12px var(--mono);
  color: #38e8ff;
}
.file-table-wrap {
  max-height: 430px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 24, 0.72);
}
.code-editor-area {
  width: 100%;
  min-height: 420px;
  font: 12.5px/1.5 var(--mono);
  background: #080a12 !important;
  color: #f1f5f9 !important;
  tab-size: 2;
}

@media (max-width: 1250px) {
  .screens-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .preview-pane { grid-column: 1 / -1; }
  .sec-grid, .auth-gateway, .smp-hero-banner, .recipes-showcase-layout, .panel-split-grid { grid-template-columns: 1fr; }
  body { overflow: auto; }
  .app { height: auto; min-height: 100%; }
}
@media (max-width: 760px) {
  .screens-layout { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .type-picker { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
}

/* =========================================================================
   Ancient SMP — Dedicated Sidebar Navigation & Button Overflow Fixes
   ========================================================================= */
.btn, .tab, .seg-btn {
  white-space: normal !important;
  height: auto !important;
  min-height: 36px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.small {
  min-height: 30px;
  padding: 6px 11px;
}

.app.app-with-sidebar {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: 1fr;
  height: 100vh;
  gap: 14px;
  padding: 12px;
  overflow: hidden;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 22px;
  overflow-y: auto;
  height: 100%;
  background: linear-gradient(165deg, rgba(24, 29, 48, 0.94), rgba(12, 15, 26, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-ip-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(9, 12, 22, 0.78);
  border: 1px solid rgba(60, 230, 150, 0.28);
}

.sidebar-ip-code {
  font-size: 12px;
  font-weight: 700;
  color: #3ce696;
  word-break: break-all;
}

.sidebar-section-label {
  font: 800 10px var(--mono);
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 4px 6px 0;
  text-transform: uppercase;
}

.sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sidebar-tabs .tab {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  background: linear-gradient(125deg, rgba(38, 46, 82, 0.72) 0%, rgba(56, 35, 88, 0.72) 100%);
  background-size: 220% 220%;
  animation: gradientFlow 7s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.18s ease;
}

.sidebar-tabs .tab:hover {
  filter: brightness(1.16);
  transform: translateX(2px);
}

.sidebar-tabs .tab.active {
  background: linear-gradient(125deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
  background-size: 240% 240%;
  animation: gradientFlow 5s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.sidebar-rp-box {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.16), rgba(30, 27, 75, 0.72));
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .identity-pill {
  width: 100%;
  justify-content: flex-start;
}

.recipe-image-showcase {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.82);
  border: 1px solid rgba(246, 193, 92, 0.32);
  text-align: center;
}

.recipe-image-showcase img {
  max-width: 100%;
  max-height: 210px;
  border-radius: 10px;
  object-fit: contain;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.kit-loadout-banner {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1.25fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(17, 24, 39, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.kit-loadout-banner img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid rgba(246, 193, 92, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  cursor: zoom-in;
}

.corruptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 14px;
}

.corruption-card {
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(30, 27, 58, 0.86), rgba(15, 18, 32, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

/* Ensure all text, code tags, badges, and sub-boxes inside cards wrap cleanly inside their container */
.card, .concept-card, .corruption-card, .kpi-card, .rule-stat-box, .rule-spacious-card,
.recipe-select-card, .podium-card, .workbench-stage, .player-id-card, .smp-hero-banner,
.ability-box, .corruption-card-header {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.corruption-card code, .concept-card code, .card code, .badge-pill {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100%;
  line-height: 1.4;
}

.ability-box {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.68);
  border: 1px solid rgba(56, 232, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.ability-tag {
  font: 700 10px var(--mono);
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mc-craft-slot .slot-lbl {
  font-size: 9px;
  color: var(--muted);
  max-width: 100%;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.corruption-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.65);
}

.corruption-card-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(168, 85, 247, 0.4));
}

.mc-inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: -3px;
  margin-right: 4px;
  flex: none;
}

.showcase-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.showcase-banner-box {
  background: rgba(10, 12, 22, 0.86);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-banner-box img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

/* =========================================================================
   Spacious Editorial UX & Mobile-First App Shell (De-Cluttered System)
   ========================================================================= */
.mobile-topbar,
.mobile-bottom-nav {
  display: none;
}

/* Clean Sub-Category Pill Switcher inside Overview Tab */
.hub-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(11, 14, 24, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: var(--obsidian-well-shadow);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(14px);
}
.hub-subnav::-webkit-scrollbar {
  display: none;
}
.hub-subnav-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 34, 56, 0.72);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 12px;
  font: 700 13px var(--font);
  cursor: pointer;
  white-space: nowrap !important;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.16s var(--ease);
}
.hub-subnav-btn:hover {
  color: #ffffff;
  background: rgba(45, 54, 88, 0.9);
}
.hub-subnav-btn.active {
  background: linear-gradient(125deg, #f59e0b 0%, #ec4899 52%, #8b5cf6 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.32);
}

/* Deferred off-screen rendering for heavy sections (modern-web-guidance) */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 340px;
}

/* Progressive Disclosure Details inside Cards (cuts text clutter by 65%) */
details.clean-details {
  width: 100%;
  margin-top: 4px;
  background: rgba(9, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 7px 11px;
  text-align: left;
}
details.clean-details > summary {
  cursor: pointer;
  font: 700 11.5px var(--font);
  color: #a5b4fc;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
details.clean-details > summary::-webkit-details-marker {
  display: none;
}
details.clean-details > summary::after {
  content: "▾ Details";
  font: 600 10.5px var(--mono);
  color: var(--muted);
}
details.clean-details[open] > summary::after {
  content: "▴ Hide";
}
details.clean-details .details-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* Collapsible Reference Screenshot Drawer */
details.screenshot-drawer {
  background: rgba(12, 15, 28, 0.78);
  border: 1px dashed rgba(168, 85, 247, 0.38);
  border-radius: 14px;
  padding: 10px 14px;
}
details.screenshot-drawer > summary {
  cursor: pointer;
  font: 700 12.5px var(--font);
  color: #fde047;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
details.screenshot-drawer > summary::-webkit-details-marker {
  display: none;
}
details.screenshot-drawer > summary::after {
  content: "Tap to Expand ▾";
  font: 600 11px var(--mono);
  color: #cbd5e1;
}
details.screenshot-drawer[open] > summary::after {
  content: "Collapse ▴";
}
details.screenshot-drawer[open] .showcase-banners-grid {
  margin-top: 12px;
  margin-bottom: 0;
}

/* Exclusive Rulebook Accordion Cards */
details.rule-accordion-card {
  background: linear-gradient(155deg, rgba(28, 33, 54, 0.94), rgba(16, 19, 32, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: border-color 0.16s ease;
}
details.rule-accordion-card[open] {
  border-color: rgba(245, 158, 11, 0.55);
}
details.rule-accordion-card > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
details.rule-accordion-card > summary::-webkit-details-marker {
  display: none;
}
details.rule-accordion-card .rule-points-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Horizontal Recipe Pill Strip for Fast Selection */
.recipe-pill-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.recipe-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 13px;
  background: rgba(26, 31, 52, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font: 700 12.5px var(--font);
  cursor: pointer;
  white-space: nowrap !important;
  flex: 0 0 auto;
  transition: all 0.15s ease;
}
.recipe-pill-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 4px;
}
.recipe-pill-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.28));
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.rules-quick-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.rule-stat-box {
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.rules-spacious-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-point-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(10, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 9px 12px;
}

/* =========================================================================
   Mobile & Tablet Responsive Overhaul (<= 960px)
   Hides giant sidebar, activates sticky top bar + thumb-friendly bottom nav
   ========================================================================= */
@media (max-width: 960px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app.app-with-sidebar {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  /* Hide the tall desktop sidebar on mobile so content starts immediately */
  .sidebar-nav {
    display: none !important;
  }

  /* Compact Sticky Top Header on Mobile */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(11, 14, 24, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.28);
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .mobile-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: none;
  }
  .mobile-brand-title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.05;
  }
  .mobile-status-dot {
    font: 700 10px var(--mono);
    color: var(--green);
  }
  .mobile-chip-btn {
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    min-height: 30px !important;
    border-radius: 9px !important;
    white-space: nowrap !important;
  }

  /* Workspace spacing on mobile (leaves room for bottom nav dock) */
  .workspace {
    padding: 10px 10px 84px;
    overflow: visible;
  }
  .security-layout {
    height: auto;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 16px;
    gap: 12px;
  }

  /* Fixed Thumb-Friendly Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    background: rgba(10, 13, 23, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(168, 85, 247, 0.32);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.72);
    gap: 4px;
  }
  .mobile-nav-item {
    flex: 1 1 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    min-height: 48px !important;
    border-radius: 11px !important;
    font: 700 10.5px var(--font) !important;
    color: #94a3b8 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
  }
  .mobile-nav-item .mc-inline-icon {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }
  .mobile-nav-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(236, 72, 153, 0.28)) !important;
    border-color: rgba(236, 72, 153, 0.48) !important;
  }

  /* Compact Hero & KPI Cards on Mobile */
  .smp-hero-banner {
    grid-template-columns: 1fr;
    padding: 14px 15px;
    gap: 12px;
    border-radius: 16px;
  }
  .smp-hero-banner h1 {
    font-size: 20px !important;
  }
  .brand-logo.hero-emblem {
    width: 44px;
    height: 44px;
  }
  .player-id-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .player-id-card img.mc-body {
    width: 42px;
    height: 70px;
  }

  /* 2x2 Compact KPI Grid on Mobile */
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .kpi-card {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .kpi-card .kpi-val,
  .kpi-card .kpi-value {
    font-size: 18px !important;
  }

  /* Sub-nav pills stick cleanly below mobile topbar */
  .hub-subnav {
    top: 52px;
    padding: 5px;
    gap: 6px;
  }
  .hub-subnav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Compact Cards & Grids on Mobile */
  .card {
    padding: 12px 13px;
    border-radius: 15px;
    gap: 10px;
  }
  .corruptions-grid,
  .concepts-grid,
  .showcase-banners-grid,
  .podium-grid,
  .kit-loadout-banner,
  .recipes-showcase-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mc-crafting-grid {
    grid-template-columns: repeat(3, 52px);
    grid-template-rows: repeat(3, 52px);
    padding: 7px;
  }
  .mc-craft-slot {
    width: 52px;
    height: 52px;
  }
  .toasts {
    bottom: 74px;
    right: 10px;
    left: 10px;
  }
}


/* =========================================================================
   Ancient SMP — Corrupted Edition x Relique-Grade Competitive Hub & WebGL UI
   ========================================================================= */

/* Horizontal Drag-Snap Carousel (.rqc) */
.rqc {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.rqc-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.rqc-track::-webkit-scrollbar { display: none; }
.rqc-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.rqc-slide {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: linear-gradient(155deg, rgba(24, 28, 48, 0.95), rgba(11, 14, 25, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.rqc-slide:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.65);
}
.rqc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.rqc-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rqc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rqc-dot.active {
  width: 24px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
}

/* Corrupted ELO Classification Ladder Bar */
.elo-ladder-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.elo-tier-step {
  padding: 12px 13px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(20, 24, 42, 0.92), rgba(10, 13, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.elo-tier-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tier-col, #a855f7);
}
.elo-tier-step.current {
  border-color: var(--tier-col, #f59e0b);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.22);
}

/* Leaderboard Sub-Navigation & Autocomplete Search */
.lb-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(22, 27, 46, 0.95), rgba(12, 15, 26, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.lb-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lb-tab-btn {
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 19, 34, 0.85);
  color: #cbd5e1;
  font: 700 12.5px var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s ease;
}
.lb-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.45);
}
.lb-tab-btn.active {
  background: linear-gradient(125deg, #f59e0b 0%, #ec4899 52%, #8b5cf6 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.32);
}
.lb-search-wrap {
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 370px;
}
.lb-search-input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  border-radius: 12px;
  border: 1px solid rgba(56, 232, 255, 0.3);
  background: rgba(8, 11, 20, 0.92);
  color: #f8fafc;
  font: 600 13px var(--font);
  outline: none;
}
.lb-search-input:focus {
  border-color: #38e8ff;
  box-shadow: 0 0 0 3px rgba(56, 232, 255, 0.18);
}
.lb-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #38e8ff;
  pointer-events: none;
}
.lb-suggest-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  background: #121629;
  border: 1px solid rgba(56, 232, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85);
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lb-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: #f1f5f9;
  text-align: left;
  width: 100%;
  font: inherit;
}
.lb-suggest-item:hover {
  background: rgba(56, 232, 255, 0.14);
}

/* Hall of Fame 3D WebGL Top-3 Podium (.hof) */
.hof-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 16px;
  align-items: end;
  margin: 6px 0 10px;
}
.hof-card {
  position: relative;
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: linear-gradient(165deg, rgba(26, 31, 54, 0.95), rgba(11, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  overflow: hidden;
}
.hof-card:hover {
  transform: translateY(-5px);
}
.hof-card.pos-1 {
  border-color: rgba(250, 204, 21, 0.68);
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 204, 21, 0.22), transparent 60%),
    linear-gradient(165deg, rgba(36, 31, 20, 0.96), rgba(13, 15, 26, 0.98));
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.18);
  padding-top: 24px;
}
.hof-card.pos-2 {
  border-color: rgba(148, 163, 184, 0.55);
  background:
    radial-gradient(circle at 50% 18%, rgba(148, 163, 184, 0.18), transparent 60%),
    linear-gradient(165deg, rgba(24, 30, 46, 0.96), rgba(12, 15, 25, 0.98));
}
.hof-card.pos-3 {
  border-color: rgba(249, 115, 22, 0.55);
  background:
    radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(165deg, rgba(34, 23, 20, 0.96), rgba(12, 15, 25, 0.98));
}
.hof-canvas-wrap {
  width: 146px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hof-canvas {
  width: 146px;
  height: 168px;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.72));
}
.hof-rank-pill {
  font: 900 11px var(--mono);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hof-card.pos-1 .hof-rank-pill { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1c1004; }
.hof-card.pos-2 .hof-rank-pill { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0f172a; }
.hof-card.pos-3 .hof-rank-pill { background: linear-gradient(135deg, #fdba74, #ea580c); color: #1c0a02; }
.hof-elo-big {
  font: 800 24px var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hof-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
}

/* Ranked Leaderboard Rows (#4+) */
.lb-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-player-row {
  display: grid;
  grid-template-columns: 48px 52px minmax(170px, 1.4fr) repeat(4, minmax(82px, 0.75fr)) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(22, 27, 45, 0.92), rgba(13, 16, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lb-player-row:hover {
  transform: translateX(3px);
  border-color: rgba(56, 232, 255, 0.45);
  background: linear-gradient(155deg, rgba(28, 35, 58, 0.96), rgba(16, 20, 35, 0.98));
}
.lb-rk-num {
  font: 800 14px var(--mono);
  color: #94a3b8;
  text-align: center;
}
.lb-mini-3d {
  width: 46px;
  height: 54px;
  display: block;
}
.lb-metric-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lb-metric-col .lbl {
  font: 700 9.5px var(--mono);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lb-metric-col .val {
  font: 800 13.5px var(--mono);
  color: #f1f5f9;
}

/* Clans & Teams Cards (.tm-card) */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}
.tm-card {
  background: linear-gradient(160deg, rgba(24, 29, 50, 0.95), rgba(12, 15, 27, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52);
}
.tm-metrics-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.tm-mcell {
  background: rgba(9, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tm-mcell .k {
  font: 700 9.5px var(--mono);
  color: #94a3b8;
  text-transform: uppercase;
}
.tm-mcell .v {
  font: 800 13.5px var(--mono);
  color: #f8fafc;
}
.tm-members-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tm-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(17, 22, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font: 600 12px var(--font);
  color: #e2e8f0;
  transition: all 0.15s ease;
}
.tm-member-chip:hover {
  border-color: #38e8ff;
  transform: translateY(-1px);
}
.tm-member-chip img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  image-rendering: pixelated;
}
.tm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
}
.tm-dot.on {
  background: #3ce696;
  box-shadow: 0 0 8px #3ce696;
}

/* Joined 202 Players Grid (.jn-grid) */
.jn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 10px;
}
.jn-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(22, 27, 45, 0.92), rgba(12, 15, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}
.jn-card:hover {
  border-color: #a855f7;
  transform: translateY(-2px);
}
.jn-card img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  image-rendering: pixelated;
  flex: none;
}

/* Server Pulse Telemetry (.pl-*) */
.pl-gauges-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
}
.pl-gauge-box {
  background: linear-gradient(155deg, rgba(21, 26, 44, 0.95), rgba(11, 14, 24, 0.98));
  border: 1px solid rgba(56, 232, 255, 0.24);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pl-gauge-box.pl-gauge-critical {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(155deg, rgba(40, 16, 24, 0.95), rgba(18, 8, 12, 0.98));
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.15), inset 0 1px 0 rgba(248, 113, 113, 0.3);
}
.pl-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}
.pl-chart-card {
  background: linear-gradient(160deg, rgba(18, 22, 38, 0.95), rgba(10, 12, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Interactive Player Profile Modal (#pf-modal) */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.pf-modal-dialog {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #171c30 0%, #0c0f1c 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 24px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.88);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.pf-top-grid {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.pf-skin-stage {
  background:
    radial-gradient(circle at 50% 25%, rgba(56, 232, 255, 0.2), transparent 65%),
    linear-gradient(165deg, rgba(15, 19, 34, 0.95), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(56, 232, 255, 0.28);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  text-align: center;
}
.pf-username,
.hof-card .display,
.player-id-card .display {
  font: 800 17.5px var(--font);
  letter-spacing: -0.015em;
  color: #f8fafc;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pf-stat-tile {
  background: rgba(10, 13, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf-stat-tile .k {
  font: 700 10px var(--mono);
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pf-stat-tile .v {
  font: 800 20px var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.pf-modal-dialog .elo-ladder-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.pf-modal-dialog .elo-tier-step {
  padding: 9px 8px 9px 10px;
  border-radius: 11px;
  gap: 2px;
}
.pf-mid-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}
.pf-tier-source-box {
  background: rgba(10, 13, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tchip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgba(20, 25, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font: 700 11.5px var(--mono);
}
.tchip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tb-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font: 800 10.5px var(--mono);
  letter-spacing: 0.04em;
}
.tb-badge.ht1 { background: linear-gradient(135deg, #fde047, #f59e0b); color: #1c1004; }
.tb-badge.lt1 { background: rgba(245, 158, 11, 0.25); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.55); }
.tb-badge.ht2 { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; }
.tb-badge.lt2 { background: rgba(244, 63, 94, 0.24); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.5); }
.tb-badge.ht3 { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.tb-badge.lt3 { background: rgba(168, 85, 247, 0.24); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.5); }
.tb-badge.ht4, .tb-badge.lt4 { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.45); }
.tb-badge.ht5, .tb-badge.lt5 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

/* Responsive adjustments for Podium, Rows, and Profile Modal */
@media (max-width: 960px) {
  .hof-podium {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hof-card.pos-1 { order: -1; }
  .lb-player-row {
    grid-template-columns: 36px 44px minmax(120px, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .lb-player-row .hide-sm { display: none; }
  .tm-metrics-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pf-top-grid,
  .pf-mid-grid {
    grid-template-columns: 1fr;
  }
  .pf-stat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hof-podium,
  .champion-podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hof-card.pos-1 {
    order: -1;
  }
}


/* --------------------------------------------------------------- Status Indicator & Pulse Dot */
.status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.status-indicator.live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(60, 230, 150, 0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --------------------------------------------------------------- 24px Grid Rhythm Utilities */
.gap-24 { gap: 24px !important; }
.p-24 { padding: 24px !important; }
.grid-24 { display: grid; gap: 24px; }
.obsidian-flow { display: flex; flex-direction: column; gap: 24px; }

/* Apply 24px rhythm to main application containers */
.app.app-with-sidebar {
  gap: 20px;
  padding: 16px;
}
@media (min-width: 1400px) {
  .app.app-with-sidebar {
    gap: 24px;
    padding: 24px;
  }
}
.sidebar-nav {
  gap: 16px;
  padding: 24px 18px;
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(147, 102, 249, 0.2);
  box-shadow: var(--obsidian-shadow);
}
.smp-hero-banner {
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.concepts-grid,
.podium-grid,
.panel-split-grid,
.recipes-showcase-layout {
  gap: 24px;
}

/* --------------------------------------------------------------- Minecraft Enchanted Glint Shader */
.glint-animated {
  position: relative;
  overflow: hidden;
}
.glint-animated::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(147, 102, 249, 0.45) 40%,
    rgba(94, 245, 180, 0.45) 50%,
    rgba(147, 102, 249, 0.45) 60%,
    transparent 80%
  );
  transform: rotate(-25deg);
  pointer-events: none;
  animation: glintShimmer 3s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes glintShimmer {
  0% { transform: translateY(-100%) rotate(-25deg); }
  50% { transform: translateY(100%) rotate(-25deg); }
  100% { transform: translateY(-100%) rotate(-25deg); }
}

/* --------------------------------------------------------------- 3x3 Crafting Forge & Tooltips */
.forge-slot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 8, 0.95);
  border: 1px solid rgba(147, 102, 249, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  color: #f8fafc;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}
.mc-craft-slot:hover .forge-slot-tooltip {
  opacity: 1;
}
.give-cmd-well {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--obsidian-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--well-inset);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #38e8ff;
  overflow-x: auto;
}

/* --------------------------------------------------------------- Nemesis & Soul Bounties */
.nemesis-card {
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--obsidian-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bounty-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #bg-soul-canvas {
    display: none !important;
  }
}



/* --------------------------------------------------------------- Events, Restarts & Marvelous Feats Hub */
.events-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.events-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.feat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--obsidian-card-grad);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--speed-fast), border-color var(--speed-fast);
}
.feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.35);
}
.feat-badge-rarity {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.casualty-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 20, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color var(--speed-fast), background var(--speed-fast);
}
.casualty-item:hover {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(22, 27, 48, 0.96);
}
.restart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 25, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.18);
}
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.sidebar-ip-code {
  transition: background var(--speed-fast), border-color var(--speed-fast), color var(--speed-fast);
}
.sidebar-ip-code:hover {
  background: rgba(56, 230, 150, 0.16) !important;
  color: #5ef5b4 !important;
  border-color: rgba(56, 230, 150, 0.4) !important;
}


/* Crisp numerals & usernames on Podium, Rows, and Profile Modal */
.hof-card .display,
.pf-username {
  font-family: var(--font) !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
}
.hof-elo-big,
.pf-stat-tile .v,
.lb-metric-col .val,
.hof-stats-mini strong {
  font-family: var(--mono) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.03em !important;
}

/* Real WebGL 3D Seated Skins (skinview3d) */
.hof-canvas-wrap { width: 180px; height: 210px; }
.hof-canvas { width: 180px; height: 210px; cursor: grab; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.7)); }
.hof-canvas:active { cursor: grabbing; }
.pf-skin-stage .hof-canvas { width: 190px; height: 230px; }
.lb-player-row { grid-template-columns: 48px 64px minmax(170px, 1.4fr) repeat(4, minmax(82px, 0.75fr)) auto; }
.lb-mini-3d { width: 60px; height: 70px; image-rendering: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }

/* ===== Hall of Fame stage (big 3D seated models over name plates) ===== */
.hof-stage {
  position: relative;
  border-radius: 26px;
  padding: 26px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(250, 204, 21, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 18% 70%, rgba(148, 163, 184, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 82% 70%, rgba(249, 115, 22, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0.92)),
    url('/bg-ancient.jpg') center / cover no-repeat;
  margin: 6px 0 12px;
}
.hof-stage-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 800 12px var(--mono);
  letter-spacing: 0.32em;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.hof-stage-title .hof-line { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.6), transparent); }
.hof-stage .hof-podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 18px;
  align-items: end;
  margin: 0;
}
.hof-col { display: flex; flex-direction: column; align-items: center; cursor: pointer; min-width: 0; }
.hof-model { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; }
.hof-model::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 62%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 70%);
  z-index: 0;
}
.hof-stage .hof-canvas { position: relative; z-index: 1; width: 240px; height: 270px; max-width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); transition: transform 0.25s var(--ease); }
.hof-col.pos-1 .hof-canvas { width: 310px; height: 340px; }
.hof-col:hover .hof-canvas { transform: translateY(-6px) scale(1.02); }
.hof-plate {
  width: 100%;
  margin-top: -2px;
  border-radius: 20px 20px 16px 16px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.82), rgba(9, 11, 20, 0.94));
  position: relative;
  z-index: 2;
}
.hof-col.pos-1 .hof-plate { border-color: rgba(250, 204, 21, 0.55); background: linear-gradient(180deg, rgba(64, 52, 18, 0.78), rgba(12, 12, 18, 0.95)); box-shadow: 0 -12px 40px rgba(250, 204, 21, 0.14); }
.hof-col.pos-2 .hof-plate { border-color: rgba(203, 213, 225, 0.4); }
.hof-col.pos-3 .hof-plate { border-color: rgba(249, 115, 22, 0.45); background: linear-gradient(180deg, rgba(60, 32, 18, 0.78), rgba(12, 11, 16, 0.95)); }
.hof-place-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 10.5px var(--mono); letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.35); color: #e2e8f0;
}
.hof-col.pos-1 .hof-place-pill { color: #fde047; border-color: rgba(250, 204, 21, 0.6); }
.hof-col.pos-3 .hof-place-pill { color: #fdba74; border-color: rgba(249, 115, 22, 0.55); }
.hof-name { font: 800 19px var(--font); letter-spacing: -0.02em; color: #f8fafc; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-col.pos-1 .hof-name { font-size: 22px; }
.hof-chip { font: 800 9.5px var(--mono); letter-spacing: 0.08em; padding: 2px 7px; border-radius: 999px; background: rgba(168, 85, 247, 0.18); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.hof-chip.ok { background: rgba(74, 222, 128, 0.14); color: #86efac; border-color: rgba(74, 222, 128, 0.4); }
.hof-col.pos-1 .hof-elo-big { color: #fde047; }
.hof-col.pos-2 .hof-elo-big { color: #e2e8f0; }
.hof-col.pos-3 .hof-elo-big { color: #fdba74; }
/* Dancing 3D player card */
.pf-skin-stage .hof-canvas { width: 210px; height: 270px; transition: opacity 0.35s ease; }
.hof-canvas.skin3d-loading { opacity: 0; }
.hof-canvas.skin3d-ready { opacity: 1; }
@media (max-width: 820px) {
  .hof-stage .hof-podium { grid-template-columns: 1fr; }
  .hof-col.pos-1 { order: -1; }
  .hof-stage .hof-canvas, .hof-col.pos-1 .hof-canvas { width: 240px; height: 270px; }
}

.lb-player-avatar {
  width: 48px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}
.lb-player-row:hover .lb-player-avatar {
  transform: scale(1.1) translateY(-2px);
}


/* =========================================================================
   3D PODIUM PLATFORMS & STANDS (Gold Platform, Iron Stand, Copper Stand)
   ========================================================================= */
.hof-stand-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -38px;
  margin-bottom: 0px;
  pointer-events: none;
}
.hof-col.pos-1 .hof-stand-wrapper {
  margin-top: -46px;
}
.hof-col.pos-2 .hof-stand-wrapper,
.hof-col.pos-3 .hof-stand-wrapper {
  margin-top: -38px;
}

.hof-stand-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.85));
}
.hof-col:hover .hof-stand-platform {
  transform: translateY(-3px) scale(1.02);
}

/* 1ST POSITION: GOLD PLATFORM (Small prestigious gold platform, radiant underglow) */
.stand-gold .hof-stand-surface {
  width: 200px;
  height: 22px;
  border-radius: 9px 9px 3px 3px;
  background:
    linear-gradient(180deg, rgba(254, 240, 138, 0.45) 0%, transparent 60%),
    url('/textures/block/gold_block.png') center / 32px repeat;
  image-rendering: pixelated;
  border: 2px solid #fde047;
  border-bottom: 1px solid #b45309;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 5px rgba(113, 63, 18, 0.8),
    0 0 24px rgba(250, 204, 21, 0.48);
}
.stand-gold .hof-stand-rim {
  width: 216px;
  height: 7px;
  border-radius: 3px;
  margin-top: -2px;
  background: linear-gradient(90deg, #854d0e, #ca8a04 20%, #fef08a 50%, #eab308 80%, #854d0e);
  border: 1px solid #fef08a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.stand-gold .hof-stand-tier {
  width: 228px;
  height: 14px;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(180deg, rgba(60, 48, 16, 0.96) 0%, rgba(18, 16, 12, 0.98) 100%);
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
}
.stand-gold .hof-stand-tier::before,
.stand-gold .hof-stand-tier::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 6px #fde047;
}
.stand-gold .hof-stand-ambient-glow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 50px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(250, 204, 21, 0.42) 0%, rgba(217, 119, 6, 0.15) 50%, transparent 78%);
}

/* 2ND POSITION: IRON STAND (Architectural stand with iron pillars, silver atmospheric glow) */
.stand-iron .hof-stand-surface {
  width: 168px;
  height: 18px;
  border-radius: 7px 7px 3px 3px;
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.45) 0%, transparent 60%),
    url('/textures/block/iron_block.png') center / 32px repeat;
  image-rendering: pixelated;
  border: 2px solid #e2e8f0;
  border-bottom: 1px solid #475569;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.65),
    inset 0 -2px 5px rgba(30, 41, 59, 0.8),
    0 0 20px rgba(203, 213, 225, 0.38);
}
.stand-iron .hof-stand-rim {
  width: 180px;
  height: 6px;
  border-radius: 3px;
  margin-top: -2px;
  background: linear-gradient(90deg, #334155, #64748b 20%, #f8fafc 50%, #94a3b8 80%, #334155);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.stand-iron .hof-stand-tier {
  width: 190px;
  height: 12px;
  border-radius: 2px 2px 7px 7px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 20, 32, 0.98) 100%);
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
}
.stand-iron .hof-stand-tier::before,
.stand-iron .hof-stand-tier::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #cbd5e1;
  box-shadow: 0 0 5px #94a3b8;
}
.stand-iron .hof-stand-ambient-glow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 46px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(203, 213, 225, 0.35) 0%, rgba(100, 116, 139, 0.12) 50%, transparent 78%);
}

/* 3RD POSITION: COPPER STAND (Cut copper stand with rivets, warm rustic amber glow) */
.stand-copper .hof-stand-surface {
  width: 156px;
  height: 17px;
  border-radius: 7px 7px 3px 3px;
  background:
    linear-gradient(180deg, rgba(254, 215, 170, 0.45) 0%, transparent 60%),
    url('/textures/block/copper_block.png') center / 32px repeat;
  image-rendering: pixelated;
  border: 2px solid #ea580c;
  border-bottom: 1px solid #7c2d12;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -2px 5px rgba(67, 20, 7, 0.8),
    0 0 20px rgba(234, 88, 12, 0.38);
}
.stand-copper .hof-stand-rim {
  width: 168px;
  height: 6px;
  border-radius: 3px;
  margin-top: -2px;
  background: linear-gradient(90deg, #7c2d12, #c2410c 20%, #fed7aa 50%, #ea580c 80%, #7c2d12);
  border: 1px solid #fdba74;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.stand-copper .hof-stand-tier {
  width: 178px;
  height: 11px;
  border-radius: 2px 2px 7px 7px;
  background: linear-gradient(180deg, rgba(55, 26, 16, 0.96) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}
.stand-copper .hof-stand-tier::before,
.stand-copper .hof-stand-tier::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #fdba74;
  box-shadow: 0 0 5px #ea580c;
}
.stand-copper .hof-stand-ambient-glow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 44px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(234, 88, 12, 0.36) 0%, rgba(154, 52, 18, 0.14) 50%, transparent 78%);
}
