:root {
  --maxw: 1640px;
  --font: "Manrope", system-ui, sans-serif;
  --radius-hero: 28px;
  --radius-tile: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --glass-dark: rgba(9, 11, 18, 0.72);
  --hero-h: 404px;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  min-height: 100vh;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: radial-gradient(140% 100% at 50% -10%, var(--color-glow) 0%, var(--color-bg) 62%) 0 0 / 100% 760px no-repeat var(--color-bg);
  color: var(--color-text);
  font: 400 15px/1.45 var(--font);
}

main {
  max-width: var(--maxw);
  margin-inline: auto;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.sprite {
  display: none;
}

/* Header */

.top {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(9, 11, 18, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
}

.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--color-accent-light), var(--color-accent) 55%, var(--color-accent-deep));
  box-shadow: 0 4px 14px rgba(255, 113, 10, 0.35);
  color: var(--color-on-accent);
}

.mark svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  transform-origin: 50% 10%;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-name b {
  color: var(--color-accent);
  font-weight: 800;
}

.top5::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.top5 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 196, 33, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 33, 0.35);
  color: var(--color-star);
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--press);
}

.top5:active {
  background: rgba(255, 196, 33, 0.22);
}

.top5 svg {
  width: 16px;
  height: 16px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color var(--press);
}

.icon-btn:active {
  background: var(--color-chip);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

/* Hero */

.hero-wrap {
  position: relative;
  isolation: isolate;
  height: var(--hero-h);
  margin: 10px 12px 0;
  animation: stage-in 0.3s ease-out both;
}

.hero-halo {
  position: absolute;
  z-index: -2;
  inset: 6px;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--color-accent-light), var(--color-accent-deep));
  filter: blur(30px);
  opacity: 0.26;
}

.hero-ring {
  position: absolute;
  z-index: -1;
  inset: -1.5px;
  overflow: hidden;
  border-radius: calc(var(--radius-hero) + 1.5px);
  background: rgba(255, 113, 10, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--color-card);
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: -5% 0 -5%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  transform-origin: 50% 24%;
  animation: ken-burns 18s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.45) 0%, rgba(9, 11, 18, 0) 18%),
    linear-gradient(180deg, rgba(9, 11, 18, 0) 30%, rgba(9, 11, 18, 0.78) 52%, rgba(9, 11, 18, 0.97) 72%);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
}

.rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-on-accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.rank svg {
  width: 15px;
  height: 15px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(9, 11, 18, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.score svg {
  width: 17px;
  height: 17px;
  color: var(--color-star);
  fill: currentColor;
  stroke: none;
}

.hero-body {
  padding: 0 18px 14px;
}

.live {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255, 113, 10, 0.2);
}

.live span {
  opacity: 0.5;
}

.live b {
  color: var(--color-accent-light);
  font-weight: 800;
  letter-spacing: -0.2px;
}

h1 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.9px;
  text-wrap: balance;
}

h1 em {
  color: var(--color-accent);
  font-style: normal;
}

.sub {
  max-width: 32ch;
  margin: 8px 0 14px;
  color: rgba(238, 233, 225, 0.82);
  font-size: 15px;
  line-height: 1.4;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--color-accent);
  background-image: var(--grad);
  box-shadow: 0 10px 28px -6px rgba(255, 89, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--color-on-accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  transition: transform 140ms ease-out;
}

.cta:active {
  transform: scale(0.97);
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: sheen 3.8s ease-in-out 1.2s infinite;
}

.cta svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.micro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--color-muted-2);
  font-size: 12.5px;
  font-weight: 600;
}

.micro svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  stroke-width: 3;
}

/* Chips */

.chips {
  display: flex;
  gap: 8px;
  padding: 14px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}

.chip {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px 0 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-chip-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.chip svg {
  width: 17px;
  height: 17px;
  color: var(--color-accent);
}

.chip.is-on {
  border-color: rgba(255, 113, 10, 0.55);
  background: rgba(255, 113, 10, 0.14);
  color: #fff;
}

/* Cards #2 and #3 */

.list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-tile);
  background: var(--color-card);
}

.card-photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 0.6s var(--ease-out);
}

.card:active .card-photo img {
  transform: scale(1.06);
}

.num,
.pts {
  position: absolute;
  top: 10px;
  display: grid;
  place-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.num {
  left: 10px;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pts {
  right: 10px;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.card-body {
  padding: 10px 12px 12px;
}

.card h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card p {
  margin: 1px 0 10px;
  color: var(--color-muted-2);
  font-size: 13px;
}

.visit::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}

.visit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1.5px solid rgba(255, 113, 10, 0.45);
  border-radius: 12px;
  color: var(--color-accent-light);
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--press), border-color var(--press);
}

.visit:active {
  border-color: var(--color-accent);
  background: rgba(255, 113, 10, 0.14);
}

.visit svg {
  width: 16px;
  height: 16px;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes ken-burns {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.1) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes sheen {
  55%,
  100% {
    transform: translateX(320%) skewX(-20deg);
  }
}

@media (max-width: 374px) {
  :root {
    --hero-h: 392px;
  }

  .brand-name {
    font-size: 16.5px;
  }

  .top5 {
    padding: 0 11px 0 9px;
  }

  h1 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
