:root {
  color-scheme: light;
  --paper: #faf7ef;
  --surface: #fffcf7;
  --linen: #f0e9da;
  --ink: #2d241e;
  --muted: #66584c;
  --rule: #ded1bf;
  --accent: #963d26;
  --accent-hover: #78301e;
  --accent-pale: #f5e5d9;
  --serif: "Songti SC", "Yu Mincho", "Noto Serif CJK SC", Georgia, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4.3vw, 62px);
  font: 16px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: #b4a18a var(--paper);
  scrollbar-gutter: stable;
  scroll-padding-top: 115px;
}

html[lang="en"] { --serif: Georgia, serif; }
html[lang="zh-hant"] { --serif: "Songti TC", "Noto Serif CJK TC", Georgia, serif; }
html[lang="ja"] { --serif: "Yu Mincho", "Noto Serif CJK JP", Georgia, serif; }
html[lang="ko"] { --serif: "AppleMyungjo", "Noto Serif CJK KR", Georgia, serif; }
html:has(dialog[open]) { overflow: hidden; }
* { box-sizing: border-box; }
::selection { color: var(--ink); background: #ecd0ae; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; }
button, summary, select, label.file-button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .62; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#main:focus, #panel-heading:focus { outline: none; }
.icon-library { display: none; }
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.17em;
}
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 8px 14px; background: var(--surface); }
.wrap { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn, .icon-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .63rem .93rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 690;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .2s var(--ease);
}
.btn:active:not(:disabled), .icon-button:active { transform: translateY(1px); }
.primary { color: #fff9f1; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--surface); border-color: var(--rule); }
.secondary:hover { background: var(--linen); border-color: #bbab96; }
.icon-button { width: 44px; padding: 0; background: var(--surface); border-color: var(--rule); color: var(--ink); }
.icon-button:hover { background: var(--linen); color: var(--accent-hover); }
.icon-button .icon { width: 20px; height: 20px; }
.text-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: var(--accent);
  font-weight: 680;
  text-decoration: none;
}
.text-link:hover, .back-link:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 74px; align-items: center; gap: 24px; }
.brand, .footer-brand { display: flex; align-items: center; gap: 10px; width: fit-content; }
.brand { color: var(--ink); font-weight: 780; text-decoration: none; line-height: 1.2; }
.brand img, .footer-brand img { border-radius: 8px; }
.main-nav { display: flex; align-self: stretch; gap: clamp(6px, 1.6vw, 24px); }
.main-nav a {
  display: flex;
  align-items: center;
  padding-inline: .7rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-hover); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 750; }
.head-actions { display: flex; justify-content: end; align-items: center; gap: 12px; }
.feedback-button { background: var(--accent-pale); color: var(--accent-hover); white-space: nowrap; }
.feedback-button:hover { background: #eed8c8; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: .32rem;
  padding: 0 .38rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
  font-size: .84rem;
  list-style: none;
  white-space: nowrap;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { color: var(--accent-hover); background: var(--linen); }
.language-picker ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 155px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 26px #3e281d24;
}
.language-picker li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 .63rem;
  border-radius: 6px;
  font-size: .9rem;
  text-decoration: none;
}
.language-picker li a:hover, .language-picker li a[aria-current] { background: var(--accent-pale); color: var(--accent-hover); }

.introduction {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.45fr);
  gap: clamp(28px, 4.8vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 5.2vw, 78px) clamp(40px, 5.7vw, 82px);
}
.hero-copy { padding-bottom: 12px; }
.game-title {
  max-width: 345px;
  margin-bottom: clamp(18px, 2.5vw, 32px);
  font: 760 clamp(2.7rem, 5.7vw, 4.9rem)/1.04 var(--serif);
  letter-spacing: -.025em;
}
.game-title img { width: 100%; }
.game-title .logo-en { width: min(100%, 298px); }
.hero-line { color: var(--ink); font: 760 clamp(1.43rem, 2.5vw, 2.12rem)/1.28 var(--serif); text-wrap: balance; }
.hero-description { max-width: 34ch; margin-block: .85rem 1.65rem; color: var(--muted); font-size: clamp(.96rem, 1.23vw, 1.09rem); }
.hero-figure, .chapter-lead figure { min-width: 0; }
.hero-image {
  overflow: hidden;
  aspect-ratio: 1.5;
  border-radius: 14px;
  background: var(--linen);
  box-shadow: 0 14px 26px -17px #56371e82;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-figure figcaption, .chapter-lead figcaption {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  margin-top: 10px;
  color: var(--muted);
  font-size: .79rem;
}
.hero-figure figcaption span:first-child { color: var(--accent); font-weight: 710; }
@media (prefers-reduced-motion: no-preference) {
  .hero-image img { animation: reveal-art 850ms var(--ease) both; }
  @keyframes reveal-art { from { transform: scale(1.035); } to { transform: scale(1); } }
  .feedback-dialog[open] { animation: reveal-panel 220ms var(--ease) both; }
  @keyframes reveal-panel { from { opacity: .65; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

.chapter-index { border-top: 1px solid var(--rule); padding-block: clamp(23px, 3vw, 42px) clamp(48px, 6vw, 84px); }
.chapter-index h2, .chapter-block h2 {
  font: 760 clamp(1.65rem, 2.9vw, 2.45rem)/1.22 var(--serif);
  letter-spacing: -.018em;
  margin-bottom: 1.1rem;
}
.chapter-index-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin-bottom: 1.1rem;
}
.chapter-index-heading h2 { margin: 0; }
.chapter-grid { display: grid; grid-template-columns: 1.1fr 1fr .94fr; gap: clamp(16px, 2.4vw, 34px); }
.chapter { display: block; min-width: 0; text-decoration: none; }
.chapter > img {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  border-radius: 10px;
  background: var(--linen);
}
.chapter-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: .72rem; }
.chapter-title h3 { font: 760 clamp(1.25rem, 2vw, 1.7rem)/1.25 var(--serif); }
.chapter-title .icon { color: var(--accent); transition: transform .22s var(--ease); }
.chapter:hover .chapter-title, .chapter:focus-visible .chapter-title { color: var(--accent-hover); }
.chapter:hover .chapter-title .icon { transform: translateX(4px); }
.chapter p { margin-top: .3rem; color: var(--muted); font-size: .91rem; }

.chapter-page { padding-block: clamp(36px, 5vw, 74px) clamp(52px, 6vw, 90px); }
.chapter-lead {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
}
.chapter-copy h1 { font: 760 clamp(2.6rem, 5.3vw, 4.45rem)/1.08 var(--serif); letter-spacing: -.028em; }
.chapter-copy p { color: var(--muted); max-width: 37ch; margin-block: 1.14rem 1.35rem; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.still { display: block; position: relative; overflow: hidden; border-radius: 13px; background: var(--linen); }
.still img { width: 100%; }
.image-control {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  transition: color .18s ease, background-color .18s ease;
}
.still:hover .image-control { color: var(--accent-hover); background: var(--accent-pale); }
.chapter-block { margin-top: clamp(38px, 5.4vw, 76px); padding-top: clamp(18px, 2.8vw, 36px); border-top: 1px solid var(--rule); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px clamp(16px, 3vw, 44px); }
.detail-grid > div { padding-top: .9rem; border-top: 1px solid var(--rule); }
.detail-grid dt { font-size: 1.04rem; font-weight: 760; }
.detail-grid dd { margin-top: .33rem; color: var(--muted); max-width: 36ch; }
.editorial-pair { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(16px, 3.3vw, 46px); }
.editorial-pair h2 { margin-block: .9rem .44rem; }
.editorial-pair p { color: var(--muted); max-width: 62ch; }
.quality-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.quality-list li {
  padding: .62rem .72rem;
  background: var(--quality-paper);
  color: var(--quality-ink);
  border-top: 2px solid var(--quality-line);
  border-radius: 0 0 7px 7px;
  font-size: .88rem;
  font-weight: 700;
}
.quality-common { --quality-paper: #f1ece5; --quality-ink: #564c42; --quality-line: #9b8c80; }
.quality-uncommon { --quality-paper: #e7efed; --quality-ink: #2b5155; --quality-line: #689199; }
.quality-rare { --quality-paper: #ece6f4; --quality-ink: #533872; --quality-line: #9676b4; }
.quality-artifact { --quality-paper: #f5e6ee; --quality-ink: #7b315c; --quality-line: #b979a0; }
.quality-epic { --quality-paper: #f4ecd3; --quality-ink: #6e4a15; --quality-line: #ba9451; }
.quality-mythic { --quality-paper: #f7e5de; --quality-ink: #842e23; --quality-line: #c16b59; }
.chapter-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: clamp(34px, 4.9vw, 65px);
  padding-block: 14px;
  border-block: 1px solid var(--rule);
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}
.chapter-next:hover { color: var(--accent-hover); text-decoration: underline; }
.guide-page { padding-block: clamp(30px, 4.8vw, 65px) clamp(50px, 6vw, 84px); }
.guide-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.guide-masthead h1 { font: 760 clamp(2.45rem, 4.6vw, 4.1rem)/1.09 var(--serif); letter-spacing: -.025em; }
.guide-masthead p { max-width: 50ch; margin-block: .83rem 1.15rem; color: var(--muted); font-size: 1.04rem; }
.guide-masthead img { width: 100%; aspect-ratio: 2.35; object-fit: cover; object-position: center 61%; border-radius: 12px; }
.guide-masthead figcaption { display: flex; justify-content: end; gap: .42rem; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(174px, .31fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(27px, 5.5vw, 82px);
  margin-top: clamp(26px, 4.2vw, 58px);
}
.guide-index { position: sticky; top: 103px; padding: 1rem 1.15rem; background: var(--linen); border-radius: 10px; }
.guide-index h2 { font-size: 1.04rem; line-height: 1.3; }
.guide-index ul, .guide-index ol { list-style: none; padding: 0; margin: .6rem 0 0; }
.guide-index li + li { border-top: 1px solid var(--rule); }
.guide-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 44px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 660;
  text-decoration: none;
}
.guide-index a .icon { color: var(--accent); }
.guide-index a:hover { color: var(--accent-hover); text-decoration: underline; }
.guide-chapter + .guide-chapter { margin-top: 2.45rem; }
.guide-chapter h2 { font: 760 2rem/1.18 var(--serif); letter-spacing: -.016em; }
.guide-chapter:target h2 { color: var(--accent-hover); }
.guide-articles { list-style: none; padding: 0; margin-block: .8rem 0; border-bottom: 1px solid var(--rule); }
.guide-articles li { border-top: 1px solid var(--rule); }
.guide-teaser {
  display: grid;
  grid-template-columns: minmax(64px, 112px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-height: 96px;
  padding: .8rem .72rem;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.guide-teaser img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; background: var(--linen); }
.guide-teaser h3 { font-size: 1.13rem; line-height: 1.4; text-wrap: initial; }
.guide-teaser p { margin-top: .2rem; max-width: 70ch; color: var(--muted); font-size: .94rem; line-height: 1.48; }
.guide-teaser .icon { color: var(--accent); }
.guide-teaser:hover { background: var(--linen); }
.guide-teaser:hover h3 { color: var(--accent-hover); text-decoration: underline; }

.guide-reader { padding-top: clamp(22px, 3.25vw, 46px); }
.guide-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .42rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .87rem; }
.guide-breadcrumb li { display: flex; align-items: center; gap: .42rem; }
.guide-breadcrumb a { padding-block: .4rem; text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--accent-hover); text-decoration: underline; }
.guide-breadcrumb .icon { transform: rotate(-90deg); }
.guide-reader .guide-layout { margin-top: clamp(16px, 2.5vw, 35px); }
.guide-step-index a { justify-content: start; line-height: 1.4; padding-block: .48rem; }
.guide-step-index a span, .guide-steps h2 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.guide-article { min-width: 0; max-width: 888px; }
.guide-article-title h1 { font: 760 3.125rem/1.14 var(--serif); letter-spacing: -.026em; }
.guide-article-title p { margin-top: .65rem; max-width: 68ch; color: var(--muted); font-size: 1.08rem; }
.guide-entry {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .26rem 1rem;
  margin-top: 1.25rem;
  padding: .82rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--linen);
}
.guide-entry dt { color: var(--accent-hover); font-weight: 730; font-size: .86rem; }
.guide-entry dd { min-width: 0; font-weight: 630; }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-steps li { margin-top: 2.2rem; padding-top: 1.14rem; border-top: 1px solid var(--rule); }
.guide-steps h2 { display: flex; align-items: baseline; gap: .72rem; font: 750 1.58rem/1.26 var(--serif); text-wrap: initial; }
.guide-steps h2 span { flex: none; font: 700 .87rem/1 var(--sans); }
.guide-steps li:target h2 { color: var(--accent-hover); }
.guide-steps p { margin-top: .55rem; max-width: 72ch; line-height: 1.72; }
.guide-screenshot { margin-top: .95rem; }
.guide-screenshot a { display: block; overflow: hidden; border-radius: 10px; background: var(--linen); cursor: zoom-in; }
.guide-screenshot img { width: 100%; height: auto; }
.guide-screenshot figcaption { display: flex; justify-content: space-between; gap: .3rem 1rem; margin-top: .42rem; color: var(--muted); font-size: .83rem; }
.guide-screenshot-label { flex: none; }
.guide-note { max-width: 72ch; margin-top: 1.65rem; padding: .84rem 1rem; background: var(--linen); border-radius: 8px; }
.guide-article-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.guide-article-footer a { min-height: 44px; }

.world-page { padding-block: clamp(30px, 4.7vw, 70px) clamp(48px, 5vw, 76px); }
.world-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.world-opening {
  grid-column: 1 / 6;
  grid-row: 1;
  z-index: 1;
  margin-bottom: 30px;
  padding: clamp(22px, 3.4vw, 48px) clamp(25px, 4.25vw, 62px) 20px 0;
  border-radius: 0 14px 0 0;
  background: var(--paper);
}
.world-opening h1 { font: 760 clamp(2.6rem, 5vw, 4.65rem)/1.08 var(--serif); letter-spacing: -.028em; }
.world-opening p { margin-block: .95rem 1.24rem; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.23vw, 1.11rem); }
.world-opening .actions { column-gap: 1.15rem; }
.world-cover { grid-column: 4 / -1; grid-row: 1; min-width: 0; }
.world-cover figcaption, .atlas-panel figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.world-cover figcaption { display: flex; justify-content: flex-end; gap: .45rem; }
.world-premise, .world-atlas, .world-cast {
  margin-top: clamp(38px, 6vw, 84px);
  padding-top: clamp(19px, 2.6vw, 35px);
  border-top: 1px solid var(--rule);
}
.world-premise { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(20px, 4vw, 58px); }
.world-premise h2, .world-atlas h2, .world-cast h2 { font: 760 clamp(1.68rem, 3.2vw, 2.75rem)/1.22 var(--serif); letter-spacing: -.018em; }
.world-premise p { max-width: 65ch; color: var(--muted); }
.world-premise p + p { margin-top: .7rem; }
.atlas-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 18px 22px; }
.atlas-tabs button {
  min-height: 44px;
  padding: .58rem .96rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--surface);
  line-height: 1.35;
  font-weight: 690;
}
.atlas-tabs button:hover { color: var(--ink); background: var(--linen); }
.atlas-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-pale); }
.atlas-panel { display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr); align-items: center; gap: clamp(22px, 4vw, 65px); }
.atlas-description h3, .cast-spread h3 { font: 760 clamp(1.55rem, 3vw, 2.42rem)/1.18 var(--serif); letter-spacing: -.02em; }
.atlas-description p, .cast-spread p { margin-top: .6rem; max-width: 42ch; color: var(--muted); }
.atlas-panel .still { aspect-ratio: 1.7; }
.atlas-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cast-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3.2vw, 42px); margin-top: 22px; }
.cast-spread article { display: grid; grid-template-columns: minmax(105px, .72fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.cast-spread figure { display: grid; place-items: center; min-width: 0; padding: 12px; border-radius: 10px; background: var(--linen); }
.cast-spread img { width: min(100%, 195px); }
@media (prefers-reduced-motion: no-preference) {
  .atlas-panel:not([hidden]) .still { animation: reveal-region 260ms var(--ease) both; }
  @keyframes reveal-region { from { opacity: .65; } to { opacity: 1; } }
}

.site-footer { background: var(--linen); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 90px; padding-block: 16px; }
.footer-brand { flex-wrap: wrap; gap: 5px 9px; }
.footer-brand small { margin-left: 4px; color: var(--muted); }
.footer-inner nav { display: flex; gap: clamp(12px, 2.6vw, 34px); flex-wrap: wrap; color: var(--muted); font-size: .87rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent-hover); text-decoration: underline; }

.feedback-dialog, .lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.feedback-dialog {
  --dialog-gutter: clamp(25px, 3.15vw, 52px);
  width: min(1500px, 79vw);
  height: min(950px, 74dvh);
  max-width: none;
  max-height: calc(100dvh - 32px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 92px #2e20184d;
}
.feedback-dialog::backdrop { background: #34271d72; backdrop-filter: blur(3px); }
.dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.dialog-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand nav close";
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 16px var(--dialog-gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.dialog-brand { grid-area: brand; display: flex; align-items: center; gap: 11px; min-width: 0; }
.dialog-brand img { flex: none; border-radius: 7px; }
.dialog-brand strong { font-size: 1.07rem; line-height: 1.3; }
.dialog-nav { grid-area: nav; display: flex; gap: 8px; }
.dialog-list { color: var(--muted); }
.dialog-list:hover, .dialog-list[aria-current] { background: var(--linen); color: var(--ink); }
.dialog-compose[aria-current] { background: var(--accent-pale); color: var(--accent-hover); }
.dialog-close { grid-area: close; }
.dialog-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 20px;
  padding: var(--dialog-gutter);
}
.dialog-message { margin: 0; color: var(--muted); }
.lightbox { max-width: min(95vw, 1440px); max-height: 94dvh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: #231c17dd; }
.lightbox img { display: block; width: auto; max-height: 87dvh; object-fit: contain; border-radius: 9px; }
.lightbox-close { position: absolute; right: 8px; top: 8px; z-index: 1; }

.panel-header { margin-bottom: 1.15rem; }
.panel-header h1, .panel-header h2, .thread-post h1, .thread-post h2, .account h1 {
  font: 760 clamp(1.75rem, 3.7vw, 2.65rem)/1.16 var(--serif);
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.panel-header p { margin-top: .5rem; color: var(--muted); max-width: 65ch; }
.feed-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.feed-header .actions { flex: none; }
.back-link { font-size: .89rem; }
.board-notice .btn { margin-top: 1rem; }

.filter-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px;
  background: var(--linen);
  border-radius: 10px;
  margin-bottom: 1rem;
}
input:not([type="hidden"]):not([type="file"]), select, textarea {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  border: 1px solid #b9ab98;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: .52rem .69rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { display: block; resize: vertical; min-height: 92px; }
.search-field { position: relative; flex: 1 1 170px; }
.search-field .icon { position: absolute; left: .72rem; top: .86rem; color: var(--muted); }
.search-field input { padding-left: 2.15rem !important; }
.filter-bar select { width: auto; max-width: 100%; }
.board-caption { display: flex; align-items: baseline; gap: .65rem; padding-block: .3rem .62rem; border-bottom: 1px solid var(--rule); }
.board-caption h2, .board-caption h3 { font-size: 1.03rem; font-weight: 770; }
.board-caption span, .board-caption a { font-size: .83rem; color: var(--muted); }
.board-caption a { margin-left: auto; color: var(--accent); }
.feedback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--rule);
}
.feedback-row h3 { font-size: 1.06rem; font-weight: 760; overflow-wrap: anywhere; }
.feedback-row h3 a { text-decoration: none; }
.feedback-row h3 a:hover { color: var(--accent-hover); text-decoration: underline; }
.feedback-preview { color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.row-kicker, .meta, .thread-labels, .reply-header { display: flex; align-items: center; gap: .42rem; flex-wrap: wrap; }
.row-kicker, .meta { color: var(--muted); font-size: .81rem; font-variant-numeric: tabular-nums; }
.row-kicker { gap: .6rem; }
.row-kicker span:first-child { color: var(--accent); }
.feedback-main .meta { margin-top: .38rem; }
.row-side { display: grid; align-content: start; justify-items: end; gap: .36rem; }
.tag { padding: .15rem .52rem; border-radius: 5px; font-size: .76rem; font-weight: 740; color: var(--ink); background: var(--linen); white-space: nowrap; }
.state-seen { color: #285575; background: #e5edf4; }
.state-accepted { color: #3e5634; background: #e9efdf; }
.state-shipped { color: #6f451d; background: #f6ebd2; }
.hidden-tag { color: #882d2d; background: #f6e1dd; }
.developer-tag { color: var(--accent-hover); background: var(--accent-pale); }
.empty { padding: 1.8rem .8rem 1.55rem; text-align: center; background: var(--paper); border-radius: 0 0 10px 10px; }
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: .65rem;
  border-radius: 10px;
  background: var(--accent-pale);
  color: var(--accent);
}
.empty-icon .icon { width: 22px; height: 22px; }
.empty p { margin-top: .2rem; color: var(--muted); font-size: .89rem; }
.empty .text-link, .empty .btn { margin-top: .85rem; font-size: .9rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .9rem; color: var(--muted); font-size: .87rem; }
.pagination .btn { min-height: 40px; }
.field { min-width: 0; margin-top: .78rem; }
.field label { display: inline-block; margin-bottom: .25rem; font-size: .89rem; font-weight: 720; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dropzone { position: relative; padding: .9rem; border: 1px dashed #b9a58f; border-radius: 10px; background: var(--paper); }
.dropzone.is-dragging { border-color: var(--accent); background: var(--accent-pale); }
.dropzone-icon { display: block; color: var(--accent); margin-bottom: .4rem; }
.dropzone-icon .icon { width: 25px; height: 25px; }
.dropzone small { display: block; color: var(--muted); font-size: .81rem; margin-block: .14rem .55rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone input:focus-visible + .file-button { outline: 2px solid var(--accent); outline-offset: 3px; }
.field .file-button { display: inline-flex; margin: 0; min-height: 40px; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 9px; margin: .75rem 0 0; padding: 0; list-style: none; }
.upload-previews li { width: 100px; }
.upload-previews img { width: 100%; height: 65px; object-fit: cover; border-radius: 6px; background: var(--linen); }
.text-button { border: 0; background: none; color: var(--accent); padding: .35rem 0; font-size: .85rem; font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.attachment-error, .errorlist { color: #8c2526; margin-block: .3rem; font-size: .9rem; }
.errorlist { padding-inline-start: 1.2rem; }
.error-box { margin-block: .65rem; padding: .62rem .8rem; border-radius: 7px; background: #fae6e2; color: #7d2422; font-size: .9rem; overflow-wrap: anywhere; }
.error-box .errorlist { margin: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.form-footer p { color: var(--muted); font-size: .82rem; }
.thread-post { margin-top: .85rem; }
.thread-labels { color: var(--muted); font-size: .82rem; gap: .55rem; margin-bottom: .55rem; }
.thread-post h1, .thread-post h2 { margin-bottom: .4rem; }
.post-body, .reply-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body { margin-top: .9rem; }
.attachments { display: flex; flex-wrap: wrap; gap: 9px; margin-top: .9rem; }
.attachments a { border-radius: 8px; overflow: hidden; background: var(--linen); }
.attachments img { width: min(174px, 35vw); height: 105px; object-fit: cover; }
.discussion { margin-top: 1.3rem; }
.discussion-empty { color: var(--muted); padding-block: .72rem; font-size: .9rem; }
.reply { padding: .75rem .1rem; border-bottom: 1px solid var(--rule); }
.reply.is-reply { margin-inline-start: clamp(12px, 3vw, 35px); }
.reply.is-developer { margin-top: .45rem; padding-inline: .65rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.reply-header time { font-size: .79rem; color: var(--muted); }
.reply-parent { font-size: .82rem; color: var(--accent); overflow-wrap: anywhere; }
.reply-body { margin-top: .34rem; }
.reply-actions { display: flex; gap: .65rem; align-items: center; }
.reply-actions a { color: var(--accent); font-size: .85rem; padding-block: .27rem; }
.comment-form { margin-top: 1.1rem; }
.comment-form h3 { font-size: 1.05rem; }
.comment-form .btn { margin-top: .8rem; }
.reply-target { display: flex; justify-content: space-between; gap: .5rem; margin-top: .4rem; padding: .44rem .65rem; background: var(--linen); border-radius: 6px; font-size: .86rem; overflow-wrap: anywhere; }

.feedback-dialog .board-layout, .feedback-dialog .thread-grid, .compose-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, .43fr);
  gap: clamp(24px, 3.6vw, 56px);
}
.feedback-dialog .board-list, .feedback-dialog .thread-main { min-width: 0; }
.feedback-dialog .board-caption { justify-content: space-between; }
.feedback-dialog .empty { display: grid; justify-items: center; align-content: center; min-height: clamp(205px, 31dvh, 350px); }
.feedback-dialog .empty h3 { font: 760 clamp(1.32rem, 2.1vw, 1.88rem)/1.25 var(--serif); }
.status-guide, .thread-compose {
  align-self: start;
  position: sticky;
  top: 0;
  min-width: 0;
  border-radius: 12px;
  padding: clamp(17px, 2vw, 26px);
  background: var(--paper);
}
.status-guide h3 { font: 760 clamp(1.2rem, 2vw, 1.65rem)/1.22 var(--serif); }
.status-guide ul { display: grid; column-gap: 12px; padding: 0; margin: .6rem 0 0; list-style: none; }
.status-guide li { padding-block: .72rem; }
.status-guide li + li { border-top: 1px solid var(--rule); }
.status-guide p { margin-top: .3rem; color: var(--muted); font-size: .86rem; }
.compose-form { grid-template-columns: minmax(0, 1fr) minmax(230px, .62fr); row-gap: 0; }
.compose-form > .error-box, .compose-form > .form-footer { grid-column: 1 / -1; }
.compose-form .dropzone { min-height: 205px; text-align: center; align-content: center; }
.compose-form .upload-previews { justify-content: center; }
.compose-form .form-footer { padding-top: .88rem; border-top: 1px solid var(--rule); }
.feedback-dialog .thread-post { margin-top: 0; }
.thread-compose .comment-form { margin-top: 0; }

.manage-board, .account { padding-block: clamp(32px, 6vw, 74px); }
.manage-board { max-width: 1030px; }
.manage-board .thread-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, .36fr); gap: clamp(20px, 3.6vw, 54px); }
.moderation { align-self: start; padding: 1rem; background: var(--linen); border-radius: 10px; }
.moderation h2 { font-size: 1.1rem; }
.moderation form { display: grid; gap: .45rem; margin-block: .75rem; }
.moderation label { font-size: .9rem; }
.moderation .text-link { font-size: .86rem; }
.account { max-width: 540px; }
.account .back-link { margin-block: .7rem; }
.account form { margin-block: 1rem; }
.account .btn { margin-top: .9rem; }

@media (min-width: 721px) {
  .feedback-dialog [data-board-panel="feed"] { display: flex; min-height: 100%; }
  .feedback-dialog .board-layout { width: 100%; }
  .feedback-dialog .board-list { display: flex; flex-direction: column; }
  .feedback-dialog .empty { flex: 1; }
}

@media (max-width: 930px) {
  .head-inner { gap: 12px; }
  .head-actions { gap: 7px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding-inline: .53rem; }
  .feedback-dialog { width: calc(100% - 46px); height: min(950px, 82dvh); }
  .world-opening { padding-inline-end: 24px; }
  .world-opening h1 { max-width: 10ch; }
}
@media (max-width: 720px) {
  :root { scroll-padding-top: 125px; scrollbar-gutter: auto; }
  .head-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 0 10px; }
  .brand { min-height: 61px; font-size: .94rem; }
  .brand img { width: 33px; height: 33px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0; }
  .main-nav a { flex: 1 0 auto; justify-content: center; min-height: 42px; padding: 0 .15rem; font-size: .82rem; line-height: 1.25; text-align: center; white-space: normal; }
  .head-actions .btn { min-height: 40px; padding-inline: .62rem; }
  .head-actions { gap: 4px; }
  .introduction, .chapter-lead { grid-template-columns: minmax(0, 1fr); }
  .introduction { padding-block: 30px 32px; }
  .hero-copy { padding-bottom: 0; }
  .game-title { max-width: 230px; margin-bottom: .8rem; }
  .game-title .logo-en { width: 180px; }
  .hero-line { font-size: clamp(1.38rem, 5.5vw, 1.85rem); }
  .hero-description { margin-block: .6rem 1.05rem; max-width: 38ch; }
  .chapter-copy p { margin-block: .75rem .8rem; }
  .chapter-page { padding-top: 28px; }
  .chapter-grid { gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dd { max-width: 62ch; }
  .quality-list { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { display: grid; }
  .guide-masthead, .guide-layout { grid-template-columns: 1fr; gap: 23px; }
  .guide-masthead img { aspect-ratio: 2.1; }
  .guide-index { position: static; }
  .guide-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
  .guide-index li + li { border-top: 0; }
  .guide-index li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .guide-chapter h2 { font-size: 1.72rem; }
  .guide-step-index { display: none; }
  .guide-article-title h1 { font-size: 2.3rem; }
  .guide-steps h2 { font-size: 1.38rem; }
  .world-intro { grid-template-columns: 1fr; gap: 24px; }
  .world-cover, .world-opening { grid-column: auto; grid-row: auto; }
  .world-opening { margin: 0; padding: 0; }
  .world-opening h1 { max-width: none; }
  .world-premise { grid-template-columns: 1fr; gap: 12px; }
  .atlas-panel { grid-template-columns: 1fr; gap: 18px; }
  .atlas-panel figure { grid-row: 1; }
  .feedback-dialog .board-layout, .feedback-dialog .thread-grid, .compose-form { grid-template-columns: 1fr; gap: 22px; }
  .status-guide, .thread-compose { position: static; }
  .compose-form .compose-media { margin-top: 0; }
  .compose-form .form-footer { margin-top: 0; }
}
@media (max-width: 540px) {
  .chapter-grid, .editorial-pair { grid-template-columns: 1fr; gap: 20px; }
  .chapter { display: grid; grid-template-columns: 39% minmax(0, 1fr); gap: 0 13px; align-content: center; }
  .chapter > img { grid-row: 1 / 3; align-self: center; aspect-ratio: 1.6; border-radius: 8px; }
  .chapter-title { margin-top: 0; align-self: end; }
  .chapter p { margin-top: .18rem; font-size: .86rem; }
  .atlas-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-tabs button { padding-inline: .65rem; }
  .cast-spread { grid-template-columns: 1fr; gap: 16px; }
  .cast-spread article { grid-template-columns: minmax(95px, .65fr) minmax(0, 1fr); }
  .feedback-dialog { --dialog-gutter: 18px; inset: auto 0 0; margin: 0 auto; width: 100%; height: 92dvh; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .dialog-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand close" "nav nav"; gap: 7px 10px; padding-block: 10px; }
  .dialog-nav .btn { flex: 1; padding-inline: .52rem; gap: .35em; font-size: .85rem; }
  .dialog-close { width: 44px; min-height: 44px; }
  .dialog-scroll { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .status-guide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-guide li + li { border-top: 0; }
  .status-guide li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .feed-header { display: block; }
  .feed-header .actions { margin-top: .72rem; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
  .filter-bar .search-field { grid-column: 1 / -1; }
  .filter-bar label { min-width: 0; }
  .filter-bar select { width: 100%; padding-inline: .35rem; }
  .filter-bar .btn { padding-inline: .52rem; }
  .feedback-dialog .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-dialog .filter-bar .btn { grid-column: 1 / -1; justify-self: end; }
  .manage-board .thread-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .brand { font-size: .87rem; white-space: nowrap; gap: 7px; }
  .language-picker summary .icon:last-child { display: none; }
}
@media (max-width: 360px) {
  .head-inner { column-gap: 6px; }
  .brand { font-size: .79rem; }
  .brand img { width: 28px; height: 28px; }
  .head-actions .btn { padding-inline: .48rem; }
  .language-picker summary { padding-inline: .25rem; }
  .language-picker summary > span { display: none; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .guide-teaser { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; padding-inline: .25rem; }
  .guide-teaser h3 { font-size: 1.02rem; }
  .guide-teaser p { font-size: .86rem; }
  .guide-screenshot figcaption { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
