* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

:root {
  --bg: #070712;
  --text: #F4F1F8;
  --muted: rgba(244, 241, 248, 0.6);
  --stroke: rgba(255, 255, 255, 0.1);
  --accent: #FF00FF;
  --gold: #ffffff;
  --champ: #E0B4FF;
}

body.selector {
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial
}

.brand {
  padding: 14px 20px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .3px;
  opacity: 0.9;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 80px
}

.h1 {
  font-family: 'Georgia', serif;
  font-size: 44px;
  text-align: center;
  margin: 6px 0
}

.sub {
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  font-size: 16px
}

/* grid of equal cards */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: start
}

@media (max-width:1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

.card {
  position: relative
}

.card-btn {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #3F2E64;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .2s ease;
}

.card-btn:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .26)
}

/* Equal size with safe area for video */
.thumb {
  width: 100%;
  aspect-ratio: 9/16;
  background: #0e203f;
  overflow: hidden
}

.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* Transparent gradient "name button" above the card (outside top edge) */
.label-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  margin: 0 auto 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(#ffffff0a, #ffffff0a);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  white-space: nowrap;
  font-size: 13px;
  width: max-content;
}

.label-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--champ));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

/* Visual selector dot */
input[name="theme"] {
  display: none
}

.card-btn::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  outline: 2px solid rgba(0, 0, 0, .35)
}

.card.is-selected .card-btn::after {
  background: var(--gold)
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer
}

.btn.primary {
  background: var(--accent);
  color: #241e14
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(230, 218, 255, .6);
  color: #eee;
  text-decoration: none
}

/* Dream look + focus */
.dream-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.dream-glow:active,
.dream-glow:focus-visible {
  box-shadow: 0 0 0 1px rgba(230, 218, 255, .65), 0 10px 32px rgba(80, 46, 120, .35);
  outline: none;
}