:root {
  color-scheme: dark;
  --bg: #08070b;
  --panel: #16141b;
  --panel-soft: #211e29;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f1ff;
  --muted: #b9afc8;
  --purple: #b600ff;
  --purple-hot: #ed00ff;
  --shadow: rgba(0, 0, 0, 0.55);
  --cursor-default: url("assets/cursor-purple.svg") 6 3, auto;
  --cursor-pointer: url("assets/cursor-hand-purple.svg") 12 4, pointer;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(182, 0, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #050407 0%, #121016 48%, #060508 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  cursor: var(--cursor-default);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(237, 0, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 0, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.2) 78%, transparent);
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  cursor: var(--cursor-pointer);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(5, 4, 7, 0.82), rgba(5, 4, 7, 0.92)),
    linear-gradient(rgba(237, 0, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 0, 255, 0.16) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  backdrop-filter: blur(18px);
}

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

.age-panel {
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid rgba(237, 0, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(33, 30, 41, 0.98), rgba(10, 9, 14, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.7), 0 0 36px rgba(182, 0, 255, 0.18);
}

.age-kicker {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.age-panel h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(237, 0, 255, 0.38);
}

.age-panel p:not(.age-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.age-accept,
.age-decline {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  cursor: var(--cursor-pointer);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.age-accept {
  background: linear-gradient(135deg, var(--purple), var(--purple-hot));
  box-shadow: 0 0 24px rgba(237, 0, 255, 0.24);
}

.age-decline {
  background: rgba(255, 255, 255, 0.08);
}

.age-accept:hover,
.age-accept:focus-visible,
.age-decline:hover,
.age-decline:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: 28px;
  min-height: min(690px, calc(100vh - 64px));
  align-items: stretch;
}

.showcase-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(33, 30, 41, 0.95), rgba(11, 10, 15, 0.95));
  box-shadow: 0 24px 70px var(--shadow);
}

.showcase-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(115deg, transparent 0 45%, rgba(182, 0, 255, 0.32) 45% 46%, transparent 46% 100%),
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.12) 62% 63%, transparent 63% 100%);
  background-size: 84px 84px, 132px 132px;
  pointer-events: none;
}

.showcase-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-link {
  width: min(100%, 440px);
  display: block;
  border-radius: 8px;
  transition: filter 180ms ease, transform 180ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  filter: drop-shadow(0 0 24px rgba(237, 0, 255, 0.58));
  transform: translateY(-2px) scale(1.01);
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(237, 0, 255, 0.28));
}

.upcoming-note {
  max-width: 24rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: var(--cursor-pointer);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  border-color: rgba(237, 0, 255, 0.7);
  background: rgba(182, 0, 255, 0.23);
}

.chip:active {
  transform: translateY(1px);
}

.hero-preview {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #08070b;
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(182, 0, 255, 0.18), transparent 44%);
  pointer-events: none;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.preview-bar {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(13, 12, 18, 0.78);
  backdrop-filter: blur(18px);
}

.preview-bar span,
.card-info p {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-bar strong {
  font-size: 1.35rem;
}

.preview-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button,
.download-pill,
.card-downloads a,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  cursor: var(--cursor-pointer);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button,
.modal-close {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.resolution-downloads,
.card-downloads {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-pill,
.card-downloads a {
  min-height: 46px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(128, 0, 190, 0.9), rgba(182, 0, 255, 0.82));
  font-weight: 850;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(182, 0, 255, 0.18);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-button:hover,
.icon-button:focus-visible,
.card-downloads a:hover,
.card-downloads a:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.download-pill:hover,
.download-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.wallpaper-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 20, 27, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wallpaper-card:hover,
.wallpaper-card.is-active {
  border-color: rgba(237, 0, 255, 0.66);
  box-shadow: 0 18px 54px rgba(102, 0, 150, 0.3);
}

.wallpaper-card:hover {
  transform: translateY(-2px);
}

.card-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #0d0c12;
  cursor: var(--cursor-pointer);
}

.card-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.wallpaper-card:hover .card-preview img,
.wallpaper-card.is-active .card-preview img {
  filter: saturate(1.13) contrast(1.05);
  transform: scale(1.025);
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  min-height: 122px;
  padding: 16px;
}

.card-info h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.card-downloads {
  flex-wrap: wrap;
}

.card-downloads a {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text);
}

.modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 3, 6, 0.9);
  backdrop-filter: blur(12px);
}

.modal[hidden] {
  display: none;
}

.modal img {
  max-width: min(100%, 1600px);
  max-height: 88vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.78);
}

.modal-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 11;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 26px, 760px);
    padding: 20px 0;
  }

  .showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showcase-copy {
    min-height: auto;
    padding: 28px;
  }

  .brand-link {
    width: min(100%, 390px);
  }

  .hero-preview {
    min-height: 52vw;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 430px);
    padding: 9px 0 18px;
  }

  .showcase {
    gap: 12px;
  }

  .showcase-copy {
    padding: 22px;
  }

  .brand-link {
    width: min(100%, 320px);
  }

  .hero-preview {
    min-height: 64vw;
  }

  .preview-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 66px;
    padding: 10px;
  }

  .preview-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .resolution-downloads {
    gap: 6px;
  }

  .download-pill {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .modal {
    padding: 12px;
  }
}
