/* ---------- Tokens ---------- */
:root {
  --pink: #ff2a8e;
  --cyan: #18e8ff;
  --orange: #ff6b3d;
  --bg: #0a0014;
  --fg: #f0e9ff;
  --fg-dim: #b9b0d9;

  --glow-pink: 0 0 6px rgba(255, 42, 142, 0.85), 0 0 18px rgba(255, 42, 142, 0.55), 0 0 36px rgba(255, 42, 142, 0.3);
  --glow-cyan: 0 0 6px rgba(24, 232, 255, 0.85), 0 0 18px rgba(24, 232, 255, 0.55), 0 0 36px rgba(24, 232, 255, 0.3);
  --glow-orange: 0 0 6px rgba(255, 107, 61, 0.85), 0 0 18px rgba(255, 107, 61, 0.55), 0 0 36px rgba(255, 107, 61, 0.3);

  --ff-display: "Monoton", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
  --ff-body: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
  .page { padding: 80px 24px 96px; }
}

/* ---------- Scanlines ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-bottom: 64px;
  margin-bottom: 32px;
}

.title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink) 45%, var(--cyan) 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 42, 142, 0.55)) drop-shadow(0 0 28px rgba(24, 232, 255, 0.4));
}

.tagline {
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin: 20px 0 0;
}

.drop-status { color: var(--orange); text-shadow: var(--glow-orange); }
.drop-status.closed { color: var(--cyan); text-shadow: var(--glow-cyan); }

.grid-horizon {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200vw;
  height: 120px;
  transform: translateX(-50%) perspective(240px) rotateX(58deg);
  transform-origin: bottom center;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  pointer-events: none;
}

.grid-horizon::before {
  content: "";
  position: absolute;
  inset: -20px 0 0;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(5% - 1px), rgba(24,232,255,0.55) calc(5% - 1px) 5%),
    repeating-linear-gradient(to bottom, transparent 0 calc(20px - 1px), rgba(24,232,255,0.55) calc(20px - 1px) 20px);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .grid-horizon::before { animation: gridScroll 3.2s linear infinite; }
  @keyframes gridScroll {
    from { transform: translateY(0); }
    to   { transform: translateY(20px); }
  }
}

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .products { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.loading { text-align: center; color: var(--fg-dim); font-family: var(--ff-mono); }

.product {
  border: 1px solid rgba(255, 42, 142, 0.5);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.product-name {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  margin: 0;
}

.product-price { font-family: var(--ff-mono); color: var(--cyan); }

.product-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.product-form select, .product-form input[type="number"] {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  border: 1px solid rgba(24, 232, 255, 0.5);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
}

.product-form input[type="number"] { width: 80px; }

.product-form button {
  flex: 1 1 120px;
  appearance: none;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: 0 0 8px currentColor;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.product-form button:hover,
.product-form button:focus-visible {
  background: rgba(255, 107, 61, 0.08);
  box-shadow: 0 0 14px currentColor;
  outline: none;
  transform: translateY(-1px);
}

.product-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-status {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: #ff6b3d;
  min-height: 1.2em;
}

/* ---------- Drop closed ---------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed rgba(24, 232, 255, 0.4);
  border-radius: 10px;
  font-family: var(--ff-mono);
  color: var(--fg-dim);
}

.empty a { color: var(--cyan); text-decoration: underline; }

/* ---------- Thanks page ---------- */
.thanks-page { text-align: center; }
.thanks-detail { margin-top: 16px; font-family: var(--ff-mono); }
.thanks-meta code { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
  padding-top: 56px;
}
.site-footer a { color: var(--cyan); }
