body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #f0f0f0;
    overflow: hidden;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
}

.level.active {
    display: block;
}

.hidden {
    display: none !important;
}

header {
    background: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mailbox-icon {
    font-size: 2rem;
    cursor: pointer;
}

main {
    padding: 2rem;
    text-align: center;
}

.ad-content {
    border: 1px solid #ccc;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    border: 2px solid #333;
    min-width: 300px;
}

.modal-content.error {
    border-color: red;
    color: red;
}

.modal-buttons button {
    margin: 0 10px;
    padding: 5px 15px;
    cursor: pointer;
}

/* Level 2: Verification */
.verification-container {
    padding: 2rem;
    text-align: center;
}

.number-puzzle, .word-puzzle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.draggable-item {
    width: 40px;
    height: 40px;
    background: #eee;
    border: 1px solid #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: grab;
    user-select: none;
}

.draggable-item:active {
    cursor: grabbing;
    background: #ddd;
}

#bloody-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2000;
    mix-blend-mode: multiply;
}

/* Level 3: Sketchy Ad */
.sketchy-ad {
    margin-top: 3rem;
    border: 3px dashed red;
    padding: 1rem;
    background: yellow;
    color: red;
    cursor: pointer;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Level 4: Corrupted */
#level-4 {
    background: #000;
    color: #0f0;
}

.corrupted-content {
    padding: 2rem;
    position: relative;
    height: 100%;
}

.glitch {
    font-size: 4rem;
    position: relative;
    color: white;
}

.unaligned {
    position: absolute;
    top: 30%;
    left: 60%;
    transform: rotate(15deg);
    font-size: 1.5rem;
}

.broken-btn {
    position: absolute;
    top: 50%;
    left: 20%;
    padding: 10px;
    background: #333;
    border: none;
    color: #666;
    cursor: not-allowed;
}

#l4-hidden-back-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Covers everything to trap clicks */
    cursor: default;
}

/* Level 5: Word Puzzle */
.word-puzzle .draggable-item {
    width: auto;
    padding: 0 10px;
}

/* Final Level */
#level-final {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#red-dot {
    width: 5px;
    height: 5px;
    background: red;
    border-radius: 50%;
    transition: all 0.1s linear;
}

#final-gift {
    position: absolute;
    z-index: 3000;
    text-align: center;
    color: white;
    font-size: 2rem;
}

#btn-claim {
    font-size: 1.5rem;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    background: #000;
    color: red;
    border: 2px solid red;
}

#ip-reveal {
    position: absolute;
    z-index: 3001;
    text-align: center;
}

.bloody-text {
    font-family: 'Chiller', 'Creepster', cursive; /* Fallback to cursive */
    color: #8a0303;
    font-size: 3rem;
    text-shadow: 2px 2px 4px #000;
    margin: 10px 0;
}
