:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --background: #0c0e10;
  --surface: #15181b;
  --subtle: #1c2024;
  --line: #2a2f33;
  --text: #edf0f1;
  --muted: #94a6b5;
  --gold: #efc66d;
  --green: #22dfa5;
  --danger: #ef988e;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); }
body { margin: 0; min-width: 280px; color: var(--text); background: radial-gradient(ellipse 670px 320px at 50% -80px, #3c321e80, transparent); font-size: 14px; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
p, h1, h2 { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { width: min(540px, calc(100% - 32px)); margin: 26px auto 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.brand { display: inline-flex; align-items: center; gap: 15px; color: inherit; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid #715b2b; border-radius: 20px; background: linear-gradient(150deg, #272317, #070a0b 55%); box-shadow: 0 0 25px #d9a73315; flex-shrink: 0; }
.brand-icon img { width: 60px; height: 60px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-size: 29px; font-weight: 750; letter-spacing: .12em; line-height: 1.4; }
.brand-name > span { color: var(--gold); }
.brand-caption { color: var(--muted); font-size: 13px; }
.introduction { margin: 15px 0 17px; color: var(--muted); line-height: 1.8; }
.status-panel, .card { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.status-panel { padding: 16px; margin-bottom: 15px; border-color: #245342; min-height: 84px; }
.status-panel[data-state="unavailable"] { border-color: #694334; }
#check-status { font-weight: 600; min-height: 23px; }
#check-status strong { color: var(--gold); }
.progress { height: 4px; margin: 18px 0 11px; background: #22272b; border-radius: 8px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--green); border-radius: inherit; transition: width 80ms linear; }
.check-actions { display: flex; gap: 8px; }
.check-actions:has(button:not([hidden])) { margin-top: 9px; }
.progress:not([hidden]) + .check-actions { margin-top: 0; }
.card { padding: 16px; margin-bottom: 15px; }
h2 { margin-bottom: 12px; font-size: 18px; letter-spacing: .025em; font-weight: 700; }
.section-description { margin: -4px 0 12px; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 3px 12px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: default; opacity: .55; }
.button-outline { border-color: var(--line); background: transparent; color: var(--text); }
.button-outline:hover:not(:disabled) { background: #262c30; border-color: #52605f; }
.button-enter { color: #05271e; background: var(--green); min-height: 35px; padding-inline: 16px; font-size: 14px; }
.button-enter:hover { background: #54edbc; }
.button-install { background: var(--gold); color: #261c07; padding-inline: 15px; }
.button-install:hover { background: #ffdb92; }
.route-list { margin: 0; padding: 0; list-style: none; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.route:first-child { border-top: 0; padding-top: 5px; }
.route-copy { display: grid; gap: 2px; min-width: 0; }
.route-copy strong { font-size: 14px; }
.route-domain { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.route-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.route-status[data-state="available"] { color: var(--green); }
.route-status[data-state="unavailable"] { color: var(--danger); }
.route-copy-button { padding-inline: 10px; min-height: 29px; }
.route-link { grid-column: 4; }
.route-note { margin-top: 3px; font-size: 12px; color: var(--muted); }
.subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subscription-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 118px; padding: 13px; background: var(--subtle); border: 1px solid #30363a; border-radius: 14px; color: var(--text); text-align: left; line-height: 1.6; }
.subscription-card:first-child { background: #29261d; border-color: #8d743c; }
.subscription-card:disabled { opacity: 1; cursor: default; }
.subscription-card:not(:disabled) { cursor: pointer; }
.subscription-card:not(:disabled):hover { border-color: var(--gold); background: #2a2b25; }
.subscription-icon { width: 25px; height: 25px; margin-bottom: 7px; color: var(--gold); }
.subscription-card strong { font-size: 15px; }
.subscription-description { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.install-guide { display: grid; gap: 8px; margin: 13px 0; border-radius: 8px; }
.install-guide p { padding: 8px 11px; border-radius: 9px; background: var(--subtle); color: var(--muted); font-size: 13px; }
.install-guide strong { color: var(--text); padding-right: 5px; }
.install-guide.highlight { outline: 1px solid var(--gold); outline-offset: 4px; }
.published-address { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.published-address a { color: var(--gold); text-underline-offset: 3px; }
.published-address .button { margin-left: auto; }
.faq h2 { margin-bottom: 1px; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { position: relative; padding: 13px 23px 13px 0; list-style: none; font-weight: 650; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 3px; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 13px; font-size: 13px; }
footer { margin-top: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 10; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); overflow-wrap: anywhere; padding: 10px 17px; border: 1px solid #3a5146; border-radius: 12px; background: #1e2b25; box-shadow: 0 8px 35px #0008; color: var(--text); font-size: 13px; }
@media (max-width: 420px) {
  .page { width: calc(100% - 24px); margin-top: 18px; }
  .card, .status-panel { padding: 13px; }
  .brand { gap: 12px; }
  .brand-icon { width: 62px; height: 62px; border-radius: 17px; }
  .brand-icon img { width: 53px; height: 53px; }
  .brand-name { font-size: 25px; }
  .brand-caption { font-size: 12px; }
  .route { gap: 6px; }
  .button-enter { padding-inline: 12px; }
  .route-copy-button { padding-inline: 8px; }
  .subscription-card { padding: 11px; }
}
@media (max-width: 340px) {
  .route { grid-template-columns: minmax(0, 1fr) auto auto; }
  .route-status { grid-column: 1; grid-row: 2; }
  .route-copy-button { grid-column: 2; grid-row: 1 / 3; }
  .route-link { grid-column: 3; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
