:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: #173c2c; background: #f6f8f2; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
iframe { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; background: #f6f8f2; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #e9b949; outline-offset: 3px; }
.loading { position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f6f8f2; pointer-events: none; }
.loading p { font-size: 1rem; }
.spinner { width: 1.8rem; height: 1.8rem; border: 3px solid #dce6d9; border-top-color: #20533d; border-radius: 50%; animation: spin 1s linear infinite; }
.help-toggle { position: fixed; z-index: 2; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d2ddcc; background: #fffffff2; color: #20533d; font-size: 1.5rem; box-shadow: 0 2px 10px #173c2c18; }
.help { position: fixed; z-index: 3; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 24px)); background: #fff; padding: 22px; border: 1px solid #d2ddcc; border-radius: 16px; box-shadow: 0 8px 40px #173c2c22; }
.help h1 { font-size: 1.2rem; margin: 0 0 12px; }
.help p { font-size: 1rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.actions button { background: #20533d; color: white; padding: 10px 16px; border: 0; border-radius: 8px; }
.actions a, .no-script a { color: #20533d; }
.text-button { margin-top: 18px; padding: 4px 0; background: transparent; color: #526257; border: 0; }
dialog { padding: 48px 24px 20px; border: 0; border-radius: 16px; width: min(420px, calc(100vw - 32px)); text-align: center; color: #173c2c; }
dialog::backdrop { background: #000b; }
dialog img { display: block; max-width: 100%; max-height: 65dvh; margin: auto; }
dialog p { margin-bottom: 0; font-size: 1rem; }
.close-qr { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 1.75rem; color: #526257; }
.no-script { position: fixed; z-index: 4; top: 0; left: 0; right: 0; padding: 20px; margin: 0; background: white; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
