/* ── Google Font ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

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

/* Visually hidden but crawlable by search engines */
.seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg:       #fff9f2;
  --surface:  #ffffff;
  --border:   #FD840E;
  --orange:   #FD840E;
  --green:    #1a9960;
  --gold:     #FD840E;
  --text:     #1a1a1a;
  --muted:    #666666;
  --red:      #dc3545;
  --radius:   14px;
  --font:     'Baloo 2', system-ui, sans-serif;
}

/* Claymorphism spring: cubic-bezier with slight overshoot */
@keyframes clay-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.94); }
  70%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ── Fixed Background ─────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/bg.png') center / cover no-repeat;
  z-index: -1;
}

/* docs.html gets a much more subtle background */
body.docs-page { background: #ffffff; }
body.docs-page::before { opacity: 0.08; }

/* Logo orange on docs/stats/agent/build pages (light bg, no image behind) */
body.docs-page .logo { color: var(--orange); text-shadow: none; }
body.docs-page .logo span { color: var(--orange); }

/* Footer text gray + back-to-app link green on docs pages */
body.docs-page footer { color: var(--muted); }
body.docs-page footer a { color: var(--green) !important; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}

/* ── Hero Brand Logo ──────────────────────── */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 8px;
  width: 100%;
  max-width: 480px;
}

.hero-logo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(253,132,14,0.50)) drop-shadow(0 2px 6px rgba(253,132,14,0.30));
  animation: hero-float 4s ease-in-out infinite;
}

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

/* ── Header — Glassmorphism ───────────────── */
header {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  /* Glassmorphism */
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 20px;
  padding: 12px 18px;
  border: 2px solid var(--orange);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.40);
  position: relative;
  z-index: 50;
}

/* Centered tagline in header */
.header-tagline {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  padding: 0 4px;
  /* Truncate gracefully on very small screens */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Hide tagline on very narrow screens — logo + wallet already fills space */
@media (max-width: 420px) {
  .header-tagline { display: none; }
  header { grid-template-columns: auto auto; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font);
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.logo-fox {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo span { color: #ffffff; }

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(253,132,14,0.1);
  color: var(--orange);
  border: 1.5px solid rgba(253,132,14,0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.network-badge img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Custom Lang Picker (shared: home, docs, stats) ── */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: var(--muted);
  border: none;
  padding: 6px 8px 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1;
  box-shadow: 0 2px 0px rgba(0,0,0,0.12);
}
.lang-btn:hover { color: var(--orange); }
.lang-chevron { width: 10px; height: 6px; flex-shrink: 0; margin-left: 3px; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  min-width: 90px;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}
.lang-menu button:hover { background: rgba(253,132,14,0.08); color: var(--orange); }

/* ── Connect Button ───────────────────────── */
#btn-connect {
  background: #ffffff;
  color: #111111;
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: var(--font);
  box-shadow: 0 3px 0px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,1);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
#btn-connect svg {
  display: block;
  flex-shrink: 0;
}
/* The wallet icon inside stays orange via inline stroke="var(--orange)" */
#btn-connect:not(.connected):hover  { transform: translateY(-1px); box-shadow: 0 4px 0px rgba(0,0,0,0.20); }
#btn-connect:not(.connected):active { transform: translateY(2px);  box-shadow: 0 1px 0px rgba(0,0,0,0.20); }
#btn-connect.connected {
  background: #ffffff;
  color: var(--muted);
  border: none;
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 2px 0px rgba(0,0,0,0.15);
}
/* Keep wallet icon visible always */

/* ── Main Layout ──────────────────────────── */
main {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Cards — Claymorphism ─────────────────── */
.card {
  background: rgba(255,255,255,0.97);
  border: 3px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Claymorphism: hard offset + top inner highlight + ambient glow */
  box-shadow:
    4px 5px 0px rgba(200,86,0,0.26),
    0 8px 24px rgba(253,132,14,0.09),
    inset 0 1px 0 rgba(255,255,255,1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow:
    5px 7px 0px rgba(200,86,0,0.30),
    0 14px 30px rgba(253,132,14,0.13),
    inset 0 1px 0 rgba(255,255,255,1);
}

.card-title {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Stats Grid ───────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat {
  background: linear-gradient(145deg, #fffcf7 0%, #fff6ea 100%);
  border: 1.5px solid rgba(253,132,14,0.22);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 2px 2px 0px rgba(253,132,14,0.09), inset 0 1px 0 rgba(255,255,255,1);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-label img {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  object-fit: cover;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.stat-value.green  { color: var(--green); }
.stat-value.gold   { color: var(--orange); }

/* ── Stat hierarchy: big number + small unit ── */
.stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  /* inherits color from parent .stat-value */
}
.stat-unit {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  vertical-align: middle;
}
.stat-secondary {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.3;
}
.stat-tok-logo {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
}

/* ── Countdown ────────────────────────────── */
.countdown-wrap {
  text-align: center;
  padding: 20px 18px;
  background: linear-gradient(145deg, #fff9f2 0%, #fff4e6 100%);
  border: 2px solid rgba(253,132,14,0.28);
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 2px 3px 0px rgba(200,86,0,0.14), inset 0 1px 0 rgba(255,255,255,1);
}

.countdown-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
  font-family: var(--font);
}

.countdown-timer {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  /* Gradient text */
  background: linear-gradient(135deg, #FF9A2F 0%, #FD840E 50%, #E06800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#btn-draw {
  width: 100%;
  padding: 12px;
  background: linear-gradient(160deg, #FF9A2F 0%, var(--orange) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 4px 0px rgba(170,65,0,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#btn-draw:hover:not(:disabled)  { transform: translateY(-1px); box-shadow: 0 5px 0px rgba(170,65,0,0.38), inset 0 1px 0 rgba(255,255,255,0.18); }
#btn-draw:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0px rgba(170,65,0,0.38); }
#btn-draw:disabled { background: #ddd; color: #aaa; cursor: not-allowed; box-shadow: 0 3px 0px rgba(0,0,0,0.1); }

/* ── Forms ────────────────────────────────── */
.input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stacked layout: input full-width, buttons on next row */
.input-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-col > input[type="number"] {
  width: 100%;
  box-sizing: border-box;
}
.input-col > .input-row .btn-action {
  flex: 1;
}

input[type="number"] {
  flex: 1 1 120px;
  min-width: 0;
  background: #ffffff;
  border: 1.5px solid #e8e8e8;
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--font);
  line-height: 1.1;
}
input[type="number"]:focus { border-color: var(--orange); }
input[type="number"]::placeholder { color: #ccc; font-size: 0.9rem; font-weight: 400; }

@media (max-width: 420px) {
  .input-row input[type="number"] {
    flex: 1 1 100%;
  }
  .input-row .btn-action {
    flex: 1;
  }
}

.btn-action {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-action:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-deposit {
  background: linear-gradient(160deg, #222 0%, #111 100%);
  color: #ffffff;
  box-shadow: 0 4px 0px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-deposit:not(:disabled):hover  { transform: translateY(-1px); box-shadow: 0 5px 0px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn-deposit:not(:disabled):active { transform: translateY(3px);  box-shadow: 0 1px 0px rgba(0,0,0,0.35); }

.btn-withdraw {
  background: linear-gradient(160deg, #e84040 0%, var(--red) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 0px rgba(140,10,10,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-withdraw:not(:disabled):hover  { transform: translateY(-1px); box-shadow: 0 5px 0px rgba(140,10,10,0.35), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn-withdraw:not(:disabled):active { transform: translateY(3px);  box-shadow: 0 1px 0px rgba(140,10,10,0.35); }

.btn-max {
  background: linear-gradient(160deg, #FF9A2F 0%, var(--orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 0px rgba(170,70,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-max:not(:disabled):hover  { transform: translateY(-1px); box-shadow: 0 5px 0px rgba(170,70,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-max:not(:disabled):active { transform: translateY(3px);  box-shadow: 0 1px 0px rgba(170,70,0,0.35); }

.user-balance {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.user-balance span { color: var(--green); font-weight: 600; }

/* ── Winners ──────────────────────────────── */
.winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid rgba(253,132,14,0.15);
  border-radius: 8px;
  font-size: 0.85rem;
}

.winner-addr  { color: var(--muted); font-family: monospace; }
.winner-prize { color: var(--orange); font-weight: 700; }

.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 20px;
}

/* ── Toast ────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #ffffff;
  border: 2px solid var(--orange);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: transform 0.25s ease;
  pointer-events: none;
  max-width: 360px;
  text-align: center;
  z-index: 999;
  font-family: var(--font);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
#toast.show    { transform: translateX(-50%) translateY(0); }
#toast.success { border-color: var(--green); color: var(--green); }
#toast.error   { border-color: var(--red);   color: var(--red);   }

/* ── Pulse animation ──────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

/* ── Fox Card ────────────────────────────── */
.fox-card {
  border-color: var(--orange);
  box-shadow:
    4px 5px 0px rgba(200,86,0,0.26),
    0 0 36px rgba(253,132,14,0.16),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* Top row: image + info */
.fox-columns {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: stretch;
}

.fox-img-col {
  border-radius: 14px;
  overflow: visible;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Background on pseudo-element so border-radius clips it while overflow:visible lets bubble escape */
.fox-img-col::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: url('assets/fondozorrito.png') center/cover no-repeat;
  z-index: 0;
  overflow: hidden;
}

.fox-img-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: opacity 0.3s;
  position: relative;
  z-index: 1;
}

/* Floating animation for cofre / ghost images */
.fox-img-col img.fox-float {
  animation: hero-float 3.5s ease-in-out infinite;
}

/* ── Speech Bubble ─────────────────────────────────────────── */
.fox-bubble {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  transform: translateY(-100%);
  background: #ffffff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 7px 10px;
  border-radius: 10px;
  border: 2px solid var(--orange);
  box-shadow: 0 4px 14px rgba(253,132,14,0.20);
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  max-width: 150px;
  white-space: normal;
  text-align: center;
}

/* Triangle tail pointing down-left */
.fox-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--orange);
}

.fox-bubble::before {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 17px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #ffffff;
  z-index: 1;
}

.fox-bubble.visible {
  display: block;
}

.fox-bubble.urgent {
  border-color: var(--red);
  color: var(--red);
}

.fox-bubble.urgent::after {
  border-top-color: var(--red);
}

.fox-info-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Keep old classes for resetStats compatibility */
.fox-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 380px) {
  .fox-columns { grid-template-columns: 100px 1fr; }
}

.fox-status-line {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Urgent countdown — visually dominant */
.fox-timer {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.fox-meta {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottom: full-width actions */
.fox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.btn-feed {
  background: linear-gradient(160deg, #FF9A2F 0%, #FD840E 55%, #E06800 100%);
  color: #ffffff;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 800;
  width: 100%;
  border-radius: 14px;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  /* Clay press effect */
  box-shadow: 0 5px 0px rgba(170,65,0,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  letter-spacing: 0.02em;
}
.btn-feed:not(:disabled):hover  { transform: translateY(-1px); box-shadow: 0 6px 0px rgba(170,65,0,0.42), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-feed:not(:disabled):active { transform: translateY(4px);  box-shadow: 0 1px 0px rgba(170,65,0,0.42); }
.btn-feed:disabled { background: #ddd; color: #aaa; cursor: not-allowed; box-shadow: 0 3px 0px rgba(0,0,0,0.1); }

/* Secondary tweet button — outlined, lighter weight */
.btn-tweet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: #444;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
  width: 100%;
}
.btn-tweet:hover { border-color: #999; color: #111; }
.btn-tweet svg { flex-shrink: 0; }

.fox-desc-text {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}


/* ── Leaderboard ─────────────────────────── */
.lb-row {
  display: grid;
  grid-template-columns: 28px 22px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1.5px solid rgba(253,132,14,0.10);
  font-size: 0.83rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(253,132,14,0.04); }
.lb-me {
  background: linear-gradient(135deg, rgba(253,132,14,0.10) 0%, rgba(253,132,14,0.05) 100%);
  border-radius: 10px;
  padding: 10px 8px;
  border-bottom: none;
  box-shadow: inset 0 0 0 1.5px rgba(253,132,14,0.20);
}

.lb-rank   { color: var(--muted); font-size: 0.85rem; text-align: center; }
.lb-fox    { font-size: 1rem; text-align: center; }
.lb-addr   { color: var(--text); font-family: monospace; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.lb-streak { color: var(--orange); font-weight: 800; white-space: nowrap; }
.lb-fish   { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

/* ── Fish presets ────────────────────────── */
.fish-presets {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.fish-preset {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  color: var(--text);
  padding: 7px 4px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font);
  box-shadow: 0 2px 0px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
  transition: transform 0.12s ease, border-color 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
}
.fish-preset:hover    { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); box-shadow: 0 3px 0px rgba(253,132,14,0.18); }
.fish-preset:active   { transform: translateY(2px); box-shadow: none; }
.fish-preset.selected {
  border-color: var(--orange);
  background: linear-gradient(145deg, rgba(253,132,14,0.12) 0%, rgba(253,132,14,0.06) 100%);
  color: var(--orange);
  box-shadow: 0 2px 0px rgba(170,70,0,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.deposit-preview {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(253,132,14,0.08);
  border: 1.5px solid rgba(253,132,14,0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
}

/* ── Winning Odds ────────────────────────── */
.odds-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.odds-pct {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.odds-detail {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.odds-bar-wrap {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.odds-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.6s ease;
  min-width: 2px;
}

/* ── Yield Progress ───────────────────────── */
.yield-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(253,132,14,0.06);
  border: 1.5px solid rgba(253,132,14,0.18);
  border-radius: 8px;
  font-size: 0.8rem;
}

.yp-hint  { color: var(--muted); line-height: 1.5; }
.yp-ready { color: var(--green); font-weight: 700; }
.yp-cta   { color: var(--orange); font-weight: 600; line-height: 1.5; }

/* ── Live APY ────────────────────────────── */
.live-apy { color: var(--green); font-weight: 700; }

/* ── Addr box (shared between index + docs) ─ */
.addr-box {
  background: var(--bg);
  border: 1.5px solid rgba(253,132,14,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 8px;
}

.addr-label {
  color: var(--orange);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-family: var(--font);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hamburger nav (docs-page / stats / agent) ─────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 9999;
  min-width: 160px;
  flex-direction: column;
  gap: 4px;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-dropdown a:hover { background: rgba(253,132,14,0.08); color: var(--orange); }
.nav-dropdown a.nav-app { color: var(--green); }

@media (max-width: 480px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ── Desktop Multi-Column Layout ─────────── */
/* On mobile all wrappers are invisible (display:contents) so
   cards flow normally inside the flex <main> column.
   On desktop ≥860px → 3 equal columns, no separate bottom row. */

.desktop-layout,
.desktop-col-left,
.desktop-col-mid,
.desktop-col-right {
  display: contents;
}

@media (min-width: 860px) {
  body {
    padding: 24px 28px 60px;
  }

  .hero-brand {
    max-width: 1200px;
  }

  header {
    max-width: 1200px;
    /* On desktop there's plenty of space — tagline always visible */
  }

  main {
    max-width: 1200px;
  }

  /* Single 3-column grid — no separate bottom section */
  .desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    width: 100%;
    align-items: start;
  }

  .desktop-col-left,
  .desktop-col-mid,
  .desktop-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }
}

/* ── Footer — Glassmorphism ───────────────── */
footer {
  margin-top: 40px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  /* Glassmorphism */
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: 16px;
  border: 2px solid var(--orange);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
footer a { color: rgba(255,255,255,0.90) !important; }
