/* style.css - Shared Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-void: #050505;
    --gold-base: #c5a059;
    --gold-highlight: #f0e68c;
    --gold-shadow: #8a6d3b;
    --blood: #8b0000;
    --blood-bright: #ff3333;
    --spirit: #aaddff;
    --poison-gas: #39ff14;
    --glass-panel: rgba(10, 5, 5, 0.90);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Playfair Display', serif;
    background: url('assets/bg.webp') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

body::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, #000 100%);
    pointer-events: none;
    z-index: -1; 
}

.screen {
    position: relative;
    z-index: 10;
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    padding: 40px; 
    border-radius: 8px;
    width: 95%; 
    max-width: 1100px;
    text-align: center; 
    margin: 20px 0;
    animation: fadeIn 0.6s forwards ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h1, h2 { 
    font-family: 'Cinzel', serif; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    background: linear-gradient(to bottom, var(--gold-highlight), var(--gold-base));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

h1 { font-size: 3rem; margin: 0 0 15px 0; }
h2 { font-size: 2rem; border-bottom: 1px solid rgba(197, 160, 89, 0.2); padding-bottom: 15px; display: inline-block; margin-bottom: 15px;}
p { font-size: 1.1rem; color: #aaa; margin-bottom: 40px; font-style: italic; letter-spacing: 0.05em; }

button {
    background: linear-gradient(rgba(197, 160, 89, 0.9), rgba(138, 109, 59, 0.98)), url('assets/rock_surface.webp');
    background-size: 600%;
    background-blend-mode: multiply;
    color: rgba(231, 218, 192, 0.9);
    border: 2px solid #5e4b35;
    padding: 15px 35px; 
    margin: 10px;
    font-family: 'Cinzel', serif; 
    font-size: 0.95rem; 
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    touch-action: manipulation; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 8px rgba(0,0,0,0.5);
    text-shadow: 0 1px 0 rgb(0, 0, 0);
}
button:nth-child(1) { background-position: 0% 0%; }
button:nth-child(2) { background-position: 25% 50%; }
button:nth-child(3) { background-position: 50% 25%; }
button:nth-child(4) { background-position: 75% 75%; }
button:nth-child(5) { background-position: 10% 60%; }

button:hover { 
    filter: brightness(1.1);
    transform: translateY(-2px); 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 12px rgba(0,0,0,0.6);
    border-color: #5e4b35;
    color: rgba(197, 160, 89, 0.9);
}
button:active { transform: scale(0.98); box-shadow: inset 0 2px 5px rgba(0,0,0,0.4); }
button:active { transform: scale(0.98); box-shadow: inset 0 2px 5px rgba(0,0,0,0.4); }

.back-btn { 
    margin-top: 40px; 
    width: 100%; max-width: 300px;
    border: 1px solid #444; 
    color: #888; 
    background: rgba(0,0,0,0.4); 
    border: 2px solid #333; 
    color: #ccc; 
    background: linear-gradient(rgba(60, 60, 60, 0.9), rgba(20, 20, 20, 0.95)), url('assets/rock_surface.webp');
    background-blend-mode: multiply;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 8px rgba(0,0,0,0.5);
}
.back-btn:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.back-btn:hover { 
    color: #fff; 
    border-color: #444; 
    filter: brightness(1.2);
    background: linear-gradient(rgba(70, 70, 70, 0.9), rgba(30, 30, 30, 0.95)), url('assets/rock_surface.webp');
    background-size: cover;
    background-blend-mode: multiply;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .screen { padding: 20px; width: 100%; height: 100vh; margin: 0; border: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; overflow-y: scroll; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    button { width: 100%; margin: 5px 0; padding: 12px; }
}
