:root { 
    --wood: #5d4037; 
    --fire: #ff4500; 
    --accent: #f1c40f; 
    --danger: #ff2e2e; 
    --success: #00ff88; 
    --bg: #0a0a0b;
    --panel: #16161a; 
    --border: #2d2d35;
}

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

body {
    background-color: var(--bg); 
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    width: 100vw; 
    margin: 0; 
    padding: 10px;
    overflow-x: hidden;
    touch-action: pan-y;
    background: radial-gradient(circle at center, #1a1a20 0%, #050505 100%);
}

/* Start Screen */
#start-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    z-index: 5000; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

.game-title { color: var(--fire); font-size: 3em; margin: 0; letter-spacing: -2px; }
.game-subtitle { color: #666; margin-bottom: 35px; font-weight: 600; }

#btn-start-game {
    padding: 18px 45px; font-size: 1.2em; font-weight: 900;
    background: var(--success); color: #000; border: none; border-radius: 40px;
    cursor: pointer; box-shadow: 0 0 25px rgba(0, 255, 136, 0.4); text-transform: uppercase;
}

/* Modal */
#modal-instructions {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 6000; display: none;
    flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}

.modal-content { 
    background: var(--panel); border: 1px solid var(--border); padding: 25px; 
    border-radius: 20px; max-width: 380px; overflow-y: auto; max-height: 85vh;
}

.modal-content h2 { color: var(--accent); text-align: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.modal-content h3 { color: var(--fire); font-size: 1em; margin: 15px 0 5px; text-transform: uppercase; border-left: 3px solid var(--fire); padding-left: 8px; }
.modal-content p, .modal-content li { font-size: 0.85em; color: #a0a0a8; line-height: 1.5; margin-bottom: 8px; }

.btn-primary-action { width:100%; padding:15px; background:var(--success); border:none; border-radius:12px; font-weight:900; margin-top:20px; cursor:pointer; }
.btn-reset { margin-top:20px; background:none; border:none; color:#444; font-size:10px; width:100%; cursor: pointer; }

/* Dashboard */
#header-container { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 400px; flex-shrink: 0; margin-bottom: 5px; }
#dashboard { display: flex; gap: 10px; flex: 1; }
.stat-box { flex: 1; background: var(--panel); padding: 8px; border-radius: 12px; text-align: center; border: 1px solid var(--border); }
.stat-label { font-size: 0.6em; color: #666; text-transform: uppercase; font-weight: 800; }
.stat-value { font-size: 0.9em; font-weight: 900; }
#cash { color: var(--success); }
#reputation { color: var(--accent); }
#btn-help { width: 40px; height: 40px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Order Card */
#card-order { 
    background: var(--panel); border-radius: 16px; width: 100%; max-width: 400px; 
    margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden; position: relative; 
}
#warmup-banner { background: var(--accent); color: #000; padding: 5px; font-weight: 900; font-size: 0.7em; text-align: center; text-transform: uppercase; }
.order-content { padding: 12px; text-align: center; }
#pizza-name { color: var(--accent); margin-bottom: 2px; margin-top: 0; }
.patience-container { width: 90%; height: 4px; background: #000; border-radius: 2px; margin: 5px auto 10px; overflow: hidden; }
#patience-bar { width: 100%; height: 100%; background: var(--success); box-shadow: 0 0 10px var(--success); }
#pizza-value-tag { font-size: 0.85em; color: var(--success); font-weight: 900; margin-top: 2px; visibility: hidden; }
#order-info { font-size: 0.8em; margin: 8px 0; visibility: hidden; color: #888; font-weight: 700; }
#target-t, #target-s { color: #fff; }

/* Oven */
#oven-container {
    position: relative; width: 280px; height: 280px;
    background: #050505; border: 14px solid #1c1c22; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-bottom: 15px; 
    box-shadow: 0 0 0 4px #121215, inset 0 0 80px #000;
}

.thermal-aura { position: absolute; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; z-index: 10; mix-blend-mode: screen; filter: blur(25px); opacity: 0; transition: opacity 0.5s ease; }
.heat-point { position: absolute; width: 70px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 200; cursor: pointer; }
#v0 { top: -5px; left: -5px; } #v1 { top: -5px; right: -5px; } #v2 { bottom: -5px; left: -5px; } #v3 { bottom: -5px; right: -5px; }

.log-visual { width: 34px; height: 13px; background: var(--wood); border-radius: 2px; position: relative; box-shadow: 0 3px 0 #2b1d19; }
.log-visual::after { content: ''; position: absolute; width: 100%; height: 100%; background: inherit; border-radius: inherit; transform: rotate(20deg); }
.temp-v { font-size: 10px; font-weight: 900; margin-top: 18px; color: #fff; text-shadow: 0 2px 4px #000; }
.heat-point.lit .log-visual { background: #ff4500; box-shadow: 0 0 20px #ff4500, 0 0 5px #fff; }

#temp-center { position: absolute; z-index: 150; font-size: 32px; font-weight: 900; color: #fff; text-shadow: 0 0 20px #000; pointer-events: none; }
#pizza-visual { width: 140px; height: 140px; border-radius: 50%; display: none; background: #f5deb3; border: 6px solid #cd853f; position: absolute; z-index: 140; box-shadow: 0 10px 30px #000; }

/* Feedback Message */
#msg-feedback { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1000; width: auto; min-width: 220px; padding: 15px 20px;
    text-align: center; font-weight: 900; font-size: 1.4em; text-transform: uppercase;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    border: 2px solid currentColor; border-radius: 15px;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    pointer-events: none; display: none; letter-spacing: 1px;
}

/* Controls */
.controls { display: flex; gap: 12px; margin-bottom: 15px; flex-shrink: 0; }
.btn-inventory { width: 90px; height: 75px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.btn-inventory span { font-size: 8px; margin-top: 8px; color: #666; font-weight: 900; text-transform: uppercase; }
.btn-inventory.selected { border-color: var(--fire); background: #1c1c24; box-shadow: 0 0 15px rgba(255, 69, 0, 0.2); }

.icon-wood { background: var(--wood); border-radius: 2px; }
.wood-s { width: 18px; height: 7px; } 
.wood-m { width: 32px; height: 11px; } 
.wood-l { width: 48px; height: 15px; background: #4e342e; }

#btn-action { width: 100%; max-width: 400px; height: 60px; font-size: 1.1em; font-weight: 900; background: var(--success); color: #001a0d; border: none; border-radius: 18px; cursor: pointer; box-shadow: 0 6px 0 #146638; flex-shrink: 0; z-index: 500; text-transform: uppercase; }
#btn-action.disabled { background: #2d2d35; color: #555; cursor: not-allowed; box-shadow: 0 4px 0 #1a1a20; }
#btn-action.working { background: var(--fire); color: white; box-shadow: 0 6px 0 #992a00; }

/* AdSense Container */
#ads-container {
    width: 100%;
    max-width: 400px;
    margin: 20px 0 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- NOVO: CROSS PROMO DESIGN (FISHLANE) --- */
.cross-promo-section {
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    text-align: center;
}

.promo-label {
    font-size: 0.7em;
    color: #666;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.fishlane-promo-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #16161a 0%, #1c1c24 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fishlane-promo-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.promo-badge-retro {
    background: #3498db;
    color: white;
    font-size: 8px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.fishlane-promo-card h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.1em;
    font-weight: 900;
}

.fishlane-promo-card p {
    font-size: 0.85em;
    color: #888;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.promo-cta {
    color: #3498db;
    font-size: 0.8em;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 2px solid #3498db;
    padding-bottom: 2px;
}

/* SEO Content - Desktop Only */
.desktop-only { display: none; }

@media (min-width: 1024px) {
    .desktop-only { 
        display: block; 
        max-width: 800px; 
        margin: 40px auto; 
        padding: 30px; 
        background: #111115; 
        border: 1px solid #2d2d35; 
        border-radius: 20px; 
        line-height: 1.6;
        color: #ccc;
    }
    .desktop-only h2 { color: var(--fire); border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; }
    .desktop-only h3 { color: var(--accent); margin-top: 30px; }
    .desktop-only p { margin-bottom: 15px; }
    .desktop-only ul { margin-left: 20px; }
    .desktop-only li { margin-bottom: 10px; color: #bbb; }
    .desktop-only strong { color: white; }
    
    body { height: auto; overflow-y: auto; }
}

.hidden { display: none !important; }

@keyframes blink { 50% { opacity: 0; } }