/* ── PALETTE ─────────────────────────────────────
   Pulled from Upeg pixel art on unipeg.art.
   Backgrounds tend pastel, Upegs themselves use
   bright orange / pink / navy as accents.
─────────────────────────────────────────────── */
:root {
  --bg:        #0e1024;            /* deep navy-purple */
  --bg-card:   #181b3a;
  --bg-soft:   #21244a;
  --ink:       #f7e8c8;            /* warm cream */
  --ink-mute:  #9d9bbf;
  --accent:    #ff8c5a;            /* upeg orange */
  --accent-2:  #f7a8c8;            /* upeg pink */
  --accent-3:  #6cd8ff;            /* upeg sky */
  --good:      #a3e635;
  --line:      #2a2d5a;
  --pix-hi:    #ffe08a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

code {
  font-family: 'VT323', monospace;
  font-size: 1.1em;
  background: var(--bg-soft);
  padding: 0 0.3em;
  border-radius: 2px;
}

/* Pixel-art rendering on every <img> + <svg> we treat as art */
.pixel, .pixel * {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(255,140,90,.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(108,216,255,.12), transparent 50%),
    var(--bg);
  border-bottom: 2px solid var(--line);
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 3rem;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Press Start 2P', monospace;
}
.logo-pixel { color: var(--accent); font-size: 0.9rem; letter-spacing: -2px; }
.logo-text { color: var(--ink); font-size: 0.9rem; }

.nav-links { display: flex; gap: 1.6rem; font-size: 0.9rem; }
.nav-links a { color: var(--ink-mute); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-art {
  width: 160px; height: 160px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 4px solid var(--accent);
  box-shadow: 8px 8px 0 var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.hero-art svg, .hero-art img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 4.5vw, 3rem);
  line-height: 1.25;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 4px 4px 0 var(--accent);
}
.title-accent { color: var(--accent-3); }

.hero-tag {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-mute);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  transition: transform .1s, box-shadow .1s, background .1s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  background: var(--accent-2); color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-ghost {
  background: transparent; color: var(--accent);
}
.btn-ghost:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ── STATS ────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 2px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: var(--pix-hi);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--ink-mute);
}

/* ── SECTIONS ─────────────────────────────────── */
section {
  padding: 4rem clamp(1rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}
.section-head { margin-bottom: 2rem; }
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
  color: var(--ink);
}
.section-sub { color: var(--ink-mute); margin: 0; }

/* ── YOYO STEPS ───────────────────────────────── */
.yoyo-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.yoyo-step {
  background: var(--bg-card);
  padding: 1.8rem 1.4rem;
  border: 2px solid var(--line);
  position: relative;
  transition: border-color .15s, transform .15s;
}
.yoyo-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.step-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.yoyo-step h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--pix-hi);
}
.yoyo-step p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
}

/* ── ACTIVE ORDERS GRID ───────────────────────── */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.order-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  padding: 1rem;
  transition: border-color .15s, transform .15s;
}
.order-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}
.order-art {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.order-art svg, .order-art img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
}
.order-id {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.order-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
}
.order-row .l { color: var(--ink-mute); }
.order-row .v { color: var(--ink); }

.order-progress {
  margin-top: 0.7rem;
  height: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.order-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s;
}
.order-progress-pct {
  margin-top: 0.3rem;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: var(--accent-2);
  text-align: right;
}

/* ── FILLS LIST ───────────────────────────────── */
.fills-list { display: flex; flex-direction: column; gap: 0.6rem; }
.fill-row {
  background: var(--bg-card);
  border: 2px solid var(--line);
  padding: 1rem;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.fill-art {
  width: 60px; height: 60px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.fill-art svg, .fill-art img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
}
.fill-meta { font-family: 'VT323', monospace; font-size: 1rem; }
.fill-cycle { color: var(--accent); font-weight: 700; }
.fill-burn { color: var(--good); font-family: 'Press Start 2P', monospace; font-size: 0.75rem; text-align: right; }
.fill-ago  { color: var(--ink-mute); font-size: 0.85rem; margin-top: 0.2rem; text-align: right; }

/* ── FOOTER ──────────────────────────────────── */
.footer {
  border-top: 2px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.85rem;
}
.foot-row { margin-bottom: 0.5rem; }
.foot-links a { color: var(--accent); margin: 0 0.5rem; }

/* ── SCANLINE / RETRO TEXTURE (subtle) ────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 2px,
      rgba(0,0,0,0.025) 2px 3px
    );
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-art { width: 120px; height: 120px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
