:root {
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  --backdrop: #18b4f2;
  margin: 0;
  background: var(--backdrop);
  color: #fff;
  font: 500 16px/1.4 var(--font);
  display: grid;
  place-items: center;
  transition: background-color 0.6s ease;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.corner {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  z-index: 10;
}

.corner img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

body.is-landing .corner {
  display: none;
}

.stage {
  width: 100%;
  display: grid;
  place-items: center;
}

.story {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 9 / 16;
  width: min(420px, 100%, calc((100dvh - 48px) * 9 / 16));
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.bars {
  position: absolute;
  inset: 10px 12px auto;
  display: flex;
  gap: 4px;
  z-index: 6;
}

.bars i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.bars i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.bars i.done b {
  width: 100%;
}

.bars i.now b {
  animation: fill var(--dur, 6s) linear forwards;
}

.story.paused .bars i.now b,
.story.paused .slide.on .art g {
  animation-play-state: paused;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.chrome {
  position: absolute;
  inset: 24px 14px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.chrome-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chrome-buttons {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg,
.pill-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

svg.line {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.slide.on {
  opacity: 1;
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art g.a-top,
.art g.a-bot {
  transform-box: view-box;
}

.slide.on .art g.a-top {
  animation:
    in-top 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    drift 7s ease-in-out 0.9s infinite alternate;
}

.slide.on .art g.a-bot {
  animation:
    in-bot 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both,
    drift 7s ease-in-out 1s infinite alternate-reverse;
}

@keyframes in-top {
  from {
    transform: translateY(-40%);
  }
}

@keyframes in-bot {
  from {
    transform: translateY(40%);
  }
}

@keyframes drift {
  to {
    transform: translate(1.5%, 1%);
  }
}

.content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
  padding: 18cqw 9cqw;
  text-align: center;
  z-index: 1;
}

.slide.on .content > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.slide.on .content > :nth-child(2) {
  animation-delay: 0.12s;
}

.slide.on .content > :nth-child(3) {
  animation-delay: 0.24s;
}

.slide.on .content > :nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5cqw);
  }
}

h2 {
  margin: 0;
  font-weight: 800;
  font-size: 8.6cqw;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

h2 em {
  font-style: normal;
}

.content p {
  margin: 0;
  font-size: 4.3cqw;
  font-weight: 500;
  max-width: 34ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.eyebrow {
  font-weight: 800 !important;
  font-size: 3.8cqw !important;
  letter-spacing: 0.04em;
}

.logo-big {
  width: 32cqw;
  height: 32cqw;
  border-radius: 50%;
  border: 1.6cqw solid #fff;
  box-shadow: 0 0 0 3cqw #18b4f2;
}

.intro-title {
  margin-top: 6cqw;
}

.hint {
  font-weight: 700 !important;
  opacity: 0.8;
}

.cover {
  object-fit: cover;
  background: #1c1c1c;
}

.cover.nsfw {
  filter: blur(14px);
}

.top1-cover {
  width: 48cqw;
  aspect-ratio: 3 / 4;
  border-radius: 3cqw;
  box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, 0.7);
}

.s-list .content {
  justify-content: flex-end;
  padding-bottom: 24cqw;
  gap: 3cqw;
}

.ranks {
  width: 100%;
  display: grid;
  gap: 2.6cqw;
}

.rank {
  display: grid;
  grid-template-columns: 6cqw 12cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  text-align: left;
}

.rank .n {
  font-weight: 900;
  font-size: 6cqw;
}

.rank .cover {
  width: 12cqw;
  height: 16cqw;
  border-radius: 1.6cqw;
}

.rank .t {
  font-weight: 800;
  font-size: 4cqw;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank .h {
  font-weight: 600;
  font-size: 3.4cqw;
  opacity: 0.8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.months {
  width: 100%;
  height: 26cqw;
  display: flex;
  align-items: flex-end;
  gap: 1.4cqw;
}

.months i {
  flex: 1;
  height: var(--h);
  background: rgba(255, 255, 255, 0.28);
}

.months i.best {
  background: linear-gradient(#ffb3f0, #ff1f4b);
}

.ring {
  width: 54cqw;
}

.s-end .content {
  padding: 16cqw 7cqw 22cqw;
}

.summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw;
}

.sum-title {
  font-weight: 800 !important;
  font-size: 4.6cqw !important;
}

.covers {
  display: flex;
  gap: 1.8cqw;
  width: 100%;
  margin: 2cqw 0;
}

.covers .cover {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  border-radius: 1.6cqw;
}

.sum-big {
  font-weight: 900 !important;
  font-size: 24cqw !important;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.sum-label {
  font-weight: 800 !important;
  font-size: 4.4cqw !important;
  margin-bottom: 2cqw !important;
}

.sum-line {
  font-size: 3.6cqw !important;
}

.tap {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  background: none;
  border: 0;
  cursor: pointer;
}

.tap.prev {
  left: 0;
  width: 35%;
}

.tap.next {
  right: 0;
  width: 65%;
}

.pills {
  position: absolute;
  inset: auto 0 7cqw;
  display: flex;
  justify-content: center;
  gap: 3cqw;
  z-index: 7;
  pointer-events: none;
}

.pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2.6cqw;
  border: 0;
  background: none;
  color: #fff;
  font: 700 4cqw var(--font);
  cursor: pointer;
  padding: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.pill-icon {
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
}

.pill-icon svg {
  width: 5cqw;
  height: 5cqw;
}

.pill:focus-visible,
.icon-btn:focus-visible,
.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.landing {
  width: min(1180px, 100%);
  min-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.land-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  color: #000;
}

.land-top img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #000;
}

.land-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
}

.land-pitch {
  color: #000;
  display: grid;
  gap: 22px;
}

.land-pitch h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.land-text {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  max-width: 34ch;
}

.land-pitch ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.land-pitch li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
}

.land-pitch li::before {
  content: counter(step);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

.land-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border-radius: 99px;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s;
}

.cta:hover {
  transform: scale(1.04);
}

.cta.ghost {
  background: transparent;
  color: #000;
  box-shadow: inset 0 0 0 2.5px #000;
}

.land-deck {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mini {
  position: relative;
  container-type: inline-size;
  flex: none;
  width: min(230px, 30%);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mini-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--tilt));
  margin: 0 -4px;
  transition: transform 0.3s;
}

.mini:nth-child(2) {
  z-index: 1;
  width: min(260px, 34%);
}

.mini:hover {
  transform: rotate(var(--tilt)) translateY(-10px);
}

.mini .art g {
  animation: drift 7s ease-in-out infinite alternate;
}

.mini .logo-big {
  box-shadow: none;
}

@media (max-width: 600px) {
  .corner {
    display: none;
  }
}

@media (max-width: 820px) {
  .land-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .land-deck {
    order: -1;
  }

  .mini {
    width: 30%;
  }

  .mini:nth-child(2) {
    width: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  body {
    transition: none;
  }
  .slide.on .art g,
  .slide.on .content > *,
  .mini .art g {
    animation: none !important;
  }
  .bars i.now b {
    animation: none;
    width: 100%;
  }
}
