* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background: #eb1c24ff;
    overflow: hidden;
    cursor: auto;
    touch-action: none; /* Prevent touch scrolling */
    position: fixed; /* Prevent page scrolling */
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch; /* Safari touch scrolling */
    -webkit-user-select: none; /* Prevent text selection */
    -webkit-touch-callout: none; /* Prevent callout menu */
    user-select: none; /* Prevent text selection */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: clamp(10px, 3vw, 20px);
}

.left-character {
    flex: 0 0 auto;
    width: clamp(100px, 20vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-character {
    position: relative;
    flex: 1;
    max-width: clamp(300px, 50vw, 600px);
    height: auto;
    min-height: clamp(250px, 60vh, 300px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    overflow: visible;
}

.right-character {
    flex: 0 0 auto;
    width: clamp(80px, 25vw, 200px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(10px, 2vw, 20px);
}

.svg-character {
    width: clamp(200px, 60vw, 300px);
    height: clamp(200px, 60vw, 300px);
    pointer-events: none;
}

.hippu-text-svg {
    width: 100%;
    height: auto;
    max-width: clamp(200px, 80vw, 400px);
    max-height: clamp(40px, 15vw, 100px);
    margin-bottom: clamp(20px, 5vw, 40px);
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.oili-text {
    font-family: 'Spartan', sans-serif;
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0;
    margin-top: clamp(100px, 6vw, 50px);
    letter-spacing: clamp(1.5em, 1.5vw, 1.2em);
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.heppu-character {
    width: 100%;
    height: auto;
    max-width: clamp(60px, 12vw, 75px);
    max-height: clamp(70px, 15vh, 100px);
    pointer-events: auto;
    cursor: pointer;
}

.heppu-character:hover,
.heppu-character:active {
    filter: brightness(0) invert(1);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
}

.popup-content {
    background-color: white;
    padding: clamp(15px, 4vw, 30px);
    border-radius: 0;
    max-width: clamp(280px, 90vw, 500px);
    width: 90vw;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
}

.popup-title {
    font-family: 'Spartan', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #eb1c24ff;
    margin: 0 0 20px 0;
}

.popup-text {
    font-family: 'Spartan', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.popup-text a {
    color: #eb1c24ff;
    text-decoration: none;
    font-weight: 600;
}

.popup-text a:hover {
    text-decoration: underline;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #eb1c24ff;
}

/* Mobile Portrait Optimizations */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .container {
        gap: 8px;
    }
    
    .left-character {
        width: clamp(60px, 15vw, 120px);
    }
    
    .right-character {
        width: clamp(70px, 20vw, 150px);
    }
    
    .center-character {
        max-width: clamp(250px, 60vw, 400px);
        padding: 0 5px;
    }
    
    .oili-text {
        font-size: clamp(1.1rem, 2.8vw, 2.2rem);
        letter-spacing: clamp(0.8em, 1.4vw, 1.4em);
        margin-top: clamp(60px, 4vw, 40px);
    }
    
    .heppu-character {
        max-width: clamp(50px, 10vw, 70px);
        max-height: clamp(60px, 12vh, 80px);
    }
    
    .popup {
        padding: 20px 10px;
        align-items: center;
        justify-content: center;
    }
    
    .popup-content {
        width: 95vw;
        max-width: 95vw;
        padding: 20px 15px;
        margin: 0 auto;
        position: relative;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .popup-title {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        margin-bottom: 15px;
    }
    
    .popup-text {
        font-size: clamp(0.8rem, 2.2vw, 1rem);
        line-height: 1.4;
    }
    
    .popup-close {
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
        top: 5px;
        right: 10px;
    }
}

/* Copyright Notice */
.copyright {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}

.copyright p {
    font-family: 'Spartan', sans-serif;
    font-size: clamp(0.4rem, 0.9vw, 0.6rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: right;
    user-select: none;
    -webkit-user-select: none;
}