@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  /* Cartoon "FFC Garden & Kennel" palette coordinated with the NFT PNG artwork */
  --ink: #1a1614;
  --bg-sky: #7dd3fc;
  --bg-garden: #14532d;
  --bg-turf: #166534;
  --wood-dark: #451a03;
  --wood-mid: #78350f;
  --wood-light: #b45309;
  --kennel-red: #dc2626;
  --kennel-roof: #991b1b;

  /* Cartoon Clubhouse card surfaces */
  --bg: #0f291e;
  --panel: #1a3a2a;
  --panel-alt: #234b37;
  --panel-cream: #fef9c3;
  --border: #1a1614;
  --border-highlight: #4ade80;

  --text: #fefce8;
  --muted: #bbf7d0;
  --gold: #f59e0b;
  --gold-light: #fde047;
  --green: #22c55e;
  --cyan: #38bdf8;
  --purple: #a855f7;
  --danger: #ef4444;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(253, 224, 71, 0.14) 0%, transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.14) 0%, transparent 40%),
    repeating-linear-gradient(-45deg, rgba(20, 83, 45, 0.35) 0px, rgba(20, 83, 45, 0.35) 18px, rgba(22, 101, 52, 0.35) 18px, rgba(22, 101, 52, 0.35) 36px);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .brand-title, .nav-section-title, .btn {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--gold-light);
  font-weight: 700;
}

/* =============================================================
   INTERACTIVE AMBIENT GARDEN PARTICLE CANVAS
   ============================================================= */
#ambientGardenCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* =============================================================
   GENERAL APP LAYOUT WITH WOODEN KENNEL SIDEBAR
   ============================================================= */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* WOODEN KENNEL-STYLE LEFT SIDEBAR */
.sidebar {
  width: 295px;
  min-width: 295px;
  background: linear-gradient(180deg, #5c2808 0%, #3b1804 100%);
  border-right: 4px solid var(--ink);
  box-shadow: 6px 0 0 rgba(26, 22, 20, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

/* Red pitched roof at the top of the Sidebar */
.sidebar-roof {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 5px 0 var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--gold-light);
  object-fit: cover;
  box-shadow: 0 3px 0 var(--ink);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
  line-height: 1.15;
}

.badge-supply {
  display: inline-block;
  background: var(--gold-light);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  margin-top: 3px;
}

.brand-sub {
  font-size: 0.74rem;
  color: #fee2e2;
  margin-top: 2px;
}

/* SIDEBAR WALLET STATUS BOX */
.wallet-status-box {
  background: #291002;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

.wallet-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  margin-bottom: 8px;
}

.wallet-pill.locked {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

.wallet-pill.unlocked {
  background: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.nav-section-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-light);
  margin: 12px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 1px 1px 0 var(--ink);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  width: 100%;
  background: #78350f;
  color: #fef3c7;
  border: 3px solid var(--ink);
  border-radius: 13px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.14s ease, background 0.14s ease;
}

.nav-item:hover {
  background: #92400e;
  transform: translateY(-2px);
}

.nav-item.active {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(-1px);
}

.nav-item .nav-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.nav-item.private-item .nav-badge.locked-badge {
  background: #ef4444;
  color: #fff;
}

.nav-item.private-item .nav-badge.open-badge {
  background: #22c55e;
  color: var(--ink);
}

.sidebar-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed rgba(253, 224, 71, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-switch {
  display: flex;
  background: #291002;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
}

.mode-btn {
  flex: 1;
  background: transparent;
  color: #fde68a;
  border: none;
  padding: 6px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.75rem;
}

.mode-btn.active {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
}

/* =============================================================
   MAIN STAGE CONTENT TO THE RIGHT OF SIDEBAR
   ============================================================= */
.main-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 24px 60px;
  gap: 20px;
}

/* INTERACTIVE HERO CANVAS SCENE: THE KENNEL IN THE GARDEN */
.garden-stage-wrapper {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  background: #14532d;
}

.garden-stage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #3b1804 0%, #5c2808 50%, #3b1804 100%);
  border-bottom: 3px solid var(--ink);
}

.garden-sign-badge {
  color: #fef3c7;
  font-size: 0.86rem;
  font-weight: 800;
  text-shadow: 1px 1px 0 var(--ink);
}

.garden-sign-badge strong {
  color: var(--gold-light);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.96rem;
}

.garden-topbar-hint {
  color: #fde68a;
  font-weight: 700;
}

.garden-floating-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#kennelHeroCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 420;
  cursor: default;
}

/* =============================================================
   VIEW MANAGEMENT (PUBLIC TABS VS PRIVATE KENNEL TABS)
   ============================================================= */
.view-section {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: popIn 0.22s ease-out;
}

.view-section.active-view {
  display: flex;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* PRIVATE AREA LOCK GATE (WHEN WALLET IS DISCONNECTED) */
.private-gate-card {
  background: linear-gradient(145deg, #451a03 0%, #291002 100%);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 0 var(--ink);
  max-width: 760px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gate-guard-img {
  width: 135px;
  height: 135px;
  border-radius: 24px;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  background: var(--gold-light);
  object-fit: cover;
}

.gate-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}

.gate-feat-item {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.83rem;
  color: #fef3c7;
}

/* =============================================================
   GLOBAL PROTOCOL STATS (CARTOON CARDS)
   ============================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  box-shadow: 0 6px 0 var(--ink);
}

.highlight-gold { background: linear-gradient(145deg, #422006, #271202); }
.highlight-cyan { background: linear-gradient(145deg, #083344, #05202b); }
.highlight-green { background: linear-gradient(145deg, #14532d, #0c341d); }
.highlight-purple { background: linear-gradient(145deg, #3b0764, #24043d); }

.stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
}

.tier-pill {
  font-size: 0.73rem;
  background: var(--gold-light);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  font-weight: 800;
  text-shadow: none;
}

.stat-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.progress-bar {
  height: 10px;
  background: var(--ink);
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
  border: 2px solid var(--ink);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width 0.35s ease;
}

/* =============================================================
   CARTOON GARDEN & KENNEL PANELS
   ============================================================= */
.panel {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 7px 0 var(--ink);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

h2 {
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.tier-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tier-btn {
  background: var(--panel-alt);
  border: 3px solid var(--ink);
  color: var(--text);
  padding: 13px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: all 0.16s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-btn:hover, .tier-btn.active {
  background: #422006;
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.t-title {
  font-weight: 800;
  color: var(--gold-light);
  font-size: 0.92rem;
}

.t-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.sim-market-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-box {
  background: var(--panel-alt);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

.batch-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mint-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-row input {
  width: 74px;
  text-align: center;
  padding: 8px;
  background: #091912;
  color: var(--gold-light);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-weight: 900;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  background: rgba(34, 197, 94, 0.18);
  border: 2px solid var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.explorer-box {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.preview-img {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  object-fit: cover;
  background: var(--gold-light);
}

.explorer-Controls {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-jump-pill {
  background: #291002;
  color: #fde68a;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.quick-jump-pill:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.trait-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.trait-chip {
  background: rgba(9, 25, 18, 0.85);
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 4px 8px;
  line-height: 1.2;
}

.trait-chip-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.trait-chip-val {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-gap {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

input[type="number"], input[type="text"], select {
  background: #091912;
  border: 3px solid var(--ink);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 18px;
}

.nft-card {
  background: linear-gradient(180deg, #5c2808 0%, #3b1804 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 0.16s ease;
}

.nft-card:hover {
  transform: translateY(-3px);
}

.nft-card.in-cuccia {
  border-color: var(--gold-light);
  box-shadow: 0 7px 0 var(--ink), 0 0 18px rgba(253, 224, 71, 0.28);
}

.nft-card-top {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.32), rgba(120, 53, 15, 0.4));
}

.nft-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  background: #fff;
}

.nft-info h3 {
  font-size: 1.05rem;
  margin-bottom: 3px;
  color: #fff;
  text-shadow: 1px 1px 0 var(--ink);
}

.rarity-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  margin-bottom: 4px;
}

.r-common { background: #64748b; color: #fff; }
.r-rare { background: #0284c7; color: #fff; }
.r-epic { background: #9333ea; color: #fff; }
.r-alpha { background: linear-gradient(90deg, #f59e0b, #fde047); color: #1a1614; }

.nft-stats {
  background: #1f0d02;
  padding: 12px 14px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.nft-stat-row {
  display: flex;
  justify-content: space-between;
}

.nft-actions {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-row {
  display: flex;
  gap: 6px;
}

/* 3D CARTOON / COMIC BUTTONS */
.btn {
  border: 3px solid var(--ink);
  padding: 9px 15px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.78rem;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 0.96rem;
}

.btn-primary { background: #8b5cf6; color: #fff; }
.btn-gold { background: linear-gradient(90deg, #f59e0b, #fde047); color: var(--ink); }
.btn-green { background: #22c55e; color: var(--ink); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-outline { background: #234b37; color: var(--text); }
.btn-outline:hover { background: #2d5f46; }

.text-green { color: #4ade80; }
.text-gold { color: var(--gold-light); }
.mt-8 { margin-top: 8px; }

.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.sim-controls-grid label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 700;
}

.sim-controls-grid input, .sim-controls-grid select {
  width: 100%;
}

.projection-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.proj-box {
  background: var(--panel-alt);
  border: 3px solid var(--ink);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
}

.proj-box .p-lbl { font-size: 0.76rem; color: var(--muted); font-weight: 800; }
.proj-box .p-val { font-size: 1.22rem; font-weight: 900; color: var(--gold-light); margin-top: 3px; text-shadow: 1px 1px 0 var(--ink); }

.table-wrap {
  max-height: 360px;
  overflow-y: auto;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #0b2017;
}

.proj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.proj-table th, .proj-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
}

.proj-table th {
  background: #451a03;
  position: sticky;
  top: 0;
  color: var(--gold-light);
  font-weight: 800;
}

.event-log {
  background: #091912;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px;
  max-height: 210px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-item {
  padding: 5px 9px;
  border-left: 4px solid var(--cyan);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.log-item.warn { border-left-color: var(--danger); color: #fca5a5; }
.log-item.success { border-left-color: var(--green); color: #86efac; }

/* PROTOCOL PILLARS & 4 WEB3 GAMES */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.pillar-card {
  background: linear-gradient(145deg, #234b37, #143323);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 5px 0 var(--ink);
}

.pillar-card.p-vault { border-top: 5px solid var(--cyan); }
.pillar-card.p-bounty { border-top: 5px solid var(--gold); }
.pillar-card.p-purebred { border-top: 5px solid var(--green); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.game-card {
  background: linear-gradient(180deg, #5c2808 0%, #3b1804 100%);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 0 var(--ink);
}

.game-card:hover {
  border-color: var(--gold-light);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.game-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--gold-light);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.purebred-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #22c55e;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.purebred-lost {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  border: 2px solid var(--ink);
}

.deploy-bar {
  background: linear-gradient(90deg, #451a03, #78350f);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 5px 0 var(--ink);
}

.deploy-bar.hidden {
  display: none;
}

.deploy-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.deploy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input-addr {
  min-width: 280px;
}

/* =============================================================
   INTERACTIVE WEB3 GAME: FIDO'S GARDEN ARENA (60 FPS)
   ============================================================= */
.arcade-arena-container {
  background: linear-gradient(180deg, #3b1804 0%, #1f0d02 100%);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arcade-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #091912;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hud-pill {
  background: #1a3a2a;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.arcade-canvas-wrap {
  position: relative;
  width: 100%;
  border: 4px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #15803d;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

#fidoArcadeCanvas {
  display: block;
  width: 100%;
  height: 460px;
  cursor: crosshair;
  user-select: none;
}

.arcade-overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 30, 0.86);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  gap: 14px;
  z-index: 10;
}

.arcade-overlay-screen.hidden {
  display: none;
}

.arcade-controls-hint {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.key-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 900;
  font-size: 0.76rem;
  box-shadow: 0 2px 0 var(--ink);
}

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
