:root {
  --bg: #101428;
  --panel: #171d38;
  --ink-panel: #0c1020;
  --gold: #f0c14b;
  --text: #f4f6ff;
  --muted: #b7c0dc;
  --line: rgba(180, 204, 255, 0.16);
  --silver: #f3e6b8;
  color-scheme: dark;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 72%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.4px),
    radial-gradient(circle at 28% 84%, rgba(240, 193, 75, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(ellipse at 50% -10%, #2a3c72 0%, transparent 46%),
    linear-gradient(180deg, #0e1630 0%, #101428 40%, #0b1022 100%);
  background-size: 220px 180px, 280px 210px, 190px 240px, 260px 200px, auto, auto;
  background-attachment: fixed;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sign {
  position: relative;
  height: 108px;
  margin: 36px 40px 0;
  background: #070b16;
  border: 1px solid rgba(240, 193, 75, 0.28);
  box-shadow: 0 0 32px rgba(42, 60, 114, 0.45);
  overflow: hidden;
}

.led-board {
  display: block;
  width: 100%;
  height: 100%;
}

.discord {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #5865f2;
  color: white;
  text-decoration: none;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.discord svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: transform 0.35s ease;
}

.discord::before,
.discord::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.0);
  pointer-events: none;
}

.discord:hover {
  background: #4752c4;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.85);
}

.discord:hover svg { transform: rotate(-8deg) scale(1.05); }

.discord:hover::before { animation: ring 0.9s ease-out infinite; }
.discord:hover::after { animation: ring 0.9s ease-out 0.28s infinite; }

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px #c7d0ff;
  pointer-events: none;
  animation: spark 0.7s ease-out forwards;
}

label input,
label textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink-panel);
  color: var(--text);
  font: inherit;
}

label input::placeholder,
label textarea::placeholder { color: #949ba4; }

label textarea { border-radius: 8px; resize: vertical; }

.hero {
  margin: 28px 40px 0;
}

.hero img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  background: #111;
  border: 1px solid var(--line);
}

.notice {
  margin: 20px 40px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid rgba(240, 193, 75, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 36px 40px 56px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #111214;
}

.card h2 {
  margin: 4px 0 0;
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card p { margin: 0; color: var(--muted); }

.intro {
  padding: 28px 40px 0;
}

.intro h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.02em;
}

.intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 40px 0;
}

.jumps a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.drop h2 {
  margin: 28px 40px 0;
  font-family: Cinzel, serif;
  font-size: 1.45rem;
}

.stage {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #111214;
}

.card .stage { color: inherit; text-decoration: none; }

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage img.print {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.meta h3 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1.05rem;
}

.meta .price { font-size: 1rem; }

.choices { display: grid; gap: 8px; }

.choice-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.swatches,
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.swatch[aria-pressed="true"] { border-color: var(--gold); }

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pill[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1404;
}

.pill:disabled { opacity: 0.35; cursor: not-allowed; }

.gallery .stage { aspect-ratio: 1; }

.made { color: var(--muted); }

.price {
  color: var(--silver);
  font-size: 1.45rem;
  font-weight: 700;
}

.size {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #111214;
  color: inherit;
  font: inherit;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.product {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(260px, 1fr);
  gap: 32px;
  padding: 36px 40px 56px;
}

.gallery img,
.thumbs img {
  width: 100%;
  border-radius: 8px;
  background: #111214;
}

.gallery > img {
  aspect-ratio: 1;
  object-fit: cover;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.thumbs button {
  width: 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 2rem;
}

.product button,
.admin button {
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--gold);
  color: #1a1404;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product button:disabled {
  cursor: not-allowed;
  background: #2a3358;
  color: var(--muted);
}

.admin {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 40px;
}

.admin h1 {
  font-family: Cinzel, serif;
}

.admin form,
.admin section {
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.admin label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.admin input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #111214;
  color: inherit;
  font: inherit;
}

#payments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

#payments li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.card button {
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--gold);
  color: #1a1404;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.card button:disabled {
  cursor: not-allowed;
  background: #2a3358;
  color: var(--muted);
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  background: var(--panel);
  border-radius: 12px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 40px 48px;
  color: var(--muted);
}

footer a { color: var(--gold); font-weight: 700; text-decoration: none; }

@keyframes ring {
  from { inset: 0; border-color: rgba(255, 255, 255, 0.9); opacity: 1; }
  to { inset: -22px; border-color: rgba(88, 101, 242, 0); opacity: 0; }
}

@keyframes spark {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .discord, .discord svg, .discord::before, .discord::after, .spark {
    animation: none;
    transition: none;
  }
}

@media (max-width: 800px) {
  .sign { height: 92px; margin: 16px 16px 0; }
  .discord { width: 46px; height: 46px; right: 10px; }
  .discord svg { width: 24px; height: 24px; }
  .hero { margin: 16px 16px 0; }
  .grid, .product, .admin, .intro { padding: 24px 16px 40px; }
  .intro { padding-bottom: 0; }
  .jumps, .drop h2 { padding-left: 16px; padding-right: 16px; }
  .drop h2 { margin-left: 16px; margin-right: 16px; }
  .product { grid-template-columns: 1fr; }
  .notice { margin: 16px 16px 0; }
  footer { padding: 8px 16px 32px; flex-wrap: wrap; }
}
