:root {
  color-scheme: dark; --ink: #f2ecda; --muted: #a8b6ab; --gold: #e4bd76;
  --edge: #384943; --wash: #19231f; --bg: #101817;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 82% 13%, #20322b 0, transparent 50%), var(--bg); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f6d28f; outline-offset: 4px; }
.mast, .arena { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.mast { height: 84px; border-bottom: 1px solid var(--edge); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 15px; align-items: center; font-weight: 650; letter-spacing: .07em; }
.mark { position: relative; display: inline-block; width: 22px; height: 22px; border: 1px solid #ba9b5e; transform: rotate(45deg); }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--gold); }
.mark::before { width: 3px; height: 14px; left: 6px; top: 2px; }
.mark::after { width: 3px; height: 14px; right: 6px; bottom: 2px; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2 { font-family: "Songti SC","Noto Serif CJK SC",SimSun,Georgia,serif; }
h1 { font-size: clamp(50px, 6.2vw, 86px); line-height: 1.15; letter-spacing: .01em; }
.period { color: var(--gold); }
.intro { line-height: 1.85; color: #c6d0c6; }
.primary { border: 1px solid #dfba78; min-height: 49px; padding: 10px 20px; background: var(--gold); color: #1e241c; border-radius: 5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 22px; }
.primary:hover { background: #f2d08f; }
.primary:disabled { opacity: .65; cursor: progress; }
.quiet { border: 0; padding: 8px 0; color: var(--muted); background: transparent; font-size: .9rem; }
.quiet:hover { color: var(--ink); text-decoration: underline; }
input { width: 100%; min-height: 48px; padding: 10px 14px; color: var(--ink); background: #101917; border: 1px solid #596b5f; border-radius: 5px; }
input::placeholder { color: #94a499; }
label { display: block; color: #cbd2c7; font-size: .9rem; }
.status { color: #ebcc94; font-size: .92rem; }
.status:not(:empty) { margin-top: 16px; }
.entry { background: radial-gradient(ellipse at 50% 44%, #203127, transparent 62%), var(--bg); }
.gate { position: relative; width: min(476px, calc(100% - 40px)); margin: clamp(56px, 10vh, 130px) auto 0; padding-bottom: 64px; text-align: center; }
.emblem { position: relative; width: 76px; height: 76px; margin: 0 auto 38px; display: grid; place-items: center; }
.emblem::before, .emblem::after, .emblem i, .emblem b { content: ""; position: absolute; transform: rotate(45deg); }
.emblem::before { inset: 9px; border: 1px solid #766c49; }
.emblem::after { inset: 18px; border: 1px solid #a88a55; }
.emblem i, .emblem b { width: 11px; height: 28px; background: #b78f50; top: 21px; left: 24px; }
.emblem b { background: #9fb4a2; top: 30px; left: 40px; }
.gate h1 { font-size: clamp(34px, 7vw, 49px); }
.gate .intro { margin: 14px 0 28px; }
.gate form { padding: 24px; border: 1px solid var(--edge); background: #18221ecc; border-radius: 10px; text-align: left; }
.gate form label { margin-bottom: 8px; }
.gate .primary { margin-top: 14px; width: 100%; }
.stage { display: grid; grid-template-columns: minmax(265px, .82fr) minmax(0, 1.4fr); gap: clamp(30px, 5vw, 84px); align-items: center; padding: clamp(42px, 6.7vw, 94px) 0; }
.edition { margin-bottom: 14px; color: var(--gold); font: 600 .83rem/1.55 ui-monospace,monospace; letter-spacing: .055em; }
.edition span { color: #839789; margin-inline: 3px; }
.brief .intro { max-width: 28em; margin: 20px 0 23px; }
.actions { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.spec { margin-top: 12px; color: var(--muted); font-size: .83rem; }
#manual-copy { margin-top: 12px; }
.phone .install { display: none; }
.phone #handoff { border: 1px solid var(--gold); border-radius: 5px; padding: 12px 18px; background: var(--gold); font-weight: 700; color: #1e241c; font-size: 1rem; text-decoration: none; }
.preview { min-width: 0; border: 1px solid #48564a; border-radius: 9px; overflow: hidden; background: #19231f; box-shadow: 0 18px 60px #070e0b38; }
.screen { background: #101814; overflow: hidden; }
.screen img { width: 100%; height: auto; display: block; }
figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; gap: 8px; border-top: 1px solid var(--edge); }
.caption { color: #b9c7ba; font-size: .84rem; }
.sides { display: flex; flex-wrap: wrap; gap: 5px; }
.sides button { background: transparent; padding: 7px 11px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: .86rem; }
.sides [aria-pressed=true] { background: #293b34; border-color: #647b68; color: var(--ink); }
.capabilities { border-top: 1px solid var(--edge); padding: 30px 0; }
.feature-list { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; }
.feature-list div { border-top: 1px solid var(--edge); padding: 12px 0 14px; }
.feature-list dt { font-weight: 650; }
.feature-list dd { margin: 5px 0 0; color: var(--muted); }
.guide { border-top: 1px solid var(--edge); padding: 32px 0 48px; }
h2 { font-size: clamp(25px, 3vw, 35px); line-height: 1.3; }
.guide ol { list-style: none; counter-reset: steps; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.guide li { counter-increment: steps; position: relative; border-top: 1px solid var(--edge); padding-top: 13px; }
.guide li::before { content: "0" counter(steps); color: var(--gold); font: .82rem/1 ui-monospace,monospace; margin-right: 10px; }
.guide strong { font-size: 1.03rem; }
.guide li p,details p { margin-top: 6px; color: var(--muted); font-size: .94rem; }
kbd,code { font: .93em ui-monospace,monospace; color: #dfd8b7; }
details { border-top: 1px solid var(--edge); padding-top: 14px; }
summary,.file-link { cursor: pointer; color: #d5c49e; }
.file-link { display: inline-block; margin-top: 7px; text-underline-offset: 4px; }
@media(max-width: 880px) { .mast,.arena { width: calc(100% - 48px); } .stage { grid-template-columns: 1fr 1.2fr; gap: 25px; } }
@media(max-width: 680px) {
  .mast,.arena { width: calc(100% - 38px); } .mast { height: 65px; }
  .stage { grid-template-columns: 1fr; padding: 32px 0 24px; }
  .brief h1 { font-size: clamp(36px, 9vw, 55px); } .brief h1 br { display: none; }
  .brief .intro { margin: 14px 0 18px; }
  .edition { margin-bottom: 9px; } figcaption { padding: 8px 10px; }
  .sides button { padding: 7px 8px; }
  .capabilities { padding: 23px 0 18px; }
  .feature-list { grid-template-columns: 1fr; margin-top: 13px; }
  .guide ol { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .guide { padding-top: 22px; } .gate form { padding: 18px; }
}
