:root {
  --bg: #242120;
  --surface: #2b2726;
  --surface-2: #312d2c;
  --ink: #f4f0e8;
  --muted: #b6b0a4;
  --acid: #dfff67;
  --line: rgba(244, 240, 232, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  background:
    linear-gradient(rgba(223, 255, 103, 0.06), rgba(223, 255, 103, 0.06)),
    radial-gradient(circle at 20% 15%, rgba(223, 255, 103, 0.08), transparent 20%),
    linear-gradient(90deg, rgba(223, 255, 103, 0.05) 0, rgba(223, 255, 103, 0.05) 4%, transparent 4%, transparent 23%, rgba(223, 255, 103, 0.05) 23%, rgba(223, 255, 103, 0.05) 27%, transparent 27%, transparent 100%),
    #4a4a43;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1820px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  background: rgba(36, 33, 32, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.site-header,
.editorial-layout,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.site-logo,
.header-nav a,
.section-label,
.eyebrow,
.counter,
.form-note,
.hero-meta-top span,
.hero-poster span,
.footer-links a,
.footer-brand p {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.site-logo {
  color: var(--acid);
  font-size: 28px;
  font-weight: 900;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.header-nav a {
  font-size: 13px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.main-column,
.side-column {
  display: grid;
  gap: 18px;
}

.hero-frame,
.manifesto-card,
.hero-status,
.story-panel,
.notes-board,
.bottle-card,
.copy-card,
.access-block,
.side-panel,
.final-screen,
.thank-you-screen,
.admin-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(52, 48, 47, 0.92), rgba(33, 31, 31, 0.96));
  box-shadow: var(--shadow);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.64)),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(135deg, #23201f, #46403d);
}

.hero-frame::before {
  content: "PANKI";
  position: absolute;
  inset: 10px auto auto -24px;
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.hero-meta-top,
.hero-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-intro {
  align-items: flex-start;
}

.hero-intro-copy {
  width: min(360px, 100%);
}

.hero-intro-copy p:last-child,
.story-copy p:last-child,
.access-intro h2,
.availability-panel p,
.next-drop p,
.footer-brand p,
.copy-card p,
.manifesto-card p:last-child {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.35;
}

.hero-poster,
.mini-poster,
.product-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 20%, rgba(223, 255, 103, 0.18), transparent 22%),
    linear-gradient(135deg, #85705f, #3b302c 45%, #161414 100%);
}

.hero-poster {
  width: 240px;
  height: 290px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 20%, rgba(223, 255, 103, 0.18), transparent 22%),
    linear-gradient(135deg, #85705f, #3b302c 45%, #161414 100%);
}

.hero-poster::after,
.mini-poster::after,
.product-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.poster-badge {
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
}

.poster-caption {
  align-self: flex-end;
  font-size: 12px;
}

.hero-copy h1,
.story-copy h2,
.notes-header h2,
.copy-card h2,
.final-screen h2,
.next-drop h2,
.thank-you-screen h1,
.availability-panel h2,
.presale-card h2,
.presale-bottom h2 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.88;
}

.hero-copy h1 {
  font-size: clamp(96px, 13vw, 240px);
}

.hero-brand {
  display: block;
  color: rgba(255, 255, 255, 0.12);
}

.hero-drop {
  display: block;
  color: var(--acid);
}

.limit {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.8vw, 58px);
  color: var(--ink);
}

.hero-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.manifesto-card,
.hero-status,
.story-panel,
.notes-board,
.copy-card,
.bottle-card,
.access-block,
.side-panel,
.final-screen,
.thank-you-screen {
  padding: 22px;
}

.manifesto-card h2,
.story-copy h2,
.notes-header h2,
.copy-card h2,
.availability-panel h2,
.next-drop h2,
.presale-bottom h2 {
  font-size: clamp(40px, 5vw, 94px);
}

.timer-wrap p,
.section-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.timer div,
.note-card,
.access-card,
.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.timer div {
  padding: 12px 10px;
}

.timer strong {
  display: block;
  font-size: clamp(28px, 3vw, 48px);
}

.timer span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.counter strong,
.availability-panel h2 span,
.story-accent span,
.final-screen p,
.footer-brand span {
  color: var(--acid);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(223, 255, 103, 0.38);
  background: var(--acid);
  color: #171515;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  cursor: pointer;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button:disabled,
.button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 220px;
  gap: 16px;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(20, 18, 18, 0.62), rgba(20, 18, 18, 0.82)),
    url("../images/chapter-bg.jpg") center / cover no-repeat,
    linear-gradient(180deg, rgba(52, 48, 47, 0.92), rgba(33, 31, 31, 0.96));
}

.story-accent {
  display: grid;
  align-items: end;
  min-height: 100%;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.story-accent span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 84px;
}

.notes-board {
  background:
    linear-gradient(180deg, rgba(35, 33, 32, 0.96), rgba(26, 24, 24, 0.98)),
    linear-gradient(90deg, rgba(223, 255, 103, 0.06), transparent);
}

.notes-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

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

.note-card,
.access-card,
.product-card {
  padding: 16px;
}

.note-card h3,
.access-card h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  text-transform: uppercase;
}

.note-card p:last-child,
.access-card p,
.product-card p,
.presale-card label span,
input,
textarea,
select,
td,
th {
  font-family: "Arial Narrow", Arial, sans-serif;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.bottle-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(223, 255, 103, 0.16), transparent 30%),
    linear-gradient(180deg, #3f3836, #131111);
}

.bottle-visual span {
  align-self: end;
  margin-bottom: 18px;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.bottle-image {
  width: min(260px, 76%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.48));
}

.access-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.access-grid,
.product-grid {
  display: grid;
  gap: 12px;
}

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

.side-column {
  align-content: start;
}

.availability-panel {
  text-align: center;
}

.availability-panel h2,
.next-drop h2 {
  font-size: clamp(54px, 6vw, 92px);
}

.presale-card {
  display: grid;
  gap: 12px;
}

.presale-card label {
  display: grid;
  gap: 6px;
}

.presale-card label span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 14px 15px;
}

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

.product-card {
  display: grid;
  gap: 10px;
}

.product-thumb {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.34)),
    linear-gradient(135deg, #85705f, #3b302c 45%, #161414 100%);
}

.mini-poster {
  min-height: 240px;
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38)),
    linear-gradient(135deg, #85705f, #3b302c 45%, #161414 100%);
}

.presale-bottom {
  display: grid;
  gap: 16px;
}

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

.form-grid textarea,
.form-grid button {
  grid-column: 1 / -1;
}

.final-screen {
  text-align: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.final-screen h2 {
  font-size: clamp(70px, 10vw, 180px);
}

.final-screen p {
  margin: 12px 0 0;
  font-size: 26px;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 4px 6px;
  align-items: end;
}

.footer-brand span {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  text-transform: uppercase;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.form-message,
.closed-text {
  min-height: 18px;
  color: #ff8f8f;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
}

.thank-you-body {
  display: grid;
  place-items: center;
}

.thank-you-screen {
  width: min(760px, calc(100% - 40px));
  margin: 56px 20px;
  text-align: center;
}

.thank-you-screen h1 {
  font-size: clamp(58px, 9vw, 130px);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #1d1a1a;
}

.admin-content {
  padding: 24px;
  background: #272323;
}

.admin-card {
  margin-bottom: 24px;
}

.admin-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .editorial-layout,
  .hero-lower-grid,
  .story-panel,
  .editorial-split,
  .access-block,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .story-accent {
    min-height: 120px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }

  .story-accent span {
    writing-mode: initial;
    transform: none;
    font-size: 56px;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100%, calc(100% - 16px));
    margin: 8px auto;
    padding: 12px;
  }

  .editorial-layout,
  .notes-grid,
  .access-grid,
  .product-grid,
  .form-grid,
  .admin-shell,
  .admin-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: auto;
  }

  .hero-intro,
  .notes-header,
  .site-header,
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-poster {
    width: 100%;
    max-width: 320px;
  }

  .hero-copy h1 {
    font-size: clamp(72px, 18vw, 140px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

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

  .header-nav {
    gap: 8px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 22px;
  }

  .hero-frame,
  .manifesto-card,
  .hero-status,
  .story-panel,
  .notes-board,
  .bottle-card,
  .copy-card,
  .access-block,
  .side-panel,
  .final-screen,
  .thank-you-screen {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 19vw, 96px);
  }

  .limit,
  .availability-panel h2,
  .next-drop h2,
  .manifesto-card h2,
  .story-copy h2,
  .notes-header h2,
  .copy-card h2,
  .presale-bottom h2 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }
}
