:root { color-scheme: light; background: #ffffff; color: #111111; font-family: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; padding: 40px 24px; }
.identity { margin: 0; text-align: center; animation: arrive 900ms ease both; }
.brand-code { width: min(288px, 76vw); aspect-ratio: 1; margin-inline: auto; }
.brand-code svg { display: block; width: 100%; height: auto; }
figcaption { margin-top: 28px; }
h1 { margin: 0; padding-left: .22em; font-size: clamp(16px, 4.3vw, 20px); font-weight: 500; line-height: 1.8; letter-spacing: .22em; }
noscript { max-width: 24rem; margin-top: 1rem; text-align: center; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .identity { animation: none; } }

.ar-link { display: inline-block; margin-top: 30px; color: #555; font-size: 13px; text-decoration: none; border-bottom: 1px solid #ccc; padding: 8px 0; letter-spacing: .04em; }
.ar-link:hover { color: #111; border-color: #111; }
.ar-link:focus-visible { outline: 2px solid #111; outline-offset: 6px; }

.scan-instructions{font-size:14px;line-height:1.9;color:#666;margin:28px 0 0}

[hidden] { display: none !important; }
body.camera-mode { background: #000; color: #fff; overflow: hidden; }
#camera { position: fixed; inset: 0; background: #000; }
#camera-video, #camera-output { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
#camera-output { object-fit: contain; }
.camera-message { position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 24px; right: 24px; text-align: center; }
#camera-status { padding: 12px 16px; background: #000b; border-radius: 12px; font-size: 14px; line-height: 1.7; }
#camera-retry { background: #fff; color: #111; border: 0; border-radius: 24px; padding: 12px 24px; font: inherit; cursor: pointer; }
