@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Share+Tech+Mono&family=Raleway:wght@200;300;400;500&display=swap');

:root {
  --bg-void: #0c0c0c;
  --bg-deep: #11100f;
  --bg-navy: #14120f;
  --bg-charcoal: #171511;
  --bg-panel: rgba(18, 17, 15, 0.94);
  --bg-glass: rgba(20, 19, 17, 0.86);
  --border-dim: rgba(238, 232, 220, 0.1);
  --border-active: rgba(204, 172, 73, 0.32);
  --border-gold: rgba(204, 172, 73, 0.42);
  --glow-blue: #ccac49;
  --glow-blue-soft: rgba(204, 172, 73, 0.1);
  --glow-blue-mid: rgba(204, 172, 73, 0.2);
  --gold: #ccac49;
  --gold-soft: rgba(204, 172, 73, 0.12);
  --silver: #b8b0a3;
  --white: #eee8dc;
  --red-alert: #ff4d4d;
  --red-soft: rgba(255, 77, 77, 0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-body: 'Raleway', sans-serif;
  --section-pad: clamp(80px, 10vw, 140px);
  --container: 1280px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg-void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #090909; }
::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }
::selection { background: rgba(204, 172, 73, 0.32); color: #fff; }

#atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 74% 28%, rgba(204, 172, 73, 0.11), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(238, 232, 220, 0.055), transparent 30%),
    linear-gradient(120deg, rgba(17, 16, 14, 0.98) 0%, rgba(10, 10, 10, 1) 52%, rgba(17, 15, 12, 0.98) 100%),
    var(--bg-void);
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(204, 172, 73, 0.095), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(238, 232, 220, 0.035), transparent 24%),
    linear-gradient(rgba(238,232,220,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,232,220,0.014) 1px, transparent 1px);
  background-size: auto, auto, 92px 92px, 92px 92px;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,0.72), transparent 96%);
  animation: gridDrift 22s linear infinite;
}

.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.014) 2px, rgba(0,0,0,0.014) 4px);
}

.container { width: min(var(--container), calc(100% - clamp(40px, 8vw, 120px))); margin: 0 auto; }
.mono-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: #d8bb5d; text-transform: uppercase; }
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}
.bracket-corner { position: relative; }
.bracket-corner::before, .bracket-corner::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
}
.bracket-corner::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.bracket-corner::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }

.app-shell { min-height: 100vh; }
.view { display: none; min-height: 100vh; padding: calc(92px + clamp(28px, 4vw, 56px)) 0 var(--section-pad); animation: viewIn 0.5s ease both; }
.view.active { display: block; }
.view.landing {
  display: none;
  align-items: center;
  padding-top: 82px;
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0.45), rgba(8, 8, 8, 0.96)), url('/assets/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}
.view.landing.active { display: flex; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled, .nav.open {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dim);
  padding: 14px 0;
}
.nav-inner {
  width: min(var(--container), calc(100% - clamp(40px, 8vw, 120px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 174px 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  width: 158px;
  height: 44px;
  background: transparent;
  border: 0;
}
.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(204,172,73,0.16));
}
.nav-links { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 36px); }
.nav-link, .icon-button, .hamburger {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--white);
  opacity: 0.72;
  background: transparent;
  border: 0;
  transition: var(--transition-fast);
}
.nav-link { position: relative; padding: 6px 0; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--glow-blue);
  box-shadow: 0 0 8px var(--glow-blue);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); opacity: 1; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-dim); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hamburger span { width: 18px; height: 1px; background: var(--silver); }

.btn-primary, .btn-ghost, .btn-danger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 2px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  border: 1px solid var(--border-active);
  color: #f7f0df;
  background: linear-gradient(180deg, rgba(204, 172, 73, 0.18), rgba(204, 172, 73, 0.07));
  box-shadow: inset 0 0 20px rgba(204,172,73,0.05);
}
.btn-primary:hover { background: rgba(204, 172, 73, 0.18); box-shadow: 0 0 22px var(--glow-blue-mid); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(238, 232, 220, 0.14); background: rgba(238, 232, 220, 0.025); color: #d8d0c2; }
.btn-ghost:hover { border-color: var(--border-gold); color: var(--gold); }
.btn-danger { border: 1px solid rgba(255,77,77,0.28); background: var(--red-soft); color: #ffb0b0; }

.notification-wrap { position: relative; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.icon-button:hover { border-color: var(--border-active); color: var(--glow-blue); opacity: 1; }
.note-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: glowPulse 2s ease infinite;
}
.notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition);
}
.notification-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.note { padding: 14px; border-bottom: 1px solid var(--border-dim); }
.note:last-child { border-bottom: 0; }
.note h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--white); text-transform: uppercase; }
.note p { color: var(--silver); font-size: 13px; margin-top: 5px; }

.hero-content {
  width: min(760px, 100%);
  padding-top: clamp(16px, 4vh, 42px);
}
.hero-logo { margin-bottom: 16px; }
.hero-brandmark {
  width: min(260px, 56vw);
  margin-bottom: clamp(34px, 7vh, 62px);
  opacity: 0.96;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.66));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff8ec;
  max-width: 720px;
  text-shadow: 0 18px 48px rgba(0,0,0,0.72);
}
.hero-sub {
  max-width: 590px;
  color: #d5ccbd;
  font-size: clamp(15px, 1.5vw, 18px);
  margin-top: 22px;
  line-height: 1.75;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.status-strip {
  width: min(760px, 100%);
  margin-top: clamp(34px, 7vh, 66px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-dim);
  background: rgba(12,12,12,0.7);
  backdrop-filter: blur(12px);
}
.status-strip div { padding: 14px 16px; border-right: 1px solid var(--border-dim); }
.status-strip div:last-child { border-right: 0; }
.status-strip span { display: block; color: #bfb5a5; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.status-strip strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 22px; font-weight: 300; color: var(--gold); }

.section-head { margin-bottom: 28px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  margin-top: 12px;
}
.section-subtitle { color: var(--silver); font-size: clamp(15px, 1.8vw, 19px); line-height: 1.8; margin-top: 18px; max-width: 760px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 22px; align-items: start; }
.panel { padding: clamp(20px, 3vw, 32px); }
.dense-grid { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow-blue); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-dim);
  background: rgba(3, 6, 12, 0.56);
  min-height: 50px;
  padding: 13px 14px;
  border-radius: 0;
  outline: none;
  color: var(--white);
  transition: var(--transition-fast);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--glow-blue-soft); }

.code-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3,6,12,0.74);
  backdrop-filter: blur(18px);
}
.code-modal.open { display: flex; animation: viewIn 0.35s ease both; }
.code-card { width: min(760px, 100%); padding: clamp(24px, 5vw, 54px); position: relative; overflow: hidden; }
.code-card.unlocking::before {
  content: '';
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.22), rgba(201,168,76,0.16), transparent);
  transform: translateX(-80%);
  animation: scanUnlock 0.9s ease forwards;
}
.code-card h2 { font-family: var(--font-display); font-size: clamp(42px, 8vw, 78px); font-weight: 300; line-height: 0.96; margin-top: 12px; }
.code-entry { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 28px; }
.code-entry input { min-height: 60px; font-family: var(--font-mono); letter-spacing: 0.13em; text-transform: uppercase; font-size: clamp(18px, 3vw, 26px); }
.close-modal { position: absolute; top: 16px; right: 16px; }

.questions { display: grid; gap: 16px; margin-top: 18px; }
.choice-group { display: grid; gap: 10px; }
.choice-option {
  min-height: 48px;
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.025);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 12px 14px;
  transition: var(--transition-fast);
}
.choice-option.selected, .choice-option:hover { color: var(--white); border-color: var(--border-active); background: var(--glow-blue-soft); }
.result-seal {
  display: none;
  margin-top: 20px;
  min-height: 120px;
  place-items: center;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}
.result-seal.visible { display: grid; animation: sealBreak 0.8s ease both; }
.retry { margin-top: 18px; color: var(--silver); }

.tabs, .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab, .filter-select {
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.025);
  color: var(--silver);
  min-height: 40px;
  padding: 10px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tab.active { border-color: var(--border-active); color: var(--glow-blue); background: var(--glow-blue-soft); }
.leader-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-dim);
  animation: rowIn 0.45s ease both;
}
.leader-row:last-child { border-bottom: 0; }
.rank { font-family: var(--font-display); font-size: 32px; color: var(--gold); }
.leader-name { font-size: 17px; color: var(--white); }
.meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--silver); text-transform: uppercase; }
.badge { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid var(--border-gold); color: var(--gold); background: var(--gold-soft); padding: 5px 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.profile-file { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-card { padding: 18px; border: 1px solid var(--border-dim); background: rgba(255,255,255,0.025); min-height: 130px; }
.file-card h3 { font-family: var(--font-mono); color: var(--glow-blue); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.file-card strong { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 32px; font-weight: 300; color: var(--white); }
.redacted {
  display: inline-block;
  height: 0.8em;
  width: 96px;
  margin-left: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}
.notes-save { margin-top: 12px; }

.community-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.series-list, .thread-list { display: grid; gap: 12px; }
.series-item, .thread-card {
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.025);
  padding: 16px;
  transition: var(--transition-fast);
}
.series-item.unlocked, .thread-card:hover { border-color: var(--border-active); background: var(--glow-blue-soft); }
.locked { opacity: 0.45; }
.thread-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 300; }
.post { margin-top: 12px; padding: 13px; border: 1px solid rgba(255,255,255,0.06); background: rgba(3,6,12,0.44); }
.post p { color: var(--silver); margin-top: 6px; }
.reaction { margin-top: 10px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--border-dim); background: transparent; font-family: var(--font-mono); font-size: 11px; color: var(--gold); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 4000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid var(--border-active);
  background: var(--bg-panel);
  box-shadow: 0 0 28px var(--glow-blue-soft);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: var(--transition);
}
.toast.visible { opacity: 1; transform: translateY(0); }

@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes gridDrift { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 80px 80px, 80px 80px; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.4; box-shadow: 0 0 20px rgba(201,168,76,0.15); } 50% { opacity: 1; box-shadow: 0 0 34px rgba(201,168,76,0.35); } }
@keyframes scanUnlock { to { transform: translateX(80%); } }
@keyframes sealBreak { 0% { opacity: 0; transform: scale(0.96); filter: blur(8px); } 55% { opacity: 1; transform: scale(1.025); filter: blur(0); } 100% { transform: scale(1); } }

/* Leaderboard Redesign Styles */
.analytics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.analytics-card {
  padding: 20px;
  border-left: 3px solid var(--border-gold);
  background: var(--bg-glass);
}
.analytics-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  color: var(--white);
  margin-top: 8px;
  text-shadow: 0 0 10px rgba(238, 232, 220, 0.15);
}
.analytics-desc {
  font-size: 12px;
  color: var(--silver);
  margin-top: 4px;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.filter-card {
  padding: 24px;
}
.search-wrap {
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}
.search-wrap label, .filters-vertical label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glow-blue);
}
.search-input {
  width: 100%;
  border: 1px solid var(--border-dim);
  background: rgba(3, 6, 12, 0.56);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  color: var(--white);
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--glow-blue-soft);
}

.podium-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.podium-card {
  padding: 24px 16px;
  text-align: center;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.podium-card.first {
  height: 230px;
  border-color: rgba(204, 172, 73, 0.6);
  background: linear-gradient(180deg, rgba(204, 172, 73, 0.15), rgba(20, 19, 17, 0.94));
  z-index: 2;
}
.podium-card.second {
  height: 190px;
  border-color: rgba(184, 176, 163, 0.4);
  background: linear-gradient(180deg, rgba(184, 176, 163, 0.08), rgba(20, 19, 17, 0.94));
}
.podium-card.third {
  height: 170px;
  border-color: rgba(205, 127, 50, 0.35);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.05), rgba(20, 19, 17, 0.94));
}
.podium-rank {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--silver);
}
.podium-rank.gold-text {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(204, 172, 73, 0.4);
}
.podium-avatar {
  font-size: 28px;
  margin-bottom: 12px;
}
.podium-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.podium-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  margin-top: 4px;
}

/* Custom glowing borders & badges */
.gold-glow {
  box-shadow: 0 0 20px rgba(204, 172, 73, 0.15), inset 0 0 15px rgba(204, 172, 73, 0.05);
}
.silver-glow {
  box-shadow: 0 0 15px rgba(184, 176, 163, 0.08);
}
.bronze-glow {
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.05);
}
.gold-badge {
  border-color: rgba(204, 172, 73, 0.6) !important;
  color: var(--gold) !important;
  background: rgba(204, 172, 73, 0.18) !important;
  text-shadow: 0 0 8px rgba(204,172,73,0.3);
}
.silver-badge {
  border-color: rgba(184, 176, 163, 0.5) !important;
  color: #d1cbc0 !important;
  background: rgba(184, 176, 163, 0.1) !important;
}
.bronze-badge {
  border-color: rgba(205, 127, 50, 0.4) !important;
  color: #dfaa7b !important;
  background: rgba(205, 127, 50, 0.08) !important;
}

/* Leaderboard Row Enhancements */
.leader-row {
  transition: var(--transition-fast);
  padding: 16px 20px;
}
.leader-row:hover {
  background: rgba(255,255,255,0.015);
  border-bottom-color: rgba(204, 172, 73, 0.2);
}
.leader-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.time-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
}

/* Community Forum Comment Styling */
.comment-form input {
  background: rgba(3, 6, 12, 0.4);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--white);
  outline: none;
  font-size: 13px;
  transition: var(--transition-fast);
}
.comment-form input:focus {
  border-color: var(--border-active);
}
.posts-wrap .post:last-child {
  border-bottom: 0;
}

@media (max-width: 920px) {
  .nav-inner { grid-template-columns: 150px auto; }
  
  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
  }
  
  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-align: center;
    border: 1px solid rgba(238, 232, 220, 0.05);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    transition: var(--transition-fast);
  }
  
  .nav-links .nav-link:hover, .nav-links .nav-link.active {
    border-color: var(--border-active);
    background: var(--glow-blue-soft);
    color: var(--gold);
  }
  
  .nav.open .nav-links { display: flex; }
  
  /* Premium Hamburger Open State Animation */
  .hamburger { display: inline-flex; }
  .hamburger span { transition: var(--transition-fast); }
  .nav.open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .hamburger span:nth-child(2) { opacity: 0; }
  .nav.open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Premium Responsive Notification Panel Drawer */
  .notification-panel {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    z-index: 1001;
  }

  .portal-grid, .community-grid, .profile-file, .leaderboard-grid { grid-template-columns: 1fr; }
  .podium-wrap { grid-template-columns: 1fr; align-items: stretch; gap: 14px; }
  .podium-card.first, .podium-card.second, .podium-card.third { height: auto; padding: 18px; }
  .analytics-strip { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: 1fr; }
  .status-strip div { border-right: 0; border-bottom: 1px solid var(--border-dim); }
  .status-strip div:last-child { border-bottom: 0; }
  .leader-row { grid-template-columns: 44px 1fr; }
  .leader-row .badge, .leader-row .meta:last-child { justify-self: start; }
}

@media (max-width: 620px) {
  .container, .nav-inner { width: min(100% - 32px, var(--container)); }
  .nav { padding: 12px 0; }
  .nav.scrolled, .nav.open { padding: 10px 0; }
  .logo { width: 144px; height: 38px; }
  .landing { align-items: flex-start; padding-top: 86px; }
  .hero-content { padding-top: 48px; }
  .hero-brandmark { display: none; }
  .hero-logo { margin-bottom: 16px; }
  .nav-actions .btn-primary { display: none; }
  .two-col, .code-entry { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(38px, 10.8vw, 54px); line-height: 1.04; }
  .hero-sub { font-size: 15px; margin-top: 18px; color: #c9c0b1; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-ghost { width: 100%; }
  .status-strip { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ──────────────────────────────────────────────────────────
   LOREXA PORTAL OVERHAUL STYLES
   ────────────────────────────────────────────────────────── */

/* Multiple-choice button layout & selection states */
.choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.choice-option {
  min-height: 52px;
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 14px 18px;
  border-radius: 4px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.choice-option:hover {
  border-color: var(--border-active);
  background: rgba(204, 172, 73, 0.04);
  color: var(--white);
}
.choice-option.selected {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(204, 172, 73, 0.15);
  box-shadow: 0 0 15px rgba(204, 172, 73, 0.15);
}

/* Full-screen dedicated code entry page */
.code-entry-view {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(12, 12, 12, 0.65) 0%, #080808 100%);
}
.code-entry-view.active {
  display: flex;
}
.code-entry-full {
  width: 100%;
  max-width: 600px;
}
.code-card-full {
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.code-card-full.unlocking::before {
  content: '';
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(90deg, transparent, rgba(204, 172, 73, 0.22), rgba(204, 172, 73, 0.08), transparent);
  transform: translateX(-80%);
  animation: scanUnlock 0.9s ease forwards;
}
.code-entry-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
.code-entry-form input {
  min-height: 60px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 24px;
  text-align: center;
  border: 1px solid var(--border-dim);
  background: rgba(3, 6, 12, 0.8);
  color: var(--white);
  outline: none;
  transition: var(--transition-fast);
}
.code-entry-form input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 20px var(--glow-blue-soft);
}
.code-error-msg {
  color: var(--red-alert);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
  min-height: 20px;
}
.code-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  opacity: 0.4;
  text-align: center;
  margin-top: 24px;
}

/* Submission indicators, errors & soft retry */
.attempts-indicator {
  margin-top: 20px;
  border-top: 1px dashed var(--border-dim);
  padding-top: 14px;
}
.error-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-alert);
  margin-top: 6px;
}
.warning-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 6px;
}
.field-incorrect .choice-option.selected {
  border-color: var(--red-alert);
  background: var(--red-soft);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.15);
}
.field-soft-retry .choice-option.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 10px rgba(204, 172, 73, 0.15);
}
.give-up-seal {
  background: var(--red-soft) !important;
  border-color: var(--red-alert) !important;
  color: #ffcccc !important;
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
}
.revealed-answers-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  width: 100%;
}
.revealed-item {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 77, 77, 0.2);
  padding-bottom: 6px;
}
.revealed-item .q-prompt {
  color: var(--silver);
}
.revealed-item .q-ans {
  color: var(--gold);
  font-weight: bold;
}

/* Sidebar dossier metrics */
.sidebar-info-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.info-block {
  padding: 16px;
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 4px;
}
.info-block span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  opacity: 0.7;
  margin-bottom: 6px;
}
.info-block strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--white);
}

/* Locked Community container */
.locked-community-box {
  text-align: center;
  max-width: 640px;
  margin: 60px auto 0;
  padding: 64px 48px;
}
.text-gold {
  color: var(--gold) !important;
}

/* Community Forum Feed & Reactions */
.community-layout-full {
  display: grid;
  gap: 24px;
}
.community-tabs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.board-header {
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.board-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  margin-top: 6px;
}
.new-post-form {
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--border-dim);
  padding-bottom: 24px;
}
.new-post-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--border-dim);
  background: rgba(3, 6, 12, 0.5);
  color: var(--white);
  padding: 14px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  border-radius: 4px;
  margin-bottom: 14px;
  transition: var(--transition-fast);
}
.new-post-form textarea:focus {
  border-color: var(--border-active);
}
.post-feed {
  display: grid;
  gap: 20px;
}
.thread-node {
  padding: 24px;
  border-radius: 6px;
  display: grid;
  gap: 14px;
}
.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.node-author {
  color: var(--gold);
  font-weight: 600;
}
.node-date {
  color: var(--silver);
  opacity: 0.7;
}
.node-text {
  font-size: 15px;
  color: var(--white);
  line-height: 1.6;
}
.node-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.reaction-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reaction-pill {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  transition: var(--transition-fast);
  cursor: pointer;
}
.reaction-pill:hover {
  border-color: var(--border-active);
  color: var(--gold);
  background: rgba(204, 172, 73, 0.03);
}
.reaction-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(204, 172, 73, 0.12);
}
.author-actions {
  display: flex;
  gap: 12px;
}
.btn-link {
  background: transparent;
  border: 0;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.btn-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.btn-link.text-danger {
  color: #ff6666;
}
.btn-link.text-danger:hover {
  color: var(--red-alert);
}
.replies-block {
  margin-top: 14px;
  border-top: 1px dashed var(--border-dim);
  padding-top: 14px;
  display: grid;
  gap: 14px;
}
.reply-node {
  margin-left: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--border-active);
  border-radius: 0 8px 8px 0;
  display: grid;
  gap: 10px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.reply-node:hover {
  border-left-color: var(--gold);
  background: rgba(204, 172, 73, 0.04);
}
.reply-node.nested {
  margin-left: 24px;
  border-left: 2px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.15);
}
.nested-replies-container {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  border-top: 1px dashed rgba(238, 232, 220, 0.05);
  padding-top: 12px;
}
.reply-form-inline {
  margin-left: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.reply-form-inline.nested-reply-form {
  margin-left: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  background: rgba(204, 172, 73, 0.02);
  padding: 10px;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
}
.reply-form-inline input {
  flex: 1;
  min-height: 38px;
  background: rgba(3, 6, 12, 0.4);
  border: 1px solid var(--border-dim);
  padding: 8px 12px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  border-radius: 4px;
}
.reply-form-inline input:focus {
  border-color: var(--border-active);
}
.edit-post-form {
  display: grid;
  gap: 10px;
}
.edit-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(3, 6, 12, 0.8);
  border: 1px solid var(--border-active);
  color: var(--white);
  padding: 10px;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.edit-actions {
  display: flex;
  gap: 10px;
}
.btn-small {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 11px;
}

/* Dossier Profile Layout */
.dossier-layout {
  padding: 40px;
}
.dossier-header {
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.dossier-name {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 300;
  margin-top: 8px;
}
.dossier-metadata {
  display: flex;
  gap: 40px;
  margin-top: 16px;
  font-family: var(--font-mono);
}
.dossier-metadata div span {
  font-size: 11px;
  color: var(--silver);
  margin-right: 8px;
}
.dossier-metadata div strong {
  font-size: 14px;
  color: var(--gold);
}
.dossier-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.progress-list {
  display: grid;
  gap: 18px;
}
.progress-item {
  display: grid;
  gap: 8px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}
.series-name {
  color: var(--white);
}
.series-ratio {
  color: var(--gold);
}
.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(204, 172, 73, 0.4), var(--gold));
  box-shadow: 0 0 10px var(--gold);
  border-radius: 3px;
}
.badge-vault-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge-seal {
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
}
.badge-seal-icon {
  font-size: 18px;
}
.badge-seal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
.notes-form-full textarea {
  width: 100%;
  min-height: 220px;
  font-family: var(--font-mono);
  background: rgba(3, 6, 12, 0.6);
  border: 1px solid var(--border-dim);
  color: var(--white);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  border-radius: 4px;
}
.notes-form-full textarea:focus {
  border-color: var(--border-active);
}

/* Nav adjustments */
.always-visible-btn {
  display: inline-flex !important;
}

/* Pack 5 poll opinions styles */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  margin-top: 14px;
}
.opinion-col {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
}
.opinion-val {
  font-size: 28px;
  color: var(--white);
  font-weight: 300;
  margin-top: 8px;
}
.opinion-breakdown-card {
  margin-bottom: 24px;
  border-left: 3px solid var(--gold) !important;
}

/* Mobile responsive fixes */
@media (max-width: 920px) {
  .dossier-body-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dossier-layout {
    padding: 24px;
  }
  .dossier-name {
    font-size: 36px;
  }
  .reply-node {
    margin-left: 12px;
  }
  .reply-form-inline {
    margin-left: 12px;
  }
}

/* Admin Interface Styling */
.admin-tabs-row {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 10px;
  overflow-x: auto;
}
.admin-table-wrap {
  margin-top: 15px;
  background: rgba(3, 6, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: rgba(204, 172, 73, 0.05);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-dim);
}
.admin-table td {
  padding: 14px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}
.admin-modal {
  background: rgba(10, 15, 25, 0.95) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 0 30px rgba(204, 172, 73, 0.15) !important;
  z-index: 100;
}
.btn-small {
  padding: 6px 12px !important;
  font-size: 11px !important;
}
.code-block {
  overflow-x: auto;
  border-left: 3px solid var(--gold) !important;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* Redesigned double-column community forums layout */
.community-layout-full {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 520px;
}

/* Sidebar styling */
.community-sidebar {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  height: 100%;
}

.sidebar-header {
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 12px;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--silver);
  opacity: 0.76;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.channel-btn .channel-hash {
  color: var(--border-active);
  font-size: 16px;
  font-weight: bold;
  transition: var(--transition-fast);
}

.channel-btn:hover {
  opacity: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.channel-btn:hover .channel-hash {
  color: var(--gold);
  text-shadow: 0 0 5px var(--gold);
}

.channel-btn.active {
  opacity: 1;
  color: var(--gold);
  background: rgba(204, 172, 73, 0.12);
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 15px rgba(204, 172, 73, 0.08), inset 0 0 10px rgba(204, 172, 73, 0.05);
  font-weight: 500;
}

.channel-btn.active .channel-hash {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
}

/* Sidebar terminal widget */
.sidebar-diagnostics {
  margin-top: 10px;
  border-top: 1px dashed var(--border-dim);
  padding-top: 16px;
}

/* Workspace content area */
.community-workspace {
  display: grid;
  gap: 20px;
}

.community-main-board {
  padding: 32px;
}

/* Toggle comments indicator */
.comment-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: inset 0 0 10px rgba(204,172,73,0.02);
}

.comment-toggle-btn:hover {
  border-color: var(--gold);
  background: rgba(204,172,73,0.05);
  box-shadow: 0 0 12px rgba(204,172,73,0.1);
  color: #fff;
}

/* Interactive custom trophies & animated stepped podium stands */
.trophy-svg {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Stepped Podium Height Adjustments */
.podium-card.first {
  height: 270px !important;
  animation: pulseGold 4s ease-in-out infinite;
}

.podium-card.second {
  height: 220px !important;
  animation: pulseSilver 4s ease-in-out infinite 1s;
}

.podium-card.third {
  height: 190px !important;
  animation: pulseBronze 4s ease-in-out infinite 2s;
}

.podium-rank {
  font-size: 34px !important;
  font-weight: bold !important;
}

/* Custom Floating Animations on SVGs */
.gold-trophy .trophy-svg {
  animation: floatGold 3.4s ease-in-out infinite;
}

.silver-trophy .trophy-svg {
  animation: floatSilver 3.6s ease-in-out infinite 0.4s;
}

.bronze-trophy .trophy-svg {
  animation: floatBronze 3.8s ease-in-out infinite 0.8s;
}

/* Glowing Neon Stepped Stand Pulses */
@keyframes pulseGold {
  0%, 100% {
    border-color: rgba(204, 172, 73, 0.4);
    box-shadow: 0 0 15px rgba(204, 172, 73, 0.1), inset 0 0 10px rgba(204, 172, 73, 0.03);
  }
  50% {
    border-color: rgba(204, 172, 73, 0.7);
    box-shadow: 0 0 30px rgba(204, 172, 73, 0.26), inset 0 0 20px rgba(204, 172, 73, 0.12);
  }
}

@keyframes pulseSilver {
  0%, 100% {
    border-color: rgba(184, 176, 163, 0.3);
    box-shadow: 0 0 12px rgba(184, 176, 163, 0.06), inset 0 0 8px rgba(184, 176, 163, 0.02);
  }
  50% {
    border-color: rgba(184, 176, 163, 0.55);
    box-shadow: 0 0 25px rgba(184, 176, 163, 0.18), inset 0 0 15px rgba(184, 176, 163, 0.08);
  }
}

@keyframes pulseBronze {
  0%, 100% {
    border-color: rgba(205, 127, 50, 0.25);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.05), inset 0 0 6px rgba(205, 127, 50, 0.02);
  }
  50% {
    border-color: rgba(205, 127, 50, 0.45);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.14), inset 0 0 12px rgba(205, 127, 50, 0.06);
  }
}

/* Floating SVG Keyframes */
@keyframes floatGold {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floatSilver {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes floatBronze {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Sparkle particles on Champion cup */
.sparkle {
  animation: sparkleFlicker 2s ease-in-out infinite;
  transform-origin: center;
}

.sparkle.s1 { animation-duration: 2.2s; animation-delay: 0.1s; }
.sparkle.s2 { animation-duration: 1.8s; animation-delay: 0.5s; }
.sparkle.s3 { animation-duration: 2.5s; animation-delay: 1s; }

@keyframes sparkleFlicker {
  0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

/* Mobile responsive double column community stack */
@media (max-width: 920px) {
  .community-layout-full {
    grid-template-columns: 1fr;
  }
  .community-sidebar {
    height: auto;
    min-height: auto;
    padding: 16px;
  }
  .channels-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
  }
  .channel-btn {
    width: auto;
    white-space: nowrap;
  }
  .channel-btn:hover {
    transform: none;
  }
  .sidebar-diagnostics {
    display: none;
  }
}
