:root {
  --text: #eef2ff;
  --muted: #9aa6c7;
  --gold: #d8c39a;
  --gold-soft: rgba(216,195,154,0.18);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --shadow: 0 24px 70px rgba(0,0,0,0.55);
  --bg-1: #05030b;
  --bg-2: #09051a;
  --bg-3: #120a2a;
  --bg-4: #1a1140;
  --void: #6d4dff;
  --void-soft: rgba(109,77,255,0.18);
  --void-soft-2: rgba(80,110,255,0.12);
  --wow-blue: #7db5ff;
  --wow-purple: #8d6bff;
  --wow-purple-2: #4e38c8;
  --wow-green: #44be9a;
  --wow-red: #c4547e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-1);
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% 8%, rgba(109,77,255,0.22), transparent 58%),
    radial-gradient(700px 420px at 18% 22%, rgba(64,84,255,0.10), transparent 62%),
    radial-gradient(900px 540px at 82% 28%, rgba(132,78,255,0.08), transparent 64%),
    linear-gradient(180deg, #07040f 0%, #09051a 28%, #080413 58%, #05030b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,0.05), transparent 18%),
    radial-gradient(circle at 50% 16%, rgba(109,77,255,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.012), transparent 26%),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.28) 100%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,0.08);
}

h1 {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f7f9ff;
}

.card {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,22,14,0.85), rgba(10,8,5,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,176,106,0.18);
  box-shadow: 0 28px 80px rgba(0,0,0,0.58), 0 0 0 1px rgba(212,176,106,0.05) inset;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 24%);
  opacity: 0.85;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.title {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  color: #f5f7ff;
}

.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Main hero */
.hero {
  position: relative;
  min-height: 620px;
  padding: 140px 28px 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(160,140,255,0.12);
  box-shadow: 0 28px 80px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.04);
  background:
    radial-gradient(circle at 50% 18%, rgba(109,77,255,0.26), transparent 24%),
    radial-gradient(circle at 50% 14%, rgba(84,110,255,0.16), transparent 36%),
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.04), transparent 18%),
    linear-gradient(180deg, rgba(10,6,25,0.68), rgba(5,3,14,0.92));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(109,77,255,0.22), transparent 16%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06), transparent 8%),
    radial-gradient(circle at 50% 20%, rgba(109,77,255,0.10), transparent 30%);
  filter: blur(10px);
}

.hero-main {
  margin-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/midnight1.jpeg");
  background-size: cover;
  background-position: center 2%;
  transform: scale(1.015);
  filter: brightness(0.6) contrast(1.05) saturate(1.02);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(130,90,255,0.18), transparent 28%),
    radial-gradient(circle at 50% 14%, rgba(255,255,255,0.05), transparent 12%),
    linear-gradient(180deg, rgba(5,4,18,0.12) 0%, rgba(7,5,19,0.34) 40%, rgba(5,3,14,0.74) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 40px auto 0;
}

.hero h1 {
  margin:0 0 14px;
  color:#fff;
  font-size:72px;
  line-height:.92;
  font-weight:900;
  letter-spacing:-.06em;
  text-shadow:
    0 8px 22px rgba(0,0,0,.96),
    0 0 24px rgba(0,0,0,.55),
    0 0 12px rgba(120,145,255,.18);
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  font-weight: 700;
  text-shadow:
    0 4px 14px rgba(0,0,0,.95),
    0 0 10px rgba(0,0,0,.6);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 13px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(92,68,220,0.24), rgba(55,38,150,0.20));
  border: 1px solid rgba(139,116,255,0.35);
  color: #eef1ff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(6px);
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(110,84,245,0.34), rgba(62,42,180,0.28));
  border-color: rgba(195,177,255,0.55);
  box-shadow: 0 14px 36px rgba(0,0,0,0.34), 0 0 0 1px rgba(200,184,255,0.08) inset;
}

.hero-mplus {
  margin-bottom: 30px;
}

.hero-bg-mplus {
  position: absolute;
  inset: 0;
  background: url("/static/img/mplus.jpg") center/cover no-repeat;
  filter: brightness(0.45) contrast(1.1);
  transform: scale(1.05);
  z-index: 0;
}

.hero-mplus::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(109,77,255,0.25), transparent 40%),
    linear-gradient(180deg, rgba(5,3,14,0.6), rgba(5,3,14,0.9));
  z-index: 1;
}

/* Mode blocks */
.mode-section {
  margin-top: 60px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.mode-card {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,20,45,0.9), rgba(6,7,20,0.95));
  border: 1px solid rgba(120,80,255,0.2);
  transition: transform .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140,100,255,0.5);
}

.mode-title {
  font-size: 28px;
  font-weight: 900;
  color: #e9ecff;
}

.mode-desc {
  margin-top: 8px;
  color: #aab3d1;
  line-height: 1.5;
}

.mode-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-links span,
.mode-links a,
.spec-pill {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  color: #cdd3ff;
  border: 1px solid rgba(255,255,255,0.06);
}

.seo-block {
  margin-top: 60px;
  max-width: 800px;
}

.seo-block-wide {
  max-width: 960px;
}

.seo-block p,
.section-sub,
.spec-desc {
  color: #9fa8c8;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.section-more {
  text-decoration: none;
  color: #9ecbff;
  font-weight: 600;
}

.section-sub {
  max-width: 860px;
  font-size: 16px;
  margin-top: 10px;
}

/* Main lists and cards */
.class-grid,
.mplus-sections,
.mplus-section,
.player-list,
.talent-stage-compact {
  display: grid;
}

.class-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.class-card,
.build-heatmap-card,
.talent-tree,
.player-tree-card,
.spec-hero-card,
.news-detail-inner {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18,24,52,0.94) 0%, rgba(7,10,24,0.98) 100%);
  border: 1px solid rgba(140,120,255,0.16);
  box-shadow: 0 14px 36px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
}

.class-card {
  position: relative;
  padding: 20px;
  border-color: rgba(212,176,106,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(34,22,14,0.88), rgba(14,10,7,0.96));
}

.class-card-header,
.mplus-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.class-card-header {
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(212,176,106,0.12);
}

.mplus-role-header {
  border-bottom: 1px solid rgba(212,176,106,0.14);
}

.class-header-left,
.spec-main,
.mplus-spec-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.class-icon-big {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.spec-icon,
.mplus-spec-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.03);
}

.class-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.class-meta,
.mplus-role-count {
  font-size: 13px;
  color: #bda57d;
  white-space: nowrap;
}

.spec-list,
.player-list,
.mplus-section {
  gap: 12px;
}

.spec-item,
.mplus-spec-card,
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,26,47,0.92), rgba(10,16,29,0.98));
  border: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.spec-item:hover,
.mplus-spec-card:hover,
.player-row:hover {
  transform: translateY(-2px);
  border-color: rgba(212,176,106,0.24);
  background: linear-gradient(180deg, rgba(24,32,56,0.96), rgba(10,16,29,1));
}

.spec-copy,
.mplus-spec-copy,
.player-row-main {
  min-width: 0;
}

.spec-eyebrow,
.mplus-spec-eyebrow,
.build-heatmap-title,
.talent-tree-title,
.player-tree-title {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-heatmap-title,
.talent-tree-title,
.player-tree-title {
  margin: 0 0 14px;
  font-weight: 900;
  color: #d9ddff;
}

.spec-name,
.mplus-spec-name,
.player-name {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: #f4f7ff;
  line-height: 1.1;
}

.spec-stats,
.mplus-spec-right,
.mplus-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.spec-stats {
  gap: 8px;
  min-width: 120px;
}

.stat {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value,
.mplus-rating,
.player-rating {
  font-weight: 800;
}

.stat-value {
  font-size: 15px;
  color: #eaf1ff;
}

.mplus-role-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f6f7fb;
}

.mplus-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
}

.mplus-spec-card {
  min-height: 84px;
}

.mplus-rating {
  font-size: 28px;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.mplus-stats {
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.player-realm {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.player-rating {
  font-size: 26px;
  color: #d6dcff;
  letter-spacing: -0.03em;
}

.class-death-knight .class-title { color: #C41F3B; }
.class-demon-hunter .class-title { color: #A330C9; }
.class-druid .class-title { color: #FF7C0A; }
.class-evoker .class-title { color: #33937F; }
.class-hunter .class-title { color: #AAD372; }
.class-mage .class-title { color: #3FC7EB; }
.class-monk .class-title { color: #00FF98; }
.class-paladin .class-title { color: #F48CBA; }
.class-priest .class-title { color: #FFFFFF; }
.class-rogue .class-title { color: #FFF468; }
.class-shaman .class-title { color: #0070DD; }
.class-warlock .class-title { color: #8788EE; }
.class-warrior .class-title { color: #C69B6D; }

/* Hubs */
.hub-grid,
.role-hub-grid,
.build-heatmap-grid,
.news-grid,
.player-trees {
  display: grid;
}

.hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.hub-card,
a.role-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #eef2ff;
  border: 1px solid rgba(140,120,255,0.18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(109,77,255,0.10), transparent 42%),
    linear-gradient(180deg, rgba(18,24,52,0.94) 0%, rgba(7,10,24,0.98) 100%);
  box-shadow: 0 22px 60px rgba(0,0,0,0.56), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hub-card:hover,
a.role-hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(158,136,255,0.34);
  box-shadow: 0 30px 80px rgba(0,0,0,0.66), 0 0 0 1px rgba(155,130,255,0.06) inset;
}

.hub-card-raid {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(70,116,255,0.10), transparent 42%),
    linear-gradient(180deg, rgba(17,22,44,0.96) 0%, rgba(7,10,24,0.98) 100%);
}

.hub-card-mplus,
.role-hub-card-dps {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(109,77,255,0.14), transparent 42%),
    linear-gradient(180deg, rgba(20,18,52,0.96) 0%, rgba(8,9,26,0.98) 100%);
}

.hub-card-pvp {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(162,74,255,0.14), transparent 42%),
    linear-gradient(180deg, rgba(24,18,52,0.96) 0%, rgba(10,8,24,0.98) 100%);
}

.role-hub {
  margin: 24px 0 48px;
}

.role-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.role-hub-title {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f7f8ff;
}

.role-hub-desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #aab4d6;
  max-width: 32ch;
}

.role-hub-enter {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 800;
  color: #d7dcff;
}

.role-hub-card-tank {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(74,134,255,0.16), transparent 42%),
    linear-gradient(180deg, rgba(15,23,50,0.96) 0%, rgba(7,10,24,0.98) 100%);
}

.role-hub-card-healer {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(68,190,154,0.16), transparent 42%),
    linear-gradient(180deg, rgba(12,30,34,0.96) 0%, rgba(7,10,24,0.98) 100%);
}

/* Chips and build blocks */
.build-heatmap,
.top-players-head,
.spec-hero,
.news-section {
  margin-top: 24px;
}

.build-heatmap {
  margin-bottom: 34px;
}

.build-heatmap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.build-heatmap-card,
.player-tree-card,
.spec-hero-card,
.news-detail-inner {
  padding: 18px;
}

.build-chip-list,
.pvp-chip-list,
.spec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pvp-chip-list {
  margin-bottom: 28px;
}

.build-chip,
.pvp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #dfe5ff;
}

.build-chip-name,
.pvp-chip-name {
  font-size: 13px;
  font-weight: 700;
}

.build-chip-pct,
.pvp-chip-pct,
.updated-at {
  font-size: 12px;
  color: #aeb8dc;
}

.updated-at {
  font-weight: 600;
  margin-left: 6px;
  color: rgba(170,190,255,0.55);
}

.spec-hero-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}

.spec-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.spec-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Talents */
.talent-shell {
  margin-top: 22px;
  margin-bottom: 34px;
}

.talent-stage-compact {
  grid-template-columns: 1fr;
  gap: 18px;
}

.talent-tree {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.talent-tree-head {
  margin-bottom: 14px;
}

.talent-tree .talent-board,
.player-tree-scroll,
.player-tree-wrap,
.grid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.talent-tree .talent-board,
.player-tree-scroll {
  padding-bottom: 10px;
}

.talent-tree .talent-board::-webkit-scrollbar,
.player-tree-scroll::-webkit-scrollbar {
  height: 8px;
}

.talent-tree .talent-board::-webkit-scrollbar-thumb,
.player-tree-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}

.compact-board {
  --node-size: 60px;
  --core-size: 44px;
  --gap-x: 8px;
  --gap-y: 10px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--node-size));
  grid-template-rows: repeat(var(--rows), 78px);
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  justify-content: start;
  align-content: start;
  width: max-content;
  min-width: max-content;
}

.compact-board-hero {
  --node-size: 54px;
  --core-size: 40px;
  --gap-x: 6px;
  --gap-y: 8px;
  grid-template-rows: repeat(var(--rows), 72px);
}

.talent-node,
.player-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.talent-node {
  width: var(--node-size);
  gap: 4px;
}

.talent-node-core,
.player-node-core,
.grid-talent-core {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: 0 8px 18px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.talent-node-core {
  width: var(--core-size);
  height: var(--core-size);
  border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, opacity .16s ease;
}

.talent-node:hover .talent-node-core {
  transform: translateY(-1px);
}

.talent-node-pct,
.player-node-rank,
.grid-talent-rank {
  font-weight: 900;
  line-height: 1;
  color: #eef2ff;
  border-radius: 999px;
  background: rgba(7,10,24,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.talent-node-pct {
  font-size: 10px;
  padding: 4px 6px;
}

.player-node-rank,
.grid-talent-rank {
  font-size: 12px;
  padding: 4px 7px;
}

.talent-node-caption,
.player-node-caption,
.grid-talent-caption {
  text-align: center;
  font-weight: 700;
  color: #bcc5e8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.talent-node-caption {
  width: 100%;
  min-height: 18px;
  font-size: 9px;
  line-height: 1.1;
}

.player-node-caption {
  margin-top: 8px;
  width: 92px;
  min-height: 24px;
  font-size: 11px;
  line-height: 1.1;
  color: #d7def8;
}

.grid-talent-caption {
  margin-top: 6px;
  width: 86px;
  min-height: 22px;
  font-size: 10px;
  line-height: 1.08;
  color: #d7def8;
}

.talent-node-hot .talent-node-core,
.player-node-on .player-node-core {
  border-color: rgba(154,124,255,0.40);
  background:
    radial-gradient(circle at 50% 30%, rgba(165,135,255,0.26), transparent 62%),
    linear-gradient(180deg, rgba(95,72,230,0.24), rgba(35,24,96,0.32));
  box-shadow: 0 0 0 1px rgba(155,130,255,0.08) inset, 0 10px 22px rgba(80,54,220,0.28);
}

.talent-node-warm .talent-node-core {
  border-color: rgba(132,116,255,0.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(130,104,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(74,58,190,0.10), rgba(18,18,44,0.22));
}

.talent-node-cold .talent-node-core {
  border-color: rgba(255,255,255,0.10);
  opacity: .84;
}

.talent-node-off .talent-node-core,
.player-node-off .player-node-core {
  border-color: rgba(255,255,255,0.06);
  opacity: .35;
}

.talent-node-off .talent-node-caption,
.talent-node-cold .talent-node-caption,
.player-node-off .player-node-caption {
  color: #8f99bf;
}

.talent-node-type-choice .talent-node-core,
.player-node-type-choice .player-node-core,
.player-node-type-choice .grid-talent-core {
  border-radius: 12px;
}

.talent-node-type-passive .talent-node-core,
.player-node-type-passive .player-node-core,
.player-node-type-passive .grid-talent-core {
  border-radius: 999px;
}

.player-trees {
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.player-tree-card {
  min-width: 0;
}

.player-tree-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 8px 0 20px;
}

.player-tree-unified {
  width: min(100%, 1420px);
  display: grid;
  grid-template-columns: repeat(27, minmax(0, 1fr));
  grid-template-rows: repeat(14, 88px);
  column-gap: 10px;
  row-gap: 18px;
  align-content: start;
  justify-items: center;
}

.player-node {
  width: 100%;
  max-width: 58px;
}

.player-node-core {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border-color: rgba(140,120,255,.34);
  background:
    radial-gradient(circle at 50% 32%, rgba(150,126,255,.28), transparent 62%),
    linear-gradient(180deg, rgba(82,58,214,.28), rgba(26,18,76,.42));
  box-shadow: 0 0 0 1px rgba(155,130,255,.08) inset, 0 10px 24px rgba(75,52,210,.22);
}

.card-player-build {
  width: min(100%, 1560px);
  margin-left: auto;
  margin-right: auto;
}

.grid-wrap {
  width: 100%;
  padding: 20px 24px;
}

.grid-test {
  display: grid;
  grid-template-columns: repeat(27, 48px);
  grid-template-rows: repeat(17, 64px);
  column-gap: 6px;
  row-gap: 22px;
  width: max-content;
  margin: 0 auto;
  position: relative;
}

.grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #7f88ab;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  user-select: none;
}

.grid-talent {
  position: relative;
  z-index: 2;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-talent-core {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border-color: rgba(140,120,255,.34);
  background:
    radial-gradient(circle at 50% 32%, rgba(150,126,255,.28), transparent 62%),
    linear-gradient(180deg, rgba(82,58,214,.28), rgba(26,18,76,.42));
  box-shadow: 0 0 0 1px rgba(155,130,255,.08) inset, 0 10px 24px rgba(75,52,210,.22);
}

.grid-talent-class .grid-talent-core {
  border-color: rgba(118,168,255,.34);
  box-shadow: 0 0 0 1px rgba(118,168,255,.08) inset, 0 10px 24px rgba(48,104,220,.18);
}

.grid-talent-hero .grid-talent-core {
  border-color: rgba(182,120,255,.38);
  box-shadow: 0 0 0 1px rgba(182,120,255,.08) inset, 0 10px 24px rgba(118,62,220,.22);
}

/* News */
.news-section {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 20px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
}

.news-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.news-card .news-image-wrap {
  border-radius: 0;
  margin-bottom: 0;
}

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

.news-body {
  padding: 16px;
}

.news-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.news-body p {
  margin: 0 0 12px;
  opacity: .82;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date,
.news-empty {
  opacity: .7;
}

.news-date {
  font-size: 13px;
}

.news-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.news-detail-inner {
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.news-detail h1 {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.news-detail .news-date {
  font-size: 14px;
  opacity: .6;
  margin-bottom: 20px;
}

.news-detail-summary {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: rgba(255,255,255,.9);
}

.news-detail-body {
  max-width: 720px;
}

.news-detail-body p,
.news-html p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
}

.news-html h2 {
  margin: 32px 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

.news-html h3 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.news-html ul,
.news-html ol {
  margin: 0 0 20px 22px;
  padding: 0;
}

.news-html li {
  margin: 0 0 10px;
  line-height: 1.7;
}

.news-html hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 28px 0;
}

.news-source {
  margin-top: 24px;
}

.news-source a,
.news-html a {
  color: #9ecbff;
  text-decoration: none;
  font-weight: 600;
}

/* Utility */
.spec-card__name,
.spec-card__class,
.spec-card:hover,
.spec-card:focus {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1280px) {
  .player-trees {
    grid-template-columns: 1fr;
  }

  .player-tree-unified {
    grid-template-rows: repeat(14, 82px);
    column-gap: 8px;
    row-gap: 16px;
  }

  .player-node-core {
    width: 46px;
    height: 46px;
  }

  .player-node-caption {
    width: 82px;
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  .role-hub-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-hub-grid {
    grid-template-columns: 1fr;
  }

  a.role-hub-card {
    min-height: 190px;
    padding: 20px;
    border-radius: 20px;
  }

  .role-hub-title {
    font-size: 28px;
  }

  .player-tree-wrap {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .player-tree-unified {
    width: 1280px;
    min-width: 1280px;
    grid-template-columns: repeat(27, 1fr);
    grid-template-rows: repeat(14, 78px);
  }
}

@media (max-width: 900px) {
  .shell {
    padding: calc(22px + env(safe-area-inset-top)) 16px 40px;
  }




  .hero {
    min-height: 460px;
    padding: 80px 16px 60px;
    border-radius: 20px;
  }
  .hero-bg {
    background-position: center 12%;
    transform: scale(1.05);
    filter: brightness(0.58) contrast(1.04);
  }

  .hero-inner {
    max-width: 100%;
    margin-top: 24px;
  }

  .hero h1 {
    max-width: 680px;
    font-size:46px;
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .hero-sub {
    max-width: 600px;
    font-size: 15px;
    line-height: 1.45;
  }

  .class-grid,
  .mplus-spec-grid,
  .build-heatmap-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .spec-item,
  .player-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-stats {
    align-items: flex-start;
    min-width: 0;
  }

  .mplus-role-title {
    font-size: 24px;
  }

  .mplus-spec-card {
    min-height: 78px;
  }

  .mplus-rating,
  .player-rating {
    font-size: 24px;
  }

  .hub-card {
    min-height: 200px;
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .news-detail h1 {
    font-size: 28px;
  }

  .news-detail .news-image-wrap {
    aspect-ratio: 16 / 10;
  }
}

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

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