:root {
  color-scheme: dark;
  --green: #abda66;
  --text: #ece7d7;
  --muted: #a0aa96;
  --line: #b08a4840;
  --edge: clamp(24px, 5vw, 120px);
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: #151b17; color: var(--text); font: 14px/1.7 var(--font); }
h1, p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
img { display: block; max-width: 100%; }
::selection { background: var(--green); color: #16210f; }

/* 主题背景直接覆盖视口；装饰线属于页面内部，不再有居中卡片与外围留白。 */
.poster {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(100deg, #151b17 15%, #151f17b0 65%, #23302699),
    radial-gradient(ellipse at 84% 50%, #58722c80, transparent 65%);
}
.poster::before { content: ""; position: absolute; inset: 12px; border: 1px solid #b8985755; pointer-events: none; z-index: 5; }
.poster::after { content: ""; position: absolute; right: 32px; top: 0; width: 98px; height: 5px; background: repeating-linear-gradient(130deg, #a18646 0 8px, #293023 8px 16px); z-index: 6; }
.rivet { position: absolute; z-index: 7; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #8a7148; background: linear-gradient(135deg, #b59c70, #3c3426 50%, #6e5739); box-shadow: 0 1px 3px #000; }
.rivet::after { content: ""; position: absolute; width: 5px; height: 1px; top: 3px; left: 1px; background: #211e15; transform: rotate(-35deg); }
.rivet-tl { top: 18px; left: 18px; }
.rivet-tr { top: 18px; right: 18px; }
.rivet-bl { bottom: 18px; left: 18px; }
.rivet-br { bottom: 18px; right: 18px; }
.poster-header, .poster-footer { position: relative; z-index: 3; margin-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.poster-header { padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 3px; font-weight: 650; color: #cbb282; }
.game-label { color: #b6bfa9; font-size: 12px; letter-spacing: 1px; }
.game-label > span { margin-inline: 10px; color: #68705c; }
.poster-main {
  position: relative;
  width: min(1640px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vh, 48px) var(--edge);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 64px);
}
.poster-copy { position: relative; z-index: 3; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2px; color: #a8c781; margin-bottom: 22px; }
.eyebrow > span { width: 5px; height: 5px; background: var(--green); box-shadow: 0 0 10px #abd75d80; border-radius: 50%; }
h1 { font-size: clamp(48px, 5vw, 96px); font-weight: 850; line-height: 1.18; letter-spacing: -2px; white-space: nowrap; color: #e9c26e; text-shadow: 0 2px #644925, 0 5px 16px #0007; }
h1 > span { color: var(--green); text-shadow: 0 2px #486023, 0 5px 16px #0007; }
.tagline { font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: 1px; margin-top: 22px; color: #d8dccb; }
.description { color: var(--muted); font-size: clamp(12px, 1vw, 15px); margin-top: 13px; }
.features { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 32px; color: #b4bea6; font-size: 12px; letter-spacing: 1px; }
.features li { display: flex; align-items: center; }
.features li::before { content: ""; width: 4px; height: 4px; border: 1px solid #a2b87a; transform: rotate(45deg); margin-right: 8px; }
.download-area { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.download-button { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; width: min(280px, 100%); min-height: 60px; border: 1px solid #c8e798; border-radius: 4px; color: #12200e; background: linear-gradient(#badd7e, #93bf50); box-shadow: inset 0 1px #e5ffc070, 0 4px 0 #364722, 0 10px 30px #82b84017; font-size: 16px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.download-button:hover { background: linear-gradient(#cbea92, #a7d45f); box-shadow: inset 0 1px #e5ffc070, 0 4px 0 #364722, 0 10px 30px #82b84030; }
.button-arrow { margin-left: auto; font-size: 19px; font-weight: 400; }
.password { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #8c9d7f; }
.password strong { font-family: Consolas, monospace; letter-spacing: 3px; font-size: 16px; color: #d4d9bd; }
.copy-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #5a6c3e70; border-radius: 3px; background: #b8db6f09; color: #aebf91; }
.copy-button:hover { background: #b8db6f20; color: #dcebb8; }
.activation-note { font-size: 11px; color: #77866e; margin-top: 14px; }

.mascot-scene { position: relative; min-width: 0; height: clamp(300px, calc(100svh - 210px), 850px); display: flex; justify-content: center; align-items: center; pointer-events: none; }
.mascot { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(-20px 12px 25px #0007); }
.green-glow { position: absolute; inset: 0; background: radial-gradient(ellipse, #6aa73e35 0%, transparent 68%); }
.gear-halo { position: absolute; width: min(80%, 540px); aspect-ratio: 1; border: clamp(20px, 2.5vw, 40px) dashed #947d3e33; border-radius: 50%; transform: rotate(-10deg); box-shadow: 0 0 0 2px #997b3f20, inset 0 0 0 2px #997b3f20; }
.halo-ring { position: absolute; width: min(68%, 460px); aspect-ratio: 1; border: 1px solid #9b874040; border-radius: 50%; box-shadow: 0 0 0 14px #99843d08, 0 0 0 15px #9b874025; }
.scene-mark { position: absolute; z-index: 3; bottom: 12px; right: 0; font-size: 10px; letter-spacing: 3px; color: #d7cc9e8a; }
.poster-footer { border-top: 1px solid var(--line); padding: 18px 0 22px; font-size: 10px; color: #78816c; }
.footer-motto { font-size: 11px; color: #b3a077; letter-spacing: 1px; }
.footer-motto > span { color: #d3b363; margin-right: 7px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; padding: 10px 20px; border: 1px solid #799653; background: #25331e; color: #e8f2d2; border-radius: 5px; font-size: 12px; z-index: 30; box-shadow: 0 8px 24px #0008; transition: opacity .15s, transform .15s; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) and (min-width: 901px) {
  h1 { font-size: 48px; }
  .tagline { font-size: 20px; }
  .features { gap: 10px 14px; font-size: 11px; }
}
/* 平板与手机按内容重排，允许必要的纵向滚动，不用隐藏溢出来裁掉按钮。 */
@media (max-width: 900px) {
  :root { --edge: clamp(24px, 5vw, 48px); }
  .poster-main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 22px 32px; }
  .mascot-scene { order: -1; height: clamp(180px, 30svh, 340px); }
  .poster-copy { text-align: center; }
  .eyebrow, .features { justify-content: center; }
  h1 { font-size: clamp(40px, 7vw, 66px); letter-spacing: -1px; }
  .tagline { font-size: 22px; margin-top: 14px; }
  .description { font-size: 13px; margin-top: 10px; }
  .features { margin-block: 20px 25px; }
  .download-area { align-items: center; }
  .scene-mark { display: none; }
  .eyebrow { margin-bottom: 14px; }
  .poster-footer { font-size: 9px; }
  .footer-motto { font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 480px) {
  :root { --edge: 26px; }
  .poster::before { inset: 8px; }
  .poster-header { gap: 12px; padding-block: 20px 16px; }
  .wordmark { font-size: 8px; letter-spacing: 1px; gap: 6px; }
  .wordmark img { width: 20px; height: 20px; }
  .game-label { font-size: 9px; letter-spacing: 0; }
  .game-label > span { margin-inline: 4px; }
  .poster-main { gap: 14px; padding-block: 16px 25px; }
  .mascot-scene { height: clamp(170px, 28svh, 240px); }
  h1 { font-size: clamp(34px, 9vw, 43px); }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .tagline { font-size: 18px; margin-top: 12px; letter-spacing: 0; }
  .description { font-size: 11px; }
  .features { font-size: 10px; letter-spacing: 0; gap: 10px 16px; margin-block: 18px 23px; }
  .download-button { width: 100%; max-width: 320px; min-height: 54px; font-size: 15px; }
  .password { font-size: 11px; gap: 10px; }
  .copy-button { width: 44px; height: 44px; }
  .activation-note { font-size: 10px; margin-top: 10px; }
  .poster-footer { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-block: 16px 22px; }
  .rivet { width: 7px; height: 7px; }
  .rivet-tl, .rivet-tr { top: 12px; }
  .rivet-bl, .rivet-br { bottom: 12px; }
  .rivet-tl, .rivet-bl { left: 12px; }
  .rivet-tr, .rivet-br { right: 12px; }
  .rivet::after { width: 3px; top: 2px; }
}
@media (max-width: 360px) {
  .mascot-scene { height: clamp(150px, 24svh, 190px); }
}
@media (max-height: 640px) and (min-width: 901px) {
  .poster-header { padding-block: 17px; }
  .poster-main { padding-block: 20px; }
  .mascot-scene { height: max(280px, calc(100svh - 170px)); }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(42px, 4.5vw, 72px); }
  .tagline { font-size: 20px; margin-top: 14px; }
  .features { margin-block: 18px 22px; }
  .poster-footer { padding-block: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
