@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0f19;
    color: #f1f5f9;
    -webkit-tap-highlight-color: transparent;
}

button, select, input, label, textarea {
    touch-action: manipulation;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.grid-bg {
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.custom-scrollbar {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

#camera-video {
    border-radius: 0.75rem;
    object-fit: cover;
    width: 100%;
    height: 240px;
}

.scan-laser {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4, 0 0 15px #06b6d4;
    animation: scanAnim 2s infinite ease-in-out;
}

@keyframes scanAnim {
    0% { top: 20%; opacity: 0.3; }
    50% { top: 80%; opacity: 1; }
    100% { top: 20%; opacity: 0.3; }
}

.scan-success-flash {
    animation: scanSuccessFlash 0.6s ease-out;
}

@keyframes scanSuccessFlash {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.9), inset 0 0 36px rgba(16, 185, 129, 0.7); border-color: #34d399; }
    100% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), inset 0 0 0 rgba(16, 185, 129, 0); }
}

@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

.pt-safe {
    padding-top: max(0.75rem, env(safe-area-inset-top));
}

.pb-safe {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.tap-target {
    min-height: 44px;
}

.modal-scroll-panel {
    max-height: 92vh;
    max-height: 92dvh;
}

@media print {
    body {
        background: #ffffff !important;
        color: #111827 !important;
    }
    .no-print {
        display: none !important;
    }
}
