@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Discord Theme Colors */
  --dc-bg-main: #313338;
  --dc-bg-sidebar: #2b2d31;
  --dc-bg-servers: #1e1f22;
  --dc-bg-chat: #313338;
  --dc-bg-input: #383a40;
  
  --dc-text-normal: #dbdee1;
  --dc-text-muted: #949ba4;
  --dc-text-link: #00a8fc;
  
  --dc-brand: #5865f2;
  --dc-brand-hover: #4752c4;
  --dc-green: #23a55a;
  --dc-yellow: #f0b232;
  --dc-red: #f23f43;
  --dc-border: rgba(255, 255, 255, 0.06);

  /* Dashboard Panel Accent Colors */
  --db-bg: #0f1015;
  --db-card: rgba(22, 24, 33, 0.75);
  --db-primary: #8b5cf6;       /* Violet */
  --db-secondary: #06b6d4;     /* Cyan */
  --db-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--db-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.07) 0px, transparent 50%);
  color: var(--dc-text-normal);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Navigation Header */
header {
  background: rgba(15, 16, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--db-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.logo span {
  background: linear-gradient(135deg, var(--db-primary), var(--db-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--dc-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

/* Main Content Workspace */
main {
  flex: 1;
  padding: 2rem 0;
  display: flex;
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
}

/* ================= SIMULATOR LAYOUT ================= */
.workspace-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 2rem;
  min-height: 75vh;
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* 1. DISCORD PANEL RECREATION */
.discord-client {
  background-color: var(--dc-bg-main);
  border-radius: 12px;
  border: 1px solid var(--dc-border);
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 720px;
}

/* Servers Sidebar */
.dc-servers-bar {
  background-color: var(--dc-bg-servers);
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.dc-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #313338;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dc-text-normal);
  cursor: pointer;
  transition: border-radius 0.2s, background-color 0.2s;
  position: relative;
}

.dc-server-icon.active, .dc-server-icon:hover {
  border-radius: 16px;
  background-color: var(--dc-brand);
  color: white;
}

.dc-server-icon::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 14px;
  width: 8px;
  height: 20px;
  background-color: white;
  border-radius: 0 4px 4px 0;
  display: none;
}

.dc-server-icon.active::before {
  display: block;
}

.dc-server-sep {
  width: 32px;
  height: 2px;
  background-color: #35363c;
  margin: 4px 0;
}

/* Channels Sidebar */
.dc-channels-bar {
  background-color: var(--dc-bg-sidebar);
  width: 200px;
  display: flex;
  flex-direction: column;
}

.dc-server-title {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: white;
}

.dc-channels-list {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow-y: auto;
}

.dc-category-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 4px 4px 4px;
}

.dc-channel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--dc-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.dc-channel-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--dc-text-normal);
}

.dc-channel-item.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: white;
}

.dc-voice-users {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.dc-voice-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #c9cdcf;
  padding: 2px 4px;
}

.dc-voice-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--db-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Chat Section */
.dc-chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--dc-bg-chat);
}

.dc-chat-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.dc-messages-container {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dc-msg {
  display: flex;
  gap: 12px;
}

.dc-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dc-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dc-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.dc-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-msg-username {
  font-weight: 600;
  color: white;
}

.dc-msg-botbadge {
  background-color: var(--dc-brand);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.dc-msg-time {
  font-size: 0.725rem;
  color: var(--dc-text-muted);
}

.dc-msg-text {
  color: var(--dc-text-normal);
  word-break: break-word;
}

/* Discord Rich Embed */
.dc-embed {
  background-color: #2b2d31;
  border-left: 4px solid var(--dc-brand);
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 4px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dc-embed-title {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.dc-embed-desc {
  font-size: 0.85rem;
  color: var(--dc-text-normal);
}

.dc-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.dc-embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dc-embed-field-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dc-text-muted);
  text-transform: uppercase;
}

.dc-embed-field-val {
  font-size: 0.85rem;
  color: var(--dc-text-normal);
}

.dc-embed-field.fullwidth {
  grid-column: span 2;
}

.dc-embed-footer {
  font-size: 0.7rem;
  color: var(--dc-text-muted);
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 4px;
}

/* Input Form */
.dc-chat-input-container {
  padding: 0 16px 24px 16px;
}

.dc-chat-input-wrapper {
  background-color: var(--dc-bg-input);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
}

.dc-chat-input {
  background: transparent;
  border: none;
  color: var(--dc-text-normal);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  font-family: var(--font-sans);
}

.dc-chat-input::placeholder {
  color: var(--dc-text-muted);
}

/* ================= 2. DASHBOARD VIEW (RIGHT SIDE) ================= */
.dashboard-arena {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.db-card {
  background-color: var(--db-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--db-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Direct Helper Buttons */
.lobby-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--db-primary), var(--db-secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-success {
  background-color: var(--dc-green);
  color: white;
}

.btn-success:hover {
  background-color: #1e8549;
}

/* Queue progress UI */
.queue-progress-box {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.queue-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.queue-bar-bg {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.queue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--db-primary), var(--db-secondary));
  width: 0%;
  transition: width 0.3s ease;
}

/* Draft visual arena */
.draft-layout {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .draft-layout {
    grid-template-columns: 1fr;
  }
}

.draft-team-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.draft-team-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  color: white;
}

.team-ct { background-color: rgba(0, 168, 252, 0.15); border: 1px solid rgba(0, 168, 252, 0.3); }
.team-t { background-color: rgba(240, 178, 50, 0.15); border: 1px solid rgba(240, 178, 50, 0.3); }

.draft-team-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 180px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--dc-border);
  padding: 0.5rem;
}

.drafted-player-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  padding: 6px;
  font-size: 0.8rem;
}

.drafted-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: rgba(255,255,255,0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.captain-badge {
  color: var(--dc-yellow);
  font-weight: bold;
}

/* Pool center column */
.draft-pool-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.draft-status-indicator {
  padding: 0.5rem;
  background-color: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dc-text-normal);
  animation: pulse-glow 3s infinite alternate;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  min-height: 180px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--dc-border);
  border-radius: 8px;
  padding: 0.75rem;
  align-content: start;
}

.pool-player-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
}

.pool-player-card:hover {
  background-color: rgba(139, 92, 246, 0.08);
  border-color: var(--db-primary);
  transform: translateY(-1px);
}

.pool-player-card.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  background-color: rgba(0,0,0,0.1) !important;
  border-color: var(--dc-border) !important;
}

.pool-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--db-primary), var(--db-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pool-player-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.pool-player-elo {
  font-size: 0.65rem;
  color: var(--dc-text-muted);
}

/* Match Arena Board */
.match-arena-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-scores-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px;
  border: 1px solid var(--dc-border);
}

.team-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-score-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.team-score-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
}

.score-divider {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--dc-text-muted);
}

.match-logs-box {
  background-color: #0b0c10;
  border: 1px solid var(--dc-border);
  border-radius: 8px;
  height: 160px;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}

.match-log-line {
  color: var(--dc-text-muted);
}

.match-log-line.kill {
  color: #fff;
}

.match-log-line.system {
  color: var(--dc-yellow);
  font-weight: bold;
}

/* ================= 3. CODE VIEWER PANE ================= */
.code-viewer-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  min-height: 70vh;
}

@media (max-width: 768px) {
  .code-viewer-layout {
    grid-template-columns: 1fr;
  }
}

.code-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.code-file-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--db-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--dc-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-file-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.code-file-btn.active {
  background-color: rgba(139, 92, 246, 0.1);
  border-color: var(--db-primary);
  color: #fff;
}

.code-content-card {
  display: flex;
  flex-direction: column;
  height: 680px;
  position: relative;
}

.code-content-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--db-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0,0,0,0.15);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.code-pre-container {
  flex-grow: 1;
  overflow: auto;
  background-color: #0d0e12;
  padding: 1.25rem;
  margin: 0;
  border-radius: 0 0 10px 10px;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  color: #c9d1d9;
  tab-size: 2;
  white-space: pre;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
}

.toast {
  background-color: #1e1f22;
  border-left: 4px solid var(--db-primary);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.toast.success { border-left-color: var(--dc-green); }
.toast.info { border-left-color: var(--dc-brand); }
.toast.warning { border-left-color: var(--dc-yellow); }
.toast.error { border-left-color: var(--dc-red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-glow {
  from { text-shadow: 0 0 5px rgba(139, 92, 246, 0.1); }
  to { text-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
}

footer {
  background-color: rgba(10, 11, 15, 0.95);
  border-top: 1px solid var(--db-border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--dc-text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}

/* ================= MODERN ANIMATIONS & MICRO-INTERACTIONS ================= */

/* Smooth transitions for all buttons and interactive elements */
.btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.btn:active {
  transform: translateY(0);
}

/* Dynamic Page / Tab Transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chat Message Slide-in Animation */
@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.dc-msg {
  animation: msgSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top left;
}

/* Matchmaking Queue Live Pulse Dot */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.8);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(35, 165, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0);
  }
}
.queue-scanning-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--dc-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.8);
  animation: pulse-ring 1.6s infinite;
}

/* Draft pick cards scaling and hover glow */
.drafted-player-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.drafted-player-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Character cards during serpentine selection phase */
.eternal-pick-btn {
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.eternal-pick-btn:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  border-color: var(--db-primary) !important;
}

/* 🏃 RUNNING GUY ANIMATION keyframes */
@keyframes runner-bob {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  25% {
    transform: translateY(-10px) rotate(-5deg) translateX(-5px);
  }
  50% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  75% {
    transform: translateY(-10px) rotate(5deg) translateX(5px);
  }
  100% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
}

#runner-sprite-emoji {
  animation: runner-bob 0.7s infinite ease-in-out;
  display: inline-block;
}

/* ============================================================
   🌌 CINEMATIC LANDING SCREEN
   ============================================================ */

#landing-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #05060d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#landing-screen.land-hidden {
  opacity: 0;
  pointer-events: none;
}

/* particle canvas */
#landing-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ambient glow orbs */
.land-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.land-orb-a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 70%);
  top: -120px; left: -120px;
  animation-delay: 0s;
}
.land-orb-b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.45), transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -4s;
}
.land-orb-c {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(244,63,94,0.3), transparent 70%);
  bottom: 20%; left: 10%;
  animation-delay: -8s;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* centre content */
.land-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 0 24px;
  animation: land-fade-in 1s ease both;
}
@keyframes land-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* logo */
.land-logo-wrap {
  position: relative;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.land-logo-img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: contain;
  border: 2.5px solid rgba(139,92,246,0.6);
  box-shadow: 0 0 30px rgba(139,92,246,0.55), 0 0 60px rgba(139,92,246,0.2);
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%,100% { box-shadow: 0 0 30px rgba(139,92,246,0.55), 0 0 60px rgba(139,92,246,0.2); }
  50%      { box-shadow: 0 0 50px rgba(139,92,246,0.85), 0 0 100px rgba(139,92,246,0.35); }
}
.land-logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,0.25);
  animation: ring-spin 8s linear infinite;
}
.land-logo-ring::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #8b5cf6;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* title */
.land-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
  animation: land-fade-in 1s 0.15s ease both;
}
.land-title-accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: title-shimmer 4s linear infinite;
}
@keyframes title-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.land-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  animation: land-fade-in 1s 0.25s ease both;
}
.land-sub span { color: rgba(255,255,255,0.35); font-size: 0.85rem; }

/* floating hero cards */
.land-hero-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: land-fade-in 1s 0.4s ease both;
}

.land-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: card-float var(--delay, 0s) 3.5s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.land-hero-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 12px 32px rgba(139,92,246,0.2);
}
.land-hero-card.lhc-featured {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 24px rgba(139,92,246,0.2);
}
@keyframes card-float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}
.lhc-emoji { font-size: 1.8rem; line-height: 1; }
.lhc-name  { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: white; }
.lhc-role  { font-size: 0.65rem; color: rgba(255,255,255,0.4); }

/* CTA buttons */
.land-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: land-fade-in 1s 0.55s ease both;
}

.land-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.land-btn:hover  { transform: translateY(-3px) scale(1.03); }
.land-btn:active { transform: scale(0.97); }

.land-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 32px rgba(139,92,246,0.5), 0 2px 8px rgba(0,0,0,0.4);
}
.land-btn-primary:hover {
  box-shadow: 0 12px 48px rgba(139,92,246,0.7), 0 4px 16px rgba(0,0,0,0.4);
}

/* sweep-shine effect */
.land-btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: btn-shine 2.5s ease-in-out infinite;
}
@keyframes btn-shine {
  0%   { left: -100%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}

.land-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
.land-btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* live status pill */
.land-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(35,165,90,0.12);
  border: 1px solid rgba(35,165,90,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.5px;
  animation: land-fade-in 1s 0.7s ease both;
}
.land-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

/* wipe transition overlay */
#land-wipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 20;
  pointer-events: none;
}
#land-wipe.wipe-go {
  animation: land-wipe-anim 0.55s cubic-bezier(0.77,0,0.175,1) forwards;
}
@keyframes land-wipe-anim {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============================================================
   ✨ GLOBAL BUTTON UPGRADES
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) translateY(0); }

.btn-primary {
  box-shadow: 0 4px 18px rgba(139,92,246,0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(139,92,246,0.55);
}

.tab-btn {
  position: relative;
  overflow: hidden;
}
.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.tab-btn:hover::before,
.tab-btn.active::before { width: 70%; }

/* ============================================================
   🎮 CUSTOM GAMING BUTTON SYSTEM
   Each variant has its own personality — no two look the same.
   ============================================================ */

/* ---------- ARC BORDER (rotating conic border) ---------- */
.btn-arc {
  position: relative;
  background: #0f1015;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  z-index: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.btn-arc::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(from var(--arc-angle, 0deg), #8b5cf6, #06b6d4, #f43f5e, #fbbf24, #8b5cf6);
  z-index: -1;
  animation: arc-spin 3s linear infinite;
}
.btn-arc::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 9px;
  background: #0f1015;
  z-index: -1;
}
.btn-arc:hover { transform: scale(1.04); color: #c4b5fd; }
@property --arc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes arc-spin { to { --arc-angle: 360deg; } }

/* ---------- CHARGE FILL (energy bar sweep on hover) ---------- */
.btn-charge {
  position: relative;
  background: rgba(139,92,246,0.08);
  color: #a78bfa;
  border: 1.5px solid rgba(139,92,246,0.35);
  padding: 11px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-charge::before {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(139,92,246,0.6));
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-charge:hover::before { left: 0; }
.btn-charge:hover { color: white; border-color: #8b5cf6; }
.btn-charge:active { transform: scale(0.97); }

/* ---------- NEON PULSE (glow breathing) ---------- */
.btn-neon {
  background: transparent;
  color: #06b6d4;
  border: 1.5px solid #06b6d4;
  padding: 11px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(6,182,212,0.3), inset 0 0 8px rgba(6,182,212,0.05);
  animation: neon-breathe 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(6,182,212,0.6), inset 0 0 16px rgba(6,182,212,0.1);
}
@keyframes neon-breathe {
  0%,100% { box-shadow: 0 0 8px rgba(6,182,212,0.3), inset 0 0 8px rgba(6,182,212,0.05); }
  50%      { box-shadow: 0 0 22px rgba(6,182,212,0.6), inset 0 0 14px rgba(6,182,212,0.12); }
}

/* ---------- HOLOGRAPHIC (iridescent rainbow shift) ---------- */
.btn-holo {
  position: relative;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4, #f43f5e, #fbbf24);
  background-size: 300% 300%;
  animation: holo-shift 4s ease infinite;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-holo:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 36px rgba(139,92,246,0.6);
  animation-play-state: paused;
}
.btn-holo:active { transform: scale(0.97); }
@keyframes holo-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- PIXEL RIPPLE (click shockwave) ---------- */
.btn-ripple {
  position: relative;
  overflow: hidden;
  background: rgba(244,63,94,0.1);
  color: #f43f5e;
  border: 1.5px solid rgba(244,63,94,0.35);
  padding: 11px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-ripple:hover { background: rgba(244,63,94,0.18); transform: translateY(-1px); }
.btn-ripple:active { transform: scale(0.96); }
.btn-ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(244,63,94,0.25);
  transform: scale(0);
  animation: ripple-expand 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- GHOST LIFT ---------- */
.btn-ghost-lift {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
}
.btn-ghost-lift:hover {
  color: white;
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.04);
}

/* ============================================================
   🔱 CUSTOM CSS ICON GLYPHS  (no images, pure CSS)
   ============================================================ */

/* Sword icon */
.icon-sword {
  display: inline-block;
  width: 16px; height: 16px;
  position: relative;
  vertical-align: middle;
}
.icon-sword::before {
  content: '';
  position: absolute;
  width: 2px; height: 14px;
  background: currentColor;
  top: 0; left: 7px;
  transform: rotate(-45deg);
  border-radius: 1px;
}
.icon-sword::after {
  content: '';
  position: absolute;
  width: 8px; height: 2px;
  background: currentColor;
  top: 6px; left: 3px;
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Crown icon */
.icon-crown {
  display: inline-block;
  width: 18px; height: 14px;
  position: relative;
  vertical-align: middle;
}
.icon-crown::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0; height: 5px;
  background: currentColor;
  clip-path: polygon(0 100%, 0 0, 30% 60%, 50% 0%, 70% 60%, 100% 0, 100% 100%);
}

/* Bolt icon */
.icon-bolt {
  display: inline-block;
  width: 12px; height: 18px;
  background: currentColor;
  clip-path: polygon(60% 0%, 20% 55%, 50% 55%, 40% 100%, 80% 42%, 48% 42%);
  vertical-align: middle;
}

/* Shield icon */
.icon-shield {
  display: inline-block;
  width: 16px; height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 15%, 100% 55%, 50% 100%, 0% 55%, 0% 15%);
  vertical-align: middle;
}

/* Gem icon */
.icon-gem {
  display: inline-block;
  width: 18px; height: 16px;
  background: currentColor;
  clip-path: polygon(30% 0%, 70% 0%, 100% 35%, 50% 100%, 0% 35%);
  vertical-align: middle;
}

/* ============================================================
   ⚔️ ARKHERON QUEUE ANIMATIONS
   ============================================================ */

/* Rotating search spinner */
.ark-search-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(139,92,246,0.15);
  border-top-color: #8b5cf6;
  border-right-color: #06b6d4;
  animation: ark-spin 0.9s linear infinite;
}
@keyframes ark-spin {
  to { transform: rotate(360deg); }
}

/* Pulse rings behind queue card */
.ark-ring {
  position: absolute;
  width: var(--sz, 200px);
  height: var(--sz, 200px);
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246, var(--op, 0.1));
  animation: ark-ring-pulse 2.5s ease-out infinite;
}
@keyframes ark-ring-pulse {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Match found card pop-in */
@keyframes mf-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes mf-bounce {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================
   ✨ HOLO TEXT (apply to any heading)
   ============================================================ */
.text-holo {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #f43f5e, #fbbf24, #8b5cf6);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holo-shift 5s linear infinite;
}

/* ============================================================
   🔴 LIVE DOT (reusable)
   ============================================================ */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
  animation: live-pulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}
.live-dot.green { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.live-dot.cyan  { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

/* ============================================================
   🃏 STAT CHIP (small inline stat badges)
   ============================================================ */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s ease, transform 0.2s ease;
}
.stat-chip:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.35);
  color: white;
  transform: translateY(-1px);
}
.stat-chip .chip-icon {
  font-size: 0.85em;
}
