:root {
  color: #f7f8fc;
  background: #090e18;
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-synthesis: none;
  --gold: #f4c45d;
  --gold-bright: #ffe9a6;
  --muted: #9ca9bb;
  --panel: rgba(21, 31, 48, 0.92);
  --line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 80% 5%, rgba(38, 91, 150, 0.22), transparent 32rem),
    #090e18;
  color: #f7f8fc;
  line-height: 1.75;
}

a {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 196, 93, 0.18);
  background:
    linear-gradient(155deg, rgba(8, 15, 27, 0.75), rgba(8, 15, 27, 0.98)),
    repeating-linear-gradient(120deg, transparent 0 36px, rgba(244, 196, 93, 0.04) 37px 38px);
}

.hero::after {
  position: absolute;
  inset: auto -8rem -11rem auto;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(244, 196, 93, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(244, 196, 93, 0.02);
  content: "";
}

.topbar,
.hero__content,
.content {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  transform: rotate(45deg);
}

.brand__mark::first-letter {
  transform: rotate(-45deg);
}

.unofficial {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero__glow {
  position: absolute;
  top: 7rem;
  right: -6rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(41, 120, 196, 0.16);
  filter: blur(35px);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 15vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 span {
  display: block;
  color: var(--gold-bright);
}

.hero__summary {
  max-width: 38rem;
  margin: 1.7rem 0 0;
  color: #c5ceda;
  font-size: 0.94rem;
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, #d99d32, #f4cf72);
  color: #1a1408;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.content {
  padding-block: 2.2rem 4rem;
}

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(89, 161, 221, 0.22);
  border-radius: 0.7rem;
  background: rgba(31, 78, 119, 0.14);
}

.notice__icon {
  display: grid;
  flex: 0 0 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(89, 161, 221, 0.18);
  color: #a9d9ff;
  font-weight: 800;
}

.notice strong {
  font-size: 0.85rem;
}

.notice p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 3rem 0 1.2rem;
}

.section-heading h2,
.source-card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.patch-list {
  display: grid;
  gap: 0.7rem;
}

.patch-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
}

.patch-card[open] {
  border-color: rgba(244, 196, 93, 0.3);
}

.patch-card summary {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  list-style: none;
}

.patch-card__heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chapter-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

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

.toggle-icon {
  position: relative;
  flex: 0 0 1.4rem;
  height: 1.4rem;
}

.toggle-icon::before,
.toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 1px;
  background: var(--gold);
  content: "";
}

.toggle-icon::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.patch-card[open] .toggle-icon::after {
  transform: rotate(0);
}

.patch-card__body {
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  color: #c6cfdb;
  font-size: 0.84rem;
}

.patch-card__body p {
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.topic-list {
  display: grid;
  gap: 0.85rem;
}

.topic {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.7rem;
  background:
    linear-gradient(140deg, rgba(30, 44, 67, 0.94), rgba(15, 23, 36, 0.94));
}

.topic::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
  content: "";
}

.topic--battlefield::before {
  background: linear-gradient(#67b9ee, transparent);
}

.topic__header {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.topic__portrait {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(244, 196, 93, 0.45);
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 233, 166, 0.2), transparent 45%),
    #172237;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.topic__portrait--name {
  padding-inline: 0.2rem;
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: clamp(0.43rem, 2vw, 0.58rem);
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.topic--battlefield .topic__portrait {
  border-color: rgba(103, 185, 238, 0.5);
  color: #a9ddff;
}

.topic__type {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.topic__title h3 {
  margin: 0.12rem 0 0;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
}

.status-badge {
  padding: 0.28rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge--buff {
  background: rgba(62, 202, 137, 0.09);
  color: #70e1aa;
}

.status-badge--nerf {
  background: rgba(240, 104, 110, 0.09);
  color: #ff9297;
}

.status-badge--adjust {
  background: rgba(103, 185, 238, 0.09);
  color: #8bd2ff;
}

.topic__body {
  padding: 0 0.95rem 1rem;
}

.topic__body p {
  position: relative;
  margin: 0.8rem 0 0;
  padding-left: 0.9rem;
}

.topic__body p::before {
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #53637a;
  content: "";
}

.topic-line {
  margin: 1rem -0.2rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid var(--gold);
  background: rgba(244, 196, 93, 0.06);
  color: var(--gold-bright);
  font-size: 0.86rem;
  line-height: 1.55;
}

.topic-line--buff {
  border-left-color: #70e1aa;
  background: rgba(62, 202, 137, 0.06);
  color: #9ce9c4;
}

.topic-line--nerf {
  border-left-color: #ff9297;
  background: rgba(240, 104, 110, 0.06);
  color: #ffb0b4;
}

.source-card {
  margin-top: 3rem;
  padding: 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(244, 196, 93, 0.06);
}

.source-card p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

footer {
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

@media (min-width: 38rem) {
  .hero__actions {
    display: flex;
  }

  .button {
    min-width: 11rem;
    padding-inline: 1.4rem;
  }

  .hero__content {
    padding-block: 6.5rem;
  }

  .patch-card__body {
    padding: 1.2rem;
  }

  .topic__header {
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    padding: 1.1rem;
  }

  .topic__portrait {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.55rem;
  }

  .topic__portrait--name {
    font-size: 0.64rem;
  }

  .topic__title h3 {
    font-size: 1.3rem;
  }
}

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

  .toggle-icon::after {
    transition: none;
  }
}
