@charset "UTF-8";
:root {
  --bg: #020615;
  --bg-alt: #05091f;
  --accent: #d4af37;
  --accent-alt: #7c3aed;
  --accent-soft: rgba(212, 175, 55, 0.22);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-soft: #94a3b8;
  --danger: #fb7185;
  --success: #4ade80;
  --warning: #fde68a;
  --radius-xl: 18px;
  --radius-xxl: 24px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.9);
  --blur-glass: 24px;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0b1220 0, #020617 50%, #000 100%);
  overflow-x: hidden;
}

/* BACKGROUND FX */

.ha-bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(30, 64, 175, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(30, 64, 175, 0.18) 1px,
      transparent 1px
    );
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
  z-index: -3;
}

.ha-bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  background: radial-gradient(circle, #22d3ee, transparent 60%);
  top: -40px;
  right: -20px;
}

.orb-2 {
  background: radial-gradient(circle, #a855f7, transparent 60%);
  bottom: -40px;
  left: -40px;
}

/* LAYOUT */

.ha-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 7vw;
  backdrop-filter: blur(20px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.78),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ha-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ha-logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ha-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  opacity: 1;
}

.ha-logo-icon::before,
.ha-logo-icon::after {
  display: none;
}

.ha-logo-pulse { display: none; }

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  80% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.ha-logo-text {
  display: flex;
  flex-direction: column;
  font-family: "Orbitron", system-ui, sans-serif;
}

.ha-logo-main {
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.ha-logo-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ha-nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.ha-nav a {
  text-decoration: none;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 3px;
}

.ha-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.ha-nav a:hover {
  color: var(--text-main);
}

.ha-nav a:hover::after {
  width: 100%;
}

.ha-header-cta {
  display: flex;
  gap: 10px;
}

.wallet-status {
  font-size: 0.78rem;
  color: var(--text-soft);
  align-self: center;
}

/* BUTTONS */

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #020617;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.7);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 5px 18px rgba(56, 189, 248, 0.35);
}

.btn-ghost {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text-main);
}

.btn-outline {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  font-weight: 500;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  font-size: 0.95rem;
}

/* HERO */

.ha-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 48px 7vw 24px;
  align-items: center;
}

.ha-hero-text h1 {
  font-size: clamp(2.4rem, 3.3vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  font-family: "Cinzel", serif;
}

.ha-holo-text {
  display: inline-block;
  background: linear-gradient(120deg, #e5e7eb, #c4b581, var(--accent));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

.ha-hero-text p {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 550px;
}

.ha-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.ha-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ha-hero-meta > div {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.18), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.8);
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.meta-value {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-top: 4px;
}

/* HERO VISUAL – ARENA */

.ha-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ha-arena-shell {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  padding: 18px 18px 26px;
  background: radial-gradient(circle farthest-side, #0f172a, #020617 80%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ha-arena-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 190deg,
    rgba(56, 189, 248, 0.26),
    rgba(129, 140, 248, 0.12),
    rgba(56, 189, 248, 0.26)
  );
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
}

.ha-arena-ring {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1.6px solid;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-alt)) 1;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  animation: ringPulse 4s infinite ease-in-out;
}

.outer-ring {
  width: 88%;
  height: 24%;
  filter: blur(0.2px);
}

.mid-ring {
  width: 64%;
  height: 18%;
  bottom: 18%;
  opacity: 0.7;
  animation-delay: 0.4s;
}

.inner-ring {
  width: 42%;
  height: 12%;
  bottom: 21%;
  opacity: 0.5;
  animation-delay: 0.9s;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scaleX(1.04);
    opacity: 0.92;
  }
}

.ha-arena-core {
  position: absolute;
  left: 50%;
  bottom: 26%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}

.ha-core-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1rem;
  color: #020617;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.8);
  background: radial-gradient(circle at top, #f3f4f6, #c4b581);
}

.vs-right {
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.9);
  background: radial-gradient(circle at top, #ede9fe, var(--accent-alt));
}

.ha-core-light {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.8);
  animation: corePulse 1.4s infinite ease-in-out;
}

.ha-core-light.flash {
  filter: brightness(1.8);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.95);
}

@keyframes corePulse {
  0%,
  100% {
    filter: brightness(0.9);
  }
  50% {
    filter: brightness(1.4);
  }
}

.ha-arena-hud {
  position: absolute;
  inset: 14px 18px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.75rem;
}

.ha-arena-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-stars,
.bg-aurora,
.bg-vortex,
.bg-scanlines {
  position: absolute;
  inset: 0;
}

.bg-stars {
  background-image: radial-gradient(#ffffff 0.8px, transparent 1.2px);
  background-size: 3px 3px;
  opacity: 0.14;
  transform: translateY(0);
  animation: starDrift 18s linear infinite;
}

@keyframes starDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.bg-aurora {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.22), rgba(168, 85, 247, 0.18), rgba(34, 197, 94, 0.18));
  filter: blur(28px);
  background-size: 200% 200%;
  animation: auroraShift 10s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-vortex {
  background-image: conic-gradient(from 180deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.06), rgba(56, 189, 248, 0.2));
  border-radius: 30px;
  filter: blur(10px);
  opacity: 0.22;
  animation: spinVortex 20s linear infinite;
}

@keyframes spinVortex {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bg-scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.04) 0px,
    rgba(148, 163, 184, 0.04) 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.35;
  animation: scanFlicker 2.4s ease-in-out infinite;
}

@keyframes scanFlicker {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.48; }
}

.ha-arena-shell.arena-pulse {
  box-shadow: 0 22px 70px rgba(56, 189, 248, 0.65);
  border-color: rgba(148, 163, 184, 0.8);
}

.hud-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hud-left {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.hud-right {
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.7);
}

.hud-label {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
}

.hud-score {
  font-size: 0.9rem;
}

.hud-timer {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.6);
  background: radial-gradient(
    circle at top,
    rgba(250, 204, 21, 0.25),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.6);
}

.ha-hero-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

/* SECTIONS */

.ha-section {
  padding: 40px 7vw;
}

.ha-section-header {
  max-width: 620px;
  margin-bottom: 26px;
}

.ha-section-header h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  margin-bottom: 8px;
  font-family: "Cinzel", serif;
}

.ha-section-header p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

/* FEATURE GRID */

.ha-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ha-card {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.98)
    ),
    linear-gradient(120deg, rgba(56, 189, 248, 0.3), transparent);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
}

.ha-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.ha-card p {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* TOURNAMENTS */

.ha-tournament-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.chip-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #020617;
}

.ha-tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tournament-card {
  border-radius: var(--radius-xl);
  padding: 14px 14px 12px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.t-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.t-game {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.t-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge-live {
  background: rgba(212, 175, 55, 0.14);
  color: #fef3c7;
  border: 1px solid rgba(212, 175, 55, 0.7);
}

.badge-upcoming {
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.7);
}

.badge-finished {
  background: rgba(148, 163, 184, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.t-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--text-soft);
}

.t-row span:last-child {
  color: var(--text-main);
}

.t-bar {
  margin-top: 4px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.t-bar-inner {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

/* HOW IT WORKS */

.ha-steps {
  border-radius: 22px;
  padding: 18px 18px 12px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.ha-step {
  position: relative;
  padding: 10px 6px 6px;
}

.step-number {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-body h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* LEADERBOARD */

.ha-leaderboard-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.ha-leaderboard-highlight {
  border-radius: var(--radius-xxl);
  background: radial-gradient(
      circle at top,
      rgba(212, 175, 55, 0.22),
      rgba(15, 23, 42, 0.9)
    ),
    #020617;
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 12px;
}

.ha-leaderboard-highlight h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.mvp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.7);
}

.mvp-rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", system-ui, sans-serif;
  background: radial-gradient(circle at top, var(--accent), var(--accent-alt));
  color: #020617;
}

.mvp-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.mvp-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.mvp-meta span + span {
  margin-top: 2px;
}

.ha-leaderboard-highlight p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.ha-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
}

.ha-leaderboard-table thead {
  background: linear-gradient(90deg, #0f172a, #020617);
}

.ha-leaderboard-table th,
.ha-leaderboard-table td {
  padding: 8px 10px;
  text-align: left;
}

.ha-leaderboard-table th {
  font-weight: 500;
  color: var(--text-soft);
}

.ha-leaderboard-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.ha-leaderboard-table tbody tr:first-child {
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.35),
    rgba(129, 140, 248, 0.35)
  );
}

/* CTA */

.ha-cta {
  padding-bottom: 48px;
}

.ha-cta-inner {
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), #020617);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.ha-cta-inner h2 {
  margin-bottom: 8px;
}

.ha-cta-inner p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* FOOTER */

.ha-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding: 15px 7vw 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: radial-gradient(circle at bottom, #020617, #000);
}

.ha-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ha-footer-links {
  display: flex;
  gap: 16px;
}

.ha-footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.ha-footer-links a:hover {
  color: var(--accent);
}

/* DASHBOARD LAYOUT */

.ha-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: flex-start;
}

.ha-dash-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ha-panel {
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
}

.ha-panel-title {
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
}

.ha-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ha-kpi {
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.18),
    rgba(15, 23, 42, 0.9)
  );
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.ha-kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.ha-kpi-value {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-top: 4px;
}

.ha-kpi-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* FORM */

.ha-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ha-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ha-form-row label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.ha-form-row-split {
  flex-direction: row;
  gap: 10px;
}

.ha-form-row-split > div {
  flex: 1;
}

.ha-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.82rem;
}

.ha-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.ha-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* TABLE & LIST */

.ha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ha-table th,
.ha-table td {
  padding: 6px 8px;
  text-align: left;
}

.ha-table thead {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.6);
}

.ha-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.ha-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ha-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.ha-list li strong {
  font-size: 0.86rem;
}

.muted {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* SMALL CHIPS & BUTTONS */

.chip-small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

.ha-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* STATUS DOTS */

.ha-health-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
}

.ha-health-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-dot {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.status-ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
}

.status-warn {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.7);
  color: #fef3c7;
}

/* MATCH ROOM LAYOUT */

.ha-match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: flex-start;
}

.ha-match-main {
  grid-column: 1 / 2;
}

.ha-match-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ha-match-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ha-match-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.ha-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ha-match-team {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ha-match-team-right {
  text-align: right;
}

.ha-team-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.ha-team-meta {
  font-size: 0.76rem;
  color: var(--text-soft);
}

.ha-match-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.4rem;
}

.ha-match-vs {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.ha-match-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.ha-match-arena-preview {
  margin-top: 8px;
}

.ha-arena-shell-sm {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
}

.ha-match-meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.ha-match-meta-row > div {
  padding-top: 4px;
}

/* LINEUPS & TIMELINE */

.ha-lineups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ha-lineup-title {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

  .ha-timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
  }

.ha-timeline li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 6px;
}

.ha-timeline-time {
  color: var(--text-soft);
}

  .ha-timeline-body {
    line-height: 1.4;
  }

  .ha-battle-ui {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    margin-top: 6px;
  }

  .ha-hero-card {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 14px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.92);
  }

  .ha-hero-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .ha-hero-name {
    font-weight: 600;
    margin-bottom: 6px;
  }

  .ha-hero-portrait {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .ha-hero-portrait svg,
  .ha-core-avatar svg {
    width: 100%;
    height: 100%;
  }

  .ha-health-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 64px;
    gap: 8px;
    align-items: center;
    margin: 6px 0;
    font-size: 0.78rem;
  }

  .ha-health-bar,
  .ha-ult-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    overflow: hidden;
  }

  .ha-health-inner {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    width: 100%;
  }

  .ha-ult-inner {
    height: 100%;
    background: linear-gradient(90deg, #facc15, #f97316);
    width: 0%;
  }

/* CHAT */

.ha-chat-window {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.8);
  padding: 8px;
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ha-chat-message {
  display: flex;
  gap: 6px;
}

.ha-chat-name {
  font-weight: 600;
  color: var(--accent);
}

.ha-chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ROLE MODE TOGGLE */

body.role-admin .role-admin,
body.role-caster .role-caster {
  display: block;
}

.role-admin,
.role-caster {
  display: block;
}

body.role-caster .role-admin {
  display: none !important;
}

body.role-admin .role-caster {
  display: none !important;
}

.ha-role-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  margin-bottom: 16px;
}

.ha-role-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 4px;
}

.role-btn {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  background: transparent;
  color: var(--text-soft);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}

.role-btn.role-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #020617;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .ha-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-hero-visual {
    order: -1;
  }

  .ha-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-leaderboard-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-header {
    padding-inline: 5vw;
  }

  .ha-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-match-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-match-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-lineups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .ha-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ha-nav {
    display: none;
  }

  .ha-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-tournament-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-header-cta {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .ha-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ha-match-meta-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .ha-header {
    padding: 10px 4vw;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .ha-logo-icon { width: 32px; height: 32px; }
  .ha-logo-img { width: 68%; height: 68%; }
  .ha-logo-text .ha-logo-main { font-size: 0.8rem; }
  .ha-header-cta { width: 100%; gap: 8px; }
  .ha-header-cta button { width: 100%; }

  .ha-hero { padding: 28px 4vw 18px; gap: 18px; }
  .ha-hero-text h1 { font-size: 2rem; }
  .ha-hero-text p { font-size: 0.9rem; }
  .ha-hero-actions { gap: 8px; }
  .ha-hero-actions button { width: 100%; }
  .ha-hero-meta { gap: 10px; }
  .ha-hero-meta > div { width: 100%; }

  .ha-arena-shell { width: 100%; aspect-ratio: 16 / 10; padding: 12px 12px 18px; }
  .outer-ring { height: 20%; }
  .mid-ring { height: 16%; bottom: 20%; }
  .inner-ring { height: 10%; bottom: 22%; }
  .ha-arena-core { gap: 18px; bottom: 28%; }
  .ha-core-avatar { width: 32px; height: 32px; font-size: 0.9rem; }
  .ha-core-light { width: 54px; }
  .ha-arena-hud { font-size: 0.7rem; }

  .ha-section { padding: 24px 4vw; }
  .ha-section-header { margin-bottom: 18px; }
  .ha-section-header h2 { font-size: 1.4rem; }

  .ha-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .ha-card { padding: 14px 12px; }

  .ha-tournament-grid { grid-template-columns: minmax(0, 1fr); }
  .tournament-card { padding: 12px; }
  .t-name { font-size: 0.9rem; }
  .t-game { font-size: 0.7rem; }

  .ha-leaderboard-table { display: block; overflow-x: auto; font-size: 0.76rem; }

  .ha-dashboard-layout { grid-template-columns: minmax(0, 1fr); }

  .ha-match-layout { grid-template-columns: minmax(0, 1fr); }
  .ha-match-teams { grid-template-columns: minmax(0, 1fr); }
  .ha-match-team-right { text-align: left; }
  .ha-match-score { justify-content: flex-start; }
  .ha-match-meta-row { grid-template-columns: minmax(0, 1fr); }

  .ha-battle-ui { grid-template-columns: minmax(0, 1fr); }
  .ha-hero-portrait { width: 48px; height: 48px; }
  .ha-health-row { grid-template-columns: 36px minmax(0, 1fr) 54px; }
  .ha-chat-window { max-height: 160px; }
  .ha-role-toggle { width: 100%; }
}
