:root {
  color-scheme: dark;
  --charcoal: #11100f;
  --hero: #171411;
  --panel: #211c17;
  --text: #e5dfd4;
  --muted: #b6aa99;
  --champagne: #e3cda4;
  --gold: #c1a16b;
  --bronze: #92744e;
  --line: #574735;
  accent-color: var(--gold);
  --song: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", "Noto Serif", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--charcoal); font: 16px/1.6 var(--song); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; }
section { scroll-margin-top: 12px; }
h1, h2, h3, p, ol, figure { margin: 0; }
.wrap { width: min(1220px, 88%); margin-inline: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 5; background: var(--panel); padding: .6em 1em; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { color: var(--champagne); background: var(--charcoal); border-bottom: 1px solid var(--line); }
.mast-row, .brand, nav, .actions, .watch, .to-download, .section-head, .end-row, .footer-row { display: flex; align-items: center; }
.mast-row, .section-head, .end-row, .footer-row { justify-content: space-between; }
.mast-row { min-height: 62px; gap: 1rem; }
.brand { gap: .65rem; font-size: 19px; font-weight: bold; letter-spacing: .09em; }
.brand svg { width: 31px; height: 31px; color: var(--gold); }
nav { gap: clamp(1rem, 3.3vw, 3.4rem); }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
nav a { color: var(--text); font-size: 14px; letter-spacing: .08em; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .35em; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--text); background: var(--hero); border-bottom: 3px double var(--bronze); }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 30%; background: radial-gradient(ellipse at 66% 36%, #564633 0%, #332a21 36%, var(--hero) 74%); }
.imprint { position: absolute; width: 44%; height: 74%; top: 13%; right: 10%; color: var(--bronze); opacity: .35; transform: rotate(-12deg); }
.battle { position: absolute; inset: 0; background: url("assets/hero.webp") center 45% / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero) 0%, rgba(23,20,17,.86) 12%, rgba(23,20,17,.26) 33%, transparent 55%); }
.hero-inner { position: relative; min-height: clamp(390px, 32vw, 490px); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 50px; }
.collection { letter-spacing: .15em; }
.collection { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--gold); }
.rule { width: 36px; height: 1px; background: var(--bronze); position: relative; }
.rule::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: var(--bronze); transform: rotate(45deg); }
h1 { color: var(--champagne); margin: .19em 0 .08em -.04em; font-size: clamp(62px, 6.65vw, 104px); line-height: 1.28; font-weight: 600; letter-spacing: .025em; text-shadow: 0 2px 15px #0c0a0873; }
.subtitle { font-size: clamp(21px, 2vw, 30px); letter-spacing: .22em; color: var(--text); }
.actions { margin-top: clamp(26px, 2.8vw, 42px); gap: 24px; }
.actions a { justify-content: center; min-height: 46px; gap: 10px; font-size: 15px; letter-spacing: .06em; }
.actions svg { width: 15px; height: 15px; }
.watch { padding: 0 23px; background: linear-gradient(110deg, #b99660, #e1c89a 39%, #d1b482 55%, #bf9d68); color: #201a13; border: 1px solid #d9bc8a; font-weight: bold; }
.watch:hover { background: linear-gradient(110deg, #cba673, #ebd4aa 44%, #cba673); }
.to-download { border-bottom: 1px solid var(--bronze); }
.to-download:hover { color: var(--champagne); }
.plate { position: absolute; inset: 24px 0; pointer-events: none; }
.corner { position: absolute; right: 0; top: 0; width: 27px; height: 27px; border: solid var(--gold); border-width: 1px 1px 0 0; }

.archive { padding-block: clamp(42px, 5vw, 80px); }
.section-head { align-items: end; padding-bottom: 18px; border-bottom: 3px double var(--bronze); gap: 1em; }
h2 { color: var(--champagne); font-size: clamp(32px, 3.4vw, 49px); line-height: 1.22; letter-spacing: .08em; font-weight: 600; }
.gallery { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr); gap: clamp(20px, 3.6vw, 56px); margin-top: clamp(22px, 2.3vw, 34px); }
.film-frame { padding: 4px; border: 1px solid var(--line); }
video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #0b0a09; }
figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
#film-name { font-size: 18px; }
#film-status:not(:empty) { margin-top: 8px; color: var(--gold); }
.contents ol { list-style: none; padding: 0; }
.contents button { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: clamp(8px, 1.1vw, 17px); width: 100%; min-height: clamp(51px, 4.6vw, 68px); padding: 8px 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.contents button:hover { background: var(--panel); }
.contents button[aria-pressed="true"] { background: linear-gradient(90deg, #382c1d, #241f19); box-shadow: inset 3px 0 var(--gold); }
.contents button svg { width: 12px; height: 12px; color: var(--gold); visibility: hidden; }
.contents button[aria-pressed="true"] svg, .contents button:hover svg, .contents button:focus-visible svg { visibility: visible; }
.duration { font-size: 13px; color: var(--muted); }
.name { font-size: clamp(16px, 1.45vw, 21px); font-weight: 600; }
.duration { white-space: nowrap; font-variant-numeric: tabular-nums; }
.download { background: var(--panel); border-block: 1px solid var(--line); }
.end-row { padding-block: clamp(28px, 3.5vw, 54px); gap: 1.2rem; }
.download h2 { font-size: clamp(27px, 2.4vw, 36px); }
.pending { color: var(--text); font-size: 16px; letter-spacing: .1em; }
.download-note { display: flex; align-items: center; gap: 24px; }
.dress-plate:not([hidden]) { display: flex; align-items: center; gap: 7px; padding-left: 20px; border-left: 1px solid var(--line); }
.dress-plate img { display: block; max-width: 112px; max-height: 76px; width: auto; height: auto; padding: 2px; border: 1px solid var(--bronze); }
@media (max-width: 760px) { .download-note .dress-plate { display: none; } }
.pending span[aria-hidden] { color: var(--gold); }
.launcher-entry, .download-note { min-width: 0; }
.launcher-entry { overflow-wrap: anywhere; }
#launcher-download:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; }
#launcher-download[hidden] { display: none; }
@media (max-width: 600px) {
  .footer-row { flex-wrap: wrap; padding-block: 10px; }
  .download .end-row { flex-wrap: wrap; }
}
footer { color: var(--muted); background: #0d0c0b; }
.footer-row { min-height: 68px; gap: .8em; font-size: 13px; letter-spacing: .08em; }

@media (max-width: 760px) {
  .wrap { width: 90%; }
  .mast-row { min-height: 56px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contents button { min-height: 52px; gap: 15px; }
  .hero { --picture-height: clamp(140px, 36vw, 250px); }
  .hero-art { inset: auto 0 0; height: var(--picture-height); }
  .hero-inner { min-height: 0; display: block; padding-bottom: var(--picture-height); }
  .imprint { top: 10%; height: 80%; }
  .battle { background-position: center 46%; }
  .hero-art::after { background: linear-gradient(180deg, var(--hero), rgba(23,20,17,.53) 14%, transparent 38%); }
  .hero-copy { padding: 35px 0 16px; }
  h1 { font-size: clamp(46px, 10.6vw, 74px); }
  .plate { inset: 16px 0; }
  .corner { width: 17px; height: 17px; }
  .actions { gap: 18px; margin-top: 22px; }
}
@media (max-width: 420px) {
  .mast-row { gap: 6px; }
  .brand { gap: 6px; font-size: 16px; letter-spacing: .02em; }
  .brand svg { width: 24px; height: 24px; }
  nav { gap: 12px; }
  nav a { font-size: 13px; letter-spacing: 0; }
  .watch { padding-inline: 14px; }
  .actions a { gap: 6px; }
}
