/* ============================================================
   PUNKZ.GIF — Enlist page (pixel arcade terminal)
   Self-contained: does not depend on style.css
   ============================================================ */
:root {
  --slate:      #7E97A6;
  --slate-mid:  #6E8593;
  --slate-deep: #3C4E5C;
  --slate-night:#2A3640;
  --cream:      #F2EFE7;
  --cream-soft: #E0DCD0;
  --mustard:    #E8C66E;
  --mustard-dk: #D4AE50;
  --ink:        #1B2228;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --px: "Press Start 2P", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.enlist-page {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--cream);
  background-color: var(--slate-night);
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; }
.kick {
  font-family: var(--px); font-size: .6rem; letter-spacing: .04em;
  color: var(--mustard); text-transform: uppercase; line-height: 1.6;
  margin-bottom: .9rem;
}

/* crisp pixel art everywhere */
.punkcard img, .quest__icon svg { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ── pixel button: hard offset shadow, tactile press ───────────────── */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--px); font-size: .62rem; line-height: 1.4;
  letter-spacing: .02em; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--mustard);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: .85rem 1.1rem; cursor: pointer;
  transition: transform .06s steps(2), box-shadow .06s steps(2), background .1s;
}
.pbtn:hover { background: #f0d684; transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.pbtn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.pbtn--sm { font-size: .55rem; padding: .6rem .75rem; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.pbtn--sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.pbtn--sm:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.pbtn--ghost { background: transparent; color: var(--cream); }
.pbtn--ghost:hover { background: rgba(242,239,231,.1); }
.pbtn--block { width: 100%; font-size: .72rem; padding: 1.05rem; margin-top: 1.6rem; }
.pbtn:disabled {
  background: var(--slate-mid); color: var(--slate-deep);
  border-color: var(--slate-deep); box-shadow: 4px 4px 0 rgba(27,34,40,.35);
  cursor: not-allowed; transform: none;
}

/* ── nav ───────────────────────────────────────────────────────────── */
.pnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  border-bottom: 3px solid var(--ink); background: var(--slate-deep);
  position: sticky; top: 0; z-index: 40;
}
.pnav__brand img { height: 24px; }
.pnav__links { display: flex; gap: .55rem; }

/* ── window panel ──────────────────────────────────────────────────── */
.enlist { max-width: 1060px; margin: clamp(1.6rem, 5vw, 3.5rem) auto; padding: 0 1rem; }
.win {
  background: var(--slate-deep);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0,0,0,.4);
}
.win__bar {
  display: flex; align-items: center; gap: .8rem;
  background: var(--mustard); color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: .75rem .9rem;
  font-family: var(--px); font-size: .58rem; letter-spacing: .02em;
}
.win__dots { display: flex; gap: 5px; }
.win__dots i { width: 11px; height: 11px; background: var(--ink); display: block; }
.win__title { flex: 1; }
.win__tag { border: 2px solid var(--ink); padding: .2rem .4rem; }

.win__body {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

/* ── sub-panels ────────────────────────────────────────────────────── */
.panel { background: var(--slate-night); border: 3px solid var(--ink); padding: 1rem; }

/* punk card */
.punkcard { background: var(--cream); border: 3px solid var(--ink); padding: 8px; box-shadow: 4px 4px 0 rgba(0,0,0,.3); }
.punkcard img { width: 100%; border: 2px solid var(--ink); }
.punkcard__cap { font-family: var(--px); font-size: .58rem; color: var(--ink); text-align: center; margin-top: 8px; }

/* rewards */
.side { display: flex; flex-direction: column; gap: 1rem; }
.rewards .reward { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.rewards .reward:last-child { margin-bottom: 0; }
.rewards b { font-family: var(--px); font-size: .68rem; color: var(--mustard); line-height: 1.3; }
.rewards strong { display: block; font-size: .9rem; color: var(--cream); font-weight: 600; }
.rewards small { display: block; font-size: .78rem; color: var(--cream-soft); margin-top: .15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-family: var(--px); font-size: .5rem; color: var(--cream);
  border: 2px solid var(--ink); background: var(--slate-mid);
  padding: .45rem .5rem;
}

/* ── form ──────────────────────────────────────────────────────────── */
.pfield { display: block; margin-bottom: 1rem; }
.pfield__label { display: block; font-family: var(--px); font-size: .52rem; color: var(--cream-soft); letter-spacing: .04em; margin-bottom: .5rem; }
.pinput {
  width: 100%; font-family: "Inter", sans-serif; font-size: .95rem; color: var(--ink);
  background: var(--cream); border: 3px solid var(--ink); padding: .75rem .8rem;
}
.pinput--mono { font-family: var(--mono); font-size: .85rem; letter-spacing: -.01em; }
.pinput::placeholder { color: #a9a293; }
.pinput:focus { outline: none; box-shadow: inset 0 0 0 2px var(--mustard); }

/* missions header + segmented progress */
.missions__head { display: flex; align-items: center; gap: .8rem; margin: 1.7rem 0 1rem; }
.missions__head .kick { margin: 0; }
.segbar { display: flex; gap: 4px; flex: 1; }
.seg { flex: 1; height: 14px; background: var(--slate-night); border: 2px solid var(--ink); transition: background .2s steps(2); }
.seg--on { background: var(--mustard); }
.segcount { font-family: var(--px); font-size: .6rem; color: var(--mustard); }

/* quest cards */
.quests { list-style: none; display: grid; gap: .7rem; }
.quest {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem;
  background: var(--slate); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,.28); padding: .75rem .8rem;
  transition: background .15s;
}
.quest--done { background: #9bb1bc; }
.quest__icon {
  width: 42px; height: 42px; flex: none;
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 1.1rem;
}
.quest__icon svg { width: 18px; height: 18px; fill: var(--cream); }
.quest--done .quest__icon { background: var(--mustard); color: var(--ink); }
.quest--done .quest__icon svg { fill: var(--ink); }
.quest__body strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 700; line-height: 1.25; }
.quest__body small { display: block; font-size: .8rem; color: var(--slate-deep); margin-top: .12rem; }
.quest__body b { color: var(--slate-night); font-weight: 700; }
.quest__multi { display: flex; gap: .35rem; }

.quest__check {
  width: 30px; height: 30px; flex: none;
  background: var(--cream); border: 3px solid var(--ink);
  cursor: pointer; position: relative;
  transition: background .12s steps(2);
}
.quest__check::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--px); font-size: .7rem; color: transparent;
}
.quest__check:hover { background: #fff; }
.quest--done .quest__check { background: var(--mustard); }
.quest--done .quest__check::after { color: var(--ink); }

.finetext { text-align: center; font-size: .76rem; color: var(--cream-soft); margin-top: 1rem; }

/* success */
.enlisted { text-align: center; padding: 2.5rem 1rem; }
.enlisted__check {
  width: 70px; height: 70px; margin: 0 auto 1.2rem;
  background: var(--mustard); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-items: center; font-family: var(--px); font-size: 1.5rem;
}
.kick--lg { font-size: 1rem; color: var(--mustard); }
.enlisted__msg { color: var(--cream-soft); max-width: 44ch; margin: .6rem auto 1.8rem; font-size: .95rem; line-height: 1.6; }
.enlisted__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.pfoot { text-align: center; padding: 2.6rem 1rem 3rem; border-top: 3px solid var(--ink); }
.pfoot img { height: 22px; margin: 0 auto .9rem; opacity: .9; }
.pfoot p { font-family: var(--px); font-size: .52rem; color: var(--cream-soft); letter-spacing: .04em; line-height: 1.8; }
.pfoot__copy { color: var(--slate-mid) !important; margin-top: .5rem; }

/* responsive */
@media (max-width: 800px) {
  .win__body { grid-template-columns: 1fr; }
  .side { flex-direction: column; }
}
@media (max-width: 520px) {
  .quest { grid-template-columns: auto 1fr auto; row-gap: .55rem; }
  .quest__multi, .quest > .pbtn { grid-column: 2 / 4; justify-self: start; }
  .win__title { font-size: .5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
