:root{color-scheme:dark;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5;--bg: #0a0a0f;--bg-card: #12121a;--bg-hover: #1a1a28;--bg-active: #222235;--border: rgba(255, 255, 255, .08);--border-hover: rgba(255, 255, 255, .15);--text: #e8e8f0;--text-dim: rgba(255, 255, 255, .5);--text-muted: rgba(255, 255, 255, .35);--accent: #6c8cff;--accent-glow: rgba(108, 140, 255, .15);--green: #4ade80;--red: #f87171;--yellow: #fbbf24;--orange: #fb923c;--purple: #a78bfa;--blue: #60a5fa}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg);color:var(--text)}.game-root{min-height:100vh;display:flex;flex-direction:column}.title-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,rgba(108,140,255,.08) 0%,transparent 70%)}.title-content{max-width:560px;text-align:center;padding:2rem}.title-logo{margin-bottom:2.5rem}.title-symbol{font-size:5rem;font-weight:200;letter-spacing:.1em;color:var(--accent);text-shadow:0 0 60px rgba(108,140,255,.3);margin-bottom:.5rem}.title-text{font-size:2.5rem;font-weight:300;letter-spacing:.35em;text-transform:uppercase;color:var(--text)}.title-subtitle{font-size:.85rem;letter-spacing:.25em;text-transform:uppercase;color:var(--text-dim);margin-top:.5rem}.title-description{margin-bottom:2.5rem}.title-description p{color:var(--text-dim);font-size:.95rem;margin-bottom:1rem;line-height:1.7}.title-tagline{color:var(--accent)!important;font-style:italic;font-size:1rem!important;margin-top:1.5rem!important}.title-start-btn{background:transparent;border:1px solid var(--accent);color:var(--accent);padding:.85rem 2.5rem;font-size:1rem;letter-spacing:.1em;cursor:pointer;border-radius:4px;transition:all .3s ease;margin-bottom:2rem}.title-start-btn:hover,.title-start-btn.hovered{background:var(--accent);color:var(--bg);box-shadow:0 0 30px #6c8cff4d}.title-features{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}.dot{opacity:.4}.creation-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.creation-step{max-width:700px;width:100%;text-align:center}.creation-step h2{font-size:2rem;font-weight:300;letter-spacing:.1em;margin-bottom:.5rem}.creation-hint{color:var(--text-dim);margin-bottom:2rem;font-size:.9rem}.creation-input{width:100%;max-width:400px;padding:.75rem 1rem;font-size:1.1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:4px;color:var(--text);text-align:center;outline:none;transition:border-color .2s;margin-bottom:1.5rem}.creation-input:focus{border-color:var(--accent)}.creation-input::placeholder{color:var(--text-muted)}.creation-btn{background:transparent;border:1px solid var(--accent);color:var(--accent);padding:.65rem 2rem;font-size:.95rem;cursor:pointer;border-radius:4px;transition:all .2s}.creation-btn:hover:not(:disabled){background:var(--accent);color:var(--bg)}.creation-btn:disabled{opacity:.3;cursor:not-allowed}.creation-btn.back{border-color:var(--text-muted);color:var(--text-dim)}.creation-btn.back:hover{background:var(--text-muted);color:var(--bg)}.origin-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem;text-align:left}.origin-card{background:var(--bg-card);border:1px solid var(--border);border-radius:6px;padding:1.25rem;cursor:pointer;transition:all .2s;text-align:left;color:var(--text)}.origin-card:hover{border-color:var(--border-hover);background:var(--bg-hover)}.origin-card.selected{border-color:var(--accent);box-shadow:0 0 20px var(--accent-glow)}.origin-card h3{font-size:1rem;font-weight:600;margin-bottom:.5rem}.origin-desc{font-size:.8rem;color:var(--text-dim);line-height:1.5;margin-bottom:.75rem}.origin-bonuses{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.5rem}.origin-bonus{font-size:.7rem;padding:.15rem .4rem;background:#4ade801a;color:var(--green);border-radius:3px}.origin-traits{display:flex;gap:.4rem}.origin-trait{font-size:.65rem;padding:.1rem .4rem;background:#6c8cff1a;color:var(--accent);border-radius:3px;text-transform:capitalize}.creation-actions{display:flex;gap:1rem;justify-content:center}.game-layout{display:flex;flex-direction:column;min-height:100vh}.status-bar{background:var(--bg-card);border-bottom:1px solid var(--border);padding:.75rem 1.5rem;position:sticky;top:0;z-index:10}.status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.player-info,.world-info{display:flex;gap:.75rem;align-items:center}.player-name{font-weight:600;font-size:.95rem}.player-age{font-size:.8rem;color:var(--accent)}.player-origin{font-size:.75rem;color:var(--text-dim)}.world-era{font-size:.8rem;color:var(--purple)}.turn-counter{font-size:.75rem;color:var(--text-muted);font-family:monospace}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:.4rem}.stat-bar{display:flex;align-items:center;gap:.4rem}.stat-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);min-width:2rem}.stat-track{flex:1;height:6px;background:#ffffff0f;border-radius:3px;overflow:hidden}.stat-fill{height:100%;border-radius:3px;transition:width .5s ease}.stat-value{font-size:.7rem;font-family:monospace;color:var(--text-dim);min-width:1.5rem;text-align:right}.secondary-stats{display:flex;gap:1rem;font-size:.7rem;color:var(--text-muted);font-family:monospace}.secondary-stats .positive{color:var(--green)}.secondary-stats .negative{color:var(--red)}.game-main{flex:1;display:flex;flex-direction:column;max-width:900px;width:100%;margin:0 auto;padding:0 1rem 2rem}.panel-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:1rem;overflow-x:auto}.panel-tab{background:transparent;border:none;color:var(--text-dim);padding:.6rem 1.2rem;font-size:.8rem;letter-spacing:.05em;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;white-space:nowrap}.panel-tab:hover{color:var(--text);background:#ffffff05}.panel-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.panel-content{flex:1}.loading-event{text-align:center;padding:4rem 2rem;color:var(--text-dim);font-style:italic}.event-panel{animation:fadeIn .4s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.event-header{margin-bottom:1rem}.event-category{font-size:.7rem;text-transform:uppercase;letter-spacing:.15em;color:var(--text-muted)}.event-title{font-size:1.5rem;font-weight:400;letter-spacing:.02em;margin-top:.25rem}.event-description{color:var(--text-dim);font-size:.95rem;line-height:1.7;margin-bottom:1.5rem}.choices-container{display:flex;flex-direction:column;gap:.6rem}.choice-btn{background:var(--bg-card);border:1px solid var(--border);border-radius:6px;padding:1rem 1.25rem;text-align:left;cursor:pointer;transition:all .2s;color:var(--text)}.choice-btn:hover:not(.disabled){border-color:var(--border-hover);background:var(--bg-hover)}.choice-btn.hovered:not(.disabled){border-color:var(--accent);box-shadow:0 0 15px var(--accent-glow)}.choice-btn.selected{background:var(--accent-glow);border-color:var(--accent)}.choice-btn.disabled{opacity:.4;cursor:not-allowed}.choice-main{display:flex;justify-content:space-between;align-items:center;gap:1rem}.choice-text{font-size:.9rem}.choice-risk{font-size:.7rem;font-family:monospace;text-transform:uppercase}.choice-requirements{font-size:.7rem;color:var(--red);margin-top:.4rem}.choice-skill-check{font-size:.7rem;color:var(--text-muted);margin-top:.3rem;font-style:italic}.choice-preview{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.preview-stat{font-size:.7rem;font-family:monospace;padding:.1rem .4rem;border-radius:3px}.preview-stat.positive{background:#4ade801a;color:var(--green)}.preview-stat.negative{background:#f871711a;color:var(--red)}.skills-panel h3,.relationships-panel h3,.inventory-panel h3,.world-panel h3,.log-panel h3{font-size:1.1rem;font-weight:400;margin-bottom:1rem;letter-spacing:.05em}.section-subtitle{font-size:.85rem;font-weight:400;color:var(--text-dim);margin:1.5rem 0 .75rem}.skills-list{display:flex;flex-direction:column;gap:.5rem}.skills-list.undiscovered{opacity:.5}.skill-item{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.6rem .8rem}.skill-item.learned{border-color:var(--border-hover)}.skill-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.3rem}.skill-name{font-size:.85rem;font-weight:500}.skill-level{font-size:.7rem;font-family:monospace;color:var(--accent)}.skill-bar-track{height:4px;background:#ffffff0f;border-radius:2px;overflow:hidden;margin-bottom:.3rem}.skill-bar-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .5s ease}.skill-category{font-size:.65rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.traits-section{margin-top:1.5rem}.traits-section h4{font-size:.85rem;font-weight:400;color:var(--text-dim);margin-bottom:.5rem}.traits-list{display:flex;gap:.4rem;flex-wrap:wrap}.trait-badge{font-size:.75rem;padding:.2rem .6rem;background:#a78bfa1a;color:var(--purple);border-radius:3px;text-transform:capitalize}.relationships-list{display:flex;flex-direction:column;gap:.6rem}.relationship-card{background:var(--bg-card);border:1px solid var(--border);border-radius:6px;padding:.8rem 1rem}.rel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.rel-name{font-size:.9rem;font-weight:500}.rel-status{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em}.rel-bars{display:flex;flex-direction:column;gap:.3rem}.rel-bar{display:flex;align-items:center;gap:.4rem}.rel-bar-label{font-size:.65rem;color:var(--text-muted);min-width:3rem}.rel-bar-track{flex:1;height:4px;background:#ffffff0f;border-radius:2px;overflow:hidden}.rel-bar-fill{height:100%;border-radius:2px;transition:width .5s ease}.rel-bar-value{font-size:.65rem;font-family:monospace;color:var(--text-dim);min-width:2rem;text-align:right}.inventory-groups{display:flex;flex-direction:column;gap:1rem}.group-title{font-size:.8rem;font-weight:400;text-transform:uppercase;letter-spacing:.1em;color:var(--text-dim);margin-bottom:.4rem}.inventory-item{background:var(--bg-card);border:1px solid var(--border);border-radius:4px;padding:.5rem .8rem;margin-bottom:.3rem}.item-main{display:flex;justify-content:space-between;align-items:center}.item-name{font-size:.85rem}.item-qty{font-size:.75rem;font-family:monospace;color:var(--text-dim)}.item-desc{font-size:.7rem;color:var(--text-muted);margin-top:.2rem}.world-era{margin-bottom:1.5rem}.world-era h4{font-size:1rem;font-weight:500;margin-bottom:.3rem;color:var(--purple)}.world-era p{font-size:.85rem;color:var(--text-dim)}.world-stats{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.world-stat{display:flex;align-items:center;gap:.5rem}.world-stat-label{font-size:.75rem;color:var(--text-dim);min-width:5rem}.world-stat-track{flex:1;height:6px;background:#ffffff0f;border-radius:3px;overflow:hidden}.world-stat-fill{height:100%;border-radius:3px;transition:width .5s ease}.world-stat-value{font-size:.7rem;font-family:monospace;color:var(--text-dim);min-width:1.5rem;text-align:right}.world-details{display:flex;gap:2rem;margin-bottom:1.5rem}.world-detail{display:flex;flex-direction:column}.detail-label{font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em}.detail-value{font-size:1.1rem;font-family:monospace;color:var(--text)}.world-section{margin-bottom:1rem}.world-section h4{font-size:.85rem;font-weight:400;color:var(--text-dim);margin-bottom:.4rem}.world-section ul{list-style:none;padding:0}.world-section li{font-size:.8rem;color:var(--text-dim);padding:.2rem 0}.world-section li:before{content:"•";color:var(--text-muted);margin-right:.5rem}.log-panel{display:flex;flex-direction:column}.log-entries{flex:1;max-height:70vh;overflow-y:auto;display:flex;flex-direction:column;gap:.3rem;padding-right:.5rem}.log-entries::-webkit-scrollbar{width:4px}.log-entries::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.log-entry{display:flex;gap:.75rem;padding:.4rem .6rem;border-radius:4px;font-size:.8rem}.log-meta{font-size:.65rem;font-family:monospace;color:var(--text-muted);min-width:3.5rem;padding-top:.1rem}.log-text{color:var(--text-dim);line-height:1.5}.log-narrative .log-text{color:var(--text-dim)}.log-choice .log-text{color:var(--text)}.log-milestone{background:#6c8cff0d;border-left:2px solid var(--accent)}.log-milestone .log-text{color:var(--accent);font-style:italic}.log-death{background:#f871710d;border-left:2px solid var(--red)}.log-death .log-text{color:var(--red)}.empty-text{color:var(--text-muted);font-size:.85rem;font-style:italic;padding:2rem 0}.gameover-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:radial-gradient(ellipse at 50% 30%,rgba(108,140,255,.05) 0%,transparent 70%)}.gameover-content{max-width:600px;width:100%;text-align:center}.gameover-title{font-size:2rem;font-weight:300;letter-spacing:.1em;margin-bottom:1rem}.gameover-reason{color:var(--text-dim);font-size:.95rem;line-height:1.7;margin-bottom:2rem}.gameover-summary{text-align:left;margin-bottom:2rem}.summary-section{background:var(--bg-card);border:1px solid var(--border);border-radius:6px;padding:1rem 1.25rem;margin-bottom:.75rem}.summary-section h3{font-size:.9rem;font-weight:500;margin-bottom:.5rem;color:var(--accent)}.summary-section p{font-size:.8rem;color:var(--text-dim);margin-bottom:.25rem}.final-stats,.final-reputation{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.final-stats span,.final-reputation span{font-size:.75rem;font-family:monospace;padding:.15rem .4rem;background:#ffffff0a;border-radius:3px;color:var(--text-dim)}.final-skills{display:flex;flex-wrap:wrap;gap:.4rem}.final-skill{font-size:.7rem;font-family:monospace;padding:.15rem .4rem;background:#6c8cff1a;color:var(--accent);border-radius:3px;text-transform:capitalize}.final-relationships{display:flex;flex-direction:column;gap:.3rem}.final-relationship{font-size:.8rem;color:var(--text-dim)}.milestone-text{font-size:.8rem;color:var(--accent);font-style:italic;margin-bottom:.3rem}.restart-btn{background:transparent;border:1px solid var(--accent);color:var(--accent);padding:.75rem 2.5rem;font-size:1rem;letter-spacing:.1em;cursor:pointer;border-radius:4px;transition:all .3s ease}.restart-btn:hover{background:var(--accent);color:var(--bg);box-shadow:0 0 30px #6c8cff4d}.notifications-container{position:fixed;top:1rem;right:1rem;z-index:100;display:flex;flex-direction:column;gap:.5rem}.notification{padding:.6rem 1rem;border-radius:4px;font-size:.8rem;animation:slideIn .3s ease,fadeOut .3s ease 2.7s;border:1px solid}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.notification-positive{background:#4ade801a;border-color:#4ade804d;color:var(--green)}.notification-negative{background:#f871711a;border-color:#f871714d;color:var(--red)}.notification-neutral{background:var(--bg-card);border-color:var(--border);color:var(--text-dim)}.notification-warning{background:#fbbf241a;border-color:#fbbf244d;color:var(--yellow)}.notification-critical{background:#f8717126;border-color:#f8717166;color:var(--red)}@media(max-width:640px){.origin-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr);gap:.4rem}.status-header{flex-direction:column;gap:.3rem;align-items:flex-start}.panel-tabs{gap:0}.panel-tab{padding:.5rem .8rem;font-size:.7rem}.secondary-stats{flex-wrap:wrap;gap:.5rem}}
