/* GX ARANHA SIMULATOR v4 — CSS */
:root {
    --color-primary: #ff3333; --color-primary-light: #ff6666; --color-primary-dark: #cc0000;
    --color-primary-glow: rgba(255,51,51,0.5);
    --bg-gradient-start: #0a0a0a; --bg-gradient-end: #1a0000;
    --bg-card: rgba(0,0,0,0.6); --text-primary: #ffffff; --text-secondary: #ff6666;
    --text-muted: #999; --color-gold: #ffd700; --color-border: #ff3333; --color-shadow: #ff333333;
    --tile-light: #424242; --tile-dark: #3A3A3A;
    --border-radius: 8px; --border-radius-large: 12px;
    --transition-fast: 0.2s ease; --transition-normal: 0.3s ease;
}
* { margin:0; padding:0; box-sizing:border-box; user-select:none; }
*::-webkit-scrollbar { width:4px; } *::-webkit-scrollbar-track { background:transparent; } *::-webkit-scrollbar-thumb { background:#fff2; border-radius:2px; }
html,body { width:100%; height:100%; overflow:hidden; }
body { font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif; background:linear-gradient(135deg,var(--bg-gradient-start),var(--bg-gradient-end)); color:var(--color-primary); line-height:1.5; }
.container { position:relative; display:flex; flex-direction:column; height:100vh; width:100vw; border-top:1px solid var(--color-primary); background:linear-gradient(135deg,var(--bg-gradient-end),var(--bg-gradient-start)); }

.screen { display:none; flex-direction:column; height:100%; width:100%; position:absolute; inset:0; overflow-y:auto; }
.screen.active { display:flex; }

/* LOGOS OFICIAIS */
.lobby-logo { width:64px; height:64px; object-fit:contain; filter:drop-shadow(0 0 14px rgba(255,51,51,0.5)); margin-bottom:8px; }
.room-lobby-logo { width:44px; height:44px; object-fit:contain; filter:drop-shadow(0 0 10px rgba(255,51,51,0.4)); flex-shrink:0; }
.hud-logo-mini { width:22px; height:22px; object-fit:contain; filter:drop-shadow(0 0 6px rgba(255,51,51,0.4)); flex-shrink:0; }
.hud-brand-box { gap:8px !important; }

/* LOBBY / TELA INICIAL */
.lobby-center { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px; gap:20px; }
.lobby-brand { text-align:center; display:flex; flex-direction:column; align-items:center; }
.lobby-brand h1 { font-size:32px; color:var(--text-primary); font-weight:700; letter-spacing:1px; } .brand-gx { color:var(--color-primary); }
.lobby-sub { font-size:13px; color:var(--text-muted); margin-top:2px; }
.lobby-card { width:100%; max-width:400px; background:var(--bg-card); border:1px solid var(--color-border); border-radius:var(--border-radius-large); padding:24px; display:flex; flex-direction:column; gap:14px; box-shadow:0 0 20px var(--color-shadow); backdrop-filter:blur(8px); }
.lobby-field { display:flex; flex-direction:column; gap:6px; } .lobby-field label { font-size:11px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.lobby-field input,.lobby-join-row input { background:#0a0a0a; border:1px solid rgba(255,255,255,.15); border-radius:6px; padding:10px 14px; color:#fff; font-size:14px; outline:none; transition:var(--transition-fast); }
.lobby-field input:focus,.lobby-join-row input:focus { border-color:var(--color-primary); box-shadow:0 0 8px var(--color-primary-glow); }
.lobby-divider { text-align:center; color:var(--text-muted); font-size:11px; position:relative; margin:2px 0; }
.lobby-divider::before,.lobby-divider::after { content:''; position:absolute; top:50%; width:30%; height:1px; background:rgba(255,255,255,.1); }
.lobby-divider::before { left:0; } .lobby-divider::after { right:0; }
.lobby-join-row { display:flex; gap:8px; } .lobby-join-row input { flex:1; }

.lobby-audio-toggle { display:flex; align-items:center; justify-content:center; gap:8px; padding:8px; border-radius:6px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1); color:#aaa; font-size:12px; cursor:pointer; transition:var(--transition-fast); margin-top:2px; }
.lobby-audio-toggle:hover { background:rgba(255,255,255,0.08); color:#fff; border-color:var(--color-primary); }

.btn-primary { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px; border:none; border-radius:var(--border-radius); background:linear-gradient(15deg,#f00,#f33,#c44,#f09f33,#c44,#f33,#f00) no-repeat; background-size:300%; background-position:left center; color:#fff; font-size:14px; font-weight:700; cursor:pointer; box-shadow:0 10px 20px -5px rgba(255,51,51,0.4); transition:all .3s ease; }
.btn-primary:hover { background-position:right center; transform:translateY(-1px); } .btn-primary svg { width:20px; height:20px; }
.btn-secondary { padding:10px 16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); border-radius:var(--border-radius); color:#fff; font-size:13px; font-weight:600; cursor:pointer; transition:var(--transition-fast); }
.btn-secondary:hover { background:rgba(255,255,255,.12); border-color:var(--color-primary); }
.clickable { cursor:pointer; transition:transform var(--transition-fast); } .clickable:hover { transform:translateY(-2px); }

/* ============================================
   TELA LOOB / SALA DE ESPERA (ROOM LOBBY)
   ============================================ */
.room-lobby-container { width:100%; max-width:880px; margin:0 auto; padding:20px; display:flex; flex-direction:column; gap:16px; min-height:100%; justify-content:space-between; }
.room-lobby-header { display:flex; justify-content:space-between; align-items:center; background:var(--bg-card); border:1px solid rgba(255,255,255,0.1); border-radius:var(--border-radius-large); padding:12px 20px; box-shadow:0 4px 15px rgba(0,0,0,0.4); backdrop-filter:blur(8px); }
.room-lobby-brand { display:flex; align-items:center; gap:14px; }
.room-lobby-brand h2 { font-size:18px; color:#fff; font-weight:700; letter-spacing:1px; margin:0; }
.room-lobby-sub { font-size:11px; color:var(--text-muted); margin:0; }
.btn-sound-toggle { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.2); border-radius:50%; width:40px; height:40px; display:flex; align-items:center; justify-content:center; color:#fff; cursor:pointer; transition:var(--transition-fast); }
.btn-sound-toggle:hover { background:rgba(255,255,255,0.15); border-color:var(--color-primary); transform:scale(1.05); }

/* CÓDIGO DA SALA EM DESTAQUE GIGANTE */
.room-code-banner { background:rgba(255,255,255,0.03); border:none; border-radius:var(--border-radius-large); padding:16px 24px; display:flex; justify-content:space-between; align-items:center; box-shadow:0 4px 15px rgba(0,0,0,0.3); flex-wrap:wrap; gap:12px; transition:all 0.3s ease; }
.room-code-info { display:flex; flex-direction:column; gap:2px; }
.room-code-label { font-size:11px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1.5px; font-weight:700; }
.room-code-val { font-size:32px; font-family:'Segoe UI',monospace,sans-serif; font-weight:900; color:#fff; letter-spacing:4px; text-shadow:none; }
.btn-copy-code { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.06); border:none; border-radius:8px; padding:10px 18px; color:#fff; font-size:13px; font-weight:700; cursor:pointer; transition:all var(--transition-fast); }
.btn-copy-code:hover { background:rgba(255,255,255,0.12); transform:scale(1.02); }
.btn-copy-code.copied { background:#22c55e; color:#fff; }

/* CARD EXPLICATIVO: SIMULAÇÃO ACELERADA */
.room-simulation-info-card { background:rgba(255,255,255,0.03); border:none; border-radius:var(--border-radius-large); padding:16px 20px; display:flex; flex-direction:column; gap:10px; box-shadow:0 4px 15px rgba(0,0,0,0.3); backdrop-filter:blur(8px); }
.sim-info-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.sim-info-badge { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; color:var(--theme-accent, #ff3333); letter-spacing:1px; text-transform:uppercase; background:rgba(255,255,255,0.04); padding:4px 10px; border-radius:8px; border:none; }
.sim-info-badge svg { color:inherit; }
.sim-info-time { font-size:11px; font-weight:800; color:#ffd700; background:rgba(255,215,0,0.08); padding:4px 10px; border-radius:8px; border:none; letter-spacing:0.5px; display:inline-flex; align-items:center; }
.sim-info-desc { font-size:13px; color:#cbd5e1; line-height:1.6; margin:0; }
.sim-info-desc strong { color:#fff; font-weight:700; }
.sim-info-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
.sim-tag { font-size:11.5px; color:#cbd5e1; background:rgba(0,0,0,0.3); padding:4px 10px; border-radius:6px; border:none; display:flex; align-items:center; gap:6px; font-weight:700; }
.sim-tag svg { color:var(--theme-accent, #ff3333); }

.room-lobby-body { display:flex; flex-direction:column; gap:16px; }
.room-lobby-section { background:rgba(255,255,255,0.03); border:none; border-radius:var(--border-radius-large); padding:16px; box-shadow:0 4px 15px rgba(0,0,0,0.3); backdrop-filter:blur(8px); }
.room-section-title { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; font-weight:700; margin-bottom:14px; }
.room-section-title svg { color:var(--color-primary); }
.host-badge-notice { margin-left:auto; font-size:10px; padding:2px 8px; border-radius:10px; background:rgba(255,255,255,0.06); border:none; color:#fff; }

/* SELETOR DAS 3 SKINS COM ATRIBUTOS */
.skins-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.skin-card { background:rgba(255,255,255,0.02); border:1.5px solid rgba(255,255,255,0.06); border-radius:12px; padding:12px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; cursor:pointer; position:relative; transition:all 0.25s ease; overflow:hidden; }
.skin-card:hover { transform:translateY(-3px); border-color:rgba(255,255,255,0.18); background:rgba(255,255,255,0.05); }
.skin-card.active { transform:translateY(-2px); border-color:var(--color-primary); background:rgba(255,255,255,0.05); }
.skin-card.disabled { cursor:default; }
.skin-card.disabled:hover { transform:none; }

.skin-card-badge { position:absolute; top:8px; right:8px; font-size:9px; font-weight:800; padding:2px 7px; border-radius:6px; letter-spacing:0.5px; background:rgba(255,255,255,0.08); color:#aaa; border:none; }
.skin-card.active .skin-card-badge { background:#22c55e; color:#fff; border:none; }

.skin-card-preview { width:100%; height:155px; display:flex; align-items:center; justify-content:center; margin:2px 0; }
.skin-card-preview img { max-width:100%; max-height:100%; object-fit:contain; filter:none !important; transition:transform 0.3s ease; }
.skin-card:hover .skin-card-preview img { transform:scale(1.04); }

.skin-card-info h3 { font-size:12px; font-weight:700; color:#fff; margin-bottom:2px; line-height:1.2; }
.skin-card-info p { font-size:10px; color:var(--text-muted); line-height:1.25; margin-bottom:3px; }

/* BARRAS DE ATRIBUTOS GAMIFICADAS */
.skin-attributes-grid { width:100%; display:flex; flex-direction:column; gap:5px; background:rgba(0,0,0,0.25); padding:8px 10px; border-radius:8px; border:none; margin-top:2px; }
.skin-attr-row { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11px; }
.skin-attr-label { width:48px; text-align:left; color:#cbd5e1; font-weight:800; font-size:11px; letter-spacing:0.5px; display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.skin-attr-label svg { color:inherit; flex-shrink:0; opacity:0.9; }
.skin-attr-bar { flex:1; height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; position:relative; }
.skin-attr-fill { height:100%; border-radius:3px; transition:width 0.5s ease; }
.skin-attr-fill.fill-speed { background:linear-gradient(90deg,#0284c7,#38bdf8); }
.skin-attr-fill.fill-eco { background:linear-gradient(90deg,#16a34a,#22c55e); }
.skin-attr-fill.fill-setup { background:linear-gradient(90deg,#d97706,#f59e0b); }
.skin-attr-fill.fill-durab { background:linear-gradient(90deg,#db2777,#ec4899); }
.skin-attr-val { width:28px; text-align:right; font-weight:800; color:#fff; font-size:11px; font-family:'Segoe UI',monospace,sans-serif; }

/* JOGADORES NA SALA */
.room-players-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; }
.room-player-item { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,0.03); border:none; border-radius:10px; padding:10px 14px; }
.room-player-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; color:#000; }
.room-player-info { flex:1; display:flex; flex-direction:column; gap:1px; }
.room-player-name { font-size:13px; font-weight:700; color:#fff; }
.room-player-role { font-size:10px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:0.5px; }
.room-player-badge { font-size:10px; padding:2px 6px; border-radius:6px; background:rgba(34,197,94,0.15); color:#22c55e; font-weight:700; }

/* AÇÕES DO LOBBY */
.room-lobby-footer { margin-top:4px; }
.room-action-area { width:100%; }
.btn-start-game { width:100%; padding:16px; font-size:16px; letter-spacing:1px; transition:all 0.3s ease; border:none; border-radius:var(--border-radius); font-weight:800; }
.guest-waiting-box { display:flex; align-items:center; justify-content:center; gap:12px; background:rgba(0,0,0,0.4); border:none; border-radius:var(--border-radius); padding:16px; color:#aaa; font-size:14px; font-weight:600; }
.waiting-pulse { width:10px; height:10px; border-radius:50%; background:var(--color-primary); animation:pulse 1.2s infinite; }

/* =================================================== */
/* TEMAS DINÂMICOS DA TELA DE LOOB / SALA DE ESPERA (CLEAN / SEM NEON) */
/* =================================================== */
#screenRoomLobby { transition:background 0.4s ease; }

/* 1. TEMA CV-AUTO (Vermelho Sóbrio) */
#screenRoomLobby.theme-cv-auto { background:#0a0202; }
#screenRoomLobby.theme-cv-auto .sim-info-badge { color:#ff4d4d; }
#screenRoomLobby.theme-cv-auto .skin-card[data-skin="cv-auto"].active { border-color:#ff3333; background:rgba(255,51,51,0.06); }
#screenRoomLobby.theme-cv-auto .btn-start-game { background:linear-gradient(135deg,#ff3333,#b91c1c); }
#screenRoomLobby.theme-cv-auto .room-section-title svg { color:#ff3333; }
#screenRoomLobby.theme-cv-auto .waiting-pulse { background:#ff3333; }

/* 2. TEMA CORTADEIRA (Ciano Sóbrio) */
#screenRoomLobby.theme-cortadeira { background:#01090e; }
#screenRoomLobby.theme-cortadeira .sim-info-badge { color:#06b6d4; }
#screenRoomLobby.theme-cortadeira .skin-card[data-skin="cortadeira"].active { border-color:#06b6d4; background:rgba(6,182,212,0.06); }
#screenRoomLobby.theme-cortadeira .btn-start-game { background:linear-gradient(135deg,#06b6d4,#0284c7); }
#screenRoomLobby.theme-cortadeira .room-section-title svg { color:#06b6d4; }
#screenRoomLobby.theme-cortadeira .waiting-pulse { background:#06b6d4; }

/* 3. TEMA DOBRADEIRA (Âmbar Sóbrio) */
#screenRoomLobby.theme-dobradeira { background:#0c0801; }
#screenRoomLobby.theme-dobradeira .sim-info-badge { color:#f59e0b; }
#screenRoomLobby.theme-dobradeira .skin-card[data-skin="dobradeira"].active { border-color:#f59e0b; background:rgba(245,158,11,0.06); }
#screenRoomLobby.theme-dobradeira .btn-start-game { background:linear-gradient(135deg,#f59e0b,#d97706); }
#screenRoomLobby.theme-dobradeira .room-section-title svg { color:#f59e0b; }
#screenRoomLobby.theme-dobradeira .waiting-pulse { background:#f59e0b; }

/* CANVAS DE CONFETES FLUTUANTE */
.confetti-canvas-overlay { position:fixed; top:0; left:0; width:100vw; height:100vh; pointer-events:none; z-index:99999; }

/* TEMAS CUSTOMIZADOS DO MAPA */
.map-container.theme-cv-auto { border-color:#ff3333; background:radial-gradient(ellipse at center,rgba(255,51,51,0.09) 0%,var(--bg-gradient-start) 90%); }
.map-container.theme-cortadeira { border-color:#06b6d4; background:radial-gradient(ellipse at center,rgba(6,182,212,0.09) 0%,var(--bg-gradient-start) 90%); }
.map-container.theme-cortadeira .factory-floor .tile.light { background-color:#38454d; }
.map-container.theme-cortadeira .factory-floor .tile.dark { background-color:#2c373d; }
.map-container.theme-dobradeira { border-color:#f59e0b; background:radial-gradient(ellipse at center,rgba(245,158,11,0.09) 0%,var(--bg-gradient-start) 90%); }
.map-container.theme-dobradeira .factory-floor .tile.light { background-color:#484136; }
.map-container.theme-dobradeira .factory-floor .tile.dark { background-color:#3a342b; }

/* HUD TOP */
.hud-top { padding:8px 12px; display:flex; justify-content:space-between; align-items:center; z-index:100; flex-wrap:wrap; gap:4px; }
.hud-section { display:flex; align-items:center; gap:4px; }
.stat-box { background:var(--bg-card); border:1px solid var(--color-border); border-radius:var(--border-radius); padding:5px 10px; display:flex; align-items:center; gap:6px; box-shadow:0 0 15px var(--color-shadow); }
.stat-box .stat-icon { width:20px; height:20px; flex-shrink:0; opacity:.85; }
.stat-box .stat-icon svg { width:100%; height:100%; }
.stat-box .stat-content { display:flex; flex-direction:column; gap:1px; }
.stat-label { font-size:9px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; }
.stat-value { font-size:13px; font-weight:bold; color:var(--text-primary); }
.coins-box { border-color:var(--color-gold); box-shadow:0 0 10px rgba(255,215,0,.2); }
.coins-box .stat-icon { opacity:1; width:22px; height:22px; }
.coins-value { color:var(--color-gold) !important; }
.notif-count { font-size:12px; color:var(--color-primary); font-weight:bold; }

.timeline-bar-container { padding:0 12px; }
.efficiency-bar { width:100%; height:6px; background:#000c; border-radius:3px; overflow:hidden; margin:4px 0; border:1px solid var(--color-border); }
.efficiency-fill { height:100%; background:linear-gradient(90deg,var(--color-primary),var(--color-primary-light)); transition:width var(--transition-normal); }

/* ALERTAS DO TOPO DO MAPA */
.energy-alert, .salary-alert, .strike-alert { margin: 4px 12px; padding: 8px 14px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; }
.energy-alert { background: rgba(245,158,11,0.2); border: 1px solid #f59e0b; color: #fef08a; }
.salary-alert { background: rgba(234,88,12,0.2); border: 1px solid #ea580c; color: #ffedd5; }
.strike-alert { background: rgba(239,68,68,0.25); border: 1px solid #ef4444; color: #fee2e2; }

.btn-pay-energy, .btn-pay-salary { background: #22c55e; color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: 11px; font-weight: 800; cursor: pointer; transition: transform 0.2s ease; }
.btn-pay-energy:hover, .btn-pay-salary:hover { transform: scale(1.05); }

/* VISÃO DE CONVIDADO / TÉCNICO (SEM DADOS FINANCEIROS) */
.is-guest .coins-box { display: none !important; }
.is-guest #btnOpenShop { display: none !important; }
.is-guest #hudEnergyBox { display: none !important; }
.is-guest #detailEnergyRow { display: none !important; }
.is-guest #assistCostWrap { display: none !important; }
.is-guest #energyAlert { display: none !important; }
.is-guest #salaryAlert { display: none !important; }

/* MAPA — MAIOR */
.map-container { flex:1; position:relative; overflow:hidden; background:radial-gradient(ellipse at center,rgba(238,17,17,.07) 0%,var(--bg-gradient-start) 90%); border:1px solid var(--color-primary); border-radius:16px; border-top-right-radius:0; margin:4px 12px; }

/* CHÃO ISOMÉTRICO — MAIOR */
.factory-floor { position:absolute; width:750px; height:750px; top:50%; left:50%; transform:translate(-50%,-50%) rotateX(60deg) rotateZ(-45deg); transform-style:preserve-3d; display:grid; grid-template-columns:repeat(12,1fr); grid-template-rows:repeat(12,1fr); gap:1px; opacity:.4; pointer-events:none; }
.factory-floor .tile { border:0.5px solid rgba(0,0,0,.15); } .factory-floor .tile.light { background-color:var(--tile-light); } .factory-floor .tile.dark { background-color:var(--tile-dark); }

/* MÁQUINA — MAIOR */
.machine-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; z-index:10; }
.machine-center:hover .machine-sprite { transform:scale(1.03); }
.machine-sprite { width:360px; height:auto; max-height:280px; object-fit:contain; filter:drop-shadow(5px 5px 12px #0006); transition:filter .5s ease,transform .2s ease; pointer-events:none; }
.machine-sprite.state-feia { filter:drop-shadow(5px 5px 12px #0006) sepia(.2) contrast(1.1); }
.machine-sprite.state-acabada { filter:drop-shadow(5px 5px 12px #0006) sepia(.5) hue-rotate(-20deg) contrast(1.25); animation:criticalShake 1.5s infinite; }
@keyframes criticalShake { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-1.5px,1px)} 50%{transform:translate(1.5px,-1px)} 75%{transform:translate(-1px,-1px)} }

.machine-health-bar { display:flex; align-items:center; gap:6px; background:rgba(0,0,0,.7); padding:4px 12px; border-radius:20px; border:1px solid rgba(255,255,255,.2); }
.machine-health-bar .efficiency-bar { width:90px; margin:0; height:5px; border-color:rgba(255,255,255,.3); }
.health-pct { font-size:12px; color:#fff; font-weight:700; }

/* Badge de produto */
.product-badge { display:flex; align-items:center; gap:6px; background:rgba(139,92,246,.25); border:1px solid rgba(139,92,246,.5); padding:3px 10px; border-radius:20px; font-size:10px; color:#fff; font-weight:600; letter-spacing:.5px; }
.product-progress-mini { width:50px; height:4px; background:#0005; border-radius:2px; overflow:hidden; }
.product-progress-fill { height:100%; background:#8b5cf6; transition:width .3s ease; }
.queue-count { background:#7c3aed; border-radius:10px; padding:1px 5px; font-size:9px; font-weight:700; }

.machine-status-live { display:flex; align-items:center; gap:6px; background:rgba(0,0,0,.7); padding:4px 12px; border-radius:20px; border:1px solid var(--color-border); font-size:11px; font-weight:700; color:var(--text-primary); letter-spacing:.5px; }
.machine-status-indicator { width:12px; height:12px; border-radius:50%; border:2px solid #fff; position:relative; }
.machine-status-indicator[data-status="online"] { background:#28a745; box-shadow:0 0 8px #28a745; color:#28a745; }
.machine-status-indicator[data-status="setup"] { background:#f59e0b; box-shadow:0 0 8px #f59e0b; color:#f59e0b; }
.machine-status-indicator[data-status="warning"] { background:#fd1414; box-shadow:0 0 8px #fd1414; color:#fd1414; }
.machine-status-indicator[data-status="offline"] { background:#000; color:#666; }
.machine-status-indicator[data-status="maintenance"] { background:#8b5cf6; box-shadow:0 0 8px #8b5cf6; color:#8b5cf6; }
.machine-status-indicator[data-status="desligado"] { background:#444; border-color:#666; box-shadow:none; color:#666; }
.machine-status-indicator::after { content:''; position:absolute; width:100%; height:100%; border-radius:50%; border:2px solid currentColor; animation:pulse 1.5s infinite; opacity:0; top:50%; left:50%; transform:translate(-50%,-50%); }
@keyframes pulse { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0} 50%{transform:translate(-50%,-50%) scale(2.2);opacity:.7} }

/* BALÕES — FLUTUAÇÃO SUAVE MELHORADA */
.machine-alert-container { display:flex; gap:6px; justify-content:center; align-items:center; z-index:35; }
.machine-alert-bubble { background:#fff; padding:6px; border-radius:12px; display:flex; align-items:center; justify-content:center; min-width:36px; height:36px; box-shadow:0 4px 12px #0000004d; border:2px solid var(--alert-color,#ff4444); animation:alertFloat 3s infinite ease-in-out; position:relative; cursor:pointer; transition:transform .2s ease; }
.machine-alert-bubble:nth-child(2) { animation-delay:.6s; }
.machine-alert-bubble:nth-child(3) { animation-delay:1.2s; }
.machine-alert-bubble:hover { transform:scale(1.15) translateY(-3px); }
.machine-alert-bubble.vermelho { --alert-color:#ef4444; } .machine-alert-bubble.amarelo { --alert-color:#f59e0b; }
.machine-alert-bubble.azul { --alert-color:#3b82f6; } .machine-alert-bubble.verde { --alert-color:#51f63b; }
.machine-alert-bubble svg { width:20px; height:20px; }
.machine-alert-bubble::after { content:''; position:absolute; bottom:-7px; left:50%; transform:translateX(-50%); border-left:6px solid transparent; border-right:6px solid transparent; border-top:7px solid var(--alert-color,#ff4444); }
@keyframes alertFloat { 0%,100%{transform:translateY(0) scale(1)} 30%{transform:translateY(-10px) scale(1.04)} 60%{transform:translateY(-4px) scale(1.01)} }

/* HUD INFERIOR */
.hud-bottom { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); background:#0009; border:1px solid var(--color-border); border-radius:10px; padding:4px 6px; display:flex; justify-content:center; align-items:center; box-shadow:0 -4px 20px var(--color-shadow); z-index:100; flex-wrap:wrap; gap:3px; width:max-content; max-width:97vw; }
.global-stat { display:flex; align-items:center; gap:3px; padding:3px; }
.global-stat-icon { width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.global-stat-value { font-size:16px; font-weight:bold; color:var(--text-primary); line-height:1.1; }
.global-stat-label { font-size:9px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.5px; }

/* MODAL LATERAL */
.modal-overlay { position:fixed; inset:0; background:#0007; z-index:999998; opacity:0; pointer-events:none; transition:opacity var(--transition-normal); }
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal-panel { position:fixed; top:0; left:-500px; width:500px; max-width:98vw; height:100vh; background:linear-gradient(135deg,var(--bg-gradient-end),var(--bg-gradient-start)); border-right:2px solid var(--color-border); z-index:999999; overflow-y:auto; transition:left var(--transition-normal); }
.modal-panel.active { left:0; }
.modal-header { background:var(--color-shadow); padding:16px; border-bottom:2px solid var(--color-border); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:999999; backdrop-filter:blur(10px); }
.modal-title { font-size:18px; font-weight:bold; color:var(--text-primary); }
.modal-close { width:40px; height:40px; cursor:pointer; display:flex; align-items:center; justify-content:center; } .modal-close:hover { opacity:.7; }
.modal-content { padding:6px; }
.modal-section { margin-bottom:8px; background:var(--bg-card); border:1px solid var(--color-border); border-radius:var(--border-radius-large); padding:10px; }
.modal-section-title { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; padding-bottom:6px; border-bottom:1px solid var(--color-border); }
.modal-section-title svg { flex-shrink:0; } .modal-section-title p { font-size:13px; margin:0; }
.modal-stat-row { display:flex; justify-content:space-between; align-items:center; margin:8px 0; padding:6px 0; }
.modal-stat-label { color:var(--text-secondary); font-size:12px; } .modal-stat-value { color:var(--text-primary); font-weight:bold; font-size:14px; }
.modal-progress-bar { width:100%; height:18px; background:#000c; border-radius:10px; overflow:hidden; margin:6px 0; border:1px solid var(--color-border); }
.modal-progress-fill { height:100%; background:linear-gradient(90deg,var(--color-primary),var(--color-primary-light)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:10px; font-weight:bold; transition:width var(--transition-normal); }

.mac-metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.mac-metric-card { background:#fff1; border:1px solid #ffffff12; border-radius:14px; padding:10px; display:flex; flex-direction:column; gap:4px; box-shadow:inset 0 1px 1px rgba(255,255,255,.05),0 6px 16px rgba(0,0,0,.3); }
.mac-metric-highlight { border:1px solid rgba(255,255,255,.15); }
.mac-metric-header { display:flex; align-items:center; gap:6px; }
.mac-dot { width:8px; height:8px; border-radius:50%; box-shadow:0 0 8px currentColor; }
.mac-metric-label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--text-secondary); }
.mac-metric-value { font-size:18px; font-weight:700; color:var(--text-primary); }
.mac-chart-container { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:8px; margin-top:4px; }
.carta-wall { display:flex; align-items:end; overflow:hidden; position:relative; }
.carta-wall::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,#000,transparent,transparent); pointer-events:none; z-index:1; }

/* SLIDE TO UNLOCK */
.assistance-helper-text { font-size:11px; color:rgba(255,255,255,.5); text-align:center; margin-top:8px; margin-bottom:-4px; letter-spacing:.3px; display:flex; align-items:center; justify-content:center; gap:5px; font-weight:500; }
.slide-unlock-container { width:100%; height:44px; background:#1a1a1a; border-radius:22px; position:relative; overflow:hidden; margin:12px 0 5px; box-shadow:inset 0 2px 5px rgba(0,0,0,.5),0 1px 1px rgba(255,255,255,.05); border:1px solid #333; }
.slide-unlock-bg { position:absolute; top:0; left:0; width:0%; height:100%; background:linear-gradient(90deg,#d9534f,#c9302c); border-radius:22px 0 0 22px; transition:width .1s; pointer-events:none; }
.slide-unlock-text { position:absolute; width:100%; height:100%; display:flex; justify-content:center; align-items:center; color:#fff5; font-weight:bold; font-size:13px; text-transform:uppercase; letter-spacing:1px; pointer-events:none; z-index:2; }
.slide-unlock-thumb { position:absolute; top:2px; left:2px; width:38px; height:38px; background:#fff; box-shadow:0 1px 3px #0008; border-radius:50%; cursor:grab; z-index:3; display:flex; justify-content:center; align-items:center; transition:left .1s ease-out; }
.slide-unlock-thumb:active { cursor:grabbing; background:#f0f0f0; }
.slide-unlock-container.success .slide-unlock-bg { background:#5cb85c; transition:all .3s; }

/* NOTIFICAÇÕES */
.notif-dropdown { position:absolute; top:50px; right:12px; width:300px; max-height:350px; background:#0d0d0d; border:1px solid var(--color-border); border-radius:var(--border-radius-large); box-shadow:0 10px 30px rgba(0,0,0,.9); z-index:110; display:none; flex-direction:column; overflow:hidden; }
.notif-dropdown.active { display:flex; }
.notif-feed { padding:4px; overflow-y:auto; display:flex; flex-direction:column; gap:3px; max-height:300px; }
.notif-item { font-size:11px; padding:5px 7px; background:rgba(255,255,255,.04); border-radius:4px; color:var(--text-muted); border-left:3px solid var(--color-primary); }
.notif-item.success { border-left-color:#22c55e; } .notif-item.danger { border-left-color:#ef4444; }
.notif-item.warning { border-left-color:#f59e0b; } .notif-item strong { color:var(--text-primary); }

/* MODAL EVENTO — alert-modal .aranha */
.alert-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; justify-content:center; align-items:center; z-index:9999; }
.alert-modal-overlay.active { display:flex; animation:fadeIn .01s ease-out forwards; }
@keyframes fadeIn { to { opacity:1; } }
.alert-modal { background:linear-gradient(145deg,#1a1a1a,#2a2a2a); border-radius:20px; border:8px solid var(--modal-border-color,#ef4444); width:90%; max-width:480px; padding:0; position:relative; overflow:hidden; animation:modalSlideIn .2s cubic-bezier(0.34,1.56,0.64,1) forwards; transform:scale(0.5) translateY(-50px); }
@keyframes modalSlideIn { to { transform:scale(1) translateY(0); } }
.alert-modal-header { background:linear-gradient(135deg,var(--modal-border-color,#ef4444),var(--modal-border-dark,#dc2626)); padding:20px 24px; display:flex; align-items:center; gap:12px; border-bottom:3px solid #ffffff1a; }
.alert-modal-icon { line-height:1; display:flex; align-items:center; }
.alert-modal-icon svg { width:36px; height:36px; filter:drop-shadow(2px 2px 4px #0000004d); }
.alert-modal-title { flex:1; color:#fff; font-size:20px; font-weight:700; margin:0; text-shadow:2px 2px 4px #00000080; }
.alert-modal-close { width:36px; height:36px; background:#ffffff1a; border:2px solid #ffffff4d; border-radius:50%; color:#fff; font-size:22px; font-weight:bold; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .3s ease; line-height:1; }
.alert-modal-close:hover { background:#fff3; transform:rotate(90deg) scale(1.1); }
.alert-modal-body { padding:20px; color:#e0e0e0; font-size:14px; line-height:1.6; }
.alert-modal-footer { padding:14px 20px; display:flex; justify-content:flex-end; gap:8px; border-top:1px solid #ffffff1a; }
.alert-modal-button { padding:10px 24px; background:var(--modal-border-color,#ef4444); color:#fff; font-size:14px; font-weight:600; border:none; border-radius:10px; cursor:pointer; transition:all .3s ease; box-shadow:0 4px 15px #0000004d; }
.alert-modal-button:hover { transform:translateY(-2px); box-shadow:0 6px 20px #0006; }
.alert-modal[data-cat="info"] { --modal-border-color:#3b82f6; --modal-border-dark:#2563eb; }
.alert-modal[data-cat="warning"] { --modal-border-color:#f59e0b; --modal-border-dark:#d97706; }
.alert-modal[data-cat="danger"] { --modal-border-color:#ef4444; --modal-border-dark:#dc2626; }
.alert-modal[data-cat="success"] { --modal-border-color:#22c55e; --modal-border-dark:#16a34a; }

/* BOTÕES DE ESCOLHA — COLORIDOS */
.event-choices { display:flex; flex-direction:column; gap:6px; }

/* Showcase da máquina — centralizado */
.event-machine-showcase {
    display:flex; flex-direction:column; align-items:center; gap:10px;
    margin-bottom:18px; padding:16px 0 8px;margin-top: -15px;
}
.event-machine-gif {
    width:180px; height:auto;
}
@keyframes machineFloat {
    0%,100% { transform:translateY(0); }
    50% { transform:translateY(-6px); }
}
.event-machine-name {
    font-size:16px; font-weight:800; color:#fff; text-transform:uppercase;
    letter-spacing:1.2px; text-align:center; text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.event-health-bar-wrap {
    display:flex; align-items:center; gap:10px; width:80%; max-width:280px;
}
.event-health-bar-track {
    flex:1; height:10px; background:rgba(255,255,255,.1); border-radius:6px;
    overflow:hidden; border:1px solid rgba(255,255,255,.15);
    box-shadow:inset 0 1px 3px rgba(0,0,0,.3);
}
.event-health-bar-fill {
    height:100%; border-radius:6px; transition:width .5s ease, background .5s ease;
    background:linear-gradient(90deg,#22c55e,#4ade80);
    box-shadow:0 0 8px rgba(34,197,94,.4);
}
.event-health-pct {
    font-size:13px; font-weight:700; color:#fff; min-width:36px; text-align:right;
}


.event-choice-btn { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:10px; font-size:13px; font-weight:600; border:none; background:rgba(255,255,255,.06); color:var(--text-primary); cursor:pointer; transition:all .25s ease; }
.event-choice-btn:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.3); }

/* Ícone colorido fixo — verde/azul/laranja */
.choice-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.choice-icon.green { background:rgba(34,197,94,.2); border:1px solid rgba(34,197,94,.4); }
.choice-icon.green svg { stroke:#22c55e; }
.choice-icon.blue { background:rgba(59,130,246,.2); border:1px solid rgba(59,130,246,.4); }
.choice-icon.blue svg { stroke:#3b82f6; }
.choice-icon.orange { background:rgba(249,115,22,.2); border:1px solid rgba(249,115,22,.4); }
.choice-icon.orange svg { stroke:#f97316; }

.event-choice-btn:hover .choice-icon.green { background:rgba(34,197,94,.35); }
.event-choice-btn:hover .choice-icon.blue { background:rgba(59,130,246,.35); }
.event-choice-btn:hover .choice-icon.orange { background:rgba(249,115,22,.35); }

.choice-label { flex:1; }
.choice-cost { font-size:11px; color:var(--color-gold); font-weight:700; white-space:nowrap; }

/* LOJA */
.shop-balance { text-align:center; font-size:14px; color:var(--text-muted); margin-bottom:12px; }
.shop-balance strong { color:var(--color-gold); font-size:20px; }
.shop-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.shop-card { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:8px; cursor:pointer; transition:all .25s ease; }
.shop-card:hover { border-color:var(--color-gold); background:rgba(255,255,255,.1); transform:translateY(-2px); }
.shop-card-name { font-size:14px; font-weight:700; color:var(--text-primary); }
.shop-card-desc { font-size:11px; color:var(--text-muted); }
.shop-card-row { display:flex; justify-content:space-between; align-items:center; }
.shop-card-price { font-size:16px; font-weight:700; color:var(--color-gold); }
.shop-card-reward { font-size:11px; color:#22c55e; }
.shop-card-bar { width:100%; height:4px; background:#fff1; border-radius:2px; overflow:hidden; }
.shop-card-bar-fill { height:100%; border-radius:2px; }

/* Game Over */
.gameover-modal[data-result="fim1"] { --modal-border-color:#22c55e; --modal-border-dark:#16a34a; }
.gameover-modal[data-result="fim2"] { --modal-border-color:#3b82f6; --modal-border-dark:#2563eb; }
.gameover-modal[data-result="fim3"] { --modal-border-color:#ef4444; --modal-border-dark:#dc2626; }

/* JOGADORES */
.player-row { display:flex; justify-content:space-between; align-items:center; padding:6px; border-bottom:1px solid rgba(255,255,255,.06); }
.player-row:last-child { border-bottom:none; }
.player-info { display:flex; align-items:center; gap:8px; }
.player-avatar-sm { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--color-primary),#f90); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; }
.player-name-sm { font-size:12px; color:var(--text-primary); font-weight:600; }
.player-role-sm { font-size:10px; color:var(--text-muted); }
.player-score-sm { font-size:13px; color:var(--color-gold); font-weight:700; }

/* ALERTA DE ENERGIA */
.energy-alert { display:flex; align-items:center; gap:8px; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.4); border-radius:8px; padding:6px 14px; margin:0 12px; font-size:12px; color:#f59e0b; }
.energy-alert.critical { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.4); color:#ef4444; }
.btn-pay-energy { margin-left:auto; padding:4px 12px; border:none; border-radius:6px; background:#f59e0b; color:#000; font-size:11px; font-weight:700; cursor:pointer; transition:all .2s; }
.btn-pay-energy:hover { background:#fbbf24; transform:scale(1.05); }
.energy-alert.critical .btn-pay-energy { background:#ef4444; color:#fff; }
.energy-alert.critical .btn-pay-energy:hover { background:#f87171; }

/* FILA NA LOJA */
.shop-queue-info { text-align:center; font-size:12px; color:#8b5cf6; margin-bottom:8px; padding:6px; background:rgba(139,92,246,.1); border-radius:8px; border:1px solid rgba(139,92,246,.2); }

/* MOEDAS NEGATIVAS */
.coins-value.negative { color:#ef4444 !important; animation:debtPulse 1.5s infinite; }
@keyframes debtPulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* DIAS RESTANTES */
.days-remaining-box { border-color:#8b5cf6; box-shadow:0 0 10px rgba(139,92,246,.2); }
.days-remaining { color:#c4b5fd !important; font-variant-numeric:tabular-nums; }
.days-remaining.urgent { color:#ef4444 !important; animation:debtPulse 1.5s infinite; }

/* TOASTS */
.toast-container { position:fixed; top:130px; right:12px; z-index:10000; display:flex; flex-direction:column; gap:8px; max-width:340px; pointer-events:none; }
.toast { background:linear-gradient(135deg, rgba(18,18,25,.96), rgba(28,28,40,.94)); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:10px 16px 10px 14px; display:flex; align-items:flex-start; gap:10px; font-size:12.5px; color:#eee; line-height:1.5; animation:toastIn .4s cubic-bezier(.16,1,.3,1) forwards; pointer-events:auto; backdrop-filter:blur(16px); box-shadow:0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); position:relative; overflow:hidden; }
.toast::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:14px 0 0 14px; }
.toast.success { border-color:rgba(34,197,94,.3); }
.toast.success::before { background:linear-gradient(180deg,#22c55e,#16a34a); }
.toast.warning { border-color:rgba(245,158,11,.3); }
.toast.warning::before { background:linear-gradient(180deg,#f59e0b,#d97706); }
.toast.danger { border-color:rgba(239,68,68,.3); }
.toast.danger::before { background:linear-gradient(180deg,#ef4444,#dc2626); }
.toast.info { border-color:rgba(59,130,246,.3); }
.toast.info::before { background:linear-gradient(180deg,#3b82f6,#2563eb); }
.toast.success { box-shadow:0 8px 32px rgba(34,197,94,.15), 0 0 0 1px rgba(34,197,94,.1); }
.toast.warning { box-shadow:0 8px 32px rgba(245,158,11,.15), 0 0 0 1px rgba(245,158,11,.1); }
.toast.danger { box-shadow:0 8px 32px rgba(239,68,68,.15), 0 0 0 1px rgba(239,68,68,.1); }
.toast.info { box-shadow:0 8px 32px rgba(59,130,246,.15), 0 0 0 1px rgba(59,130,246,.1); }
.toast-source { font-weight:700; color:#fff; white-space:nowrap; font-size:11px; text-transform:uppercase; letter-spacing:.5px; padding:2px 8px; border-radius:6px; background:rgba(255,255,255,.08); }
.toast.success .toast-source { color:#4ade80; background:rgba(34,197,94,.12); }
.toast.warning .toast-source { color:#fbbf24; background:rgba(245,158,11,.12); }
.toast.danger .toast-source { color:#f87171; background:rgba(239,68,68,.12); }
.toast.info .toast-source { color:#60a5fa; background:rgba(59,130,246,.12); }
.toast-msg { flex:1; color:#d1d5db; }
.toast.out { animation:toastOut .35s cubic-bezier(.7,0,.84,0) forwards; }
@keyframes toastIn { 0%{opacity:0;transform:translateX(60px) scale(.9)} 100%{opacity:1;transform:translateX(0) scale(1)} }
@keyframes toastOut { 0%{opacity:1;transform:translateX(0) scale(1)} 100%{opacity:0;transform:translateX(60px) scale(.85)} }

/* GRÁFICO GAME OVER */
.go-chart-title { font-size:11px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; margin-bottom:6px; margin-top:16px; }
.go-chart-container { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:12px; position:relative; }

/* TABELA DE PRODUTOS GAME OVER */
.go-products-table { margin-top:16px; text-align:left; }
.go-products-title { font-size:11px; color:var(--text-secondary); text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; text-align:center; }
.go-prod-card { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:12px; margin-bottom:8px; }
.go-prod-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.go-prod-name { font-size:16px; font-weight:700; color:#fff; }
.go-prod-delivered { font-size:13px; padding:3px 10px; border-radius:10px; font-weight:600; }
.go-prod-delivered.yes { background:rgba(34,197,94,.15); color:#22c55e; }
.go-prod-delivered.no { background:rgba(239,68,68,.15); color:#ef4444; }
.go-prod-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.go-prod-stat { text-align:center; }
.go-prod-stat-label { font-size:11px; color:var(--text-muted); text-transform:uppercase; font-weight:600; }
.go-prod-stat-value { font-size:15px; font-weight:700; color:#fff; }
.go-prod-chart { margin-top:8px; background:rgba(0,0,0,.2); border-radius:6px; padding:6px; }

/* BALANÇO FINANCEIRO POR PRODUTO */
.go-prod-finance { margin-top:10px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:8px; padding:10px; }
.go-prod-finance-title { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.8px; margin-bottom:8px; text-align:center; font-weight:600; }
.go-prod-finance-grid { display:flex; flex-direction:column; gap:4px; }
.go-prod-finance-item { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.go-prod-finance-item:last-child { border-bottom:none; }
.go-prod-finance-label { font-size:13px; color:#bbb; display:flex; align-items:center; gap:5px; }
.go-prod-finance-label svg { flex-shrink:0; }
.go-prod-finance-value { font-size:14px; font-weight:700; font-family:'Courier New',monospace; }
.go-prod-finance-total { margin-top:6px; padding-top:8px; border-top:1px solid rgba(255,255,255,.15); border-bottom:none; }
.go-prod-finance-total .go-prod-finance-label { color:#fff; font-weight:600; font-size:14px; }
.go-prod-finance-saldo { background:rgba(255,255,255,.04); margin:0 -10px; padding:5px 10px; border-radius:4px; }

/* HISTÓRICO DE EVENTOS POR PRODUTO */
.go-prod-events-section { margin-top:10px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:8px; padding:10px; }
.go-prod-events-title { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.8px; margin-bottom:6px; text-align:center; font-weight:600; }
.go-prod-events-list { display:flex; flex-direction:column; gap:4px; max-height:150px; overflow-y:auto; }
.go-prod-event { font-size:13px; color:#ccc; padding:5px 8px; background:rgba(255,255,255,.04); border-radius:5px; line-height:1.5; display:flex; align-items:center; gap:6px; }
.go-prod-event svg { flex-shrink:0; }

@media (max-width:768px) {
    .hud-top { padding:6px; } .stat-box { padding:3px 6px; } .stat-value { font-size:11px; }
    .map-container { margin:4px 6px; border-radius:0; border-top:1px solid var(--color-primary); }
    .machine-sprite { width:240px; }
    .modal-panel { width:100%; left:-100%; }
    .hud-bottom { bottom:0; border-radius:0; width:100%; max-width:100%; border-left:0; border-right:0; }
    .factory-floor { width:500px; height:500px; }
    .alert-modal { width:95%; max-width:none; border-width:6px; }
    .shop-grid { grid-template-columns:1fr; }
    .toast-container { max-width:90%; right:5%; }
    .go-prod-stats { grid-template-columns:repeat(2,1fr); }
}
