:root {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1b2521; background: #f4f3ee; color-scheme: light;
  --accent: #245d4a; --signal: #e27038; --line: #c5c9bf; --muted: #657069;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1120px, 100%); min-height: 100svh; margin: auto; padding: clamp(28px, 5.4vw, 64px); display: flex; flex-direction: column; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(12px, 4vh, 40px) 0 32px; }
.wordmark { font-size: clamp(76px, 12.5vw, 144px); line-height: 1; font-weight: 650; letter-spacing: -.075em; margin-left: -.055em; white-space: nowrap; }
.tagline { font-size: 13px; line-height: 1.65; letter-spacing: .07em; margin: 0 0 7px; color: var(--muted); }
.rule { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.rule span { display: block; width: 72px; height: 1px; background: var(--accent); }
.content { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; flex: 1; align-content: center; padding: 60px 0 64px; }
.state-label { font-size: 13px; line-height: 24px; margin: 9px 0 0; display: flex; align-items: center; align-self: start; gap: 10px; font-weight: 500; }
.signal { width: 8px; height: 8px; flex: 0 0 8px; background: var(--accent); }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.3; font-weight: 600; letter-spacing: -.05em; margin: 0; text-wrap: balance; }
h1 span { display: block; }
#message { font-size: 16px; color: var(--muted); line-height: 1.85; max-width: 29em; margin: 24px 0 0; }
.action { min-height: 60px; margin-top: 36px; }
button { font: inherit; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: space-between; gap: 56px; min-height: 52px; min-width: 188px; padding: 14px 20px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: #fff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
button:hover { background: #193e32; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { background: transparent; color: var(--accent); border-color: var(--line); cursor: wait; }
.arrow { font-size: 21px; line-height: 1; font-weight: 400; }
footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding-top: 20px; color: var(--muted); font-size: 12px; letter-spacing: .03em; }
.footer-line { width: 24px; height: 2px; background: #1b2521; }
[data-state="maintenance"] .signal, [data-state="offline"] .signal { background: var(--signal); }
[data-state="maintenance"] .rule span, [data-state="offline"] .rule span { background: var(--signal); }
[data-state="connecting"] .rule span, [data-state="retrying"] .rule span { animation: traverse 2.8s ease-in-out infinite; }
[data-state="ready"] .rule span { width: 100%; }
@keyframes traverse { 0%, 100% { transform: translateX(0); opacity: .4; } 50% { transform: translateX(110px); opacity: 1; } }
@media (max-width: 600px) {
  .shell { padding: max(28px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom)); }
  .masthead { display: block; padding: 48px 0 28px; }
  .wordmark { font-size: clamp(72px, 22vw, 100px); }
  .tagline { font-size: 12px; margin: 22px 0 0; letter-spacing: .04em; }
  .content { display: block; padding: 56px 0; }
  .state-label { margin: 0 0 25px; font-size: 12px; }
  h1 { font-size: clamp(30px, 8.8vw, 38px); }
  #message { font-size: 15px; margin-top: 22px; }
  .action { margin-top: 32px; }
  button { min-height: 54px; min-width: 186px; }
  footer { font-size: 11px; padding-top: 18px; }
}
@media (max-height: 640px) and (min-width: 601px) {
  .masthead { padding-top: 8px; }
  .content { padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

:root { --accent: #245d4a; --signal: #e27038; }
iframe { position:fixed; inset:0; width:100%; height:100dvh; border:0; background:#f4f3ee; }
