:root {
  --ink: #080706;
  --coal: #12100e;
  --steel: #191612;
  --paper: #ded3b9;
  --paper-hi: #f0e8d5;
  --paper-dim: #b9ad94;
  --bone: #efe7d4;
  --orange: #ff6a12;
  --orange-soft: #ff8a33;
  --blood: #a82b1e;
  --blood-dark: #651710;
  --acid: #b8c13a;
  --muted: #9c907a;
  --line: #3a332a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--bone);
  background: #060505;
  font-family: "Archivo", system-ui, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poster {
  --u: min(1vw, 5.6px);
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  background: #0a0908;
  overflow: visible;
  isolation: isolate;
  box-shadow: 0 0 0 1px #000, 0 40px 90px rgba(0, 0, 0, 0.95);
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- wall ---------- */

.wall {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  pointer-events: none;
}

.wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.02) contrast(1.06) brightness(0.92);
}

.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4, 3, 3, 0.34) 0%, rgba(4, 3, 3, 0) 18%, rgba(4, 3, 3, 0) 52%, rgba(8, 7, 6, 0.78) 82%, #0a0908 99%),
    radial-gradient(ellipse at 50% 34%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.light-leak {
  position: absolute;
  z-index: 1;
  top: 1%;
  left: 18%;
  width: 74%;
  height: 30%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 108, 24, 0.2), rgba(255, 94, 12, 0.05) 48%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- tape ---------- */

.tape {
  position: relative;
  background: var(--paper);
  color: #191510;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.88);
  clip-path: polygon(0 8%, 2.2% 0, 26% 2%, 54% 0, 79% 2%, 97.8% 0, 100% 9%, 99% 48%, 100% 91%, 97% 100%, 71% 98%, 43% 100%, 18% 98%, 2% 100%, 0 92%);
}

.tape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.26) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tilt-a { transform: rotate(-1.35deg); }
.tilt-b { transform: rotate(0.7deg); }

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  z-index: 5;
  padding: calc(var(--u) * 2.6) 3.4% 0;
}

.sound-tab {
  position: absolute;
  z-index: 24;
  top: calc(var(--u) * 2);
  left: calc(var(--u) * 2);
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 8px 5px 6px;
  border: 0;
  background: rgba(222, 211, 185, 0.92);
  color: #12100d;
  font-family: "Space Mono", monospace;
  font-size: clamp(8px, calc(var(--u) * 1.7), 10px);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(0 10%, 4% 0, 96% 2%, 100% 12%, 99% 88%, 95% 100%, 3% 98%, 0 88%);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.9);
}

.sound-tab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #12100d;
  stroke-width: 1.8;
  stroke-linecap: square;
}

.sound-tab .spk { fill: #12100d; stroke: none; }
.sound-tab .slash { display: none; stroke: var(--blood); stroke-width: 2.1; }
.sound-tab.off .wav { display: none; }
.sound-tab.off .slash { display: block; }
.sound-tab.off { color: #5e150f; }
.sound-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.neon {
  position: relative;
  width: 82%;
  margin: 0 auto;
  z-index: 2;
  filter: drop-shadow(0 0 11px rgba(255, 103, 18, 0.28));
}

.neon img {
  width: 100%;
  height: auto;
  user-select: none;
  animation: buzz 7.3s steps(1, end) infinite;
}

@keyframes buzz {
  0%, 100% { opacity: 1; filter: brightness(1.04) saturate(1.12); }
  8% { opacity: 0.72; filter: brightness(0.72) saturate(1); }
  8.6% { opacity: 1; filter: brightness(1.14) saturate(1.22); }
  10.2% { opacity: 0.9; filter: brightness(0.88) saturate(1.04); }
  10.7% { opacity: 1; filter: brightness(1.04) saturate(1.12); }
  41% { opacity: 0.84; filter: brightness(0.8) saturate(1.02); }
  41.7% { opacity: 1; filter: brightness(1.18) saturate(1.28); }
  43.1% { opacity: 0.94; filter: brightness(0.92) saturate(1.06); }
  43.6% { opacity: 1; filter: brightness(1.06) saturate(1.14); }
  68.4% { opacity: 0.6; filter: brightness(0.62) saturate(0.94); }
  69% { opacity: 1; filter: brightness(1.16) saturate(1.26); }
  70.2% { opacity: 0.8; filter: brightness(0.78) saturate(1); }
  70.8% { opacity: 1; filter: brightness(1.04) saturate(1.12); }
  94.1% { opacity: 0.88; filter: brightness(0.86) saturate(1.04); }
  94.5% { opacity: 1; filter: brightness(1.12) saturate(1.2); }
}

.no-flicker .neon img { animation: none; }

.title-art {
  position: relative;
  z-index: 2;
  width: 66%;
  margin: -3% auto 0;
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.75));
}

.title-art img {
  width: 100%;
  height: auto;
  user-select: none;
}

.tagline {
  position: relative;
  z-index: 6;
  width: 64%;
  margin: -1.1% auto 0;
  padding: calc(var(--u) * 1.2) calc(var(--u) * 1.9);
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(7.6px, calc(var(--u) * 2), 12px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.25;
  white-space: nowrap;
}

/* ---------- slab ---------- */

.slab {
  position: relative;
  z-index: 3;
  padding: calc(var(--u) * 3.2) 2% 0;
}

.slab-spacer { display: none; }

.slab::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / var(--slab-ratio, 1.07);
  pointer-events: none;
}

.stage {
  position: absolute;
  top: calc(var(--u) * 3.2);
  left: 18%;
  width: 64%;
  z-index: 4;
}

.id-line {
  width: 78%;
  margin: 0 auto;
  padding: calc(var(--u) * 1.15) calc(var(--u) * 1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font-family: "Space Mono", monospace;
  font-size: clamp(8.5px, calc(var(--u) * 2.25), 13px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.id-text { display: inline-block; }

.id-status {
  display: inline-block;
  padding: 1px 4px;
  background: #262019;
  color: var(--paper);
  font-size: 0.74em;
  letter-spacing: 0.09em;
}

.id-status.hot { background: var(--orange); color: #120d09; }
.id-status.dead { background: var(--blood); color: #f1e6d2; }
.shake { animation: shake 0.28s steps(2, end) 2; }

@keyframes shake {
  0% { transform: rotate(0.7deg) translateX(0); }
  35% { transform: rotate(1.2deg) translateX(-3px); }
  70% { transform: rotate(0.2deg) translateX(3px); }
  100% { transform: rotate(0.7deg) translateX(0); }
}

.garment-wrap.kick { animation: kick 0.13s steps(2, end); }

@keyframes kick {
  0% { transform: translateY(0) translateX(0); }
  35% { transform: translateY(2px) translateX(1px); }
  70% { transform: translateY(-1px) translateX(0); }
  100% { transform: translateY(0) translateX(0); }
}

.garment-wrap {
  position: relative;
  width: var(--garment-w, 100%);
  margin: calc(var(--u) * 2.2) auto 0;
}

.garment-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transform: translate(3.2%, 3.6%) scale(1.01);
  filter: brightness(0) saturate(0);
  opacity: 0.82;
  user-select: none;
  pointer-events: none;
}

.garment-rig {
  position: relative;
  width: 100%;
  z-index: 2;
  transform-origin: 50% 70%;
  will-change: transform;
}

.garment-rig.lift { animation: lift 0.24s steps(3, end) forwards; }
.garment-rig.yank { animation: yank 0.3s cubic-bezier(0.7, 0, 1, 0.55) forwards; }

@keyframes lift {
  0% { transform: translateY(0) scale(1); }
  55% { transform: translateY(-16px) scale(1.014) rotate(-0.2deg); }
  100% { transform: translateY(-12px) scale(1.012) rotate(-0.15deg); }
}

@keyframes yank {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  22% { transform: translate(-2%, 2%) rotate(-1.2deg) scale(1.01); }
  100% { transform: translate(34%, -138%) rotate(7deg) scale(0.96); opacity: 0; }
}

.garment-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  user-select: none;
  filter: saturate(0.96) contrast(1.03) brightness(0.97);
}

.garment-tint {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: #e8e1d0;
  mix-blend-mode: multiply;
  opacity: 0;
  -webkit-mask-image: url("elements/garment_blank.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("elements/garment_blank.webp");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.design-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  -webkit-mask-image: url("elements/garment_blank.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("elements/garment_blank.webp");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.design-layer.locked { cursor: not-allowed; }

.decal {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}

.finish-tag {
  position: absolute;
  z-index: 5;
  right: 4%;
  bottom: 9%;
  transform: rotate(-5deg);
  background: var(--paper-hi);
  color: #17130f;
  border: 2px solid #15110d;
  padding: 5px 8px 4px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.9);
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.7), 10px);
  line-height: 1.25;
  text-align: center;
  animation: tagSlap 0.16s steps(2, end);
}

.finish-tag b {
  display: block;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: 1.55em;
  letter-spacing: 0.03em;
  font-weight: 800;
}

@keyframes tagSlap {
  0% { transform: rotate(-14deg) scale(1.5); opacity: 0; }
  100% { transform: rotate(-5deg) scale(1); opacity: 1; }
}

.tape-outline {
  position: absolute;
  inset: -2% -3% -2% -3%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.tape-outline.show { opacity: 1; }

.tape-outline i {
  position: absolute;
  display: block;
  height: 12%;
  background: rgba(222, 211, 185, 0.2);
  border-top: 1px solid rgba(240, 232, 213, 0.3);
  border-bottom: 1px solid rgba(240, 232, 213, 0.14);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 20%, 5% 0, 93% 6%, 100% 0, 97% 76%, 100% 100%, 8% 94%, 0 100%);
}

.tape-outline .t1 { top: 4%; left: 8%; width: 30%; transform: rotate(-7deg); }
.tape-outline .t2 { top: 5%; left: 52%; width: 35%; transform: rotate(4deg); }
.tape-outline .t3 { top: 44%; left: -4%; width: 17%; transform: rotate(83deg); }
.tape-outline .t4 { top: 45%; right: -4%; width: 16%; transform: rotate(79deg); }
.tape-outline .t5 { bottom: 2%; left: 12%; width: 31%; transform: rotate(5deg); }
.tape-outline .t6 { bottom: 1%; left: 58%; width: 29%; transform: rotate(-4deg); }

.blast {
  position: absolute;
  z-index: 6;
  width: 34%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, #fff5c9 0 8%, #ffb43c 9% 15%, rgba(255, 104, 18, 0.72) 16% 25%, transparent 27%),
    conic-gradient(from 0deg, transparent 0 4%, rgba(255, 154, 47, 0.86) 4% 7%, transparent 7% 13%, rgba(255, 241, 196, 0.9) 13% 15%, transparent 15% 100%);
  clip-path: polygon(50% 0, 58% 31%, 77% 9%, 67% 37%, 100% 26%, 72% 49%, 100% 65%, 67% 59%, 79% 94%, 57% 66%, 48% 100%, 43% 65%, 18% 96%, 32% 60%, 0 68%, 27% 48%, 0 28%, 33% 38%, 24% 5%, 43% 33%);
  mix-blend-mode: screen;
}

.blast.pop { animation: blast 0.13s steps(2, end); }

@keyframes blast {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.72) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3) rotate(18deg); }
}

.maker {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 36.4%;
  width: 31%;
  pointer-events: none;
}

.maker .frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: contrast(1.03) saturate(0.98);
  user-select: none;
}

.maker .frame.on { opacity: 1; }
.maker .f1 { position: relative; }

.stage-hint {
  margin: calc(var(--u) * 2) auto 0;
  width: 92%;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(7.5px, calc(var(--u) * 1.75), 10px);
  letter-spacing: 0.06em;
  color: rgba(239, 231, 212, 0.72);
  line-height: 1.4;
  text-shadow: 1px 2px 0 #000;
}

.cert {
  position: relative;
  width: 94%;
  margin: calc(var(--u) * 1.8) auto 0;
  padding: calc(var(--u) * 1.4) calc(var(--u) * 1.8) calc(var(--u) * 1.2);
  background: #d9ccb0;
  color: #18140f;
  transform: rotate(-0.8deg);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 3%, 3% 0, 97% 1%, 100% 4%, 99% 96%, 96% 100%, 3% 99%, 0 96%);
  animation: certIn 0.18s steps(3, end);
}

@keyframes certIn {
  0% { transform: rotate(-2deg) translateY(-8px) scale(1.03); opacity: 0.2; }
  100% { transform: rotate(-0.8deg) translateY(0) scale(1); opacity: 1; }
}

.cert::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.24) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Space Mono", monospace;
  font-size: clamp(6.5px, calc(var(--u) * 1.5), 9px);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #18140f;
  padding-bottom: 3px;
}

.cert-aura {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
}

.cert-aura b {
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(28px, calc(var(--u) * 8.4), 48px);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cert-aura span {
  font-family: "Space Mono", monospace;
  font-size: clamp(8px, calc(var(--u) * 1.8), 11px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cert-bars { margin-top: 4px; display: grid; gap: 3px; }

.cert-bars div {
  display: grid;
  grid-template-columns: 7.2em 1fr 2.1em;
  align-items: center;
  gap: 4px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.35), 8px);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cert-bars i {
  display: block;
  height: 6px;
  background: rgba(24, 20, 15, 0.18);
  border: 1px solid rgba(24, 20, 15, 0.6);
}

.cert-bars i b {
  display: block;
  height: 100%;
  background: var(--blood);
  transition: width 0.18s steps(4, end);
}

.cert-bars em { font-style: normal; text-align: right; }

.cert-foot {
  margin-top: 4px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.35), 8px);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(24, 20, 15, 0.5);
  padding-top: 3px;
}

/* ---------- stamps ---------- */

.stamp-col {
  position: absolute;
  z-index: 6;
  top: calc(var(--u) * 5.2);
  right: 1.6%;
  width: 15%;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1.6);
}

.stamp {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 60%;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.72));
  transition: transform 0.08s steps(2, end), filter 0.08s steps(2, end);
  -webkit-tap-highlight-color: transparent;
}

.stamp img {
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.stamp-word {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 66%;
  bottom: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(9px, calc(var(--u) * 3.05), 17px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.015em;
  color: #1b1610;
  text-align: center;
  text-shadow: 0.4px 0.5px 0 rgba(0, 0, 0, 0.24);
  -webkit-text-stroke: 0.35px rgba(240, 232, 213, 0.55);
  paint-order: stroke fill;
  pointer-events: none;
  overflow: hidden;
}

.stamp-retire .stamp-word { color: #6d1a13; }

.stamp-sell .stamp-word {
  position: absolute;
  isolation: isolate;
  color: #16120d;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.stamp-sell .stamp-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4% -8%;
  background:
    radial-gradient(rgba(40, 30, 20, 0.16) 0.6px, transparent 0.9px) 0 0 / 3px 3px,
    var(--paper-hi);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 8%, 4% 0, 32% 3%, 66% 0, 96% 3%, 100% 10%, 99% 91%, 96% 100%, 61% 97%, 30% 100%, 3% 96%, 0 89%);
  transform: rotate(-1.5deg);
}

.stamp.hot .stamp-sell .stamp-word, .stamp-sell.hot .stamp-word { color: #16120d; }
.stamp[data-action="restart"] .stamp-word { font-size: clamp(8px, calc(var(--u) * 2.4), 13px); }

.stamp:hover { transform: translateY(-2px) rotate(-0.6deg); }
.stamp:active { transform: translateY(1px) scale(0.985); filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.8)); }
.stamp:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.stamp.hot { animation: hotPulse 1.15s steps(2, end) infinite; }
.stamp.hot::after {
  content: "";
  position: absolute;
  inset: 61% -3% 2% -3%;
  border: 2px solid var(--orange);
  pointer-events: none;
}

@keyframes hotPulse {
  0%, 100% { filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.72)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 106, 18, 0.85)) drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.72)); }
}

.stamp.confirm .stamp-word { color: var(--paper-hi); background: var(--blood); }
.stamp.confirm { animation: shake 0.24s steps(2, end) 2; }

.stamp:disabled, .stamp.spent { cursor: default; opacity: 0.46; }
.stamp:disabled:hover, .stamp.spent:hover { transform: none; }

/* ---------- bench ---------- */

.bench {
  position: relative;
  z-index: 4;
  margin-top: calc(var(--u) * 2.6);
  padding: calc(var(--u) * 1.8) 0 calc(var(--u) * 1.2);
  background: #100e0c;
  border-top: 3px solid #251f19;
  box-shadow: 0 -10px 0 rgba(0, 0, 0, 0.35);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em 0.9em;
  padding: 0 3.2%;
  margin-bottom: calc(var(--u) * 1.6);
  border-bottom: 1px solid rgba(222, 211, 185, 0.18);
  padding-bottom: calc(var(--u) * 1.2);
}

.section-head h2 {
  margin: 0;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(20px, calc(var(--u) * 5.4), 34px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--paper-hi);
  text-shadow: 2px 3px 0 #000;
}

.section-head p {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.6), 9.5px);
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: rgba(239, 231, 212, 0.62);
}

.swipe {
  margin-left: auto;
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.6), 9.5px);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--orange);
  white-space: nowrap;
}

.fp-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 10px;
  border-bottom: 1px solid #45392b;
  padding-bottom: calc(var(--u) * 1.2);
  margin-bottom: calc(var(--u) * 1.3);
}

.fp-head h3 {
  margin: 0;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(17px, calc(var(--u) * 4.5), 28px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--orange);
  line-height: 0.9;
}

.fp-head span {
  font-family: "Space Mono", monospace;
  font-size: clamp(6.5px, calc(var(--u) * 1.45), 9px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(239, 231, 212, 0.55);
}

.fabric-panel.locked .garment-chip,
.fabric-panel.locked .colour-chip { opacity: 0.42; }

.fabric-panel {
  position: relative;
  z-index: 5;
  width: 94%;
  margin: 0 auto calc(var(--u) * 2.2);
  padding: calc(var(--u) * 1.7) 4% calc(var(--u) * 1.4);
  background:
    radial-gradient(rgba(239, 231, 212, 0.05) 0.6px, transparent 0.8px) 0 0 / 3px 3px,
    #14110e;
  border: 1px solid #45392b;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.88);
}

.fp-row {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--u) * 1.3);
  margin-bottom: calc(var(--u) * 1.3);
}

.fp-label {
  flex: 0 0 4.9em;
  padding-top: 7px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6.5px, calc(var(--u) * 1.4), 8.5px);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(239, 231, 212, 0.5);
}

.fp-note {
  align-self: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.25), 7.5px);
  letter-spacing: 0.03em;
  color: rgba(239, 231, 212, 0.42);
  line-height: 1.3;
}

.garment-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 2px;
}

.garment-picker::-webkit-scrollbar { display: none; }

.garment-chip {
  flex: 0 0 auto;
  width: 62px;
  padding: 3px 3px 2px;
  border: 1px solid #3e3327;
  background: #0c0a08;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.garment-chip img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.85)) saturate(0.92) contrast(1.04);
}

.garment-chip span {
  display: block;
  margin-top: 2px;
  font-family: "Space Mono", monospace;
  font-size: 6.4px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(239, 231, 212, 0.62);
  text-align: center;
  white-space: nowrap;
}

.garment-chip.on {
  border-color: var(--orange);
  background: rgba(255, 106, 18, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 18, 0.45);
}

.garment-chip.on span { color: var(--orange); }
.garment-chip:focus-visible, .colour-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.colour-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.colour-chip {
  width: 34px;
  padding: 3px 2px 2px;
  border: 1px solid #4a3d2e;
  background: #0d0b09;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}

.colour-chip i {
  display: block;
  width: 26px;
  height: 20px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.colour-mix { cursor: pointer; }
.colour-mix i { position: relative; overflow: hidden; }
.colour-mix input[type="color"] {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 40px;
  height: 34px;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.colour-chip span {
  font-family: "Space Mono", monospace;
  font-size: 5.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(239, 231, 212, 0.6);
  line-height: 1;
}

.colour-chip.on {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.colour-chip.on span { color: var(--orange); }

.apply-chips { flex-wrap: wrap; }

.word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.word-input {
  flex: 1 1 130px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #6b5a43;
  background: #0b0907;
  color: var(--paper-hi);
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  -webkit-user-select: text;
  user-select: text;
}

.word-input::placeholder { color: rgba(239, 231, 212, 0.35); }
.word-input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

.mini-tint {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: url("elements/garment_blank.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("elements/garment_blank.webp");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
  filter: grayscale(0.8) brightness(0.92);
}

.mini-design { z-index: 3; }

.tool-tray {
  display: flex;
  gap: calc(var(--u) * 1.4);
  padding: calc(var(--u) * 1.4) 3.2% calc(var(--u) * 1.8);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.tool-tray::-webkit-scrollbar { display: none; }

.tool {
  position: relative;
  flex: 0 0 auto;
  width: clamp(68px, calc(var(--u) * 16), 96px);
  padding: 0 0 calc(var(--u) * 1.2);
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  transform-origin: 50% 70%;
  transition: transform 0.08s steps(2, end);
  -webkit-tap-highlight-color: transparent;
}

.tool img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.06;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.82)) saturate(0.94) contrast(1.03);
}

.tool-label {
  display: block;
  margin-top: calc(var(--u) * 0.8);
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.55), 9.5px);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(239, 231, 212, 0.66);
  text-align: center;
}

.tool:hover img { filter: drop-shadow(5px 7px 0 rgba(0, 0, 0, 0.9)) saturate(1.02) contrast(1.06); }

.tool.on { transform: translateY(-7px) rotate(-2.2deg) scale(1.045); z-index: 2; }
.tool.on img { filter: drop-shadow(6px 9px 0 rgba(0, 0, 0, 0.95)) saturate(1.08) contrast(1.06); }
.tool.on::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 26%;
  right: 26%;
  bottom: calc(var(--u) * 3.3);
  height: calc(var(--u) * 1.7);
  background: var(--orange);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
  clip-path: polygon(4% 0, 96% 8%, 100% 88%, 92% 100%, 5% 94%, 0 12%);
}

.tool-shotgun .tool-paper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  background:
    radial-gradient(rgba(74, 54, 32, 0.14) 0.6px, transparent 0.9px) 0 0 / 4px 4px,
    #e3d8bf;
  clip-path: polygon(2% 4%, 9% 0, 26% 2%, 41% 0, 62% 2%, 78% 0, 92% 2%, 98% 0, 100% 10%, 98% 34%, 100% 56%, 98% 79%, 100% 94%, 95% 100%, 82% 98%, 66% 100%, 44% 98%, 27% 100%, 11% 98%, 2% 100%, 0 89%, 1% 62%, 0 39%, 1% 18%);
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.82)) saturate(0.96) contrast(1.02);
}

.tool-shotgun .tool-paper::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 32%;
  top: -2%;
  width: 34%;
  height: 12%;
  background: var(--orange);
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 12%, 7% 0, 94% 6%, 100% 0, 97% 82%, 100% 100%, 4% 94%, 0 100%);
}

.tool-shotgun .tool-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(0, 0, 0, 0.18) 0.7px, transparent 0.9px) 0 0 / 3px 3px,
    linear-gradient(90deg, transparent 58%, rgba(40, 30, 20, 0.18));
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tool-shotgun .tool-paper img {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 53%;
  width: 52%;
  height: 78%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  aspect-ratio: auto;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.45)) contrast(1.08);
}

.tool.on .tool-label { color: var(--orange); }
.tool:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.tool-readout {
  width: 92%;
  margin: calc(var(--u) * 0.4) auto 0;
  padding: calc(var(--u) * 1) calc(var(--u) * 1.6);
  background: rgba(222, 211, 185, 0.94);
  color: #14100c;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.9);
  font-family: "Space Mono", monospace;
  font-size: clamp(7.5px, calc(var(--u) * 1.75), 10.5px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  clip-path: polygon(0 8%, 2% 0, 98% 3%, 100% 10%, 99% 92%, 97% 100%, 2% 97%, 0 90%);
}

/* ---------- shotgun rig ---------- */

.rig {
  position: relative;
  z-index: 5;
  width: 94%;
  margin: calc(var(--u) * 2.4) auto 0;
  padding: calc(var(--u) * 1.8) 4% calc(var(--u) * 1.6);
  background:
    radial-gradient(rgba(239, 231, 212, 0.05) 0.6px, transparent 0.8px) 0 0 / 3px 3px,
    #14110e;
  border: 1px solid #45392b;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.88);
}

.rig::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 7%;
  width: 26%;
  height: 14px;
  background: var(--paper);
  transform: rotate(-2deg);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.8);
  clip-path: polygon(0 15%, 4% 0, 96% 6%, 100% 0, 98% 84%, 100% 100%, 5% 94%, 0 100%);
}

.rig-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  border-bottom: 1px solid #45392b;
  padding-bottom: calc(var(--u) * 1.2);
  margin-bottom: calc(var(--u) * 1.2);
}

.rig-head h3 {
  margin: 0;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(17px, calc(var(--u) * 4.5), 28px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--orange);
  line-height: 0.9;
}

.rig-head span {
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.55), 9.5px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.rig-row {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.4);
  margin-bottom: calc(var(--u) * 1.1);
}

.rig-label {
  flex: 0 0 5.2em;
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.5), 9px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(239, 231, 212, 0.5);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #5a4a38;
  background: #0d0b09;
  color: rgba(239, 231, 212, 0.82);
  font-family: "Space Mono", monospace;
  font-size: clamp(8px, calc(var(--u) * 1.85), 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.7);
  -webkit-tap-highlight-color: transparent;
}

.chip.on { background: var(--orange); color: #120c07; border-color: var(--orange); }
.chip[data-val="intense"].on { background: var(--blood); color: var(--paper-hi); border-color: var(--blood); }
.chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.rig-hint {
  margin: calc(var(--u) * 1.4) 0 0;
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.55), 9.5px);
  letter-spacing: 0.04em;
  color: rgba(239, 231, 212, 0.55);
  line-height: 1.4;
  border-top: 1px dashed #3a3026;
  padding-top: calc(var(--u) * 1.1);
}

/* ---------- boulevard wall ---------- */

.boulevard {
  position: relative;
  z-index: 4;
  margin-top: calc(var(--u) * 2.6);
  padding: calc(var(--u) * 1.8) 0 calc(var(--u) * 2.1);
  background:
    radial-gradient(130% 55% at 50% 0, rgba(255, 106, 18, 0.09), transparent 62%),
    linear-gradient(#0c0b09, #100e0b 42%, #0b0a09);
  border-top: 3px solid #2a231c;
}

.wall-head { align-items: baseline; }
.wall-head h2 { color: var(--paper-hi); }
.wall-head h2::after {
  content: "";
  display: block;
  width: 62%;
  height: 4px;
  margin-top: 3px;
  background: var(--orange);
}

.wall-live {
  margin-left: auto;
  padding: 3px 7px;
  background: #211a13;
  color: var(--orange-soft);
  border: 1px solid #5a4026;
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.6), 9.5px);
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 3px 3px 0 #000;
}

.wall-live.off {
  color: rgba(239, 231, 212, 0.42);
  border-color: #3a332a;
}

.wall-status {
  margin: 0 3.2% calc(var(--u) * 1.5);
  padding: calc(var(--u) * 1.2) calc(var(--u) * 1.4);
  border: 1px dashed #4b3d2d;
  background: #100e0b;
  font-family: "Space Mono", monospace;
  font-size: clamp(7.5px, calc(var(--u) * 1.7), 10px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: rgba(239, 231, 212, 0.68);
}

.wall-status p { margin: 0; }
.wall-status .chip { margin-top: 8px; }

.wall-hero { margin: 0 3.2% calc(var(--u) * 1.8); }

.wall-hero-tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 9px 4px;
  background: var(--orange);
  color: #140e08;
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(14px, calc(var(--u) * 3.3), 21px);
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-1.1deg);
}

.wall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 6px 5px;
  background: #cfc3a8;
  color: #18140f;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 2%, 3% 0, 97% 1%, 100% 4%, 99% 96%, 96% 100%, 4% 99%, 0 96%);
  transform: rotate(var(--tilt, -0.7deg));
  overflow: hidden;
}

.wall-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.wall-hero-card {
  flex-direction: row;
  align-items: stretch;
  padding: 7px;
  background: #e2d8c0;
  transform: rotate(-0.4deg);
}

.wall-hero-card .wall-art {
  flex: 0 0 47%;
  width: 47%;
}

.wall-hero-card .wall-info {
  flex: 1 1 auto;
  justify-content: center;
  padding-left: calc(var(--u) * 1.3);
}

.wall-art {
  position: relative;
  width: 100%;
  aspect-ratio: 949 / 881;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 106, 18, 0.2), transparent 68%),
    #191510;
}

.wall-garment {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  user-select: none;
  filter: saturate(0.94) contrast(1.08) brightness(0.92);
}

.wall-tint {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.wall-design {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.wall-badge {
  position: absolute;
  z-index: 5;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  background: var(--blood);
  color: var(--paper-hi);
  font-family: "Space Mono", monospace;
  font-size: clamp(5.5px, calc(var(--u) * 1.25), 8px);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}

.wall-badge.finished {
  background: #241e17;
  color: var(--orange-soft);
}

.wall-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 2px 2px;
  min-width: 0;
}

.wall-who {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
  border-top: 1px solid rgba(24, 20, 15, 0.5);
  padding-top: 4px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.3), 8px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wall-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-who span { opacity: 0.62; white-space: nowrap; }

.wall-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
  font-family: "Space Mono", monospace;
}

.wall-score b {
  font-family: "Big Shoulders Stencil", Impact, sans-serif;
  font-size: clamp(17px, calc(var(--u) * 3.9), 25px);
  font-weight: 800;
  color: #a12a1d;
  letter-spacing: 0.01em;
}

.wall-score span {
  font-size: clamp(6px, calc(var(--u) * 1.3), 8px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.66;
  white-space: nowrap;
}

.wall-score em {
  font-style: normal;
  font-size: clamp(6px, calc(var(--u) * 1.3), 8px);
  opacity: 0.66;
  margin-left: auto;
  white-space: nowrap;
}

.wall-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 3px;
}

.wall-rate-label {
  font-family: "Space Mono", monospace;
  font-size: clamp(5.5px, calc(var(--u) * 1.2), 7.5px);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.wall-star {
  width: clamp(19px, calc(var(--u) * 4.2), 26px);
  height: clamp(19px, calc(var(--u) * 4.2), 26px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6a563f;
  background: #efe7d4;
  color: #6a563f;
  font-size: clamp(9px, calc(var(--u) * 2.1), 13px);
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wall-star.on {
  background: var(--orange);
  color: #140e08;
  border-color: var(--orange);
}

.wall-star:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

.wall-spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  margin: calc(var(--u) * 0.8) 0 0;
  padding-top: calc(var(--u) * 0.8);
  border-top: 1px solid rgba(24, 20, 15, 0.28);
  font-family: "Space Mono", monospace;
  font-size: clamp(5.5px, calc(var(--u) * 1.25), 8px);
  letter-spacing: 0.04em;
}

.wall-spec dt {
  margin: 0;
  opacity: 0.5;
  font-weight: 700;
}

.wall-spec dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.wall-own {
  margin-top: auto;
  padding-top: 3px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.35), 8px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6f5d45;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--u) * 1.5) calc(var(--u) * 1.2);
  padding: 0 3.2%;
}

.wall-foot {
  margin: calc(var(--u) * 1.6) 3.2% 0;
  font-family: "Space Mono", monospace;
  font-size: clamp(6.5px, calc(var(--u) * 1.35), 8.5px);
  letter-spacing: 0.06em;
  color: rgba(239, 231, 212, 0.5);
  text-align: center;
}

/* ---------- dead wall ---------- */

.deadwall {
  position: relative;
  z-index: 4;
  margin-top: calc(var(--u) * 2.6);
  padding: calc(var(--u) * 1.6) 0 calc(var(--u) * 1.4);
  background: #0b0a09;
  border-top: 3px solid #2a231c;
}

.dead-head { align-items: baseline; }
.dead-head h2 { color: var(--paper-hi); }
.dead-head h2::after {
  content: "";
  display: block;
  width: 74%;
  height: 4px;
  margin-top: 3px;
  background: var(--blood);
}

.wallet {
  margin-left: auto;
  padding: 3px 7px;
  background: var(--paper);
  color: #15110d;
  font-family: "Space Mono", monospace;
  font-size: clamp(8px, calc(var(--u) * 1.8), 11px);
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 3px 3px 0 #000;
  transform: rotate(1deg);
}

.retired-row {
  display: flex;
  gap: calc(var(--u) * 1.8);
  padding: calc(var(--u) * 1.2) 3.2% calc(var(--u) * 2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  min-height: 130px;
}

.retired-row::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 calc(25% - 6px);
  min-width: 0;
  padding: 7px 7px 6px;
  background: #cfc3a8;
  color: #18140f;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 2%, 3% 0, 97% 1%, 100% 4%, 99% 96%, 96% 100%, 4% 99%, 0 96%);
  transform: rotate(var(--tilt, -0.8deg));
  scroll-snap-align: start;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.22) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.card.empty {
  background: #161310;
  border: 1px dashed #4b3d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
}

.card.empty span {
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.6), 9px);
  color: rgba(239, 231, 212, 0.4);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.6;
}

.card .mini-art {
  position: relative;
  width: 100%;
  aspect-ratio: 949 / 881;
  overflow: hidden;
}

.card .mini-garment {
  width: 100%;
  height: auto;
  user-select: none;
  filter: grayscale(0.9) brightness(0.74) contrast(1.22) sepia(0.08);
}

.card .mini-design {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("elements/garment_blank.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("elements/garment_blank.webp");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-mode: alpha;
  overflow: hidden;
  filter: grayscale(0.6) brightness(1.02) contrast(1.35) sepia(0.04);
}

.card .retired-stamp {
  position: absolute;
  z-index: 4;
  width: 82%;
  left: 9%;
  top: 20%;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  opacity: 0.94;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.28));
}

.card.landed .retired-stamp { animation: stampLand 0.26s steps(4, end); }

@keyframes stampLand {
  0% { transform: rotate(-17deg) scale(1.55); opacity: 0; }
  45% { transform: rotate(-8deg) scale(0.94); opacity: 1; }
  70% { transform: rotate(-10deg) scale(1.04); opacity: 1; }
  100% { transform: rotate(-9deg) scale(1); opacity: 0.94; }
}

.card.landed { animation: cardSlam 0.22s steps(2, end); }

@keyframes cardSlam {
  0% { transform: rotate(-2deg) translateY(-10px) scale(1.04); }
  60% { transform: rotate(-0.4deg) translateY(1px) scale(0.99); }
  100% { transform: rotate(var(--tilt, -0.8deg)) translateY(0) scale(1); }
}

.card-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
  border-top: 1px solid rgba(24, 20, 15, 0.55);
  padding-top: 3px;
  font-family: "Space Mono", monospace;
  font-size: clamp(6px, calc(var(--u) * 1.35), 8.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-meta .date { font-size: 1.05em; }
.card-meta .no { opacity: 0.68; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.8em;
  padding: calc(var(--u) * 2.4) 4% calc(var(--u) * 2.6 + 76px);
  font-family: "Space Mono", monospace;
  font-size: clamp(7px, calc(var(--u) * 1.5), 9px);
  letter-spacing: 0.14em;
  color: rgba(239, 231, 212, 0.36);
  background: #0b0a09;
}

.footer .dot { color: var(--orange); }

/* ---------- grain / toast ---------- */

.grain {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  background-image: url("elements/grain_overlay.webp");
  background-size: 520px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  animation: grainCrawl 9s steps(6, end) infinite;
}

@keyframes grainCrawl {
  0% { background-position: 0% 0%; }
  16% { background-position: 7% 12%; }
  34% { background-position: -6% 4%; }
  52% { background-position: 11% -8%; }
  71% { background-position: -9% -11%; }
  86% { background-position: 3% 9%; }
  100% { background-position: 0% 0%; }
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(68px + 16px);
  transform: translateX(-50%) rotate(-0.6deg);
  width: max-content;
  max-width: 86vw;
  padding: 8px 12px;
  background: var(--paper-hi);
  color: #16120e;
  font-family: "Space Mono", monospace;
  font-size: clamp(8px, 2.2vw, 11px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 7%, 2% 0, 98% 3%, 100% 9%, 99% 93%, 97% 100%, 2% 97%, 0 91%);
  animation: toastIn 0.16s steps(2, end);
}

@keyframes toastIn {
  0% { transform: translateX(-50%) rotate(-3deg) translateY(14px) scale(0.98); opacity: 0; }
  100% { transform: translateX(-50%) rotate(-0.6deg) translateY(0) scale(1); opacity: 1; }
}

[hidden] { display: none !important; }

/* ---------- responsive tweaks ---------- */

@media (max-width: 360px) {
  .tagline { white-space: normal; }
  .stamp-col { width: 16%; }
  .stage { left: 17%; width: 65%; }
  .maker { width: 32%; }
}

@media (min-width: 720px) {
  .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poster { box-shadow: 0 0 0 1px #000, 0 60px 120px rgba(0, 0, 0, 0.98); }
  body { padding: 18px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .neon img, .grain, .stamp.hot { animation: none; }
  .cert-bars i b { transition: none; }
}
