/* ========================================================
   ASGARD MC — Glassmorphism Theme
   ======================================================== */

/* --- CSS Variables --- */
:root {
  --gold: #ffaa00;
  --gold-light: #ffd060;
  --gold-dark: #cc8800;
  --green: #4ade80;
  --green-dark: #16a34a;
  --red: #f87171;
  --red-dark: #dc2626;

  --glass-bg: rgba(12, 10, 20, 0.55);
  --glass-bg-light: rgba(20, 18, 30, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background --- */
body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background: #0a0a14;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform: translateZ(0);
}

.bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(4px);
  transform: scale(1.02);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 20, 0.15) 0%,
      rgba(10, 10, 20, 0.35) 40%,
      rgba(10, 10, 20, 0.7) 70%,
      rgba(10, 10, 20, 0.92) 100%
    );
  pointer-events: none;
}

/* --- Layout --- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Glass panels --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
  transform: translateZ(0);
}

.glass:hover {
  border-color: var(--glass-border-hover);
}

.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transform: translateZ(0);
}

/* --- Hero section --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 48px 20px 24px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(255, 170, 0, 0.3));
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* --- Status badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.status-badge.online {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.status-badge.offline {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-badge.offline .status-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-players {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-players span {
  color: var(--text-secondary);
  font-weight: 600;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.map-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

/* --- Content sections --- */
.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 60px;
}

.section {
  padding: 24px;
}

.section-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--gold);
  font-size: 0.75rem;
}

/* --- Noob hero card --- */
.noob-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  isolation: isolate;
}

/* Spinning conic gradient border — @property enables animating the angle */
/* Fallback: pulsing gold border for browsers without @property support */
.noob-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #ffaa00, #ff6b00, #ffd060, #ffaa00);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: border-pulse-fallback 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes border-pulse-fallback {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Progressive enhancement: spinning conic border for @property-capable browsers */
@supports (background: conic-gradient(from 0deg, red, red)) {
  @property --noob-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }

  .noob-card::before {
    background: conic-gradient(
      from var(--noob-angle, 0deg),
      #ffaa00, #ff6b00, #ff3d00, #ffaa00, #ffd060, #ffaa00
    );
    animation: spin-border 4s linear infinite;
    opacity: 1;
  }

  @keyframes spin-border {
    to { --noob-angle: 360deg; }
  }
}

/* Inner card body */
.noob-card-inner {
  position: relative;
  border-radius: 18px;
  padding: 44px 32px 40px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 170, 0, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 100, 0, 0.06) 0%, transparent 60%),
    rgba(10, 8, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
  overflow: hidden;
}

/* Ambient glow orbs */
.noob-card-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: noob-breathe 5s ease-in-out infinite;
}

.noob-card-inner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 80, 0, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: noob-breathe 5s ease-in-out 2.5s infinite;
}

@keyframes noob-breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* Sparkle particles (CSS-only) */
.noob-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.noob-sparks i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: sparkle 3s ease-in-out infinite;
}

.noob-sparks i:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.noob-sparks i:nth-child(2) { left: 80%; top: 15%; animation-delay: 0.6s; width: 2px; height: 2px; }
.noob-sparks i:nth-child(3) { left: 25%; top: 75%; animation-delay: 1.2s; }
.noob-sparks i:nth-child(4) { left: 70%; top: 65%; animation-delay: 1.8s; width: 2px; height: 2px; }
.noob-sparks i:nth-child(5) { left: 50%; top: 10%; animation-delay: 2.4s; }
.noob-sparks i:nth-child(6) { left: 90%; top: 50%; animation-delay: 0.3s; width: 2px; height: 2px; }
.noob-sparks i:nth-child(7) { left: 10%; top: 50%; animation-delay: 1.5s; }
.noob-sparks i:nth-child(8) { left: 60%; top: 85%; animation-delay: 2.1s; width: 2px; height: 2px; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
  20% { opacity: 1; transform: scale(1) translateY(-4px); }
  50% { opacity: 0.6; transform: scale(0.8) translateY(-8px); }
  80% { opacity: 0; transform: scale(0.2) translateY(-16px); }
}

/* Content layout */
.noob-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

/* Badge — ping dot indicator (Tailwind/Linear style) */
.noob-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.noob-badge-ping {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.noob-badge-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
  animation: badge-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.noob-badge-ping::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes badge-ping {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.noob-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(160deg, #fff 0%, #fff 30%, var(--gold-light) 60%, var(--gold) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.noob-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 28px;
}

.noob-desc strong {
  font-weight: 600;
  color: var(--gold-light);
}

/* CTA button with inner shimmer */
.noob-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold) 0%, #e69500 100%);
  border: none;
  border-radius: 12px;
  color: #1a0f00;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 20px rgba(255, 170, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Shimmer sweep — background-position technique (GPU composited, no layout thrash) */
.noob-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 80%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 150% 0; }
  40%, 100% { background-position: -50% 0; }
}

.noob-cta i.fa-arrow-right {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.noob-cta i.fa-shield-halved {
  font-size: 0.85rem;
}

/* Hover state */
.noob-card:hover .noob-cta {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(255, 170, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.noob-card:hover .noob-cta i.fa-arrow-right {
  transform: translateX(4px);
}

.noob-card:hover .noob-card-inner {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 170, 0, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 100, 0, 0.10) 0%, transparent 60%),
    rgba(10, 8, 18, 0.75);
  filter: brightness(1.08) contrast(1.04);
}

/* Holographic iridescent tint on hover — color shifts across card */
.noob-card-inner::before {
  transition: opacity 0.4s ease;
}

.noob-card:hover .noob-card-inner::before {
  background: radial-gradient(circle,
    rgba(255, 200, 50, 0.2),
    rgba(255, 120, 0, 0.08) 50%,
    transparent 70%
  );
  opacity: 1;
}

/* Divider line */
.noob-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .noob-card-inner {
    padding: 32px 20px 32px;
  }

  .noob-cta {
    padding: 12px 28px;
    font-size: 0.8rem;
  }
}

/* --- IP section --- */
.ip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.ip-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

.ip-box:active {
  transform: scale(0.98);
}

.ip-address {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.ip-copy-icon {
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.ip-box:hover .ip-copy-icon {
  color: var(--gold);
}

.ip-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  transition: color var(--transition);
}

.ip-version {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

/* --- Stats grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  text-align: center;
  padding: 18px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Players list --- */
.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  align-items: center;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: fade-slide-in 0.4s ease-out backwards;
}

.player-tag img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  image-rendering: pixelated;
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.no-players {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* --- Commands --- */
.commands-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
}

.cmd-row:last-child {
  border-bottom: none;
}

.cmd-row:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-xs);
}

.cmd-name {
  font-family: 'JetBrains Mono', var(--font-body), monospace;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

.cmd-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

/* --- Scroll-reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.04s; }
.reveal-delay-2 { transition-delay: 0.08s; }
.reveal-delay-3 { transition-delay: 0.12s; }
.reveal-delay-4 { transition-delay: 0.16s; }
.reveal-delay-5 { transition-delay: 0.2s; }

/* ========================================================
   TEST PAGE — Role Promotion
   ======================================================== */

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 0;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
}

.back-link i {
  font-size: 0.7rem;
}

/* --- Test page header --- */
.test-hero {
  text-align: center;
  padding: 40px 20px 32px;
}

.test-hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.test-hero p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Phase sections --- */
.phase {
  padding: 28px;
}

.phase-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --- Select --- */
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select:hover {
  border-color: var(--glass-border-hover);
}

.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 170, 0, 0.1);
}

.form-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

/* --- CTA button --- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #1a0f00;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255, 170, 0, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 170, 0, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

/* --- Orb / Click area --- */
.click-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 35%,
    var(--gold-light),
    var(--gold) 40%,
    var(--gold-dark) 70%,
    #774400
  );
  border: 2px solid rgba(255, 200, 80, 0.4);
  box-shadow:
    0 0 40px rgba(255, 170, 0, 0.3),
    0 0 80px rgba(255, 170, 0, 0.1),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3),
    inset 0 6px 12px rgba(255, 255, 200, 0.2);
  transition: transform 0.08s ease-out, box-shadow var(--transition);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.orb::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 20%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45), transparent);
  border-radius: 50%;
}

.orb:hover {
  box-shadow:
    0 0 50px rgba(255, 170, 0, 0.45),
    0 0 100px rgba(255, 170, 0, 0.15),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3),
    inset 0 6px 12px rgba(255, 255, 200, 0.2);
}

.orb:active {
  transform: scale(0.92);
}

.orb.pop {
  animation: orb-pop 0.15s ease-out;
}

@keyframes orb-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.click-counter {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

.click-counter span {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

/* --- Progress bar --- */
.progress-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: 100px;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.progress-text {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Success panel --- */
.success-card {
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
}

.success-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* --- Error panel --- */
.error-card {
  padding: 16px 24px;
  text-align: center;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
  border-radius: var(--radius);
}

.error-card p {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

/* ========================================================
   Responsive
   ======================================================== */

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 45vh;
    padding: 36px 16px 20px;
  }

  .section {
    padding: 20px 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 6px;
  }

  .orb {
    width: 120px;
    height: 120px;
  }

  .phase {
    padding: 22px 18px;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }
}
