* { margin: 0; padding: 0; box-sizing: border-box; } body { overflow: hidden; background: #0a0a12; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #eee; cursor: default; } .hidden { display: none !important; } /* === Custom Scrollbar === */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; } ::-webkit-scrollbar-thumb { background: rgba(240,160,64,0.3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(240,160,64,0.5); } /* === Canvas === */ #game-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; } /* === Crosshair === */ #crosshair { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; z-index: 5; pointer-events: none; } #crosshair::before, #crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,0.7); border-radius: 1px; } #crosshair::before { top: 50%; left: -3px; right: -3px; height: 2px; transform: translateY(-50%); } #crosshair::after { left: 50%; top: -3px; bottom: -3px; width: 2px; transform: translateX(-50%); } /* === Screen Effects === */ #screen-effects { position: fixed; inset: 0; z-index: 2; pointer-events: none; } #effect-damage { position: absolute; inset: 0; border: 0px solid rgba(255, 0, 0, 0); transition: border 0.15s; } #effect-damage.active { border: 12px solid rgba(200, 0, 0, 0.5); animation: damagePulse 0.4s ease-out; } @keyframes damagePulse { 0% { border-width: 20px; border-color: rgba(255,0,0,0.7); } 100% { border-width: 0px; border-color: rgba(255,0,0,0); } } #effect-cold { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(100,150,255,0) 100%); transition: background 1s; } #effect-cold.active { background: radial-gradient(ellipse at center, transparent 30%, rgba(100,150,255,0.3) 100%); } #effect-hunger { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0) 100%); transition: background 1s; } #effect-hunger.active { background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%); } #effect-sleep { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.8s; } #effect-sleep.active { background: rgba(0,0,0,0.85); } #effect-disease { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 60%, rgba(0,80,0,0) 100%); transition: background 1s; } #effect-disease.active { background: radial-gradient(ellipse at center, transparent 20%, rgba(0,80,0,0.25) 100%); animation: disease-pulse 3s ease-in-out infinite; } @keyframes disease-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } } /* === Menu === */ #menu-screen { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0a18 0%, #111133 40%, #1a0a2e 70%, #0f1a3e 100%); overflow: hidden; } #menu-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(240,160,64,0.06) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(100,80,200,0.05) 0%, transparent 40%); pointer-events: none; } .menu-content, #controls-panel { text-align: center; position: relative; z-index: 1; } .menu-content h1 { font-size: 4.5rem; font-weight: 900; letter-spacing: 0.15em; background: linear-gradient(135deg, #f0a040 0%, #ffd740 40%, #ff8800 80%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 30px rgba(255,150,50,0.4)); margin-bottom: 0.1em; animation: titleGlow 3s ease-in-out infinite; } @keyframes titleGlow { 0%, 100% { filter: drop-shadow(0 0 30px rgba(255,150,50,0.4)); } 50% { filter: drop-shadow(0 0 50px rgba(255,150,50,0.7)) drop-shadow(0 0 80px rgba(255,100,20,0.3)); } } .subtitle { font-size: 1.2rem; color: #6a6a8a; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.5em; } .menu-version { font-size: 0.7rem; color: #444; margin-bottom: 2.5em; } .menu-btn { display: block; margin: 0.7em auto; padding: 0.85em 2.8em; font-size: 1.05rem; font-weight: 600; border: 1px solid rgba(240,160,64,0.4); background: rgba(240,160,64,0.06); color: #e8a848; cursor: pointer; border-radius: 6px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; letter-spacing: 0.05em; backdrop-filter: blur(4px); } .menu-btn:hover { background: rgba(240,160,64,0.18); border-color: #f0a040; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(240,160,64,0.2); } .menu-btn:active { transform: translateY(0); } #controls-panel h2 { font-size: 1.8rem; color: #f0a040; margin-bottom: 1em; } #controls-panel ul { list-style: none; text-align: left; display: inline-block; margin-bottom: 1.5em; } #controls-panel li { padding: 0.35em 0; font-size: 1rem; color: #aaa; } kbd { background: linear-gradient(180deg, #3a3a4a, #2a2a3a); border: 1px solid #555; border-bottom-width: 2px; border-radius: 4px; padding: 0.2em 0.6em; font-family: 'Segoe UI', monospace; font-size: 0.85em; color: #ddd; box-shadow: 0 1px 2px rgba(0,0,0,0.3); } /* === HUD === */ #hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; } #stats-panel { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 4px; } .stat-bar { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); padding: 5px 12px; border-radius: 8px; min-width: 230px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; } .stat-bar.critical { animation: criticalPulse 1s infinite; border-color: rgba(200,0,0,0.3); } @keyframes criticalPulse { 0%, 100% { background: linear-gradient(135deg, rgba(80,0,0,0.7), rgba(60,0,0,0.6)); } 50% { background: linear-gradient(135deg, rgba(130,0,0,0.8), rgba(100,0,0,0.7)); } } .stat-icon { font-size: 0.9rem; width: 1.3em; text-align: center; } .stat-label { font-size: 0.7rem; width: 60px; color: #777; font-weight: 500; letter-spacing: 0.02em; } .bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; position: relative; } .bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; position: relative; } .bar-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent); border-radius: 4px 4px 0 0; } .bar-fill.health { background: linear-gradient(90deg, #c62828, #ef5350, #ff7043); } .bar-fill.hunger { background: linear-gradient(90deg, #e65100, #ff9800, #ffb74d); } .bar-fill.warmth { background: linear-gradient(90deg, #e65100, #f9a825, #ffee58); } .bar-fill.mood { background: linear-gradient(90deg, #1565c0, #42a5f5, #64b5f6); } .bar-fill.hygiene { background: linear-gradient(90deg, #2e7d32, #66bb6a, #a5d6a7); } .stat-value { font-size: 0.7rem; font-weight: 700; width: 28px; text-align: right; font-variant-numeric: tabular-nums; color: #ccc; } /* === Top Right HUD === */ #top-right-hud { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; } #money-display { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(30,25,10,0.75)); padding: 8px 16px; border-radius: 8px; font-size: 1.3rem; font-weight: 800; color: #ffd740; backdrop-filter: blur(8px); border: 1px solid rgba(255,215,64,0.15); display: flex; align-items: center; gap: 4px; text-shadow: 0 0 15px rgba(255,215,64,0.3); } .money-icon { font-size: 1rem; } .money-currency { font-size: 0.85rem; color: #aa8830; font-weight: 600; } #time-display { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); padding: 6px 14px; border-radius: 8px; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); } .time-separator { color: #333; font-size: 0.8rem; } #val-day { color: #777; font-size: 0.8rem; } #val-time { font-weight: 700; color: #ddd; font-variant-numeric: tabular-nums; } #temp-display { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); padding: 4px 14px; border-radius: 8px; font-size: 0.8rem; color: #88bbff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: center; } #val-season { color: #c8a040; } #protection-display { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); padding: 4px 14px; border-radius: 8px; font-size: 0.75rem; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); color: #aaa; display: flex; gap: 6px; align-items: center; } #protection-display .sep { color: #333; } /* === Reputation Display === */ #reputation-display { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); padding: 5px 14px; border-radius: 8px; font-size: 0.75rem; pointer-events: none; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); } /* === Quest Tracker === */ #quest-tracker { position: absolute; top: 205px; right: 15px; background: linear-gradient(135deg, rgba(10,10,20,0.8), rgba(20,20,35,0.7)); padding: 10px 14px; border-radius: 8px; min-width: 180px; max-width: 220px; backdrop-filter: blur(8px); border: 1px solid rgba(240,160,64,0.15); pointer-events: none; } #tracker-title { font-size: 0.75rem; font-weight: 700; color: #f0a040; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #tracker-progress { font-size: 0.7rem; color: #888; margin-bottom: 6px; } #tracker-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; } #tracker-fill { height: 100%; background: linear-gradient(90deg, #f0a040, #ffd740); border-radius: 2px; transition: width 0.4s ease; width: 0%; } /* === Minimap === */ #minimap-container { position: absolute; bottom: 15px; left: 15px; } #minimap { width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(240,160,64,0.3); background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.3); } #minimap-label { text-align: center; font-size: 0.6rem; color: #555; margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; } /* === Compass === */ #compass { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); pointer-events: none; } #compass-ring { background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(240,160,64,0.25); backdrop-filter: blur(8px); } #compass-dir { font-size: 0.85rem; font-weight: 800; color: #f0a040; } /* === Hotbar === */ #hotbar { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: all; } .hotbar-item { width: 42px; height: 42px; background: linear-gradient(135deg, rgba(10,10,20,0.85), rgba(20,20,35,0.75)); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(8px); } .hotbar-item:hover { border-color: rgba(240,160,64,0.4); background: linear-gradient(135deg, rgba(240,160,64,0.12), rgba(240,160,64,0.06)); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); } /* === Tooltip === */ #tooltip { position: fixed; z-index: 35; background: linear-gradient(135deg, rgba(15,15,28,0.96), rgba(25,25,40,0.94)); border: 1px solid rgba(240,160,64,0.3); border-radius: 8px; padding: 10px 14px; max-width: 240px; pointer-events: none; backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); } #tooltip-title { font-weight: 700; font-size: 0.85rem; color: #f0a040; margin-bottom: 4px; } #tooltip-desc { font-size: 0.75rem; color: #999; line-height: 1.4; margin-bottom: 6px; } #tooltip-stats { font-size: 0.7rem; color: #8fc; line-height: 1.5; } /* === Interaction === */ #interaction-hint { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(10,10,20,0.9), rgba(20,20,35,0.85)); padding: 10px 24px; border-radius: 8px; font-size: 1rem; pointer-events: none; animation: hintPulse 2s ease-in-out infinite; backdrop-filter: blur(8px); border: 1px solid rgba(240,160,64,0.2); display: flex; align-items: center; gap: 8px; } @keyframes hintPulse { 0%, 100% { opacity: 0.9; border-color: rgba(240,160,64,0.2); } 50% { opacity: 1; border-color: rgba(240,160,64,0.5); } } /* === Dialog === */ #dialog-box { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(700px, 90vw); animation: dialogSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes dialogSlideIn { from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.97); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } } .dialog-content { background: linear-gradient(135deg, rgba(10,10,25,0.95), rgba(15,15,30,0.92)); border: 1px solid rgba(240,160,64,0.2); border-radius: 12px; padding: 22px 26px; backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); } #dialog-speaker { font-weight: 700; color: #f0a040; margin-bottom: 8px; font-size: 1rem; text-shadow: 0 0 10px rgba(240,160,64,0.2); } #dialog-text { line-height: 1.6; font-size: 0.95rem; margin-bottom: 14px; color: #ccc; } #dialog-choices { display: flex; flex-direction: column; gap: 6px; } .dialog-choice { background: rgba(240,160,64,0.05); border: 1px solid rgba(240,160,64,0.15); padding: 10px 16px; border-radius: 8px; cursor: pointer; color: #bbb; text-align: left; font-family: inherit; font-size: 0.9rem; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: all; position: relative; overflow: hidden; } .dialog-choice::before { content: '>'; position: absolute; left: 8px; opacity: 0; color: #f0a040; font-weight: 700; transition: all 0.2s; } .dialog-choice:hover { background: rgba(240,160,64,0.12); border-color: rgba(240,160,64,0.4); color: #fff; padding-left: 24px; } .dialog-choice:hover::before { opacity: 1; } /* === Panel shared styles (Inventory, Quests, Skills, Achievements) === */ #inventory-screen, #quest-screen, #skills-screen, #achievements-screen { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.75); animation: panelFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(4px); } @keyframes panelFadeIn { from { opacity: 0; } to { opacity: 1; } } .inventory-content, .quest-content, .skills-content, .achievements-content { background: linear-gradient(160deg, #141428 0%, #1a1a30 40%, #16162a 100%); border: 1px solid rgba(240,160,64,0.15); border-radius: 12px; padding: 0 24px 24px; min-width: 440px; max-width: 600px; max-height: 85vh; overflow-y: auto; box-shadow: 0 16px 60px rgba(0,0,0,0.6), 0 0 40px rgba(240,160,64,0.05); animation: panelSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes panelSlideIn { from { transform: translateY(20px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } } /* Panel header with close button */ .panel-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 16px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 16px; position: sticky; top: 0; background: linear-gradient(160deg, #141428 0%, #1a1a30 100%); z-index: 1; } .panel-header h2 { color: #f0a040; font-size: 1.2rem; font-weight: 700; margin: 0; } .panel-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #666; cursor: pointer; border-radius: 6px; transition: all 0.2s; pointer-events: all; background: rgba(255,255,255,0.03); } .panel-close:hover { color: #f44336; background: rgba(244,67,54,0.1); } /* === Inventory === */ #inventory-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; } .inv-slot { aspect-ratio: 1; background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; } .inv-slot:hover { border-color: rgba(240,160,64,0.4); background: linear-gradient(135deg, rgba(240,160,64,0.1), rgba(240,160,64,0.05)); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); } .inv-slot .item-count { position: absolute; bottom: 3px; right: 5px; font-size: 0.6rem; font-weight: 800; color: #ffd740; text-shadow: 0 1px 2px rgba(0,0,0,0.5); } .inv-slot .item-name { font-size: 0.5rem; color: #777; margin-top: 1px; text-align: center; line-height: 1.1; } .inv-slot.equippable { border-color: rgba(136,102,204,0.3); } .inv-slot.equippable:hover { border-color: rgba(136,102,204,0.6); background: linear-gradient(135deg, rgba(136,102,204,0.1), rgba(136,102,204,0.05)); } /* === Equipment Section in Inventory === */ .equipment-section { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); } .eq-title { font-size: 0.8rem; color: #f0a040; font-weight: 700; margin-bottom: 10px; text-align: center; letter-spacing: 0.05em; text-transform: uppercase; } .eq-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .eq-slot { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 4px; text-align: center; transition: all 0.2s; cursor: default; } .eq-slot:not(.empty) { border-color: rgba(136,102,204,0.3); background: linear-gradient(135deg, rgba(136,102,204,0.08), rgba(136,102,204,0.03)); cursor: pointer; } .eq-slot:not(.empty):hover { border-color: rgba(244,67,54,0.4); background: linear-gradient(135deg, rgba(244,67,54,0.08), rgba(244,67,54,0.03)); transform: translateY(-1px); } .eq-slot.empty { opacity: 0.4; } .eq-icon { display: block; font-size: 1.5rem; margin-bottom: 2px; } .eq-name { display: block; font-size: 0.6rem; color: #bbb; line-height: 1.2; } .eq-stats { display: block; font-size: 0.5rem; color: #888; margin-top: 2px; } .eq-totals { font-size: 0.7rem; color: #999; text-align: center; margin-top: 10px; padding: 6px 10px; background: rgba(255,255,255,0.03); border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); } /* === Crafting Section === */ .craft-section h3 { font-size: 0.8rem !important; color: #f0a040 !important; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); } .craft-item { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; } .craft-item.available { border-color: rgba(240,160,64,0.25); } .craft-item.available:hover { border-color: rgba(240,160,64,0.5); background: linear-gradient(135deg, rgba(240,160,64,0.06), rgba(240,160,64,0.02)); } .craft-btn { padding: 5px 14px; border: 1px solid rgba(240,160,64,0.3); background: rgba(240,160,64,0.08); color: #f0a040; border-radius: 6px; cursor: pointer; font-size: 0.7rem; font-family: inherit; font-weight: 600; transition: all 0.2s; } .craft-btn:hover { background: rgba(240,160,64,0.2); border-color: #f0a040; } .craft-btn:disabled { border-color: rgba(255,255,255,0.06); background: transparent; color: #444; cursor: default; } .craft-ingredients { font-size: 0.65rem; color: #666; margin-top: 3px; } .craft-ingredients .has { color: #8fc; } .craft-ingredients .missing { color: #f44336; } /* === Quests === */ .quest-item { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 14px; margin-bottom: 8px; transition: all 0.2s; } .quest-item.active { border-color: rgba(240,160,64,0.25); border-left: 3px solid #f0a040; } .quest-item.completed { opacity: 0.45; border-color: rgba(76,175,80,0.2); border-left: 3px solid #4caf50; } .quest-title { font-weight: 700; color: #f0a040; margin-bottom: 4px; font-size: 0.9rem; } .quest-desc { font-size: 0.8rem; color: #888; margin-bottom: 8px; line-height: 1.4; } .quest-progress { font-size: 0.75rem; color: #ffd740; font-weight: 600; } .quest-progress-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 6px; overflow: hidden; } .quest-progress-fill { height: 100%; background: linear-gradient(90deg, #f0a040, #ffd740); border-radius: 2px; transition: width 0.4s ease; } .quest-reward { font-size: 0.7rem; color: #8fc; margin-top: 6px; } /* === Notifications === */ #notifications { position: fixed; top: 45%; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; } .notification { background: linear-gradient(135deg, rgba(10,10,25,0.92), rgba(20,20,40,0.88)); border: 1px solid rgba(240,160,64,0.2); padding: 10px 24px; border-radius: 8px; font-size: 0.85rem; animation: notifSlide 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; white-space: nowrap; backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); } .notification.good { border-color: rgba(76,175,80,0.3); color: #81c784; box-shadow: 0 4px 16px rgba(76,175,80,0.1); } .notification.bad { border-color: rgba(244,67,54,0.3); color: #ef9a9a; box-shadow: 0 4px 16px rgba(244,67,54,0.1); } @keyframes notifSlide { 0% { opacity: 0; transform: translateY(20px) scale(0.95); } 8% { opacity: 1; transform: translateY(0) scale(1); } 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-15px) scale(0.95); } } /* === Death Screen === */ #death-screen { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(60,0,0,0.9), rgba(20,0,0,0.95)); animation: panelFadeIn 1.5s; } .death-content { text-align: center; max-width: 500px; } .death-icon { font-size: 4rem; margin-bottom: 0.3em; animation: deathIconPulse 2s infinite ease-in-out; } @keyframes deathIconPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } } .death-content h1 { font-size: 2.5rem; color: #f44336; margin-bottom: 0.5em; text-shadow: 0 0 40px rgba(244,67,54,0.5); font-weight: 900; } .death-content p { font-size: 1rem; color: #ccc; margin-bottom: 1em; } #death-stats { margin: 1.5em 0; } .death-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1.5em; } .death-stat-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 8px; text-align: center; } .death-stat-card .ds-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; } .death-stat-card .ds-value { font-size: 1rem; font-weight: 700; color: #ffd740; display: block; } .death-stat-card .ds-label { font-size: 0.6rem; color: #666; display: block; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; } #btn-restart { border-color: rgba(244,67,54,0.4); color: #f44336; margin-top: 1em; } #btn-restart:hover { background: rgba(244,67,54,0.15); border-color: #f44336; color: #fff; box-shadow: 0 4px 20px rgba(244,67,54,0.2); } /* === Skills Screen === */ .skill-item { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 14px; margin-bottom: 8px; transition: all 0.2s; } .skill-item:hover { border-color: rgba(240,160,64,0.25); background: linear-gradient(135deg, rgba(240,160,64,0.04), rgba(240,160,64,0.02)); } .skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .skill-name { font-weight: 700; color: #f0a040; font-size: 0.9rem; } .skill-level { font-size: 0.75rem; color: #ffd740; font-weight: 700; padding: 2px 8px; background: rgba(255,215,64,0.08); border-radius: 4px; } .skill-desc { font-size: 0.75rem; color: #777; margin-bottom: 8px; line-height: 1.3; } .skill-xp-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; } .skill-xp-fill { height: 100%; background: linear-gradient(90deg, #f0a040, #ffd740); border-radius: 2px; transition: width 0.4s ease; } .skill-xp-text { font-size: 0.6rem; color: #555; text-align: right; margin-top: 3px; font-variant-numeric: tabular-nums; } /* === Achievements Screen === */ .achievements-content h2 { color: #ffd740; } .ach-progress-header { text-align: center; margin-bottom: 18px; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.04); } .ach-progress-text { font-size: 0.85rem; color: #aaa; margin-bottom: 8px; } .ach-progress-count { color: #ffd740; font-weight: 700; font-size: 1.1rem; } .ach-progress-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; } .ach-progress-fill { height: 100%; background: linear-gradient(90deg, #f0a040, #ffd740); border-radius: 2px; transition: width 0.4s ease; } .ach-category { margin-bottom: 18px; } .ach-category-title { font-size: 0.8rem; font-weight: 700; color: #f0a040; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); letter-spacing: 0.03em; } .ach-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 4px; border-radius: 8px; transition: all 0.2s; } .ach-item.unlocked { background: linear-gradient(135deg, rgba(255,215,64,0.06), rgba(255,215,64,0.02)); border: 1px solid rgba(255,215,64,0.15); } .ach-item.locked { background: rgba(255,255,255,0.015); border: 1px solid rgba(255,255,255,0.04); opacity: 0.4; } .ach-item:hover { opacity: 1; } .ach-icon { font-size: 1.5rem; width: 2rem; text-align: center; flex-shrink: 0; } .ach-info { flex: 1; } .ach-title { font-size: 0.85rem; font-weight: 700; color: #ffd740; } .ach-item.locked .ach-title { color: #555; } .ach-desc { font-size: 0.7rem; color: #777; margin-top: 2px; line-height: 1.3; } /* === Intro Overlay === */ #intro-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.97); } .intro-content { max-width: 600px; text-align: center; padding: 30px; } #intro-text { font-size: 1.15rem; line-height: 1.8; color: #ccc; margin-bottom: 2em; min-height: 100px; } #intro-text .intro-line { opacity: 0; animation: introFadeIn 1s forwards; margin-bottom: 0.8em; } @keyframes introFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* === Begging === */ #beg-progress { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 12; width: 200px; pointer-events: none; } #beg-progress .beg-bar-bg { height: 6px; background: rgba(0,0,0,0.6); border-radius: 3px; overflow: hidden; } #beg-progress .beg-bar-fill { height: 100%; background: linear-gradient(90deg, #f0a040, #ffd740); border-radius: 3px; width: 0%; transition: width 0.1s linear; } #beg-progress .beg-label { text-align: center; font-size: 0.8rem; color: #ccc; margin-bottom: 4px; } /* === Busking === */ #busk-progress { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 12; width: 200px; pointer-events: none; } #busk-progress .beg-bar-bg { height: 6px; background: rgba(0,0,0,0.6); border-radius: 3px; overflow: hidden; } #busk-progress .beg-bar-fill { height: 100%; background: linear-gradient(90deg, #e8a020, #ffcc00); border-radius: 3px; width: 0%; transition: width 0.1s linear; } #busk-progress .beg-label { text-align: center; font-size: 0.8rem; color: #ffe080; margin-bottom: 4px; } /* === Stamina Bar === */ #stamina-bar { position: absolute; bottom: 68px; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; pointer-events: none; transition: opacity 0.3s; } #stamina-bar .stamina-fill { height: 100%; background: linear-gradient(90deg, #66bb6a, #a5d6a7); border-radius: 2px; transition: width 0.15s; } /* === Responsive adjustments === */ @media (max-width: 768px) { .stat-bar { min-width: 180px; padding: 3px 8px; } .stat-label { width: 50px; font-size: 0.65rem; } #minimap { width: 120px; height: 120px; } .inventory-content, .quest-content, .skills-content, .achievements-content { min-width: auto; width: 95vw; max-width: 95vw; } #inventory-grid { grid-template-columns: repeat(4, 1fr); } .hotbar-item { width: 36px; height: 36px; font-size: 1rem; } #quest-tracker { display: none; } }