@font-face {
    font-family: 'KaiShanFont';
    src: url('../UI/LXGWWenKaiMonoTC-Regular.ttf') format('truetype');
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #000000;
    margin: 0;
    overflow: hidden;
    touch-action: manipulation;
    height: 100dvh;
    width: 100vw;
}

#root {
    height: 100%;
    width: 100%;
}

.bg-pattern {
    background-color: #4a4a4a;
    background-image: radial-gradient(#666 1px, transparent 0);
    background-size: 40px 40px;
    position: relative;
}

.bg-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/gold-scale.png');
    opacity: 0.1;
    pointer-events: none;
}

.main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
    text-align: center;
}

.btn-red {
    background-color: #d32f2f;
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    user-select: none;
}

.btn-red:active {
    transform: scale(0.95);
    background-color: #b71c1c;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ar-float-content {
    animation: floatIn 0.8s ease-out forwards;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px cyan;
    animation: scan 2s linear infinite;
}

.clickable {
    pointer-events: auto !important;
}

/* Hide MindAR default UI */
.mindar-ui-loading,
.mindar-ui-scanning {
    display: none !important;
}

/* Fix MindAR video scaling (Tailwind conflict) */
.mindar-container video {
    max-width: none !important;
    height: auto !important;
}

/* 神明貼紙效果 */
.god-sticker {
    filter: drop-shadow(0 0 2px white) drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}