@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

@font-face{font-family:'Pixelta';src:url('pixelta-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}

:root{
  --pixel-display:'Pixelta', monospace;
  --pixel-body:'VT323', monospace;
  --bg-cream:#f8f4d8;
  --paper:#fffbe8;
  --text:#233230;
  --muted:#4e5f5f;
  --heading:#153f57;
  --accent:#ffcf57;
  --accent-2:#2f7f6a;
  --dark:#10352f;
  --dark-2:#0a251f;
  --light:#fff8cf;
  --pink:#ff6ca8;
}

html,body{image-rendering:auto;scroll-behavior:smooth}
body{color:var(--text);background:var(--bg-cream)}
body, body *, body *::before, body *::after{
  font-family:var(--pixel-body)!important;
  letter-spacing:.02em;
}

img, video, canvas, svg image {
  image-rendering: auto;
}

:is(h1,h2,h3,h4,h5,h6),
.unav nav a,
.u-btn,
.gold,
.outline,
.tabs button,
.selectors button,
.sim-palette button,
.sim-preview label,
.sim-palette legend,
.feature-strip,
.art-tag,
.art-track span,
.u-footer,
footer,
header nav a,
.guidebody aside strong,
.dialoghead strong,
.collect-stats strong,
.faith-art span,
.profile-traits dd,
.tablebox th{
  font-family:var(--pixel-display)!important;
  letter-spacing:.04em!important;
  line-height:1.35;
  text-transform:uppercase;
}

:is(h1,h2,h3,h4,h5,h6){
  color:var(--heading)!important;
  text-shadow:2px 2px 0 rgba(255,255,255,.35);
}

p,li,dd,dt,td,figcaption,label,legend,select,option,button,input,textarea{
  font-size:clamp(20px,1.45vw,30px);
  line-height:1.22;
  color:var(--text);
}

.u-kicker,.small,.kicker,.game-copy>span,.roadmap-grid b,.economy-steps b,.hero-note,.u-eyebrow{
  font-family:var(--pixel-display)!important;
  font-size:12px!important;
  letter-spacing:.12em!important;
  text-transform:uppercase;
}
.u-kicker,.small,.kicker{color:var(--accent-2)!important}
.u-kicker:before,.u-kicker:after{background:#79c9a0!important}

.world-copy p,.collect-copy p,.economy-grid p,.community-grid p,.u-heading p{font-size:clamp(22px,1.5vw,30px)!important}
.game-copy p,.roadmap-grid article p,.fine-print,.profile-copy p,.profile-sheet p{font-size:clamp(20px,1.4vw,28px)!important}
.sectionhead p,.sim-foot,.collect-caption{color:var(--muted)!important}
.fine-print{opacity:.95}

/* dark sections */
:is(.collect-section,.growth-section,.community-section,.closing-section,.art-wall,.guide-banner,.u-footer,footer){color:var(--light)}
:is(.collect-section,.growth-section,.community-section,.closing-section,.art-wall,.guide-banner,.u-footer,footer) :is(h1,h2,h3,h4){color:var(--accent)!important;text-shadow:2px 2px 0 rgba(0,0,0,.35)}
:is(.collect-section,.growth-section,.community-section,.closing-section,.art-wall,.guide-banner,.u-footer,footer) :is(p,li,dd,dt,figcaption,.fine-print,.collect-stats span,.collect-caption,a){color:#fff8da!important}
:is(.collect-section,.growth-section,.community-section,.closing-section,.art-wall,.guide-banner) .u-kicker{color:#9df0c7!important}
:is(.collect-section,.growth-section,.community-section,.closing-section) .u-kicker:before,
:is(.collect-section,.growth-section,.community-section,.closing-section) .u-kicker:after{background:#a0efc5!important}

/* navigation */
header, body.universe .unav{
  background:rgba(12,38,33,.58)!important;
  backdrop-filter:blur(8px);
  border-bottom:2px solid rgba(255,240,180,.35)!important;
  box-shadow:0 4px 0 rgba(7,24,21,.3);
}
header nav a, .unav nav a{
  color:#fff8d8!important;
  font-size:12px!important;
  text-shadow:2px 2px 0 rgba(0,0,0,.28)!important;
}
header nav a:hover, .unav nav a:hover, .unav nav a[aria-current="page"]{color:#ffcf57!important}

/* hero */
body.universe .uhero-inner h2{color:#fff6c6!important;text-shadow:3px 3px 0 #124037, 0 0 0 transparent!important}
body.universe .uhero-inner p{color:#f7fffb!important;background:rgba(13,50,42,.76)!important;border:2px solid rgba(255,245,196,.35);box-shadow:0 4px 0 rgba(6,24,20,.28);border-radius:6px}
body.universe .u-eyebrow, body.universe .hero-note{background:rgba(12,47,39,.84)!important;color:#fff7cc!important;border:2px solid rgba(255,236,168,.3)}
body.universe .feature-strip{background:linear-gradient(#225e4c,#133a31)!important;border-top:2px solid #ffe396;border-bottom:2px solid #ffe396;color:#fff6cc}

/* cards and panels */
.game-card,.roadmap-grid article,.evolution-track article,.world-art,.collect-art,.profile-sheet>a img,.profile-layout,.tablebox,.specimen,.sim-preview,.sim-palette,.guidebody aside,.guidebanner,.card,.chart-dialog,.art-dialog,.preview-dialog,.selectors,.tabs,.workbench{
  border-radius:6px!important;
}
.game-card,.roadmap-grid article,.world-art,.sim-preview,.sim-palette,.specimen,.profile-layout,.profile-sheet,.guidebody aside,.tablebox{
  box-shadow:0 6px 0 rgba(75,56,27,.28)!important;
}
.game-card,.roadmap-grid article{background:#fff9de!important;border:2px solid #c8a55f!important}
.game-copy a,.inline{color:#2d7a64!important}
.game-copy a:hover,.inline:hover{color:#1d5c4b!important}

/* buttons */
.u-btn,.gold,.outline,button{
  border-radius:4px!important;
  text-transform:uppercase;
}
body.universe .u-primary,.gold{
  color:#392400!important;
  background:linear-gradient(#ffe781,#ffbe47)!important;
  border:2px solid #fff1ab!important;
  box-shadow:0 4px 0 #8c5c16!important;
}
body.universe .u-secondary, body.universe .u-green, .outline{
  color:#fffce5!important;
  background:linear-gradient(#3fa17e,#23654f)!important;
  border:2px solid #ace8c7!important;
  box-shadow:0 4px 0 #174738!important;
}

/* simulator / explorer */
.sim-preview select,.sim-palette button,.tabs button,.selectors button{
  border-radius:4px!important;
}
.sim-preview select{
  background:#fffdf0!important;border:2px solid #cdb072!important;color:var(--text)!important;
}
.sim-palette h3{font-family:var(--pixel-display)!important;font-size:22px!important;color:var(--heading)!important}
.sim-palette button,.tabs button,.selectors button{
  background:#fff7dc!important;border:2px solid #d6ba84!important;color:#23433d!important;box-shadow:0 3px 0 rgba(121,87,45,.22)!important;
}
.sim-palette button[aria-pressed=true],.tabs button[aria-pressed=true],.selectors button[aria-pressed=true]{
  background:#2f7f6a!important;border-color:#2f7f6a!important;color:#fffce5!important;
}
.sim-stage{
  border-radius:4px!important;
  border:3px solid #c79f54!important;
}

/* section backgrounds / color tune */
body.universe{background:#f4f0cf!important;color:var(--text)!important}
body.universe .world-section,
body.universe .roadmap-section,
body.universe .play-intro,
body.universe .mud-spotlight{background:linear-gradient(#fffbe8,#efe7bb)!important}
body.universe .game-section{background:linear-gradient(#def4d9,#c9ecc5)!important;border-color:#9cc48c!important}
body.universe .collect-section{background:linear-gradient(90deg,rgba(11,44,32,.95),rgba(25,70,41,.88),rgba(16,61,44,.7)), url(jungle.webp) center/cover!important}
body.universe .economy-section{background:linear-gradient(#fff4c8,#f6df8b)!important}
body.universe .growth-section{background:linear-gradient(rgba(10,37,31,.88),rgba(8,29,24,.9)), url(jungle-temple.webp) center/cover!important}
body.universe .art-wall{background:#10362f!important}
body.universe .community-section{background:linear-gradient(rgba(16,54,47,.86),rgba(11,42,36,.88)), url(jungle-worship.webp) center/cover!important}
body.universe .closing-section{background:linear-gradient(rgba(12,35,30,.3),rgba(10,30,26,.82)), url(jungle-hero.webp) center/cover!important}
body.universe .u-footer{background:#0b2a24!important}

.collect-stats strong,.faith-art span{color:var(--accent)!important}
.collect-stats span{font-size:18px!important}

/* guide/profile polish */
.guidebody aside nav a,.profile-traits dd,.dialoghead strong{color:var(--heading)!important}
.guidebody aside nav a[aria-current=location]{color:#2f7f6a!important}
.tablebox th{background:#235f4d!important;color:#fff8da!important}

/* mobile */
@media (max-width:760px){
  header nav a,.unav nav a{font-size:10px!important}
  .u-kicker,.small,.kicker,.game-copy>span,.roadmap-grid b,.economy-steps b,.hero-note,.u-eyebrow{font-size:10px!important}
  p,li,dd,dt,td,figcaption,label,legend,select,option,button,input,textarea{font-size:18px}
  .world-copy p,.collect-copy p,.economy-grid p,.community-grid p,.u-heading p{font-size:20px!important}
  .game-copy p,.roadmap-grid article p,.fine-print,.profile-copy p,.profile-sheet p{font-size:18px!important}
  .sim-palette h3{font-size:18px!important}
}

/* Preserve original high-resolution foreground artwork and transparency. */
body img, body video, body svg image { image-rendering: auto !important; }
/* Keep the two featured characters in separate columns rather than stacking. */
body.universe .collect-art { display:grid; grid-template-columns:minmax(0, .85fr) minmax(0, 1fr); gap:clamp(12px,2vw,26px); align-items:center; padding:12px 10px 42px; }
body.universe .collect-art .base-hero { position:static; width:min(100%,256px); height:auto; max-height:340px; object-fit:contain; justify-self:center; transform:none; }
body.universe .collect-art .mascot-wave { position:static; width:min(100%,260px); max-width:100%; justify-self:center; transform:none; animation:none; }
body.universe .collect-art .mascot-wave img { width:100%; height:auto; }
body.universe .collect-art .collect-caption { position:absolute; bottom:0; left:0; right:0; text-align:center; }
body.universe .collection-pic { gap:5%; padding:8px; }
body.universe .collection-pic img { width:42%; flex:0 0 42%; height:95%; object-fit:contain; }

/* Simulator begins directly below the demo introduction. */
body.universe .mud-spotlight .mud-simulator{padding-top:28px;}

/* Minimal top navigation and White Paper chapter action. */
body header nav,body .unav nav{justify-content:center!important;gap:clamp(24px,5vw,56px)!important;}
.guidebody aside .toc-explorer{display:flex!important;align-items:center;justify-content:center;text-align:center;width:100%;box-sizing:border-box;margin:16px 0 14px;padding:13px 8px;font-size:11px;line-height:1.6;white-space:normal;}
.guidebody aside .toc-explorer:focus-visible{outline:3px solid #2f7f6a;outline-offset:4px;}
