:root {
  --lime: #ccff00;
  --black: #000;
  --white: #fff;
  --paper: #fff;
  --muted: rgba(0, 0, 0, .62);
  --font: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  --border: 4px;
  --border-lg: 5px;
  --r: 18px;
  --r-lg: 24px;
  --shadow: 6px 6px 0 var(--black);
  --shadow-up: 8px 8px 0 var(--black);
  --shadow-down: 3px 3px 0 var(--black);
  --text-h1: clamp(26px, 6vw, 46px);
  --text-h2: clamp(20px, 4.4vw, 28px);
  --text-ui: clamp(17px, 2.6vw, 20px);
  --text-sm: 14px;
  --gap: 12px;
  --dur: 120ms;
  --ease: cubic-bezier(.2, .9, .3, 1.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--lime); color: var(--black); }
body { font-family: var(--font); font-weight: 800; text-align: center; -webkit-font-smoothing: antialiased; }

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

.hero { width: 100%; overflow: hidden; background: var(--lime); }
.home { display: block; }
.banner { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; background: var(--lime); }

main { width: min(92%, 640px); margin: 20px auto 56px; }
.home-main { width: min(94%, 1040px); margin: 10px auto 48px; }

h1 { font-size: var(--text-h1); line-height: 1.05; margin: 0 0 6px; letter-spacing: .01em; }
.sub { margin: 0 0 22px; font-size: var(--text-ui); }

.search { display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap; }

input, .btn, .nav, .chip-btn {
  font: inherit; font-weight: 800; color: var(--black); background: var(--white);
  border: var(--border) solid var(--black); border-radius: var(--r);
  box-shadow: var(--shadow);
}
input, .btn { padding: 13px 20px; font-size: var(--text-ui); line-height: 1.1; }
input { width: 190px; text-align: center; outline: none; appearance: textfield; -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input::placeholder { color: rgba(0, 0, 0, .35); }
input:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--shadow-up); }

.btn { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur); }
.btn.primary { background: var(--black); color: var(--lime); }
.btn.primary:hover { background: #111; }
.btn:hover, .nav:hover, .chip-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-up); }
.btn:active, .nav:active, .chip-btn:active { transform: translate(3px, 3px); box-shadow: var(--shadow-down); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
:is(.btn, .nav, .chip-btn, input, .home):focus-visible { outline: 4px solid var(--white); outline-offset: 3px; }

.status { min-height: 26px; margin: 16px 0 0; font-size: var(--text-ui); }
.status.err { color: var(--black); }

/* viewer card */
.viewer { margin: 26px auto 0; padding: 14px; background: var(--paper); border: var(--border-lg) solid var(--black); border-radius: var(--r-lg); box-shadow: var(--shadow-up); }
.viewer[hidden] { display: none; }
.viewer-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; margin-bottom: 12px; }
.label { margin: 0; font-size: var(--text-h2); line-height: 1.1; text-transform: uppercase; }
.nav { width: 48px; height: 48px; padding: 0 0 4px; font-size: 32px; line-height: 1; border-radius: 14px; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }

.art { margin: 0; display: flex; justify-content: center; }
.frame { display: block; background: var(--lime); border: var(--border) solid var(--black); border-radius: 14px; overflow: hidden; line-height: 0; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; width: 100%; height: auto; aspect-ratio: 1; }

.motion { margin: 12px 0 0; }
.chip-btn { min-height: 44px; padding: 6px 16px; font-size: var(--text-sm); border-radius: 999px; border-width: 3px; box-shadow: 4px 4px 0 var(--black); cursor: pointer; text-transform: uppercase;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.chip-btn:hover { box-shadow: 6px 6px 0 var(--black); }
.chip-btn:active { box-shadow: 2px 2px 0 var(--black); }
.chip-btn[aria-pressed="false"] { background: var(--lime); }

.traits { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.traits li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; background: var(--lime); border: 3px solid var(--black); border-radius: 999px; font-size: var(--text-sm); text-transform: uppercase; line-height: 1.2; }
.traits .k { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.traits .sw { width: 16px; height: 16px; border: 2px solid var(--black); border-radius: 50%; display: inline-block; }

.actions { display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap; margin: 18px 0 4px; }

.links { display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap; margin-top: 34px; }

footer { padding: 0 0 40px; font-size: var(--text-sm); letter-spacing: .12em; }

@media (max-width: 480px) {
  main { width: min(94%, 640px); margin-top: 14px; }
  .search { gap: 10px; }
  .search input { width: 100%; }
  .search .btn { flex: 1 1 40%; }
  .viewer { padding: 10px; }
  .viewer-head { grid-template-columns: 44px 1fr 44px; }
  .nav { width: 44px; height: 44px; font-size: 28px; }
  .actions .btn { flex: 1 1 100%; }
  .links .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav, .chip-btn, input { transition: none; }
  .btn:hover, .nav:hover, .chip-btn:hover, input:focus-visible { transform: none; box-shadow: var(--shadow); }
  .btn:active, .nav:active, .chip-btn:active { transform: none; }
}

/* ---- shared bar: JIGGLETEK home on the left, the two collections on the right, the current one filled lime */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px max(16px, 3vw); }
.bar-home, .bar-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--black); text-decoration: none; background: var(--white); border: 3px solid var(--black); border-radius: 999px; box-shadow: 4px 4px 0 var(--black);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur); }
.bar-home { background: var(--black); color: var(--lime); }
.bar-links { display: flex; gap: 8px; }
.bar-link[aria-current="page"], .bar-home[aria-current="page"] { background: var(--lime); color: var(--black); }
.bar-home:hover, .bar-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.bar-home:active, .bar-link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }
:is(.bar-home, .bar-link):focus-visible { outline: 4px solid var(--white); outline-offset: 3px; }
.bar-locked { cursor: not-allowed; color: var(--black); user-select: none; }
.bar-locked:hover { transform: none; box-shadow: 4px 4px 0 var(--black); }
.bar { flex-wrap: wrap; }
.bar-links { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
@media (max-width: 480px) { .bar { padding: 10px 10px; gap: 6px; } .bar-links { gap: 6px; } .bar-home, .bar-link { min-height: 44px; padding: 0 11px; font-size: 11px; letter-spacing: .04em; border-width: 3px; box-shadow: 3px 3px 0 var(--black); } }

/* ---- home: the studio mark, then one card per collection */
.home-page .hero { display: none; }
.home-mark { display: block; width: min(92%, 560px); margin: 14px auto 26px; }
.home-mark img { display: block; width: 100%; height: auto; }
.cards { display: grid; gap: 22px; }
.card { display: grid; gap: 14px; justify-items: center; padding: 16px 16px 20px; background: var(--paper); color: var(--black); text-decoration: none;
  border: var(--border-lg) solid var(--black); border-radius: var(--r-lg); box-shadow: var(--shadow-up);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--black); }
.card:active { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--black); }
.card:focus-visible { outline: 4px solid var(--white); outline-offset: 4px; }
.card picture { display: block; width: 100%; }
.card-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; background: var(--lime); border: var(--border) solid var(--black); border-radius: 14px; }
.card-line { margin: 0; font-size: var(--text-sm); letter-spacing: .08em; }
.card .btn { pointer-events: none; }
/* until the mint is deployed the Assettes card is not a link (a dead link is worse than a waiting one) */
.card-soon { cursor: not-allowed; }
.card-soon:hover { transform: none; box-shadow: var(--shadow-up); }
.card-soon:active { transform: none; box-shadow: var(--shadow-up); }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); border: 3px solid var(--black); border-radius: 999px; font-variant-numeric: tabular-nums; }
.chip[hidden] { display: none; }
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .home-mark { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .bar-home, .bar-link, .card { transition: none; } .card:hover, .bar-home:hover, .bar-link:hover { transform: none; } }

/* ---- THE DISTRICT (2026-10-24): the one dark panel on the lime page. Its own neon pink, borrowed from the District's
   street, so it reads as a door to somewhere else; the bubble letters and black borders stay JIGGLETEK. */
.bar-district { background: var(--black); color: #ff5c8a; border-color: #000; text-shadow: 0 0 8px rgba(255, 45, 111, .7); }
.bar-district:hover { background: #1a0510; color: #ffd1df; }
.card-district { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art title" "art line" "art btn"; justify-items: start; align-items: center; column-gap: 22px; text-align: left;
  background: #0b0105; color: #ffe9f0; border-color: var(--black); box-shadow: var(--shadow-up), 0 0 0 3px #ff2d6f inset; }
.card-district:hover { box-shadow: 11px 11px 0 var(--black), 0 0 0 3px #ff5c8a inset, 0 0 28px rgba(255, 45, 111, .35); }
.card-district .bodies { grid-area: art; display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; align-self: center; }
.card-district .body { display: grid; grid-template-rows: 1fr 1fr; width: 96px; height: 192px; background: var(--lime); border: 3px solid var(--black); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px #ff2d6f, 0 0 14px rgba(255, 45, 111, .45); }
.card-district .body img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.card-district .body:nth-child(3) { display: none; }
.card-district .card-title { grid-area: title; margin: 0; align-self: end; font-size: var(--text-h2); letter-spacing: .1em; color: #ff5c8a; text-shadow: 0 0 2px #fff, 0 0 10px #ff2d6f, 0 0 26px #ff2d6f; }
.card-district .card-line { grid-area: line; color: #ffe9f0; line-height: 1.4; }
.card-district .btn.primary { grid-area: btn; align-self: start; background: var(--lime); color: var(--black); border-color: var(--black); box-shadow: 5px 5px 0 #ff2d6f; }
@media (min-width: 760px) { .card-district .body:nth-child(3) { display: grid; } .card-district { column-gap: 30px; padding: 22px 26px 24px; } }
@media (max-width: 420px) { .card-district { grid-template-columns: 1fr; grid-template-areas: "art" "title" "line" "btn"; justify-items: center; text-align: center; } .card-district .bodies { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .card-district:hover { box-shadow: var(--shadow-up), 0 0 0 3px #ff2d6f inset; } }

/* ---- 404 */
.nf-main { width: min(100%, 560px); margin: 0 auto; padding: 40px 0 56px; display: grid; gap: 22px; justify-items: center; }
.nf-main h1 { margin: 0; font-size: clamp(34px, 9vw, 64px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.nf-main p { margin: 0; font-size: var(--text-ui); letter-spacing: .04em; text-transform: uppercase; }
.nf-links { display: grid; gap: 12px; width: 100%; }
.nf-links .btn { min-height: 56px; }
.nf-links .btn.district { background: #0b0105; color: #ff5c8a; text-shadow: 0 0 8px rgba(255, 45, 111, .7); }
@media (min-width: 560px) { .nf-links { grid-template-columns: 1fr 1fr; } }
