:root {
  color-scheme: light;
  --paper: #ffffff;
  --sidebar: #f7f7f5;
  --sidebar-hover: #ecece9;
  --ink: #262624;
  --ink-soft: #555550;
  --muted: #7d7d77;
  --line: #e7e7e3;
  --line-strong: #d7d7d1;
  --blue: #2d7f9d;
  --blue-soft: #eaf6fa;
  --green: #347d67;
  --green-soft: #ebf7f2;
  --yellow: #946b1a;
  --yellow-soft: #fff5d6;
  --red: #a94f46;
  --red-soft: #fff0ed;
  --violet: #7561a5;
  --violet-soft: #f1edfb;
  --sidebar-width: 276px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #69b9d4;
  outline-offset: 3px;
}

::selection {
  color: #123b48;
  background: #c8eaf4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 8px 13px;
  border-radius: 6px;
  color: #fff;
  background: #246f89;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.sidebar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 10px;
}

.sidebar-brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 3px;
  border-radius: 7px;
}

.sidebar-brand:hover {
  background: var(--sidebar-hover);
}

.sidebar-brand img,
.mobile-brand img {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sidebar-brand span {
  display: block;
  min-width: 0;
}

.sidebar-brand strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.drawer-close {
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.drawer-close:hover {
  background: var(--sidebar-hover);
}

.sidebar-search {
  position: relative;
  margin: 8px 16px 10px;
}

.sidebar-search svg {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #85857f;
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.wiki-search {
  width: 100%;
  height: 38px;
  padding: 0 33px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.wiki-search::placeholder {
  color: #979791;
}

.wiki-search:focus {
  border-color: #72b9d0;
  box-shadow: 0 0 0 3px rgba(45, 127, 157, 0.1);
}

.search-shortcut {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #92928c;
  background: #fafaf9;
  font-size: 10px;
}

.search-results {
  position: absolute;
  z-index: 75;
  top: calc(100% + 7px);
  left: 0;
  width: min(390px, calc(100vw - 34px));
  max-height: min(440px, calc(100vh - 150px));
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 14px 34px rgba(41, 41, 37, 0.15);
}

.search-results a {
  display: block;
  padding: 10px 11px;
  border-radius: 6px;
}

.search-results a:hover,
.search-results a:focus {
  background: #f2f7f8;
}

.search-results strong,
.search-results span,
.search-empty {
  display: block;
}

.search-results strong {
  font-size: 14px;
}

.search-results span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.search-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.wiki-nav {
  min-height: 0;
  padding: 4px 10px 18px;
  overflow-y: auto;
}

.nav-group {
  margin-top: 13px;
}

.nav-group:first-child {
  margin-top: 0;
}

.nav-label {
  margin: 0;
  padding: 0 10px 5px;
  color: #92928c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-link {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #555550;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--sidebar-hover);
}

.nav-link[aria-current="page"] {
  color: #245c70;
  background: #e4f1f5;
  font-weight: 800;
}

.nav-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 5px;
  color: #6d6d67;
  background: rgba(255, 255, 255, 0.76);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.nav-link[aria-current="page"] .nav-icon {
  color: #2d7f9d;
  background: #fff;
}

.sidebar-foot {
  display: none;
}

.content-area {
  min-width: 0;
  background: var(--paper);
}

.mobile-topbar {
  display: none;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.menu-button {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: #2c7088;
  background: #eef7f9;
  box-shadow: inset 0 0 0 1px #d4e6eb;
  cursor: pointer;
}

.menu-button::before {
  position: absolute;
  inset: 9px 8px;
  border: 2px solid currentColor;
  border-radius: 5px;
  content: "";
}

.menu-button::after {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 15px;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.menu-button span {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.mobile-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mobile-brand img {
  width: 37px;
  height: 37px;
}

.mobile-brand strong {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  width: min(calc(100% - 64px), 920px);
  margin: 0 auto;
  padding: 68px 28px 100px;
}

.page-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.page-eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.page-summary {
  max-width: 740px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.page-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.logo-cover {
  display: grid;
  min-height: 260px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid #e6eee8;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 24%, rgba(95, 193, 220, 0.25), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(239, 191, 75, 0.26), transparent 31%),
    linear-gradient(135deg, #effafb, #fffdf6 52%, #f0f8ed);
}

.logo-cover img {
  display: block;
  width: min(230px, 48vw);
  height: min(230px, 48vw);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(70, 68, 53, 0.13));
}

.article-section {
  padding: 42px 0 0;
}

.article-section + .article-section {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 880;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.article-section h3 {
  margin: 29px 0 8px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.article-section p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.article-section > p:first-of-type {
  margin-top: 12px;
}

.article-section ul,
.article-section ol {
  margin: 15px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.article-section li + li {
  margin-top: 8px;
}

.article-image {
  margin: 26px 0 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f5;
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.discord-guide-image {
  max-width: 588px;
}

.note {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 24px;
  padding: 15px 17px;
  border-radius: 6px;
  color: #555550;
  background: #f2f2f0;
}

.note > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #62625d;
  background: #e2e2de;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.note p {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.65;
}

.note.blue {
  color: #3e6672;
  background: var(--blue-soft);
}

.note.blue > span {
  color: var(--blue);
  background: #d3edf5;
}

.note.yellow {
  color: #705a2c;
  background: var(--yellow-soft);
}

.note.yellow > span {
  color: var(--yellow);
  background: #ffe8a1;
}

.note.red {
  color: #78514c;
  background: var(--red-soft);
}

.note.red > span {
  color: var(--red);
  background: #f8d8d3;
}

.goal-block {
  margin-top: 28px;
  padding: 27px 28px;
  border-left: 4px solid #d19a26;
  border-radius: 5px;
  background: var(--yellow-soft);
}

.policy-notice {
  width: 100%;
  margin-top: 28px;
  padding: 26px 28px;
  box-sizing: border-box;
  border: 1px solid #eccbc4;
  border-left: 5px solid #c65548;
  border-radius: 8px;
  background: #fff7f5;
}

.policy-notice p {
  margin: 10px 0 0;
  color: #5f4540;
}

.policy-notice .policy-kicker {
  margin: 0 0 5px;
  color: #a33e34;
  font-size: 13px;
  font-weight: 900;
}

.policy-notice h2 {
  margin: 0;
  color: #382e2b;
  font-size: clamp(25px, 3.4vw, 33px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.policy-notice .policy-responsibility {
  margin: 17px 0 13px;
  padding-top: 15px;
  border-top: 1px solid #efd8d2;
  color: #8a3028;
  font-size: 18px;
  line-height: 1.65;
}

.policy-notice .policy-rights {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 6px;
  background: #fbe9e5;
  color: #71271f;
  line-height: 1.65;
}

.policy-notice .policy-critical {
  border: 1px solid #e2a59b;
  background: #f8ded9;
  color: #691e17;
  font-size: 17px;
}

.goal-block small {
  color: var(--yellow);
  font-weight: 850;
}

.goal-block h2 {
  margin: 5px 0 0;
  color: #35312a;
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.goal-block p {
  margin: 12px 0 0;
  color: #655d49;
}

.fact-table {
  margin-top: 24px;
  border-top: 2px solid var(--line-strong);
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 0.68fr);
  gap: 24px;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
}

.fact-row dt,
.fact-row dd {
  margin: 0;
}

.fact-row dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.fact-row dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.refine-effects-table .fact-row {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.step-list {
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 15px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.step-item h3 {
  margin: 0;
  font-size: 17px;
}

.step-item p {
  margin: 3px 0 0;
  font-size: 16px;
}

.command-group {
  padding-top: 40px;
}

.command-group + .command-group {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.command-group > header {
  margin-bottom: 13px;
}

.command-group h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 880;
  letter-spacing: -0.035em;
}

.command-group > header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.command-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.command-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line);
}

.command-item dt,
.command-item dd {
  min-width: 0;
  margin: 0;
}

.command-item dt {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.command-item dd {
  color: var(--ink-soft);
  font-size: 16px;
}

code.command {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #dfe7e8;
  border-radius: 5px;
  color: #256a83;
  background: #f2f8fa;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
}

.permission-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #775b27;
  background: #fff0c7;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.content-entry {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 25px 2px;
  border-bottom: 1px solid var(--line);
}

body[data-page="content"] .article-section {
  padding-top: 30px;
}

body[data-page="content"] .article-section + .article-section {
  margin-top: 30px;
  border-top-color: var(--line-strong);
}

body[data-page="content"] .content-list {
  margin-top: 10px;
}

body[data-page="content"] .content-entry:last-child {
  border-bottom: 0;
}

.content-entry .entry-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.entry-kind {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.content-entry h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 870;
  letter-spacing: -0.03em;
}

.content-entry h4 {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.5;
}

.content-entry h4 + p {
  margin-top: 8px;
}

.content-entry p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

#maze p,
#special-mine p,
#jail p {
  line-height: 1.85;
}

#maze p + p,
#special-mine p + p,
#jail p + p {
  margin-top: 17px;
}

.content-entry code {
  color: #266b83;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
}

.recipe-table {
  margin-top: 24px;
  border-top: 2px solid #d1b35e;
}

.recipe-row {
  display: grid;
  grid-template-columns: 76px minmax(135px, 0.34fr) minmax(210px, 0.46fr) minmax(120px, 0.2fr);
  gap: 18px;
  align-items: start;
  padding: 15px 5px;
  border-bottom: 1px solid var(--line);
}

.recipe-head {
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--muted);
  background: #faf9f5;
  font-size: 12px;
  font-weight: 850;
}

.recipe-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #715821;
  background: #fff1c7;
  font-size: 11px;
  font-weight: 850;
}

.recipe-name {
  font-size: 16px;
  font-weight: 850;
}

.recipe-materials {
  color: var(--ink-soft);
  font-size: 15px;
}

.recipe-effect {
  color: #356f7f;
  font-size: 13px;
  font-weight: 750;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.item-grid li {
  margin: 0 !important;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: #fafaf8;
  font-size: 13px;
  text-align: center;
}

.grade-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.grade-line span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.monster-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px !important;
}

.item-showcase {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #cfe3e8;
  border-radius: 10px;
  background: #f5fbfc;
}

.item-showcase img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.item-showcase h3,
.item-showcase p {
  margin: 0;
}

.item-showcase p {
  margin-top: 4px;
  color: var(--ink-soft);
}

.article-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.article-index strong {
  margin-right: 3px;
  color: var(--ink);
  font-weight: 850;
}

.article-index a,
.text-link {
  color: #24728a;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(36, 114, 138, 0.28);
  text-underline-offset: 3px;
}

.article-index a:hover,
.text-link:hover {
  color: #174e60;
  text-decoration-color: currentColor;
}

.url-code {
  display: inline;
  padding: 2px 5px;
  border: 1px solid #dde4e5;
  border-radius: 4px;
  color: #315e69;
  background: #f5f9f9;
  box-decoration-break: clone;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.event-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
  counter-reset: event-step;
}

.event-flow li {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 18px 15px 18px 39px;
  counter-increment: event-step;
}

.event-flow li + li {
  border-left: 1px solid var(--line);
}

.event-flow li::before {
  position: absolute;
  top: 18px;
  left: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: counter(event-step);
  font-size: 11px;
  font-weight: 900;
}

.event-flow strong,
.event-flow span {
  display: block;
}

.event-flow strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.event-flow span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wiki-table-wrap {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border-top: 2px solid var(--line-strong);
  -webkit-overflow-scrolling: touch;
}

.wiki-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.wiki-table th,
.wiki-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.wiki-table thead th {
  color: var(--muted);
  background: #faf9f5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.wiki-table tbody th {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.api-table tbody th {
  width: 118px;
  color: #745719;
}

.compact-table {
  min-width: 610px;
}

.fit-table {
  min-width: 0;
  table-layout: fixed;
}

.fit-table th,
.fit-table td {
  overflow-wrap: anywhere;
}

.jail-table th:first-child {
  width: 24%;
}

.jail-table th:nth-child(2) {
  width: 25%;
}

.casino-table th:first-child {
  width: 94px;
}

.enhance-rate-table,
.refine-value-table {
  min-width: 790px;
}

.compact-table tbody td:nth-child(3) {
  color: #b46e15;
  font-weight: 900;
}

.compact-table.refine-value-table tbody th,
.compact-table.refine-value-table tbody td {
  color: var(--ink-soft);
  font-weight: 500;
}

.reward-table {
  min-width: 480px;
}

#main-menu .wiki-table,
.api-table,
.box-contents-table,
.reward-table {
  min-width: 0;
}

.reward-table th:first-child {
  width: 58%;
}

.reward-table td:last-child {
  color: #24728a;
  font-weight: 900;
  white-space: nowrap;
}

.bad-change {
  color: #b34e40;
}

.good-change {
  color: #27826b;
}

.space-list {
  margin-top: 26px;
  border-top: 2px solid #a8c4ad;
}

.space-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 20px;
  align-items: center;
  padding: 17px 5px;
  border-bottom: 1px solid var(--line);
}

.space-item h3,
.space-item p {
  margin: 0;
}

.space-item h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
}

.space-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.space-count {
  color: var(--green);
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.rule-list {
  margin-top: 26px;
  border-top: 2px solid #d2a39d;
}

.rule-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.rule-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
  font-weight: 900;
}

.rule-item h3,
.rule-item p {
  margin: 0;
}

.rule-item h3 {
  font-size: 18px;
}

.rule-item p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 16px;
}

.rule-item-critical {
  margin: 8px 0;
  padding: 18px 16px;
  border: 1px solid #e2a59b;
  border-radius: 8px;
  background: #fff3f1;
}

.rule-item-critical .rule-mark {
  color: #fff;
  background: #b4362b;
}

.rule-item-critical h3,
.rule-item-critical p {
  color: #711f18;
}

.faq-list {
  margin-top: 27px;
  border-top: 2px solid #a9c8d2;
}

.faq-item {
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.faq-item h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.faq-item h2::before {
  margin-right: 8px;
  color: var(--blue);
  content: "Q.";
}

.faq-item p {
  margin: 8px 0 0 28px;
  color: var(--ink-soft);
  font-size: 16px;
}

.page-footer {
  margin-top: 64px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.drawer-overlay {
  display: none;
}

@media (max-width: 860px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(310px, calc(100vw - 42px));
    height: 100dvh;
    box-shadow: 14px 0 38px rgba(35, 35, 31, 0.18);
    transform: translateX(-105%);
    transition: transform 190ms ease;
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
  }

  .drawer-close {
    display: block;
  }

  .mobile-topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
  }

  .drawer-overlay {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(35, 35, 31, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
  }

  body.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .page {
    width: min(calc(100% - 34px), 860px);
    padding-top: 48px;
  }

  .article-section,
  .content-entry[id] {
    scroll-margin-top: 82px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(calc(100% - 24px), 860px);
    padding: 34px 10px 72px;
  }

  .page-header {
    padding-bottom: 28px;
  }

  .page-header h1 {
    font-size: 37px;
  }

  .page-summary {
    font-size: 17px;
  }

  .logo-cover {
    min-height: 190px;
    margin-bottom: 28px;
  }

  .logo-cover img {
    width: 170px;
    height: 170px;
  }

  .goal-block {
    padding: 23px 20px;
  }

  .policy-notice {
    padding: 22px 20px;
  }

  .policy-notice h2 {
    font-size: 25px;
  }

  .goal-block h2 {
    font-size: 28px;
  }

  .fact-row,
  .command-item {
    grid-template-columns: 1fr;
  }

  .fact-row,
  .command-item {
    gap: 6px;
  }

  .refine-effects-table .fact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .content-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .content-entry .entry-mark {
    align-items: flex-start;
  }

  .content-entry .entry-kind {
    display: none;
  }

  .command-group {
    padding-top: 33px;
  }

  .recipe-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px 12px;
  }

  .recipe-materials,
  .recipe-effect {
    grid-column: 2;
  }

  .recipe-head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-index {
    gap: 7px 12px;
  }

  .article-index strong {
    width: 100%;
  }

  .event-flow {
    grid-template-columns: 1fr;
  }

  .event-flow li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .wiki-table-wrap {
    margin-right: -10px;
    padding-right: 10px;
  }

  .article-section {
    padding-top: 34px;
  }

  .article-section + .article-section {
    margin-top: 34px;
  }

  .article-section h2 {
    font-size: 26px;
  }

  .command-group h2 {
    font-size: 26px;
  }

  .note {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px;
  }

  .space-item {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .faq-item p {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .mobile-topbar {
    padding-inline: 10px;
  }

  .mobile-brand strong {
    font-size: 14px;
  }

  .page-header h1 {
    font-size: 33px;
  }

  .note {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
