:root {
  --bg: #12110f;
  --ink: #f3ece2;
  --muted: #c4b8a8;
  --faint: #8f8476;
  --line: rgba(243, 236, 226, 0.12);
  --line-strong: rgba(243, 236, 226, 0.26);
  --accent: #d7a15a;
  --accent-ink: #2a1c0c;
  --moon: #f6edd8;
  --swift: #c5d5e4;
  --danger: #e07a68;
  --serif: Batang, "BatangChe", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --nav: 248px;
  --measure: 74ch;
  color-scheme: dark;
}

@font-face {
  font-family: "Black Han Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/black-han-sans-latin.woff2?v=1") format("woff2");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(215, 161, 90, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
::selection { background: rgba(215, 161, 90, 0.35); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f0c48a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 6;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.shell {
  display: grid;
  grid-template-columns: var(--nav) minmax(0, 1fr);
  min-height: 100vh;
}

.nav-slot { display: contents; }
.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(18, 17, 15, 0.92);
  overflow: hidden;
}
.nav-head { display: contents; }
.nav-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.visits {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.visits-count,
.visits-admin { white-space: nowrap; }
.visits-admin { margin-left: auto; }
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  margin-bottom: 18px;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand span { display: block; color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }
.brand-mark { display: none; }
.moons { position: relative; width: 36px; height: 28px; flex: none; }
.moons i {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.moons .elder { width: 22px; height: 22px; background: var(--moon); left: 0; top: 4px; }
.moons .swift { width: 12px; height: 12px; background: var(--swift); right: 0; top: 0; }
.nav ol { list-style: none; margin: 0; padding: 0; }
.nav ol a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
}
.nav ol a:hover { color: var(--ink); }
.nav ol a[aria-current="page"] {
  color: var(--ink);
  border-left-color: var(--accent);
}
.nav-branch,
.nav .nav-group > a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 10px;
}
.nav-branch {
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.nav-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nav-ico { width: 22px; height: 22px; flex: none; color: var(--accent); }
.nav-bell { position: relative; display: inline-flex; flex: none; }
.nav-alerts .nav-word {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-alerts .nav-ico { color: var(--faint); }
.nav-alerts[aria-current="page"] .nav-ico {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(215, 161, 90, 0.9));
}
.nav-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23d3d;
  box-shadow: 0 0 0 2px var(--bg);
}
.nav-branch::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(-45deg);
  flex: none;
}
.nav-branch[aria-expanded="true"]::after { transform: rotate(45deg); margin-top: -3px; }
.nav-branch[aria-current="true"] { border-left-color: var(--accent); }
.nav ol ol a { padding-left: 40px; font-weight: 400; }
.alert-list { display: grid; gap: 8px; margin-top: 8px; }
.alert-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  color: var(--ink);
  text-decoration: none;
}
.alert-card:hover { color: var(--ink); border-color: var(--line-strong); }
.alert-card strong { font-size: 17px; font-weight: 600; }
.alert-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.alert-card time { color: var(--faint); font-size: 13px; }
.alert-kind {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.alert-card.is-new { box-shadow: inset 3px 0 0 #e23d3d; }
.nav-admin {
  flex: none;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.nav-find { margin: 0 0 10px; }
.nav-search { position: relative; display: block; }
.nav-search-ico {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  color: var(--faint);
  pointer-events: none;
}
.nav-find input {
  width: 100%;
  padding-left: 32px;
  border-color: transparent;
}
.nav-find input:focus { border-color: var(--line-strong); }
.nav-find input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--line-strong);
}
.nav-hits { display: grid; margin-top: 6px; }
.nav-hits[hidden] { display: none; }
.nav-hits .empty { margin: 6px 10px; font-size: 13px; }
.kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  flex: none;
  align-self: center;
}
h2:target,
section:target > h2 {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 10px;
}
.play {
  display: block;
  width: 100%;
  margin-top: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}
.play.play-menu { display: none; }
.play:hover { color: var(--accent-ink); background: #e0b16e; }
.nav .fine { margin-top: 16px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.notice-path {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.notice-list { display: grid; gap: 12px; }
.notice-card {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
}
.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.notice-tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.notice-card h2 { margin: 8px 0 10px; font-size: 22px; }
.notice-body {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle:active { transform: scale(0.97); }
.nav-pin {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.nav-pin svg { width: 18px; height: 18px; display: block; }
.nav-pin:hover { color: var(--ink); background: rgba(243, 236, 226, 0.06); }
.nav-pin:active { transform: scale(0.97); }
.play-ico { display: none; width: 16px; height: 16px; }
@media (min-width: 901px) {
  .nav-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .nav-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    align-items: start;
    flex: none;
    margin-bottom: 4px;
  }
  .nav-toggle-space { display: none; }
  .nav-head .brand {
    display: flex;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 0;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 22px 0 0;
  }
  .nav-head .brand .moons { display: none; }
  .nav-head .brand .nav-word {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-head .brand-mark {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .nav-alerts {
    display: inline-flex;
    position: relative;
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    align-self: start;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--faint);
    text-decoration: none;
  }
  .nav-pin {
    display: inline-flex;
    position: relative;
    grid-column: 3;
    grid-row: 1;
    z-index: 1;
    align-self: start;
    justify-self: end;
  }
  .nav-menu {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #guide-pages {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    min-height: 0;
    overflow: auto;
    margin: 0;
  }
  #guide-pages > li { flex: none; }
  .nav .fine { flex: none; order: 2; margin-top: 12px; }
  .play { flex: none; order: 3; margin-top: 12px; }
  body.nav-closed { --nav: 56px; }
  body.nav-closed .nav {
    padding: 18px 0 14px;
    overflow: visible;
    background: transparent;
    border-right-color: transparent;
  }
  body.nav-closed .nav-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }
  body.nav-closed .nav-head { display: contents; }
  body.nav-closed .brand { display: none; }
  body.nav-closed .nav-pin { order: 0; margin-top: 0; align-self: center; }
  body.nav-closed .nav-alerts {
    order: 1;
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 8px 0 0;
    padding: 0;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: var(--faint);
  }
  body.nav-closed .nav-menu {
    order: 2;
    flex: 1 1 auto;
    align-items: center;
    justify-content: safe center;
    width: 100%;
    overflow: visible;
  }
  body.nav-closed #guide-pages {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 2px;
    width: 100%;
    overflow: visible;
  }
  body.nav-closed .play { order: 4; align-self: center; }
  body.nav-closed .nav-find,
  body.nav-closed .nav ol ol,
  body.nav-closed .nav .fine,
  body.nav-closed .visits,
  body.nav-closed .nav-branch::after { display: none; }
  body.nav-closed .nav-admin {
    order: 3;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
  body.nav-closed .nav-admin > .nav-group { display: flex; justify-content: center; }
  body.nav-closed .nav-word {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.nav-closed .nav-branch,
  body.nav-closed .nav .nav-group > a,
  body.nav-closed .nav-alerts,
  body.nav-closed .play,
  body.nav-closed .nav-pin,
  body.nav-closed .brand {
    position: relative;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--faint);
    transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
  }
  body.nav-closed .nav-branch,
  body.nav-closed .nav .nav-group > a,
  body.nav-closed .play,
  body.nav-closed .nav-pin {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
  }
  body.nav-closed .nav-pin { margin-top: 0; }
  body.nav-closed .nav-label { justify-content: center; }
  body.nav-closed .nav-ico,
  body.nav-closed .play-ico,
  body.nav-closed .nav-pin svg { width: 22px; height: 22px; color: inherit; }
  body.nav-closed .nav-branch[aria-current="true"],
  body.nav-closed .nav .nav-group > a[aria-current="page"] {
    background: transparent;
    color: var(--ink);
  }
  body.nav-closed .nav-alerts[aria-current="page"] {
    background: transparent;
    color: var(--faint);
  }
  body.nav-closed .play {
    display: flex;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-top: 14px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
  }
  body.nav-closed .nav-menu > .play.play-menu { display: none; }
  body.nav-closed .play-ico { display: block; width: 26px; height: 26px; }
  body.nav-closed .nav-branch:active,
  body.nav-closed .nav .nav-group > a:active,
  body.nav-closed .nav-alerts:active,
  body.nav-closed .play:active,
  body.nav-closed .brand:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) {
    body.nav-closed .nav-branch:hover,
    body.nav-closed .nav .nav-group > a:hover,
    body.nav-closed .nav-alerts:hover,
    body.nav-closed .nav-pin:hover,
    body.nav-closed .brand:hover {
      background: rgba(243, 236, 226, 0.06);
      color: var(--ink);
    }
    body.nav-closed .nav-alerts:hover .nav-ico { color: var(--ink); filter: none; }
    body.nav-closed .play:hover {
      background: #e0b16e;
      color: var(--accent-ink);
    }
  }
  body.nav-closed [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 3px 7px;
    border-radius: 6px;
    background: #2a2824;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease;
  }
  body.nav-closed [data-tip]:hover::after,
  body.nav-closed [data-tip]:focus-visible::after {
    opacity: 1;
    transition-delay: 180ms;
  }
  body.nav-closed .nav-alerts .nav-ico { color: var(--faint); filter: none; }
  body.nav-closed .nav-alerts[aria-current="page"] .nav-ico,
  body.nav-closed .nav-alerts[aria-current="page"]:hover .nav-ico {
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(215, 161, 90, 0.9));
  }
}
.phone-note { display: none; }
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}
.to-top svg { width: 22px; height: 22px; display: block; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent-ink); background: #e0b16e; }

main {
  --page: 980px;
  width: min(100%, var(--page));
  margin-left: max(0px, calc(50vw - var(--page) / 2 - var(--nav)));
  margin-right: auto;
  padding: 36px 48px 80px;
}
.hero { position: relative; padding-bottom: 8px; }
.kicker {
  margin: 0 0 8px;
  color: var(--faint);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 14px; }
h2 { font-size: 30px; margin: 1.6em 0 0.45em; scroll-margin-top: var(--nav-h, 18px); }
h3 { font-size: 22px; margin: 28px 0 8px; scroll-margin-top: var(--nav-h, 18px); }
.lede { font-size: 19px; max-width: var(--measure); color: var(--muted); margin-top: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.button, .ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
}
.button { background: var(--accent); color: var(--accent-ink); }
.button:hover { background: #e0b16e; color: var(--accent-ink); }
.ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.ghost:hover { border-color: var(--accent); color: var(--ink); }

.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 10px;
}
.home-hub a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 132px;
  padding: 18px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.home-hub .hub-ico { width: 28px; height: 28px; flex: none; }
.home-hub strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.home-hub small {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}
.home-hub a:hover {
  border-color: var(--line-strong);
  background: rgba(243, 236, 226, 0.05);
  color: var(--ink);
}
.home-hub a:active { transform: scale(0.98); }
.home-hub a.is-main {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.home-hub a.is-main strong { font-size: 30px; font-weight: 700; }
.home-hub a.is-main small { color: rgba(42, 28, 12, 0.78); }
.home-hub a.is-main:hover {
  background: #e0b16e;
  border-color: #e0b16e;
  color: var(--accent-ink);
}
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.atlas { margin: 22px 0 8px; }
.atlas-view {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #16315c;
  touch-action: pan-y;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
.atlas-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atlas-view.is-zoomed { touch-action: none; cursor: grab; overscroll-behavior: contain; }
.atlas-view.is-panning { cursor: grabbing; }
.atlas-stage {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}
.atlas-stage img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}
.atlas-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.atlas-tools button,
.atlas-zoom {
  height: 36px;
  margin: 0;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  background: rgba(18, 17, 15, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.atlas-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  cursor: pointer;
}
.atlas-tools button:hover { border-color: var(--accent); }
.atlas-tools button:active { transform: scale(0.97); }
.atlas-tools button:disabled { opacity: 0.4; cursor: default; transform: none; }
.atlas-zoom { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.dungeon-map { margin: 8px 0 18px; }
.dungeon-map-frame {
  position: relative;
  container-type: inline-size;
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #12110f;
}
.dungeon-map-frame img { display: block; width: 100%; height: auto; }
.dungeon-north,
.dungeon-scale,
.dungeon-map .pin b {
  color: #f3ece2;
  text-shadow: 0 1px 2px #12110f, 0 0 8px #12110f;
}
.dungeon-north {
  position: absolute;
  top: 8px;
  left: 12px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.dungeon-north::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 6px;
  background: #f3ece2;
  vertical-align: -3px;
}
.dungeon-scale {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 17.36%;
  margin: 0;
  font-size: 12px;
}
.dungeon-scale i {
  display: block;
  height: 2px;
  margin-bottom: 3px;
  background: #f3ece2;
}
.dungeon-map .pin {
  position: absolute;
  width: 0;
  height: 0;
  text-decoration: none;
}
.dungeon-map .pin i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f3ece2;
  border: 2px solid #141210;
  box-shadow: 0 0 0 1px rgba(243, 236, 226, 0.55);
}
.dungeon-map .pin.is-town i {
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: 0 0 0 2px #141210, 0 0 0 4px var(--accent);
}
.dungeon-map .pin b {
  position: absolute;
  left: 12px;
  top: -9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(18, 17, 15, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: none;
}
.dungeon-map .pin-crypt b { left: auto; right: 12px; top: -16cqw; }
.dungeon-map .pin-orc b { left: 12px; top: 16px; }
.dungeon-map .pin-ogre b { left: 12px; top: 16px; }
.dungeon-map .pin-skeleton b { top: -26px; }
.dungeon-map .pin:hover b,
.dungeon-map .pin:focus-visible b { color: #f0c48a; }
.dungeon-map figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.atlas figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.calc .atlas-app { margin: 4px 0 12px; }
.calc .atlas { margin: 8px 0 0; }
.atlas-app[data-atlas-pick] .atlas-view { cursor: crosshair; }
.atlas-app[data-atlas-pick] .atlas-view.is-zoomed { cursor: grab; }
.atlas-range {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.atlas-range line { stroke: #f0c48a; stroke-width: 8; stroke-linecap: round; }
.atlas-pin {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid #141210;
  border-radius: 50%;
  pointer-events: none;
}
.atlas-pin b {
  position: absolute;
  left: 16px;
  top: -6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(18, 17, 15, 0.82);
  color: #f3ece2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.atlas-pin-home { background: var(--accent); box-shadow: 0 0 0 2px #141210; }
.atlas-pin-pick { background: #f3ece2; }
.atlas-pin-pick b { color: #f0c48a; }
@media (prefers-reduced-motion: reduce) {
  .atlas-tools button:active { transform: none; }
}
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.directory a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
}
.directory a:hover { border-color: var(--line-strong); background: rgba(243, 236, 226, 0.05); }
.directory small {
  color: var(--faint);
  letter-spacing: 0.12em;
  font-size: 12px;
}
.directory strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.directory span { color: var(--muted); font-size: 14.5px; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pager a {
  flex: 0 1 46%;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(243, 236, 226, 0.03);
}
.pager a:hover { border-color: var(--line-strong); color: var(--ink); }
.pager small { display: block; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; }
.pager strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.pager .blurb { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.pager .next { margin-left: auto; text-align: right; }
.strip article, .card, .calc, .note {
  background: rgba(243, 236, 226, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.strip article { padding: 14px 14px 12px; }
.strip b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.strip span { color: var(--muted); font-size: 13px; }

section { padding-top: 8px; scroll-margin-top: 18px; }
section > p, .prose p { max-width: var(--measure); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.card { padding: 16px 16px 8px; }
.card h3 { margin-top: 0; }
ol.steps, ul.clean { padding-left: 1.15em; }
ol.steps li, ul.clean li { margin: 6px 0; }
ol.steps { max-width: var(--measure); }
ol.path {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  counter-reset: path;
  display: grid;
  gap: 10px;
}
ol.path > li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  counter-increment: path;
}
ol.path > li::before {
  content: counter(path);
  position: absolute;
  left: 14px;
  top: 11px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
ol.path p { margin: 0; }
ol.path .where { margin-top: 6px; color: var(--muted); font-size: 14.5px; }


/* Guide routes and readiness checks. */
.beginner-route, .guide-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}
.beginner-route li, .guide-route li { min-width: 0; }
.beginner-route a, .guide-route a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.025);
  color: var(--ink);
  text-decoration: none;
}
.beginner-route a:hover, .guide-route a:hover { border-color: var(--line-strong); color: var(--ink); }
.beginner-route img, .guide-route img { display: block; width: 32px; height: 32px; object-fit: contain; }
.beginner-route strong, .guide-route strong { display: block; font-size: 16px; line-height: 1.45; }
.beginner-route small, .guide-route small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.beginner-section, .guide-section {
  margin-top: 32px;
  padding-top: 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h, 18px);
}
.beginner-section h2, .guide-section h2 { margin-top: 24px; }
.beginner-check, .guide-check {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 4px 12px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--line-strong);
  border-radius: 0 8px 8px 0;
  background: rgba(243, 236, 226, 0.035);
  color: var(--muted);
  font-size: 15px;
}
.beginner-check strong, .guide-check strong { color: var(--ink); }
.beginner-extra, .guide-extra {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.025);
}
.beginner-extra > summary, .guide-extra > summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.beginner-extra > summary .named, .guide-extra > summary .named { margin-left: 4px; }
.beginner-extra p, .guide-extra p { max-width: var(--measure); }
.beginner-items td:first-child { min-width: 142px; }
.beginner-items td:nth-child(2) { white-space: nowrap; }
.beginner-items td:nth-child(3) { min-width: 220px; }
.beginner-beasts td:first-child { min-width: 142px; }
.beginner-beasts td:nth-child(2) { min-width: 105px; }
.beginner-beasts .named small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .beginner-route, .guide-route { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .beginner-route a, .guide-route a { padding: 12px 14px; }
  .beginner-check, .guide-check { grid-template-columns: 1fr; }
}

.table-wrap { overflow-x: auto; margin: 14px 0 8px; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap.more {
  background-image: linear-gradient(to left, rgba(18, 17, 15, 0.94), rgba(18, 17, 15, 0));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 28px 100%;
}
.table-wrap th:first-child,
.table-wrap td:first-child {
  position: sticky;
  left: 0;
  background: #171614;
  z-index: 1;
}
.table-wrap thead th:first-child { z-index: 2; }
.table-wrap tbody tr:hover td:first-child { background: #211f1c; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: 13px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
th.sortable { cursor: pointer; }
th.sortable[aria-sort="ascending"]::after { content: " ↑"; }
th.sortable[aria-sort="descending"]::after { content: " ↓"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
table.steps { table-layout: fixed; }
table.steps .num { width: 4.2em; }
table.steps th:nth-child(3),
table.steps td:nth-child(3) { width: 28%; }
table.steps th:nth-child(4),
table.steps td:nth-child(4) { width: 22%; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(243, 236, 226, 0.04); }
.tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
}
.tag.boss { color: var(--danger); border-color: rgba(224, 122, 104, 0.45); }
.na { color: var(--faint); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.toolbar > input[type="search"],
.toolbar > label:has(input[type="search"]) { flex: 1 1 180px; max-width: 360px; min-width: 0; }
.chips { flex-basis: 100%; }
input, select {
  background: #0e0d0b;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
input[type="search"] { width: min(360px, 100%); }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-ms-clear {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.calc { padding: 16px; margin: 16px 0; display: grid; gap: 14px; }
.calc button {
  justify-self: start;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}
.calc button:hover { border-color: var(--accent); }
.beast-name { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.beast-portrait { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #0e0d0b; color: var(--faint); }
.beast-name a { font-size: 12px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sim-pick { position: relative; min-width: 0; }
.sim-pick.is-open { z-index: 4; }
.sim-pick-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sim-pick-face,
.sim-pick-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sim-pick-face {
  background: #0e0d0b;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 8px;
}
.sim-pick-face:hover { border-color: var(--accent); }
.sim-pick-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: auto;
  top: calc(100% + 4px);
  min-width: 100%;
  width: max-content;
  max-width: min(440px, calc(100vw - 24px));
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  background: #161411;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
@media (min-width: 901px) {
  #guard + form .calc-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.7fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
  }
}
.sim-pick-option {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 6px;
}
.sim-pick-option:hover,
.sim-pick-option[aria-selected="true"] { background: rgba(243, 236, 226, 0.06); }
.sim-pick-imgs { display: flex; gap: 4px; flex: none; }
.sim-pick img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  background: #0e0d0b;
}
.sim-pick img.sim-pick-icon {
  object-fit: contain;
  image-rendering: pixelated;
  padding: 2px;
}
.sim-pick-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-pick-boss { margin-left: auto; flex: none; color: var(--danger); font-size: 12px; }
#enchant-calc > * { min-width: 0; }
#enchant-out .result li, #calc-out .result li { flex-wrap: wrap; }
#enchant-out .result b, #calc-out .result b { overflow-wrap: anywhere; }
#enchant-steps th { white-space: normal; letter-spacing: 0; }
.calc output {
  display: block;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 3.2em;
}
.big {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--moon);
}
.result { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.result li { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.result span { color: var(--muted); }
.result b { font-weight: 600; text-align: right; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 4px 0 18px; }
.toc a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
}
.toc a:hover, .toc a.is-here { color: var(--ink); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .count { font: inherit; }
.chips button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
}
.chips button.is-on { color: var(--ink); border-color: var(--accent); }
.count { color: var(--faint); font-size: 13px; }
.empty { color: var(--muted); margin: 10px 0; }
.icon-grid .alias { display: block; color: var(--faint); font-size: 12px; line-height: 1.35; }
a[target="_blank"]::after {
  content: "↗";
  font-size: 0.75em;
  margin-left: 0.28em;
  text-decoration: none;
  display: inline-block;
}
.note { padding: 12px 14px; color: var(--muted); margin: 12px 0; }
.note strong { color: var(--ink); }
.named { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.named img, .icon-grid img {
  object-fit: contain;
  background: #070605;
  border-radius: 4px;
  flex: none;
}
.named img { width: 32px; height: 32px; }
.icon-board, #icon-mount { display: grid; gap: 8px; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.icon-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  min-width: 0;
}
.icon-grid article:hover,
.icon-grid article:focus-within,
.icon-grid article.is-open { z-index: 3; }
.icon-grid article:focus {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.icon-grid .where {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 4;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #1c1a17;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
}
.icon-grid .where .blurb,
.icon-grid .where .source { margin: 0; }
.icon-grid .where .blurb + .source {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.icon-grid article:hover .where,
.icon-grid article:focus .where,
.icon-grid article:focus-within .where,
.icon-grid article.is-open .where {
  opacity: 1;
  visibility: visible;
}
.icon-grid img { width: 52px; height: 52px; }
.icon-grid strong { display: block; font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.icon-grid small { display: block; color: var(--faint); font-size: 12px; line-height: 1.35; }
.sources { color: var(--muted); font-size: 14.5px; }
.sources li { margin: 6px 0; }
footer.colophon { margin-top: 48px; color: var(--faint); font-size: 13px; }
.site-version {
  margin: 36px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .shell { display: block; }
  .nav-slot {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-rows: 1fr;
    overflow-anchor: none;
    transition: grid-template-rows 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav-slot.is-away { grid-template-rows: 0fr; }
  .nav {
    position: relative;
    top: auto;
    height: auto;
    z-index: 1;
    min-height: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    background: #12110f;
    transition: opacity 360ms ease, transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 360ms ease, border-color 360ms ease, padding 420ms cubic-bezier(0.22, 0.61, 0.36, 1), border-bottom-width 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav-slot.is-away .nav {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-18px);
    background: transparent;
    border-bottom-color: transparent;
    border-bottom-width: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }
  .nav { flex-direction: column; height: auto; }
  .nav-toggle {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 6;
    background: transparent;
  }
  .nav-toggle-space { width: 36px; height: 36px; grid-column: 1; }
  @media (prefers-reduced-motion: reduce) {
    .nav-slot, .nav { transition: none; }
  }
  .nav-body { display: flex; flex: none; flex-direction: column; align-items: stretch; min-height: 0; overflow: visible; }
  .nav-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    width: 100%;
  }
  .nav-toggle { display: inline-flex; }
  .brand { grid-column: 2; justify-self: center; justify-content: center; margin: 0; min-width: 0; width: 100%; }
  .brand .moons { display: none; }
  .brand .nav-word,
  .brand strong { text-align: center; }
  .brand .nav-word {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .brand-mark {
    display: block;
    width: min(268px, 100%);
    height: auto;
    overflow: visible;
  }
  .brand-mark text { font-family: "Black Han Sans", sans-serif; }
  @media (max-width: 420px) {
    .brand-mark { width: min(200px, 86%); }
  }
  .brand .tagline, .nav .fine { display: none; }
  .nav-alerts {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    align-self: start;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-alerts[aria-current="page"] { color: var(--faint); }
  .nav-pin { display: none; }
  .phone-note { display: block; margin: 28px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }
  .nav .play { display: none; }
  .nav > .visits { margin-top: -14px; line-height: 1.15; }
  .nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
    flex-direction: column;
    max-height: min(70dvh, 560px);
    overflow: auto;
    padding: 6px 8px 10px;
    background: #171614;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open .nav-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: none;
  }
  .nav.is-open #guide-pages {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(min(70dvh, 560px) - 76px);
    overflow: auto;
  }
  .nav.is-open .nav-admin {
    flex: none;
    min-height: 0;
    max-height: 180px;
    overflow: auto;
  }
  .nav.is-open .nav-menu > .play.play-menu {
    display: block;
    flex: none;
    margin-top: 10px;
  }
  .nav #guide-pages {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .nav-find,
  .nav-search { width: 100%; min-width: 0; }
  .nav-find input {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .nav ol ol {
    position: static;
    display: block;
    padding: 0 0 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav ol a { white-space: nowrap; border-bottom: 0; padding: 8px 10px; }
  .nav ol ol a { padding-left: 40px; }
  h1 { font-size: 34px; }
  .lede { font-size: 16.5px; word-break: normal; overflow-wrap: anywhere; }
  .nav ol a[aria-current="page"] { border-left-color: var(--accent); }
  main { padding: 22px 16px 64px; }
  .strip, .grid-2, .calc-grid, .directory { grid-template-columns: 1fr 1fr; }
  section { scroll-margin-top: var(--nav-h, 72px); }
}
button.button, button.ghost { font: inherit; cursor: pointer; }
button.button { border: 0; }
button.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 8px; padding: 8px 12px; }
textarea { width: 100%; background: #0e0d0b; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; }
.title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.title-row h1 { margin: 0; flex: none; }
.meet {
  margin: 0 0 0 auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: rgba(215, 161, 90, 0.14);
  color: var(--moon);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.meet strong { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .meet { font-size: 20px; padding: 7px 12px; }
}
body.trade-locked main,
body.board-locked main,
body.guild-locked main {
  display: grid;
  place-items: center;
  place-content: center;
  min-height: 100dvh;
}
@media (max-width: 900px) {
  body.trade-locked main,
  body.board-locked main,
  body.guild-locked main {
    min-height: calc(100svh - var(--nav-h, 120px));
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
body.trade-locked .page-head,
body.trade-locked #trade-live,
body.trade-locked .phone-note,
body.board-locked .page-head,
body.board-locked .toc,
body.board-locked .board-bar,
body.board-locked #list,
body.board-locked #view,
body.board-locked #write,
body.board-locked #board-msg,
body.board-locked .phone-note,
body.guild-locked .page-head,
body.guild-locked .toc,
body.guild-locked .board-bar,
body.guild-locked #register,
body.guild-locked #write,
body.guild-locked #guild-msg,
body.guild-locked .phone-note { display: none !important; }
body.trade-locked #board { display: none !important; }
body.trade-locked .trade-top,
body.board-locked #account,
body.guild-locked #account { width: max-content; max-width: 100%; }
body.board-locked #account.board-account,
body.guild-locked #account.board-account { display: block; }
body.trade-locked .trade-head { display: none !important; }
body.trade-locked #account,
body.board-locked #account,
body.guild-locked #account { margin: 0; }
body.trade-locked #account-mount,
body.board-locked #account,
body.guild-locked #account { text-align: center; }
#google-btn {
  display: inline-block;
  width: 280px;
  max-width: calc(100vw - 48px);
  min-height: 40px;
  vertical-align: top;
  background: transparent;
  color-scheme: normal;
}
#google-btn iframe { color-scheme: normal !important; }
@media (min-width: 901px) {
  #google-btn [role="button"] {
    background-color: #131314 !important;
    color: #e3e3e3 !important;
    border: 0 !important;
  }
}
@media (max-width: 900px) {
  #google-btn {
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(215, 161, 90, 0.85);
  }
}
#google-btn [role="button"] [class*="Bz112c-haAclf"] {
  background-color: transparent !important;
  box-shadow: none !important;
}
.trade-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
}
.trade-head h2 { margin: 0; }
#account { margin-top: 18px; min-width: 0; scroll-margin-top: calc(var(--nav-h, 18px) + 8px); }
#board-msg,
#guild-msg { scroll-margin-top: calc(var(--nav-h, 18px) + 8px); }
#account-mount { color: var(--muted); font-size: 14px; }
.profile-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  scroll-margin-top: var(--nav-h, 18px);
}
.profile-row > .fine { width: 260px; margin: 0; }
.profile-row > .fine:empty { display: none; }
.profile-tools {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.profile-tools button {
  background: none;
  border: 0;
  color: var(--faint);
  padding: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.profile-tools button:hover { color: var(--ink); }
.profile-tools .is-save { color: var(--accent); }
.profile-tools .is-save:hover { color: #f0c48a; }
.namecard {
  width: 260px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(243, 236, 226, 0.04);
}
.namecard-who {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.namecard-phone {
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 17px;
}
.namecard-hours { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.35; }
.namecard label { margin-top: 8px; }
.namecard input, .namecard select { width: 100%; min-width: 0; }
.namecard-range { display: flex; gap: 8px; }
.namecard-range label { flex: 1 1 0; margin-top: 0; }
.namecard .fine { margin: 8px 0 0; }
.filter-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.filter-name { color: var(--faint); font-size: 12px; }
.filter-combo { display: none; }
.trade-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.trade-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px 16px;
  align-items: center;
  margin-top: 18px;
}
.trade-bar .filter-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.trade-bar .chips { gap: 8px; }
.trade-bar .chips button {
  padding: 9px 18px;
  font-size: 17px;
  font-weight: 700;
  border-color: var(--line-strong);
}
.trade-bar .chips button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.trade-bar .trade-filters { grid-column: 2; grid-row: 1; }
.trade-bar > .trade-add {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.trade-bar > .trade-me {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.trade-add,
.trade-me {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.trade-add svg,
.trade-me svg { width: 30px; height: 30px; display: block; }
.trade-add:hover,
.trade-me:hover,
.trade-me[aria-expanded="true"] { color: var(--accent); background: transparent; }
.trade-add:active,
.trade-me:active { transform: scale(0.97); }
#account.account-pop { margin: 0; }
.account-pop {
  position: fixed;
  z-index: 30;
  width: min(300px, calc(100vw - 24px));
  max-height: min(80vh, 520px);
  margin: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #161411;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}
.account-pop.is-in { animation: account-in 140ms ease-out; }
@keyframes account-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
body.trade-locked #account.account-pop,
body.board-locked #account.account-pop,
body.guild-locked #account.account-pop {
  position: static;
  width: auto;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.account-pop .profile-row { align-items: stretch; }
.account-pop .namecard,
.account-pop .profile-row > .fine { width: 100%; }
.account-pop .namecard {
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: transparent;
  padding: 2px 2px 2px 12px;
}
.account-pop #google-btn { width: 100%; max-width: 100%; }
.trade-find {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.trade-find input[type="search"] { width: min(320px, 100%); max-width: none; min-width: 0; flex: 1 1 auto; }
.trade-find .count { margin: 0; white-space: nowrap; }
.trade-find > .kbd,
#write .kbd { display: none; }
#board-msg:empty,
#guild-msg:empty { display: none; }
#board-msg.is-alert { color: var(--ink); }
.trade-card .login-need {
  flex: 1 0 100%;
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.trade-foot > .trade-action-bar .login-need { text-align: right; }
@media (max-width: 900px) {
  .profile-row {
    align-items: stretch;
    scroll-margin-top: calc(var(--nav-h, 72px) + 8px);
  }
  .profile-tools { align-self: flex-end; }
  .namecard,
  .profile-row > .fine { width: 100%; }
  .trade-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .trade-bar .trade-filters { grid-column: 1 / -1; grid-row: 1; }
  .trade-bar > .trade-add { grid-column: 1; grid-row: 2; }
  .trade-find { grid-column: 2; grid-row: 2; justify-content: stretch; }
  .trade-find input[type="search"] { width: 100%; }
  .trade-bar > .trade-me { grid-column: 3; grid-row: 2; }
}
@media (max-width: 700px) {
  .trade-bar .trade-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
  }
  .trade-bar .filter-set {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    flex: none;
  }
  .trade-bar .filter-name { flex: none; }
  .trade-bar .chips { display: none; }
  .trade-bar .filter-combo {
    display: block;
    width: 6.15em;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 26px 8px 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-ink);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232a1c0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.2 6.1 8 10.4l4.8-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
  }
  .trade-bar .filter-combo option {
    color: var(--ink);
    background: #161411;
    font-weight: 600;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-pop.is-in,
  .trade-add:active,
  .trade-me:active { animation: none; transform: none; }
}
#account-mount > p { margin: 0 0 8px; }
.trade-head .button { margin-left: auto; transition: transform 160ms ease-out; }
.trade-head .button:active { transform: scale(0.97); }
.trade-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.trade-pages .chips { flex: 1 1 100%; }
.trade-pages-nav { display: flex; align-items: center; gap: 8px; }
#trade-page-label, #board-page-label { color: var(--muted); font-size: 14px; min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
#trade-page-label:empty { display: none; min-width: 0; }
.trade-pages-nav .ghost:disabled { opacity: 0.38; cursor: default; }
#write {
  margin: 14px 0 4px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(243, 236, 226, 0.03);
  scroll-margin-top: var(--nav-h, 18px);
}
#write > .fine { margin: 0 0 12px; }
.trade-panel-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--moon);
}
#trade-form.calc {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#trade-form .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trade-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--ink); }
.trade-title strong { font-weight: 600; color: var(--ink); }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.money-caption { margin: 10px 0 0; color: var(--ink); font-size: 14px; }

.trade-reach { display: contents; }
.trade-card .trade-meta,
.offer .trade-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.35;
}
.trade-card .trade-meta + .trade-meta,
.offer .trade-meta + .trade-meta { margin-top: 3px; }
.trade-foot > .trade-meta,
.trade-foot > .trade-meta + .trade-meta { margin-top: 0; }
.trade-hours { position: relative; width: max-content; max-width: 100%; }
.trade-hours::after {
  content: "거래시간";
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 6;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #1c1a17;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.trade-hours:hover::after,
.trade-hours:focus-within::after { opacity: 1; visibility: visible; }
.trade-hours:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.trade-card .trade-meta.reach-lock,
.offer .trade-meta.reach-lock { color: var(--faint); }
.trade-meta-ico { width: 1.15em; height: 1.15em; flex: none; color: var(--muted); }
.calc .chips button { border-radius: 999px; padding: 4px 12px; background: transparent; color: var(--muted); }
.calc .chips button.is-on { color: var(--ink); border-color: var(--accent); }
.tag.buy { color: var(--swift); border-color: rgba(197, 213, 228, 0.5); }
.tag.sell { color: var(--accent); border-color: rgba(215, 161, 90, 0.55); }
.trade-facts > .tag { display: block; width: fit-content; margin: 0 0 4px; }
.trade-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-actions .button { background: var(--accent); color: var(--accent-ink); border: 0; }
.trade-actions .button:hover { background: #e0b16e; color: var(--accent-ink); }
.pick-list { display: grid; gap: 4px; }
.pick-list button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; cursor: pointer;
}
.pick-list img, .chosen img, .trade-card img { image-rendering: pixelated; background: #0e0d0b; }
.chosen { display: flex; align-items: center; gap: 8px; margin: 0; }
.chosen span, .trade-card p { color: var(--muted); margin: 2px 0 0; }
.trade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.trade-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  container-type: inline-size;
  container-name: trade-card;
}
.trade-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "icon facts price";
  gap: 8px 12px;
  align-items: center;
  padding: 0 14px 12px;
}
.trade-item > .trade-kicker { grid-area: label; margin: 0; }
.trade-item .trade-icon { grid-area: icon; }
.trade-facts { grid-area: facts; min-width: 0; }
.trade-item .trade-side { grid-area: price; }
.trade-card .trade-kicker {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.trade-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nick phone";
  gap: 8px 14px;
  align-items: center;
  align-content: start;
  align-self: start;
  margin: 0 14px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.trade-foot:has(> .trade-hours),
.trade-foot:has(> .trade-action-bar button:not([hidden])) {
  grid-template-areas:
    "nick phone"
    "hours actions";
}
.trade-foot > .trade-who { grid-area: nick; min-width: 0; }
.trade-foot > .trade-phone { grid-area: phone; justify-self: end; min-width: 0; max-width: 100%; text-align: right; }
.trade-foot > .trade-meta span { min-width: 0; }
.trade-foot > .trade-hours { grid-area: hours; justify-self: start; }
.trade-foot > .trade-action-bar {
  grid-area: actions;
  justify-self: end;
  justify-content: flex-end;
  margin: 0;
}
.trade-card .trade-who { margin: 0; color: var(--ink); font-size: 16.5px; }
.trade-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin: 0 14px 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.trade-action-bar button {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--faint);
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.trade-action-bar button:hover { color: var(--ink); background: none; }
.trade-action-bar:not(:has(button:not([hidden]))) { display: none; }
.offer > .trade-action-bar { margin: 2px 0 0; }
.trade-card:hover,
.trade-card:focus-within { z-index: 4; }
.trade-icon { position: relative; display: block; align-self: center; justify-self: center; width: 64px; height: 64px; }
.trade-icon img { display: block; width: 64px; height: 64px; }
.trade-icon:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.trade-icon .where {
  position: absolute; left: 0; top: calc(100% + 6px); width: min(280px, 72vw); z-index: 5;
  max-height: min(240px, 46vh); overflow: auto;
  margin: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #1c1a17; color: var(--ink); font-size: 12.5px; line-height: 1.45; text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden;
}
.trade-icon.flip .where { top: auto; bottom: calc(100% + 6px); }
.trade-icon .where strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.trade-icon .where small { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.trade-icon .where .blurb { margin: 6px 0 0; color: var(--ink); }
.trade-icon .where .source { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); }
.trade-icon:hover .where,
.trade-icon:focus .where,
.trade-icon:focus-within .where,
.trade-icon.is-open .where { opacity: 1; visibility: visible; }
.stamp-defs { position: absolute; width: 0; height: 0; }
.trade-card.is-done { opacity: 1; }
.trade-card .trade-stamp {
  position: absolute;
  z-index: 2;
  left: auto;
  right: var(--stamp-right, 12px);
  top: auto;
  bottom: var(--stamp-bottom, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 86px;
  max-width: none;
  height: 86px;
  margin: 0;
  padding: 0;
  transform: rotate(var(--stamp-turn, 11deg));
  border: 3px solid rgba(168, 42, 34, 0.92);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 4px transparent,
    inset 0 0 0 5px rgba(168, 42, 34, 0.78);
  background: transparent;
  color: rgba(168, 42, 34, 0.94);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: pre;
  text-align: center;
  -webkit-text-stroke: 0.45px currentColor;
  pointer-events: none;
  user-select: none;
  filter: url(#stamp-wear);
}
.trade-card b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.trade-side { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 900px) {
  .trade-list { grid-template-columns: 1fr; }
}
.trade-price,
.trade-price b,
.trade-price span { white-space: nowrap; }
.trade-price { display: grid; gap: 2px; justify-items: end; }
.trade-price span, .trade-side > p { color: var(--muted); font-size: 13px; text-align: right; margin: 0; }
.trade-offers { display: grid; gap: 8px; margin: 0 14px 14px; }
.offer, .offer-form {
  display: grid; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 236, 226, 0.03);
}
.offer .trade-price, .offer .trade-price span { justify-items: start; text-align: left; }
.offer.is-done { opacity: 0.72; }
.offer-form textarea { width: 100%; }
.fine { color: var(--faint); font-size: 13px; margin: 0; }
.calc-hint { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.calc-help { padding-top: 10px; border-top: 1px solid var(--line); }
.calc-help summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.calc-help[open] summary { margin-bottom: 8px; color: var(--ink); }
.calc-help p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
[aria-busy="true"] button:disabled { cursor: wait; }
@media (max-width: 560px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hub { grid-template-columns: 1fr; }
  .home-hub a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    justify-content: start;
    min-height: 0;
    padding: 12px 14px;
    text-align: left;
  }
  .home-hub .hub-ico { grid-row: 1 / span 2; }
  .home-hub strong { font-size: 20px; }
  .home-hub a.is-main strong { font-size: 22px; }
  .home-hub small { margin-top: 0; }
  .strip article { min-width: 0; }
  .calc-grid, .directory { grid-template-columns: 1fr; }
  table.steps, table.steps tbody, table.steps tr, table.steps td { display: block; width: auto; }
  table.steps caption { display: block; width: 100%; white-space: normal; }
  table.steps thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table-wrap table.steps th:first-child,
  .table-wrap table.steps td:first-child { position: static; background: transparent; }
  table.steps tr { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
  table.steps tr:last-child { border-bottom: 0; }
  table.steps td { padding: 2px 0; border: 0; text-align: left; width: auto; }
  table.steps td.num,
  table.steps td:nth-child(3),
  table.steps td:nth-child(4) { width: auto; }
  table.steps td.num { padding-bottom: 4px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
  table.steps td:nth-child(2)::before { content: "할 일"; }
  table.steps td:nth-child(3)::before { content: "장소"; }
  table.steps td:nth-child(4)::before { content: "기준"; }
  table.steps td:not(.num)::before {
    display: block;
    margin-top: 6px;
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .money-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #trade-form .calc-grid { grid-template-columns: 1fr 1fr; }
  .trade-card .trade-stamp {
    width: 70px;
    height: 70px;
    max-width: none;
    font-size: 19px;
    letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .home-hub a:active { transform: none; }
}
@media print {
  .nav, .pager, .skip, .toc, .hero-actions, .toolbar, .to-top, .phone-note, .chips, .kbd, .site-version { display: none !important; }
  .shell { display: block; }
  main,
  body.nav-closed main { --page: 100%; width: auto; max-width: none; margin: 0; padding: 0; }
  body { background: #fff; color: #1a1814; }
  a { color: #1a1814; }
  a[target="_blank"]::after { content: ""; }
  .table-wrap, .table-wrap th:first-child, .table-wrap td:first-child { overflow: visible; position: static; background: transparent; }
  h1, h2, h3, .strip b, .big { color: #1a1814; }
  .home-hub a, .home-hub a.is-main,
  .home-hub small, .home-hub a.is-main small {
    color: #1a1814;
    background: transparent;
    border-color: #1a1814;
  }
  .icon-grid .where {
    position: static;
    grid-column: 1 / -1;
    opacity: 1;
    visibility: visible;
    margin-top: 6px;
    box-shadow: none;
    background: transparent;
    color: #1a1814;
    padding: 0;
  }
  .icon-grid .where .blurb + .source { color: #3a342c; border-top-color: rgba(26, 24, 20, 0.2); }
}
.board-account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.board-account .fine { margin: 0; }
.board-account input { width: 180px; }
.board-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  margin-top: 18px;
}
body[data-page="guild"] .board-bar > .trade-me { grid-column: 3; }
.board-bar > .trade-add { justify-self: start; }
.board-bar > .trade-me { justify-self: end; }
.board-bar > .trade-find,
.board-bar > .trade-filters { grid-column: 2; grid-row: 1; justify-content: center; }
.board-bar > .trade-filters { display: flex; min-width: 0; }
.board-bar .chips { flex-wrap: nowrap; flex-basis: auto; justify-content: center; }
.board-bar .chips button {
  padding: 9px 18px;
  font-size: 17px;
  font-weight: 700;
  border-color: var(--line-strong);
}
.board-bar .chips button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
@media (max-width: 700px) {
  .board-bar .chips { display: none; }
  .board-bar .filter-combo {
    display: block;
    width: min(11em, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 26px 8px 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-ink);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232a1c0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.2 6.1 8 10.4l4.8-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
  }
  .board-bar .filter-combo option { color: var(--ink); background: #161411; font-weight: 600; }
}
.board-bar .trade-find input[type="search"] { width: min(480px, 100%); flex: 0 1 480px; }
.board-bar .trade-find input:disabled { opacity: 0.45; }
@media (max-width: 900px) {
  .board-bar > .trade-find { justify-content: stretch; }
  .board-bar .trade-find input[type="search"] { width: 100%; flex: 1 1 auto; }
}
body[data-page="board"] #write label input { width: 100%; }
.board-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}
body[data-page="guild"] #guild-home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  body[data-page="guild"] #guild-home { grid-template-columns: minmax(0, 1fr); }
}
.board-list > .fine { grid-column: 1 / -1; }
.board-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
  color: inherit;
  text-decoration: none;
}
.board-card:hover { border-color: var(--line-strong); color: inherit; }
.board-card .trade-meta,
.board-article .trade-meta,
.board-comment .trade-meta { color: var(--ink); }
.board-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.board-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.board-card-foot .trade-meta { min-width: 0; }
.board-card-stat {
  margin: 0 0 0 auto;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}
.board-back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--faint);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.board-back:hover { color: var(--ink); }
.board-article {
  margin-top: 12px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
}
.board-article h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.board-article .trade-foot { margin: 12px 0 0; }
.board-article .trade-foot > .board-card-stat {
  grid-area: phone;
  justify-self: end;
  margin: 0;
  align-self: center;
}
.board-article .trade-action-bar { margin: 0; }
.board-body { margin-top: 14px; overflow-wrap: anywhere; }
.board-body img { max-width: 100%; height: auto; border-radius: 8px; }
.board-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.board-body td, .board-body th { border: 1px solid var(--line); padding: 6px 8px; }
.board-body pre { overflow: auto; padding: 10px 12px; background: rgba(243, 236, 226, 0.04); border-radius: 8px; }
.board-comments { display: grid; gap: 8px; margin-top: 18px; }
.board-comments h3 { margin: 0 0 4px; font-size: 22px; }
.board-comment {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
}
.board-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.board-comment p { margin: 0; }
.board-comment .trade-action-bar { justify-content: flex-end; margin: 0; }
.board-login-note {
  justify-self: center;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.board-login-note:hover { color: #f0c48a; }
.comment-form {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(243, 236, 226, 0.03);
}
.comment-form textarea { min-height: 72px; }
.comment-form .trade-actions { justify-content: flex-end; }
#write > label { margin-top: 12px; }
#write .jodit-container { margin-top: 4px; }
body[data-page="board"] .jodit-container { border-color: var(--line-strong) !important; background: #0e0d0b !important; }
body[data-page="board"] .jodit-toolbar__box,
body[data-page="board"] .jodit-status-bar { background: #171614 !important; border-color: var(--line) !important; }
body[data-page="board"] .jodit-wysiwyg,
body[data-page="board"] .jodit-workplace { background: #0e0d0b !important; color: var(--ink) !important; }
body[data-page="board"] .jodit-wysiwyg { min-height: 220px; }
body[data-page="guild"] section { scroll-margin-top: var(--nav-h, 18px); }
body[data-page="guild"] #write .guild-form { max-width: none; margin-top: 0; }
body[data-page="guild"] #write label input,
body[data-page="guild"] #write textarea { width: 100%; }
.guild-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.guild-title strong { min-width: 0; }
.guild-recruiting {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.guild-recruit-title { margin: 10px 0 0; color: var(--ink); font-weight: 600; }
.guild-card { margin-top: 0; }
.guild-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.guild-card strong { overflow-wrap: anywhere; }
.guild-card .trade-action-bar { justify-content: flex-end; margin: 10px 0 0; }
.guild-card .trade-action-bar button:disabled { opacity: 0.45; cursor: not-allowed; }
.guild-card > .board-comment,
.guild-card > .comment-form { margin-top: 10px; }
.guild-card .board-comment .trade-action-bar { margin: 0; }
.guild-card .fine { margin: 4px 0 0; }
.guild-sub { margin: 16px 0 0; font-size: 18px; }
.guild-copy { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.guild-members { list-style: none; margin: 10px 0 0; padding: 0; }
.guild-members li { padding: 2px 0; color: var(--muted); font-size: 14.5px; }
.guild-form { display: grid; gap: 10px; max-width: 480px; margin-top: 12px; }
.guild-form textarea { min-height: 96px; }
.guild-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.guild-app { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.guild-app .guild-actions { margin-top: 8px; }
.guild-app button:disabled { opacity: 0.45; cursor: not-allowed; }
.guild-dir { margin-top: 28px; }
.guild-dir > h3 { margin-bottom: 0; }
.guild-empty { margin-top: 14px; }
.guild-applied { margin-top: 10px; }
.guild-head,
button.guild-pick {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
button.guild-pick {
  width: 100%;
  margin: 0;
  padding: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
button.guild-pick[aria-expanded="true"] {
  border-color: var(--accent);
  border-bottom-color: var(--line);
  border-radius: 12px 12px 0 0;
}
button.guild-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.guild-entry { margin-top: 12px; }
.guild-name {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.guild-pick-text { min-width: 0; }
.guild-pick .fine,
.guild-pick .guild-copy { display: block; overflow-wrap: anywhere; }
.guild-pick .fine { margin-top: 4px; }
.guild-mark,
.guild-mark-ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}
.guild-mark {
  display: block;
  object-fit: cover;
  background: rgba(243, 236, 226, 0.06);
}
.guild-mark-ph {
  display: block;
  background: rgba(243, 236, 226, 0.06);
  border: 1px solid var(--line);
}
.guild-roster {
  padding: 2px 14px 12px;
  border: 1px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.guild-card h3.guild-sub,
.guild-roster h3.guild-sub { margin: 14px 0 0; }
.guild-mark-row { min-height: 56px; }
.guild-crop {
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #12110f;
  color: var(--ink);
}
.guild-crop::backdrop { background: rgba(0, 0, 0, 0.72); }
.guild-crop h3 { margin: 0; font-size: 22px; }
.guild-crop .fine { margin-top: 6px; }
.guild-crop label { margin-top: 4px; }
.guild-crop input[type="range"] {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  accent-color: var(--accent);
}
.guild-crop-stage {
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 12px auto;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #0e0d0b;
  touch-action: none;
  user-select: none;
}
.guild-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.guild-crop-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.guild-crop-msg:empty { display: none; }

/* Reading, search and simulation improvements. */
.page-toc { margin: 16px 0 22px; border-block: 1px solid var(--line); padding: 10px 0; }
.page-toc > summary { cursor: pointer; min-height: 32px; color: var(--muted); font-size: 14px; }
.page-toc .toc { margin: 12px 0 4px; border: 0; padding: 0; }
.nav-search-count { margin: 6px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.nav-search-count:empty { display: none; }
.nav-more { width: calc(100% - 16px); min-height: 40px; margin: 6px 8px; }
.calc-error { margin: 12px 0; color: var(--danger); line-height: 1.6; }
.calc-error:empty { display: none; }
.calc-actions, .beast-controls, .beast-summary, .atlas-controls, .list-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; }
.calc-actions button, .beast-controls button, .atlas-controls button, .list-tools button { min-height: 44px; background: #1b1a18; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; }
.calc-actions input { min-width: 0; flex: 1 1 220px; }
.calc-actions [role="status"] { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.beast-controls label, .atlas-controls label, .list-tools label { flex: 1 1 180px; min-width: 0; }
.beast-controls select, .atlas-controls select, .list-tools select, .list-tools input { width: 100%; min-width: 0; min-height: 44px; }
.beast-summary { color: var(--muted); font-size: 14px; }
.beast-compare { min-width: 44px; min-height: 44px; }
.table-wrap tbody th { font: inherit; font-weight: 400; color: var(--ink); letter-spacing: normal; text-transform: none; text-align: left; }
.table-wrap tbody th.num { text-align: right; }
.table-reset { margin: 6px 0; font-size: 13px; min-height: 36px; }
.table-wrap .table-actions { margin: 0; }
.atlas-view:not(.is-interacting) { touch-action: pan-y; }
.atlas-view.is-interacting { touch-action: none; }
#atlas-help { font-size: 14px; color: var(--muted); line-height: 1.7; }
.atlas-controls button[aria-pressed="true"], .chips button[aria-pressed="true"] { border-color: var(--line-strong); background: rgba(243,236,226,.08); color: var(--ink); }
.dungeon-map .pin { width: 44px; height: 44px; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; }
.dungeon-map .pin i { left: calc(50% - 6px); top: calc(50% - 6px); }
.dungeon-map .pin.is-town i { left: calc(50% - 8px); top: calc(50% - 8px); }
.dungeon-map .pin b { min-height: 36px; display: flex; align-items: center; transform: translate(22px, 22px); }
.dungeon-map .pin-crypt b { transform: translate(-22px, 22px); }
.dungeon-map .pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.table-wrap .threat-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 5px 8px; font-size: 14px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.empty-actions button { min-height: 44px; }
.loading-note { color: var(--muted); }
.board-excerpt { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.guild-support-state { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; margin: 12px 0; }
.guild-support-state p { margin: 0; }
.guild-apps > summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.alert-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.alert-tools button, .alert-tools select { min-height: 44px; }
.alert-card.is-read { opacity: .82; }
.editor-fallback-note { color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) {
  .page-toc > summary { min-height: 44px; padding-top: 8px; }
  .atlas-controls label { flex-basis: 100%; }
  .table-wrap th:first-child, .table-wrap td:first-child { max-width: min(36vw, 200px); white-space: normal; overflow-wrap: anywhere; }
  .sim-pick-menu { width: 100%; min-width: 0; max-width: 100%; }
  .atlas-tools button { min-width: 44px; min-height: 44px; }
  .calc-actions { align-items: stretch; }
  .calc-actions button { flex: 1 1 auto; }
}
@media print {
  :root { --bg: #fff; --ink: #1a1814; --muted: #39352f; --faint: #555; --line: #bbb; --line-strong: #777; --accent: #1a1814; color-scheme: light; }
  .page-toc, .calc-actions, .atlas-controls, .beast-controls, .table-reset, .list-tools, .alert-tools { display: none !important; }
  .guide-route a, .beginner-route a, .guide-check, .beginner-check, .guide-extra, .beginner-extra, .calc, .result, .notice-card { background: transparent !important; color: var(--ink); border-color: var(--line); box-shadow: none; }
  .table-wrap tbody th { background: transparent; }
  details.guide-extra, details.beginner-extra { display: block; }
}
/* 목록의 상태와 키보드 선택을 본문과 같은 어두운 톤으로 표시한다. */
.pick-list [aria-selected="true"] { background: #292724; outline: 2px solid #8b8983; outline-offset: -2px; }
.trade-linked { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid #343330; }
.trade-linked > p { color: var(--muted); font-size: .9rem; }
.item-copy { padding: .35rem .65rem; min-height: 36px; font-size: .85rem; }
.alert-entry { display: flex; gap: .6rem; align-items: stretch; margin: .7rem 0; }
.alert-entry .alert-card { flex: 1; min-width: 0; margin: 0; }
.alert-read { align-self: center; min-height: 44px; white-space: nowrap; }
.alert-tools { flex-wrap: wrap; gap: .65rem; }
.board-excerpt mark { color: #f5f3ef; background: #49453e; padding: 0 .1em; }
.board-excerpt { color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.editor-fallback textarea { min-height: 360px; width: 100%; }
.guild-load-errors { display: grid; gap: .65rem; margin: 1rem 0; }
.guild-load-errors > div { padding: .8rem; border: 1px solid #393835; border-radius: 8px; }
.guild-load-errors button, .guild-history button, .guild-applicants button { min-height: 44px; }
.guild-history { margin-top: 1.2rem; }
.guild-history > article, .guild-applicants .guild-application { margin: .7rem 0; padding: .8rem; border: 1px solid #343330; border-radius: 8px; }
.guild-applicants { margin: .8rem 0; }
.guild-applicants > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 600px) {
  .alert-entry { flex-wrap: wrap; }
  .alert-read { margin-left: auto; }
  .list-tools { align-items: stretch; }
  .list-tools label { flex: 1 1 140px; }
}

/* 직업 목표 선택과 리롤 확률은 기존의 어두운 본문 톤을 따른다. */
.best-build {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #171614;
}
.best-build > h2 { margin-top: 0; }
.best-build-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.best-build-controls > label { display: grid; gap: 6px; min-width: 0; color: var(--muted); }
.best-build-controls select { width: 100%; min-width: 0; min-height: 44px; color: var(--ink); }
.best-build .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.best-build td.num, .best-build th.num,
body[data-page="character"] #build-mount td.num,
body[data-page="character"] #build-mount th.num {
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.best-build-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.best-build-actions button {
  min-height: 44px;
  padding: 10px 14px;
  background: #22211e;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.best-build-actions button:hover { background: #2a2926; color: var(--ink); border-color: #77756f; }
.best-build-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.best-build-actions a:hover { color: var(--ink); }
#best-build-note { margin: 12px 0; }
#best-match-note { margin: 12px 0; }
.best-match-help { margin: 12px 0 18px; }
#best-build-status { margin-bottom: 0; }
#best-build-status:empty { display: none; }
#best-build-mount > h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
#best-build-mount > h3 img { flex: 0 0 28px; image-rendering: pixelated; }
.best-build-stats table { min-width: 350px; table-layout: fixed; }
.best-build-stats th, .best-build-stats td { padding-left: 8px; padding-right: 8px; }
.best-build-stats:has(.build-core-label) table,
.best-build-stats:has(.build-reference-label) table { min-width: 520px; }
.best-build :is(th, td).build-core,
.build-comparison :is(th, td).build-core {
  background: #2b2a27;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 #62615c;
}
.best-build tr:hover td.build-core,
.build-comparison tr:hover td.build-core { background: #31302c; }
.best-build :is(th, td).build-reference,
.build-comparison :is(th, td).build-reference { color: var(--muted); }
.build-core-label {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  border: 1px solid #68665f;
  border-radius: 4px;
  background: #383732;
  color: var(--ink);
  font: 10px/1.2 var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.build-reference-label {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  font: 10px/1.3 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.best-build-stats td.num { padding-top: 11px; padding-bottom: 11px; }
.best-build-summary tbody tr:nth-child(-n+2) td { color: var(--ink); font-size: 16px; }
.build-apply { min-height: 44px; min-width: 52px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #22211e; color: var(--ink); font: inherit; cursor: pointer; }
.build-apply:hover { background: #2a2926; border-color: #77756f; }
.build-comparison td { white-space: nowrap; }
@media (max-width: 560px) {
  .best-build { padding: 16px; border-radius: 10px; }
  .best-build-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .best-build-actions { align-items: stretch; }
  .best-build-actions button { width: 100%; }
}
@media (min-width: 561px) and (max-width: 1000px) {
  .best-build-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .best-build { background: transparent; border-color: var(--line); }
  .best-build-actions, #best-build-status, .build-apply { display: none !important; }
  .best-build :is(th, td).build-core, .build-comparison :is(th, td).build-core,
  .build-core-label { background: transparent; color: var(--ink); box-shadow: none; }
}

.npc-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.npc-photo { margin: 0; min-width: 0; text-align: center; }
.npc-photo > a,
.npc-portrait-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141310;
}
.npc-photo > a:hover { border-color: var(--line-strong); }
.npc-photo > a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.npc-photo > a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.npc-photo figcaption { margin-top: 8px; color: var(--ink); font-size: 14px; }
.npc-photo figcaption small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.npc-portrait-missing { flex-direction: column; gap: 10px; color: var(--muted); }
.npc-portrait-missing img { width: 32px; height: 32px; image-rendering: pixelated; }
.npc-portrait-missing small { font-size: 12px; }
.npc-gallery-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 160px));
  gap: 14px;
}
@media (max-width: 700px) {
  .npc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .npc-gallery-compact { max-width: 360px; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.item-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--ink);
  cursor: pointer;
}
.item-compare-toggle input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: #c9c9c9;
}
section[aria-labelledby="item-comparison"] th[scope="row"] img {
  vertical-align: middle;
  margin-right: 8px;
}
