/* Intro screen. One memorable thing: the VS badge standing in for the "o".
   Everything else stays quiet: date, one line, Play, two rows of fighters. */

body:has(.view-intro) .top { display: none; }
.view-intro { padding-bottom: 0; }

.intro { text-align: center; }
.intro-hero { padding: 13vh 0 28px; }
@media (max-height: 700px) { .intro-hero { padding-top: 48px; } }

/* ---------- logo ---------- */
.logo { display: flex; flex-direction: column; align-items: center; margin: 0 0 26px; font-family: var(--display); font-weight: 800; line-height: 0.9; }
.logo-small { font-size: clamp(22px, 6vw, 30px); letter-spacing: -0.01em; color: var(--ink-2); margin-bottom: 4px; }
.logo-big { font-size: clamp(54px, 17vw, 96px); letter-spacing: -0.045em; white-space: nowrap; }
.logo-vs {
  position: relative; display: inline-grid; place-items: center;
  width: 0.7em; height: 0.7em; margin: 0 0.02em 0 0.03em; vertical-align: 0.005em;
  border-radius: 50%;
  background: linear-gradient(115deg, var(--p1) 0 47%, var(--bg) 47% 53%, var(--p2) 53%);
  box-shadow: 0 0 0 0.035em var(--bg), 0 0 0 0.06em rgba(255, 255, 255, 0.14), 0 0.12em 0.5em -0.1em rgba(255, 111, 142, 0.55), 0 0.12em 0.5em -0.1em rgba(92, 178, 255, 0.55);
  animation: vsIn 0.9s 0.1s cubic-bezier(0.2, 1.4, 0.35, 1) both;
}
.logo-vs b {
  font-size: 0.3em; letter-spacing: 0; color: #fff; line-height: 1;
  padding: 0.18em 0.28em; border-radius: 0.4em; background: rgba(10, 11, 13, 0.82);
}

.intro-date { font-size: 19px; font-weight: 700; color: var(--ink); }
.intro-sub { margin-top: 6px; font-size: 15px; color: var(--mute); }
.intro-play {
  min-width: 220px; min-height: 60px; margin-top: 30px; gap: 12px;
  font-size: 18px; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(62, 227, 155, 0.5), 0 14px 46px -10px rgba(62, 227, 155, 0.75);
}
.intro-play span { font-size: 15px; }
.intro-streak { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--mid); }

/* ---------- two rows of fighters passing each other ---------- */
.roster {
  position: relative; margin: 18px -16px 0; padding: 18px 0;
  display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  animation: fadeIn 1s 0.4s both;
}
@media (min-width: 600px) {
  .roster { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}
.roster-row { overflow: visible; }
.track { display: flex; gap: 12px; width: max-content; animation: drift 75s linear infinite; }
.r2 .track { animation-direction: reverse; animation-duration: 85s; }
.ro-item { width: 84px; flex: none; }
.ro-item .portrait { border-radius: 18px; }
.r1 .ro-item .portrait { box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -12px rgba(255, 111, 142, 0.8); }
.r2 .ro-item .portrait { box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -12px rgba(92, 178, 255, 0.8); }
.r1 { transform: translateX(-30px); }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 26px auto 8px; padding: 8px 14px; border: 0; background: none;
  font-size: 14px; font-weight: 700; color: var(--mute);
}
.scroll-cue svg { width: 22px; height: 22px; animation: nudge 2.2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--ink); }

/* ---------- how to play ---------- */
.how { padding: 56px 0 24px; text-align: left; }
.how h2 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.025em; margin-bottom: 22px; text-align: center; }
.how-mode { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.how-mode h3, .how-tiers h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.how-mode p, .how-tiers > p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.how-art { position: relative; height: 104px; border-radius: var(--r-lg); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }

/* mode 1: two fighters and the verdict bar */
.art-fight .hf { position: absolute; top: 14px; width: 48px; }
.art-fight .hf .portrait { border-radius: 12px; }
.art-fight .hf.l { left: 14px; }
.art-fight .hf.r { right: 14px; }
.art-fight .hf.l .portrait { box-shadow: inset 0 0 0 2px var(--bad); filter: grayscale(0.7) brightness(0.8); }
.art-fight .hf.r .portrait { box-shadow: inset 0 0 0 2px var(--good), 0 0 18px -4px rgba(62, 227, 155, 0.7); }
.art-fight .vs { position: absolute; left: 50%; top: 38px; width: 28px; height: 28px; font-size: 10px; transform: translate(-50%, -50%); }
.hf-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--p2); }
.hf-bar i { position: absolute; inset: 0 auto 0 0; width: 28%; background: var(--p1); border-right: 2px solid var(--bg); }

/* mode 2: the comparison tiles */
.art-guess { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; height: auto; min-height: 104px; }
.art-guess .cmp { min-height: 0; padding: 4px 2px; }
.art-guess .cmp b { font-size: 10px; }
.art-guess .cmp small { font-size: 8px; }

/* mode 3: number vs question mark, up and down */
.art-hol { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 6px; padding: 10px; }
.hv { display: grid; place-items: center; border-radius: 12px; background: var(--fill-2); font-family: var(--display); font-weight: 800; font-size: 26px; }
.hv.q { color: var(--mid); background: var(--mid-a); }
.hb { display: grid; place-items: center; height: 24px; border-radius: 8px; font-size: 11px; }
.hb.up { color: var(--good); background: var(--good-a); }
.hb.down { color: var(--bad); background: var(--bad-a); }

.how-tiers { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.how-tiers ol { display: grid; gap: 6px; margin-top: 14px; }
.how-tiers li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--fill); }
.how-tiers li .tier { justify-self: start; }
.how-tiers li p { font-size: 13px; color: var(--ink-2); }
.how-daily { margin: 26px 0 14px; text-align: center; font-size: 14px; color: var(--mute); }

@media (max-width: 420px) {
  .how-mode { grid-template-columns: 1fr; }
  .how-art { max-width: 220px; }
}

@keyframes vsIn {
  0% { transform: rotate(-200deg) scale(0); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: rotate(0) scale(1); }
}
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes nudge { 50% { transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
}
