:root {
  --bg: #f3f5f9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(108, 126, 157, 0.16);
  --text: #182338;
  --muted: #61708e;
  --blue: #3478f6;
  --blue-soft: rgba(52, 120, 246, 0.12);
  --shadow: 0 24px 60px rgba(30, 47, 82, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(80, 133, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 42%, #eef2f8 100%);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Helvetica Neue",
    sans-serif;
}

body {
  padding: 24px;
}

button,
a {
  font: inherit;
}

.app-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.site-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr) auto;
  gap: 18px;
  align-items: center;
  padding: 8px 0 2px;
}

.language-switcher {
  align-self: start;
  display: inline-grid;
  grid-template-columns: repeat(2, 44px);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.language-switcher button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-switcher button.is-active {
  background: var(--text);
  color: #fff;
}

.site-brand {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 126px;
  padding: 12px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--blue);
}

.site-brand h1,
.panel h2 {
  margin: 0;
  line-height: 1.02;
}

.site-brand h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.site-brand p,
.section-copy {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ggg-news {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ggg-news .section-kicker {
  margin-bottom: 4px;
}

.ggg-news__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.ggg-news__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.ggg-news__all {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ggg-news-list {
  display: grid;
  gap: 2px;
}

.ggg-news-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.ggg-news-item:hover {
  background: rgba(52, 120, 246, 0.08);
  color: var(--blue);
}

.ggg-news-item::after {
  content: "↗";
  color: var(--muted);
  font-size: 13px;
}

.ggg-news-item__date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ggg-news-item__body {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.ggg-news-item__body strong,
.ggg-news-item__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ggg-news-item__body strong {
  min-width: 0;
  font-size: 15px;
}

.ggg-news-item__body small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.content {
  margin-top: 22px;
}

.tabbar {
  position: sticky;
  top: 20px;
  z-index: 5;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 253, 0.82);
  box-shadow: 0 10px 30px rgba(54, 75, 112, 0.12);
}

.tabbar__button {
  min-width: 136px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tabbar__button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(69, 88, 130, 0.12);
}

.panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 30px;
  background: rgba(249, 251, 255, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 44px rgba(74, 98, 145, 0.1);
}

.panel__header {
  display: grid;
  gap: 10px 20px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 20px;
}

.panel__header h2 {
  font-size: clamp(28px, 4vw, 36px);
}

.section-copy {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: rgba(52, 120, 246, 0.26);
  background: var(--blue-soft);
  color: var(--blue);
}

.card-grid,
.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.map-card,
.build-card,
.summary-card,
.class-preview-card,
.ascendancy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(220, 226, 239, 0.94);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 16px 32px rgba(67, 86, 124, 0.08);
}

.build-card--link {
  color: inherit;
  text-decoration: none;
}

.build-card--link:hover {
  border-color: rgba(52, 120, 246, 0.34);
  transform: translateY(-2px);
}

.map-card__image,
.build-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 46, 88, 0.85), rgba(52, 120, 246, 0.4));
}

.classes-grid {
  display: grid;
  gap: 18px;
}

.class-preview-card {
  padding: 20px;
}

.class-preview-card__header,
.ascendancy-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.class-preview-card__header img,
.ascendancy-card__head img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(24, 35, 56, 0.08);
  object-fit: contain;
}

.class-preview-card__header h3,
.class-preview-card__header p,
.ascendancy-card__head h3,
.ascendancy-card__head p {
  margin: 0;
}

.class-preview-card__header h3 {
  font-size: 26px;
}

.class-preview-card__header p,
.ascendancy-card__head p {
  color: var(--muted);
}

.ascendancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ascendancy-card {
  box-shadow: none;
}

.ascendancy-notables {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ascendancy-notables li {
  display: grid;
  gap: 4px;
}

.ascendancy-notables span {
  color: var(--muted);
  line-height: 1.45;
}

.source-note--link {
  text-decoration: none;
}

.source-note--link:hover {
  color: var(--blue);
}

.rank-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.map-card__image img,
.build-card__image img {
  width: 100%;
  height: 100%;
  display: block;
}

.map-card__image img {
  object-fit: contain;
}

.build-card__image img {
  object-fit: cover;
}

.map-card__header,
.build-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.map-card h3,
.build-card h3,
.summary-card h3 {
  margin: 0;
  font-size: 22px;
}

.badge-stack,
.drop-list,
.build-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.drop-pill,
.build-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(232, 238, 249, 0.9);
  color: #3f5376;
  font-size: 13px;
}

.drop-pill {
  background: rgba(52, 120, 246, 0.1);
  color: #235bd4;
}

.map-card p,
.build-card p,
.summary-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.source-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24, 35, 56, 0.05);
  color: var(--text);
  text-decoration: none;
}

.source-note {
  justify-content: flex-start;
  min-height: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 248, 253, 0.76);
}

.detail-block strong {
  font-size: 13px;
  color: var(--text);
}

.checkpoint-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.builds-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.world-map-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.world-map-tab {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.world-map-tab span {
  color: var(--muted);
  font-size: 13px;
}

.world-map-tab.is-active {
  border-color: rgba(52, 120, 246, 0.34);
  background: var(--blue-soft);
  color: var(--blue);
}

.world-map-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.world-map-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(220, 226, 239, 0.94);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(67, 86, 124, 0.08);
}

.world-map-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #101827;
}

.world-map-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.world-rewards-panel {
  display: grid;
  gap: 14px;
  max-height: min(76vh, 860px);
  padding: 18px;
  border: 1px solid rgba(220, 226, 239, 0.94);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(67, 86, 124, 0.08);
  overflow: auto;
}

.world-rewards-panel__header p,
.world-rewards-panel__header h3 {
  margin: 0;
}

.world-rewards-panel__header p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.world-rewards-panel__header h3 {
  margin-top: 6px;
  font-size: 22px;
}

.world-reward-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.world-reward {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 248, 253, 0.86);
}

.world-reward__node {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #182338;
  color: #fff;
  font-weight: 700;
}

.world-reward strong,
.world-reward p,
.world-reward small {
  margin: 0;
}

.world-reward p {
  margin-top: 4px;
  color: var(--text);
  line-height: 1.45;
}

.world-reward small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.summary-card strong {
  font-size: 30px;
  line-height: 1;
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(99, 117, 152, 0.28);
  border-radius: 22px;
}

.site-footer {
  padding: 26px 4px 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  body {
    padding: 16px;
  }

  .site-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .language-switcher {
    justify-self: start;
  }

  .site-brand {
    min-height: 0;
    padding: 6px 0;
  }

  .ggg-news {
    min-height: 0;
  }

  .panel {
    padding: 18px;
  }

  .builds-summary {
    grid-template-columns: 1fr;
  }

  .world-map-viewer {
    grid-template-columns: 1fr;
  }

  .world-rewards-panel {
    max-height: none;
  }

  .tabbar {
    width: 100%;
  }

  .tabbar__button {
    min-width: 0;
  }
}
