:root {
  --index-bg: #070709;
  --index-bg-deep: #040406;
  --index-surface: #101116;
  --index-surface-2: #17181e;
  --index-line: rgba(255, 255, 255, 0.09);
  --index-line-strong: rgba(255, 255, 255, 0.16);
  --index-text: #f7f7fb;
  --index-muted: #9799a6;
  --index-pink: #ff2f88;
  --index-cyan: #26d4df;
  --index-gold: #ffbd38;
  --index-green: #20d885;
  --index-shell: min(1500px, calc(100% - 32px));
  --index-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--index-bg);
}

body[data-page-slug="index"] {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 47, 136, 0.055), transparent 29rem),
    radial-gradient(circle at 8% 22%, rgba(38, 212, 223, 0.035), transparent 25rem),
    var(--index-bg);
  color: var(--index-text);
  font-family: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-page-slug="index"] .page-wrap {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  background: transparent;
}

body[data-page-slug="index"] a,
body[data-page-slug="index"] button,
body[data-page-slug="index"] input {
  font: inherit;
}

body[data-page-slug="index"] a,
body[data-page-slug="index"] button {
  -webkit-tap-highlight-color: transparent;
}

body[data-page-slug="index"] a:focus-visible,
body[data-page-slug="index"] button:focus-visible,
body[data-page-slug="index"] input:focus-visible {
  outline: 2px solid var(--index-cyan);
  outline-offset: 3px;
}

.index-skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--index-cyan);
  color: #041012;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.index-skip-link:focus {
  transform: translateY(0);
}

body[data-page-slug="index"] .content-shell {
  width: var(--index-shell);
  margin-inline: auto;
}

body[data-page-slug="index"] .topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  width: var(--index-shell);
  height: 70px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 9, 0.84);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(145%);
  transition:
    min-height 0.28s var(--index-ease),
    border-color 0.28s ease,
    background 0.28s ease;
}

body[data-page-slug="index"] .topbar.is-compact {
  min-height: 60px;
  height: 60px;
  border-color: var(--index-line);
  background: rgba(7, 7, 9, 0.95);
}

body[data-page-slug="index"] .navbar-logo {
  gap: 10px;
}

body[data-page-slug="index"] .navbar-logo .brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #ff145f, #7a133d);
  box-shadow:
    0 8px 24px rgba(255, 47, 136, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.08);
}

body[data-page-slug="index"] .brand-word {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body[data-page-slug="index"] .brand-word span {
  color: #c9cad1;
  font-weight: 400;
}

body[data-page-slug="index"] .navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page-slug="index"] .navbar-links a,
body[data-page-slug="index"] .btn-outline {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  border: 1px solid var(--index-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #c5c6ce;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--index-ease);
}

body[data-page-slug="index"] .navbar-links a:hover,
body[data-page-slug="index"] .navbar-links a.active,
body[data-page-slug="index"] .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.085);
  color: #fff;
}

body[data-page-slug="index"] .search-box {
  width: clamp(200px, 23vw, 340px);
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--index-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
}

body[data-page-slug="index"] .search-box:focus-within {
  border-color: rgba(38, 212, 223, 0.42);
  background: rgba(38, 212, 223, 0.055);
}

body[data-page-slug="index"] .search-box input {
  min-width: 0;
  color: #f5f5f8;
  font-size: 13px;
}

body[data-page-slug="index"] .search-box input::placeholder {
  color: #777985;
}

body[data-page-slug="index"] .search-box button {
  width: 40px;
  color: #bfc3ce;
}

body[data-page-slug="index"] .search-suggestions {
  top: calc(100% + 10px);
  border: 1px solid var(--index-line-strong);
  border-radius: 16px;
  background: rgba(17, 18, 22, 0.98);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

body[data-page-slug="index"] .coin-chip,
body[data-page-slug="index"] .bell-btn,
body[data-page-slug="index"] .user-trigger {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--index-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8d9df;
  gap: 7px;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--index-ease);
}

body[data-page-slug="index"] .coin-chip {
  border-color: rgba(255, 189, 56, 0.36);
  background: rgba(255, 189, 56, 0.08);
  color: var(--index-gold);
}

body[data-page-slug="index"] .coin-chip:hover,
body[data-page-slug="index"] .bell-btn:hover,
body[data-page-slug="index"] .user-trigger:hover {
  border-color: var(--index-line-strong);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

body[data-page-slug="index"] .mockup-home-shell {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 30px;
  gap: 40px;
}

body[data-page-slug="index"] .spotlight {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  position: relative;
  width: min(1680px, 100%);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--index-bg-deep);
}

body[data-page-slug="index"] .spot-track {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.45fr) minmax(0, 0.78fr);
  gap: 8px;
}

body[data-page-slug="index"] .spot-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0 18px 18px;
  isolation: isolate;
  background: #0a0a0d;
}

body[data-page-slug="index"] .spot-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

body[data-page-slug="index"] .spot-art .cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #351323, #08111b);
  color: rgba(255, 255, 255, 0.35);
  font-size: 36px;
}

body[data-page-slug="index"] .spot-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) brightness(0.7);
  transform:
    translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0)
    scale(1.035);
  transition:
    filter 0.5s ease,
    transform 5.5s linear;
}

body[data-page-slug="index"] .spot-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.34) 58%, rgba(4, 4, 6, 0.94) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 70%);
  content: "";
  pointer-events: none;
}

body[data-page-slug="index"] .spot-card:hover .spot-art img,
html.motion-enabled body[data-page-slug="index"] .spot-main .spot-art img {
  filter: saturate(1.05) brightness(0.82);
  transform:
    translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0)
    scale(1.075);
}

body[data-page-slug="index"] .spot-copy {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: auto;
  padding: 24px;
  gap: 9px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

body[data-page-slug="index"] .spot-main .spot-copy {
  padding: 34px 38px;
}

body[data-page-slug="index"] .spot-copy h2 {
  display: -webkit-box;
  max-width: 680px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page-slug="index"] .spot-side .spot-copy h2 {
  font-size: clamp(18px, 1.5vw, 26px);
}

body[data-page-slug="index"] .spot-copy p {
  margin: 0;
  color: #d3d4da;
  font-size: 13px;
}

body[data-page-slug="index"] .spot-badge {
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--index-pink), #ff4f68);
  box-shadow: 0 8px 24px rgba(255, 47, 136, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

body[data-page-slug="index"] .spot-cta {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--index-pink), #ff4f68);
  box-shadow: 0 10px 28px rgba(255, 47, 136, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

body[data-page-slug="index"] .spot-nav {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 7px;
}

body[data-page-slug="index"] .spot-nav button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(6, 6, 8, 0.7);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(9px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--index-ease);
}

body[data-page-slug="index"] .spot-nav button:hover {
  border-color: rgba(38, 212, 223, 0.45);
  background: rgba(38, 212, 223, 0.12);
  transform: translateY(-2px);
}

body[data-page-slug="index"] #mockup-most-popular[hidden] {
  display: none !important;
}

.index-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--index-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s var(--index-ease);
}

.index-button:hover {
  transform: translateY(-2px);
}

.index-button-ghost {
  background: rgba(255, 255, 255, 0.035);
  color: #d9dae0;
}

.index-button-ghost:hover {
  border-color: rgba(38, 212, 223, 0.34);
  background: rgba(38, 212, 223, 0.07);
  color: #e8fdff;
}

.index-button-primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--index-pink), #ff536c);
  box-shadow: 0 10px 28px rgba(255, 47, 136, 0.2);
  color: #fff;
}

.index-membership {
  position: relative;
  display: grid;
  min-height: 330px;
  padding: clamp(30px, 4vw, 62px);
  place-items: center start;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 56, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 83% 50%, rgba(255, 189, 56, 0.17), transparent 22rem),
    radial-gradient(circle at 62% 5%, rgba(255, 47, 136, 0.1), transparent 24rem),
    linear-gradient(135deg, #07101b, #15121b 60%, #2f230d);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.26);
}

.index-membership::after {
  position: absolute;
  right: -11%;
  bottom: -54%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.018),
    0 0 0 84px rgba(255, 255, 255, 0.012);
  content: "";
  pointer-events: none;
}

.index-membership-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 720px;
  gap: 15px;
}

.index-eyebrow {
  color: var(--index-cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.index-membership h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.index-membership p {
  max-width: 620px;
  margin: 0;
  color: #b7bac4;
  font-size: 14px;
}

.index-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.index-coin-orb {
  position: absolute;
  z-index: 1;
  right: clamp(42px, 9vw, 140px);
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 211, 104, 0.36);
  border-radius: 42px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.45), transparent 12%),
    linear-gradient(145deg, #ffdb69, #d98409 55%, #7b4300);
  box-shadow:
    0 35px 75px rgba(0, 0, 0, 0.35),
    inset 0 0 0 8px rgba(255, 255, 255, 0.14),
    inset 0 -16px 24px rgba(74, 38, 0, 0.3);
  color: #3b2100;
  transform: rotate(8deg);
}

.index-coin-orb span {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.index-coin-orb strong {
  margin-top: -52px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.index-section {
  display: grid;
  gap: 18px;
}

.index-section-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.index-section-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.index-section-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 47, 136, 0.28);
  border-radius: 12px;
  background: rgba(255, 47, 136, 0.08);
  color: #ff6ba9;
  font-size: 15px;
}

.index-section-icon.cyan {
  border-color: rgba(38, 212, 223, 0.26);
  background: rgba(38, 212, 223, 0.07);
  color: var(--index-cyan);
}

.index-section-icon.gold {
  border-color: rgba(255, 189, 56, 0.28);
  background: rgba(255, 189, 56, 0.08);
  color: var(--index-gold);
}

.index-section-head h2 {
  margin: 0;
  color: #f5f5f8;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.index-section-head p {
  margin: 2px 0 0;
  color: var(--index-muted);
  font-size: 12px;
}

.index-text-link {
  color: #bcbec7;
  font-size: 12px;
  text-decoration: none;
}

.index-text-link:hover {
  color: var(--index-cyan);
}

.index-announcement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.index-announcement-card {
  display: grid;
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px;
  align-items: center;
  border: 1px solid var(--index-line);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(255, 47, 136, 0.045), transparent 38%),
    rgba(12, 13, 17, 0.86);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  text-decoration: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--index-ease);
}

.index-announcement-card:hover {
  border-color: rgba(255, 47, 136, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 47, 136, 0.085), transparent 42%),
    rgba(14, 15, 20, 0.95);
  transform: translateY(-2px);
}

.index-announcement-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--index-pink), #8d194e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.index-announcement-marker.cyan {
  background: linear-gradient(135deg, var(--index-cyan), #1575cd);
}

.index-announcement-card div {
  min-width: 0;
}

.index-announcement-card strong {
  display: block;
  color: #f3f3f6;
  font-size: 14px;
  font-weight: 500;
}

.index-announcement-card p {
  margin: 3px 0 0;
  color: var(--index-muted);
  font-size: 11px;
}

.index-announcement-card > span:last-child {
  color: #aeb0b9;
  font-size: 10px;
  white-space: nowrap;
}

body[data-page-slug="index"] .latest-releases-panel {
  width: var(--index-shell);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-slug="index"] .latest-releases-head {
  align-items: center;
}

body[data-page-slug="index"] .latest-releases-title-wrap {
  align-items: center;
  gap: 14px;
}

body[data-page-slug="index"] .latest-releases-title-wrap h2 {
  color: #f5f5f8;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body[data-page-slug="index"] .release-switch {
  padding: 4px;
  border: 1px solid var(--index-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

body[data-page-slug="index"] .release-mode-btn {
  min-height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #999ba6;
  font-size: 12px;
  cursor: pointer;
}

body[data-page-slug="index"] .release-mode-btn.active {
  background: #2a3142;
  color: var(--index-pink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body[data-page-slug="index"] .latest-releases-more {
  border-color: var(--index-line);
  background: rgba(255, 255, 255, 0.025);
}

body[data-page-slug="index"] .latest-releases-subtitle {
  margin: 7px 0 17px;
  color: var(--index-muted);
  font-size: 12px;
}

body[data-page-slug="index"] .release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page-slug="index"] .release-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --image-shift-x: 0px;
  --image-shift-y: 0px;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--index-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 47, 136, 0.045), transparent 42%),
    rgba(10, 11, 14, 0.93);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
  grid-template-columns: minmax(164px, 44fr) minmax(0, 56fr);
  gap: 10px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

body[data-page-slug="index"] .release-card::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.13), transparent 36%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body[data-page-slug="index"] .release-card:hover,
body[data-page-slug="index"] .release-card.is-tilting {
  border-color: rgba(255, 47, 136, 0.28);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 47, 136, 0.08), transparent 44%),
    rgba(12, 13, 17, 0.98);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

body[data-page-slug="index"] .release-card.is-tilting::after {
  opacity: 0.72;
}

body[data-page-slug="index"] .release-poster {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--index-line);
  border-radius: 13px;
  background: #15161b;
}

body[data-page-slug="index"] .release-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(0, 0, 0, 0.24));
  content: "";
  pointer-events: none;
}

body[data-page-slug="index"] .release-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--image-shift-x), var(--image-shift-y), 0) scale(1.015);
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
}

body[data-page-slug="index"] .release-card:hover .release-poster img {
  filter: saturate(1.06);
  transform: translate3d(var(--image-shift-x), var(--image-shift-y), 0) scale(1.045);
}

body[data-page-slug="index"] .release-body {
  display: grid;
  min-width: 0;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 6px;
}

body[data-page-slug="index"] .release-title {
  display: -webkit-box;
  min-height: 36px;
  margin: 0;
  overflow: hidden;
  color: #f5f5f8;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page-slug="index"] .release-meta {
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}

body[data-page-slug="index"] .release-rating b {
  color: var(--index-gold);
}

body[data-page-slug="index"] .release-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #d4d5da;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-slug="index"] .release-status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--index-green);
  box-shadow: 0 0 8px rgba(32, 216, 133, 0.4);
  content: "";
}

body[data-page-slug="index"] .release-chapter-list {
  display: grid;
  grid-template-rows: repeat(5, minmax(28px, 1fr));
  gap: 4px;
}

body[data-page-slug="index"] .release-chapter {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 7px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--index-line);
  border-radius: 10px;
  background: rgba(9, 10, 13, 0.88);
  color: #d7d8de;
  font-size: 16px;
  gap: 8px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--index-ease);
}

body[data-page-slug="index"] .release-chapter:hover {
  border-color: rgba(38, 212, 223, 0.25);
  background: rgba(38, 212, 223, 0.055);
  transform: translateX(2px);
}

body[data-page-slug="index"] .release-chapter strong {
  min-width: 0;
  overflow: hidden;
  color: #f0f1f5;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-slug="index"] .release-chapter-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body[data-page-slug="index"] .release-access {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

body[data-page-slug="index"] .release-access.paid {
  color: var(--index-gold);
}

body[data-page-slug="index"] .release-access.free {
  color: var(--index-green);
}

body[data-page-slug="index"] .release-chapter time {
  max-width: 78px;
  overflow: hidden;
  color: #a4a6b0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-slug="index"] .release-chapter.latest {
  border-color: rgba(255, 47, 136, 0.28);
}

body[data-page-slug="index"] .release-chapter.latest strong {
  color: var(--index-gold);
}

body[data-page-slug="index"] .more-row {
  width: var(--index-shell);
  margin: -26px auto 0;
}

body[data-page-slug="index"] .more-row a {
  border: 1px solid var(--index-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c7c8ce;
}

.index-ranking-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--index-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  gap: 4px;
}

.index-ranking-tabs .hot-tab-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #999ba6;
  cursor: pointer;
  font-size: 11px;
}

.index-ranking-tabs .hot-tab-btn.active {
  background: rgba(255, 189, 56, 0.11);
  color: var(--index-gold);
}

.index-ranking-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  list-style: none;
}

.index-ranking-grid > li:not(.hot-board-empty) {
  min-width: 0;
}

.index-ranking-grid .hot-board-item {
  display: grid;
  min-width: 0;
  min-height: 104px;
  padding: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  grid-template-columns: 42px 62px minmax(0, 1fr);
  gap: 11px;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--index-ease);
}

.index-ranking-grid .hot-board-item:hover {
  border-color: var(--index-line);
  background: rgba(255, 255, 255, 0.025);
  transform: translateX(3px);
}

.index-ranking-grid .hot-board-no {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-align: center;
}

.index-ranking-grid li:nth-child(-n + 3) .hot-board-no {
  color: var(--index-gold);
}

.index-ranking-grid .hot-board-cover {
  position: relative;
  width: 62px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--index-line);
  border-radius: 9px;
  background: #12131a;
}

.index-ranking-grid .hot-board-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-ranking-grid .hot-board-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.index-ranking-grid .hot-board-name {
  overflow: hidden;
  color: #f2f2f5;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-ranking-grid .hot-board-translator,
.index-ranking-grid .hot-board-foot {
  color: var(--index-muted);
  font-size: 10px;
}

.index-ranking-grid .hot-board-rate {
  display: none;
}

.index-ranking-grid .hot-board-views {
  color: #b6bac4;
}

.hot-board-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--index-line);
  border-radius: 14px;
  color: var(--index-muted);
  text-align: center;
}

.index-updates-list {
  display: grid;
  gap: 8px;
}

.index-updates-list .latest-chapter-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 8px 14px;
  align-items: center;
  border: 1px solid var(--index-line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 47, 136, 0.035), transparent 28%),
    rgba(10, 10, 14, 0.9);
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  text-decoration: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--index-ease);
}

.index-updates-list .latest-chapter-card:hover {
  border-color: rgba(255, 47, 136, 0.32);
  background:
    linear-gradient(90deg, rgba(255, 47, 136, 0.08), transparent 34%),
    rgba(13, 13, 18, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
  transform: translateX(3px);
}

.index-updates-list .latest-chapter-cover {
  position: relative;
  width: 54px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--index-line);
  border-radius: 9px;
  background: #12131a;
}

.index-updates-list .latest-chapter-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--index-ease);
}

.index-updates-list .latest-chapter-card:hover .latest-chapter-cover img {
  transform: scale(1.045);
}

.index-updates-list .latest-chapter-info {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr) minmax(190px, 0.6fr);
  align-items: center;
  gap: 14px;
}

.index-updates-list .latest-chapter-series,
.index-updates-list .latest-chapter-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-updates-list .latest-chapter-series {
  color: #f0f1f5;
  font-size: 15px;
  font-weight: 600;
}

.index-updates-list .latest-chapter-title {
  color: #f0f1f5;
  font-size: 14px;
  font-weight: 500;
}

.index-updates-list .latest-chapter-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--index-muted);
  font-size: 11px;
}

.index-updates-list .latest-chapter-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-slug="index"] .mockup-footer {
  display: flex;
  padding: 26px 0 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--index-line);
  color: var(--index-muted);
  font-size: 11px;
}

body[data-page-slug="index"] .mockup-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body[data-page-slug="index"] .mockup-footer a:hover {
  color: var(--index-cyan);
}

.index-deferred {
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}

.index-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--index-ease),
    transform 0.6s var(--index-ease);
}

.index-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: index-content-in 0.55s var(--index-ease) both;
}

@keyframes index-content-in {
  from {
    opacity: 0.72;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1181px) and (max-width: 1279px) {
  body[data-page-slug="index"] .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-slug="index"] .release-card {
    grid-template-columns: minmax(180px, 40fr) minmax(0, 60fr);
  }
}

@media (max-width: 1180px) {
  body[data-page-slug="index"] .navbar-links a {
    padding-inline: 11px;
  }

  body[data-page-slug="index"] .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-slug="index"] .release-card {
    grid-template-columns: minmax(180px, 40fr) minmax(0, 60fr);
  }

  .index-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --index-shell: min(100% - 24px, 820px);
  }

  body[data-page-slug="index"] .navbar-links {
    display: none;
  }

  body[data-page-slug="index"] .search-box {
    width: min(260px, 34vw);
  }

  body[data-page-slug="index"] .spotlight,
  body[data-page-slug="index"] .spot-track,
  body[data-page-slug="index"] .spot-card {
    min-height: 480px;
  }

  body[data-page-slug="index"] .spot-track {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 1.45fr) minmax(0, 0.52fr);
  }

  body[data-page-slug="index"] .spot-side .spot-copy p {
    display: none;
  }

  body[data-page-slug="index"] .release-card {
    grid-template-columns: minmax(164px, 45fr) minmax(0, 55fr);
  }

  .index-coin-orb {
    right: 35px;
    width: 135px;
  }

  .index-updates-list .latest-chapter-info {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr);
  }

  .index-updates-list .latest-chapter-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --index-shell: calc(100% - 24px);
  }

  body[data-page-slug="index"] {
    font-size: 15px;
  }

  body[data-page-slug="index"] .topbar {
    width: 100%;
    height: 62px;
    min-height: 62px;
    padding: 0 12px;
    gap: 7px;
  }

  body[data-page-slug="index"] .brand-word {
    display: none;
  }

  body[data-page-slug="index"] .navbar-logo .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  body[data-page-slug="index"] .search-box {
    width: 42px;
    height: 40px;
    margin-left: auto;
    padding: 0;
  }

  body[data-page-slug="index"] .search-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-page-slug="index"] .search-box button,
  body[data-page-slug="index"] .coin-chip,
  body[data-page-slug="index"] .bell-btn,
  body[data-page-slug="index"] .user-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  body[data-page-slug="index"] .coin-chip span {
    display: none;
  }

  body[data-page-slug="index"] .btn-outline {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  body[data-page-slug="index"] .mockup-home-shell {
    gap: 30px;
  }

  body[data-page-slug="index"] .spotlight {
    min-height: 0;
  }

  body[data-page-slug="index"] .spot-track {
    display: flex;
    min-height: 0;
    gap: 0;
    transition: transform 0.55s var(--index-ease);
  }

  body[data-page-slug="index"] .spot-card {
    min-width: 100%;
    min-height: 510px;
    flex: 0 0 100%;
    border-inline: 0;
    border-radius: 0 0 18px 18px;
  }

  body[data-page-slug="index"] .spot-side {
    display: none;
  }

  body[data-page-slug="index"] .spot-main {
    display: grid;
  }

  body[data-page-slug="index"] .spot-main .spot-copy {
    padding: 24px 18px 26px;
  }

  body[data-page-slug="index"] .spot-copy h2,
  body[data-page-slug="index"] .spot-side .spot-copy h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  body[data-page-slug="index"] .spot-nav {
    right: 14px;
    bottom: 14px;
  }

  .index-announcement-list {
    grid-template-columns: 1fr;
  }

  .index-membership {
    min-height: 390px;
    padding: 30px 20px 145px;
    place-items: start;
  }

  .index-membership h2 {
    font-size: 34px;
  }

  .index-membership p {
    font-size: 12px;
  }

  .index-coin-orb {
    right: 20px;
    bottom: 18px;
    width: 112px;
    border-radius: 27px;
  }

  .index-coin-orb span {
    font-size: 26px;
  }

  .index-coin-orb strong {
    margin-top: -34px;
    font-size: 9px;
  }

  .index-section-head {
    align-items: center;
  }

  .index-section-head h2 {
    font-size: 21px;
  }

  .index-section-head p,
  .index-text-link {
    display: none;
  }

  body[data-page-slug="index"] .latest-releases-title-wrap {
    display: grid;
    gap: 10px;
  }

  body[data-page-slug="index"] .latest-releases-title-wrap h2 {
    font-size: 23px;
  }

  body[data-page-slug="index"] .latest-releases-more {
    display: none;
  }

  body[data-page-slug="index"] .release-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-slug="index"] .release-card {
    min-height: 0;
    padding: 8px;
    grid-template-columns: minmax(132px, 39fr) minmax(0, 61fr);
    gap: 9px;
  }

  body[data-page-slug="index"] .release-poster {
    aspect-ratio: 3 / 4;
  }

  body[data-page-slug="index"] .release-title {
    min-height: 36px;
    font-size: 18px;
  }

  body[data-page-slug="index"] .release-meta {
    font-size: 13px;
  }

  body[data-page-slug="index"] .release-status {
    font-size: 12px;
  }

  body[data-page-slug="index"] .release-chapter {
    min-height: 37px;
    padding-inline: 8px;
    gap: 5px;
  }

  body[data-page-slug="index"] .release-chapter-list {
    grid-template-rows: repeat(3, minmax(37px, 1fr));
  }

  body[data-page-slug="index"] .release-chapter-list .release-chapter:nth-child(n + 4) {
    display: none;
  }

  body[data-page-slug="index"] .release-chapter strong {
    font-size: 16px;
  }

  body[data-page-slug="index"] .release-access {
    font-size: 10px;
  }

  body[data-page-slug="index"] .release-chapter time {
    max-width: 55px;
    font-size: 12px;
  }

  .index-ranking-tabs .hot-tab-btn {
    min-height: 34px;
    padding-inline: 9px;
  }

  .index-ranking-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .index-ranking-grid .hot-board-item {
    min-height: 86px;
    padding: 7px 4px;
    border-bottom: 1px solid var(--index-line);
    border-radius: 0;
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .index-ranking-grid .hot-board-no {
    font-size: 25px;
  }

  .index-ranking-grid .hot-board-cover {
    width: 52px;
  }

  .index-updates-list .latest-chapter-card {
    min-height: 78px;
    padding: 7px 9px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .index-updates-list .latest-chapter-cover {
    width: 48px;
  }

  .index-updates-list .latest-chapter-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .index-updates-list .latest-chapter-series {
    font-size: 14px;
  }

  .index-updates-list .latest-chapter-title {
    color: var(--index-gold);
    font-size: 13px;
  }

  .index-updates-list .latest-chapter-meta {
    display: flex;
    justify-content: flex-start;
    font-size: 10px;
  }

  .index-updates-list .latest-chapter-meta span:first-child {
    display: none;
  }

  body[data-page-slug="index"] .mockup-footer {
    display: grid;
    gap: 12px;
  }
}

@media (pointer: coarse) {
  body[data-page-slug="index"] .release-card {
    transform: none !important;
  }

  body[data-page-slug="index"] .release-card::after {
    display: none;
  }

  body[data-page-slug="index"] .release-card:active,
  .index-announcement-card:active,
  .index-ranking-grid .hot-board-item:active {
    transform: scale(0.987);
  }
}

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

  .index-reveal {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms;
  }

  body[data-page-slug="index"] .spot-art img,
  body[data-page-slug="index"] .release-card,
  body[data-page-slug="index"] .release-poster img {
    transition-duration: 0.12s;
  }
}
