/* ==========================================================================
   SQUEEK ROYALE — WEB3 TRIPLE-A GAMING PORTAL STYLESHEET
   Aesthetic: Cyber Dark Fantasy / Glassmorphism / Argon Enhanced
   ========================================================================== */

:root {
  --bg-deep: #08050e;
  --bg-body: #0d0818;
  --bg-panel: #160e24;
  --bg-panel-alt: #1c122e;
  --bg-card: #221638;
  --bg-card-hover: #2e1d4a;
  --bg-glass: rgba(22, 14, 36, 0.85);
  --bg-glass-card: rgba(34, 22, 56, 0.75);
  
  --border: #3d2854;
  --border-glow: #8b4fd4;
  --border-gold: rgba(248, 200, 77, 0.4);
  --border-cyan: rgba(0, 242, 254, 0.4);

  --gold: #f8c84d;
  --gold-dim: #c79a2b;
  --gold-glow: #ffe57f;
  --amber: #efa04b;
  --crimson: #ff3366;
  --green: #4cd97b;
  --neon-cyan: #00f2fe;
  --neon-blue: #38a2ff;
  --neon-pink: #f72585;
  --neon-purple: #9d4edd;
  --violet: #b59bd4;
  
  --text: #f9ede2;
  --text-muted: #bfa8ce;
  --text-dim: #846e96;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 10px 32px -8px rgba(0, 0, 0, 0.7);
  --shadow-glow-gold: 0 0 30px rgba(248, 200, 77, 0.22);
  --shadow-glow-cyan: 0 0 30px rgba(0, 242, 254, 0.22);
  --shadow-glow-purple: 0 0 30px rgba(157, 78, 221, 0.25);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* One language on screen at a time: paired <x data-en>…</x><x data-vi>…</x> elements, the one
   not matching <html lang> is hidden (portal.js setLanguage sets the lang attribute). */
html:not([lang="vi"]) [data-vi],
html[lang="vi"] [data-en] { display: none !important; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% -15%, rgba(157, 78, 221, 0.26) 0%, transparent 60%),
    radial-gradient(circle at 5% 45%, rgba(247, 37, 133, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 95% 70%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(248, 200, 77, 0.14) 0%, transparent 50%),
    linear-gradient(to bottom, #08050e 0%, #0e091b 50%, #08050e 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
}

/* Cyber Hex / Grid Backdrop */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(139, 79, 212, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 79, 212, 0.08) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--gold) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #fff 10%, var(--neon-cyan) 60%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   SITE NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 8, 24, 0.88);
  border-bottom: 1px solid rgba(139, 79, 212, 0.35);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a0f1d;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(248, 200, 77, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-titles h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.brand-titles h1 span {
  color: var(--gold);
}

.brand-titles p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 79, 212, 0.4);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(248, 200, 77, 0.12);
  border-color: rgba(248, 200, 77, 0.35);
  box-shadow: 0 0 14px rgba(248, 200, 77, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Toggle Button */
.lang-toggle {
  background: rgba(34, 22, 56, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a0f1d;
  box-shadow: 0 0 10px rgba(248, 200, 77, 0.35);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 2px solid var(--border-glow);
    gap: 8px;
  }
  .nav-menu.open { display: flex; }
  .mobile-nav-toggle { display: block; }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: #1a0f1d !important;
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(248, 200, 77, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 26px rgba(248, 200, 77, 0.5);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
  color: #081326 !important;
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
}

.btn-cyan:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 26px rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
}

/* Pages that also load dapp.css (for the NFT card frames) get its later `.btn { background }`,
   which wiped these gradients while the dark text stayed: ENABLED buttons (Mint, Connect…)
   looked disabled. `.btn.btn-*` outranks `.btn` whatever the load order. A real disabled
   button is the one that is greyed out. */
.btn.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%); border-color: var(--gold); }
.btn.btn-cyan { background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%); border-color: var(--neon-cyan); }
.btn:disabled,
.btn.btn-primary:disabled,
.btn.btn-cyan:disabled {
  opacity: 0.4;
  filter: grayscale(0.7);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(181, 155, 212, 0.4);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(181, 155, 212, 0.12);
  border-color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(181, 155, 212, 0.14);
  border: 1px solid rgba(181, 155, 212, 0.3);
  color: var(--violet);
}

.badge-gold {
  background: rgba(248, 200, 77, 0.15);
  border-color: rgba(248, 200, 77, 0.45);
  color: var(--gold);
}

.badge-green {
  background: rgba(76, 217, 123, 0.15);
  border-color: rgba(76, 217, 123, 0.45);
  color: var(--green);
}

.badge-cyan {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.45);
  color: var(--neon-cyan);
}

.badge-pink {
  background: rgba(247, 37, 133, 0.15);
  border-color: rgba(247, 37, 133, 0.45);
  color: #ff9ec3;
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
}

.page-hero-center {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ==========================================================================
   HERO BANNER (HOME)
   ========================================================================== */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.stat-box .val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  font-family: var(--font-mono);
}

.stat-box .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ==========================================================================
   AUTO-SIMULATING DNA ENGINE (HOME PAGE)
   Focused cleanly on DNA string + 5 Attributes, UNARMED sprites only!
   ========================================================================== */
.dna-engine-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.dna-engine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 79, 212, 0.35);
}

.dna-engine-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-pulse {
  width: 10px;
  height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.dna-engine-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 860px) {
  .dna-engine-grid { grid-template-columns: 1fr; }
}

.dna-preview-box {
  background: radial-gradient(circle at center, #2b1842 0%, #130a20 85%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  position: relative;
}

.dna-unarmed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  color: var(--neon-cyan);
}

.dna-hamster-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 6px auto 10px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s ease;
}

.dna-hamster-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.dna-hamster-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* DNA Hex Bar */
.dna-hex-bar {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dna-hex-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-dna {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy-dna:hover {
  color: #fff;
  border-color: var(--neon-cyan);
}

/* 5 Attributes Rows */
.dna-attributes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attr-row {
  display: grid;
  grid-template-columns: 80px 1fr 34px;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
}

.attr-row .name {
  font-weight: 700;
  color: #fff;
}

.attr-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.attr-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.attr-fill-str { background: linear-gradient(90deg, #ff416c, #ff4b2b); }
.attr-fill-agi { background: linear-gradient(90deg, #00b09b, #96c93d); }
.attr-fill-arm { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.attr-fill-vit { background: linear-gradient(90deg, #f857a6, #ff5858); }
.attr-fill-per { background: linear-gradient(90deg, #f7971e, #ffd200); }

.attr-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold);
  text-align: right;
}

/* 5s Interval Progress Line */
.dna-countdown-bar {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}

.dna-countdown-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--gold));
  transition: width 0.1s linear;
}

/* ==========================================================================
   ARMORY & WEAPONS (NO TIERS!)
   ========================================================================== */
.armory-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
}

@media (max-width: 920px) {
  .armory-container { grid-template-columns: 1fr; }
}

.armory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.weapon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.weapon-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.weapon-card.active {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(248, 200, 77, 0.16), var(--bg-card));
  box-shadow: 0 0 20px rgba(248, 200, 77, 0.28);
}

.weapon-card img.wp-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 4px auto 8px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s;
}

.weapon-card:hover img.wp-icon {
  transform: scale(1.1);
}

.weapon-card .wp-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weapon-card .wp-type-badge {
  font-size: 0.68rem;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-top: 3px;
}

/* Detail Panel */
.weapon-detail-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.detail-header-info h3 {
  font-size: 1.35rem;
  color: var(--gold);
}

.detail-header-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-stats-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.detail-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.detail-stat-row span.label {
  color: var(--text-muted);
}

.detail-stat-row span.val {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.detail-perk-box {
  background: rgba(248, 200, 77, 0.08);
  border: 1px solid rgba(248, 200, 77, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
}

.detail-perk-box h5 {
  color: var(--gold);
  font-size: 0.86rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-perk-box p {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 79, 212, 0.25);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .hero-layout { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.step-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.step-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.step-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  line-height: 1;
}

.step-box h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   CONSUMABLES ROW
   ========================================================================== */
.consumables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .consumables-grid { grid-template-columns: 1fr 1fr; }
}

.consumable-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.consumable-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.consumable-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.consumable-card h4 {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 4px;
}

.consumable-card .heal-val {
  color: var(--green);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.consumable-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   TOKENOMICS CALCULATOR
   ========================================================================== */
.calc-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-slider-group {
  margin-bottom: 20px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.calc-slider-header span.val {
  color: var(--gold);
  font-family: var(--font-mono);
}

.calc-slider {
  width: 100%;
  accent-color: var(--gold);
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  outline: none;
}

.calc-result-box {
  background: radial-gradient(circle at center, #27173b 0%, #170e24 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-box .eth-val {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-mono);
  line-height: 1.1;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(248, 200, 77, 0.4);
}

/* ==========================================================================
   WHITEPAPER READER
   ========================================================================== */
.whitepaper-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  position: relative;
  align-items: start;
}

@media (max-width: 992px) {
  .whitepaper-wrapper { grid-template-columns: 1fr; }
}

.whitepaper-toc {
  position: sticky;
  top: 76px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.toc-search {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.toc-search:focus {
  outline: none;
  border-color: var(--gold);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item a {
  display: block;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.toc-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--gold);
}

.toc-item.active a {
  color: var(--gold);
  background: rgba(248, 200, 77, 0.1);
  border-left-color: var(--gold);
  font-weight: 700;
}

.whitepaper-doc {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .whitepaper-doc { padding: 20px; }
}

.wp-section {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(139, 79, 212, 0.25);
}

.wp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wp-section h2 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-section h2 span.sec-num {
  color: var(--gold);
  font-family: var(--font-mono);
}

.wp-section h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 24px 0 12px;
}

.wp-section p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.wp-callout {
  border-left: 4px solid var(--gold);
  background: rgba(248, 200, 77, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
}

.wp-callout.alert-cyan {
  border-left-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.wp-callout strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #fff;
}

.wp-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: var(--bg-card);
}

.wp-table th, .wp-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(139, 79, 212, 0.2);
}

.wp-table th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.wp-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

pre.code-block {
  background: #06040a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #c4a1fd;
  margin: 18px 0;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  background: #06040a;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);            /* the brand/tagline column is gone */
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 79, 212, 0.2);
  font-size: 0.78rem;
}


/* ==========================================================================
   UI/UX PRO MAX — LANDING PAGE & GAMEPLAY PREVIEW ENHANCEMENTS
   ========================================================================== */

/* Section Anchor Titles */
.lp-section {
  padding: 64px 0 28px;
  position: relative;
}

.lp-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.lp-section-title {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.lp-section-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Hero Slogan & Concept Showcase */
.hero-slogan-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 200, 77, 0.18), rgba(157, 78, 221, 0.18));
  border: 1px solid rgba(248, 200, 77, 0.45);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(248, 200, 77, 0.18);
}

.btn-play-now-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe26a 0%, #f8c84d 45%, #ff8c1a 100%);
  color: #16091e !important;
  border: 2px solid #fff0a8;
  box-shadow: 0 8px 32px rgba(248, 200, 77, 0.48), 0 0 0 4px rgba(248, 200, 77, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-play-now-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: heroBtnShine 3.2s infinite;
}

@keyframes heroBtnShine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}

.btn-play-now-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(248, 200, 77, 0.7), 0 0 0 6px rgba(248, 200, 77, 0.25);
  filter: brightness(1.06);
}

.hero-concept-showcase {
  background: var(--bg-panel);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.hero-concept-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(248, 200, 77, 0.35);
  aspect-ratio: 16 / 10;
  background: #0b0614;
}

.hero-concept-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-concept-main:hover img {
  transform: scale(1.04);
}

.hero-concept-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.1) 0%, rgba(8, 5, 14, 0.4) 55%, rgba(8, 5, 14, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}

.hero-concept-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hero-concept-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.hero-concept-thumb:hover,
.hero-concept-thumb.active {
  border-color: var(--gold);
  background: rgba(248, 200, 77, 0.12);
  box-shadow: 0 0 14px rgba(248, 200, 77, 0.22);
}

.hero-concept-thumb img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-concept-thumb span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

/* ==========================================================================
   GAMEPLAY PREVIEW: CHAOTIC HIGHLIGHT REEL STAGE
   ========================================================================== */
.highlight-reel-shell {
  background: linear-gradient(180deg, rgba(26, 16, 44, 0.95) 0%, rgba(14, 9, 25, 0.98) 100%);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  position: relative;
  overflow: hidden;
}

.highlight-reel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.highlight-clip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-clip-btn {
  background: rgba(34, 22, 56, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.highlight-clip-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.highlight-clip-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #071324;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.highlight-stage-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .highlight-stage-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-canvas-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 242, 254, 0.35);
  background: #141915;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.highlight-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.highlight-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.highlight-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(12, 8, 22, 0.82);
  border: 1px solid rgba(255, 51, 102, 0.55);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3366;
  box-shadow: 0 0 10px #ff3366;
  animation: pulseNeon 1s infinite;
}

.highlight-hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 3;
}

.highlight-caption-box {
  background: rgba(12, 8, 22, 0.85);
  border: 1px solid rgba(248, 200, 77, 0.45);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  max-width: 75%;
}

.highlight-caption-box h4 {
  font-size: 0.92rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.highlight-caption-box p {
  font-size: 0.76rem;
  color: var(--text);
}

.highlight-killfeed-panel {
  background: rgba(13, 8, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.killfeed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow: hidden;
}

.killfeed-item {
  background: rgba(34, 22, 56, 0.7);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  animation: slideInFeed 0.25s ease-out;
}

@keyframes slideInFeed {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   ON-CHAIN RESULTS FLOW DIAGRAM
   ========================================================================== */
.onchain-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 960px) {
  .onchain-flow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .onchain-flow-grid { grid-template-columns: 1fr; }
}

.onchain-flow-step {
  background: linear-gradient(180deg, rgba(34, 22, 56, 0.9), rgba(20, 13, 34, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.onchain-flow-step .step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #16091e;
  background: var(--neon-cyan);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.onchain-flow-step h4 {
  color: var(--gold);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.onchain-flow-step p {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ==========================================================================
   HAMSTER KING BRAND LOGO & STREAMLINED SECTIONS
   ========================================================================== */
.brand-king-logo {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(248, 200, 77, 0.28) 0%, rgba(26, 15, 39, 0.92) 78%);
  border: 1.5px solid rgba(248, 200, 77, 0.65);
  box-shadow: 0 0 18px rgba(248, 200, 77, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.brand:hover .brand-king-logo {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(248, 200, 77, 0.52);
}
.brand-king-logo .king-face {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 62% 38%;
  border-radius: 10px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}
.brand-king-logo .king-crown {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-44%) rotate(-4deg);
  width: 30px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(248, 200, 77, 0.7));
}
.lp-section {
  padding: 44px 0 22px;
}
.lp-section-header {
  max-width: 720px;
  margin: 0 auto 24px;
}
.lp-section-title {
  font-size: 2rem;
  margin-bottom: 6px;
}
.lp-section-sub {
  font-size: 0.92rem;
}


/* ==========================================================================
   AGY NATIVE DESIGN SYSTEM — HIGH-CONTRAST OPAQUE BUTTONS & CONTROLS
   Overrides dapp.css overrides and eliminates dark/transparent hard-to-read buttons
   ========================================================================== */

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  font-family: var(--font-main);
  border-radius: 10px;
  background: linear-gradient(180deg, #3c275d 0%, #2a1b43 100%);
  border: 1.5px solid #6b479e;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn:hover:not(:disabled),
button.btn:hover:not(:disabled),
a.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #4b3174 0%, #372357 100%);
  border-color: #9f6ee6;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 79, 212, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Primary & Connect MetaMask CTA (Solid Gold-Amber with crisp dark text) */
.btn.btn-primary,
.btn.primary,
button.btn-primary,
a.btn-primary,
#btnConnect,
#btnGateConnect {
  background: linear-gradient(135deg, #ffe26a 0%, #f8c84d 50%, #f29a2e 100%) !important;
  color: #16091e !important;
  border: 1.5px solid #fff2b2 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 20px rgba(248, 200, 77, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.btn.btn-primary:hover:not(:disabled),
.btn.primary:hover:not(:disabled),
button.btn-primary:hover:not(:disabled),
a.btn-primary:hover:not(:disabled),
#btnConnect:hover:not(:disabled),
#btnGateConnect:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(248, 200, 77, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  color: #16091e !important;
}

/* Cyan Action Button (Solid Neon Cyan-Blue) */
.btn.btn-cyan,
button.btn-cyan,
a.btn-cyan {
  background: linear-gradient(135deg, #52f7ff 0%, #00e1ff 50%, #2492ff 100%) !important;
  color: #061326 !important;
  border: 1.5px solid #a8fbff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.btn.btn-cyan:hover:not(:disabled),
button.btn-cyan:hover:not(:disabled),
a.btn-cyan:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 242, 254, 0.58) !important;
  color: #061326 !important;
}

/* Secondary / Outline Button (Solid elevated plum surface — never dark transparent!) */
.btn.btn-outline,
button.btn-outline,
a.btn-outline {
  background: linear-gradient(180deg, #382458 0%, #281940 100%) !important;
  border: 1.5px solid #7c54b5 !important;
  color: #f9ede2 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.btn.btn-outline:hover:not(:disabled),
button.btn-outline:hover:not(:disabled),
a.btn-outline:hover:not(:disabled) {
  background: linear-gradient(180deg, #4b3175 0%, #362256 100%) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(248, 200, 77, 0.25) !important;
}

.btn.btn-sm,
button.btn-sm,
a.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.btn.btn-lg,
button.btn-lg,
a.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

/* Copy DNA & Clip Tabs — crisp readable surfaces */
.btn-copy-dna {
  background: #352254 !important;
  border: 1px solid #754ead !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 4px 10px;
}

.btn-copy-dna:hover {
  background: #482e70 !important;
  border-color: var(--gold) !important;
}

.highlight-clip-btn {
  background: #2e1d4a !important;
  border: 1.5px solid #634194 !important;
  color: #f3e6ff !important;
}

.highlight-clip-btn:hover {
  background: #3d2761 !important;
  border-color: var(--neon-cyan) !important;
  color: #ffffff !important;
}

.highlight-clip-btn.active {
  background: linear-gradient(135deg, #52f7ff 0%, #00d8f6 55%, #2492ff 100%) !important;
  color: #061326 !important;
  border-color: #a8fbff !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.45) !important;
}

/* Language Toggle Pill */
.lang-toggle {
  background: #26183d !important;
  border: 1.5px solid #6b479e !important;
}

.lang-btn {
  color: #e2d1f0 !important;
}

/* Top Nav Bar & Links — Strict single-line layout (overrides dapp.css header flex shrink) */
/* Top Nav Bar — one row that always fits the screen, aligned with the page content
   (.container, 1320px). Narrower screens drop the brand words, then fold the menu into ☰. */
header.site-nav,
.site-nav {
  display: block !important;
  padding: 0 !important;
}

.site-nav > .container {
  width: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 10px 24px;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav .brand-titles h1,
.site-nav .brand-titles p {
  white-space: nowrap;
  line-height: 1.15;
}

.site-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  margin: 0 auto;
  list-style: none;
}

.nav-link {
  color: #e2d1f0;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.site-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-nav .nav-actions .btn,
.site-nav .nav-actions .pill,
.site-nav .lang-toggle,
.site-nav .lang-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* sound on/off is an icon in the nav (its tooltip says what it does) */
.site-nav #btnAudioToggle {
  min-width: 36px;
  padding: 6px 9px;
  justify-content: center;
}
.site-nav #btnAudioToggle span { display: none !important; }

/* fitNav() in portal.js: .nav-tight drops the brand words, .nav-fold folds the menu into ☰ */
.site-nav.nav-tight .brand-titles { display: none; }

.site-nav.nav-fold .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg-panel);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px;
    border-bottom: 2px solid var(--border-glow);
    gap: 6px;
}
.site-nav.nav-fold .nav-menu.open { display: flex; }
.site-nav.nav-fold .mobile-nav-toggle { display: block; }

@media (max-width: 900px) {      /* the same without JS on small screens */
  .site-nav .brand-titles { display: none; }
  .site-nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg-panel);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px;
    border-bottom: 2px solid var(--border-glow);
    gap: 6px;
  }
  .site-nav .nav-menu.open { display: flex; }
  .site-nav .mobile-nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .site-nav > .container { padding: 8px 12px; gap: 8px; }
  .site-nav .nav-actions { gap: 6px; }
}

/* ==========================================================================
   HOW TO JOIN — END-TO-END FLOW DIAGRAM (Mint NFT -> Battle -> Claim)
   ========================================================================== */
.join-diagram-shell {
  background: linear-gradient(180deg, rgba(30, 19, 48, 0.96) 0%, rgba(17, 11, 29, 0.98) 100%);
  border: 1.5px solid rgba(248, 200, 77, 0.42);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.join-diagram-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.join-node {
  background: linear-gradient(180deg, #2b1c44 0%, #1d1230 100%);
  border: 1.5px solid #5e3f8c;
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.join-node:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(248, 200, 77, 0.22);
}

.join-node.node-mint { border-color: rgba(0, 242, 254, 0.55); }
.join-node.node-join { border-color: rgba(181, 155, 212, 0.6); }
.join-node.node-battle { border-color: rgba(247, 37, 133, 0.6); }
.join-node.node-verify { border-color: rgba(76, 217, 123, 0.6); }
.join-node.node-claim {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(66, 44, 24, 0.85) 0%, #211533 100%);
  box-shadow: 0 0 24px rgba(248, 200, 77, 0.22);
}

.join-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.join-step-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(248, 200, 77, 0.18);
  border: 1px solid rgba(248, 200, 77, 0.55);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.join-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 8, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.join-node-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.join-node h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.join-node p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 10px;
}

.join-node-tag {
  margin-top: auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(10, 6, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.join-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  color: var(--gold);
  user-select: none;
}

.join-arrow svg {
  width: 34px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(248, 200, 77, 0.55));
}

.join-arrow span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}

.join-branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(139, 79, 212, 0.45);
}

.join-branch-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(20, 13, 34, 0.85);
  border: 1px solid var(--border);
}

.join-branch-card.branch-win {
  border-color: rgba(76, 217, 123, 0.5);
  background: linear-gradient(90deg, rgba(76, 217, 123, 0.1), rgba(20, 13, 34, 0.9));
}

.join-branch-card.branch-refund {
  border-color: rgba(0, 242, 254, 0.45);
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), rgba(20, 13, 34, 0.9));
}

@media (max-width: 1120px) {
  .join-diagram-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .join-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .join-branches-grid {
    grid-template-columns: 1fr;
  }
}

.nav-link:hover {
  color: #ffffff;
  background: #2e1d4a;
  border-color: #6b479e;
}

.nav-link.active {
  color: #16091e !important;
  background: linear-gradient(135deg, #ffe26a 0%, #f8c84d 100%) !important;
  border-color: #fff2b2 !important;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(248, 200, 77, 0.35);
}

/* Footer always sits at the bottom of the screen: the page is a full-height column and the
   footer takes whatever space is left above it (a short /play before connecting, etc.). */
body { display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > main.container { width: 100%; }            /* a flex item with auto margins would shrink */
body > .site-footer { margin-top: auto !important; }
body > :has(+ .site-footer) { margin-bottom: 40px; }
