/* ============================================================
   LUREGUESSR // tactical game UI
   ============================================================ */
:root {
  --bg: #06080d;
  --panel: #0e131c;
  --panel-2: #141b26;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eaf1f8;
  --muted: #8a96a8;
  --accent: #ff7a18;       /* tactical orange */
  --accent-2: #1fe0cf;     /* hud cyan */
  --danger: #ff4d4d;

  /* rarity colors */
  --r-common: #9aa6b6;
  --r-rare: #3da5ff;
  --r-epic: #b46bff;
  --r-legendary: #ffb020;

  /* shared angular corner cut */
  --notch: polygon(14px 0, 100% 0, 100% calc(100% - 14px),
                   calc(100% - 14px) 100%, 0 100%, 0 14px);
  --notch-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px),
                      calc(100% - 8px) 100%, 0 100%, 0 8px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 10% -8%, rgba(255, 122, 24, 0.20), transparent 60%),
    radial-gradient(900px 620px at 100% 0%, rgba(31, 224, 207, 0.14), transparent 55%),
    linear-gradient(180deg, #080b11 0%, #05070b 60%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 32px;
  position: relative;
  overflow-x: hidden;
}

/* tech-grid + scanline overlays */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 10%, #000 35%, transparent 85%);
  mask-image: radial-gradient(circle at 50% 10%, #000 35%, transparent 85%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.30;
  mix-blend-mode: overlay;
}

/* stage sits ABOVE the catalog so the overhanging mission card (and its
   email field) stays clickable where it overlaps the catalog below */
.stage { position: relative; z-index: 3; }
.catalog { position: relative; z-index: 1; }

/* ===================== Stage / hero ===================== */
.stage {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  position: relative;
  width: 96%;
  margin: 0 auto;
  min-height: 54vh;
  clip-path: var(--notch);
  overflow: hidden;
  background: #05070b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 140px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* blurred + darkened cover behind the sharp foreground */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.20), rgba(5, 8, 12, 0.68)),
    var(--cover-img, url("assets/banner.png")) center / cover;
}

/* HUD corner brackets */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
}
.hero::before {
  top: 46px;
  left: 18px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.hero::after {
  bottom: 18px;
  right: 18px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.hud-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #e7eef5;
  padding: 7px 12px;
  background: rgba(8, 11, 16, 0.62);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: var(--notch-sm);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ---- Centered stat cluster on the cover ---- */
.hero-badges {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hstat {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(22, 28, 38, 0.92), rgba(8, 11, 16, 0.92));
  backdrop-filter: blur(7px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.5);
}
.hstat-stars {
  font-size: 0.64rem;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 5px rgba(255, 122, 24, 0.6));
}
.hstat-num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
}
.hstat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2ccd9;
}

/* center circle — glowing orange ring */
.hero-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1b2433, #0b1018);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 22px rgba(255, 122, 24, 0.7),
    0 0 46px rgba(255, 122, 24, 0.35);
  animation: rewardPulse 2.4s ease-in-out infinite;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-avatar .logo-mark {
  font-size: 2rem;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.9));
}

/* ===================== Navbar (HUD bar) ===================== */
.navbar {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-bottom: -30px;
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.92), rgba(11, 15, 22, 0.94));
  backdrop-filter: blur(10px);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* glowing accent underline */
.navbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* status LEDs */
.dots { display: flex; gap: 8px; flex: 0 0 auto; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.dot.red    { background: #ff5f57; box-shadow: 0 0 8px rgba(255, 95, 87, 0.7); }
.dot.yellow { background: #febc2e; box-shadow: 0 0 8px rgba(254, 188, 46, 0.6); }
.dot.green  { background: #28c840; box-shadow: 0 0 8px rgba(40, 200, 64, 0.6); }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  font-size: 1.25rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 122, 24, 0.8));
}
.logo-text {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff, #aeb9c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* credits chip — hidden until the recruit earns coins */
.credits {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #ffe2b0;
  background: rgba(255, 122, 24, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.45);
  clip-path: var(--notch-sm);
}
.credits.is-hidden { display: none; }
.gem { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.9)); }

/* social buttons */
.socials { display: flex; gap: 8px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  clip-path: var(--notch-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color 0.18s ease, background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}
.social:hover {
  transform: translateY(-2px);
  color: var(--social-hover, var(--accent));
  background: color-mix(in srgb, var(--social-hover, var(--accent)) 14%, transparent);
  box-shadow: inset 0 0 0 1px var(--social-hover, var(--accent)),
    0 6px 16px color-mix(in srgb, var(--social-hover, var(--accent)) 30%, transparent);
}
.social:active { transform: translateY(0); }

/* ===================== Hero card ===================== */
.hero-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 40%);
  width: 90%;
  max-width: 470px;
  padding: 26px 30px 28px;
  z-index: 4;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.96), rgba(10, 14, 20, 0.97));
  backdrop-filter: blur(10px);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}
/* top accent edge */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.card-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.card-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff, #c4cdd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-text {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 13px 26px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1208;
  background: linear-gradient(180deg, #ffa340, var(--accent));
  clip-path: var(--notch-sm);
  box-shadow: 0 8px 22px rgba(255, 122, 24, 0.4);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.card-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.55);
}
.card-btn:active { transform: translateY(0); }

/* ---- Mission flow ---- */
.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mission-head .card-kicker { margin-bottom: 0; }

.mission-pips {
  display: flex;
  gap: 6px;
}
.pip {
  width: 22px;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.pip.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.7);
}

/* steps swap in/out */
.step { display: none; animation: stepIn 0.25s ease; }
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mission .card-title { font-size: 1.7rem; }

/* email signup */
.enlist {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.enlist-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: var(--notch-sm);
  outline: none;
  transition: box-shadow 0.2s ease;
}
.enlist-input::placeholder { color: #5d6675; }
.enlist-input:focus {
  box-shadow: inset 0 0 0 1px var(--accent-2), 0 0 14px rgba(31, 224, 207, 0.25);
}

/* yes / no choices */
.choice-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.choice {
  flex: 1 1 0;
  padding: 13px 10px;
  cursor: pointer;
  border: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: var(--notch-sm);
  transition: all 0.15s ease;
}
.choice:hover { transform: translateY(-2px); }
.choice-yes:hover {
  color: #07120f;
  background: linear-gradient(180deg, #45f0df, var(--accent-2));
  box-shadow: 0 8px 20px rgba(31, 224, 207, 0.4);
}
.choice-no:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--danger), 0 8px 20px rgba(255, 77, 77, 0.25);
}

.reward-note {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffd9a8;
}
.reward-note .gem { font-size: 0.8rem; }

/* credits chip bump when score increases */
.credits--bump { animation: bump 0.4s ease; }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.14); box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(255, 122, 24, 0.8); }
}

/* ---- Returning-user tooltip ---- */
.mission-tip { text-align: center; }
.mission-tip .card-kicker { color: var(--accent-2); margin-bottom: 10px; }
.tip-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  animation: tipGlow 2.4s ease-in-out infinite;
}
@keyframes tipGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 122, 24, 0.45)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 122, 24, 0.9)); transform: scale(1.08); }
}

/* ===================== Free $15 affiliate reward ===================== */
.whatnot-step { text-align: center; }
.whatnot-step .card-kicker { color: var(--accent); }

.reward {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 16px auto 22px;
  display: grid;
  place-items: center;
}

/* rotating ray halo behind the badge */
.reward-rays {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 122, 24, 0), rgba(255, 122, 24, 0.55) 8%, rgba(255, 122, 24, 0) 22%,
    rgba(31, 224, 207, 0) 40%, rgba(31, 224, 207, 0.5) 50%, rgba(31, 224, 207, 0) 62%,
    rgba(255, 122, 24, 0) 78%, rgba(255, 122, 24, 0.55) 90%, rgba(255, 122, 24, 0)
  );
  filter: blur(1px);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 46%, #000 70%, transparent 80%);
  mask: radial-gradient(circle, transparent 40%, #000 46%, #000 70%, transparent 80%);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* the glowing coin badge */
.reward-badge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: radial-gradient(circle at 50% 32%, #1b2433, #0b1018);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 28px rgba(255, 122, 24, 0.5),
    inset 0 0 22px rgba(255, 122, 24, 0.22);
  animation: rewardPulse 2.2s ease-in-out infinite;
}
@keyframes rewardPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 2px var(--accent), 0 0 24px rgba(255, 122, 24, 0.45),
      inset 0 0 20px rgba(255, 122, 24, 0.2);
  }
  50% {
    box-shadow: inset 0 0 0 2px #ffb163, 0 0 46px rgba(255, 122, 24, 0.85),
      inset 0 0 30px rgba(255, 122, 24, 0.35);
  }
}
/* glare sweep across the badge */
.reward-badge::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  mix-blend-mode: screen;
  animation: glare 2.8s ease-in-out infinite;
}
@keyframes glare {
  0% { transform: translateX(-70%); }
  60%, 100% { transform: translateX(70%); }
}

.reward-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-2);
}
.reward-amount {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #ffcf9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 122, 24, 0.6));
}
.reward-cents { font-size: 1.05rem; }
.reward-sub {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* extra-glowy claim button with a continuous shine sweep */
.reward-btn {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  animation: claimGlow 2.2s ease-in-out infinite;
}
@keyframes claimGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 122, 24, 0.4); }
  50% { box-shadow: 0 10px 30px rgba(255, 122, 24, 0.7); }
}
.reward-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shine 2.4s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -50%; }
  60%, 100% { left: 130%; }
}

/* ===================== Modal ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 36px 32px 30px;
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.98), rgba(10, 14, 20, 0.99));
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.modal-close:hover { color: #fff; }
.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 14px rgba(31, 224, 207, 0.6));
}
.modal-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff, #c4cdd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-text {
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 22px;
}

/* ===================== Catalog window ===================== */
.catalog {
  max-width: 940px;
  margin: 0 auto;
  padding: 130px 0 70px;
}

.browser {
  position: relative;
  background: var(--panel);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #161d28, #10151d);
  border-bottom: 1px solid var(--line);
}
.address {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
  padding: 7px 16px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--notch-sm);
  color: #b9c3d0;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lock { color: var(--accent-2); }
.addr-sep { color: var(--accent); }
.bar-spacer { flex: 0 0 auto; width: 52px; }

.browser-body { padding: 30px 30px 34px; }

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.catalog-title {
  position: relative;
  font-family: "Oswald", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 14px;
}
.catalog-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.6);
}

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters[hidden] { display: none; }

/* ---- Detail (single-bait) back bar ---- */
.detail-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.detail-bar[hidden] { display: none; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  padding: 8px 15px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: var(--notch-sm);
  transition: all 0.15s ease;
}
.back-btn:hover {
  color: #1a1208;
  background: linear-gradient(180deg, #ffa340, var(--accent));
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.4);
}
.detail-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter {
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aeb9c7;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--notch-sm);
  transition: all 0.15s ease;
}
.filter:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.filter.is-active {
  color: #1a1208;
  background: linear-gradient(180deg, #ffa340, var(--accent));
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.4);
}

/* ---- Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.product {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), #0d121a);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  --r: var(--r-common);
}
/* color cards are whole-card links */
a.product--link { text-decoration: none; color: inherit; }
.product.rarity-common    { --r: var(--r-common); }
.product.rarity-rare      { --r: var(--r-rare); }
.product.rarity-epic      { --r: var(--r-epic); }
.product.rarity-legendary { --r: var(--r-legendary); }

.product:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--r);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
}

.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--r) 22%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, #11161f, #11161f 11px, #0d121a 11px, #0d121a 22px);
  border-bottom: 1px solid var(--line);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  color: #5d6675;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.rarity-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #07090d;
  background: var(--r);
  padding: 3px 8px;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
  box-shadow: 0 0 12px color-mix(in srgb, var(--r) 60%, transparent);
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.product-type {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 3px 8px;
  box-shadow: inset 0 0 0 1px rgba(31, 224, 207, 0.35);
}
.product-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #0d121a;
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--accent), 0 0 10px rgba(255, 122, 24, 0.6);
}
.product-count {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.product-price {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.product-cta {
  display: block;
  width: 100%;
  margin-top: 4px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 9px 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6deea;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: var(--notch-sm);
  transition: all 0.15s ease;
}
.product-cta:hover {
  color: #1a1208;
  background: linear-gradient(180deg, #ffa340, var(--accent));
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.4);
}

/* ===================== Color page ===================== */
.cp-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 0 70px;
}
.cp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.cp-back:hover { color: var(--text); }

.cp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(180deg, var(--panel-2), #0d121a);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55));
  --r: var(--r-common);
}
.cp-media {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.cp-media img { width: 100%; height: 100%; object-fit: cover; }
.cp-info {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.cp-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.cp-name {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #c4cdd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp-meta { display: flex; align-items: center; gap: 14px; }
.cp-price {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
}
.cp-swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #0d121a; box-shadow: 0 0 0 1px var(--line-strong);
}
.cp-buy { align-self: flex-start; margin-top: 6px; }

@media (max-width: 640px) {
  .cp-wrap { padding: 16px 14px 50px; }
  .cp-card { grid-template-columns: 1fr; }
  .cp-media { min-height: 240px; border-right: none; border-bottom: 1px solid var(--line); }
  .cp-info { padding: 22px 20px; }
  .cp-name { font-size: 1.7rem; }
}

/* ===================== Confetti ===================== */
.confetti-piece {
  position: fixed;
  top: -16px;
  width: 9px;
  height: 15px;
  z-index: 300;
  pointer-events: none;
  will-change: transform, opacity;
  animation: confettiFall var(--dur, 2.5s) cubic-bezier(0.25, 0.6, 0.5, 1) forwards;
}
@keyframes confettiFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.95; }
  90%  { opacity: 0.95; }
  100% { transform: translate(var(--drift, 0), 108vh) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* ===================== Mobile ===================== */
@media (max-width: 560px) {
  body { padding: 0; }

  .stage { max-width: 100%; }

  /* Full-bleed, shorter hero — drop the busy HUD bits to declutter */
  .hero {
    width: 100%;
    height: 290px;
    min-height: 0;
    margin: 0;
    clip-path: none;
    background-size: cover;
  }
  .hero::before,
  .hero::after { display: none; }
  .hud-tag { display: none; }

  /* compact stat cluster */
  .hero-badges { top: 46%; gap: 11px; }
  .hstat { width: 70px; height: 70px; }
  .hstat-num { font-size: 1.25rem; }
  .hstat-stars { font-size: 0.56rem; letter-spacing: 1px; }
  .hstat-label { font-size: 0.54rem; }
  .hero-avatar { width: 98px; height: 98px; }

  /* Compact floating navbar */
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 10px;
    padding: 9px 12px;
  }
  .logo-mark { font-size: 1.05rem; }
  .logo-text { font-size: 1.15rem; letter-spacing: 0.05em; }
  .nav-right { gap: 7px; }
  .social { width: 36px; height: 36px; }
  .social svg { width: 16px; height: 16px; }
  .credits { display: none; }

  /* Mission card flows BELOW the hero (no fragile overlap math) */
  .hero-card {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    width: calc(100% - 28px);
    max-width: none;
    margin: -30px auto 0;       /* slight overlap onto the image bottom */
    padding: 22px 20px 24px;
  }
  .mission .card-title { font-size: 1.5rem; }
  .card-text { font-size: 0.92rem; line-height: 1.45; }
  .mission-head { margin-bottom: 12px; }

  .enlist { gap: 7px; }
  .enlist .card-btn { padding: 11px 16px; }
  .choice { font-size: 0.92rem; padding: 12px 8px; }

  /* Smaller reward wheel */
  .reward { width: 124px; height: 124px; margin: 8px auto 14px; }
  .reward-badge { width: 102px; height: 102px; }
  .reward-amount { font-size: 1.95rem; }

  /* Catalog — card is in flow now, so normal top spacing */
  .catalog { padding: 28px 14px 44px; }
  .browser-bar { padding: 11px 14px; gap: 10px; }
  .browser-body { padding: 18px 14px 22px; }
  .catalog-head { gap: 12px; margin-bottom: 18px; }
  .catalog-title { font-size: 1.4rem; }
  .filters { gap: 7px; }
  .filter { padding: 7px 12px; font-size: 0.8rem; }
  .address { font-size: 0.64rem; letter-spacing: 0.06em; max-width: none; }
  .bar-spacer { display: none; }

  .grid { gap: 14px; }
  .modal { padding: 30px 22px 26px; }
  .modal-title { font-size: 1.5rem; }
}
