:root {
  --ink: #07100a;
  --panel: #0d1810;
  --panel-raised: #122115;
  --line: #1e3324;
  --spartan-green: #2dcc45;
  --spartan-green-dim: #1e8f30;
  --gold: #d4af6a;
  --gold-bright: #e8c98a;
  --text: #eef4ee;
  --text-dim: #9db3a3;
  --danger: #d45a4a;

  --font-display: "Cinzel", serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
}

/* Shield/sword/axe texture — using the supplied source image at full
   strength. It was already correctly toned/faint by design; reducing
   opacity on top of that (as tried previously) just washed it out. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/weapon-pattern-source.jpg");
  background-repeat: repeat;
  background-size: 350px 184px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--spartan-green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Shared gold-lettering style, echoing the banner's TITANX SPARTANS text */
.gold-heading {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #f5ddab 0%, #d4af6a 55%, #a9793a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

/* =========================================================
   Landing gate v2 — based on the KOL's own reference mockup
   ========================================================= */
.landing-gate-v2 {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 1.5rem;
  box-sizing: border-box;
}

.landing-frame-v2 {
  width: 100%;
  max-width: 1800px;
  border: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--ink);
  padding: 1.25rem;
  box-sizing: border-box;
}

.landing-hero-art img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.landing-action-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.landing-link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 1.1rem 0.75rem;
  text-align: center;
}

.landing-link-box img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }

.landing-link-box:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.landing-enter-btn {
  background: var(--spartan-green);
  color: #04140a;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 204, 69, 0.4);
}

.landing-stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.landing-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.landing-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .landing-action-row { grid-template-columns: 1fr; }
  .landing-stats-row { flex-direction: column; gap: 0.75rem; }
}

/* =========================================================
   Layout basics
   ========================================================= */
.main-site { position: relative; z-index: 1; }

.content-col {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Panels — each page's content sits in one of these, centered, with page
   background showing on either side rather than always spanning full width. */
.page-panel {
  margin: 2rem auto;
  padding: 2.25rem 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.page-panel-narrow { max-width: 820px; }
.page-panel-half   { max-width: 100%; flex: 1 1 0; margin: 0; display: flex; flex-direction: column; }
.page-panel-75      { max-width: 1020px; }
.page-panel-wide    { max-width: 1400px; }
.page-panel-full    { max-width: 1600px; }

.section {
  padding: 2.25rem 1.75rem;
  margin: 1.5rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-bright);
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: var(--spartan-green);
}

.stats-title { justify-content: flex-start; }

/* =========================================================
   Hero — contained width (original sizing), gold pattern shows
   in the flanking space around it rather than the banner going edge-to-edge
   ========================================================= */
.hero-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border-bottom: 3px solid var(--spartan-green);
  display: flex;
  justify-content: center;
}

.hero-edge-pattern {
  position: absolute;
  inset: 0;
  background-image: url("images/weapon-pattern-tile-gold.svg");
  background-repeat: repeat;
  background-size: 90px 90px;
  /* Strongest near the banner's own edges (center of the viewport, since
     the banner is contained/centered now), fading out toward the far
     left/right of the screen. */
  mask-image: radial-gradient(
    ellipse 900px 100% at center,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 85%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 900px 100% at center,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 85%,
    rgba(0,0,0,0) 100%
  );
}

.hero {
  position: relative;
  max-width: 1080px;
  width: 90%;
  margin: 0 auto;
}

.hero-banner {
  width: 100%;
  display: block;
}

.hero-tagline {
  text-align: center;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  background: linear-gradient(180deg, #f5ddab 0%, #d4af6a 55%, #a9793a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

/* =========================================================
   Nav bar — straddles the banner's bottom edge (half overlapping
   the image, half hanging below it)
   ========================================================= */
.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: 92%;
  margin: -1.6rem auto 2rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  background: var(--spartan-green);
  color: #04140a;
}

/* =========================================================
   Page routing — only one .page visible at a time
   ========================================================= */
.page { display: none; }
.page.active { display: block; }

.page-stub-note {
  color: var(--text-dim);
  font-style: italic;
  padding: 3rem 0;
  text-align: center;
}

.buy-now-btn {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.9rem 2.5rem;
  background: var(--spartan-green);
  color: #04140a;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 204, 69, 0.35);
}

/* =========================================================
   Mission page
   ========================================================= */
.mission-layout {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
}

.mission-image {
  flex: 1 1 42%;
  min-width: 0;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mission-text {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-body {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* =========================================================
   Coin page — per-LP link rows
   ========================================================= */
.lp-row-full {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.lp-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.lp-link-icon img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }

/* =========================================================
   Token info
   ========================================================= */
.field-label {
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.token-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-shield { width: 28px; height: 28px; }
.mini-shield-lg { width: 42px; height: 42px; }
.ticker-icon { width: 24px; height: 24px; }
.ticker-icon-lg { width: 36px; height: 36px; }

.token-name-row h3 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin: 0;
}

.token-ticker-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 2.1rem;
  margin: 0.5rem 0 1.5rem;
}

.ca-block { margin-bottom: 2rem; }

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  overflow-x: auto;
}

.ca-row-clickable { cursor: pointer; transition: border-color 0.15s ease; }
.ca-row-clickable:hover { border-color: var(--spartan-green); }
.ca-copy-hint {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--spartan-green);
  color: #04140a;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.copy-toast.visible { opacity: 1; }

.ca-chain {
  font-family: var(--font-display);
  color: var(--spartan-green);
  font-weight: 700;
  flex-shrink: 0;
}

.ca-row code {
  color: var(--text-dim);
  white-space: nowrap;
}

.copy-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.copy-btn:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

.lp-list h4 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.lp-list ul { list-style: none; margin: 0; padding: 0; }

.lp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-size: 1.05rem;
}

.lp-row-full .lp-row { padding: 0; border-bottom: none; }

.lp-price { color: var(--spartan-green); font-weight: 600; }

/* =========================================================
   Quick links — rectangular icon-left / label-right buttons
   ========================================================= */
.link-row-label {
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.6rem;
}

.link-row-label:first-of-type { margin-top: 0.5rem; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-btn:hover, .link-btn:focus-visible {
  border-color: var(--spartan-green);
  transform: translateY(-2px);
}

.link-btn span { white-space: nowrap; }

.link-btn img { width: 27px; height: 27px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.link-btn img.wordmark-icon { width: auto; height: 16px; border-radius: 0; }

.link-list-secondary { margin-top: 0.75rem; }

.link-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.show-chart-link {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  cursor: pointer;
}

.show-chart-link:hover { color: var(--spartan-green); }

/* =========================================================
   Feature art / gallery
   ========================================================= */
.feature-art-title {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  white-space: nowrap;
}
.feature-art.section {
  display: flex;
  flex-direction: column;
}
.feature-art img {
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.gallery-strip img {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   Stats — shield bars (100 total, 1 per %)
   ========================================================= */
.stats-total-supply {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin: 0 0 1.75rem;
}

.stats-total-supply #total-txs-supply { color: var(--spartan-green); }

.stat-bar-block { margin-bottom: 2.25rem; }

.stat-bar-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.progress-bar {
  position: relative;
  height: 26px;
  margin-bottom: 0.6rem;
}

.progress-bar-small {
  height: 13px;
}

.progress-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--spartan-green);
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar-small .progress-icon {
  width: 13px;
  height: 13px;
}

.stat-value { font-size: 1.05rem; color: var(--text-dim); }

.sub-stat-block {
  margin-top: 1.25rem;
  padding-top: 2.25rem;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pulsechain-logo {
  width: 30%;
  max-width: 130px;
  height: auto;
  flex-shrink: 0;
}

.sub-stat-content {
  flex: 1 1 auto;
  min-width: 0;
}

.sub-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.sub-stat-row span:first-child {
  color: var(--text);
}

.refresh-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.back-to-landing-btn {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.back-to-landing-btn:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

.refresh-btn:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

.refresh-btn.spinning {
  border-color: var(--spartan-green);
  color: var(--spartan-green);
  animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   Spartan Fuel
   ========================================================= */
.spartan-fuel-txs-info {
  min-width: 0;
}

.spartan-fuel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.spartan-fuel-graphic-wrap {
  position: relative;
}

.spartan-fuel-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}

.fuel-divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 0.75rem 0;
}

.spartan-fuel-ecosystem-block {
  min-width: 0;
}

.fuel-subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

.fuel-value-num { color: var(--spartan-green); }

.spartan-fuel-total-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.25rem 0;
  margin: 0.5rem 0;
}

.spartan-fuel-total-header {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-bright);
  margin: 0 0 0.5rem;
}

.spartan-fuel-total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 8vw, 4.8rem);
  color: var(--spartan-green);
  margin: 0;
  line-height: 1.1;
}

.fuel-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
  white-space: nowrap;
}

/* =========================================================
   Tax breakdown diagram — larger, shield-shaped 100% icon
   ========================================================= */
.tax-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tax-source {
  flex-shrink: 0;
  position: relative;
  width: 130px;
  height: 143px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-shield-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tax-source-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.tax-branches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.tax-branch {
  flex-shrink: 0;
  width: 92px;
  text-align: center;
}

.tax-arrow {
  display: block;
  color: var(--spartan-green);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.tax-pct {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-bright);
}

.tax-label {
  font-weight: 600;
  font-size: 0.75rem;
  margin: 0.2rem 0 0.3rem;
}

.tax-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0;
}

/* =========================================================
   Connections
   ========================================================= */
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 3.5rem;
}

.connection-block { margin-bottom: 0; }
.connection-block-empty { visibility: hidden; }

.connection-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.connection-banner {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

/* =========================================================
   Disclaimer / footer
   ========================================================= */
.disclaimer-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.disclaimer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.disclaimer-ca-list {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.disclaimer-ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  justify-self: start;
}

.disclaimer-ca-value {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.disclaimer-ca-value:hover { color: var(--spartan-green); border-color: var(--spartan-green); }

.disclaimer-ca-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.disclaimer-ca-link:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

@media (max-width: 640px) {
  .disclaimer-ca-list { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .disclaimer-ca-label { justify-self: center; }
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1.5rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 1080px;
  margin: 0 auto;
}

.footer-sym-link { display: block; flex-shrink: 0; }
.footer-sym-icon { width: 30px; height: 30px; border-radius: 50%; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .two-col-row { grid-template-columns: 1fr; }
  .connections-grid { grid-template-columns: 1fr; }
  .connection-block-empty { display: none; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .tax-diagram { flex-direction: column; align-items: stretch; }
  .tax-branches { flex-direction: column; }
  .tax-branch { width: 100%; }
  .tax-source { margin: 0 auto; }
  .link-list { flex-direction: column; }
  .link-btn { width: 100%; }
  .sub-stat-block { flex-direction: column; align-items: flex-start; }
  .pulsechain-logo { width: 80px; margin: 0 auto 1rem; }
}

/* =========================================================
   Nav "Buy" button — distinct accent since it's always the CTA
   ========================================================= */
.nav-buy-link { text-decoration: none; }

.nav-buy-dropdown {
  position: relative;
}

.nav-buy-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  padding-top: 0.9rem;
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 10;
}

.nav-buy-dropdown:hover .nav-buy-dropdown-menu,
.nav-buy-dropdown:focus-within .nav-buy-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-buy-dropdown-menu .switch-open-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.nav-buy-dropdown-menu .switch-open-btn:hover {
  background: var(--spartan-green);
  color: #04140a;
}

/* =========================================================
   Spartan Fuel page — static graphics
   ========================================================= */
.fuel-graphic, .fuel-graphic-wide {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 1rem;
}

.fuel-graphic {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.aave-section-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.fuel-graphic-small {
  width: 66.66%;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.aave-stats {
  flex: 1;
  min-width: 0;
  max-width: 33.33%;
}

@media (max-width: 700px) {
  .aave-section-row { flex-direction: column; }
  .fuel-graphic-small { width: 100%; }
}

/* =========================================================
   Gallery — clickable images + fullscreen lightbox popout
   ========================================================= */
.gallery-clickable { cursor: pointer; transition: opacity 0.15s ease; }
.gallery-clickable:hover { opacity: 0.85; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.switch-modal-frame {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  border: 2px solid var(--gold);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* older Edge */
}

.switch-modal-frame::-webkit-scrollbar {
  display: none; /* Chrome, Safari, modern Edge */
}

.switch-modal-frame iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Reset default <button> styling on the elements that swap in for what
   used to be plain <a> links, so they render identically to their siblings. */
.switch-open-btn {
  font-family: inherit;
  cursor: pointer;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--text);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-lightbox-close:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

.gallery-lightbox:not([hidden]) { display: flex; }

@media (max-width: 900px) {
  .spartan-fuel-grid { grid-template-columns: 1fr; }
  .spartan-fuel-graphic-wrap { min-height: 220px; }
  .mission-layout { flex-direction: column; }
}

/* =========================================================
   Super Spartans — top 4 holders, buttons overlaid on the artwork's
   own dark band at the bottom (~y 750-860 of the 887px-tall source)
   ========================================================= */
.super-spartans-body {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

.super-spartans-image-wrap {
  position: relative;
  width: 100%;
}

.super-spartans-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.super-spartans-overlay {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 3%;
  height: 11%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.super-spartan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(0.6rem, 1.3vw, 0.95rem);
  padding: 0.3rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.super-spartan-btn:hover {
  background: rgba(45, 204, 69, 0.15);
  color: var(--spartan-green);
}

.super-spartan-rank {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.super-spartan-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .super-spartans-overlay { left: 1%; right: 1%; height: 9%; }
  .super-spartan-rank { display: none; }
}

/* =========================================================
   Built on TXS — third-party project listings
   ========================================================= */
.builton-intro {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

.builton-requirements-title {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.builton-requirements {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  color: var(--text);
}

.builton-requirements li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.builton-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.builton-loading { color: var(--text-dim); font-style: italic; }

.builton-card {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
}

.builton-card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Icon set to roughly 3 text-lines tall, per spec — rounded purely via
   CSS (no image cropping/processing), rank number matched to the same
   height so they read as a matched pair. */
.builton-icon {
  height: 4.8rem;
  width: 4.8rem;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.builton-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.builton-diamond {
  color: var(--gold-bright);
  font-size: 0.7em;
  display: inline-block;
  transform: rotate(90deg);
  margin: 0 0.5em;
}

.builton-info-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 3rem;
  row-gap: 0.5rem;
  align-items: baseline;
}

.builton-info-grid > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.builton-name {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.3rem;
}

.builton-ticker-inline {
  color: var(--text);
  font-size: 1.1rem;
}

.builton-market-stats,
.builton-lp-stats,
.builton-pairs-line,
.builton-burn-line {
  color: var(--text);
  font-size: 0.95rem;
}

.builton-ca-inline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease;
}

.builton-ca-inline:hover { color: var(--spartan-green); }

.builton-pair-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  cursor: pointer;
}

.builton-pair-link:hover { color: var(--spartan-green); text-decoration-color: var(--spartan-green); }

.builton-pending {
  color: var(--text-dim);
  font-style: italic;
}

.builton-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.builton-links-row .link-btn {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .builton-card-top { flex-wrap: wrap; }
  .builton-info-grid { grid-template-columns: 1fr; }
  .builton-info-grid > * { white-space: normal; overflow: visible; text-overflow: clip; }
  .builton-rank, .builton-icon { height: 3rem; width: 3rem; font-size: 3rem; }
}
