:root {
  color-scheme: light;
  --navy: #183451;
  --yellow: #ffd443;
  --paper: #f7f7f2;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 32px 20px; background: var(--paper); color: var(--navy); font-family: var(--sans); line-height: 1.75; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #bf482e; outline-offset: 5px; }
.wrap { width: min(900px, 100%); margin: auto; }
.head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #d6dcd9; }
.badge { width: 60px; height: 60px; }
.kicker { margin: 0 0 6px; font: 10px monospace; letter-spacing: 1px; color: #5d6b76; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; }
h1 span { display: inline-block; font: 11px monospace; letter-spacing: 2px; }
.sub { font-size: 12px; color: #5d6b76; margin: 6px 0 0; }
.back { font-size: 13px; white-space: nowrap; }
.notice { padding: 18px 0; font-size: 12px; }
.notice p { margin: 0 0 6px; }
.small { font-size: 11px; color: #5d6b76; }
kbd { padding: 1px 5px; border: 1px solid #c7d1c7; border-radius: 3px; background: white; font-size: 11px; }
.stage { display: flex; justify-content: center; padding: 8px 0 26px; }
.stage-cover { width: min(460px, 100%); text-align: center; }
.stage-cover[hidden], .phone[hidden] { display: none; }
.stage-cover img { width: 100%; height: auto; display: block; border-radius: 4px; }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 24px; border: 1px solid var(--navy); border-radius: 3px; background: var(--yellow); color: var(--navy); font: 600 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffe276; }
.btn-ghost { background: transparent; }
.stage-note { font-size: 12px; color: #5d6b76; }
.phone { position: relative; width: min(450px, 92vw, 38vh); aspect-ratio: 450 / 975; background: #183451; border: 3px solid #183451; border-radius: 14px; padding: 8px 6px; }
.phone-top { display: flex; gap: 5px; height: 14px; justify-content: center; align-items: flex-start; }
.phone-top span { width: 5px; height: 5px; border-radius: 50%; background: #8196a3; }
.phone iframe { display: block; width: 100%; height: calc(100% - 14px); border: 0; border-radius: 3px; background: black; }
.foot { border-top: 1px solid #d6dcd9; padding-top: 16px; text-align: center; font-size: 12px; }
.foot p { margin: 4px 0; }
.exit { position: fixed; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); z-index: 100; display: none; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--navy); border-radius: 4px; background: var(--paper); color: var(--navy); text-decoration: none; font-size: 12px; }
@media (max-width: 760px) {
  body { padding: 20px; }
  .head { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .badge { width: 44px; height: 44px; }
  .back { grid-column: 1 / -1; }
  h1 span { display: block; margin-top: 6px; }
  .phone { width: 100%; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; padding: 0; }
  .phone-top { display: none; }
  .phone iframe { height: 100%; border-radius: 0; }
  body.running { padding: 0; background: black; }
  body.running .head, body.running .notice, body.running .foot { display: none; }
  body.running .wrap { width: 100%; min-height: 100dvh; }
  body.running .stage { padding: 0; }
  body.running .exit { display: inline-flex; }
}
