:root {
  color-scheme: dark;
  --wine: #6a081d;
  --wine-bright: #b51236;
  --ink: #131313;
  --panel: rgba(0, 0, 0, 0.2);
  --line: rgba(255, 255, 255, 0.13);
  --copy: rgba(255, 255, 255, 0.74);
  --gold: #ffe088;
  --green: #86d89d;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.pass-art {
  background:
    linear-gradient(145deg, rgba(255, 224, 136, 0.16), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 24px),
    linear-gradient(160deg, #070707, #19351f 48%, #25030d);
}

.premium-field {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.eyebrow {
  color: var(--gold);
  font: 700 12px/1 "Hanken Grotesk", sans-serif;
  text-transform: uppercase;
}

.site-shell {
  background: radial-gradient(circle at top, var(--wine-bright), var(--wine));
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  font-family: "Hanken Grotesk", Arial, sans-serif;
}

.notice {
  background: rgba(255, 224, 136, 0.13);
  border: 1px solid rgba(255, 224, 136, 0.35);
  border-radius: 12px;
  color: white;
  margin-top: 16px;
  padding: 14px 16px;
}

.notice-error {
  background: rgba(255, 179, 174, 0.13);
  border-color: rgba(255, 179, 174, 0.42);
}

.primary-action {
  align-items: center;
  background: white;
  border: 0;
  border-radius: 999px;
  color: var(--wine);
  display: inline-flex;
  font: 700 12px/1 "Hanken Grotesk", sans-serif;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
  text-transform: uppercase;
}

.secondary-action {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font: 700 12px/1 "Hanken Grotesk", sans-serif;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  text-transform: uppercase;
}

.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(106, 8, 29, 0.5);
}

.cart-line {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
}

.cart-line-media {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  flex: 0 0 128px;
  height: 128px;
  overflow: hidden;
}

.cart-line-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cart-line-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-line-copy h3,
.cart-line-copy p {
  margin: 0 0 8px;
}

.cart-line-copy p {
  color: var(--copy);
}

.cart-line-top,
.cart-line-actions {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cart-line-actions {
  align-items: flex-end;
}

.quantity-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  overflow: hidden;
}

.quantity-control button,
.quantity-control span {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: white;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
}

.quantity-control span {
  border-inline: 1px solid rgba(255, 255, 255, 0.16);
}

.text-action {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
}

.cart-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.cart-empty h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  margin-top: 0;
}

.reveal-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  text-align: center;
}

.spinner {
  animation: spin 1s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  height: 96px;
  margin-bottom: 32px;
  width: 96px;
}

.reveal-passport {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  display: grid;
  gap: 40px;
  grid-template-columns: 240px 1fr;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 40px;
}

.reveal-passport h1 {
  font: 700 clamp(40px, 7vw, 74px)/1.1 "Libre Caslon Text", Georgia, serif;
  margin: 8px 0 16px;
  text-transform: uppercase;
}

.country-badge {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, transparent 32%, rgba(0, 0, 0, 0.28) 33%),
    conic-gradient(var(--country-a), var(--country-b), var(--gold), var(--country-a));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 240px;
  text-align: center;
  width: 100%;
}

.country-badge span {
  font: 700 48px/1 "Libre Caslon Text", Georgia, serif;
}

.country-badge small {
  max-width: 120px;
  text-transform: uppercase;
}

.color-strip {
  display: flex;
  gap: 10px;
}

.color-strip span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  height: 14px;
  width: 72px;
}

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

.pack-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.pack-panel h2 {
  color: var(--gold);
  font: 700 12px/1 "Hanken Grotesk", sans-serif;
  text-transform: uppercase;
}

.legend-list,
.asset-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-list span,
.asset-placeholders a {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
}

.muted {
  color: var(--copy);
}

.pack-quiz {
  grid-column: 1 / -1;
}

.quiz-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.quiz-item ol {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-item summary {
  color: var(--gold);
  cursor: pointer;
}

.share-action {
  background: white;
  border: 0;
  border-radius: 999px;
  color: var(--wine);
  display: block;
  font-weight: 700;
  margin: 24px auto 0;
  min-height: 56px;
  padding: 12px 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
