@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Fira+Code:wght@400;500&display=swap";
:root{--bg-color:#0b0c10;--bg-panel:#1f283399;--text-main:#c5c6c7;--text-highlight:#66fcf1;--text-muted:#45a29e;--border-color:#66fcf133;--accent-color:#45a29e;--danger-color:#ff4c4c;--glass-blur:blur(10px)}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);color:var(--text-main);background-image:radial-gradient(circle at 100% 0,#1f2833,#0b0c10 70%);justify-content:center;align-items:center;height:100vh;font-family:Outfit,sans-serif;display:flex;overflow:hidden}.app-container{background:var(--bg-panel);width:100%;max-width:1100px;height:90vh;-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--border-color);border-radius:16px;flex-direction:column;transition:all .3s;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 32px #00000080}.auth-container{text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:2rem;display:flex}.auth-container h1{color:var(--text-highlight);text-shadow:0 0 10px #66fcf14d;margin-bottom:.5rem;font-size:3rem}.auth-container p{color:var(--text-muted);margin-bottom:2rem}.auth-form{flex-direction:column;gap:1.5rem;width:100%;max-width:320px;display:flex}input{border:1px solid var(--border-color);width:100%;color:var(--text-main);background:#0b0c10cc;border-radius:8px;outline:none;padding:.8rem 1rem;font-family:Outfit,sans-serif;font-size:1rem;transition:border-color .3s,box-shadow .3s}input:focus{border-color:var(--text-highlight);box-shadow:0 0 8px #66fcf166}button{color:var(--text-highlight);border:1px solid var(--text-highlight);cursor:pointer;background:0 0;border-radius:8px;padding:.8rem 1rem;font-family:Outfit,sans-serif;font-size:1rem;font-weight:600;transition:all .3s;position:relative;overflow:hidden}button:hover{background:var(--text-highlight);color:var(--bg-color);box-shadow:0 0 15px #66fcf199}button:disabled{opacity:.5;cursor:not-allowed}.toggle-auth{color:var(--text-muted);cursor:pointer;background:0 0;border:none;margin-top:1rem;font-size:.9rem}.toggle-auth:hover{color:var(--text-main);box-shadow:none;background:0 0}.game-layout{flex-direction:column;height:100%}.top-panel{border-bottom:2px solid var(--border-color);background:#0b0c1080;flex-shrink:0;height:300px;display:flex}.status-panel{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;gap:.8rem;width:280px;padding:1.2rem 1.4rem;display:flex;overflow-y:auto}.status-panel::-webkit-scrollbar{width:4px}.status-panel::-webkit-scrollbar-track{background:0 0}.status-panel::-webkit-scrollbar-thumb{background:#66fcf133;border-radius:2px}.status-header{border-bottom:1px solid var(--border-color);flex-direction:column;gap:.2rem;padding-bottom:.8rem;display:flex}.status-header h2{color:var(--text-highlight);text-shadow:0 0 8px #66fcf14d;letter-spacing:.5px;font-size:1.1rem}.status-player{color:var(--text-muted);font-size:.8rem}.stat-box{border:1px solid var(--border-color);background:#1f283380;border-radius:8px;padding:.8rem}.stat-box h3{color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:.4rem;font-size:.75rem}.stat-value{font-size:1rem;font-weight:600}.health-bar-container{background:#0b0c10cc;border-radius:4px;width:100%;height:8px;margin-top:.4rem;overflow:hidden}.health-bar{background:linear-gradient(90deg,#ff4c4c,#ff7043);height:100%;transition:width .4s}.inventory-box{flex:1;overflow-y:auto}.empty-inv{color:var(--text-muted);font-size:.85rem}.inventory-list{margin-top:.3rem;list-style:none}.inventory-list li{text-transform:capitalize;border-bottom:1px solid #c5c6c71a;padding:.25rem 0;font-size:.88rem}.status-actions{flex-direction:column;flex-shrink:0;gap:.4rem;margin-top:auto;display:flex}.restart-btn{color:#ffb347;border-color:#ffa50099;padding:.45rem .8rem;font-size:.82rem}.restart-btn:hover{color:#ffd280;background:#ffa50033;border-color:#ffb347;box-shadow:0 0 12px #ffa5004d}.logout-btn{border-color:var(--danger-color);color:var(--danger-color);padding:.45rem .8rem;font-size:.82rem}.logout-btn:hover{background:var(--danger-color);color:#fff;box-shadow:0 0 15px #ff4c4c66}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;background:#000000bf;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:absolute;inset:0}.modal-box{text-align:center;background:#141a23fa;border:1px solid #66fcf14d;border-radius:14px;width:90%;max-width:360px;padding:2rem;animation:.25s slideUp;box-shadow:0 0 40px #000c}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-icon{margin-bottom:.8rem;font-size:2.8rem}.modal-title{color:var(--text-highlight);margin-bottom:.75rem;font-size:1.25rem}.modal-body{color:var(--text-muted);margin-bottom:1.5rem;font-size:.9rem;line-height:1.6}.modal-actions{justify-content:center;gap:.8rem;display:flex}.modal-cancel{color:var(--text-muted);border-color:#c5c6c766;padding:.55rem 1.4rem;font-size:.9rem}.modal-cancel:hover{color:var(--text-main);box-shadow:none;background:#c5c6c71a}.modal-confirm{border-color:var(--danger-color);color:var(--danger-color);padding:.55rem 1.4rem;font-size:.9rem}.modal-confirm:hover{background:var(--danger-color);color:#fff;box-shadow:0 0 15px #ff4c4c80}.image-panel{background:#0b0c10;flex:1;position:relative;overflow:hidden}.image-placeholder{opacity:.15;justify-content:center;align-items:center;width:100%;height:100%;font-size:4rem;display:flex}.chat-section{background:#0b0c104d;flex-direction:column;flex:1;min-height:0;display:flex}.chat-history{scroll-behavior:smooth;flex-direction:column;flex:1;gap:1.2rem;padding:1.5rem 2rem;display:flex;overflow-y:auto}.chat-history::-webkit-scrollbar{width:6px}.chat-history::-webkit-scrollbar-track{background:0 0}.chat-history::-webkit-scrollbar-thumb{background:#66fcf133;border-radius:3px}.chat-history::-webkit-scrollbar-thumb:hover{background:#66fcf166}.message{flex-direction:column;max-width:85%;animation:.3s fadeIn;display:flex}.message-user{align-self:flex-end;align-items:flex-end}.message-game{align-self:flex-start}.message-bubble{white-space:pre-wrap;border-radius:12px;padding:1rem 1.2rem;font-family:Fira Code,monospace;line-height:1.5}.message-user .message-bubble{color:#fff;background:#66fcf126;border:1px solid #66fcf14d;border-bottom-right-radius:2px}.message-game .message-bubble{border:1px solid var(--border-color);color:var(--text-main);background:#1f2833cc;border-bottom-left-radius:2px}.message-game .message-bubble strong{color:var(--text-highlight)}.chat-input-container{border-top:1px solid var(--border-color);background:#0b0c10cc;gap:1rem;padding:1.5rem;display:flex}.chat-input-container input{background:#1f283380;flex:1;font-family:Fira Code,monospace}.chat-input-container button{padding:.8rem 2rem}.room-image{object-fit:cover;object-position:center center;width:100%;height:100%;animation:.6s roomFadeIn;display:block}@keyframes roomFadeIn{0%{opacity:0;transform:scale(1.04)}to{opacity:1;transform:scale(1)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.victory-screen{text-align:center;flex-direction:column;align-items:center;max-width:500px;padding:3rem 2rem;animation:1s fadeIn;display:flex}.victory-trophy{filter:drop-shadow(0 0 20px #ffd70099);margin-bottom:1rem;font-size:5rem;animation:.5s .5s both fadeIn}.victory-title{color:var(--text-highlight);text-shadow:0 0 20px #66fcf180;margin-bottom:.5rem;font-size:2.5rem;animation:.5s .7s both fadeIn}.victory-subtitle{color:var(--text-muted);font-size:1rem;animation:.5s .9s both fadeIn}.victory-divider{background:linear-gradient(to right, transparent, var(--text-highlight), transparent);width:60%;height:1px;margin:1.5rem 0;animation:.5s 1.1s both fadeIn}.victory-body{color:var(--text-main);font-size:1rem;line-height:1.8;animation:.5s 1.3s both fadeIn}.victory-stats{color:var(--text-muted);margin:1.5rem 0;font-size:.9rem;animation:.5s 1.5s both fadeIn}.victory-btn{margin-top:1rem;padding:.8rem 2rem;animation:.5s 1.7s both fadeIn}@media (max-width:768px){.chat-layout{flex-direction:column}.sidebar{border-right:none;border-bottom:1px solid var(--border-color);width:100%;height:auto;padding:1rem}}
