:root {
  --paper: #f7f1e5;
  --ink: #173b3b;
  --night: #122e31;
  --brass: #ffc477;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #597370 var(--paper);
}
* { box-sizing: border-box; }
body, h1, p, figure, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--night); background: var(--brass); }
:focus-visible { outline: 3px solid #c76329; outline-offset: 4px; }
.skip, legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 4; top: 10px; left: 12px; width: auto; height: auto; padding: 12px; clip-path: none; background: var(--paper); }
.mast { max-width: 1720px; margin: auto; min-height: 82px; padding: 12px clamp(20px, 5vw, 88px); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 11px; align-items: center; }
.brand span { font: 800 23px/1.15 var(--serif); letter-spacing: .08em; }
.brand small { display: block; margin-top: 4px; font: italic 13px/1 Georgia, serif; letter-spacing: .045em; }
.desk { font-weight: 650; font-size: 14px; padding: 10px 0 8px; border-bottom: 1px solid; }
.desk span { margin-left: 8px; }
.desk:hover { color: #9a4524; }
.spread { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.33fr); max-width: 1720px; margin: auto; background: var(--night); }
.story { grid-row: 1; grid-column: 1; align-self: center; position: relative; z-index: 1; padding: clamp(48px, 6vw, 100px) 0 clamp(48px, 6vw, 100px) clamp(20px, 5vw, 88px); color: var(--paper); }
h1 { font: 850 clamp(50px, 6.1vw, 96px)/1.18 var(--serif); letter-spacing: -.035em; }
h1 em { color: var(--brass); font-style: normal; }
.story p { font-size: clamp(15px, 1.3vw, 20px); line-height: 1.85; margin: 24px 20px 30px 0; color: #dce5de; }
.create { display: inline-flex; align-items: center; gap: 30px; min-height: 49px; border-radius: 5px; padding: 12px 21px; background: var(--brass); color: #203533; font-size: 16px; font-weight: 750; }
.create:hover { background: #ffda9d; }
.create span { font: 24px/1 Georgia, serif; }
.frame { grid-row: 1; grid-column: 2; position: relative; isolation: isolate; overflow: hidden; min-height: clamp(430px, 41vw, 650px); }
.plate { position: absolute; inset: 0; display: none; }
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night), transparent 18%), linear-gradient(0deg, #091f22ed, transparent 30%); pointer-events: none; }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 43%; display: block; }
.cabin, .spread:has([value=radio]:checked) .radio, .spread:has([value=game]:checked) .game { display: block; }
.spread:has([value=radio]:checked, [value=game]:checked) .cabin { display: none; }
.voice { position: absolute; z-index: 1; bottom: 5%; left: 8%; right: 4%; color: white; text-shadow: 0 1px 5px #172a2b; }
.voice b { display: block; font-size: 13px; letter-spacing: .075em; color: #ffda9d; }
.voice q { display: block; quotes: '「' '」'; margin: 6px 0 0 -.5em; font: 700 clamp(17px, 1.5vw, 25px)/1.4 var(--serif); }
.frame figcaption { position: absolute; z-index: 1; top: 16px; right: 20px; color: #fff4de; background: #142e31dc; padding: 4px 8px; border-radius: 3px; font-size: 11px; }
.routes { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 3vw, 60px); border: 0; padding: clamp(22px, 3vw, 42px) clamp(20px, 5vw, 88px); min-width: 0; background: var(--paper); }
.routes label { position: relative; display: flex; align-items: center; gap: clamp(10px,1.35vw,24px); cursor: pointer; border-top: 2px solid #b9c1b6; padding: 18px 0; }
.routes input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.routes label:has(:checked) { border-color: #a64525; }
.routes label:has(:focus-visible) { outline: 3px solid #a64525; outline-offset: 4px; }
.num { font: italic clamp(23px, 2.6vw, 42px)/1 Georgia, serif; color: #536459; }
.routes strong { display: block; font: 800 clamp(17px, 1.6vw, 25px)/1.3 var(--serif); }
.routes small { display: block; margin-top: 6px; color: #51635b; font-size: 13px; }
.routes i { margin-left: auto; width: 11px; height: 11px; flex: none; border: 1px solid #7a877f; border-radius: 50%; }
.routes label:hover, .routes label:has(:checked) .num { color: #a64525; }
.routes label:has(:checked) i { background: #a64525; border-color: #a64525; }
@media (prefers-reduced-motion: no-preference) {
  .plate img { animation: arriving .65s cubic-bezier(.16,1,.3,1) both; }
  @keyframes arriving { from { transform: scale(1.025); } }
}
@media (max-width: 780px) {
  .mast { min-height: 68px; }
  .spread { grid-template-columns: 1fr; }
  .story { padding: 28px 24px; }
  h1 { font-size: clamp(38px, 7vw, 54px); }
  h1 br { display: none; }
  .story p { font-size: 15px; margin: 14px 0 18px; }
  .wide { display: none; }
  .create { min-height: 44px; padding: 10px 16px; gap: 20px; font-size: 14px; }
  .frame { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 1.8; }
  .plate::after { background: linear-gradient(0deg,#091f22ef,transparent 38%); }
  .voice { bottom: 7%; left: 6%; }
  .routes { gap: 14px; padding: 20px; }
  .routes label { flex-wrap: wrap; align-content: start; gap: 7px; padding: 10px 0; }
  .routes label > span:not(.num) { flex-basis: 100%; }
  .routes i { position: absolute; top: 15px; right: 1px; width: 8px; height: 8px; }
  .routes small { font-size: 12px; line-height: 1.5; }
}
@media (max-width: 480px) {
  .story { padding: 25px 20px; }
  h1 { font-size: clamp(32px, 8.4vw, 41px); }
  .frame { aspect-ratio: 1.42; }
  .frame figcaption { top: 10px; right: 12px; }
}

.chapter { max-width: 1720px; margin: auto; padding: clamp(48px, 6vw, 94px) clamp(20px, 7vw, 120px); }
.chapter h2, .chapter h3 { margin: 0; font-family: var(--serif); }
.chapter h2 { font-size: clamp(32px, 3.7vw, 62px); line-height: 1.23; letter-spacing: -.025em; }
.chapter-copy > p, .ticket-story p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.85; max-width: 34em; }
.chapter-copy > p { margin: 20px 0; }
.manifest, .wire { display: grid; align-items: center; gap: clamp(24px, 7vw, 112px); }
.manifest { grid-template-columns: 1fr 1.12fr; border-top: 1px solid #b9c1b6; }
.ink-link { display: inline-block; padding: 9px 0; border-bottom: 1px solid; font-weight: 700; }
.ink-link:hover { color: #9a4524; }
.ink-link span { margin-left: 10px; }
.crew-file { padding: clamp(18px, 2.5vw, 38px); background: #eee4ce; border: 1px solid #c4b99e; }
.crew-file figcaption { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px double #8e9380; padding-bottom: 9px; font: 700 20px/1.4 var(--serif); }
.crew-file figcaption span { font: 13px/1.4 sans-serif; color: #695737; }
.crew-identity { display: flex; align-items: center; gap: 20px; padding: 23px 0; }
.crew-identity img { width: clamp(80px, 8vw, 122px); aspect-ratio: 1; height: auto; object-fit: cover; object-position: 70% 30%; }
.crew-identity h3, .ticket-story h3 { font-size: clamp(24px, 2.3vw, 36px); }
.crew-identity p { margin-top: 5px; font-size: 14px; }
.crew-notes { margin: 0; }
.crew-notes div { display: grid; grid-template-columns: 4em 1fr; border-top: 1px solid #b9b49c; padding: 10px 0; font-size: 15px; line-height: 1.65; }
.crew-notes dt { color: #665334; }
.crew-notes dd { margin: 0; }
.wire { grid-template-columns: 1.18fr 1fr; background: var(--night); color: var(--paper); }
.wire-art { display: block; width: 100%; height: auto; }
.wire-copy h2 { color: var(--brass); }
.wire-steps { counter-reset: signal; list-style: none; padding: 0; margin: 24px 0 0; }
.wire-steps li { counter-increment: signal; border-top: 1px solid #55716d; padding: 10px 0; display: flex; align-items: baseline; gap: 14px; font-size: 15px; line-height: 1.6; }
.wire-steps li::before { content: counter(signal, decimal-leading-zero); font: italic 16px Georgia, serif; color: var(--brass); }
.voyage header { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; margin-bottom: 32px; }
.voyage header p { margin: 0; }
.ticket { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; background: #e9e1cd; }
.ticket > img { display: block; width: 100%; height: 100%; min-height: 260px; max-height: 430px; object-fit: cover; }
.ticket-story { align-self: center; padding: clamp(24px, 3.5vw, 64px); }
.ticket-story p { margin-top: 14px; }
.ticket-story details { border-top: 1px dashed #958d76; margin-top: 22px; }
.ticket-story summary { padding: 13px 0; font-weight: 700; cursor: pointer; }
.ticket-story summary:hover { color: #9a4524; }
.ticket-story details p { margin: 0; }
.departure { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; }
.departure p { font: 700 clamp(16px, 1.45vw, 22px)/1.6 var(--serif); }
@media (max-width: 780px) {
  .manifest, .wire, .voyage header, .ticket { grid-template-columns: 1fr; }
  .wire-art { max-height: 340px; object-fit: cover; }
  .chapter-copy > p { margin: 15px 0; }
  .voyage header { gap: 0; margin-bottom: 10px; }
  .ticket > img { min-height: 0; height: auto; }
  .departure { align-items: flex-start; flex-direction: column; gap: 14px; }
}
