:root {
  color-scheme: dark;
  --bg: #101019;
  --panel: #191927;
  --border: #323043;
  --text: #f3edf8;
  --muted: #c3b9cf;
  --accent: #f5c984;
  --pink: #eab7cb;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.58 "Inter",
    "Segoe UI",
    sans-serif;
}
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.06;
}
h1 {
  font-size: clamp(2.65rem, 5.8vw, 5.2rem);
  letter-spacing: -0.045em;
  max-width: 12ch;
}
h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
h3 {
  line-height: 1.25;
}
[id] {
  scroll-margin-top: 22px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin: 34px 0 18px;
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid #503849;
  border-radius: 24px;
  background: radial-gradient(ellipse at 85% 24%, #432535 0%, transparent 58%), linear-gradient(115deg, #211b31, #1b1929);
}
.brand {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.deck {
  margin-top: 16px;
  color: var(--muted);
  max-width: 44ch;
}

.prose p + p {
  margin-top: 10px;
}
.prose ol,
.prose ul {
  margin: 0;
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 12px;
}
.prose li::marker {
  color: var(--accent);
  font-weight: 700;
}
.prose strong {
  color: var(--text);
}
.role-nav {
  margin: 18px 0 0;
  line-height: 1.5;
}
.reserve-copy {
  margin-bottom: 18px;
}
.examples {
  margin-top: 0;
}
.feature {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
.feature a {
  display: grid;
  min-width: 0;
  width: min(31%, 110px);
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}
.feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 90/197;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #987386;
}
.feature a:nth-child(2) {
  width: min(35%, 124px);
}
.feature span {
  margin-top: 6px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 42px;
}
nav a {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
nav a:hover,
.feature a:hover span {
  color: var(--accent);
  text-decoration: underline;
}
section {
  margin-bottom: 49px;
}
.start,
.grid,
.examples {
  display: grid;
  gap: 13px;
}
.start {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.start article,
.guide-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.start h3,
.guide-item h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.start p,
.guide-item p {
  color: var(--muted);
}
.by-weapon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.by-weapon span {
  display: inline-block;
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
}
.card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 88/192;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 7px;
}
.card-title h3 {
  font-size: 1.23rem;
}
.tier {
  flex: none;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  background: #373446;
  color: #ddd5e6;
}
.tier-ss {
  background: #553247;
  color: #ffd0e2;
}
.tier-s {
  background: #463821;
  color: #ffdda0;
}
.tier-a {
  background: #243d46;
  color: #bae5ee;
}
.role {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 4px;
}
.role span {
  color: var(--pink);
}
.stats {
  margin: 9px 0 5px;
  color: var(--accent);
  font-size: 0.89rem;
  font-weight: 700;
}
.card-copy > p:not(.role):not(.stats) {
  font-size: 0.93rem;
}
.card-detail {
  margin-top: 8px;
  color: var(--muted);
}
.decision {
  margin-top: 13px;
}
.guide-item p + p {
  margin-top: 8px;
}
.guide-list {
  display: grid;
  gap: 9px;
}
.examples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}
figure {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
figure img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #11111b;
}
figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 850px) {
  .start {
    grid-template-columns: 1fr;
  }
  .examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 690px) {
  main,
  footer {
    width: calc(100% - 28px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 14px;
  }
  .feature {
    justify-content: start;
  }
  .grid,
  .examples {
    grid-template-columns: 1fr;
  }
  section {
    margin-bottom: 38px;
  }
}
@media (max-width: 390px) {
  .card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  :root {
    color-scheme: light;
    --text: #211d27;
    --muted: #423947;
    --panel: #fff;
    --bg: #fff;
    --border: #a49ca8;
    --accent: #613800;
    --pink: #754661;
  }
  .hero {
    background: none;
  }
  .grid {
    display: block;
  }
  .card,
  figure,
  .start article {
    break-inside: avoid;
    margin-bottom: 8px;
  }
  a {
    color: inherit;
  }
}

.hero-name {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.hero-name:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portrait-popup {
  position: fixed;
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 24px #0009;
  text-align: center;
  font-size: 0.85rem;
}

.portrait-popup img {
  display: block;
  width: min(112px, 100%);
  height: min(245px, max(24px, calc(100vh - 56px)));
  object-fit: contain;
  border-radius: 6px;
}

.portrait-popup span {
  display: block;
  padding: 4px 3px 0;
}

@media print {
  .hero-name {
    text-decoration: none;
  }
  .portrait-popup {
    display: none;
  }
}
