:root {
  --bg: #05070c;
  --bg-2: #0a0f18;
  --panel: #111a27;
  --panel-strong: #172232;
  --line: rgba(122, 154, 190, 0.18);
  --cyan: #51c6d8;
  --green: #54d98c;
  --orange: #e7a744;
  --purple: #7c5cff;
  --text: #f8fafc;
  --muted: #b9c3d1;
  --dim: #788596;
  --danger: #fb7185;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  --content-width: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 6%, rgba(72, 119, 93, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(71, 118, 142, 0.12), transparent 30%),
    linear-gradient(165deg, #05070c 0%, #080d15 45%, #0c121b 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 26%, rgba(84, 217, 140, 0.08), transparent 28%),
    radial-gradient(circle at 88% 44%, rgba(231, 167, 68, 0.06), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 34%);
  opacity: 0.58;
  pointer-events: none;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 39, 0.94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.brand,
.desktop-nav,
.accelerator-cell,
.feature-tile,
.section-heading,
.score-line,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(rgba(5, 10, 18, 0.86), rgba(5, 10, 18, 0.86)) padding-box,
    linear-gradient(135deg, #0ea5e9 0%, #20f4ff 28%, #2af598 68%, #d7f923 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(34, 211, 238, 0.12),
    0 0 22px rgba(34, 211, 238, 0.14),
    0 0 30px rgba(42, 245, 152, 0.1);
  overflow: hidden;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.brand-mark img + .brand-bolt {
  display: none;
}

.brand-mark img:not([src]),
.brand-mark img[src=""] {
  display: none;
}

.brand-mark img:not([src]) + .brand-bolt,
.brand-mark img[src=""] + .brand-bolt {
  display: block;
}

.brand-bolt {
  width: 15px;
  height: 26px;
  background: var(--green);
  clip-path: polygon(56% 0, 100% 0, 62% 42%, 100% 42%, 38% 100%, 48% 56%, 0 56%);
  filter: drop-shadow(0 0 9px rgba(42, 245, 152, 0.8));
}

.brand-text {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.desktop-nav {
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 39, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mobile-nav a {
  padding: 14px 10px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 24px auto 0;
  padding: 80px 40px 64px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 72%, rgba(84, 217, 140, 0.16), transparent 26%),
    radial-gradient(circle at 70% 18%, rgba(81, 198, 216, 0.1), transparent 28%),
    linear-gradient(180deg, #101926, #08101a 62%, #06090f);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-visual::before {
  inset: -24% 0 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 1.2px 46px at 18px 68px, rgba(92, 232, 244, 0.38) 0 62%, transparent 72%),
    radial-gradient(ellipse 1.5px 58px at 54px 146px, rgba(73, 245, 197, 0.3) 0 58%, transparent 70%),
    radial-gradient(ellipse 1.2px 72px at 132px 92px, rgba(172, 237, 255, 0.28) 0 56%, transparent 68%);
  background-size: 96px 280px, 148px 340px, 220px 460px;
  background-position: 8px 0, 48px -120px, 126px -220px;
  opacity: 0.48;
  animation: dataRain 3.4s linear infinite;
}

.hero-visual::after {
  left: 0;
  right: 0;
  bottom: -4%;
  z-index: 1;
  height: 44%;
  background:
    radial-gradient(ellipse at 76% 64%, rgba(84, 217, 140, 0.14), transparent 24%),
    radial-gradient(ellipse at 42% 74%, rgba(81, 198, 216, 0.08), transparent 28%),
    linear-gradient(180deg, transparent, rgba(2, 14, 25, 0.78) 58%, rgba(3, 19, 30, 0.94));
  opacity: 0.58;
}

.speed-lanes {
  position: absolute;
  inset: -18% -4% 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 1.2px 42px at 14px 76px, rgba(92, 232, 244, 0.3) 0 58%, transparent 70%),
    radial-gradient(ellipse 1.6px 64px at 38px 38px, rgba(73, 245, 197, 0.22) 0 56%, transparent 68%),
    radial-gradient(ellipse 1px 52px at 82px 210px, rgba(172, 237, 255, 0.2) 0 60%, transparent 72%);
  background-size: 72px 240px, 116px 320px, 176px 400px;
  background-position: 0 0, 28px -80px, 80px -160px;
  opacity: 0.38;
  filter: drop-shadow(0 0 5px rgba(92, 232, 244, 0.26));
  animation: dataRainFast 2.7s linear infinite;
}

.grid-plane {
  display: none;
}

.signal-ring {
  position: absolute;
  right: 14%;
  bottom: 19%;
  z-index: 3;
  border: 1px solid rgba(96, 165, 250, 0.44);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.16);
  transform: rotateX(68deg) scale(0.34);
  opacity: 0;
  animation: rainRipple 4.2s ease-out infinite;
}

.ring-a {
  width: 420px;
  height: 240px;
}

.ring-b {
  right: 33%;
  bottom: 12%;
  width: 260px;
  height: 150px;
  border-color: rgba(34, 211, 238, 0.34);
  animation-duration: 3.6s;
  animation-delay: -1.35s;
}

.energy-core {
  position: absolute;
  right: 8%;
  bottom: 8%;
  z-index: 3;
  width: 170px;
  height: 96px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.14);
  transform: rotateX(68deg) scale(0.3);
  opacity: 0;
  animation: rainRipple 3.2s ease-out infinite;
  animation-delay: -2.15s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.08em;
}

.hero-title-emphasis {
  background: linear-gradient(135deg, #5ce8f4 0%, #49f5c5 48%, #d7ff74 100%);
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(73, 245, 197, 0.16);
}

.hero-subtitle {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.hero-subtitle strong {
  color: #5ce8f4;
  font-weight: 1000;
  text-shadow: 0 0 22px rgba(92, 232, 244, 0.18);
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.search-panel {
  display: flex;
  width: min(720px, 100%);
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(92, 232, 244, 0.26);
  border-radius: 12px;
  background: rgba(246, 250, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 34px rgba(92, 232, 244, 0.08);
  backdrop-filter: blur(10px);
}

.search-panel:focus-within {
  border-color: rgba(42, 245, 152, 0.58);
  box-shadow: 0 0 0 4px rgba(42, 245, 152, 0.1), 0 0 38px rgba(34, 211, 238, 0.14);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.search-panel input::placeholder {
  color: #8295bb;
}

.search-panel button,
.rank-card a {
  border: 0;
  border-radius: 8px;
  background: #252525;
  color: #f8fafc;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.search-panel button {
  min-width: 118px;
  padding: 0 22px;
  font-size: 18px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.quick-tags-label {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.quick-tags button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.quick-tags button:hover {
  border-color: rgba(42, 245, 152, 0.68);
  color: var(--text);
  transform: translateY(-1px);
}

.search-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 700;
}

.feature-strip,
.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-tile {
  gap: 14px;
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.feature-tile:hover {
  border-color: rgba(42, 245, 152, 0.42);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(42, 245, 152, 0.14);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.feature-icon.accent {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.feature-icon.warm {
  background: rgba(255, 176, 32, 0.16);
  color: var(--orange);
}

.feature-icon.image-icon {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.34);
  color: transparent;
}

.feature-icon.image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-tile strong,
.feature-tile small {
  display: block;
}

.feature-tile strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.feature-tile small {
  color: var(--dim);
  font-weight: 700;
}

.section-block {
  padding: 56px 0 0;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading > p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cdk-section .section-heading {
  display: block;
}

.cdk-section .section-heading > p {
  max-width: none;
  margin-top: 12px;
  white-space: nowrap;
}

.cdk-board {
  display: grid;
  gap: 12px;
}

.cdk-row {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 1.1fr 0.8fr 120px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cdk-row.is-hidden {
  display: none;
}

.cdk-row:hover {
  border-color: rgba(42, 245, 152, 0.42);
  background: var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.cdk-row.copied {
  border-color: rgba(42, 245, 152, 0.82);
  box-shadow: 0 0 34px rgba(42, 245, 152, 0.22);
}

.cdk-row.is-search-match,
.rank-card.is-search-match,
.podium-card.is-search-match,
.rank-list-item.is-search-match,
.news-card.is-search-match,
.news-list-card.is-search-match {
  border-color: rgba(42, 245, 152, 0.82);
  background: rgba(20, 42, 50, 0.84);
  box-shadow:
    0 0 0 1px rgba(42, 245, 152, 0.16),
    0 0 34px rgba(42, 245, 152, 0.2);
  scroll-margin-top: 96px;
}

.accelerator-cell {
  gap: 12px;
  min-width: 0;
}

.accelerator-cell strong,
.accelerator-cell small {
  display: block;
}

.accelerator-cell strong {
  margin-bottom: 4px;
  font-size: 17px;
}

.accelerator-cell small {
  color: var(--dim);
  font-weight: 700;
}

.logo-orb {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #061018;
  font-weight: 1000;
  overflow: hidden;
}

.logo-orb.logo-image {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.logo-orb.logo-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-orb.logo-image .logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22d3ee, #2af598);
}

.logo-orb.logo-image img + .logo-fallback {
  display: none;
}

.logo-orb.logo-image img:not([src]),
.logo-orb.logo-image img[src=""] {
  display: none;
}

.logo-orb.logo-image img:not([src]) + .logo-fallback,
.logo-orb.logo-image img[src=""] + .logo-fallback {
  display: grid;
}

.thunder {
  background: linear-gradient(135deg, #ffb020, #ff6a00);
}

.uu {
  background: linear-gradient(135deg, #22d3ee, #1338ff);
  color: #eaffff;
}

.xunyou {
  background: linear-gradient(135deg, #2af598, #0c8060);
}

.qiyou {
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #fff;
}

.benefit,
.validity {
  color: var(--muted);
  font-weight: 800;
}

.validity {
  color: var(--green);
}

.validity.limit {
  color: var(--orange);
}

.code-wrap {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.code-wrap small {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.code-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.72);
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(42, 245, 152, 0.12);
  overflow: hidden;
}

.cdk-row:hover .code-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 1.2s ease;
}

.cdk-row.copied .code-chip {
  animation: chipFlash 0.7s ease;
}

.tutorial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--cyan);
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(14px);
}

.tutorial-button:hover {
  border-color: rgba(42, 245, 152, 0.58);
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
}

.ranking-grid,
.news-grid {
  display: grid;
  gap: 14px;
}

.ranking-grid {
  grid-template-columns: repeat(3, 1fr);
}

.rank-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.rank-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
}

.rank-card.top {
  border-color: rgba(255, 176, 32, 0.34);
}

.rank-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--orange);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 38px;
  font-weight: 1000;
}

.rank-card h3,
.news-card h3 {
  margin-bottom: 10px;
}

.rank-card p,
.news-card p {
  color: var(--muted);
  line-height: 1.7;
}

.score-line {
  justify-content: space-between;
  margin: 26px 0 18px;
  color: var(--dim);
  font-weight: 800;
}

.score-line strong {
  color: var(--green);
  font-size: 28px;
}

.rank-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  overflow: hidden;
}

.news-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  background-size: cover;
  background-position: center;
}

.image-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-a {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.82), rgba(124, 92, 255, 0.5)),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, 0.15) 15px 16px);
}

.cover-b {
  background:
    linear-gradient(135deg, rgba(42, 245, 152, 0.74), rgba(34, 211, 238, 0.35)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.16) 19px 20px);
}

.cover-c {
  background:
    linear-gradient(135deg, rgba(255, 176, 32, 0.74), rgba(124, 92, 255, 0.38)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.14) 17px 18px);
}

.news-card h3,
.news-card p {
  padding: 0 18px;
}

.news-card h3 {
  margin-top: 18px;
  line-height: 1.45;
}

.news-card p {
  margin-bottom: 20px;
}

.page-hero,
.ranking-tabs,
.podium-section,
.rules-panel,
.news-toolbar,
.news-list-grid,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 330px;
  padding: 58px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 36%, rgba(84, 217, 140, 0.12), transparent 28%),
    linear-gradient(135deg, #121d2a, #080d15);
  box-shadow: var(--shadow);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 34%, rgba(231, 167, 68, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(81, 198, 216, 0.05), transparent 42%);
  opacity: 1;
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 72px);
}

.hero-stat-panel {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 22px;
  border: 1px solid rgba(122, 154, 190, 0.2);
  border-radius: 8px;
  background: rgba(17, 26, 39, 0.84);
  backdrop-filter: blur(10px);
}

.hero-stat-panel span,
.hero-stat-panel small {
  color: var(--muted);
  font-weight: 800;
}

.hero-stat-panel strong {
  color: var(--green);
  font-size: 54px;
  line-height: 1;
}

.ranking-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.ranking-tabs.compact {
  width: auto;
  margin: 0;
}

.ranking-tabs::-webkit-scrollbar {
  display: none;
}

.ranking-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #111a27;
  color: var(--muted);
  font-weight: 900;
}

.ranking-tabs button.active,
.ranking-tabs button:hover {
  border-color: rgba(42, 245, 152, 0.54);
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
}

.podium-section {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 16px;
  padding-top: 34px;
}

.podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}

.podium-card.first {
  min-height: 370px;
  border-color: rgba(255, 176, 32, 0.42);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 176, 32, 0.16), transparent 28%),
    var(--panel-strong);
}

.podium-card.is-hidden,
.rank-list-item.is-hidden,
.news-list-card.is-hidden {
  display: none;
}

.podium-card .logo-orb {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
  margin: 28px 0 18px;
  font-size: 30px;
}

.podium-card.first .logo-orb {
  width: 118px;
  height: 118px;
  flex-basis: 118px;
  font-size: 36px;
}

.medal {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #061018;
  font-weight: 1000;
}

.podium-card.first .medal {
  background: linear-gradient(135deg, #ffd56a, var(--orange));
}

.podium-card h2 {
  margin-bottom: 8px;
}

.podium-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rank-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
}

.rank-metrics span,
.score-pill,
.heat-pill,
.tag,
.article-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-weight: 900;
}

.podium-card a,
.rank-list-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--green), #18d1c4);
  color: #061018;
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-list-item {
  display: grid;
  grid-template-columns: 54px 58px 1fr auto auto 100px;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.list-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 1000;
}

.rank-list-item h3 {
  margin-bottom: 4px;
}

.rank-list-item p {
  margin: 0;
  color: var(--muted);
}

.score-pill {
  color: var(--green);
}

.heat-pill {
  color: var(--orange);
  background: rgba(255, 176, 32, 0.1);
}

.rules-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.rule-grid span {
  min-height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(8, 11, 18, 0.3);
}

.rules-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.news-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.sort-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-weight: 900;
  white-space: nowrap;
}

.sort-links a:hover {
  color: var(--cyan);
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.news-list-card:hover .news-cover {
  transform: scale(1.04);
}

.news-list-card .news-cover {
  transition: transform 0.24s ease;
}

.news-list-card .tag {
  margin: 16px 16px 0;
}

.tag.green {
  color: var(--green);
  background: rgba(42, 245, 152, 0.1);
}

.tag.orange {
  color: var(--orange);
  background: rgba(255, 176, 32, 0.1);
}

.news-list-card h2 {
  margin: 14px 16px 10px;
  font-size: 21px;
  line-height: 1.45;
}

.news-list-card p {
  margin: 0 16px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 16px 18px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.cover-d {
  background:
    linear-gradient(135deg, rgba(255, 75, 118, 0.72), rgba(34, 211, 238, 0.38)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.14) 17px 18px);
}

.cover-e {
  background:
    linear-gradient(135deg, rgba(42, 245, 152, 0.62), rgba(8, 11, 18, 0.4)),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255, 255, 255, 0.16) 21px 22px);
}

.cover-f {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.72), rgba(255, 176, 32, 0.38)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.12) 19px 20px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.detail-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--content-width);
}

.detail-article,
.detail-sidebar .side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-article {
  padding: clamp(24px, 4vw, 42px);
}

.detail-header h1 {
  margin-top: 16px;
  font-size: clamp(32px, 5vw, 52px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dim);
  font-weight: 800;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 26px;
}

.article-actions span,
.article-actions strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-weight: 900;
}

.article-actions span:first-child {
  background: rgba(251, 113, 133, 0.12);
  color: #fb7185;
}

.article-actions strong {
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.32);
  color: var(--muted);
}

.article-divider {
  width: 54px;
  height: 4px;
  margin: 42px 0 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 20px rgba(42, 245, 152, 0.26);
}

.lead,
.detail-article p,
.detail-article li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.strong-lead {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.cdk-callout {
  margin: 0 0 36px;
  color: var(--green);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 1000;
  text-align: center;
}

.cdk-callout strong {
  color: #22ff3a;
}

.tutorial-quote {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  margin: 28px 0 42px;
  border-radius: 8px;
  padding: 28px;
  background: rgba(96, 36, 45, 0.28);
}

.tutorial-quote > span {
  color: #ef4444;
  font-size: 64px;
  font-weight: 1000;
  line-height: 0.9;
}

.tutorial-quote p {
  margin: 0;
  color: #cc4848;
  font-size: clamp(18px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.85;
}

.tutorial-quote strong {
  color: #ff3b3b;
}

.resource-line {
  color: var(--text);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
}

.resource-line a {
  color: #20d3aa;
  overflow-wrap: anywhere;
}

.tutorial-image {
  margin: 28px 0;
}

.tutorial-image img {
  display: block;
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.4);
}

.detail-article h2 {
  margin-top: 36px;
}

.article-image {
  overflow: hidden;
  min-height: 360px;
  margin: 28px 0;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
}

.article-image.image-cover {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 960px;
}

.article-content * {
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 14px;
  color: var(--text) !important;
  line-height: 1.35;
}

.article-content h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.article-content h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.article-content p,
.article-content li {
  margin: 14px 0;
  color: var(--muted) !important;
}

.article-content table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 8px;
}

.article-content th,
.article-content td {
  border: 1px solid rgba(34, 211, 238, 0.12);
  padding: 12px 14px;
  color: var(--muted) !important;
  text-align: left;
}

.article-content th {
  color: var(--text) !important;
  font-weight: 900;
}

.article-content code {
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 8px;
}

.inline-code {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tip-box {
  margin: 26px 0;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(42, 245, 152, 0.08);
  color: var(--text);
  font-weight: 800;
}

.article-end {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.article-social {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 90px);
  margin-top: 58px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.detail-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.side-panel a {
  display: block;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  padding: 12px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.side-panel a:hover {
  color: var(--cyan);
}

.site-footer {
  align-items: center;
  flex-direction: column;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 68px auto 30px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(34, 211, 238, 0.14);
  color: var(--dim);
  line-height: 1.6;
  text-align: center;
}

.footer-nav,
.footer-contact,
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav {
  gap: 10px 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.footer-summary {
  max-width: 760px;
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

.footer-contact {
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
}

.footer-contact > span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.footer-contact span[aria-hidden="true"] {
  color: rgba(120, 133, 150, 0.62);
}

.footer-legal {
  gap: 10px 16px;
  color: rgba(120, 133, 150, 0.86);
  font-size: 13px;
}

.site-footer a {
  color: var(--dim);
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

.footer-nav a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.article-shell {
  width: min(900px, calc(100% - 32px));
  margin: 48px auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--cyan);
  font-weight: 900;
}

.article-panel {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-panel h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.article-panel h2 {
  margin-top: 34px;
  color: var(--text);
}

.article-panel li,
.article-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.article-panel li + li {
  margin-top: 8px;
}

.toast {
  position: fixed;
  left: 22px;
  top: 22px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  max-width: min(560px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(42, 245, 152, 0.4);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.9);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 0 28px rgba(42, 245, 152, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast span {
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dataRainFast {
  from {
    background-position: 0 -460px, 28px -540px, 80px -620px, 160px -720px;
  }

  to {
    background-position: 0 0, 28px 0, 80px 0, 160px 0;
  }
}

@keyframes dataRain {
  from {
    background-position: 8px -420px, 48px -520px, 126px -640px;
  }

  to {
    background-position: 8px 0, 48px 0, 126px 0;
  }
}

@keyframes waterSurface {
  0%,
  100% {
    background-position: 0 0, 0 0, center;
    opacity: 0.26;
  }

  50% {
    background-position: 18px 12px, 18px 12px, center;
    opacity: 0.38;
  }
}

@keyframes rainRipple {
  0% {
    opacity: 0;
    transform: rotateX(68deg) scale(0.26);
  }

  18% {
    opacity: 0.66;
  }

  70% {
    opacity: 0.22;
  }

  100% {
    opacity: 0;
    transform: rotateX(68deg) scale(1.14);
  }
}

@keyframes chipFlash {
  0% {
    box-shadow: inset 0 0 18px rgba(42, 245, 152, 0.12);
  }

  45% {
    box-shadow: inset 0 0 24px rgba(42, 245, 152, 0.52), 0 0 24px rgba(42, 245, 152, 0.32);
  }

  100% {
    box-shadow: inset 0 0 18px rgba(42, 245, 152, 0.12);
  }
}

@keyframes sweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .speed-lanes,
  .grid-plane,
  .signal-ring,
  .energy-core,
  .hero-visual::before,
  .hero-visual::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 58px 24px 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .energy-core,
  .signal-ring {
    opacity: 0.5;
  }

  .feature-strip,
  .ranking-grid,
  .news-grid,
  .news-list-grid,
  .podium-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 44px 24px;
  }

  .hero-stat-panel {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cdk-section .section-heading > p {
    white-space: normal;
  }

  .rank-list-item {
    grid-template-columns: 46px 54px 1fr;
  }

  .rank-list-item .score-pill,
  .rank-list-item .heat-pill,
  .rank-list-item a {
    grid-column: 3;
    justify-self: start;
  }

  .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-sidebar {
    position: static;
  }

  .cdk-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .tutorial-button {
    width: 100%;
  }

  .site-footer {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .mobile-nav,
  .hero,
  .page-hero,
  .feature-strip,
  .section-block,
  .site-footer,
  .ranking-tabs,
  .podium-section,
  .rules-panel,
  .news-toolbar,
  .news-list-grid,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

  .footer-nav {
    gap: 8px 14px;
    font-size: 14px;
  }

  .footer-summary,
  .footer-contact {
    font-size: 13px;
  }

  .footer-contact,
  .footer-legal {
    flex-direction: column;
    gap: 2px;
  }

  .nav-shell {
    min-height: 64px;
    margin-top: 12px;
    padding: 10px 12px;
  }

  .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .brand-text {
    max-width: 210px;
    font-size: 15px;
  }

  .mobile-nav.open {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    margin-top: 14px;
    padding: 44px 18px 34px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .search-panel {
    min-height: 58px;
    border-radius: 16px;
  }

  .search-panel input {
    padding: 0 12px;
    font-size: 15px;
  }

  .search-panel button {
    min-width: 76px;
    padding: 0 14px;
  }

  .feature-tile {
    min-height: 84px;
  }

  .page-hero {
    padding: 34px 18px;
  }

  .ranking-tabs {
    position: sticky;
    top: 74px;
    z-index: 12;
    background: rgba(8, 11, 18, 0.72);
    backdrop-filter: blur(12px);
  }

  .podium-card {
    min-height: auto;
    padding: 24px 18px;
  }

  .podium-card.first {
    min-height: auto;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .rank-list-item {
    gap: 12px;
    padding: 14px;
  }

  .rank-list-item p {
    font-size: 14px;
  }

  .news-list-card h2 {
    font-size: 19px;
  }

  .article-image {
    min-height: 220px;
  }

  .cdk-row {
    padding: 15px;
  }

  .code-chip,
  .code-wrap {
    width: 100%;
  }

  .code-chip {
    min-width: 0;
  }
}
