@import"https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=MedievalSharp&family=UnifrakturCook:wght@700&display=swap";:root{font-family:Cinzel Decorative,serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,html{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background-image:url(/chat-background.png);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}#root{width:100%;height:100%}.App{width:100%;height:100%;overflow:hidden;position:relative}.main-display{position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:0;background:linear-gradient(120deg,#242424d9 60%,#503c1eb3);overflow-y:auto;padding:24px 0 100px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end}.sidebar-panel{width:320px;min-width:220px;max-width:420px;height:100vh;background:#282828f2;overflow-y:auto;box-shadow:2px 0 8px #0000002e;position:absolute;left:0;top:0;z-index:2}.chat-box{flex-grow:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;color:#e0cc9b}.user-message{align-self:flex-end;background:linear-gradient(90deg,#a08c5b 80%,#e0cc9b);color:#242424;border-bottom-right-radius:18px;border-bottom-left-radius:8px;font-weight:500}.gemini-message{align-self:flex-start;background:linear-gradient(90deg,#2e3a4a 80%,#5c7c99);color:#e0cc9b;border-bottom-left-radius:18px;border-bottom-right-radius:8px;font-style:italic}.action-message{align-self:flex-end;background:linear-gradient(90deg,#7b3f00 80%,#e0cc9b);color:#fff;font-style:italic;border-bottom-right-radius:18px;border-bottom-left-radius:8px}.system-message{align-self:center;background:#503c1eb3;color:#ffe9b0;font-size:.98em;border-radius:12px;font-style:italic;padding:7px 16px;margin:10px 0;box-shadow:none}.chat-message strong{color:#ffe9b0;font-weight:700;margin-right:8px;text-shadow:0 1px 2px #0008}.user-message strong{color:#7b3f00}.gemini-message strong{color:#5c7c99}.timestamp{display:inline-block;margin-left:0;font-size:.92em;color:#b6a77a;opacity:.7;font-family:Fira Mono,monospace;vertical-align:middle;margin-top:2px}.chat-input-container{position:fixed;bottom:0;left:0;width:100%;padding:18px 24px;background:#1e2127fa;z-index:10;display:flex;align-items:center;box-sizing:border-box;gap:12px;border-top:1.5px solid #a08c5b44;box-shadow:0 -2px 12px #0000002e}.chat-input-wrapper{flex-grow:1;display:flex;align-items:center;background:#32363ef2;border:1.5px solid #a08c5b;border-radius:25px;padding:7px 18px;gap:10px}.chat-input-wrapper input[type=text]{flex-grow:1;border:none;outline:none;background:none;color:#e0cc9b;font-size:1.08em;padding:8px 0;font-family:inherit}.chat-input-wrapper input[type=text]::placeholder{color:#b6a77a;opacity:.7}.send-button{background:linear-gradient(90deg,#a08c5b 60%,#e0cc9b);border:none;color:#242424;cursor:pointer;font-size:1.3em;padding:7px 13px;border-radius:50%;transition:background .2s,color .2s;box-shadow:0 2px 8px #0000001a;margin-left:4px}.send-button:hover{background:linear-gradient(90deg,#e0cc9b 60%,#a08c5b);color:#7b3f00}.chat-actions{display:flex;gap:10px}.action-toggle{background:linear-gradient(90deg,#5c7c99 60%,#a08c5b);border:none;color:#fff;font-weight:600;border-radius:18px;padding:7px 18px;cursor:pointer;transition:background .2s,color .2s;font-size:1em}.action-toggle.active{background:linear-gradient(90deg,#a08c5b 60%,#5c7c99);color:#242424}.clear-button{background:linear-gradient(90deg,#8b0000 60%,#a08c5b);border:none;color:#fff;border-radius:18px;padding:7px 18px;cursor:pointer;font-size:1em;font-weight:600;transition:background .2s,color .2s}.clear-button:hover{background:linear-gradient(90deg,#a08c5b 60%,#8b0000);color:#fff}body,.main-display,.chat-box,.chat-message{font-family:Cinzel,MedievalSharp,UnifrakturCook,serif}.chat-message{margin-bottom:22px;padding:16px 26px 14px;border-radius:20px 20px 10px 10px;background:#32363ed9;max-width:70%;word-break:break-word;font-size:1.12em;position:relative;box-shadow:0 2px 8px #0000002e;transition:background .2s;letter-spacing:.02em}.chat-header{display:flex;align-items:center;margin-bottom:6px;gap:10px}.chat-sender{font-size:1.08em;letter-spacing:.04em}.timestamp{margin-left:0;font-size:.92em;color:#b6a77a;opacity:.7;font-family:Fira Mono,monospace;vertical-align:middle;margin-top:2px}.chat-content{margin-left:2px;line-height:1.4;color:#e0cc9b}.chat-messages{padding:10px 32px;box-sizing:border-box}.chat-message.align-left{align-self:flex-start;margin-left:0;margin-right:auto}.chat-message.align-right{align-self:flex-end;margin-right:0;margin-left:auto}.chat-message.align-center{align-self:center;margin-left:auto;margin-right:auto}.chat-message.align-right:not(.system-message):not(.gemini-message){border-left:4px solid;background:linear-gradient(90deg,#a08c5b22 80%,#e0cc9b11)}.chat-message.gemini-message{border-right:4px solid #5c7c99;background:linear-gradient(90deg,#2e3a4a 80%,#5c7c99);color:#e0cc9b;font-style:italic}.chat-message.system-message{border:none;background:#503c1eb3;color:#ffe9b0;font-style:italic;font-size:.98em;box-shadow:none;margin-top:18px;margin-bottom:18px}.chat-message.npc-message{align-self:flex-start;border-right:4px solid;background:linear-gradient(90deg,#3a4a2e 80%,#b0cc9b);color:#e0cc9b;font-style:italic}.gemini-message .chat-sender{color:#5c7c99!important;font-weight:700;letter-spacing:.04em}.chat-message.align-right .chat-sender{font-weight:700;letter-spacing:.04em;text-shadow:0 1px 2px #0008}.chat-header{margin-bottom:4px;display:flex;align-items:center;gap:8px}.chat-input-container{position:fixed;bottom:0;left:0;width:100%;padding:15px 20px;background-color:#1e2127f2;z-index:10;display:flex;align-items:center;box-sizing:border-box;gap:10px}.chat-input-wrapper{flex-grow:1;display:flex;align-items:center;background-color:#32363ee6;border:1px solid #a08c5b;border-radius:25px;padding:5px 15px;gap:10px}.chat-input-wrapper input[type=text]{flex-grow:1;border:none;outline:none;background:none;color:#e0cc9b;font-size:1em;padding:8px 0}.chat-input-wrapper input[type=text]::placeholder{color:#e0cc9bb3}.action-toggle-button{background:none;border:none;color:#a08c5b;cursor:pointer;font-size:1.2em;padding:5px;border-radius:50%;transition:background-color .3s ease,color .3s ease}.action-toggle-button:hover{background-color:#a08c5b33;color:#e0cc9b}.send-button{background:none;border:none;color:#a08c5b;cursor:pointer;font-size:1.4em;padding:5px;border-radius:50%;transition:background-color .3s ease,color .3s ease}.send-button:hover{background-color:#a08c5b33;color:#e0cc9b}.clear-chat-button{background-color:#8b0000b3;color:#fff;border:none;border-radius:4px;padding:8px 12px;cursor:pointer;font-size:.9em;transition:background-color .3s ease}.clear-chat-button:hover{background-color:#8b0000}.modal-overlay{position:fixed;inset:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background-color:var(--color-parchment);padding:2rem;border-radius:var(--border-radius-lg);max-width:500px;max-height:80vh;overflow:auto;box-shadow:0 0 20px #00000080;animation:modalFadeIn .3s ease-out;position:relative;display:flex;flex-direction:column}.modal-content h3{color:var(--color-brown-border);margin-bottom:1.5rem;text-align:center;font-size:1.8em;text-shadow:1px 1px 2px rgba(0,0,0,.2)}.modal-form{display:flex;flex-direction:column;gap:1rem;flex-grow:1}.modal-content label{display:block;margin-bottom:.25rem;font-weight:700;color:var(--color-text-dark);font-size:.95em}.modal-content input,.modal-content textarea{width:calc(100% - 1.5rem);padding:.75rem;margin-bottom:.5rem;border:1px solid var(--color-brown-border);border-radius:var(--border-radius-sm);background-color:#fff;color:#333;font-family:inherit;font-size:1em}.modal-content textarea{resize:vertical;min-height:80px}.form-buttons{display:flex;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(0,0,0,.1)}.modal-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:1.5rem}@keyframes modalFadeIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.draggable-panel{background-color:#333;border:1px solid #a08c5b;border-radius:8px;box-shadow:2px 2px 10px #00000080;display:flex;flex-direction:column;resize:both;overflow:hidden;height:100%;width:100%}.draggable-panel-header{cursor:grab;padding:5px 10px;background-color:#f0f0f0;border-bottom:1px solid #a08c5b;display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#e0cc9b;flex-shrink:0;-webkit-user-select:none;user-select:none;height:35px;box-sizing:border-box}.draggable-panel-header-buttons{display:flex;align-items:center;gap:3px}.draggable-panel-header button{background:none;border:none;color:#e0cc9b;cursor:pointer;font-size:1.1em;padding:3px 5px;border-radius:4px;transition:background-color .2s ease,color .2s ease;line-height:1;display:flex;align-items:center;justify-content:center;width:25px;height:25px;box-sizing:border-box}.draggable-panel-header button:hover{color:#fff;background-color:#ffffff26}.draggable-panel-header button:last-child{color:#ff5252}.draggable-panel-header button:last-child:hover{color:#fff;background-color:#ff525266}.draggable-panel-content{padding:10px;flex-grow:1;overflow:auto;box-sizing:border-box;color:#e0cc9b;display:flex;flex-direction:column}.draggable-panel.minimized{width:auto;height:35px;min-height:unset;resize:none;overflow:hidden}.draggable-panel.minimized .draggable-panel-content{display:none}.draggable-panel-minimized-button{padding:5px 10px;border:1px solid #ccc;background-color:#f0f0f0;cursor:grab}.draggable-panel.dragging{opacity:.8;z-index:1001}.rpg-button{padding:5px 10px;border-radius:4px;cursor:pointer;font-size:.9em;transition:background-color .3s ease,opacity .3s ease;opacity:.9;text-align:center;display:inline-block;margin-top:10px}.rpg-button.primary{background-color:#a08c5b;color:#242424;border:none}.rpg-button.secondary{background-color:#a08c5b4d;color:#e0cc9b;border:1px solid #a08c5b}.rpg-button.danger{background-color:#8b0000b3;color:#fff;border:1px solid #8b0000}.rpg-button:hover{opacity:1}.npc-list,.hero-list{list-style:none;padding:0;margin:0}.npc-list li,.hero-list li{background-color:#3c465a80;margin-bottom:10px;padding:10px;border-radius:5px;border:1px solid rgba(160,140,91,.5)}.npc-actions,.hero-actions{margin-top:8px;display:flex;gap:5px}.draggable-panel-content textarea{width:100%;min-height:150px;height:auto;padding:10px;border:1px solid #a08c5b;border-radius:4px;background-color:#32363ecc;color:#e0cc9b;resize:vertical;box-sizing:border-box;overflow-y:auto;font-family:sans-serif;font-size:1em;line-height:1.5}
