*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #ff6eb4;
  --accent-dim:    rgba(255,110,180,0.18);
  --accent-border: rgba(255,110,180,0.35);
  --accent-glow:   rgba(255,110,180,0.50);
  --dark:          #080810;
  --dark2:         #101010;
  --white:         #ffffff;
  --muted:         rgba(255,255,255,0.42);
  --card-bg:       rgba(255,255,255,0.04);
  --card-border:   rgba(255,255,255,0.10);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  font-family: 'Noto Sans', 'bahnschrift', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0 16px;
}

/* ── BACKGROUND ── */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,80,160,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(180,60,120,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% 100%, rgba(180,60,120,0.07) 0%, transparent 55%),
    linear-gradient(180deg, #090610 0%, #100810 40%, #080810 100%);
}

.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,110,180,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,110,180,0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 70%);
}

.bg::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255,110,180,0.55), transparent);
  filter: blur(0.5px);
}

/* ── LOGO ── */
.logo {
  position: absolute;
  top: 18px; left: 22px;
  z-index: 20;
  opacity: 0;
  animation: fadeInLeft 0.7s ease 0.1s forwards;
}

.logo img {
  width: 130px;
  height: auto;
  opacity: 0.95;
  animation: logoFloat 5s ease-in-out 1s infinite;
}

/* ── HEADER ── */
.header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: clamp(66px, 9vh, 88px);
  opacity: 0;
  animation: fadeInDown 0.7s ease 0.35s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow-line {
  display: inline-block;
  width: 26px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
  animation: eyebrowPulse 2.8s ease-in-out 1s infinite;
}
.eyebrow-line.right {
  background: linear-gradient(to left, transparent, var(--accent));
  animation: eyebrowPulse 2.8s ease-in-out 1.4s infinite;
}

h1 {
  font-family: 'bahnschrift', 'Noto Sans', Arial, sans-serif;
  font-size: clamp(1.5rem, 4.2vw, 2.7rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.06;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 0 2px 28px rgba(0,0,0,0.85);
  animation: titleGlow 3.5s ease-in-out 1.5s infinite;
}

h1 .hl { color: var(--accent); }

.sub {
  font-size: clamp(0.70rem, 1.7vw, 0.83rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── CARDS SECTION ── */
.cards-section {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 870px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin-top: -8px;
  margin-bottom: -16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
}

/* ── CHARACTER CARD ── */
.char-card {
  position: relative;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/5;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, filter 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
}

.char-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.60s forwards, floatCard 4.0s ease-in-out 1.2s infinite; }
.char-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.70s forwards, floatCard 4.4s ease-in-out 1.4s infinite; }
.char-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.80s forwards, floatCard 3.8s ease-in-out 1.0s infinite; }
.char-card:nth-child(4) { animation: fadeInUp 0.5s ease 0.90s forwards, floatCard 4.2s ease-in-out 1.6s infinite; }
.char-card:nth-child(5) { animation: fadeInUp 0.5s ease 1.00s forwards, floatCard 4.6s ease-in-out 1.2s infinite; }
.char-card:nth-child(6) { animation: fadeInUp 0.5s ease 1.10s forwards, floatCard 4.0s ease-in-out 0.8s infinite; }

.char-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.88) 100%);
  z-index: 1;
}

.char-card img.char-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.char-card:hover { transform: translateY(-6px) scale(1.03); }
.char-card:hover .char-img { transform: scale(1.06); }
.char-card:hover { border-color: var(--accent-border); }

.char-card.selected {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 28px var(--accent-glow),
    0 8px 30px rgba(0,0,0,0.7);
  animation-play-state: paused !important;
  transform: translateY(-10px) scale(1.04) !important;
}

.char-card.selected .char-img { transform: scale(1.07); }

.char-card.dimmed {
  opacity: 0.38 !important;
  animation-play-state: paused !important;
  transform: scale(0.97) translateY(0) !important;
  filter: saturate(0.3) brightness(0.7);
}

/* Card idle shimmer sweep */
.char-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%);
  z-index: 2;
  animation: cardSweep 5s ease-in-out var(--sweep-delay, 0s) infinite;
  pointer-events: none;
}

.char-card:nth-child(1) { --sweep-delay: 2.0s; }
.char-card:nth-child(2) { --sweep-delay: 2.6s; }
.char-card:nth-child(3) { --sweep-delay: 3.2s; }
.char-card:nth-child(4) { --sweep-delay: 3.8s; }
.char-card:nth-child(5) { --sweep-delay: 4.4s; }
.char-card:nth-child(6) { --sweep-delay: 5.0s; }

/* Scanline */
.scanline {
  position: absolute;
  left: 0; right: 0;
  top: -4px;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,110,180,0.0) 15%,
    rgba(255,110,180,0.55) 50%,
    rgba(255,110,180,0.0) 85%,
    transparent 100%
  );
  filter: blur(1px);
  z-index: 5;
  pointer-events: none;
  animation: scanDown 6s ease-in-out 2s infinite;
}

/* Card info */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 8px 6px 10px;
  text-align: center;
}

.card-name {
  font-family: 'bahnschrift', Arial, sans-serif;
  font-size: clamp(0.60rem, 1.15vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95);
}

.card-role {
  font-size: clamp(0.48rem, 0.95vw, 0.58rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-top: 2px;
  opacity: 0.88;
}

/* Checkmark */
.card-check {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.card-check svg {
  width: 11px; height: 11px;
  stroke: #1a0010;
  stroke-width: 2.5;
  fill: none;
}

.char-card.selected .card-check {
  opacity: 1;
  transform: scale(1);
}

/* ── CTA SECTION ── */
.cta-section {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  padding-bottom: clamp(6px, 1vh, 12px);
  opacity: 0;
  animation: fadeInUp 0.7s ease 1.25s forwards;
}

.cta-prompt {
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  transition: opacity 0.35s;
}

.cta-prompt.hidden { opacity: 0; }

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff6eb4 0%, #ff3a96 60%, #e0006e 100%);
  color: #fff;
  font-family: 'bahnschrift', Arial, sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 62px;
  border-radius: 6px;
  border: 1px solid rgba(255,180,220,0.45);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 0 rgba(255,60,150,0.7),
    0 8px 35px rgba(255,0,110,0.55),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: ctaPulse 1.4s ease-in-out 2.2s infinite;
  transition: transform 0.12s, box-shadow 0.12s;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.50) 50%, transparent 75%);
  animation: shimmer 2.5s ease-in-out 2.8s infinite;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 0 transparent, 0 16px 50px rgba(255,0,110,0.75), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: none;
}

.cta-btn:hover::before { animation: none; }

.cta-arrow {
  font-style: normal;
  animation: arrowBounce 1.8s ease-in-out 2.2s infinite;
}

.cta-btn:hover .cta-arrow {
  animation: none;
  transform: translateX(5px);
  transition: transform 0.2s;
}

.sub-green {
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74,222,128,0.40);
  white-space: nowrap;
}

.cta-note {
  display: block;
  margin-top: 8px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* ── PARTICLES ── */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,60,150,0.7), 0 8px 35px rgba(255,0,110,0.55), inset 0 1px 0 rgba(255,255,255,0.2); transform: scale(1); }
  45%  { box-shadow: 0 0 0 16px rgba(255,60,150,0), 0 8px 55px rgba(255,0,110,0.75), inset 0 1px 0 rgba(255,255,255,0.2); transform: scale(1.025); }
  100% { box-shadow: 0 0 0 0 rgba(255,60,150,0.7), 0 8px 35px rgba(255,0,110,0.55), inset 0 1px 0 rgba(255,255,255,0.2); transform: scale(1); }
}

@keyframes shimmer {
  0%   { left: -130%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(6px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 2px 28px rgba(0,0,0,0.85); }
  50%       { text-shadow: 0 2px 28px rgba(0,0,0,0.85), 0 0 40px rgba(255,110,180,0.25), 0 0 80px rgba(255,110,180,0.10); }
}

@keyframes eyebrowPulse {
  0%, 100% { width: 26px; opacity: 0.7; }
  50%       { width: 44px; opacity: 1; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes cardSweep {
  0%   { left: -120%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes scanDown {
  0%        { top: -4px; opacity: 0; }
  5%        { opacity: 1; }
  90%       { opacity: 0.8; }
  100%      { top: 100%; opacity: 0; }
}

@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(var(--drift)); opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --strip-h: 84px; }

  .logo img { width: 100px; }
  .logo { top: 14px; left: 14px; }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  h1 { font-size: clamp(1.25rem, 5vw, 1.7rem); }

  .cta-btn {
    padding: 12px 32px;
    font-size: 0.88rem;
    width: 90vw;
    max-width: 270px;
  }
}

@media (max-width: 400px) {
  .cards-grid { gap: 5px; }
  .card-name { font-size: 0.52rem; }
  .card-role { font-size: 0.42rem; }
}
