/* Version picker: two cards, each previewing a theme in its own colours. */
:root {
  --hub-bg: #14110f;
  --hub-text: #efe4cf;
  --hub-muted: #a99d88;
  --hub-gold: #d4b06a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(212, 176, 106, 0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(70, 90, 160, 0.18), transparent 60%),
    var(--hub-bg);
  color: var(--hub-text);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hub {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
}

.hub__header { text-align: center; margin-bottom: 32px; }
.hub__header p { margin: 0; }

.hub__logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.hub__logo span { color: var(--hub-gold); }

.hub__title {
  margin: 10px 0 8px;
  font-family: 'Sriracha', cursive;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  color: var(--hub-gold);
}

.hub__subtitle { color: var(--hub-muted); font-size: 15px; }

.hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.version-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(212, 176, 106, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.version-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(212, 176, 106, 0.55); }
.version-card:focus-visible { outline: 2px solid var(--hub-gold); outline-offset: 4px; }

.version-card__preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center 62%;
}

.version-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.version-card__body p { margin: 0; }

.version-card--sunrise .version-card__body { background: #f6ecdc; color: #2f4a3a; }
.version-card--moon .version-card__body { background: #12121f; color: #f1e3c2; }

.version-card__index { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; }

.version-card__name {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
}

.version-card__text { font-size: 14px; line-height: 1.55; opacity: 0.85; }

.version-card__music { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #b8935a; }
.version-card--moon .version-card__music { color: var(--hub-gold); }

.version-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.version-card--sunrise .version-card__cta { background: #2f4a3a; color: #fbf6ec; }
.version-card--moon .version-card__cta { background: linear-gradient(180deg, #a8301f, #7a1c12); color: #f8e3a8; box-shadow: inset 0 0 0 1px rgba(240, 200, 120, 0.5); }

.hub-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub__hint { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--hub-muted); }

.hub__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 18px auto 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-muted);
  text-decoration: none;
}

.hub__credit-logo {
  display: block;
  width: auto;
  height: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .version-card { transition: none; }
}

/* Frame each preview on its hero: the tree at sunrise, the moon and Chị Hằng at night */
.version-card--moon .version-card__preview { object-position: center 30%; }
