:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: #111; background: #fff; font-size: 18px; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.app { width: 100%; max-width: 560px; min-height: 100vh; min-height: 100svh; margin: auto; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 20px 0; }
header { padding: 4px 0 18px; }
h1 { font-size: 1.65rem; line-height: 1.3; margin: 0 0 8px; font-weight: 800; }
header p { margin: 0; font-size: 1.1rem; }
main { flex: 1; min-width: 0; }
.camera { position: relative; height: clamp(260px, 43svh, 460px); background: #20252c; border-radius: 16px; overflow: hidden; }
video { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide { position: absolute; width: 90%; height: 44%; top: 28%; left: 5%; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 999px #0006; pointer-events: none; }
.guide p { position: absolute; bottom: 8px; margin: 0; width: 100%; text-align: center; color: white; background: #111d; border-radius: 5px; padding: 5px 0; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.camera-message { position: absolute; inset: 0; display: grid; place-content: center; background: #20252c; color: white; text-align: center; padding: 20px; margin: 0; font-size: 1.25rem; }
.hint { color: #454545; font-size: 1rem; line-height: 1.6; margin: 14px 0; }
#status { font-size: 1.4rem; font-weight: 700; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
#status:empty { display: none; }
h2 { font-size: 1.3rem; margin: 6px 0 12px; }
#results { list-style: none; padding: 0; margin: 0; }
#results li { padding: 20px 0 24px; border-bottom: 2px solid #ddd; }
.reading { display: block; font-size: 3.34rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.original { display: block; font-size: 1.9rem; line-height: 1.5; margin-top: 8px; overflow-wrap: anywhere; }
.unknown { font-size: 1.6rem; }
footer { position: sticky; bottom: 0; background: white; padding: 14px 0 max(12px, env(safe-area-inset-bottom)); margin-top: 8px; }
button { width: 100%; min-height: 80px; padding: 16px 12px; border: 0; border-radius: 14px; color: white; background: #074ca8; font: inherit; font-size: 1.65rem; font-weight: 800; cursor: pointer; touch-action: manipulation; }
button:active:not(:disabled) { background: #003474; }
button:disabled { background: #d9dfe7; color: #4a515b; cursor: wait; }
:focus-visible { outline: 4px solid #bf5800; outline-offset: 4px; }
.privacy { font-size: 1rem; text-align: center; margin: 12px 0 6px; }
.offline { text-align: center; color: #454545; font-size: .9rem; line-height: 1.5; margin: 0; }
@media (max-width: 360px) { .app { padding-left: 14px; padding-right: 14px; } .guide p { font-size: 1rem; } }
