/* Null.Team - dark cinematic premium (AAA publisher) */

:root {
  --void: #05070c;
  --void-elevated: #0a0f18;
  --void-panel: #0e1522;
  --ink: #e8eef7;
  --ink-muted: #8b9bb0;
  --ink-faint: #5a6a7e;
  --accent: #70c0e8;
  --accent-deep: #4898c0;
  --accent-soft: rgba(112, 192, 232, 0.14);
  --accent-glow: rgba(112, 192, 232, 0.35);
  --line: rgba(232, 238, 247, 0.08);
  --line-strong: rgba(232, 238, 247, 0.16);
  --metal-1: #d7dee8;
  --metal-2: #9aa7b8;
  --metal-3: #6d7a8c;
  --rank-up: #3dd68c;
  --rank-down: #ff6b7a;
  --surface: rgba(14, 21, 34, 0.88);
  --surface-solid: #0e1522;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --nav-h: 68px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-ui: "Sora", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --frame: linear-gradient(135deg, rgba(112, 192, 232, 0.55), rgba(215, 222, 232, 0.15) 40%, rgba(112, 192, 232, 0.25));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

code {
  font-size: 0.88em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface-solid);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -- Atmosphere (no foliage) -- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(43, 163, 230, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(112, 192, 232, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(30, 58, 95, 0.35), transparent 55%),
    linear-gradient(180deg, #05070c 0%, #070b14 45%, #05070c 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 40%, rgba(112, 192, 232, 0.03) 50%, transparent 60%),
    linear-gradient(255deg, transparent 35%, rgba(255, 255, 255, 0.02) 48%, transparent 58%);
  animation: shaft-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-bg-blur {
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 20%, rgba(112, 192, 232, 0.12), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(56, 100, 160, 0.1), transparent 40%);
  filter: blur(60px);
  pointer-events: none;
}

@keyframes shaft-drift {
  from { transform: translateX(-2%) translateY(0); opacity: 0.7; }
  to { transform: translateX(3%) translateY(1%); opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes podium-in {
  from {
    opacity: 0;
    transform: translateY(36px);
    clip-path: inset(8% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes frame-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.rise {
  animation: rise 0.85s var(--ease-out) both;
}

.rise-delay-1 { animation-delay: 0.12s; }
.rise-delay-2 { animation-delay: 0.24s; }
.rise-delay-3 { animation-delay: 0.36s; }

/* -- Layout chrome -- */
.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(5, 7, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-leaf {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(232, 238, 247, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-links a.nav-cta {
  margin-left: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
  transition: background 0.25s var(--ease-out), color 0.25s, box-shadow 0.25s;
}

.nav-links a.nav-cta:hover {
  background: var(--accent);
  color: var(--void);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  cursor: pointer;
}

.site-footer {
  margin-top: 5rem;
  padding: 2.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

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

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

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-download {
  background: #fff;
  color: var(--void);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn-download:hover {
  color: var(--void);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.18), 0 20px 48px rgba(0, 0, 0, 0.4);
}

.btn-community {
  background: transparent;
  color: var(--accent);
  border-color: rgba(112, 192, 232, 0.45);
  box-shadow: inset 0 0 0 0 var(--accent);
}

.btn-community:hover {
  background: var(--accent-soft);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* -- Hero -- */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

/* Text + character as one centered unit (keeps their overlap distance) */
.hero-stage {
  position: relative;
  width: 1120px;
  max-width: calc(100% - 2.5rem);
  min-height: 34rem;
  margin-inline: auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero-art {
  position: absolute;
  top: -6rem;
  /* Overlap into the text ~45% of the 960px art; nudged up+left equally */
  left: calc(32% - 5rem);
  width: 960px;
  max-width: none;
  margin: 0;
  line-height: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-art .hero-character {
  width: 960px;
  max-width: none;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(112, 192, 232, 0.55))
    drop-shadow(0 0 36px rgba(112, 192, 232, 0.4))
    drop-shadow(0 0 64px rgba(112, 192, 232, 0.22));
}

.hero-ms-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.85rem;
}

.hero-ms-logo img,
.hero-ms-logo svg {
  width: min(100%, clamp(14rem, 58vw, 37rem));
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px var(--accent-glow));
}

.hero-brand {
  font-size: clamp(2.55rem, 11vw, 5.5rem);
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: 100%;
}

.hero-brand span {
  color: var(--accent);
}

.hero-tag {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  font-weight: 400;
  max-width: 26rem;
  line-height: 1.6;
}

.hero-online {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-online strong {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-online-spark {
  display: inline-block;
  width: 6.5rem;
  height: 1.7rem;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(232, 238, 247, 0.28);
  background: transparent;
  color: var(--accent);
  line-height: 0;
  overflow: hidden;
}

.hero-online-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* -- Page sections -- */
.page-hero {
  padding: 3.25rem 0 1.75rem;
  color: #fff;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0 0 0.55rem;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: 1rem;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 192, 232, 0.45), transparent);
  opacity: 0.7;
}

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  color: #fff;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 800;
}

.section-head p {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.section-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.section-link:hover {
  color: #fff;
}

.feed-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .feed-columns {
    grid-template-columns: 1fr;
  }
}

.feed-panel {
  background: var(--void-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.35rem;
}

.feed-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.feed-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.feed-panel-head a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.feed-panel-head a:hover {
  color: var(--accent);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-list li {
  margin: 0;
}

.feed-list a {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s, padding-left 0.2s;
}

.feed-list a:hover {
  border-left-color: var(--accent);
  padding-left: 0.45rem;
  color: #fff;
  text-decoration: none;
}

.feed-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.feed-title {
  font-weight: 500;
  line-height: 1.4;
}

.demo-banner {
  background: rgba(112, 192, 232, 0.06);
  color: var(--ink-muted);
  font-size: 0.84rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(112, 192, 232, 0.2);
  letter-spacing: 0.01em;
}

/* -- Forms -- */
.field {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* -- Download -- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  width: 2.5rem;
  line-height: 1.4;
}

.steps h3 {
  margin: 0.05rem 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.mirror-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.mirror {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--void-elevated);
}

.mirror strong {
  display: block;
  color: #fff;
}

.mirror .meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.mirror.primary {
  border-color: rgba(112, 192, 232, 0.4);
  background: linear-gradient(135deg, rgba(112, 192, 232, 0.08), var(--void-elevated));
}

.mirror.offline {
  opacity: 0.55;
  border-color: var(--line);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.note-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(112, 192, 232, 0.05);
  border-left: 2px solid var(--accent);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.note-box strong {
  color: #fff;
}

.note-box-warn {
  background: rgba(255, 196, 94, 0.08);
  border-left-color: #ffc45e;
}

.note-box-warn code {
  color: #fff;
  font-size: 0.88em;
}

.smartscreen-guide {
  margin: 0.85rem 0 0;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 196, 94, 0.28);
  background: linear-gradient(145deg, rgba(255, 196, 94, 0.07), rgba(14, 21, 34, 0.65));
}

.smartscreen-guide > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.smartscreen-guide > summary::-webkit-details-marker {
  display: none;
}

.smartscreen-guide > summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 700;
  color: #ffc45e;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.smartscreen-guide[open] > summary::after {
  content: "−";
}

.smartscreen-body {
  padding: 0 1rem 1.1rem;
  border-top: 1px solid rgba(255, 196, 94, 0.18);
}

.smartscreen-body > p {
  margin: 0.85rem 0 0.65rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.smartscreen-body > ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.smartscreen-body > ol li + li {
  margin-top: 0.25rem;
}

.smartscreen-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.smartscreen-shots figure {
  margin: 0;
}

.smartscreen-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background: #0a0f18;
}

.smartscreen-shots figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .smartscreen-shots {
    grid-template-columns: 1fr;
  }
}

/* -- Rankings (Null.Team editorial podium) -- */
.rankings-shell {
  --podium-gap: 0.85rem;
}

.ranking-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.filter-row + .filter-row {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.filter-chip {
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-chip:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.filter-chip[aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.filter-chip.job {
  width: auto;
  min-width: 2.75rem;
  height: auto;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-bottom-width: 1px;
  display: inline-grid;
  place-items: center;
}

.filter-chip.job[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 -1px 0 var(--accent);
  color: var(--accent);
}

.filter-chip.board {
  text-transform: uppercase;
}

.rank-search {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1.15rem;
  max-width: 420px;
}

.rank-search input {
  flex: 1;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.rank-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.rank-search input::placeholder {
  color: var(--ink-faint);
}

.rank-search button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rank-search button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.rank-subtitle {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0 0 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
}

.rank-empty {
  text-align: left;
  padding: 2.5rem 0.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.rank-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.rank-empty p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

#rankings-container {
  min-height: 280px;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--podium-gap);
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.podium-card {
  position: relative;
  padding: 1.25rem 1rem 1.15rem;
  text-align: left;
  cursor: default;
  border: 1px solid var(--line);
  background: var(--void-elevated);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
  animation: podium-in 0.75s var(--ease-out) both;
  overflow: hidden;
}

.podium-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--metal-2);
}

.podium-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* DOM order is already 2 · 1 · 3 left-to-right */
.podium-card--1 {
  animation-delay: 0.14s;
  background: linear-gradient(160deg, rgba(112, 192, 232, 0.1), var(--void-elevated) 55%);
  border-color: rgba(112, 192, 232, 0.35);
}

.podium-card--1::before {
  background: linear-gradient(180deg, var(--accent), var(--metal-1));
  box-shadow: 0 0 16px var(--accent-glow);
}

.podium-card--2 {
  animation-delay: 0.05s;
}

.podium-card--2::before {
  background: var(--metal-1);
}

.podium-card--3 {
  animation-delay: 0.22s;
}

.podium-card--3::before {
  background: var(--metal-3);
}

.podium-card--empty {
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

.podium-card--empty::before {
  display: none;
}

.podium-card--empty:hover {
  transform: none;
  box-shadow: none;
}

.podium-place {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(232, 238, 247, 0.12);
  margin: 0 0 0.75rem;
}

.podium-card--1 .podium-place {
  color: rgba(112, 192, 232, 0.28);
}

.podium-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  color: var(--ink-faint);
}

.podium-avatar-wrap {
  width: 120px;
  height: 175px;
  margin: 0 0 0.85rem;
  display: grid;
  place-items: end center;
  overflow: visible;
}

.podium-avatar-wrap--hero {
  width: 132px;
  height: 195px;
}

.rank-avatar-wrap {
  width: 56px;
  height: 82px;
  margin: 0;
  display: grid;
  place-items: end center;
  overflow: visible;
}

.podium-avatar,
.rank-avatar {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--void);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.podium-avatar-wrap .rank-avatar {
  width: 100%;
  height: 72px;
  align-self: end;
}

.rank-avatar-img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  image-rendering: pixelated;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.podium-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.podium-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0.25rem 0 0;
}

.podium-stat {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.65rem 0 0;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-style: italic;
}

.podium-card--1 .podium-stat {
  color: var(--accent);
}

.rank-move {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rank-move--up { color: var(--rank-up); }
.rank-move--down { color: var(--rank-down); }
.rank-move--none { color: var(--ink-faint); }

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rank-row {
  display: grid;
  grid-template-columns: 4.5rem 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: default;
  transition: background 0.2s, padding-left 0.25s var(--ease-out);
}

.rank-row:hover {
  background: rgba(112, 192, 232, 0.04);
  padding-left: 0.55rem;
}

.rank-num {
  text-align: left;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-muted);
}

.rank-num__n { display: block; }

.rank-num .rank-move {
  display: block;
  margin-top: 0.15rem;
}

.rank-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.rank-info span {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.rank-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.char-slot,
.char-spotlight {
  display: none !important;
}

.ranking-skeleton .skel {
  min-height: 260px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: skel-shine 1.2s linear infinite;
}

@keyframes skel-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ranking-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.pager {
  display: flex;
  gap: 0.25rem;
}

.pager button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pager button:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
}

.pager button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager button[aria-current="page"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.ranking-update-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}

/* -- News -- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0.15rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.news-item:last-child {
  border-bottom: none;
}

.news-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(112, 192, 232, 0.25);
}

.news-badge.event {
  background: rgba(61, 214, 140, 0.1);
  color: var(--rank-up);
  border-color: rgba(61, 214, 140, 0.25);
}

.news-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #fff;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--accent);
}

.news-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.news-date {
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news-back {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.9rem;
}

.news-back a {
  color: var(--accent);
  text-decoration: none;
}

.news-back a:hover {
  text-decoration: underline;
}

.news-post {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.news-post + .news-post {
  margin-top: 1.25rem;
}

.news-post .news-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.news-post-title,
.news-post h1.news-post-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  color: #fff;
  line-height: 1.25;
}

.news-post h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.news-post .news-meta {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.news-post h4 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.news-post p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.news-post ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.news-post li {
  margin-bottom: 0.4rem;
}

.news-post li strong {
  color: #fff;
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
  }
}

/* -- Guides / FAQ -- */
.guides-page {
  padding-bottom: 3rem;
}

.guides-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guide-toc {
  position: sticky;
  top: calc(var(--nav-h) + 0.75rem);
  z-index: 5;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem 1.05rem;
}

.guide-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #fff;
}

.guide-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}

.guide-toc-list a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
}

.guide-toc-list a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .guide-toc {
    position: static;
  }

  .guide-toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .guide-toc-list {
    grid-template-columns: 1fr;
  }
}

.guide-section {
  margin-bottom: 1.5rem;
  /* Clear sticky site header + sticky TOC when jumping from "On this page" */
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

@media (min-width: 901px) {
  .guide-section {
    /* nav + TOC offset (sticky TOC sits under the header) */
    scroll-margin-top: calc(var(--nav-h) + 0.75rem + 12.5rem);
  }
}

.guide-section > h2 {
  margin-top: 0;
  font-size: 1.45rem;
  color: #fff;
}

.guide-section > h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.08rem;
  color: #fff;
}

.guide-lead {
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.guide-bullets {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.guide-bullets li {
  margin-bottom: 0.4rem;
}

.guide-bullets strong {
  color: #fff;
}

.guide-bullets code,
.guide-section code {
  font-size: 0.86em;
  color: var(--accent);
}

.table-scroll {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--void-elevated);
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cmd-table th,
.cmd-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.cmd-table th {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.cmd-table td {
  color: var(--ink-muted);
}

.cmd-table tr:last-child td {
  border-bottom: none;
}

.cmd-table code {
  color: var(--accent);
  white-space: nowrap;
}

.guide-details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.1rem;
}

.guide-details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.guide-details > summary::-webkit-details-marker {
  display: none;
}

.guide-details > summary::after {
  content: "+";
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.guide-details[open] > summary::after {
  content: "−";
}

.guide-details > p,
.guide-details .guide-bullets,
.guide-details .table-scroll {
  margin-top: 0.75rem;
}

.guides-footer-cta {
  margin-bottom: 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
  .path-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.path-step {
  background: var(--void-elevated);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
}

.path-step .n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.path-step h3 {
  margin: 0.3rem 0;
  font-size: 0.98rem;
  color: #fff;
}

.path-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.faq details {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 0.15rem;
  margin-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0.35rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: normal;
}

/* -- Phone nav (keep desktop links for tablet / half-desktop) -- */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 7, 12, 0.97);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    gap: 0.1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.5rem;
    border-bottom: none;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* -- Rankings podium: stack on narrow tablet -- */
@media (max-width: 960px) {
  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .podium-card--empty {
    display: none;
  }

  .podium-card--1 {
    order: -1;
  }
}

/* -- Phone hero only: copy/CTAs on top, large centered Cygnus below -- */
@media (max-width: 640px) {
  /* Scaled art overflows horizontally; clip sideways scroll only */
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 1.75rem 0 2.5rem;
    overflow: visible;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: calc(100% - 2.5rem);
    min-height: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .hero-inner {
    position: relative;
    z-index: 3;
    order: 1;
    width: 100%;
    max-width: 100%;
    /* Soft scrim so brand/CTAs stay readable above the figure */
    padding: 0.35rem 0.15rem 0.2rem;
    background: linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.55) 0%,
      rgba(5, 7, 12, 0.35) 55%,
      rgba(5, 7, 12, 0) 100%
    );
    border-radius: 0.75rem;
  }

  .hero-ms-logo img,
  .hero-ms-logo svg {
    width: min(100%, 18.5rem);
  }

  .hero-brand {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    margin-bottom: 0.75rem;
  }

  .hero-tag {
    max-width: 22rem;
    margin-bottom: 1.5rem;
  }

  /* Character: under copy, over News section void; bleed into next band */
  .hero-art {
    position: relative;
    order: 2;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100vw, 36rem);
    max-width: none;
    /* Negative top closes CTA->head gap; negative bottom lets legs sit in News */
    margin: -1.25rem auto -4.5rem;
    z-index: 1;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-art .hero-character {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    /*
      RTL apply: translateX/Y then scale.
      Spike tip ~x=528.5/1042 (50.72%) - nudge left so halo tip hits screen center.
    */
    transform: scale(1.745810546875) translateX(-0.75%) translateY(-13.86%) translateY(-10px);
    transform-origin: center top;
    opacity: 0.7;
    filter:
      brightness(0.78)
      drop-shadow(0 0 12px rgba(112, 192, 232, 0.35))
      drop-shadow(0 0 32px rgba(112, 192, 232, 0.2));
  }

  /* News band: transparent shell so hero art shows; text/panels above her */
  .section {
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  .section-head,
  .feed-columns {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.15rem 0 2rem;
  }

  .hero-stage {
    max-width: calc(100% - 1.25rem);
  }

  .hero-art {
    width: min(100vw, 32rem);
    margin: -1.1rem auto -3.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
    width: 100%;
  }
}
