/* ============================================================================
   ORIENTATION LOCK — Portrait-only on phones

   Shows a "rotate to portrait" overlay when a phone-sized touch device
   is held in landscape. Uses max-height: 600px + pointer: coarse to
   target phones only (tablets and desktops unaffected).
   ============================================================================ */

.orientation-lock-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--washi-warm, #F0EDE8);
    color: var(--sumi-primary, #2C2C2C);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    text-align: center;
    padding: 24px;
}

/* Phone icon that rotates */
.orientation-lock-icon {
    width: 48px;
    height: 72px;
    border: 3px solid var(--sumi-primary, #2C2C2C);
    border-radius: 8px;
    position: relative;
    animation: orientation-nudge 2s ease-in-out infinite;
}

/* Screen area inside phone */
.orientation-lock-icon::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 3px;
    background: var(--color-primary, #3D5A80);
    opacity: 0.15;
}

/* Home indicator */
.orientation-lock-icon::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--sumi-primary, #2C2C2C);
    opacity: 0.3;
}

.orientation-lock-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 260px;
    opacity: 0.8;
}

.orientation-lock-hint {
    font-size: 13px;
    opacity: 0.45;
    font-family: 'Klee One', serif;
}

@keyframes orientation-nudge {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-90deg); }
    50% { transform: rotate(-90deg); }
    75% { transform: rotate(0deg); }
}

/* Show overlay only on phone-sized touch devices in landscape */
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
    .orientation-lock-overlay {
        display: flex;
    }
}
