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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: #0a1a15;
    color: #fff;
    overflow-x: hidden;
}

/* ===== SCREENS ===== */
.screen {
    min-height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== TITLE SCREEN ===== */
.title-screen {
    background-image: url('bg-title.jpg');
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 80px;
}

.title-content {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle {
    font-size: clamp(8px, 1.5vw, 12px);
    color: #aaddcc;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 #000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #5a8a7a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    background: #5a8a7a;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(90, 138, 122, 0.5);
}

.enter-btn {
    background: linear-gradient(180deg, #e87040, #c85030);
    border: 4px solid #8b3020;
    padding: 20px 50px;
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(12px, 2vw, 18px);
    color: #fff;
    cursor: pointer;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 
        0 6px 0 #6b2515,
        0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    animation: pulse 2s infinite;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 9px 0 #6b2515,
        0 12px 30px rgba(0, 0, 0, 0.5);
}

.enter-btn:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 #6b2515,
        0 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 0 #6b2515, 0 8px 20px rgba(0,0,0,0.5), 0 0 0 rgba(232,112,64,0); }
    50% { box-shadow: 0 6px 0 #6b2515, 0 8px 20px rgba(0,0,0,0.5), 0 0 30px rgba(232,112,64,0.4); }
}

/* ===== VIDEO TOGGLE BUTTON ===== */
.video-toggle {
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #5a8a7a;
    padding: 12px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #88ffaa;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.video-toggle:hover {
    background: #5a8a7a;
    color: #fff;
    box-shadow: 0 0 20px rgba(90, 138, 122, 0.5);
}

.video-toggle.active {
    background: #ff6655;
    border-color: #cc4433;
    color: #fff;
}

.video-toggle.active:hover {
    background: #ff8877;
}

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== BACKGROUND VIDEO ===== */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bg-video.active {
    opacity: 1;
}

.screen.video-mode {
    background-image: none !important;
}

/* ===== GUARDS SCREEN ===== */
.guards-screen {
    background-image: url('bg-guards.jpg');
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

.guards-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.guards-title {
    font-size: clamp(20px, 4vw, 36px);
    color: #ffcc55;
    text-shadow: 3px 3px 0 #000, 0 0 20px rgba(255, 150, 50, 0.5);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.guards-subtitle {
    font-size: clamp(8px, 1.5vw, 12px);
    color: #aabbcc;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 40px;
}

.guard {
    position: absolute;
    bottom: 10%;
    width: 200px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s;
}

.guard:hover {
    transform: scale(1.05);
}

.guard-left {
    left: 15%;
}

.guard-right {
    right: 15%;
}

.guard-speech {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #5577aa;
    padding: 10px 15px;
    font-size: 8px;
    color: #aabbcc;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.guard:hover .guard-speech {
    opacity: 1;
}

.guard-speech.show {
    opacity: 1;
}

.guards-info {
    position: absolute;
    bottom: 5%;
    text-align: center;
}

.guards-info p {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
    text-shadow: 1px 1px 0 #000;
}

/* ===== CULT SCREEN ===== */
.cult-screen {
    background-image: url('bg-cult.jpg');
    background-position: center bottom;
}

/* ===== STARS ===== */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== FIRE AREA ===== */
.fire-area {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 10;
}

.fire-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,150,50,0.3) 0%, transparent 70%);
    animation: fireGlow 1s infinite alternate;
}

@keyframes fireGlow {
    from { transform: translateX(-50%) scale(1); opacity: 0.8; }
    to { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

.fire-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 8px;
    color: #ffaa55;
    text-shadow: 0 0 10px #ff6600;
    opacity: 0;
    transition: opacity 0.3s;
}

.fire-area:hover .fire-text {
    opacity: 1;
}

/* ===== CULTISTS ===== */
.cultist {
    position: absolute;
    bottom: 10%;
    width: 80px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
}

.cultist:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.cultist-1 { left: 5%; }
.cultist-2 { left: 18%; }
.cultist-3 { left: 32%; }
.cultist-4 { right: 32%; }
.cultist-5 { right: 18%; }
.cultist-6 { right: 5%; }

/* ===== INFO PANEL ===== */
.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 20, 15, 0.9);
    border: 4px solid #3a5a4a;
    padding: 25px;
    max-width: 320px;
    z-index: 20;
}

.info-panel h2 {
    font-size: 12px;
    color: #88ccaa;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.doctrine-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.doctrine {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(60, 100, 80, 0.3);
    border: 2px solid #3a5a4a;
    cursor: pointer;
    transition: all 0.3s;
}

.doctrine:hover {
    background: rgba(90, 140, 120, 0.4);
    border-color: #5a8a7a;
    transform: translateX(5px);
}

.doctrine-num {
    font-size: 14px;
    color: #ffaa55;
    min-width: 30px;
}

.doctrine span:last-child {
    font-size: 8px;
    color: #aaddcc;
}

.join-section {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid #3a5a4a;
}

.join-section p {
    font-size: 8px;
    color: #88aa99;
    margin-bottom: 15px;
}

.join-btn {
    background: linear-gradient(180deg, #e87040, #c85030);
    border: 3px solid #8b3020;
    padding: 12px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(232, 112, 64, 0.5);
}

/* ===== CONTRACT ===== */
.contract {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 15, 0.9);
    border: 3px solid #3a5a4a;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.contract-label {
    font-size: 10px;
    color: #88aa99;
}

.contract-address {
    font-size: 10px;
    color: #ffaa55;
    cursor: pointer;
    transition: color 0.3s;
}

.contract-address:hover {
    color: #ffcc77;
    text-shadow: 0 0 10px #ffaa55;
}

.copy-msg {
    font-size: 8px;
    color: #88ff88;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-msg.show {
    opacity: 1;
}

/* ===== MESSAGE OVERLAY ===== */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-overlay.show {
    display: flex;
}

.message-box {
    background: linear-gradient(180deg, #1a2a25, #0a1510);
    border: 5px solid #5a8a7a;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 
        0 0 0 3px #0a1510,
        0 0 50px rgba(90, 138, 122, 0.3);
}

.message-box p {
    font-size: 11px;
    color: #aaddcc;
    line-height: 2.2;
    margin-bottom: 30px;
}

.message-box button {
    background: linear-gradient(180deg, #5a8a7a, #3a6a5a);
    border: 3px solid #2a4a3a;
    padding: 12px 35px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.message-box button:hover {
    background: linear-gradient(180deg, #6a9a8a, #4a7a6a);
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .info-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    
    .doctrine-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .contract {
        bottom: auto;
        top: 20px;
    }
    
    .cultist {
        width: 50px;
        height: 80px;
    }
}
