/* ══════════════════════════════════════════════════════════════════
   DUDES CRAFT — GENESIS ALLOCATION CHECKER STYLESHEET
   Clean, Modern, Mobile-First Web3 Design System
   ══════════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Colors */
  --lemon: #C6F221;
  --lemon-hover: #D4FF00;
  --lemon-light: rgba(198, 242, 33, 0.15);
  --obsidian: #0A0B0D;
  --obsidian-card: #12151B;
  --slate: #5E6673;
  --muted: #8E98A8;
  --bg-parchment: #FAFAF7;
  --card-bg: #FFFFFF;
  --border-color: #0A0B0D;

  /* Shadows */
  --voxel-shadow: 4px 4px 0px #0A0B0D;
  --voxel-shadow-lg: 6px 6px 0px #0A0B0D;
  --voxel-shadow-sm: 2px 2px 0px #0A0B0D;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 9999px;
}

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

body.checker-body {
  background-color: var(--bg-parchment);
  background-image: 
    linear-gradient(rgba(198, 242, 33, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 242, 33, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(10, 11, 13, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 11, 13, 0.03) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  color: var(--obsidian);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Confetti Canvas Overlay */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Wrapper */
.checker-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ── NAV BAR ── */
.checker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--border-color);
  border-radius: var(--r-md);
  box-shadow: var(--voxel-shadow-sm);
  margin-bottom: 32px;
}

.checker-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--obsidian);
}

.checker-brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
}

.checker-brand-text {
  display: flex;
  flex-direction: column;
}

.checker-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--obsidian);
}

.checker-brand-chain {
  font-size: 0.68rem;
  color: var(--slate);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.checker-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-nav-outline:hover {
  background: #F4F5F0;
  transform: translate(-1px, -1px);
}

.btn-nav-lemon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--lemon);
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 2px 2px 0px var(--border-color);
  transition: all 0.15s ease;
}

.btn-nav-lemon:hover {
  background: var(--lemon-hover);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-color);
}

/* ── HERO SECTION ── */
.hero-clean-section {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0FDF4;
  border: 1.5px solid #22C55E;
  color: #15803D;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--obsidian);
  margin-bottom: 12px;
}

.page-title .highlight {
  background: var(--lemon);
  padding: 0px 8px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
  display: inline-block;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0 auto;
}

.page-subtitle strong {
  color: var(--obsidian);
}

/* ── MAIN SPLIT CONTAINER ── */
.main-split-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ── CHECKER COCKPIT (LEFT) ── */
.checker-cockpit {
  background: #FFFFFF;
  border: 2.5px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--voxel-shadow-lg);
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed rgba(10, 11, 13, 0.12);
}

.cockpit-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  border-radius: 4px;
  text-transform: uppercase;
}

.cockpit-chip.status-live {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #16A34A;
}

.cockpit-id-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  font-weight: 600;
}

.cockpit-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--obsidian);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.cockpit-subtext {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 22px;
}

/* Search Form */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748B;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.wallet-input {
  width: 100%;
  height: 52px;
  padding: 0 85px 0 44px;
  background: #F8FAFC;
  border: 2px solid var(--border-color);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--obsidian);
  outline: none;
  transition: all 0.15s ease;
}

.wallet-input:focus {
  background: #FFFFFF;
  border-color: var(--obsidian);
  box-shadow: 0 0 0 3px rgba(198, 242, 33, 0.45);
}

.wallet-input::placeholder {
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.btn-paste {
  position: absolute;
  right: 8px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  color: var(--obsidian);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-paste:hover {
  background: var(--lemon);
}

.btn-check {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lemon);
  border: 2px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--voxel-shadow);
  transition: all 0.15s ease;
}

.btn-check:hover:not(:disabled) {
  background: var(--lemon-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--border-color);
}

.btn-check:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.btn-check:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ── RESULT CARD STYLING ── */
.result-mount {
  margin-bottom: 24px;
}

.result-card-box {
  border: 2px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 24px 20px;
  box-shadow: var(--voxel-shadow);
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Theme: BOTH (Dual Allocation) */
.result-card-box.theme-both {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEFCE8 60%, #F7FEE7 100%);
  border-color: #B45309;
}

/* Theme: GDT */
.result-card-box.theme-gdt {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border-color: #15803D;
}

/* Theme: FCFS */
.result-card-box.theme-fcfs {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
  border-color: #0369A1;
}

/* Theme: NONE (Not Eligible) */
.result-card-box.theme-none {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
  border-color: #DC2626;
}

.result-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.result-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.theme-both .result-pill-badge {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}

.theme-gdt .result-pill-badge {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

.theme-fcfs .result-pill-badge {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #7DD3FC;
}

.theme-none .result-pill-badge {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.result-serial-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
  background: rgba(10, 11, 13, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.result-hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--obsidian);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.theme-none .result-hero-title {
  color: #DC2626;
}

.result-hero-desc {
  font-size: 0.94rem;
  color: #334155;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Allocation Tag Chips */
.alloc-tags-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.alloc-tag-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid transparent;
}

.alloc-tag-chip.tag-gdt {
  background: #DCFCE7;
  color: #14532D;
  border-color: #86EFAC;
}

.alloc-tag-chip.tag-fcfs {
  background: #E0F2FE;
  color: #075985;
  border-color: #7DD3FC;
}

/* Info Table */
.result-info-table {
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 11, 13, 0.12);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.info-lbl {
  color: #64748B;
  font-weight: 500;
}

.info-val {
  font-weight: 700;
  color: var(--obsidian);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-val.monospace {
  font-family: var(--font-mono);
}

.info-val.highlight-gold {
  color: #B45309;
}

.info-val.highlight-cyan {
  color: #0284C7;
}

.info-val.highlight-lime {
  color: #15803D;
}

.btn-copy-micro {
  padding: 2px 7px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-micro:hover {
  background: var(--lemon);
  color: var(--obsidian);
  border-color: var(--obsidian);
}

/* Result Action Buttons */
.result-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action-x {
  flex: 1;
  min-width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.btn-action-x:hover {
  background: #18181B;
  transform: translate(-1px, -1px);
}

.btn-action-reset {
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-reset:hover {
  background: #F8FAFC;
}

/* Cockpit Micro Stats */
.cockpit-micro-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1.5px solid rgba(10, 11, 13, 0.08);
  border-radius: var(--r-sm);
}

.micro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.micro-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--obsidian);
  line-height: 1.1;
}

.micro-lbl {
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.micro-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(10, 11, 13, 0.12);
}

/* ── MASCOT COMPANION CARD (RIGHT) ── */
.mascot-companion-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--voxel-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mascot-preview-box {
  position: relative;
  width: 200px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pedestal-glow {
  position: absolute;
  bottom: 10px;
  width: 150px;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(198, 242, 33, 0.6) 0%, rgba(198, 242, 33, 0.1) 65%, transparent 80%);
  border-radius: 50%;
  filter: blur(4px);
  animation: breatheAnim 3s ease-in-out infinite;
}

@keyframes breatheAnim {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}

.mascot-sprite {
  max-width: 185px;
  max-height: 220px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.14));
  animation: hoverSprite 3s ease-in-out infinite;
}

@keyframes hoverSprite {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mascot-switch-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
}

.mascot-switch-btn {
  flex: 1;
  padding: 8px 10px;
  background: #F1F5F9;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--obsidian);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mascot-switch-btn.active {
  background: var(--lemon);
  box-shadow: 2px 2px 0px var(--border-color);
}

.mascot-info-card {
  background: #F8FAFC;
  border: 1px solid rgba(10, 11, 13, 0.08);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.info-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--obsidian);
  margin-bottom: 4px;
}

.info-desc {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.45;
  margin: 0;
}

/* ── FOOTER ── */
.checker-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(10, 11, 13, 0.15);
  color: var(--slate);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--obsidian);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE FIRST RESPONSIVENESS (SMARTPHONES & TABLETS)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .main-split-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mascot-companion-card {
    order: 2; /* Shows AFTER the search cockpit */
    padding: 20px 16px;
  }

  .mascot-preview-box {
    height: 180px;
    width: 160px;
  }

  .mascot-sprite {
    max-height: 170px;
  }
}

@media (max-width: 600px) {
  .checker-wrap {
    padding: 12px 12px 50px;
  }

  .checker-nav {
    padding: 10px 12px;
    margin-bottom: 24px;
  }

  .checker-brand-name {
    font-size: 1rem;
  }

  .btn-nav-outline .nav-btn-text {
    display: none; /* Icon only on tight mobile */
  }

  .btn-nav-outline {
    padding: 8px 10px;
  }

  .page-title {
    font-size: 1.85rem;
  }

  .page-subtitle {
    font-size: 0.88rem;
  }

  .checker-cockpit {
    padding: 20px 16px;
    border-radius: var(--r-md);
  }

  .cockpit-heading {
    font-size: 1.3rem;
  }

  .cockpit-subtext {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .wallet-input {
    height: 48px;
    font-size: 0.85rem;
    padding-right: 78px;
    padding-left: 38px;
  }

  .input-icon {
    left: 10px;
  }

  .btn-paste {
    right: 6px;
    height: 32px;
    font-size: 0.72rem;
    padding: 0 9px;
  }

  .btn-check {
    height: 48px;
    font-size: 0.95rem;
  }

  .result-card-box {
    padding: 18px 14px;
  }

  .result-hero-title {
    font-size: 1.3rem;
  }

  .result-hero-desc {
    font-size: 0.88rem;
  }

  .alloc-tag-chip {
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .result-footer-actions {
    flex-direction: column;
  }

  .btn-action-x,
  .btn-action-reset {
    width: 100%;
  }

  .cockpit-micro-stats {
    padding: 10px 8px;
  }

  .micro-val {
    font-size: 0.95rem;
  }

  .micro-lbl {
    font-size: 0.65rem;
  }
}
