:root {
  --parch: #e7d8ac;
  --parch-2: #ddca96;
  --ink: #2a2030;
  --ink-soft: #6a5a4a;
  --navy: #232c4a;
  --navy-2: #1a2138;
  --cream: #f6edd2;
  --cream-soft: #c7b893;
  --gold: #f3b53f;
  --gold-2: #d6951f;
  --green: #66b15e;
  --red: #d65c4c;
  --pixel: "Press Start 2P", monospace;
  --term: "VT323", monospace;
}

* {
  box-sizing: border-box;
}

/* the hidden attribute must always win, even over display:flex/grid rules */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
.pixelated {
  image-rendering: pixelated;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
      180deg,
      #f3e7bf 0%,
      #ecdcab 38%,
      #ddc684 72%,
      #cbb06a 100%
    )
    fixed;
  color: var(--ink);
  font-family: var(--term);
  font-size: 20px;
  line-height: 1.4;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Cpath d='M3 2h2v2H3zM5 4h2v2H5zM7 6h2v2H7zM9 8h2v2H9zM11 10h2v2h-2zM5 12h2v2H5zM3 14h2v2H3zM3 4h2v8H3z' fill='%232a2030'/%3E%3Cpath d='M5 4h2v2H5zM7 6h2v2H7zM9 8h2v2H9zM5 6h2v6H5z' fill='%23f6edd2'/%3E%3C/svg%3E")
      3 2,
    auto;
}

/* ---------- animated pixel background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* slowly drifting pixel grid */
.bg::before {
  content: "";
  position: absolute;
  inset: -30px;
  background-image:
    linear-gradient(rgba(42, 32, 48, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(42, 32, 48, 0.05) 2px, transparent 2px);
  background-size: 28px 28px;
  animation: gridDrift 12s linear infinite;
}
@keyframes gridDrift {
  to {
    transform: translate(28px, 28px);
  }
}

/* blocky pixel clouds (10px pixels, with a soft underside shade) */
.cloud {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  opacity: 0.95;
  box-shadow:
    10px 0 0 #c9b582, 20px 0 0 #c9b582, 30px 0 0 #c9b582, 40px 0 0 #c9b582, 50px 0 0 #c9b582, 60px 0 0 #c9b582, 70px 0 0 #c9b582,
    0 -10px 0 #fbf3d8, 10px -10px 0 #fbf3d8, 20px -10px 0 #fbf3d8, 30px -10px 0 #fbf3d8, 40px -10px 0 #fbf3d8, 50px -10px 0 #fbf3d8, 60px -10px 0 #fbf3d8, 70px -10px 0 #fbf3d8, 80px -10px 0 #fbf3d8,
    20px -20px 0 #fff7df, 30px -20px 0 #fff7df, 50px -20px 0 #fff7df, 60px -20px 0 #fff7df;
}
.c1 {
  top: 8%;
  animation: drift 60s linear infinite;
}
.c2 {
  top: 20%;
  transform: scale(1.5);
  opacity: 0.7;
  animation: drift 84s linear infinite;
  animation-delay: -26s;
}
.c3 {
  top: 40%;
  transform: scale(0.85);
  opacity: 0.85;
  animation: drift 50s linear infinite;
  animation-delay: -33s;
}
.c4 {
  top: 58%;
  transform: scale(1.2);
  opacity: 0.6;
  animation: drift 70s linear infinite;
  animation-delay: -12s;
}
@keyframes drift {
  from {
    left: -130px;
  }
  to {
    left: 112vw;
  }
}

/* twinkling pixel sparkles (bigger 4-point stars) */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff7df;
  opacity: 0;
  box-shadow:
    -5px 0 0 var(--gold),
    5px 0 0 var(--gold),
    0 -5px 0 var(--gold),
    0 5px 0 var(--gold),
    -10px 0 0 var(--gold-2),
    10px 0 0 var(--gold-2),
    0 -10px 0 var(--gold-2),
    0 10px 0 var(--gold-2);
  animation: twinkle 2.4s steps(2) infinite;
}
.s1 { top: 13%; left: 8%; animation-delay: 0s; }
.s2 { top: 20%; left: 88%; animation-delay: 0.3s; }
.s3 { top: 35%; left: 17%; animation-delay: 0.7s; }
.s4 { top: 9%; left: 58%; animation-delay: 1s; }
.s5 { top: 52%; left: 92%; animation-delay: 1.4s; }
.s6 { top: 63%; left: 6%; animation-delay: 1.7s; }
.s7 { top: 29%; left: 71%; animation-delay: 0.5s; }
.s8 { top: 76%; left: 38%; animation-delay: 0.9s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.95; }
}

/* tiny pixel birds flapping across the sky */
.bird {
  position: absolute;
  width: 4px;
  height: 4px;
}
.bird::before,
.bird::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 4px;
  background: rgba(42, 32, 48, 0.7);
}
.bird::before {
  left: -10px;
  transform-origin: right center;
  animation: flapL 0.4s steps(2) infinite;
}
.bird::after {
  left: 4px;
  transform-origin: left center;
  animation: flapR 0.4s steps(2) infinite;
}
.b1 {
  top: 17%;
  animation: fly 27s linear infinite;
}
.b2 {
  top: 30%;
  transform: scale(0.8);
  animation: fly 36s linear infinite;
  animation-delay: -13s;
}
@keyframes fly {
  from { transform: translate(-70px, 0); }
  to { transform: translate(112vw, -26px); }
}
@keyframes flapL {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-8deg); }
}
@keyframes flapR {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(8deg); }
}

/* pixel sun with a warm glow */
.sun {
  position: absolute;
  top: 6%;
  right: 9%;
  width: 64px;
  height: 64px;
  background: var(--gold);
  clip-path: polygon(
    25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%
  );
  box-shadow: 0 0 90px 40px rgba(243, 181, 63, 0.35);
  animation: sunPulse 3.5s steps(2) infinite;
}
@keyframes sunPulse {
  50% {
    box-shadow: 0 0 110px 52px rgba(243, 181, 63, 0.5);
  }
}

/* layered pixel hills for depth (parallax horizon) */
.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.hills.far {
  height: 30vh;
  background: linear-gradient(180deg, #d3bd84 0%, #c6ad6f 100%);
  clip-path: polygon(
    0 55%, 10% 55%, 10% 40%, 22% 40%, 22% 60%, 34% 60%, 34% 30%, 48% 30%,
    48% 50%, 62% 50%, 62% 38%, 76% 38%, 76% 58%, 88% 58%, 88% 42%, 100% 42%,
    100% 100%, 0 100%
  );
  opacity: 0.75;
}
.hills.near {
  height: 20vh;
  background: linear-gradient(180deg, #b49a5c 0%, #9c8246 100%);
  clip-path: polygon(
    0 58%, 14% 58%, 14% 44%, 28% 44%, 28% 64%, 42% 64%, 42% 38%, 58% 38%,
    58% 60%, 72% 60%, 72% 46%, 86% 46%, 86% 66%, 100% 66%, 100% 100%, 0 100%
  );
  box-shadow: inset 0 3px 0 rgba(246, 237, 210, 0.18);
}

/* keep content above the background */
.topbar,
.shell,
.foot {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bg::before,
  .cloud,
  .spark,
  .bird,
  .bird::before,
  .bird::after,
  .sun {
    animation: none !important;
  }
}

/* pixel frame helper — layered hard borders + offset shadow */
.panel,
.card,
.profile-card {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  box-shadow:
    0 0 0 4px var(--ink),
    inset 0 4px 0 rgba(246, 237, 210, 0.14),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25),
    12px 12px 0 0 rgba(42, 32, 48, 0.55);
}

/* ---------- topbar ---------- */
.topbar {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 26px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 var(--parch-2);
}

.brand .spark {
  color: var(--gold-2);
}

.brand-sub {
  display: inline-block;
  margin-left: 8px;
  font-size: 8px;
  color: #fff;
  background: var(--gold-2);
  padding: 4px 6px;
  vertical-align: middle;
  box-shadow: 2px 2px 0 var(--ink);
}

.status-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pixel);
  font-size: 11px;
}

.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2f6e2b;
}

.chip-live i {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--ink);
  animation: blink 1.1s step-end infinite;
}

.chip-count {
  color: var(--ink);
  background: var(--parch-2);
  padding: 6px 8px;
  box-shadow: 0 0 0 2px var(--ink);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- shell ---------- */
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 26px 70px;
}

/* ---------- hero ---------- */
.hero {
  padding: 30px 0 26px;
  text-align: center;
}

.kicker {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  margin: 0 0 24px;
  text-shadow: 2px 2px 0 var(--parch-2);
  animation: fadeUp 0.5s ease both;
}

.hero h1 {
  font-family: var(--pixel);
  font-size: clamp(30px, 7vw, 64px);
  line-height: 1.32;
  margin: 0 auto 26px;
  color: var(--ink);
  text-shadow:
    4px 4px 0 var(--parch-2),
    8px 8px 0 rgba(42, 32, 48, 0.18);
  animation: fadeUp 0.55s ease 0.06s both;
}

.hero h1 .hl {
  color: var(--gold-2);
  text-shadow:
    4px 4px 0 var(--ink),
    8px 8px 0 rgba(42, 32, 48, 0.25);
}

.lede {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 26px;
  color: #4a3d2c;
  animation: fadeUp 0.6s ease 0.12s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- console panel ---------- */
.console {
  margin-top: 30px;
  padding: 24px;
  animation: fadeUp 0.6s ease 0.18s both;
}

.mode-switch {
  display: inline-flex;
  gap: 0;
  margin-bottom: 18px;
  box-shadow: 0 0 0 3px var(--ink);
}

.mode {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--cream);
  background: var(--navy-2);
  border: none;
  padding: 13px 18px;
  cursor: inherit;
}

.mode + .mode {
  box-shadow: -3px 0 0 var(--ink);
}

.mode.active {
  color: var(--ink);
  background: var(--gold);
}

.input-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--navy-2);
  box-shadow: inset 0 0 0 3px var(--ink);
  padding: 14px 16px;
}

.prompt {
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--gold);
  padding-top: 3px;
}

textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--cream);
  font-family: var(--term);
  font-size: 24px;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
  min-height: 30px;
  padding-top: 1px;
}

textarea::placeholder {
  color: var(--cream-soft);
}

textarea:focus {
  outline: none;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex {
  font-family: var(--term);
  font-size: 19px;
  color: var(--cream);
  background: var(--navy-2);
  border: none;
  box-shadow: 0 0 0 2px var(--ink);
  padding: 8px 13px;
  cursor: inherit;
}

.ex:hover {
  color: var(--ink);
  background: var(--gold);
}

/* pixel button */
.match-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 16px 24px;
  cursor: inherit;
  box-shadow:
    0 0 0 3px var(--ink),
    5px 5px 0 0 var(--gold-2),
    5px 5px 0 3px var(--ink);
  transition: transform 0.04s steps(1);
}

.match-btn:hover {
  background: #ffc756;
}

.match-btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 3px var(--ink);
}

.match-btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.4);
}

/* ---------- dropzone ---------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 34px 22px;
  background: var(--navy-2);
  box-shadow: inset 0 0 0 3px var(--gold-2);
  cursor: inherit;
}

.dropzone.drag {
  background: #2c3760;
  box-shadow: inset 0 0 0 3px var(--gold);
}

.dz-icon {
  font-family: var(--pixel);
  font-size: 24px;
  color: var(--gold);
}

.dz-main {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--cream);
  line-height: 1.7;
}

.dz-main em {
  font-style: normal;
  color: var(--gold);
}

.dz-sub {
  font-size: 19px;
  color: var(--cream-soft);
}

.dz-file {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--ink);
  background: var(--gold);
  padding: 7px 10px;
  margin-top: 8px;
  box-shadow: 0 0 0 2px var(--ink);
}

.cv-hint {
  font-size: 19px;
  color: var(--cream-soft);
  max-width: 30ch;
}

/* ---------- trust row ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust .tdot {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--ink);
}

.trust-sep {
  color: var(--gold-2);
}

/* ---------- status log ---------- */
.status-log {
  margin-top: 26px;
  padding: 22px 24px;
  font-family: var(--pixel);
  font-size: 12px;
}

.log-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-soft);
  line-height: 1.5;
}

.logline .caret {
  color: var(--navy-2);
}

.logline.active {
  color: var(--cream);
}

.logline.active .caret {
  color: var(--gold);
  animation: blink 0.7s step-end infinite;
}

.logline.active::after {
  content: "█";
  color: var(--gold);
  animation: blink 0.7s step-end infinite;
}

.logline.done {
  color: var(--green);
}

.logline.done .caret {
  color: var(--green);
}

/* ---------- minion work scene ---------- */
.work-scene {
  position: relative;
  height: 80px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #1c2440;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(0, 0, 0, 0.12) 10px 12px
  );
  box-shadow: inset 0 0 0 3px var(--ink);
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--navy-2);
  background-image: repeating-linear-gradient(
    90deg,
    var(--navy-2) 0 6px,
    #141a2e 6px 8px
  );
  box-shadow: 0 -3px 0 var(--ink);
}

.minion {
  position: absolute;
  bottom: 12px;
  width: 28px;
  height: 44px;
}
.m1 {
  left: 14%;
}
.m2 {
  left: 44%;
  animation: walk 2.6s steps(6) infinite alternate;
}
.m3 {
  left: 74%;
}

/* the minion sprite, drawn entirely with box-shadow pixels */
.body {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: transparent;
  animation: bob 0.6s step-end infinite;
  box-shadow:
    4px 0 0 0 #2a2030, 8px 0 0 0 #2a2030, 12px 0 0 0 #2a2030, 16px 0 0 0 #2a2030, 20px 0 0 0 #2a2030,
    0 4px 0 0 #2a2030, 4px 4px 0 0 #f3b53f, 8px 4px 0 0 #f3b53f, 12px 4px 0 0 #f3b53f, 16px 4px 0 0 #f3b53f, 20px 4px 0 0 #f3b53f, 24px 4px 0 0 #2a2030,
    0 8px 0 0 #2a2030, 4px 8px 0 0 #f3b53f, 8px 8px 0 0 #2a2030, 12px 8px 0 0 #f3b53f, 16px 8px 0 0 #2a2030, 20px 8px 0 0 #f3b53f, 24px 8px 0 0 #2a2030,
    0 12px 0 0 #2a2030, 4px 12px 0 0 #f3b53f, 8px 12px 0 0 #f3b53f, 12px 12px 0 0 #f3b53f, 16px 12px 0 0 #f3b53f, 20px 12px 0 0 #f3b53f, 24px 12px 0 0 #2a2030,
    0 16px 0 0 #2a2030, 4px 16px 0 0 #f3b53f, 8px 16px 0 0 #f3b53f, 12px 16px 0 0 #f3b53f, 16px 16px 0 0 #f3b53f, 20px 16px 0 0 #f3b53f, 24px 16px 0 0 #2a2030,
    4px 20px 0 0 #2a2030, 8px 20px 0 0 #2a2030, 12px 20px 0 0 #2a2030, 16px 20px 0 0 #2a2030, 20px 20px 0 0 #2a2030,
    4px 24px 0 0 #2a2030, 16px 24px 0 0 #2a2030;
}
.m2 .body {
  animation-delay: 0.2s;
}
.m3 .body {
  animation-delay: 0.1s;
}

/* tools */
.tool {
  position: absolute;
}

/* m1 — miner with a swinging pickaxe + dust */
.tool.pick {
  width: 4px;
  height: 15px;
  background: var(--ink);
  left: 30px;
  bottom: 18px;
  transform-origin: 2px 15px;
  animation: swing 0.5s steps(2) infinite;
}
.tool.pick::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -7px;
  width: 16px;
  height: 4px;
  background: #9aa3b2;
  box-shadow: 0 0 0 2px var(--ink);
}
.m1 .dust {
  position: absolute;
  left: 4px;
  bottom: 8px;
  width: 4px;
  height: 4px;
  background: var(--cream-soft);
  box-shadow: -6px 0 0 var(--cream-soft), 6px -2px 0 var(--cream-soft);
  animation: puff 0.5s steps(3) infinite;
}

/* m2 — carrier with a scroll */
.tool.scroll {
  width: 14px;
  height: 10px;
  background: var(--cream);
  left: -7px;
  bottom: 17px;
  box-shadow: 0 0 0 2px var(--ink);
  animation: bob 0.6s step-end infinite 0.2s;
}
.tool.scroll::before,
.tool.scroll::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 3px;
  height: 14px;
  background: var(--gold-2);
  box-shadow: 0 0 0 2px var(--ink);
}
.tool.scroll::before {
  left: -3px;
}
.tool.scroll::after {
  right: -3px;
}

/* m3 — scanner with a magnifier */
.tool.lens {
  width: 12px;
  height: 12px;
  background: #bfe9ff;
  left: 26px;
  bottom: 20px;
  box-shadow: 0 0 0 3px var(--ink);
  animation: scan 1s steps(3) infinite, glint 0.4s step-end infinite;
}
.tool.lens::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 11px;
  background: var(--ink);
  right: -7px;
  bottom: -8px;
  transform: rotate(-45deg);
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes walk {
  0% {
    transform: translateX(-14px);
  }
  100% {
    transform: translateX(70px);
  }
}
@keyframes swing {
  0% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(-56deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}
@keyframes puff {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-5px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes scan {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-7px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes glint {
  50% {
    background: #eaf7ff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .body,
  .tool,
  .m1 .dust,
  .m2 {
    animation: none !important;
  }
}

/* ---------- results ---------- */
.results {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-head {
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--ink);
  margin: 6px 0 2px;
  text-shadow: 2px 2px 0 var(--parch-2);
}

.card {
  padding: 24px 26px;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.35s steps(4) forwards;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stars {
  font-size: 32px;
  letter-spacing: 3px;
  line-height: 1;
}

.stars .on {
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--navy-2);
}

.stars .off {
  color: #3b466e;
}

.match-pct {
  font-family: var(--pixel);
  font-size: 12px;
  padding: 8px 11px;
  box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 0 rgba(42, 32, 48, 0.4);
}

.match-pct.good {
  color: var(--ink);
  background: var(--gold);
}
.match-pct.mid {
  color: var(--ink);
  background: #e7c25a;
}
.match-pct.low {
  color: var(--cream);
  background: var(--red);
}

.title {
  font-family: var(--pixel);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  margin: 0 0 12px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.meta {
  font-size: 20px;
  color: var(--cream-soft);
  margin-bottom: 14px;
}

.meta .company {
  color: var(--cream);
}

.meta .src {
  color: var(--gold);
}

.meta .sep {
  color: var(--gold-2);
  margin: 0 7px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.tag {
  font-family: var(--term);
  font-size: 18px;
  color: var(--cream);
  background: var(--navy-2);
  padding: 3px 11px;
  box-shadow: 0 0 0 2px var(--ink);
}

.tag::before {
  content: "#";
  color: var(--gold-2);
}

.reason {
  font-size: 22px;
  line-height: 1.4;
  color: var(--cream);
  margin: 0 0 18px;
}

.open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  border: none;
  cursor: inherit;
  padding: 14px 18px;
  box-shadow:
    0 0 0 3px var(--ink),
    5px 5px 0 0 var(--gold-2),
    5px 5px 0 3px var(--ink);
}

.open:hover {
  background: #ffc756;
}

.open:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 3px var(--ink);
}

/* ---------- profile card ---------- */
.profile-card {
  padding: 18px 20px;
  background: var(--navy-2);
}

.profile-tag {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 14px;
}

.profile-text {
  margin: 0;
  font-size: 23px;
  line-height: 1.4;
  color: var(--cream);
  white-space: pre-line;
}

/* ---------- notices ---------- */
.notice {
  font-family: var(--term);
  font-size: 23px;
  text-align: center;
  padding: 26px;
  background: var(--navy);
  color: var(--cream);
  box-shadow:
    0 0 0 4px var(--ink),
    8px 8px 0 0 rgba(42, 32, 48, 0.4);
}

.notice.error {
  color: var(--red);
}

/* ---------- footer ---------- */
.foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 26px 50px;
  text-align: center;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.9;
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }
  .hero h1 {
    font-size: clamp(18px, 7vw, 30px);
  }
  .match-btn {
    width: 100%;
    justify-content: center;
  }
  .console-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .card-top {
    justify-content: flex-start;
  }
}

/* ============ AUTH ============ */
.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 10px;
}
.auth-slot .auth-email {
  font-family: var(--term);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Pixel chip buttons, same hard-edged look as the rest of the board. */
.auth-slot button {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 9px 11px;
  cursor: inherit;
  box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 0 var(--gold-2), 3px 3px 0 2px var(--ink);
  transition: transform 0.04s steps(1);
}
.auth-slot button:hover { background: #ffc756; }
.auth-slot button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 2px var(--ink); }
/* "LOG IN" / "LOG OUT" secondary: navy on the light topbar so it reads clearly. */
.auth-slot button.ghost {
  color: var(--cream);
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 0 var(--navy-2), 3px 3px 0 2px var(--ink);
}
.auth-slot button.ghost:hover { color: var(--ink); background: var(--gold); }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 33, 56, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-overlay[hidden] { display: none; }
/* Panel look: navy + cream, hard ink border + offset pixel shadow (matches .panel/.card). */
.auth-box {
  position: relative;
  width: min(92vw, 380px);
  background: var(--navy);
  color: var(--cream);
  padding: 30px 26px 26px;
  box-shadow:
    0 0 0 4px var(--ink),
    inset 0 4px 0 rgba(246, 237, 210, 0.14),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25),
    12px 12px 0 0 rgba(42, 32, 48, 0.55);
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--cream-soft);
  font-family: var(--term);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.auth-close:hover { color: var(--gold); }
.auth-title {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 11px 13px;
  font-family: var(--term);
  font-size: 19px;
  color: var(--cream);
  background: var(--navy-2);
  border: none;
  box-shadow: 0 0 0 2px var(--ink);
}
.auth-input::placeholder { color: var(--cream-soft); }
.auth-input:focus { outline: none; background: #20283f; box-shadow: 0 0 0 2px var(--gold); }
.auth-error {
  color: var(--red);
  font-family: var(--term);
  font-size: 17px;
  margin-bottom: 12px;
}
.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--ink);
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 0 var(--gold-2), 5px 5px 0 3px var(--ink);
  transition: transform 0.04s steps(1);
}
.auth-submit:hover { background: #ffc756; }
.auth-submit:active { transform: translate(5px, 5px); box-shadow: 0 0 0 3px var(--ink); }
.auth-toggle {
  margin: 20px 0 0;
  font-family: var(--term);
  font-size: 17px;
  text-align: center;
  color: var(--cream-soft);
}
.auth-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--term);
  font-size: 17px;
  text-decoration: underline;
}
.auth-link:hover { color: #ffc756; }
/* Company · platform · location is hidden behind a blur until you log in. */
.card .meta.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Load more (client-side pagination) */
.load-more {
  display: block;
  margin: 18px auto 4px;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--cream);
  background: var(--navy);
  border: none;
  cursor: inherit;
  padding: 13px 20px;
  box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 0 var(--navy-2), 5px 5px 0 3px var(--ink);
  transition: transform 0.04s steps(1);
}
.load-more:hover { color: var(--ink); background: var(--gold); }
.load-more:active { transform: translate(5px, 5px); box-shadow: 0 0 0 3px var(--ink); }

/* footer policy links */
.foot-links { margin-top: 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-family: var(--term); font-size: 17px; }
.foot-links a { color: var(--ink); opacity: 0.7; text-decoration: none; }
.foot-links a:hover { opacity: 1; color: var(--gold-2); text-decoration: underline; }
