@font-face {
  font-family: "Barlow Condensed";
  src: url("./barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f9f6ee;
  --ink: #211d24;
  --muted: #605b5c;
  --line: #d7cfc4;
  --hot: #ff875e;
  --rust: #a4442c;
  --night: #221c29;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased }
a { color: inherit; text-underline-offset: .2em }
button { font: inherit; color: inherit; cursor: pointer }
button:disabled { cursor: default }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #b9562c; outline-offset: 3px }
#cities :focus-visible, .cover :focus-visible { outline-color: #ffad78 }
::selection { background: #fac098; color: #201b23 }
.wrap { width: min(1216px, calc(100% - clamp(40px, 9.5vw, 144px))); margin-inline: auto }
body > .portfolio-navigation[data-placement="page"] {
  min-height: 42px; background: #201b25; color: #f5ebdf; border-bottom: 1px solid #58414e;
  padding-inline: max(calc((100% - 1216px)/2), clamp(20px,4.75vw,72px));
}
body > .portfolio-navigation .portfolio-title { color: #f7decc; letter-spacing: .07em }
body > .portfolio-navigation .portfolio-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--hot); transform: rotate(-12deg) }
body > .portfolio-navigation details div { z-index: 2 }
.cover { position: relative; isolation: isolate; color: #fff7e7; background: #312030; overflow: hidden }
.cover-art, .cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1 }
.cover-art { object-fit: cover; object-position: 56% 58% }
.cover-shade {
  background: linear-gradient(90deg,rgba(27,18,34,.92) 1%,rgba(31,21,37,.81) 24%,rgba(32,22,38,.44) 45%,rgba(29,20,37,.04) 68%),
    linear-gradient(0deg,rgba(24,16,31,.49),transparent 24%);
}
.cover-content { min-height: clamp(425px,35.5vw,552px); padding-block: clamp(35px,3.8vw,61px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center }
.cover-kicker, .kicker, .micro, .postcard-title small { font: 700 .79rem/1.3 var(--mono); letter-spacing: .13em }
.cover-kicker { color: #ffcfaa; display: flex; align-items: center; gap: 12px; white-space: nowrap }
.stripes { width: 29px; height: 13px; transform: skew(-17deg); background: repeating-linear-gradient(90deg,var(--hot) 0px 5px,transparent 5px 10px) }
.dash { width: 24px; height: 1px; background: #d9a293 }
h1, h2, h3, p, figure { margin: 0 }
.cover h1 { margin: 8px 0 14px; line-height: .96; display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.gta-word { font: 700 clamp(6.9rem,8.6vw,9.5rem)/.82 var(--display); letter-spacing: -.045em; transform: skew(-8deg); transform-origin: left bottom; color: #fff3d3 }
.zh-title { font-size: clamp(2.45rem,3.5vw,3.75rem); font-weight: 850; letter-spacing: .005em; line-height: 1.12 }
.cover-content p { max-width: 27em; color: #f4e4dc; font-size: 1rem; line-height: 1.85; text-wrap: pretty }
.cover-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap }
.cover-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 8px 20px; font-size: .89rem; font-weight: 700; text-decoration: none; border-radius: 3px; transition: background .18s }
.primary { background: var(--hot); color: #241a22; border: 1px solid var(--hot) }
.primary:hover { background: #ffa27b }
.secondary { border: 1px solid #cfb3af; color: #fff5eb; background: #21182465 }
.secondary:hover { background: #594053 }
.art-caption { position: absolute; bottom: 13px; right: max(20px,3vw); color: #f4dedb; text-shadow: 0 1px 4px #1c1220; font-size: .75rem }
.mainline { background: #eee8dc; border-bottom: 1px solid var(--line) }
.mainline-wrap { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; padding-block: 18px }
.mainline-label { display: grid; border-right: 1px solid #c1b6aa; padding-block: 3px; gap: 4px }
.mainline-label .micro { color: var(--rust); font-size: .69rem }
.mainline-label b { font-size: .95rem }
.mainline-route { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 3px }
.mainline-route a { position: relative; padding: 2px 3px 2px 13px; display: grid; text-decoration: none; line-height: 1.35 }
.mainline-route a::before { content: ""; position: absolute; top: 9px; left: 0; width: 5px; height: 5px; background: #a14b3e; border-radius: 50% }
.mainline-route a:hover, .mainline-route a[aria-current] { color: var(--rust); text-decoration: underline }
.mainline-route strong { font: 700 1.25rem/1 var(--display); letter-spacing: .025em }
.mainline-route a span { font-size: .76rem; white-space: nowrap; color: #5e5655; margin-top: 4px }
.paper-section, .city-section { padding-block: clamp(42px,5.4vw,82px) }
section[id], #dossier { scroll-margin-top: 58px }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--rust); margin-bottom: 9px; font-size: .76rem }
.kicker::before { content: ""; width: 23px; height: 3px; background: currentColor }
h2 { font-size: clamp(2.1rem,3vw,3rem); letter-spacing: -.045em; line-height: 1.13; font-weight: 800 }
.section-intro > p { max-width: 27em; color: var(--muted); font-size: .96rem; line-height: 1.85 }
.era-buttons, .compare-choices { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px }
.era-buttons button, .compare-choices button { background: transparent; border: 1px solid #c7beb4; font-size: .9rem; line-height: 1.4; padding: 10px 16px; border-radius: 3px; font-weight: 650; display: flex; align-items: center; gap: 8px }
.era-buttons button:hover, .compare-choices button:hover { border-color: var(--ink) }
.era-buttons button[aria-pressed="true"], .compare-choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white }
.era-buttons i { width: 7px; height: 7px; background: #c57a38; border-radius: 50% }
[data-era="3d"] i { background: #af6c92 }
[data-era="hd"] i { background: #438e87 }
.archive-grid { display: grid; grid-template-columns: minmax(245px,.78fr) minmax(0,1.9fr); border: 1px solid #bfb4ab; border-radius: 4px; overflow: hidden; background: #fffcf5 }
.directory { border-right: 1px solid #cfc5b9; min-width: 0; display: flex; flex-direction: column; background: #f2eee4 }
.directory-head, .dossier-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.directory-head { border-bottom: 1px solid #d6cbbf; padding: 12px 18px; font-size: .87rem }
.directory-head span, #record-position { font: .78rem/1.5 var(--mono); color: var(--muted) }
#game-list { position: relative; height: 415px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a99b90 transparent }
.game-row { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; gap: 12px; width: 100%; padding: 10px 14px 10px 18px; min-height: 47px; border: 0; border-left: 4px solid transparent; border-bottom: 1px solid #ded5c9; background: transparent; text-align: left; line-height: 1.5 }
.game-row:hover { background: #eae2d7 }
.game-row[aria-pressed="true"] { background: #f3d6c4; border-left-color: #aa492b }
.game-row .year { font: 700 1.08rem var(--display); color: #6a5b55 }
.game-row .name { font-weight: 650; font-size: .94rem; overflow-wrap: anywhere }
.dossier { display: flex; flex-direction: column; min-width: 0 }
#game-detail { flex: 1; padding: clamp(20px,2.4vw,36px); display: grid; align-items: start; align-content: start; grid-template-columns: minmax(100px,.62fr) minmax(0,1.9fr); gap: clamp(16px,2.1vw,30px) }
.record-art { width: 100%; max-width: 185px; justify-self: start; margin: 0 }
.record-cover { width: 100%; height: auto; aspect-ratio: auto 3/4; object-fit: contain; object-position: center; display: block; background: #28232a; box-shadow: 3px 4px 0 #dfd5c6 }
.record-art figcaption { font-size: .72rem; color: #6d645f; margin-top: 9px }
.type-cover { min-height: 155px; aspect-ratio: 3/4; display: grid; align-content: space-between; padding: 15px; color: #f5dbc5; background: repeating-linear-gradient(-38deg,#29232d,#29232d 14px,#332735 15px,#332735 17px); border-bottom: 5px solid var(--hot) }
.type-cover b { font: 700 clamp(2.4rem,4vw,3.65rem)/1 var(--display) }
.type-cover small { font: .79rem var(--mono) }
.record-tag { font-size: .76rem; color: var(--rust); font-weight: 700; margin-bottom: 5px }
.record-name { font: 700 clamp(2rem,3.2vw,3.2rem)/1.04 var(--display); overflow-wrap: anywhere; letter-spacing: -.015em }
.record-zh { color: #574c4f; margin: 5px 0 14px; font-size: .98rem; font-weight: 650 }
.record-facts { margin: 0 0 15px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; border-block: 1px solid #e0d7ca; padding-block: 9px; font-size: .85rem }
.record-facts dt { color: var(--muted) }
.record-facts dd { margin: 0 }
.record-headline { font-size: 1.12rem; margin: 0 0 4px; line-height: 1.55 }
.record-text { font-size: .96rem; line-height: 1.85; color: #443e3e }
.record-text + .record-text { margin-top: 7px }
.record-source { display: inline-block; margin-top: 11px; font-size: .82rem; color: var(--rust) }
.guide-entry { display: inline-block; margin-bottom: 12px; padding: 6px 13px; border: 1px solid #ac5d3d; border-radius: 3px; font-size: .91rem; font-weight: 700; text-decoration: none; color: #7e3825; background: #ffe5cc }
.guide-entry:hover, .guide-return:hover { text-decoration: underline }
.guide-section { padding-block: clamp(32px,4.1vw,60px); border-top: 1px solid var(--line); background: #f0e9dc }
.guide-section .section-intro { align-items: start }
.guide-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,.92fr); gap: clamp(22px,4vw,56px); align-items: start }
.guide-topics { border-top: 2px solid var(--ink) }
.guide-topics details { border-bottom: 1px solid #c7baab }
.guide-topics summary, .guide-sources summary { cursor: pointer; font-weight: 700 }
.guide-topics summary { padding: 14px 4px; line-height: 1.6; font-size: 1.04rem }
.guide-topics summary::marker, .guide-sources summary::marker { color: var(--rust) }
.guide-topics details[open] summary { color: #873f2b }
.guide-answer { padding: 0 5px 18px 22px; font-size: 1rem; line-height: 1.85 }
.guide-answer ol { margin: 0; padding-left: 1.4em }
.guide-answer li + li, .guide-answer p + p { margin-top: 8px }
.guide-answer li::marker { color: #87412d; font-weight: 700 }
.guide-pocket { min-width: 0; padding: clamp(15px,2vw,26px); color: #fff4e5; background: var(--night); border-top: 4px solid var(--hot); border-radius: 3px }
.guide-pocket h3 { font-size: 1.35rem }
.guide-pocket p { margin: 2px 0 15px; color: #d8c8cb; font-size: .86rem }
.guide-pocket table { width: 100%; border-collapse: collapse; color: #f2e2d9; font-size: .9rem; text-align: left }
.guide-pocket th, .guide-pocket td { padding: 9px 5px; border-bottom: 1px solid #665363; vertical-align: top }
.guide-pocket thead th { color: #ffb18e }
.guide-pocket tbody th { font-weight: 500 }
.guide-return { display: inline-block; margin-top: 18px; color: #ffb18e; font-size: .91rem }
.guide-sources { margin-top: 18px; font-size: .87rem; color: var(--muted) }
@media(max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; gap: 20px }
  .guide-section .section-intro { flex-direction: column; gap: 10px }
  .guide-answer { padding-left: 5px }
}
.dossier-nav { border-top: 1px solid var(--line); padding: 7px 18px }
.dossier-nav button { padding: 7px 8px; background: transparent; border: none; font-size: .86rem; font-weight: 700 }
.dossier-nav button:hover:enabled { color: var(--rust); text-decoration: underline }
.dossier-nav button:disabled { opacity: .42 }
.city-section { background: var(--night); color: #fff4e5; border-block: 1px solid #322737 }
.city-section .kicker { color: #ffab7d }
.city-section .section-intro > p { color: #d0c3cd }
.postcards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px }
.postcards button { min-width: 0; position: relative; isolation: isolate; aspect-ratio: 1.98; background: #4d424f; color: #fff9ed; border: 0; padding: 0; border-radius: 3px; overflow: hidden; text-align: left }
.postcards button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--hot) }
.postcards button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s }
.postcards button:hover img { transform: scale(1.04) }
.postcards button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#170e21df,transparent 78%) }
.postcard-title { position: absolute; z-index: 1; left: 18px; bottom: 13px; display: grid }
.postcard-title small { color: #ffdbc2; font-size: .71rem }
.postcard-title b { font-size: clamp(1.35rem,2vw,2rem); letter-spacing: -.04em; line-height: 1.4 }
.other-cities { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; font-size: .85rem }
.other-cities span { color: #c1b4be }
.other-cities button { border: 1px solid #776777; padding: 4px 12px; border-radius: 3px; background: transparent; color: #f8e7df }
.other-cities button[aria-pressed="true"], .other-cities button:hover { border-color: var(--hot); color: var(--hot) }
.city-file { border-top: 1px solid #594859; padding-top: 22px; display: grid; grid-template-columns: .93fr 1.35fr; gap: clamp(22px,4vw,60px) }
.city-file h3 { font-size: 1.5rem; line-height: 1.43; margin: 0 0 6px }
.city-file p { color: #dccfd5; font-size: .94rem; line-height: 1.85 }
.lineage { border-left: 1px solid #755e6c; margin: 3px 0 0 6px; padding-left: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-content: center }
.lineage a { border: 1px solid #6e5d69; color: #f3e6de; text-decoration: none; padding: 6px 10px; border-radius: 3px; font-size: .85rem }
.lineage a:hover { border-color: var(--hot); color: var(--hot) }
.lineage time { color: #ffb18e; font: 700 .85rem var(--display); margin-right: 5px }
.design-section { padding-bottom: 28px }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-block: 1px solid #b9aca1 }
.comparison-grid article { padding: 22px clamp(14px,2.2vw,34px) 23px 0 }
.comparison-grid article + article { border-left: 1px solid var(--line); padding-left: clamp(18px,2.2vw,34px) }
.comparison-grid time { font: 700 2rem/1 var(--display); color: var(--rust) }
.comparison-grid h3 { font-size: 1.16rem; line-height: 1.6; margin: 5px 0 }
.comparison-grid p { color: #4f4949; line-height: 1.9; font-size: .97rem }
.comparison-grid a { display: inline-block; font-size: .86rem; font-weight: 700; margin-top: 13px }
.sources { padding: 4px 0 clamp(38px,4vw,60px) }
.sources details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 13px }
.sources summary { cursor: pointer; font-weight: 700; font-size: .97rem }
.sources p { margin: 12px 0 0; max-width: 78ch; color: var(--muted); font-size: .93rem }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 19px; font-size: .84rem; margin: 15px 0 7px; color: var(--rust) }
.page-footer { background: #201b25; color: #eedfd9; font-size: .82rem }
.page-footer .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 19px }
.page-footer i { margin: 0 5px; font-style: normal; color: var(--hot) }
@media (max-width:950px) {
  .mainline-wrap { grid-template-columns: 85px 1fr; gap: 14px }
  .mainline-route a { padding-left: 9px }
  .archive-grid { grid-template-columns: minmax(195px,.7fr) minmax(0,1.8fr) }
  #game-detail { grid-template-columns: minmax(70px,.45fr) minmax(0,1.5fr); gap: 16px }
}
@media (max-width:700px) {
  .wrap { width: calc(100% - 36px) }
  .cover-content { min-height: 438px; padding: 38px 0 46px }
  .cover-art { object-position: 67% center }
  .cover-shade { background: linear-gradient(90deg,#201626c9 0%,#2317258c 53%,#21152726),linear-gradient(0deg,#1f1425cc 0%,transparent 60%) }
  .cover-content p { max-width: min(100%,25em); font-size: .96rem }
  .cover-kicker { font-size: .72rem; gap: 8px }
  .cover-kicker .dash { width: 15px }
  .mainline-wrap { grid-template-columns: 1fr; gap: 9px; padding-block: 13px }
  .mainline-label { display: flex; align-items: baseline; gap: 9px; border: 0 }
  .mainline-label b { font-size: .85rem }
  .mainline-route { grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 8px; row-gap: 9px }
  .mainline-route a { padding: 0 0 0 10px }
  .mainline-route a::before { top: 7px }
  .mainline-route strong { font-size: 1.15rem }
  .mainline-route a span { margin-top: 1px; font-size: .72rem }
  .section-intro { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 20px }
  .section-intro > p { font-size: .92rem }
  .era-buttons, .compare-choices { gap: 5px; margin-bottom: 12px }
  .era-buttons button, .compare-choices button { font-size: .84rem; gap: 5px; padding: 9px 10px }
  .archive-grid { grid-template-columns: 1fr }
  .directory { border-right: 0; border-bottom: 1px solid var(--line) }
  .directory-head { padding: 8px 13px }
  #game-list { height: auto; max-height: 147px }
  .game-row { min-height: 40px; padding: 8px 12px; gap: 9px }
  #game-detail { padding: 20px 15px 18px; grid-template-columns: clamp(84px,24vw,115px) minmax(0,1fr); gap: 14px }
  .record-art { max-width: 115px }
  .record-name { font-size: 2.1rem }
  .record-body { grid-column: 1/-1 }
  .record-facts { margin-bottom: 0; padding-block: 6px; gap: 2px 8px }
  .record-zh { margin-bottom: 8px }
  .postcards { gap: 9px }
  .postcards button { aspect-ratio: .97 }
  .postcard-title { left: 6px; bottom: 7px }
  .postcard-title small { font-size: .62rem; letter-spacing: .035em }
  .postcard-title b { font-size: 1.13rem }
  .city-file { grid-template-columns: 1fr; gap: 17px }
  .other-cities { margin-block: 14px; gap: 7px }
  .lineage { margin-left: 0; padding-left: 11px }
  .comparison-grid article { padding-block: 15px }
  .comparison-grid article + article { padding-left: 13px }
  .comparison-grid h3 { font-size: 1.01rem }
  .comparison-grid p { font-size: .9rem }
}
@media (min-width:701px) {
  .record-header, .record-body { grid-column: 2 }
  .record-art { grid-column: 1; grid-row: 1 / 3 }
  #game-detail { row-gap: 0 }
}
@media (max-width:360px) {
  .wrap { width: calc(100% - 26px) }
  .cover-actions a { padding-inline: 14px }
  .era-buttons button { padding-inline: 7px }
  .comparison-grid { grid-template-columns: 1fr }
  .comparison-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0 }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important }
}
