:root {
  --wgf-black: #030302;
  --wgf-panel: #14110d;
  --wgf-panel2: #1d1811;
  --wgf-border: #3D2F1A;
  --wgf-border2: #6F5527;
  --wgf-gold: #C89B3C;
  --wgf-gold2: #F0C96A;
  --wgf-text: #E8D5A3;
  --wgf-muted: #B09060;
  --wgf-dim: #7D6445;
}

body.wgf-prod-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(200,155,60,.06), transparent 34%),
    #030302 !important;
  color: var(--wgf-text);
}

.wgf-prod-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(5,5,3,.985);
  border-bottom: 1px solid var(--wgf-border);
  box-shadow: 0 8px 28px rgba(0,0,0,.42);
}

.wgf-prod-inner {
  max-width: 1240px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) minmax(210px,320px);
  align-items: center;
  gap: 18px;
}

.wgf-prod-brand {
  color: var(--wgf-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.wgf-prod-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
}

.wgf-prod-nav a {
  color: var(--wgf-muted);
  border-radius: 3px;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wgf-prod-nav a:hover {
  color: var(--wgf-gold2);
  background: rgba(200,155,60,.08);
}

.wgf-prod-search {
  margin: 0;
}

.wgf-prod-search input {
  width: 100%;
  background: #0D0B08;
  border: 1px solid var(--wgf-border);
  color: var(--wgf-text);
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 13px;
}

.wgf-prod-search input:focus {
  outline: none;
  border-color: var(--wgf-gold);
}

.wgf-prod-footer {
  margin-top: 56px;
  background: rgba(5,5,3,.985);
  border-top: 1px solid var(--wgf-border);
  color: var(--wgf-muted);
}

.wgf-prod-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 18px 22px;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(120px,1fr));
  gap: 22px;
}

.wgf-prod-footer strong {
  display: block;
  color: var(--wgf-gold);
  font-size: 14px;
  margin-bottom: 9px;
}

.wgf-prod-footer p {
  margin: 0;
  max-width: 330px;
  color: var(--wgf-muted);
  font-size: 13px;
  line-height: 1.5;
}

.wgf-prod-footer a {
  display: block;
  color: var(--wgf-muted);
  text-decoration: none;
  font-size: 13px;
  margin: 7px 0;
}

.wgf-prod-footer a:hover {
  color: var(--wgf-gold2);
}

.wgf-prod-disclaimer {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(61,47,26,.72);
  padding: 12px 18px 18px;
  color: var(--wgf-dim);
  font-size: 12px;
}

/* Stop old direct body nav strips from showing above the production header. */
body.wgf-prod-page > nav:not(.wgf-prod-nav),
body.wgf-prod-page > .site-nav,
body.wgf-prod-page > .top-nav,
body.wgf-prod-page > .global-nav,
body.wgf-prod-page > .main-nav {
  display: none !important;
}

/* Token adapter: kill blue theme without touching token JS/data. */
body.wgf-prod-token .token-hero,
body.wgf-prod-token .token-card,
body.wgf-prod-token .token-panel,
body.wgf-prod-token .token-section,
body.wgf-prod-token .token-history,
body.wgf-prod-token .token-chart,
body.wgf-prod-token .panel,
body.wgf-prod-token .card {
  background: #14110d !important;
  border-color: var(--wgf-border) !important;
  color: var(--wgf-text) !important;
}

body.wgf-prod-token h1,
body.wgf-prod-token h2,
body.wgf-prod-token h3,
body.wgf-prod-token .token-title,
body.wgf-prod-pvp h1,
body.wgf-prod-pvp h2,
body.wgf-prod-pvp h3 {
  color: var(--wgf-text) !important;
}

body.wgf-prod-token .token-price,
body.wgf-prod-token #tokenPrice {
  color: #FFD100 !important;
}

body.wgf-prod-token p,
body.wgf-prod-token li,
body.wgf-prod-token .muted,
body.wgf-prod-pvp p,
body.wgf-prod-pvp li,
body.wgf-prod-pvp .muted {
  color: var(--wgf-muted) !important;
}

body.wgf-prod-token input,
body.wgf-prod-token select,
body.wgf-prod-pvp input,
body.wgf-prod-pvp select {
  background: #0D0B08 !important;
  color: var(--wgf-text) !important;
  border-color: var(--wgf-border) !important;
}

body.wgf-prod-token button,
body.wgf-prod-pvp button {
  border-color: var(--wgf-border2);
}

/* App pages need breathing room under the global shell. */
body.wgf-prod-ah main,
body.wgf-prod-token main,
body.wgf-prod-pvp main {
  margin-top: 0;
}

/* Static section shell consistency. */
.wgf-section-shell,
.wgf-home,
.wgf-clean-page {
  color: var(--wgf-text);
}

@media (max-width: 940px) {
  .wgf-prod-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .wgf-prod-search {
    display: none;
  }

  .wgf-prod-footer-inner {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .wgf-prod-footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .wgf-prod-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* LIVE_REPAIR_TOKEN_AH_START */

/* Header should not rely on a Home nav item. */
.wgf-prod-nav a[href="/"] {
  display: none !important;
}

/* Token page: replace bad blue/gradient hero bubble with gold/black panel. */
body.wgf-prod-token .token-hero,
body.wgf-prod-token .hero,
body.wgf-prod-token .page-hero,
body.wgf-prod-token section:first-of-type {
  background:
    radial-gradient(circle at 18% 0%, rgba(200,155,60,.12), transparent 34%),
    linear-gradient(180deg, #181410, #0B0907) !important;
  border: 1px solid #3D2F1A !important;
  border-top: 2px solid #C89B3C !important;
  color: #E8D5A3 !important;
  box-shadow: none !important;
}

body.wgf-prod-token .token-hero h1,
body.wgf-prod-token .hero h1,
body.wgf-prod-token .page-hero h1,
body.wgf-prod-token section:first-of-type h1 {
  color: #E8D5A3 !important;
}

body.wgf-prod-token .token-hero p,
body.wgf-prod-token .hero p,
body.wgf-prod-token .page-hero p,
body.wgf-prod-token section:first-of-type p {
  color: #B09060 !important;
}

/* Keep AH immune from the global prod shell until we adapter it intentionally. */
body.wgf-prod-ah .wgf-prod-header,
body.wgf-prod-ah .wgf-prod-footer {
  display: none !important;
}

/* LIVE_REPAIR_TOKEN_AH_END */
