:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --surface-alt: #111111;
  --border: rgba(255, 255, 255, 0.07);
  --text: #ececec;
  --muted: #8a8a8a;
  --accent: #cd412b;
  --accent-muted: #5c1a12;
  --accent-glow: rgba(205, 65, 43, 0.14);
  --rust: #cd412b;
  --rust-glow: rgba(205, 65, 43, 0.22);
  --green: #3dd68c;
  --yellow: #f5c542;
  --radius: 12px;
  --radius-lg: 16px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) var(--bg);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--bg);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(205, 65, 43, 0.5);
}

*::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 42% at 88% 18%, rgba(205, 65, 43, 0.042), transparent 68%),
    radial-gradient(ellipse 48% 38% at 8% 62%, rgba(255, 255, 255, 0.028), transparent 62%),
    radial-gradient(ellipse 52% 36% at 62% 92%, rgba(100, 100, 110, 0.032), transparent 65%),
    radial-gradient(ellipse 40% 30% at 22% 28%, rgba(255, 255, 255, 0.018), transparent 58%);
  pointer-events: none;
}

.bg-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.012) 0%,
    transparent 38%,
    rgba(205, 65, 43, 0.01) 68%,
    transparent 100%
  );
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.38;
  animation: orbDrift 22s ease-in-out infinite;
}

.bg-orb-1 {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  top: 28%;
  left: 72%;
  background: rgba(205, 65, 43, 0.07);
}

.bg-orb-2 {
  width: min(50vw, 500px);
  height: min(50vw, 500px);
  bottom: 12%;
  right: -4%;
  background: rgba(255, 255, 255, 0.028);
  animation-delay: -8s;
  animation-duration: 26s;
}

.bg-orb-3 {
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  top: 58%;
  left: -6%;
  background: rgba(120, 120, 130, 0.05);
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 4%) scale(1.04); }
  66% { transform: translate(-2%, -3%) scale(0.97); }
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nav > .container {
  width: min(1200px, calc(100% - clamp(2.5rem, 6vw, 4.5rem)));
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(3, 3, 3, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-icon-glow {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-icon-glow::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 72%);
  filter: blur(4px);
  opacity: 0.85;
  z-index: 0;
}

.brand-icon-glow .brand-icon,
.brand-icon-glow > img {
  position: relative;
  z-index: 1;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

.brand-icon:not(img) {
  background: linear-gradient(135deg, var(--rust), var(--accent-muted));
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled .nav-links {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-player-lookup {
  border-color: rgba(205, 65, 43, 0.3);
  color: #f1d0ca;
}

.nav-player-lookup:hover {
  border-color: rgba(205, 65, 43, 0.55);
  background: rgba(205, 65, 43, 0.12);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}

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

.nav-links a.active {
  color: #fff;
  background: rgba(205, 65, 43, 0.22);
  box-shadow: inset 0 0 0 1px rgba(205, 65, 43, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--rust);
  color: #fff;
  box-shadow: 0 8px 24px rgba(205, 65, 43, 0.28);
}

.btn-primary:hover {
  background: #e04a32;
  box-shadow: 0 12px 32px rgba(205, 65, 43, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--nav-h) 0 1.5rem;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 90% 58% at 26% 0%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.055) 32%,
      rgba(255, 255, 255, 0.02) 52%,
      transparent 72%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(52vh, 480px);
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.018) 42%,
    transparent 100%
  );
  pointer-events: none;
}

.hero > .container {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero > .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  align-content: center;
}


.hero-copy {
  text-align: left;
}

.hero-copy h1 {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.75rem;
  font-weight: 700;
}

.hero h1 .rust { color: var(--rust); }
.hero h1 .accent { color: var(--accent); }

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-note {
  margin: 0.35rem 0 0;
}

.hero-free {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-free::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.45);
}

/* Preview card */
.preview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.preview-card:not(.tilt-card) {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.preview-card:not(.tilt-card):hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.preview-title { font-weight: 600; font-size: 0.95rem; }
.preview-meta { color: var(--muted); font-size: 0.8rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
}

.preview-section:last-child { margin-bottom: 0; }

.preview-section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.seq-row {
  display: flex;
  gap: 0.35rem;
}

.seq-btn {
  flex: 1;
  text-align: center;
  padding: 0.35rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.28s var(--ease-out);
}

.seq-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.seq-btn.active {
  background: rgba(205, 65, 43, 0.2);
  border-color: rgba(205, 65, 43, 0.5);
  color: #ff8a75;
}

.activity-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.4rem 0;
}

.activity-bar span { display: block; height: 100%; }
.bar-roam { background: var(--green); width: 35%; }
.bar-base { background: #4a4a4a; width: 30%; }
.bar-monument { background: var(--rust); width: 20%; }
.bar-afk { background: #555; width: 12%; }
.bar-death { background: #ef5350; width: 3%; }

.activity-bar.interactive {
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.activity-bar.interactive:hover,
.activity-bar.interactive.is-active {
  opacity: 0.88;
  transform: scaleY(1.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.activity-bar.interactive:focus-visible {
  outline: 2px solid rgba(205, 65, 43, 0.55);
  outline-offset: 2px;
}

.workflow-nodes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.workflow-node {
  position: relative;
  isolation: isolate;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #c8c8c8;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.workflow-node .icon {
  width: 14px;
  height: 14px;
}

.workflow-node.glow-node {
  color: #e86b58;
  border-color: rgba(205, 65, 43, 0.3);
  background: rgba(205, 65, 43, 0.08);
}

.workflow-node:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(205, 65, 43, 0.35);
  box-shadow: 0 6px 16px rgba(205, 65, 43, 0.12);
}

.workflow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  opacity: 0.6;
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
  background: transparent;
}

.section-visual .tilt-scene,
.map-visual .tilt-scene,
.hero-card-wrap .tilt-scene {
  width: 100%;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-grid.reverse .section-copy { order: 2; }
#map .section-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.5rem;
}

.section-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.section-copy h2 .accent { color: var(--accent); }
.section-copy h2 .rust { color: var(--rust); }

.section-copy p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 28rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.91rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.feature-list li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(205, 65, 43, 0.14), rgba(205, 65, 43, 0.06));
  border: 1px solid rgba(205, 65, 43, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: #e86b58;
  flex-shrink: 0;
}

.icon {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 13px;
  height: 13px;
}

.icon-inline {
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  vertical-align: -2px;
  display: inline-block;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 0.35rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d4;
  flex-shrink: 0;
}

.inline-icon .icon {
  width: 12px;
  height: 12px;
}

.hero-card-wrap {
  width: 100%;
}

.tilt-scene {
  position: relative;
  width: 100%;
  perspective: 1400px;
  perspective-origin: center center;
  isolation: isolate;
}

.tilt-scene::before {
  content: "";
  position: absolute;
  inset: 6% 2% -8%;
  border-radius: calc(var(--radius-lg) + 12px);
  background:
    radial-gradient(ellipse 78% 62% at 50% 40%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 48%, transparent 76%);
  filter: blur(16px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s var(--ease);
}

.tilt-scene:has(.tilt-card.is-levitating)::before,
.tilt-scene:hover::before {
  opacity: 1;
}

.tilt-card {
  --shadow-y: 22px;
  --shadow-blur: 48px;
  --shadow-alpha: 0.35;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  transition: border-color 0.35s var(--ease);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 72px rgba(255, 255, 255, 0.048),
    0 0 110px rgba(255, 255, 255, 0.02),
    0 var(--shadow-y) var(--shadow-blur) rgba(0, 0, 0, var(--shadow-alpha)),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Fallback when JS has not loaded */
@media (hover: hover) {
  html:not(.js-tilt) .tilt-scene:hover .tilt-card {
    transform: translateY(-8px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 88px rgba(255, 255, 255, 0.06),
      0 0 120px rgba(255, 255, 255, 0.025),
      0 32px 58px rgba(0, 0, 0, 0.44),
      0 8px 20px rgba(0, 0, 0, 0.14);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.tilt-card.is-levitating {
  border-color: rgba(255, 255, 255, 0.1);
  transition: none;
}

.ui-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.ui-card:not(.tilt-card) {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ui-card:not(.tilt-card):hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
}

.ui-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ui-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.pill-green {
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
  border: 1px solid rgba(61, 214, 140, 0.3);
}

.pill-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Workflow card */
.flow-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.flow-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.flow-label.when { color: var(--rust); }
.flow-label.if { color: var(--yellow); }
.flow-label.do { color: var(--green); }

.flow-item {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.35rem 0.5rem;
  background: var(--surface-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Leaderboard */
.lb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.lb-row:hover { background: rgba(255, 255, 255, 0.04); }

.lb-rank { color: var(--muted); font-weight: 600; }
.lb-name { font-weight: 500; }
.lb-time { color: var(--green); font-size: 0.78rem; font-weight: 600; }

/* Player list */
.player-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.28s var(--ease-out), border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.player-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

.player-row.is-active {
  background: rgba(205, 65, 43, 0.08);
  border-color: rgba(205, 65, 43, 0.28);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

span.avatar {
  background: linear-gradient(135deg, var(--surface-alt), #2a3038);
}

.dot-online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot-offline { width: 8px; height: 8px; border-radius: 50%; background: #555; }

/* Console */
.console-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.console-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.console-pill:hover {
  transform: translateY(-1px);
  color: #e86b58;
  background: rgba(205, 65, 43, 0.12);
  border-color: rgba(205, 65, 43, 0.35);
}

.console-pill.is-used {
  background: rgba(205, 65, 43, 0.18);
  border-color: rgba(205, 65, 43, 0.45);
  color: #ff9a88;
}

.console-log {
  background: #0a0c0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.8rem;
  min-height: 100px;
}

.console-line { margin-bottom: 0.45rem; }
.console-user { color: var(--text); font-weight: 600; }
.console-bot { color: var(--accent); font-weight: 600; }
.console-muted { color: var(--muted); }

/* Download CTA */
.section-download {
  padding-bottom: 5rem;
}

.section-download > .container {
  perspective: none;
}

.section-download > .container .tilt-scene {
  perspective: 1400px;
  perspective-origin: center center;
  max-width: 640px;
  margin-inline: auto;
}

.download-cta {
  text-align: center;
  padding: 3.25rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.download-cta:not(.tilt-card) {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.download-cta-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.download-cta-icon .brand-icon-glow img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.download-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.download-cta p {
  color: var(--muted);
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  font-size: 0.98rem;
}

.download-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.download-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
}

.download-actions {
  justify-content: center;
  margin-bottom: 0;
}

.version-line {
  min-height: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.version-line strong { color: var(--text); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.footer p, .footer a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1.7;
}

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

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Scroll reveal — opacity only so tilt-card transforms are not overridden */
.reveal {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
}

.reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible .reveal-child,
.visible-parent .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.08s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.14s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.26s; }
.reveal.visible .reveal-child:nth-child(5) { transition-delay: 0.32s; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.scroll-hint {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.scroll-hint span {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Mobile */
@media (max-width: 900px) {
  .nav-cta > .btn-primary { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 1rem;
    right: 1rem;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    white-space: normal;
  }

  .nav-toggle { display: flex; }

  .hero-grid,
  .section-grid,
  .section-grid.reverse .section-copy,
  .section-grid.reverse .section-visual {
    grid-template-columns: 1fr;
    order: unset;
    gap: 2.25rem;
    justify-items: center;
    text-align: center;
  }

  .hero > .container.hero-grid {
    display: grid;
    align-content: start;
  }

  /* Copy above card on every section when stacked */
  .section-grid .section-copy { order: 1; }
  .section-grid .section-visual { order: 2; }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-copy,
  .section-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
  }

  .hero h1,
  .hero-tagline,
  .section-copy h2 {
    text-align: center;
  }

  .hero-lead,
  .section-copy p {
    margin-inline: auto;
    text-align: center;
    max-width: 30rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-note {
    text-align: center;
  }

  .section-badge {
    align-self: center;
  }

  .section-visual,
  .map-visual {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    display: flex;
    justify-content: center;
  }

  .map-visual {
    max-width: 30rem;
  }

  .ui-card,
  .preview-card {
    width: 100%;
  }

  .feature-list {
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    text-align: left;
  }

  .feature-list li:hover {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .social-row {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav > .container {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .hero {
    min-height: auto;
    padding-bottom: 1.25rem;
  }

  .hero > .container {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
  }

  section { padding: 3rem 0; }

  .hero-grid {
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .section-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .section-visual,
  .map-visual {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 20rem;
  }

  .hero-actions .btn,
  .download-actions .btn {
    width: 100%;
    max-width: 20rem;
  }

  .download-cta { padding: 2.25rem 1.35rem; }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* ── Enhanced sections (reference layouts) ── */

.badge-subtle {
  margin-top: 0.5rem;
  opacity: 0.85;
}

.badge-dot-muted { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.badge-dot-rust { background: var(--rust); box-shadow: 0 0 8px var(--rust-glow); }

.hero-tagline {
  font-size: 1.35rem;
  color: var(--muted);
  margin: -0.25rem 0 0.85rem;
  font-weight: 500;
}

.nav-inner { position: relative; width: 100%; }

.section-alt {
  background: transparent;
}

.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--muted); }

.preview-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.auto-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(205, 65, 43, 0.15);
  border: 1px solid rgba(205, 65, 43, 0.35);
  color: #ff8a75;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.legend-row.center { justify-content: center; margin-top: 0.75rem; }

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.dot-green { background: var(--green); }
.dot-blue { background: #6b6b6b; }
.dot-base { background: #4a4a4a; }
.dot-rust { background: var(--rust); }
.dot-gray { background: #666; }
.dot-death { background: #ef5350; }

.mvp-line strong { color: var(--text); }

.mini-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mini-player-info { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }

.rank-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(205, 65, 43, 0.2);
  color: #ff8a75;
  border: 1px solid rgba(205, 65, 43, 0.35);
}

.avatar-sm { width: 28px; height: 28px; }
.avatar-xs { width: 22px; height: 22px; }

.chevron-down {
  display: inline-flex;
  align-items: center;
  color: var(--rust);
}

.chevron-down .icon {
  width: 16px;
  height: 16px;
}

.glow-node {
  box-shadow: 0 0 16px rgba(205, 65, 43, 0.35);
}

.glow-node::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(205, 65, 43, 0.42);
  pointer-events: none;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.18; transform: scale(0.82); }
  50% { opacity: 0.72; transform: scale(1); }
}

.anim-line {
  background-size: 200% 100%;
  animation: lineFlow 2s linear infinite;
}

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

/* Activity bars animate on reveal */
.anim-bar span {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}

.reveal.visible .anim-bar span,
.visible-parent .anim-bar span {
  transform: scaleX(1);
}

.reveal.visible .anim-bar .bar-roam { transition-delay: 0.08s; }
.reveal.visible .anim-bar .bar-base { transition-delay: 0.16s; }
.reveal.visible .anim-bar .bar-monument { transition-delay: 0.24s; }
.reveal.visible .anim-bar .bar-afk { transition-delay: 0.32s; }
.reveal.visible .anim-bar .bar-death { transition-delay: 0.4s; }

/* Workflow card extras */
.workflow-card .header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chevron-icon {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.pulse-pill {
  position: relative;
}

.pulse-pill::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(61, 214, 140, 0.42);
  border-radius: inherit;
  pointer-events: none;
  animation: pillPulse 2.5s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

.flow-nested {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  background: var(--surface-alt);
}

.flow-nested-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.flow-chip {
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.3);
  color: var(--yellow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.flow-chip:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.15);
}

.mt-sm { margin-top: 0.35rem; }

.dm-avatars {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.flow-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.runs-badge {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Leaderboard table */
.lb-table-head,
.lb-table-row {
  display: grid;
  grid-template-columns: 28px 1.4fr 72px 1fr 16px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
}

.lb-table-head {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.lb-table-row {
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.lb-table-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  min-width: 0;
}

.tag {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-green { background: rgba(61, 214, 140, 0.15); color: var(--green); }
.tag-blue { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.tag-orange { background: rgba(205, 65, 43, 0.15); color: #ff8a75; }
.tag-muted { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.mini-bar { height: 6px; }

.lb-chevron { color: var(--muted); opacity: 0.5; }

.lb-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.lb-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
}

.lb-stat strong { font-size: 1rem; }

.inline-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.reveal-stagger {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.visible-parent .reveal-stagger {
  opacity: 1;
  transform: translateX(0);
}

.visible-parent .reveal-stagger:nth-child(2) { transition-delay: 0.06s; }
.visible-parent .reveal-stagger:nth-child(3) { transition-delay: 0.12s; }
.visible-parent .reveal-stagger:nth-child(4) { transition-delay: 0.18s; }
.visible-parent .reveal-stagger:nth-child(5) { transition-delay: 0.24s; }
.visible-parent .reveal-stagger:nth-child(6) { transition-delay: 0.3s; }

/* Activity breakdown popup */
.activity-popup {
  position: fixed;
  z-index: 250;
  min-width: 240px;
  max-width: 300px;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  pointer-events: none;
}

.activity-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.activity-popup-inner {
  background: rgba(22, 25, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.activity-popup-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.activity-popup-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.activity-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-popup-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.activity-popup-list li:first-child { border-top: none; padding-top: 0; }

.activity-popup-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
}

.activity-popup-duration {
  font-weight: 600;
  white-space: nowrap;
}

.activity-popup-duration.roam { color: var(--green); }
.activity-popup-duration.base { color: #b8b8b8; }
.activity-popup-duration.monument { color: #ff8a75; }
.activity-popup-duration.afk { color: #888; }
.activity-popup-duration.death { color: #ef5350; }

.activity-popup-note {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Map */
.map-visual { min-width: 0; }

.map-card {
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.map-canvas {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-canvas-lg {
  height: clamp(280px, 36vw, 360px);
}

.map-terrain-img {
  position: absolute;
  inset: 0;
  width: 135%;
  height: 100%;
  object-fit: cover;
  object-position: 8% 44%;
  filter: saturate(1.05) contrast(1.04);
}

.map-terrain-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.18), transparent 28%, transparent 72%, rgba(3, 3, 3, 0.28)),
    radial-gradient(ellipse at center, transparent 45%, rgba(3, 3, 3, 0.22));
  pointer-events: none;
}

.map-label {
  position: absolute;
  font-size: 0.62rem;
  color: #f0f0f0;
  background: rgba(0, 0, 0, 0.62);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  z-index: 2;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -2.4rem);
}

.map-monument .map-label {
  left: 50%;
  top: 0;
}

.map-monument {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.monument-pin {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b83228;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58%;
}

.monument-launch {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.2 8.2 10H11v9.8h2V10h2.8L12 2.2zm-5.4 9.5 1.8 1.8-4.6 4.6a1.4 1.4 0 0 0 2 2l4.6-4.6 1.8 1.8-5.9 5.9a2.8 2.8 0 0 1-4-4l5.9-5.9zm10.8 0 5.9 5.9a2.8 2.8 0 0 1-4 4l-5.9-5.9 1.8-1.8 4.6 4.6a1.4 1.4 0 0 0 2-2l-4.6-4.6 1.8-1.8z'/%3E%3C/svg%3E");
}

.monument-airfield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E");
}

.monument-bandit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2c-1.7 0-3.2.9-4 2.3C7.2 3.9 5.7 3 4 3 2.3 3 1 4.3 1 6s1.3 3 3 3c1.2 0 2.2-.7 2.7-1.7.5 2.4 2.5 4.2 5 4.6V20H9v2h6v-2h-2.7v-8.1c2.5-.4 4.5-2.2 5-4.6.5 1 1.5 1.7 2.7 1.7 1.7 0 3-1.3 3-3s-1.3-3-3-3c-1.7 0-3.2.9-4 2.3-.8-1.4-2.3-2.3-4-2.3z'/%3E%3C/svg%3E");
}

.monument-arctic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l1.4 4.3H18l-3.6 2.6 1.4 4.3L12 10.6 8.2 13.2l1.4-4.3L6 6.3h4.6L12 2zm0 9.2l-4.8 3.5 1.8-5.6L4 9.2h5.9L12 3.6l2.1 5.6H20l-5 2.9 1.8 5.6L12 11.2z'/%3E%3C/svg%3E");
}

.map-vendor {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f9b57;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 2;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(47, 155, 87, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.map-teammate {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transform: translate(-50%, -50%);
  padding: 0.18rem 0.45rem 0.18rem 0.18rem;
  border-radius: 999px;
  background: rgba(8, 10, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.teammate-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(61, 214, 140, 0.75);
  flex-shrink: 0;
}

.teammate-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  padding-right: 0.1rem;
  white-space: nowrap;
}

.anim-marker { animation: markerBob 3s ease-in-out infinite; }
.anim-marker.delay-1 { animation-delay: 0.5s; }
.anim-marker.delay-2 { animation-delay: 1s; }
.anim-marker.delay-3 { animation-delay: 1.5s; }

@keyframes markerBob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

.map-teammate:hover,
.map-teammate.is-focused {
  animation: none;
  transform: translate(-50%, calc(-50% - 3px)) scale(1.05);
  z-index: 6;
  border-color: rgba(61, 214, 140, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(61, 214, 140, 0.12);
}

.map-death {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(205, 65, 43, 0.6);
  border: 2px solid var(--rust);
  z-index: 2;
}

.fade-marker { animation: deathFade 4s ease-in-out infinite; }

@keyframes deathFade {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.85); }
}

/* Defense card */
.interval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.interval-box {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--rust), var(--accent));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: intervalProgress 5s linear infinite;
  will-change: transform;
}

@keyframes intervalProgress {
  to { transform: scaleX(1); }
}

.group-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.25s, background 0.25s;
}

.active-group {
  border-color: rgba(61, 214, 140, 0.3);
  background: rgba(61, 214, 140, 0.04);
}

.inactive-group { opacity: 0.65; }

.group-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.turret-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.turret-item .icon-sm {
  width: 11px;
  height: 11px;
  color: var(--yellow);
  flex-shrink: 0;
}

.turret-item:hover { background: rgba(255, 255, 255, 0.04); }

.turret-id {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
}

.muted-item { color: var(--muted); }

.add-group-btn {
  width: 100%;
  padding: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.add-group-btn:hover {
  border-color: var(--rust);
  color: #e86b58;
  background: rgba(205, 65, 43, 0.06);
}

.freeze-row {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.freeze-row .armed { color: var(--yellow); font-size: 0.82rem; }

.pulse-dot { animation: pulse 2s ease-in-out infinite; }

/* Console */
.term-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-right: 0.35rem;
  vertical-align: -2px;
}

.term-icon .icon {
  width: 14px;
  height: 14px;
}

.console-card .console-log {
  min-height: 148px;
  max-height: 220px;
  overflow-y: auto;
}

.anim-msg {
  opacity: 0;
  transform: translateY(6px);
  animation: msgIn 0.5s var(--ease) forwards;
}

.anim-msg.delay-1 { animation-delay: 0.4s; }

@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}

.sent-pill {
  font-size: 0.62rem;
  color: var(--green);
  background: rgba(61, 214, 140, 0.12);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.bot-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: -4px;
  box-shadow: 0 0 0 1px rgba(205, 65, 43, 0.35);
}

.console-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.console-input {
  flex: 1;
  background: #0a0c0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.console-input::placeholder { color: var(--muted); }

.console-input:focus {
  border-color: rgba(205, 65, 43, 0.45);
  box-shadow: 0 0 0 3px rgba(205, 65, 43, 0.12);
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--rust);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.send-btn .icon {
  width: 15px;
  height: 15px;
  margin-left: 1px;
}

.send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(205, 65, 43, 0.35);
}

.player-info { flex: 1; min-width: 0; }

.footer-brand { margin-bottom: 0.75rem; }

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-icon:hover {
  color: #e86b58;
  border-color: rgba(205, 65, 43, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .nav-cta .btn-ghost { display: none; }
  .lb-table-head span:nth-child(3),
  .lb-table-row .lb-time { display: none; }
  .lb-table-head,
  .lb-table-row { grid-template-columns: 24px 1fr 1fr 14px; }
  .lb-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .scroll-hint span,
  .badge-dot,
  .pulse-dot,
  .pulse-pill,
  .pulse-pill::after,
  .anim-bar,
  .anim-line,
  .anim-marker,
  .glow-node,
  .glow-node::after {
    animation: none !important;
  }

  .tilt-card {
    transition: border-color 0.2s;
  }
}

/* ── Cross-platform release and responsive polish ── */

.scroll-progress {
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8f281d, var(--rust), #ff846f);
  box-shadow: 0 0 14px rgba(232, 83, 61, 0.55);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  transition: transform 80ms linear;
  will-change: transform;
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(51, 214, 132, 0.6);
  animation: proofPulse 2.6s ease-in-out infinite;
}

@keyframes proofPulse {
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 18px rgba(51, 214, 132, 0.8);
  }
}

.download-cta {
  overflow: hidden;
}

.download-cta::after,
.platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(232, 83, 61, 0.12),
    transparent 58%
  );
  transition: opacity 260ms ease;
}

.download-cta:hover::after,
.platform-card:hover::after {
  opacity: 1;
}

.download-badge {
  margin: 0.9rem auto 0;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(880px, 100%);
  margin: 1.85rem auto 0;
  text-align: left;
}

.platform-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(6, 6, 6, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.platform-card:hover,
.platform-card.is-targeted {
  transform: translateY(-6px);
  border-color: rgba(232, 83, 61, 0.42);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(205, 65, 43, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.06);
}

.platform-card.is-targeted {
  animation: platformTarget 1.05s ease both;
}

@keyframes platformTarget {
  35% { box-shadow: 0 0 0 5px rgba(232, 83, 61, 0.13), 0 24px 60px rgba(0, 0, 0, 0.4); }
}

.platform-card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(232, 83, 61, 0.25);
  border-radius: 14px;
  color: #ff8975;
  background: rgba(205, 65, 43, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.platform-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.platform-icon.android-icon {
  color: #59dd9c;
  border-color: rgba(51, 214, 132, 0.24);
  background: rgba(51, 214, 132, 0.09);
}

.platform-eyebrow {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.platform-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
}

.platform-card > p {
  min-height: 3.1rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.platform-recommended {
  display: none;
  margin-left: auto;
  padding: 0.3rem 0.48rem;
  border: 1px solid rgba(51, 214, 132, 0.25);
  border-radius: 999px;
  color: #6fe5aa;
  background: rgba(51, 214, 132, 0.08);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-card.recommended .platform-recommended {
  display: inline-flex;
}

.platform-card .version-line {
  min-height: 1.4rem;
  margin: auto 0 0.85rem;
  color: #b7b7b7;
  font-size: 0.78rem;
  text-align: left;
}

.platform-download {
  width: 100%;
  min-height: 48px;
}

.download-footnote {
  margin: 1rem auto 0 !important;
  color: #777 !important;
  font-size: 0.76rem !important;
}

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

  .hero-copy {
    max-width: 38rem;
  }

  .hero-card-wrap {
    width: min(100%, 34rem);
  }

  .hero-proof {
    justify-content: center;
  }

  .download-platforms {
    width: min(100%, 620px);
  }
}

@media (max-width: 680px) {
  .nav-links {
    max-height: calc(100dvh - var(--nav-h) - 1.5rem);
    overflow-y: auto;
  }

  .hero > .container {
    padding-top: 2.25rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 21rem;
  }

  .hero-card-wrap {
    width: 100%;
  }

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

  .platform-card {
    min-height: 0;
  }

  .platform-card > p {
    min-height: 0;
  }

  .download-cta {
    padding-inline: 1rem;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 0.92rem;
  }

  .nav-player-lookup {
    font-size: 0.72rem;
    padding-inline: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 2.8rem);
  }

  .preview-card {
    padding: 1rem;
  }

  .platform-card-top {
    align-items: flex-start;
  }
}

@media (hover: none), (pointer: coarse) {
  .platform-card:hover {
    transform: none;
  }

  .download-cta::after,
  .platform-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .platform-card,
  .download-cta::after,
  .platform-card::after {
    transition: none !important;
  }

  .proof-dot,
  .platform-card.is-targeted {
    animation: none !important;
  }
}
