:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-soft: #0b0d11;
  --panel: rgba(15, 18, 23, 0.84);
  --panel-strong: rgba(16, 20, 27, 0.96);
  --line: rgba(179, 255, 234, 0.16);
  --line-strong: rgba(179, 255, 234, 0.34);
  --text: #f5f7ff;
  --muted: #99a2ba;
  --green: #8effc6;
  --purple: #a869ff;
  --white: #fcfdff;
  --pink: #ff6bd6;
  --warning: #ffc670;
  --danger: #ff7d96;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(142, 255, 198, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(168, 105, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #040406 0%, #090a0e 45%, #040507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 80%);
}

.app-shell {
  width: calc(100% - 16px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 0 132px;
}

.hero,
.stats-panel,
.about-panel,
.controls-panel,
.grid-shell {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.94), rgba(9, 12, 17, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after,
.stats-panel::after,
.about-panel::after,
.controls-panel::after,
.grid-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.35rem, 12vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-description {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.hero-actions .button,
.modal-actions .button,
.sticky-mint-cta {
  width: 100%;
}

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

.compact-stat,
.metric-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-stat-label,
.metric-label,
.attributes-header a {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compact-stat-value,
.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.stats-panel,
.about-panel,
.controls-panel,
.grid-shell {
  margin-top: 12px;
  padding: 16px;
}

.info-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.info-grid > .stats-panel,
.info-grid > .about-panel {
  margin-top: 0;
  height: 100%;
}

.about-panel {
  display: flex;
  flex-direction: column;
}

.about-header {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.about-header h2 {
  margin: 0;
  line-height: 1;
  min-width: 0;
}

.about-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 0;
  margin-left: auto;
  align-self: flex-start;
}

.about-panel h2,
.drop-details .grid-header h2,
.grid-header h2 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.about-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.about-feature {
  margin-top: 0;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(142, 255, 198, 0.08), rgba(168, 105, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(142, 255, 198, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.about-feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.about-feature-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.about-feature-lead {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
}

.about-feature-support {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.mint-schedule-grid {
  display: grid;
  gap: 10px;
}

.mint-schedule .mint-schedule-grid {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-card {
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.schedule-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-price,
.schedule-date {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
}

.schedule-card-og {
  border-color: rgba(142, 255, 198, 0.18);
}

.schedule-card-public {
  border-color: rgba(168, 105, 255, 0.18);
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.button,
.artwork-card-button,
.modal-close,
select,
input {
  font: inherit;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: rgba(142, 255, 198, 0.34);
  background: rgba(142, 255, 198, 0.12);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(142, 255, 198, 0.12);
}

.button:focus-visible,
.filter-chip:focus-visible,
.artwork-card-button:focus-visible,
.modal-close:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(168, 105, 255, 0.2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-pending[aria-disabled="true"] {
  opacity: 1;
  color: rgba(252, 253, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(142, 255, 198, 0.18), rgba(168, 105, 255, 0.2));
}

.button-primary {
  color: #06110b;
  background: linear-gradient(135deg, var(--green), #5ef8f3);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.button-pending {
  background: linear-gradient(135deg, rgba(142, 255, 198, 0.3), rgba(168, 105, 255, 0.3));
}

.grid-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.grid-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.artwork-card-button {
  display: block;
  width: 100%;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.artwork-card.is-error .artwork-card-button {
  border-color: rgba(255, 125, 150, 0.28);
}

.artwork-card.is-warning .artwork-card-button {
  border-color: rgba(255, 198, 112, 0.28);
}

.artwork-card.is-ready .artwork-card-button {
  border-color: rgba(142, 255, 198, 0.18);
}

.artwork-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(168, 105, 255, 0.24), rgba(142, 255, 198, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

#modal-image {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.artwork-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow-wrap: anywhere;
}

.is-ready {
  color: var(--green);
  border-color: rgba(142, 255, 198, 0.24);
}

.is-warning {
  color: var(--warning);
  border-color: rgba(255, 198, 112, 0.24);
}

.is-error {
  color: var(--danger);
  border-color: rgba(255, 125, 150, 0.24);
}

.artwork-body {
  padding: 12px;
  min-width: 0;
}

.artwork-token-id {
  display: block;
  font-size: 0.92rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.artwork-tags {
  margin-top: 10px;
}

.artwork-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  color: var(--white);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.artwork-primary {
  font-weight: 600;
}

.message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.message-error {
  border-color: rgba(255, 125, 150, 0.24);
  background: rgba(255, 125, 150, 0.08);
  color: #ffd7de;
}

.message-success {
  border-color: rgba(142, 255, 198, 0.24);
  background: rgba(142, 255, 198, 0.08);
  color: #dffff1;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.artwork-modal {
  width: min(100%, calc(100% - 8px));
  min-height: calc(100dvh - 8px);
  max-height: calc(100dvh - 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0;
  background: rgba(7, 8, 12, 0.98);
  color: var(--text);
  overflow: hidden;
}

.artwork-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.modal-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.modal-media {
  background:
    radial-gradient(circle at top left, rgba(168, 105, 255, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(142, 255, 198, 0.18), transparent 30%),
    #0e1118;
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  object-fit: cover;
  display: block;
}

.modal-content {
  flex: 1 1 auto;
  padding: 16px 16px 20px;
  overflow: auto;
}

.modal-badge {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.modal-content h3 {
  margin: 8px 0 12px;
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-meta span {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.modal-status {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-file-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.attributes-section {
  margin-top: 22px;
}

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

.attributes-header h4 {
  margin: 0;
  font-size: 1rem;
}

.attributes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.attribute-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.attribute-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attribute-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.site-footer {
  width: calc(100% - 16px);
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 8px 0 calc(112px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 255, 198, 0.24);
  background: rgba(142, 255, 198, 0.1);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sticky-mint-cta {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  width: auto;
  max-width: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  background: rgba(12, 15, 20, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.sticky-mint-cta:link,
.sticky-mint-cta:visited,
.sticky-mint-cta:active,
.sticky-mint-cta:hover {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.sticky-mint-cta.button-pending[aria-disabled="true"] {
  background: rgba(12, 15, 20, 0.62);
  border-color: rgba(142, 255, 198, 0.14);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

@media (max-width: 419px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 759px) {
  .filter-bar {
    gap: 8px;
  }

  .filter-chip {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .about-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
  }

  .about-header > h2 {
    margin: 0;
    line-height: 1;
    justify-self: start;
  }

  .about-socials {
    justify-self: end;
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 760px) {
  .app-shell {
    width: min(1280px, calc(100% - 32px));
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .hero {
    padding: 28px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
  }

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

  .info-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: stretch;
  }

  .info-grid > .stats-panel,
  .info-grid > .about-panel {
    align-self: stretch;
  }

  .mint-schedule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mint-schedule .schedule-card {
    width: 100%;
  }

  .grid-header {
    flex-direction: row;
    align-items: end;
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .artwork-modal {
    width: min(1040px, calc(100% - 32px));
    min-height: auto;
    max-height: calc(100dvh - 32px);
  }

  .modal-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
    align-items: start;
  }

  .modal-media {
    height: 100%;
  }

  .modal-media img {
    height: 100%;
    max-height: none;
  }

  .modal-content {
    padding: 28px;
  }

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

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

  .modal-actions .button {
    width: 100%;
  }

  .sticky-mint-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (min-width: 1100px) {
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
