.home-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;background:var(--color-background)}[data-theme=light] .home-screen{background:linear-gradient(135deg,beige,#e8dcc8,#ddd0b8)}[data-theme=dark] .home-screen{background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460)}.home-content{text-align:center;max-width:400px}.title{font-size:3rem;margin-bottom:.5rem;color:var(--color-secondary);text-shadow:2px 2px 4px rgba(0,0,0,.5)}.subtitle{font-size:1.25rem;color:var(--color-text-muted);margin-bottom:3rem}.menu-buttons{display:flex;flex-direction:column;gap:1rem}.menu-button{padding:1rem 2rem;font-size:1.25rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:transform .15s,box-shadow .15s}.menu-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.menu-button:active{transform:translateY(0)}.menu-button.primary{background:var(--color-primary);color:var(--color-header-text)}.menu-button.secondary{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-divider)}[data-theme=dark] .menu-button.secondary{background:linear-gradient(135deg,#2d4a6f,#1e3a5f);color:#fff;border:none}.version-info{margin-top:3rem;color:var(--color-text-muted);font-size:.875rem}@media(max-width:480px){.title{font-size:2rem}.subtitle{font-size:1rem}.menu-button{font-size:1rem;padding:.875rem 1.5rem}}.login-prompt-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease-out}.login-prompt-modal{background:var(--color-surface);border-radius:16px;padding:2rem;max-width:360px;width:100%;text-align:center;border:2px solid var(--color-primary);animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-prompt-icon{font-size:3.5rem;margin-bottom:.5rem}.login-prompt-modal h2{color:var(--color-text);margin:0 0 .5rem;font-size:1.5rem}.login-prompt-subtitle{color:var(--color-text-secondary);margin:0 0 1rem;font-size:.9rem}.login-prompt-benefits{list-style:none;padding:0;margin:0 0 1.5rem;text-align:left}.login-prompt-benefits li{color:var(--color-text);padding:.5rem 0;font-size:.95rem;border-bottom:1px solid var(--color-divider)}.login-prompt-benefits li:last-child{border-bottom:none}.login-prompt-buttons{display:flex;gap:.75rem;margin-bottom:1rem}.login-prompt-signin,.login-prompt-signup{flex:1;padding:.75rem 1rem;border:none;border-radius:8px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .2s ease}.login-prompt-signin{background:var(--color-primary);color:#fff}.login-prompt-signin:hover{filter:brightness(1.1)}.login-prompt-signup{background:var(--color-surface-variant, var(--color-background));color:var(--color-primary);border:2px solid var(--color-primary)}.login-prompt-signup:hover{background:var(--color-primary);color:#fff}.login-prompt-footer{display:flex;justify-content:center;align-items:center;gap:.75rem}.login-prompt-later,.login-prompt-dont-ask{background:transparent;border:none;color:var(--color-text-secondary);font-size:.85rem;cursor:pointer;padding:.25rem;transition:color .2s ease}.login-prompt-later:hover,.login-prompt-dont-ask:hover{color:var(--color-text)}.login-prompt-separator{color:var(--color-divider);font-size:.75rem}@media(max-width:480px){.login-prompt-modal{padding:1.5rem}.login-prompt-buttons{flex-direction:column}}.character-list-screen{min-height:100vh;padding:1rem 1rem 5rem;background:var(--color-background)}[data-theme=light] .character-list-screen{background:linear-gradient(180deg,#8b4513,sienna,peru)}[data-theme=dark] .character-list-screen{background:linear-gradient(180deg,#0d0d14,#1a1a2e,#252540)}.screen-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding:.5rem 0}.screen-header h1{margin:0;font-size:1.5rem;color:var(--color-header-text)}.settings-button{background:transparent;border:none;color:var(--color-secondary);cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.settings-button:hover{opacity:.8}.home-button{background:transparent;border:none;color:var(--color-secondary);cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.home-button:hover{opacity:.8}.loading{display:flex;align-items:center;justify-content:center;height:50vh;color:var(--color-header-text)}.filter-tabs{display:flex;background:var(--color-surface);border-radius:8px;padding:4px;margin-bottom:1rem;gap:4px}.filter-tab{flex:1;padding:.5rem .75rem;border:none;background:transparent;color:var(--color-text-muted);font-size:.85rem;font-weight:500;cursor:pointer;border-radius:6px;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:.25rem}.filter-tab:hover{background:var(--color-surface-variant)}.filter-tab.active{background:var(--color-primary);color:var(--color-header-text)}.tab-icon{font-size:.9rem}.character-list{display:flex;flex-direction:column;gap:1rem}.empty-message{color:var(--color-header-text);font-style:italic;text-align:center;padding:2rem}.character-card{background:var(--color-surface);border-radius:12px;padding:1rem;cursor:pointer;transition:transform .15s,box-shadow .15s;box-shadow:0 2px 8px #00000026}.character-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000040}.character-card.victorious{border:2px solid var(--color-gold)}.character-card.fallen{opacity:.85}.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem}.name-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.character-name{font-size:1.25rem;font-weight:700;color:var(--color-text)}.status-badge{font-size:.7rem;font-weight:600;padding:.2rem .5rem;border-radius:4px;text-transform:uppercase}.status-badge.active{background:var(--color-success);color:#fff}.status-badge.victorious{background:var(--color-gold);color:#fff}.status-badge.fallen{background:#9e9e9e;color:#fff}.difficulty-badge{font-size:.65rem;font-weight:600;padding:.15rem .4rem;border-radius:3px;text-transform:uppercase;background:var(--color-surface-variant);color:var(--color-text-muted)}.difficulty-badge.baby{background:#81c784;color:#fff}.difficulty-badge.fearful{background:#64b5f6;color:#fff}.difficulty-badge.standard{background:#ffb74d;color:#fff}.difficulty-badge.mad{background:#e57373;color:#fff}.delete-button{background:transparent;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem;opacity:.6;transition:opacity .15s}.delete-button:hover{opacity:1}.sync-status-button{background:transparent;border:none;font-size:.9rem;cursor:pointer;padding:.1rem .3rem;border-radius:4px;transition:background .15s}.sync-status-button:hover:not(:disabled){background:var(--color-surface-variant)}.sync-status-button:disabled{cursor:default}.sync-status-button.syncing{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.stats-summary{font-size:.9rem;color:var(--color-text-secondary);margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--color-divider)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.5rem}.stats-grid.two-cols{grid-template-columns:repeat(2,1fr)}.stat-column{display:flex;flex-direction:column;gap:.15rem}.stat-label{font-size:.75rem;color:var(--color-text-muted);text-transform:capitalize}.stat-value{font-size:.85rem;color:var(--color-text-secondary);font-weight:500}.last-played{font-size:.8rem;color:var(--color-primary);margin-top:.5rem}.fab-button{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);background:var(--color-primary);color:var(--color-header-text);border:none;padding:1rem 1.5rem;border-radius:50px;font-size:1rem;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #0006;transition:transform .15s,box-shadow .15s}.fab-button:hover{transform:translate(-50%) translateY(-2px);box-shadow:0 6px 16px #00000080}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:var(--color-surface);border-radius:12px;padding:1.5rem;max-width:400px;width:90%;text-align:center}.modal-content h3{margin:0 0 1rem;color:var(--color-text)}.modal-content p{color:var(--color-text-secondary);margin-bottom:1.5rem}.modal-buttons{display:flex;gap:1rem;justify-content:center}.modal-cancel{padding:.75rem 1.5rem;border:1px solid var(--color-primary);background:transparent;color:var(--color-primary);border-radius:8px;font-weight:600;cursor:pointer;transition:background .15s}.modal-cancel:hover{background:var(--color-surface-variant)}.modal-delete{padding:.75rem 1.5rem;border:none;background:var(--color-danger);color:#fff;border-radius:8px;font-weight:600;cursor:pointer;transition:background .15s}.modal-delete:hover{filter:brightness(1.1)}@media(max-width:480px){.filter-tabs{flex-wrap:wrap}.filter-tab{min-width:calc(50% - 4px)}.stats-grid{grid-template-columns:repeat(3,1fr)}.fab-button{bottom:1rem}}.character-detail-screen{min-height:100vh;background:var(--color-background);color:var(--color-text);padding-bottom:2rem}.screen-header{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--color-surface);border-bottom:1px solid var(--color-divider)}.screen-header h1{margin:0;font-size:1.25rem;color:var(--color-text)}.back-button{background:none;border:none;color:var(--color-secondary);font-size:1rem;cursor:pointer;padding:.5rem}.back-button:hover{opacity:.8}.character-header-card{background:var(--color-surface);padding:1.5rem;margin:1rem;border-radius:12px;border:1px solid var(--color-divider)}[data-theme=dark] .character-header-card{background:linear-gradient(135deg,#1a1a2e,#16213e)}.character-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.character-title h2{margin:0;font-size:1.5rem;color:var(--color-text)}.status-badge{padding:.35rem .75rem;border-radius:20px;font-size:.85rem;font-weight:600}.status-badge.active{background:#4caf5033;color:var(--color-success)}.status-badge.fallen{background:#f4433633;color:var(--color-danger)}.status-badge.victorious{background:#d4af3733;color:var(--color-gold)}.last-played{margin-top:.75rem;font-size:.85rem;color:var(--color-text-muted)}.play-time{margin-top:.25rem;font-size:.85rem;color:var(--color-text-muted)}.stats-card,.equipment-card,.inventory-card,.settings-card{background:var(--color-surface);padding:1.25rem;margin:1rem;border-radius:12px;border:1px solid var(--color-divider)}.stats-card h3,.equipment-card h3,.inventory-card h3,.settings-card h3{margin:0 0 1rem;font-size:1rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.5px}.stat-bar-group{margin-bottom:1rem}.stat-bar-label{display:flex;justify-content:space-between;margin-bottom:.35rem;font-size:.9rem;color:var(--color-text)}.stat-bar{height:8px;background:var(--color-surface-variant);border-radius:4px;overflow:hidden}.stat-bar-fill{height:100%;border-radius:4px;transition:width .3s ease}.stat-bar-fill.hp{background:linear-gradient(90deg,#dc2626,#ef4444)}.stat-bar-fill.xp{background:linear-gradient(90deg,#7c3aed,#a855f7)}.stat-bar-fill.rooms{background:linear-gradient(90deg,#0891b2,#22d3ee)}.character-detail-screen .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--color-divider)}.stat-item{text-align:center}.stat-item .stat-value{display:block;font-size:1.5rem;font-weight:700;color:var(--color-text)}.stat-item .stat-name{display:block;font-size:.7rem;color:var(--color-text-muted);text-transform:uppercase;margin-top:.25rem}.equipment-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--color-divider)}.equipment-row:last-child{border-bottom:none}.equipment-label{color:var(--color-text-muted)}.equipment-value{color:var(--color-text);font-weight:500}.weapon-stats{color:var(--color-text-muted);font-size:.85rem;margin-left:.5rem}.empty-inventory{color:var(--color-text-muted);font-style:italic}.inventory-list{display:flex;flex-direction:column;gap:.5rem}.inventory-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--color-surface-variant);border-radius:6px}.inventory-item.exhausted{opacity:.5}.item-name{flex:1;color:var(--color-text)}.item-uses{color:var(--color-text-muted);font-size:.85rem}.exhausted-badge{background:#f4433633;color:var(--color-danger);padding:.15rem .5rem;border-radius:4px;font-size:.75rem}.settings-row{display:flex;justify-content:space-between;align-items:center}.difficulty-badge{padding:.25rem .75rem;background:var(--color-surface-variant);border-radius:4px;font-size:.9rem;color:var(--color-text)}.action-buttons{display:flex;flex-direction:column;gap:.75rem;padding:1rem;margin-top:1rem}.primary-button,.secondary-button{padding:1rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .15s}.primary-button.play{background:var(--color-success);color:#fff}.primary-button.play:hover{filter:brightness(1.1)}.primary-button.fallen{background:var(--color-danger);color:#fff}.primary-button.fallen:hover{filter:brightness(1.1)}.primary-button.victory{background:var(--color-gold);color:#fff}.primary-button.victory:hover{filter:brightness(1.1)}.secondary-button.delete{background:transparent;border:1px solid var(--color-danger);color:var(--color-danger)}.secondary-button.delete:hover{background:#f443361a}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:12px;max-width:500px;width:100%;max-height:85vh;overflow-y:auto;padding:1.5rem}.modal h2{margin:0 0 1.5rem;text-align:center;color:var(--color-text)}.modal-content{margin-bottom:1.5rem}.modal-section{margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--color-divider)}.modal-section:last-child{border-bottom:none;margin-bottom:0}.modal-section h4{margin:0 0 .5rem;color:var(--color-text-muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.5px}.death-cause{color:var(--color-danger);font-size:1.1rem;font-weight:500}.final-stats-grid,.combat-record,.exploration-stats,.wealth-stats,.final-inventory{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;font-size:.9rem;color:var(--color-text-secondary)}.rewards-list{display:flex;flex-direction:column;gap:.35rem}.reward-item{padding:.35rem 0;font-size:.9rem;color:var(--color-secondary)}.epitaph,.victory-message{text-align:center;background:var(--color-surface-variant);padding:1rem;border-radius:8px;border:none!important}.epitaph-text{color:var(--color-text-muted);font-style:italic;margin:0;line-height:1.6}.victory-text{color:var(--color-gold);font-style:italic;margin:0;line-height:1.6}.modal button{width:100%;padding:.85rem;background:var(--color-primary);border:none;border-radius:8px;color:var(--color-header-text);font-size:1rem;cursor:pointer}.delete-modal{max-width:400px;text-align:center}.delete-modal p{margin:.5rem 0;color:var(--color-text-secondary)}.delete-modal .warning{color:var(--color-danger);font-size:.9rem}.modal-buttons{display:flex;gap:1rem;margin-top:1.5rem}.modal-buttons button{flex:1}.cancel-btn{background:var(--color-divider)!important;color:var(--color-text)!important}.cancel-btn:hover{filter:brightness(1.1)!important}.delete-btn{background:var(--color-danger)!important;color:#fff!important}.delete-btn:hover{filter:brightness(1.1)!important}.victory-modal h2{color:var(--color-gold)}.fallen-modal h2{color:var(--color-danger)}.loading{display:flex;align-items:center;justify-content:center;min-height:100vh;color:var(--color-text-muted)}@media(max-width:480px){.character-detail-screen .stats-grid{grid-template-columns:repeat(2,1fr)}.character-title{flex-direction:column;align-items:flex-start}.final-stats-grid,.combat-record,.exploration-stats,.wealth-stats{grid-template-columns:1fr}}.dice-roll-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn .2s ease-out}.dice-roll-overlay.fading-out{animation:fadeOut .3s ease-in forwards}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.dice-roll-container{display:flex;flex-direction:column;align-items:center;padding:2rem}.dice-roll-label{font-size:1.25rem;color:#e8e8e8;margin-bottom:1.5rem;text-align:center;font-weight:500}.dice-container{width:120px;height:120px;background:var(--color-surface, #1a1a2e);border:4px solid var(--color-secondary, #9C7AE8);border-radius:16px;display:flex;justify-content:center;align-items:center;box-shadow:0 8px 24px #0006;transition:transform .15s ease}[data-theme=light] .dice-container{background:linear-gradient(135deg,#e8dcc8,#d4c8b8);border-color:var(--color-primary)}.dice-container.rolling{animation:diceRoll .08s infinite}.dice-container.result{animation:diceBounce .3s ease-out}@keyframes diceRoll{0%{transform:scale(1) rotate(-5deg)}25%{transform:scale(1.05) rotate(3deg)}50%{transform:scale(1.1) rotate(-3deg)}75%{transform:scale(1.05) rotate(5deg)}to{transform:scale(1) rotate(-5deg)}}@keyframes diceBounce{0%{transform:scale(1)}50%{transform:scale(1.3)}to{transform:scale(1)}}.dice-face{color:var(--color-text, #E8E0F0);-webkit-user-select:none;user-select:none}[data-theme=light] .dice-face{color:var(--color-primary)}.dice-face.unicode{font-size:72px;line-height:1;margin-top:-8px}.dice-face.number{font-size:48px;font-weight:700}.dice-type-label{margin-top:1rem;font-size:1rem;color:var(--color-secondary, #9C7AE8);font-weight:700;letter-spacing:.1em}.dice-result-text{margin-top:1.5rem;font-size:1.5rem;color:#e8e8e8;font-weight:700;text-align:center;animation:resultAppear .3s ease-out}@keyframes resultAppear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.dungeon-map{display:flex;flex-direction:column;gap:1rem;padding:1rem;background:var(--color-surface-variant);border-radius:8px;min-height:200px}.dungeon-map-empty{color:var(--color-text-muted);text-align:center;padding:2rem;font-style:italic}.map-stats{display:flex;justify-content:space-between;font-size:.8rem;color:var(--color-text-muted);padding-bottom:.5rem;border-bottom:1px solid var(--color-divider)}.map-tree{display:flex;flex-direction:column;align-items:center;gap:.25rem;overflow-x:auto;padding:.5rem 0}.map-level{display:flex;flex-direction:column;align-items:center}.level-connections{display:flex;justify-content:center;gap:1rem;height:20px}.connection-line{width:2px;height:100%;background:var(--color-divider)}.level-rooms{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}.map-room{display:flex;flex-direction:column;align-items:center;padding:.5rem;min-width:50px;background:var(--color-surface);border:2px solid var(--color-divider);border-radius:6px;position:relative;transition:all .2s ease}.map-room.entrance{border-color:var(--color-secondary);background:linear-gradient(135deg,var(--color-surface) 0%,rgba(241,196,15,.1) 100%)}.map-room.current{border-color:var(--color-success);background:linear-gradient(135deg,var(--color-surface) 0%,rgba(78,205,196,.15) 100%);box-shadow:0 0 10px #4ecdc44d}.map-room.has-unexplored{border-color:var(--color-info)}.room-icon{font-size:1rem;height:1.25rem;display:flex;align-items:center;justify-content:center}.current-marker{color:var(--color-success);margin-right:.15rem;font-size:.8rem}.room-label{font-size:.7rem;font-weight:600;color:var(--color-text);margin-top:.15rem}.unexplored-count{position:absolute;top:-6px;right:-6px;background:var(--color-info);color:#fff;font-size:.6rem;font-weight:600;padding:.1rem .25rem;border-radius:4px;min-width:16px;text-align:center}.branch-indicator{position:absolute;bottom:-12px;color:var(--color-divider);font-size:.8rem;line-height:1}.map-legend{display:flex;justify-content:center;gap:1rem;font-size:.7rem;color:var(--color-text-muted);padding-top:.5rem;border-top:1px solid var(--color-divider)}.legend-item{display:flex;align-items:center;gap:.25rem}.legend-star{color:var(--color-success)}.legend-question{background:var(--color-info);color:#fff;font-size:.6rem;padding:0 .2rem;border-radius:2px}@media(max-width:400px){.map-room{min-width:40px;padding:.35rem}.room-icon{font-size:.9rem}.room-label{font-size:.6rem}.level-rooms{gap:.5rem}}.game-screen{display:flex;flex-direction:column;min-height:100vh;background:var(--color-background)}.game-header{padding:1rem;background:var(--color-surface);border-bottom:1px solid var(--color-divider)}.app-title{font-size:1.25rem;font-weight:600;color:var(--color-text)}.game-content{flex:1;display:flex;flex-direction:column;gap:1rem;padding:1rem;overflow-y:auto}.card{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:12px;padding:1rem}.character-card .character-name{font-size:1.5rem;font-weight:600;color:var(--color-text);margin-bottom:1rem}.hp-section{margin-bottom:1rem}.hp-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.875rem;color:var(--color-text-secondary)}.hp-bar{height:12px;background:var(--color-surface-variant);border-radius:6px;overflow:hidden}.hp-fill{height:100%;background:linear-gradient(90deg,var(--color-health-bar) 0%,#ff6b6b 100%);border-radius:6px;transition:width .3s ease}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.stat{display:flex;flex-direction:column;align-items:center;text-align:center}.stat-icon{font-size:1rem;margin-bottom:.25rem}.stat-label{font-size:.7rem;color:var(--color-text-muted);text-transform:uppercase}.stat-value{font-size:1rem;font-weight:600;color:var(--color-text)}.stat-target{font-size:.75rem;color:var(--color-text-muted)}.room-card{flex:1;display:flex;flex-direction:column}.room-name{font-size:1.5rem;font-weight:600;color:var(--color-text);margin-bottom:.5rem}.room-description{color:var(--color-text-secondary);font-size:.9rem;margin-bottom:1rem;line-height:1.4}.divider{height:1px;background:var(--color-divider);margin:1rem 0}.doors-section{margin-bottom:1rem}.doors-label{font-size:.875rem;font-weight:600;color:var(--color-text-muted);margin-bottom:.75rem}.doors-list{display:flex;flex-direction:column;gap:.5rem}.door-button{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border:none;border-radius:8px;cursor:pointer;transition:all .15s;text-align:left}.door-button.unexplored{background:linear-gradient(135deg,var(--color-unexplored-door) 0%,#152a45 100%);color:var(--color-text)}[data-theme=light] .door-button.unexplored{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1565c0}.door-button.unexplored:hover{filter:brightness(1.1)}.door-button.explored{background:linear-gradient(135deg,var(--color-explored-door) 0%,#0f3d0f 100%);color:var(--color-text)}[data-theme=light] .door-button.explored{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#2e7d32}.door-button.entry{background:linear-gradient(135deg,var(--color-entry-door) 0%,#3d3510 100%);color:var(--color-text-secondary)}[data-theme=light] .door-button.entry{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#8d6e63}.door-button:disabled{cursor:default}.door-info{display:flex;flex-direction:column;gap:.125rem}.door-number{font-weight:600;font-size:1rem}.door-status{font-size:.75rem;color:inherit;opacity:.8}.door-icons{display:flex;align-items:center;gap:.5rem;font-size:1.25rem}.door-icons .arrow{font-size:1rem;color:inherit}.door-icons .check{color:var(--color-text);font-weight:700}.door-icons .question{color:var(--color-warning);font-weight:700;font-size:1.25rem}.door-icons .door-icon{font-size:1.25rem}.room-stats{display:flex;justify-content:space-between;font-size:.75rem;color:var(--color-text-muted);padding-top:.5rem;border-top:1px solid var(--color-divider);margin-top:auto}.combat-log-section{margin-top:1rem;border-top:1px solid var(--color-divider);padding-top:.75rem}.combat-log-title{font-size:.85rem;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.combat-log{background:#0003;border:1px solid var(--color-divider);border-radius:8px;padding:.75rem;max-height:150px;overflow-y:auto;scroll-behavior:smooth}[data-theme=light] .combat-log{background:#0000000d}.combat-log::-webkit-scrollbar{width:6px}.combat-log::-webkit-scrollbar-track{background:#0000001a;border-radius:3px}.combat-log::-webkit-scrollbar-thumb{background:var(--color-divider);border-radius:3px}.combat-log::-webkit-scrollbar-thumb:hover{background:var(--color-text-muted)}.log-entry{padding:.25rem 0;font-size:.8rem;color:var(--color-text-secondary);border-bottom:1px solid var(--color-divider)}.log-entry:last-child{border-bottom:none}.monster-info{background:var(--color-monster-card);border:2px solid var(--color-danger);border-radius:8px;padding:1rem;margin-bottom:1rem;text-align:center}.monster-info .monster-name{font-size:1.25rem;font-weight:600;color:var(--color-danger);margin-bottom:.5rem}.monster-info .monster-hp{font-size:1rem;color:#e8e8e8;margin-bottom:.25rem}[data-theme=light] .monster-info .monster-hp{color:#a0a0a0}.monster-info .monster-hp-bar{height:6px;background:#ffffff26;border-radius:3px;overflow:hidden;margin-bottom:.5rem}[data-theme=light] .monster-info .monster-hp-bar{background:#0000001a}.monster-info .monster-hp-fill{height:100%;background:linear-gradient(90deg,var(--color-danger) 0%,#ff6b6b 100%);border-radius:3px;transition:width .3s ease}.monster-info .monster-stats{font-size:.8rem;color:#a0a0a0}.combat-actions{display:flex;flex-direction:column;gap:.5rem}.action-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .15s}.action-button.attack{background:linear-gradient(135deg,var(--color-danger) 0%,#c23a51 100%);color:#fff}.action-button.flee{background:linear-gradient(135deg,var(--color-warning) 0%,#d68910 100%);color:#fff}.action-button.potion{background:linear-gradient(135deg,#a855f7,#8b44e0);color:#fff}.action-button.buy{background:linear-gradient(135deg,#2d4a6f,#1e3a5f);color:#fff}.action-button.buy:disabled{opacity:.5;cursor:not-allowed}.action-button.leave{background:transparent;border:1px solid var(--color-divider);color:var(--color-text-secondary)}.action-button:hover:not(:disabled){transform:translateY(-1px)}.peddler-actions{display:flex;flex-direction:column;gap:.5rem}.level-up-panel{background:linear-gradient(135deg,#1c4a1c,#102a10);border:2px solid var(--color-success);border-radius:8px;padding:1.5rem;text-align:center}[data-theme=light] .level-up-panel{background:linear-gradient(135deg,#e8f5e9,#c8e6c9)}.level-up-panel h3{margin:0 0 1rem;color:var(--color-success);font-size:1.5rem}.reward-info{margin-bottom:1rem}.reward-name{font-size:1.25rem;font-weight:600;color:var(--color-text);margin-bottom:.25rem}.reward-desc{color:var(--color-text-muted);font-size:.9rem}.title-buttons,.zweihander-buttons{display:flex;gap:.5rem}.title-buttons button,.zweihander-buttons button{flex:1;padding:.75rem;background:linear-gradient(135deg,var(--color-info) 0%,#1e3a5f 100%);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:1rem}.title-buttons button:hover,.zweihander-buttons button:hover{filter:brightness(1.1)}.confirm-level-up{width:100%;padding:.75rem;background:linear-gradient(135deg,var(--color-success) 0%,#3ba99a 100%);border:none;border-radius:4px;color:#000;font-weight:600;font-size:1rem;cursor:pointer}.confirm-level-up:hover{filter:brightness(1.1)}.monster-mastery-selection{text-align:left}.monster-mastery-selection p{margin-bottom:.75rem;color:var(--color-text-secondary)}.mastery-groups{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.mastery-group{display:flex;align-items:center;gap:.5rem}.mastery-group label{min-width:50px;font-weight:600;color:var(--color-text-secondary)}.mastery-group select{flex:1;padding:.5rem;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:4px;color:var(--color-text)}.game-over-panel{background:linear-gradient(135deg,#2a1010,#1a0808);border:2px solid var(--color-danger);border-radius:8px;padding:1.5rem;text-align:center}[data-theme=light] .game-over-panel{background:linear-gradient(135deg,#ffebee,#ffcdd2)}.game-over-panel h3{margin:0 0 1rem;color:var(--color-danger);font-size:1.5rem}.game-over-panel p{color:var(--color-text-secondary);margin-bottom:1rem}.final-stats{text-align:left;margin-bottom:1rem;padding:.75rem;background:#0003;border-radius:4px}[data-theme=light] .final-stats{background:#0000000d}.final-stats>div{padding:.25rem 0;color:var(--color-text-secondary)}.game-over-panel button{width:100%;padding:.75rem;background:linear-gradient(135deg,var(--color-info) 0%,#1e3a5f 100%);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:1rem}.game-footer{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:var(--color-surface);border-top:1px solid var(--color-divider)}.footer-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem;background:transparent;border:2px solid var(--color-warning);border-radius:8px;color:var(--color-warning);font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s}.footer-button:hover{background:#f39c121a}.footer-button.level-up{border-color:var(--color-success);color:var(--color-success);animation:pulse 1.5s infinite}.footer-button.trade-silver{border-color:var(--color-secondary);color:var(--color-secondary)}.footer-button.save{border-color:var(--color-danger);color:var(--color-danger)}@keyframes pulse{0%,to{box-shadow:0 0 #4ecdc466}50%{box-shadow:0 0 0 8px #4ecdc400}}.key{display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;height:1.5rem;padding:0 .25rem;background:#ffffff26;border-radius:4px;font-size:.75rem;font-weight:600;color:inherit}.action-button .key{background:#00000040;color:#fff}.footer-button .key{background:#0000001a}[data-theme=dark] .footer-button .key{background:#ffffff26}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:12px;padding:1.5rem;width:100%;max-width:400px;max-height:80vh;overflow-y:auto}.modal h2{margin:0 0 1rem;font-size:1.25rem;color:var(--color-text)}.modal.map-modal{max-width:500px;width:95%}.inventory-modal{max-width:400px}.inventory-silver{display:flex;align-items:center;gap:.5rem;color:var(--color-text-muted);font-size:1rem;margin-bottom:.75rem}.silver-icon{font-size:1.25rem}.inventory-divider{height:1px;background:var(--color-divider);margin:.75rem 0}.inventory-section{margin-bottom:.5rem}.section-header{display:flex;align-items:center;gap:.5rem;color:var(--color-text-muted);font-size:.9rem;margin-bottom:.5rem}.section-icon{font-size:1.1rem}.weapon-name{color:var(--color-primary);font-weight:600;font-size:1.1rem;margin-bottom:.25rem}.weapon-description{color:var(--color-text-muted);font-size:.9rem}.inventory-items{display:flex;flex-direction:column;gap:.5rem}.inventory-item-card{background:var(--color-surface-variant);border:1px solid var(--color-divider);border-radius:8px;padding:.75rem;transition:opacity .2s}.inventory-item-card.exhausted{opacity:.5}.item-card-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.item-emoji{font-size:1.1rem}.item-card-name{flex:1;font-weight:600;color:var(--color-text)}.item-card-bar{height:4px;width:80px;border-radius:2px;margin-bottom:.5rem}.item-card-description{color:var(--color-text-muted);font-size:.85rem}.use-item-btn{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;background:var(--color-success)!important;border:none;border-radius:50%;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center}.use-item-btn:hover{filter:brightness(1.1)}.empty-inventory{color:var(--color-text-muted);font-style:italic;text-align:center;padding:1rem}.close-btn{margin-top:1rem}.stats-list{margin-bottom:1rem}.stats-list>div{padding:.25rem 0;color:var(--color-text-secondary)}.stats-list hr{border:none;border-top:1px solid var(--color-divider);margin:.75rem 0}.modal button{width:100%;padding:.75rem;background:linear-gradient(135deg,var(--color-info) 0%,#1e3a5f 100%);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:1rem}.modal button:hover{filter:brightness(1.1)}.combat-result-overlay{background:#000000e6}.combat-result-modal{background:#000000f2;border:2px solid var(--color-divider);max-width:350px;text-align:center}[data-theme=light] .combat-result-modal{background:var(--color-surface)}.combat-result-content{padding:1.5rem 1rem}.combat-result-line{font-size:1.1rem;font-weight:600;line-height:1.8;color:var(--color-text);margin:.25rem 0}.combat-result-line:empty{height:.5rem}.continue-button{margin-top:1rem;padding:1rem 2rem!important;background:linear-gradient(135deg,var(--color-primary) 0%,#654321 100%)!important;font-weight:600;font-size:1rem!important;letter-spacing:.5px;border-radius:8px!important}.continue-button:hover{filter:brightness(1.1)}@media(min-width:768px){.game-screen{max-width:600px;margin:0 auto}.game-footer{flex-direction:row;flex-wrap:wrap}.footer-button{flex:1;min-width:calc(50% - .25rem)}}@media(max-width:400px){.stats-row{grid-template-columns:repeat(2,1fr);gap:.75rem}.stat-value{font-size:.9rem}.stat-target{font-size:.65rem}}.victory-overlay{background:#000000f2}.victory-modal{background:var(--color-surface);border:2px solid var(--color-secondary);max-width:450px;text-align:center;padding:2rem}.victory-title{font-size:1.75rem;color:var(--color-secondary);margin:0 0 1.5rem;text-shadow:0 2px 4px rgba(0,0,0,.5)}.victory-message{font-size:1.1rem;color:var(--color-text);line-height:1.6;margin:0 0 1rem;padding:0 .5rem}.victory-congrats{font-size:1.25rem;color:var(--color-secondary);font-style:italic;margin:0 0 1.5rem}.victory-stats{background:var(--color-surface-variant);border-radius:8px;padding:1rem;margin-bottom:1.5rem}.victory-stat{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--color-divider)}.victory-stat:last-child{border-bottom:none}.victory-stat .stat-label{color:var(--color-text-muted)}.victory-stat .stat-value{color:var(--color-text);font-weight:600}.victory-button{width:100%;padding:1rem 1.5rem!important;background:linear-gradient(135deg,var(--color-success) 0%,#1e4a1e 100%)!important;border:none;border-radius:8px!important;color:#fff;font-size:1rem!important;font-weight:600;cursor:pointer}.victory-button:hover{filter:brightness(1.1)}.action-button.scroll{background:linear-gradient(135deg,#5a3d8a,#3d2a5f);border-color:#9b59b6}.action-button.scroll:hover{background:linear-gradient(135deg,#6a4d9a,#4d3a6f)}.action-button.aegis{background:linear-gradient(135deg,#2980b9,#1a5276);border-color:#3498db}.action-button.aegis:hover{background:linear-gradient(135deg,#3498db,#2980b9)}.aegis-active-indicator{padding:.75rem;background:#2980b933;border:1px solid #3498db;border-radius:8px;color:#3498db;font-weight:600;text-align:center;animation:aegis-pulse 2s ease-in-out infinite}@keyframes aegis-pulse{0%,to{opacity:.8}50%{opacity:1}}.footer-button.false-omen{border-color:#9b59b6;color:#9b59b6}.footer-button.false-omen:hover{background:#9b59b61a}.false-omen-active{padding:.75rem;background:#9b59b633;border:1px solid #9b59b6;border-radius:8px;color:#9b59b6;text-align:center;font-size:.9rem}.false-omen-modal{max-width:380px}.false-omen-description{color:var(--color-text-secondary);margin-bottom:1rem;text-align:center}.false-omen-options{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-bottom:1rem}.false-omen-option{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem;background:var(--color-surface-variant);border:1px solid var(--color-divider);border-radius:8px;cursor:pointer;transition:all .15s}.false-omen-option:hover{border-color:#9b59b6}.option-emoji{font-size:1.5rem}.option-label{font-size:.8rem;color:var(--color-text-secondary)}.cancel-button{width:100%;padding:.75rem;background:transparent;border:1px solid var(--color-divider);border-radius:4px;color:var(--color-text-muted);cursor:pointer;font-size:.9rem}.cancel-button:hover{background:var(--color-surface-variant)}.cloak-modal{max-width:380px;text-align:center}.cloak-modal h2{color:var(--color-info)}.cloak-monster-info{margin-bottom:1rem;padding:.75rem;background:#e74c3c1a;border:1px solid var(--color-danger);border-radius:8px}.cloak-monster-info p{margin:0;color:var(--color-text)}.monster-details{font-size:.85rem;color:var(--color-text-muted)!important;margin-top:.25rem!important}.cloak-description{color:var(--color-text-secondary);margin-bottom:1rem;font-size:.9rem;line-height:1.4}.cloak-actions{display:flex;flex-direction:column;gap:.5rem}.cloak-use-button{padding:.875rem;background:linear-gradient(135deg,var(--color-info) 0%,#1a5276 100%)!important;border:none;border-radius:8px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer}.cloak-use-button:hover{filter:brightness(1.1)}.cloak-fight-button{padding:.875rem;background:linear-gradient(135deg,var(--color-danger) 0%,#8b2020 100%)!important;border:none;border-radius:8px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer}.cloak-fight-button:hover{filter:brightness(1.1)}.empty-room-modal{max-width:400px;text-align:center}.empty-room-modal h2{color:var(--color-text-muted);margin-bottom:1rem}.empty-room-content{background:var(--color-surface-variant);border-radius:8px;padding:1.25rem;margin-bottom:1.25rem}.empty-room-line{color:var(--color-text-secondary);font-size:1rem;line-height:1.6;margin:0;font-style:italic}.empty-room-line:not(:last-child){margin-bottom:.75rem}.trap-modal{max-width:400px;text-align:center}.trap-modal.avoided h2{color:var(--color-success)}.trap-modal.triggered h2{color:var(--color-danger)}.trap-content{background:var(--color-surface-variant);border-radius:8px;padding:1.25rem;margin-bottom:1.25rem}.trap-line{color:var(--color-text-secondary);font-size:1rem;line-height:1.6;margin:0 0 .75rem}.trap-damage{color:var(--color-danger);font-size:1.2rem;font-weight:600;margin:.75rem 0}.trap-roll{color:var(--color-text-muted);font-size:.9rem;margin:0}.scroll-selection-modal{max-width:400px;width:90%}.scroll-selection-modal h2{color:#9b59b6;margin-bottom:.5rem}.scroll-modal-subtitle{color:var(--color-text-muted);font-size:.9rem;margin-bottom:1rem;text-align:center}.scroll-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.scroll-item{background:var(--color-surface-variant);border:2px solid var(--color-divider);border-radius:8px;padding:1rem;cursor:pointer;transition:all .15s}.scroll-item:hover{border-color:#9b59b6}.scroll-item.palms_open{border-color:#f57c00}.scroll-item.palms_open:hover{border-color:#ff9800;background:#f57c001a}.scroll-item.daemon{border-color:#7b1fa2}.scroll-item.daemon:hover{border-color:#9c27b0;background:#7b1fa21a}.scroll-item.aegis{border-color:#0288d1}.scroll-item.aegis:hover{border-color:#03a9f4;background:#0288d11a}.scroll-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.scroll-name{font-weight:600;font-size:1.1rem;color:var(--color-text)}.scroll-uses{font-size:.85rem;color:var(--color-success);background:#4caf5033;padding:.2rem .5rem;border-radius:4px}.scroll-effect{font-size:.9rem;color:var(--color-text-secondary)}.soothsayer-modal{max-width:340px;text-align:center}.soothsayer-modal h2{color:#9b59b6}.soothsayer-description{color:var(--color-text-secondary);margin-bottom:1.25rem;font-size:.95rem}.soothsayer-actions{display:flex;flex-direction:column;gap:.75rem}.soothsayer-silver-button{padding:1rem;background:linear-gradient(135deg,var(--color-secondary) 0%,#a08328 100%)!important;border:none;border-radius:8px;color:var(--color-surface);font-size:1.1rem;font-weight:600;cursor:pointer}.soothsayer-silver-button:hover{filter:brightness(1.1)}.soothsayer-points-button{padding:1rem;background:linear-gradient(135deg,#9b59b6,#7d4391)!important;border:none;border-radius:8px;color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer}.soothsayer-points-button:hover{filter:brightness(1.1)}.soothsayer-encounter-modal{max-width:380px;text-align:center}.soothsayer-encounter-modal h2{color:#9b59b6;margin-bottom:1rem}.soothsayer-hint{color:var(--color-text-muted);font-size:.85rem;margin-bottom:1.5rem;font-style:italic;line-height:1.5}.soothsayer-roll-button{padding:1rem 2rem;background:linear-gradient(135deg,#9b59b6,#7d4391);border:none;border-radius:8px;color:#fff;font-size:1.2rem;font-weight:600;cursor:pointer;transition:all .2s ease}.soothsayer-roll-button:hover{filter:brightness(1.1);transform:scale(1.05)}.soothsayer-result-modal{max-width:380px;text-align:center}.soothsayer-result-modal.success h2{color:var(--color-success)}.soothsayer-result-modal.failure h2{color:var(--color-danger)}.soothsayer-roll-result{font-size:1.1rem;color:var(--color-text-secondary);margin-bottom:1rem}.roll-number{display:inline-block;font-size:1.5rem;font-weight:700;width:2rem;height:2rem;line-height:2rem;border-radius:6px;margin:0 .25rem}.roll-number.odd{background:var(--color-success);color:var(--color-surface)}.roll-number.even{background:var(--color-danger);color:#fff}.soothsayer-result-description{color:var(--color-text-secondary);font-size:1rem;margin-bottom:1.5rem;line-height:1.5}.soothsayer-result-description.damage{color:var(--color-danger)}.soothsayer-result-description .damage-amount{display:block;font-size:1.3rem;font-weight:700;margin-top:.5rem}.level-up-available-modal{max-width:380px;text-align:center;border:2px solid var(--color-secondary);box-shadow:0 0 30px #f1c40f4d}.level-up-available-modal h2{color:var(--color-secondary);margin-bottom:1rem;text-shadow:0 0 10px rgba(241,196,15,.5)}.level-up-description{color:var(--color-text);font-size:1.1rem;margin-bottom:.75rem}.level-up-hint{color:var(--color-text-muted);font-size:.9rem;margin-bottom:1.5rem;font-style:italic}.level-up-available-actions{display:flex;flex-direction:column;gap:.75rem}.level-up-now-button{padding:1rem 2rem;background:linear-gradient(135deg,var(--color-secondary) 0%,#d4a00a 100%);border:none;border-radius:8px;color:var(--color-surface);font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .2s ease}.level-up-now-button:hover{filter:brightness(1.1);transform:scale(1.05);box-shadow:0 0 20px #f1c40f80}.level-up-later-button{padding:.75rem 1.5rem;background:transparent;border:1px solid var(--color-divider);border-radius:8px;color:var(--color-text-muted);font-size:.95rem;cursor:pointer;transition:all .2s ease}.level-up-later-button:hover{border-color:var(--color-text-muted);color:var(--color-text-secondary)}.help-modal{max-width:420px}.help-modal h2{color:var(--color-text);margin-bottom:1.25rem;text-align:center}.help-section{margin-bottom:1rem}.help-section h3{color:var(--color-text-secondary);font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;padding-bottom:.25rem;border-bottom:1px solid var(--color-divider)}.help-grid{display:flex;flex-direction:column;gap:.35rem}.help-row{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:var(--color-text)}.help-desc{color:var(--color-text-secondary)}.help-modal .continue-button{margin-top:1rem;width:100%}.peddler-screen{display:flex;flex-direction:column;min-height:100vh;background:var(--color-background);color:var(--color-text)}.loading{display:flex;align-items:center;justify-content:center;height:100vh;color:var(--color-text-muted)}.shop-header{padding:1.5rem;background:var(--color-surface);border-bottom:1px solid var(--color-divider);text-align:center}.shop-header h1{margin:0;font-size:1.5rem;color:var(--color-secondary)}.shop-header .subtitle{margin:.5rem 0 1rem;font-style:italic;color:var(--color-text-secondary)}.shop-header .stats-row{display:flex;justify-content:center;gap:2rem;font-weight:600}.shop-header .stats-row span:first-child{color:var(--color-secondary)}.shop-header .stats-row span:last-child{color:var(--color-danger)}.message-banner{padding:1rem;background:var(--color-info);color:#fff;text-align:center;cursor:pointer}.shop-content{flex:1;padding:1rem;overflow-y:auto}.shop-section{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:12px;padding:1rem;margin-bottom:1rem}.shop-section h2{margin:0 0 1rem;font-size:1.1rem;color:var(--color-secondary)}.shop-table{display:flex;flex-direction:column;gap:.5rem}.table-header{display:flex;padding:.5rem;font-size:.75rem;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;border-bottom:1px solid var(--color-divider)}.table-row{display:flex;align-items:center;padding:.75rem .5rem;border-bottom:1px solid var(--color-divider)}.table-row:last-child{border-bottom:none}.col-item{flex:3;display:flex;flex-direction:column;gap:.25rem}.col-price{flex:1;text-align:right;padding-right:1rem;color:var(--color-secondary);font-weight:600}.col-action{flex:1;text-align:right}.item-name{font-weight:600;color:var(--color-text)}.item-name.owned{text-decoration:line-through;color:var(--color-text-muted)}.item-desc{font-size:.8rem;color:var(--color-text-muted)}.trade-in-label{color:var(--color-success);font-style:italic;font-weight:400}.empty-text{color:var(--color-text-muted);font-style:italic;text-align:center;padding:1rem}.cant-afford{color:var(--color-text-muted)}.buy-btn{padding:.5rem 1rem;background:var(--color-success);border:none;border-radius:4px;color:#fff;font-weight:600;cursor:pointer;transition:background .15s}.buy-btn:hover{filter:brightness(1.1)}.sell-btn{padding:.5rem 1rem;background:var(--color-danger);border:none;border-radius:4px;color:#fff;font-weight:600;cursor:pointer;transition:background .15s}.sell-btn:hover{filter:brightness(1.1)}.shop-footer{padding:1rem;background:var(--color-surface);border-top:1px solid var(--color-divider)}.leave-btn{width:100%;padding:1rem;background:var(--color-primary);border:none;border-radius:8px;color:var(--color-header-text);font-size:1rem;font-weight:600;cursor:pointer;transition:background .15s;display:flex;align-items:center;justify-content:center;gap:.5rem}.leave-btn:hover{filter:brightness(1.1)}.leave-btn .key{display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;height:1.5rem;padding:0 .25rem;background:#ffffff26;border-radius:4px;font-size:.75rem;font-weight:600}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.confirm-dialog{background:var(--color-surface);border:1px solid var(--color-divider);border-radius:12px;padding:1.5rem;width:100%;max-width:320px;text-align:center}.confirm-dialog h3{margin:0 0 1rem;color:var(--color-secondary)}.confirm-dialog p{margin:.5rem 0;color:var(--color-text-secondary)}.confirm-buttons{display:flex;gap:.75rem;margin-top:1.5rem}.confirm-buttons button{flex:1;padding:.75rem;border:none;border-radius:6px;font-weight:600;cursor:pointer}.cancel-btn{background:var(--color-divider);color:var(--color-text)}.cancel-btn:hover{filter:brightness(1.1)}.confirm-btn{background:var(--color-success);color:#fff}.confirm-btn:hover{filter:brightness(1.1)}@media(min-width:768px){.peddler-screen{max-width:600px;margin:0 auto}}@media(max-width:400px){.col-price,.col-action{flex:.8}.buy-btn,.sell-btn{padding:.4rem .75rem;font-size:.85rem}}.settings-screen{min-height:100vh;padding:1rem;background:var(--color-background);color:var(--color-text)}.screen-header h1{margin:0;font-size:1.5rem;flex:1;color:var(--color-text)}.settings-screen .home-button{background:transparent;border:none;color:var(--color-secondary);cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.settings-screen .home-button:hover{opacity:.8}.settings-list{max-width:600px}.settings-section{margin-bottom:2rem}.settings-section h2{font-size:1rem;color:var(--color-text-muted);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.05em}.setting-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:var(--color-surface);border-radius:4px;margin-bottom:.5rem}.setting-item.theme-toggle{padding:1rem}.theme-info{display:flex;align-items:center;gap:1rem}.theme-icon{font-size:1.5rem}.theme-labels{display:flex;flex-direction:column;gap:.25rem}.theme-title{font-weight:600;color:var(--color-text)}.theme-description{font-size:.875rem;color:var(--color-text-muted)}.toggle{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-weight:600;min-width:60px;transition:background .15s}.toggle.on{background:var(--color-primary);color:var(--color-header-text)}.toggle.off{background:var(--color-divider);color:var(--color-text-muted)}.toggle:hover{opacity:.9}.setting-note{margin-top:.5rem;padding:.5rem;color:var(--color-text-muted);font-size:.875rem;font-style:italic}.shortcuts-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem}.shortcut{display:flex;align-items:center;gap:.75rem;padding:.5rem;background:var(--color-surface);border-radius:4px}.shortcut .key{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .5rem;background:var(--color-surface-variant);border-radius:4px;font-weight:600;font-size:.875rem;font-family:monospace;color:var(--color-text)}.about-text{color:var(--color-text-muted);line-height:1.6}.setting-item.auth-status{padding:1rem}.auth-info{display:flex;align-items:center;gap:1rem}.auth-icon{font-size:1.5rem}.auth-details{display:flex;flex-direction:column;gap:.25rem}.auth-email{font-weight:600;color:var(--color-text)}.auth-sync-status{font-size:.875rem;color:var(--color-text-muted)}.sync-time{color:var(--color-text-muted);font-size:.9rem}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:var(--color-surface);border-radius:8px;padding:1.5rem;max-width:360px;width:100%}.modal-content h3{margin:0 0 .5rem;color:var(--color-text)}.modal-content p{margin:0 0 1.5rem;color:var(--color-text-muted)}.modal-buttons{display:flex;gap:.75rem;justify-content:flex-end}.modal-cancel,.modal-delete{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-weight:500}.modal-cancel{background:var(--color-divider);color:var(--color-text)}.modal-cancel:hover{opacity:.9}.modal-delete{background:var(--color-danger);color:#fff}.modal-delete:hover{opacity:.9}.modal-delete:disabled{opacity:.6;cursor:not-allowed}.attribution-modal{max-width:500px;max-height:80vh;display:flex;flex-direction:column}.attribution-scroll{overflow-y:auto;flex:1;margin-bottom:1rem;padding-right:.5rem}.attribution-intro{color:var(--color-text);line-height:1.6;margin-bottom:1.5rem}.attribution-section{margin-bottom:1.5rem}.attribution-section h4{color:var(--color-primary);margin:0 0 .5rem;font-size:1rem;text-transform:uppercase;letter-spacing:.05em}.attribution-description{color:var(--color-text-muted);font-size:.9rem;line-height:1.5;margin:0 0 .75rem}.attribution-list{list-style:none;padding:0;margin:0}.attribution-list li{padding:.4rem 0;border-bottom:1px solid var(--color-divider)}.attribution-list li:last-child{border-bottom:none}.attribution-list a{color:var(--color-secondary);text-decoration:none;font-weight:500}.attribution-list a:hover{text-decoration:underline}.attribution-note{color:var(--color-text-muted);font-size:.85rem}.attribution-subheader{color:var(--color-text-muted);font-size:.85rem;font-style:italic;padding-top:.75rem!important}@media(max-width:480px){.shortcuts-list{grid-template-columns:1fr}.setting-item.theme-toggle{flex-direction:column;align-items:flex-start;gap:1rem}.setting-item.theme-toggle .toggle{align-self:flex-end}}.new-character-screen{min-height:100vh;padding:1rem;background:var(--color-background);color:var(--color-text)}.screen-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.screen-header h1{margin:0;font-size:1.5rem;color:var(--color-text)}.back-button{background:transparent;border:1px solid var(--color-divider);color:var(--color-text-secondary);padding:.5rem 1rem;border-radius:4px;cursor:pointer;transition:background .15s}.back-button:hover{background:var(--color-surface-variant)}.form-content{max-width:500px;margin:0 auto}.error-message{background:#e9456033;border:1px solid var(--color-danger);color:var(--color-danger);padding:.75rem;border-radius:4px;margin-bottom:1rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:var(--color-text-muted);text-transform:uppercase;font-size:.875rem;letter-spacing:.05em}.form-group input{width:100%;padding:.75rem;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:4px;color:var(--color-text);font-size:1rem}.form-group input:focus{outline:none;border-color:var(--color-secondary)}.form-group input::placeholder{color:var(--color-text-muted)}.weapon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem}.weapon-card{background:var(--color-surface);border:2px solid var(--color-divider);border-radius:8px;padding:1rem;cursor:pointer;transition:border-color .15s,transform .15s}.weapon-card:hover{border-color:var(--color-text-muted)}.weapon-card.selected{border-color:var(--color-secondary);background:var(--color-surface-variant)}.weapon-name{font-weight:600;margin-bottom:.5rem;color:var(--color-text)}.weapon-stats{display:flex;gap:.5rem;font-size:.75rem;color:var(--color-text-muted)}.difficulty-options{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:.75rem}.difficulty-option{background:var(--color-surface);border:2px solid var(--color-divider);border-radius:8px;padding:1rem;text-align:center;cursor:pointer;transition:border-color .15s}.difficulty-option:hover{border-color:var(--color-text-muted)}.difficulty-option.selected{border-color:var(--color-secondary);background:var(--color-surface-variant)}.difficulty-name{display:block;font-weight:600;margin-bottom:.25rem;white-space:nowrap;color:var(--color-text)}.difficulty-desc{display:block;font-size:.75rem;color:var(--color-text-muted)}.info-card{background:var(--color-surface-variant);border:1px solid var(--color-secondary);border-radius:8px;padding:1rem;margin-bottom:1.5rem;color:var(--color-secondary);font-style:italic}.create-button{width:100%;padding:1rem;background:var(--color-primary);border:none;border-radius:8px;color:var(--color-header-text);font-size:1.125rem;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s}.create-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #0006}.create-button:disabled{opacity:.5;cursor:not-allowed}@media(min-width:640px){.difficulty-options{grid-template-columns:repeat(4,1fr)}}@media(max-width:480px){.difficulty-options,.weapon-grid{grid-template-columns:1fr}}.auth-screen{min-height:100vh;padding:1rem;background:var(--color-background);color:var(--color-text);display:flex;flex-direction:column}.auth-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.auth-header h1{margin:0;font-size:1.5rem;flex:1;color:var(--color-text)}.auth-back-button{background:transparent;border:1px solid var(--color-divider);color:var(--color-text-secondary);padding:.5rem 1rem;border-radius:4px;cursor:pointer;transition:background .15s}.auth-back-button:hover{background:var(--color-surface-variant)}.auth-container{max-width:400px;width:100%;margin:0 auto}.auth-card{background:var(--color-surface);border-radius:8px;padding:1.5rem;margin-bottom:1rem}.auth-card h2{margin:0 0 .5rem;font-size:1.25rem;color:var(--color-text)}.auth-card p{margin:0 0 1.5rem;color:var(--color-text-muted);font-size:.9rem}.auth-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.9rem;font-weight:500;color:var(--color-text-secondary)}.form-input{padding:.75rem 1rem;border:1px solid var(--color-divider);border-radius:4px;background:var(--color-background);color:var(--color-text);font-size:1rem;transition:border-color .15s}.form-input:focus{outline:none;border-color:var(--color-primary)}.form-input.error{border-color:var(--color-danger)}.form-input::placeholder{color:var(--color-text-muted)}.password-input-wrapper{position:relative}.password-input-wrapper .form-input{width:100%;padding-right:3rem;box-sizing:border-box}.password-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--color-text-muted);cursor:pointer;padding:.5rem;font-size:1.2rem}.password-toggle:hover{color:var(--color-text)}.password-requirements{font-size:.8rem;color:var(--color-text-muted);margin-top:.25rem}.password-requirements ul{margin:.5rem 0 0 1rem;padding:0}.password-requirements li{margin-bottom:.25rem}.password-requirements li.valid{color:var(--color-success)}.error-message{background:#e74c3c1a;border:1px solid var(--color-danger);border-radius:4px;padding:.75rem 1rem;color:var(--color-danger);font-size:.9rem;margin-bottom:1rem}.success-message{background:#2ecc711a;border:1px solid var(--color-success);border-radius:4px;padding:.75rem 1rem;color:var(--color-success);font-size:.9rem;margin-bottom:1rem;text-align:center}.auth-button{padding:.875rem 1.5rem;border:none;border-radius:4px;font-size:1rem;font-weight:600;cursor:pointer;transition:opacity .15s,background .15s}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-button.primary{background:var(--color-primary);color:var(--color-header-text)}.auth-button.primary:hover:not(:disabled){opacity:.9}.auth-button.secondary{background:transparent;border:1px solid var(--color-divider);color:var(--color-text-secondary)}.auth-button.secondary:hover:not(:disabled){background:var(--color-surface-variant)}.auth-links{display:flex;flex-direction:column;gap:.75rem;text-align:center}.auth-link{color:var(--color-secondary);text-decoration:none;font-size:.9rem;cursor:pointer;background:none;border:none;padding:0}.auth-link:hover{text-decoration:underline}.auth-divider{display:flex;align-items:center;gap:1rem;margin:1rem 0}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--color-divider)}.auth-divider span{color:var(--color-text-muted);font-size:.85rem}.code-input-group{display:flex;gap:.5rem;justify-content:center}.code-input{width:3rem;height:3.5rem;text-align:center;font-size:1.5rem;font-weight:600;border:2px solid var(--color-divider);border-radius:4px;background:var(--color-background);color:var(--color-text)}.code-input:focus{outline:none;border-color:var(--color-primary)}.code-single-input{width:100%;padding:1rem;text-align:center;font-size:1.5rem;font-weight:600;letter-spacing:.5rem;border:2px solid var(--color-divider);border-radius:4px;background:var(--color-background);color:var(--color-text)}.code-single-input:focus{outline:none;border-color:var(--color-primary)}.success-content{text-align:center;padding:2rem 1rem}.success-icon{font-size:4rem;margin-bottom:1rem}.success-content h3{color:var(--color-success);margin:0 0 .5rem}.success-content p{color:var(--color-text-muted);margin-bottom:1.5rem}.loading-spinner{display:inline-block;width:1rem;height:1rem;border:2px solid transparent;border-top-color:currentColor;border-radius:50%;animation:spin .8s linear infinite;margin-right:.5rem}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:480px){.auth-screen{padding:.75rem}.auth-card{padding:1rem}.code-input{width:2.5rem;height:3rem;font-size:1.25rem}}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;background-color:var(--color-background, #121212);color:var(--color-text, #ffffff);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}#root{min-height:100%;display:flex;flex-direction:column}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--color-surface, #1e1e1e)}::-webkit-scrollbar-thumb{background:var(--color-divider, #555);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-text-muted, #777)}:focus-visible{outline:2px solid var(--color-secondary, #bb86fc);outline-offset:2px}button{font-family:inherit;cursor:pointer}a{color:var(--color-secondary, #bb86fc);text-decoration:none}a:hover{text-decoration:underline}
