:root {
  --bg: #000;
  --panel: #0b0b0b;
  --panel-2: #111;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f3;
  --muted: rgba(245, 245, 243, 0.54);
  --muted-2: rgba(245, 245, 243, 0.34);
  --green: #26d07c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input,
select {
  font: inherit;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.age-gate.is-hidden {
  display: none;
}

.age-gate-panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #050505;
  text-align: center;
}

.age-gate-copy {
  margin: 16px auto 0;
  max-width: 48ch;
  color: rgba(245, 245, 243, 0.66);
  line-height: 1.65;
}

.age-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.age-gate-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.age-gate-enter {
  background: #fff;
  color: #000;
}

.age-gate-leave {
  background: transparent;
  color: var(--text);
}

.pack-page {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.mono-label,
.field-label,
.stat-chip,
.meta-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mono-label {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
}

.pack-hero {
  padding: 22px 0 30px;
}

.pack-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.site-logo {
  width: 60px;
  height: auto;
  max-width: 40vw;
  object-fit: contain;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--text);
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.pack-copy {
  padding: 64px 0 12px;
}

.pack-copy h1,
.lightbox-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.pack-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  max-width: 9ch;
}

.pack-summary {
  margin: 22px 0 0;
  max-width: 58ch;
  color: rgba(245, 245, 243, 0.72);
  line-height: 1.65;
  font-size: 1.05rem;
}

.pack-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pack-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 12px;
  margin: 18px 0 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 10px;
  color: var(--muted-2);
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.field-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pack-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: zoom-in;
}

.pack-card-media {
  aspect-ratio: 4 / 5;
  background: #060606;
}

.pack-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.pack-card-media img.is-loaded {
  opacity: 1;
}

.pack-card-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.72);
  color: #fff;
  cursor: pointer;
}

.pack-card-copy.is-copied,
.copy-button.is-copied {
  color: var(--green);
}

.pack-card-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.pack-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pack-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.pack-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 243, 0.72);
  font-size: 10px;
}

.scroll-sentinel {
  height: 1px;
}

.lightbox {
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #050505;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.82);
  color: #fff;
  cursor: pointer;
}

.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  min-height: min(760px, calc(100vh - 32px));
}

.lightbox-media {
  background: #020202;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox-media img {
  max-height: calc(100vh - 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-details {
  padding: 32px 28px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.lightbox-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 16px;
}

.lightbox-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 245, 243, 0.72);
  font-size: 10px;
}

.prompt-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.prompt-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.prompt-block-header h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(245, 245, 243, 0.82);
  cursor: pointer;
}

.prompt-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(245, 245, 243, 0.76);
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox-layout {
    grid-template-columns: 1fr;
  }

  .lightbox-details {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 760px) {
  .pack-page {
    width: min(100vw - 24px, 1440px);
    padding-top: 18px;
  }

  .pack-toolbar {
    grid-template-columns: 1fr;
  }

  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-copy {
    padding-top: 42px;
  }

  .site-logo {
    width: 54px;
  }
}
