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

body {
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    overflow: hidden;
}

.app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.face-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 70.9vh; /* 512/722 aspect ratio */
    transition: opacity 2s ease;
}

.start-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #333;
    border-radius: 12px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #333;
}

.start-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.start-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.start-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.jumpscare {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
}

.jumpscare.active {
    display: flex;
}

.jumpscare img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.face-tracker {
    position: relative;
    width: 100%;
    height: 70.9vh; /* 512px of total 722px */
    background: transparent;
    overflow: hidden;
}

.face-image {
    /* width: 100%; */
    height: 100%;
    object-fit: contain;
    transition: opacity 0.1s ease-out;
}

.bottom-image {
    width: 100%;
    height: 29.1vh; /* 210px of total 722px */
    display: block;
    object-fit: cover;
}

.face-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.face-tracker-error {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.face-tracker-error small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}
