.market-dynamics-3d-simulation{position:relative;width:100%;height:100vh;background:linear-gradient(135deg,#0a0a1a,#1a1a2e,#0f0f23);overflow:hidden}.axis-label{font-size:.8rem;font-weight:600;color:#e2e8f0;background:#0f172ae6;padding:.25rem .5rem;border-radius:.25rem;white-space:nowrap}.tick-label{font-size:.6rem;color:#64748b}.tick-label.origin{color:#94a3b8;font-weight:600}.curve-label{font-size:.7rem;font-weight:700;padding:.25rem .5rem;border-radius:.25rem;white-space:nowrap}.curve-label.demand{background:#3498dbe6;color:#fff}.curve-label.supply{background:#e74c3ce6;color:#fff}.equilibrium-label{font-size:.7rem;font-weight:700;color:#2ecc71;background:#0f172af2;padding:.25rem .5rem;border-radius:.25rem;border:1px solid rgba(46,204,113,.5);white-space:nowrap}.price-label{font-size:.7rem;font-weight:600;padding:.25rem .5rem;border-radius:.25rem;white-space:nowrap}.price-label.equilibrium{background:#2ecc71e6;color:#fff}.price-label.surplus{background:#f39c12e6;color:#fff}.price-label.shortage{background:#e74c3ce6;color:#fff}.market-info-panel{position:absolute;top:5rem;left:1rem;z-index:100;width:260px;max-height:calc(100vh - 7rem);overflow-y:auto;background:#0f172af2;border:1px solid rgba(52,152,219,.3);border-radius:1rem;padding:1.25rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.market-info-panel::-webkit-scrollbar{width:4px}.market-info-panel::-webkit-scrollbar-thumb{background:#3498db80;border-radius:2px}.market-info-panel h2{display:flex;align-items:center;gap:.5rem;font-size:1rem;color:#fff;margin:0 0 1rem}.market-info-panel h2 svg{color:#3498db}.equilibrium-display{padding:.75rem;background:#2ecc7126;border:1px solid rgba(46,204,113,.3);border-radius:.5rem;margin-bottom:1rem;text-align:center}.equilibrium-display h4{font-size:.8rem;color:#2ecc71;margin:0 0 .5rem}.eq-values{display:flex;justify-content:center;gap:1.5rem}.eq-value{display:flex;flex-direction:column;align-items:center}.eq-value span:first-child{font-size:.7rem;color:#94a3b8}.eq-value span:last-child{font-size:1.25rem;font-weight:700;color:#2ecc71}.market-status{padding:.75rem;border-radius:.5rem;margin-bottom:1rem;text-align:center}.market-status.balanced{background:#2ecc7126;border:1px solid rgba(46,204,113,.3)}.market-status.surplus{background:#f39c1226;border:1px solid rgba(243,156,18,.3)}.market-status.shortage{background:#e74c3c26;border:1px solid rgba(231,76,60,.3)}.market-status h4{font-size:.8rem;color:#e2e8f0;margin:0 0 .25rem}.market-status p{font-size:.9rem;font-weight:600;margin:0 0 .25rem}.market-status.balanced p{color:#2ecc71}.market-status.surplus p{color:#f39c12}.market-status.shortage p{color:#e74c3c}.current-price{font-size:.7rem;color:#94a3b8}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.7rem;color:#94a3b8;margin-bottom:.25rem}.legend-item .dot{width:10px;height:10px;border-radius:50%}.legend-item .dot.demand{background:#3498db}.legend-item .dot.supply{background:#e74c3c}.legend-item .dot.equilibrium{background:#2ecc71}.slider-group{margin-bottom:.5rem}.panel-section input[type=range].demand-slider{background:#3498db4d}.panel-section input[type=range].demand-slider::-webkit-slider-thumb{background:linear-gradient(135deg,#3498db,#2980b9)}.panel-section input[type=range].supply-slider{background:#e74c3c4d}.panel-section input[type=range].supply-slider::-webkit-slider-thumb{background:linear-gradient(135deg,#e74c3c,#c0392b)}.shift-info{font-size:.7rem;color:#94a3b8;margin:0}.animate-btn{width:100%;margin-top:.5rem;padding:.5rem;background:linear-gradient(135deg,#2ecc71,#27ae60);border:none;border-radius:.375rem;color:#fff;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s}.animate-btn:hover{opacity:.9}.toggle-group{display:flex;align-items:center;gap:.5rem;cursor:pointer}.toggle-group input[type=checkbox]{width:1rem;height:1rem;accent-color:#3498DB;cursor:pointer}.toggle-group span{font-size:.8rem;color:#e2e8f0}@media(max-width:768px){.header-3d{width:calc(100% - 2rem);flex-wrap:wrap;justify-content:center}.market-info-panel,.control-panel-3d{position:fixed;width:calc(100% - 2rem);max-height:40vh;left:1rem;right:1rem}.market-info-panel{top:auto;bottom:50vh}.control-panel-3d{top:auto;bottom:1rem}}.budget-planner-3d-simulation{position:relative;width:100%;height:100vh;background:linear-gradient(135deg,#0a0a1a,#1a1a2e,#0f0f23);overflow:hidden}.back-btn-3d{position:absolute;top:1rem;left:1rem;z-index:100;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:#0f172ae6;border:1px solid rgba(46,204,113,.5);border-radius:.75rem;color:#94a3b8;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.back-btn-3d:hover{border-color:#2ecc71;color:#fff;transform:scale(1.05)}.header-3d{position:absolute;top:1rem;left:50%;transform:translate(-50%);z-index:100;display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:#0f172af2;border:1px solid rgba(46,204,113,.3);border-radius:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-3d h1 svg{color:#2ecc71}.mode-tabs button.active{background:linear-gradient(135deg,#2ecc71,#27ae60);color:#fff}.action-btn{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:#2ecc7133;border:1px solid rgba(46,204,113,.4);border-radius:.5rem;color:#94a3b8;cursor:pointer;transition:all .2s ease}.action-btn:hover{background:#2ecc7166;color:#fff}.budget-bar-label{display:flex;flex-direction:column;align-items:center;gap:.125rem;background:#0f172af2;padding:.25rem .5rem;border-radius:.25rem;white-space:nowrap}.budget-bar-label .icon{font-size:1rem}.budget-bar-label .amount{font-size:.65rem;color:#e2e8f0;font-weight:600}.balance-indicator{display:flex;flex-direction:column;align-items:center;padding:.5rem 1rem;border-radius:.5rem;background:#0f172af2}.balance-indicator .label{font-size:.7rem;color:#94a3b8}.balance-indicator .value{font-size:1rem;font-weight:700}.balance-indicator.positive .value{color:#2ecc71}.balance-indicator.negative .value{color:#e74c3c}.budget-info-panel{position:absolute;top:5rem;left:1rem;z-index:100;width:280px;max-height:calc(100vh - 7rem);overflow-y:auto;background:#0f172af2;border:1px solid rgba(46,204,113,.3);border-radius:1rem;padding:1.25rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.budget-info-panel::-webkit-scrollbar{width:4px}.budget-info-panel::-webkit-scrollbar-thumb{background:#2ecc7180;border-radius:2px}.budget-info-panel h2{display:flex;align-items:center;gap:.5rem;font-size:1rem;color:#fff;margin:0 0 1rem}.budget-info-panel h2 svg{color:#2ecc71}.budget-summary{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.summary-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;border-radius:.375rem}.summary-item .label{font-size:.8rem}.summary-item .value{font-size:.9rem;font-weight:700}.summary-item.income{background:#2ecc7126;color:#2ecc71}.summary-item.expense{background:#e74c3c26;color:#e74c3c}.summary-item.balance.positive{background:#2ecc7133;color:#2ecc71}.summary-item.balance.negative{background:#e74c3c33;color:#e74c3c}.ratio-display{padding:.75rem;background:#ffffff08;border-radius:.5rem;margin-bottom:1rem}.ratio-display h4{font-size:.8rem;color:#e2e8f0;margin:0 0 .5rem}.ratio-bar{display:flex;height:24px;border-radius:4px;overflow:hidden;margin-bottom:.5rem}.ratio-segment{display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;color:#fff;min-width:0}.ratio-segment.needs{background:#3498db}.ratio-segment.wants{background:#f39c12}.ratio-segment.savings{background:#2ecc71}.ratio-legend{display:flex;justify-content:space-between;font-size:.6rem}.ratio-legend .needs{color:#3498db}.ratio-legend .wants{color:#f39c12}.ratio-legend .savings{color:#2ecc71}.selected-category{padding:.75rem;background:#f39c1226;border:1px solid rgba(243,156,18,.3);border-radius:.5rem;text-align:center}.selected-category h4{font-size:1rem;color:#f39c12;margin:0 0 .25rem}.selected-category .cat-amount{display:block;font-size:1.25rem;font-weight:700;color:#f39c12}.selected-category .cat-percent{display:block;font-size:.7rem;color:#94a3b8}.control-panel-3d{position:absolute;top:5rem;right:1rem;z-index:100;width:280px;max-height:calc(100vh - 7rem);overflow-y:auto;background:#0f172af2;border:1px solid rgba(46,204,113,.3);border-radius:1rem;padding:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.control-panel-3d::-webkit-scrollbar-thumb{background:#2ecc7180;border-radius:2px}.panel-section{padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid rgba(46,204,113,.2)}.amount-control{display:flex;justify-content:space-between;align-items:center;padding:.375rem .5rem;margin-bottom:.375rem;background:#ffffff08;border-radius:.375rem;cursor:pointer;transition:all .2s}.amount-control:hover{background:#ffffff0f}.amount-control.selected{background:#f39c1226;border:1px solid rgba(243,156,18,.3)}.cat-label{font-size:.75rem;color:#e2e8f0}.control-buttons{display:flex;align-items:center;gap:.375rem}.control-buttons button{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:#2ecc7133;border:1px solid rgba(46,204,113,.4);border-radius:4px;color:#2ecc71;cursor:pointer;transition:all .2s}.control-buttons button:hover{background:#2ecc7166}.amount-value{font-size:.75rem;font-weight:600;color:#2ecc71;min-width:35px;text-align:center}.challenge-header h3{margin:0;color:#2ecc71}.score-display{font-size:.875rem;font-weight:700;color:#2ecc71;background:#2ecc7126;padding:.375rem .75rem;border-radius:1rem}.challenge-option{display:flex;align-items:center;justify-content:space-between;padding:.75rem;background:#2ecc711a;border:1px solid rgba(46,204,113,.2);border-radius:.5rem;color:#e2e8f0;font-size:.75rem;cursor:pointer;transition:all .2s ease;text-align:left}.challenge-option:hover:not(:disabled){background:#2ecc7133;border-color:#2ecc7166}.next-btn{display:inline-flex;align-items:center;gap:.5rem;margin-top:.75rem;padding:.625rem 1.25rem;background:linear-gradient(135deg,#2ecc71,#27ae60);border:none;border-radius:.5rem;color:#fff;font-size:.875rem;font-weight:600;cursor:pointer}.challenge-complete button{padding:.5rem 1.5rem;background:#2ecc714d;border:1px solid #2ECC71;border-radius:.5rem;color:#fff;cursor:pointer}.learn-card{padding:.75rem;background:#2ecc711a;border:1px solid rgba(46,204,113,.2);border-radius:.5rem}.learn-card h4{font-size:.8rem;color:#2ecc71;margin:0 0 .5rem}.tip-section{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;background:#2ecc711a;border:1px solid rgba(46,204,113,.2);border-radius:.5rem}.tip-section svg{color:#2ecc71;flex-shrink:0;margin-top:2px}.info-modal-3d{width:100%;max-width:550px;max-height:85vh;overflow-y:auto;background:linear-gradient(135deg,#1a1a2e,#0f0f23);border:1px solid rgba(46,204,113,.4);border-radius:1.5rem}.info-modal-3d .modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(46,204,113,.2);position:sticky;top:0;background:inherit}.info-modal-3d .modal-header h2 svg{color:#2ecc71}.info-modal-3d section h3{font-size:1rem;color:#2ecc71;margin:0 0 .75rem}@media(max-width:768px){.header-3d{width:calc(100% - 2rem);flex-wrap:wrap;justify-content:center}.budget-info-panel,.control-panel-3d{position:fixed;width:calc(100% - 2rem);max-height:40vh;left:1rem;right:1rem}.budget-info-panel{top:auto;bottom:50vh}.control-panel-3d{top:auto;bottom:1rem}}.factory-tycoon-3d-simulation{position:relative;width:100%;height:100vh;background:#0f172a;overflow:hidden;color:#fff}.header-3d h1{font-size:1rem;margin:0;display:flex;align-items:center;gap:.5rem;color:#fbbf24}.mode-tabs button.active{background:#3b82f6;color:#fff}.money-display{display:flex;align-items:center;gap:4px;background:#10b98133;color:#34d399;padding:4px 12px;border-radius:6px;font-weight:700;font-size:.9rem;border:1px solid rgba(16,185,129,.4)}.factory-control-panel{position:absolute;right:1rem;top:5rem;width:280px;background:#0f172af2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem;max-height:calc(100vh - 6rem);overflow-y:auto}.panel-section{margin-bottom:1.5rem}.panel-section h3{margin:0 0 1rem;font-size:.9rem;color:#94a3b8;display:flex;align-items:center;gap:.5rem}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.stat-item{background:#ffffff0d;padding:.5rem;border-radius:6px}.stat-item .label{display:block;font-size:.7rem;color:#64748b}.stat-item .value{display:block;font-size:.9rem;font-weight:700;color:#f8fafc}.upgrade-btn{width:100%;padding:.75rem;background:linear-gradient(to right,#3b82f6,#2563eb);border:none;border-radius:8px;color:#fff;font-weight:700;cursor:pointer;transition:.2s}.upgrade-btn:hover:not(:disabled){transform:translateY(-2px);shadow:0 4px 12px rgba(37,99,235,.4)}.upgrade-btn:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(1)}.machine-label{background:#000c;padding:4px 8px;border-radius:4px;text-align:center;border:1px solid #475569}.level-badge{font-weight:700;color:#3b82f6;font-size:.8rem}.type-badge{font-size:.6rem;color:#94a3b8;text-transform:uppercase}.concept-card{background:#ffffff08;padding:.75rem;border-radius:8px;margin-bottom:.5rem;border-left:3px solid #3b82f6}.concept-card h4{margin:0 0 .25rem;color:#60a5fa;font-size:.85rem}.investment-portfolio-3d-simulation{position:relative;width:100%;height:100vh;background:#0f172a;overflow:hidden;color:#fff}.back-btn-3d{position:absolute;top:1rem;left:1rem;z-index:100;width:40px;height:40px;background:#1e293bcc;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#e2e8f0;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:.2s}.header-3d{position:absolute;top:1rem;left:50%;transform:translate(-50%);z-index:100;display:flex;gap:1rem;padding:.5rem 1rem;background:#0f172ae6;border-radius:12px;border:1px solid rgba(255,255,255,.1);align-items:center}.header-3d h1{font-size:1rem;margin:0;display:flex;align-items:center;gap:.5rem;color:#34d399}.mode-tabs button{background:transparent;border:none;color:#94a3b8;padding:4px 12px;border-radius:6px;font-size:.8rem;cursor:pointer}.mode-tabs button.active{background:#34d399;color:#064e3b;font-weight:700}.investment-control-panel{position:absolute;right:1rem;top:5rem;width:300px;background:#0f172af2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem;max-height:calc(100vh - 6rem);overflow-y:auto}.dashboard{display:flex;gap:1rem;margin-bottom:1.5rem;background:#ffffff0d;padding:1rem;border-radius:12px}.dash-item{flex:1}.dash-item .label{display:block;font-size:.7rem;color:#94a3b8;text-transform:uppercase;margin-bottom:4px}.value-lg{font-size:1.2rem;font-weight:700;color:#fff}.value-lg.pos{color:#34d399}.value-lg.neg{color:#f87171}.sim-controls{display:flex;gap:.5rem;margin-bottom:1.5rem}.sim-btn{flex:1;padding:.75rem;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:.2s}.sim-btn.start{background:#3b82f6;color:#fff}.sim-btn.stop{background:#f59e0b;color:#fff}.sim-btn.reset{flex:0 0 40px;background:#ffffff1a;color:#cbd5e1}.sim-btn:hover{opacity:.9}.panel-section h3{margin:0 0 1rem;font-size:.9rem;color:#cbd5e1;display:flex;align-items:center;gap:.5rem}.alloc-warning{background:#ef444433;color:#fca5a5;padding:8px;border-radius:6px;font-size:.8rem;margin-bottom:1rem;border:1px solid rgba(239,68,68,.4)}.asset-sliders{display:flex;flex-direction:column;gap:1rem}.asset-slider-row{background:#0003;padding:.75rem;border-radius:8px}.row-header{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:.5rem}.row-info{font-size:.7rem;color:#64748b;margin-top:4px}.asset-slider-row input[type=range]{width:100%;cursor:pointer}.asset-label-3d{background:#0f172ae6;padding:8px 12px;border-radius:8px;border-left:4px solid #fff;text-align:left;min-width:120px;box-shadow:0 4px 6px #0000004d}.asset-name{font-weight:700;font-size:.8rem;color:#e2e8f0;margin-bottom:2px}.asset-value{font-size:1rem;font-weight:700;color:#fff;margin-bottom:2px}.asset-percent{font-size:.7rem;color:#94a3b8}.hub-display{background:#000;color:#22c55e;font-family:Courier New,monospace;padding:8px 16px;border-radius:4px;border:1px solid #333;text-align:center}.hub-year{font-size:.7rem;color:#666;text-transform:uppercase}.hub-total{font-size:1.2rem;font-weight:700}.concept-card{background:#ffffff08;padding:.75rem;border-radius:8px;margin-bottom:.5rem;border-left:3px solid #34d399}.concept-card h4{margin:0 0 .25rem;color:#6ee7b7;font-size:.85rem}.concept-card p{margin:0;font-size:.75rem;color:#94a3b8}.info-modal-3d{background:#1e293b;padding:2rem;border-radius:16px;width:90%;max-width:500px;border:1px solid #334155}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;color:#f1f5f9}.modal-content{color:#cbd5e1;line-height:1.6}.market-structure-3d-simulation{position:relative;width:100%;height:100vh;background:#111827;overflow:hidden;color:#fff}.back-btn-3d{position:absolute;top:1rem;left:1rem;z-index:100;width:40px;height:40px;background:#1f2937cc;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#e5e7eb;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:.2s}.back-btn-3d:hover{background:#3b82f6;border-color:#3b82f6}.header-3d{position:absolute;top:1rem;left:50%;transform:translate(-50%);z-index:100;display:flex;gap:1rem;padding:.5rem 1rem;background:#111827e6;border-radius:12px;border:1px solid rgba(255,255,255,.1);align-items:center}.header-3d h1{font-size:1rem;margin:0;display:flex;align-items:center;gap:.5rem;color:#a78bfa}.mode-tabs{display:flex;gap:.25rem;background:#0000004d;padding:4px;border-radius:8px}.mode-tabs button{background:transparent;border:none;color:#9ca3af;padding:4px 12px;border-radius:6px;font-size:.8rem;cursor:pointer}.mode-tabs button.active{background:#8b5cf6;color:#fff;font-weight:700}.header-actions{display:flex;gap:.5rem;align-items:center}.market-control-panel{position:absolute;right:1rem;top:5rem;width:300px;background:#111827f2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem;max-height:calc(100vh - 6rem);overflow-y:auto}.type-selector{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.type-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.05);color:#d1d5db;border-radius:8px;cursor:pointer;transition:.2s;font-size:.9rem}.type-btn:hover{background:#ffffff1a}.type-btn.active{background:#8b5cf633;border-color:#8b5cf6;color:#a78bfa;font-weight:700}.info-card h3{margin:0 0 .5rem;color:#f3f4f6;font-size:1.1rem}.desc{font-size:.85rem;color:#9ca3af;margin-bottom:1rem;line-height:1.5}.chars-list{display:flex;flex-direction:column;gap:.4rem}.char-tag{display:flex;align-items:center;gap:6px;font-size:.8rem;color:#e5e7eb;background:#0003;padding:4px 8px;border-radius:4px}.char-tag svg{color:#34d399}.indicators{margin-top:1.5rem}.indicator-row{margin-bottom:.8rem}.indicator-row .label{display:block;font-size:.75rem;color:#9ca3af;margin-bottom:4px}.bar-bg{height:8px;background:#ffffff1a;border-radius:4px;overflow:hidden}.bar-fill{height:100%;border-radius:4px;transition:width .5s ease}.monopoly-crown{background:#fbbf24;color:#000;font-weight:700;padding:4px 8px;border-radius:4px;font-size:.8rem;border:2px solid white}.challenge-header{display:flex;justify-content:space-between;margin-bottom:1rem;color:#fbbf24;font-weight:700}.question-text{font-size:.9rem;line-height:1.4;margin-bottom:1rem;color:#e2e8f0}.options-list{display:flex;flex-direction:column;gap:.5rem}.option-btn{padding:.75rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:#cbd5e1;text-align:left;border-radius:8px;cursor:pointer;transition:.2s}.option-btn:hover{background:#ffffff1a}.option-btn.correct{background:#22c55e33;border-color:#22c55e;color:#4ade80}.option-btn.incorrect{background:#ef444433;border-color:#ef4444;color:#f87171}.next-level-btn{margin-top:1rem;width:100%;padding:.75rem;background:#fbbf24;border:none;border-radius:8px;color:#000;font-weight:700;cursor:pointer}.concept-card{background:#ffffff08;padding:.75rem;border-radius:8px;margin-bottom:.5rem;border-left:3px solid #8b5cf6}.concept-card h4{margin:0 0 .25rem;color:#a78bfa;font-size:.85rem}.concept-card p{margin:0;font-size:.75rem;color:#9ca3af}.info-overlay-3d{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.info-modal-3d{background:#1f2937;padding:2rem;border-radius:16px;width:90%;max-width:500px;border:1px solid #374155}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;color:#f3f4f6}.modal-content{color:#d1d5db;line-height:1.6}.national-economy-3d-simulation{position:relative;width:100%;height:100vh;background:linear-gradient(135deg,#0a0a1a,#1a1a2e,#0f0f23);overflow:hidden}.back-btn-3d{position:absolute;top:1rem;left:1rem;z-index:100;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;background:#0f172ae6;border:1px solid rgba(52,152,219,.5);border-radius:.75rem;color:#94a3b8;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.back-btn-3d:hover{border-color:#3498db;color:#fff;transform:scale(1.05)}.header-3d{position:absolute;top:1rem;left:50%;transform:translate(-50%);z-index:100;display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:#0f172af2;border:1px solid rgba(52,152,219,.3);border-radius:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-3d h1{display:flex;align-items:center;gap:.5rem;font-size:1rem;font-weight:700;color:#fff;margin:0}.header-3d h1 svg{color:#3498db}.mode-tabs{display:flex;gap:.25rem;background:#0000004d;padding:.25rem;border-radius:.5rem}.mode-tabs button{padding:.5rem .75rem;background:transparent;border:none;border-radius:.375rem;color:#94a3b8;font-size:.75rem;cursor:pointer;transition:all .2s}.mode-tabs button:hover{color:#fff}.mode-tabs button.active{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff}.header-actions{display:flex;gap:.5rem}.action-btn{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:#3498db33;border:1px solid rgba(52,152,219,.4);border-radius:.5rem;color:#94a3b8;cursor:pointer;transition:all .2s ease}.action-btn:hover,.action-btn.active{background:#3498db66;color:#fff}.canvas-container{position:absolute;inset:0}.gdp-label{font-size:.8rem;font-weight:700;color:#2ecc71;background:#0f172af2;padding:.375rem .75rem;border-radius:.375rem;border:1px solid rgba(46,204,113,.5);white-space:nowrap}.inflation-label{font-size:.8rem;font-weight:700;background:#0f172af2;padding:.375rem .75rem;border-radius:.375rem;white-space:nowrap}.inflation-label.low{color:#2ecc71;border:1px solid rgba(46,204,113,.5)}.inflation-label.medium{color:#f39c12;border:1px solid rgba(243,156,18,.5)}.inflation-label.high{color:#e74c3c;border:1px solid rgba(231,76,60,.5)}.unemployment-label{font-size:.8rem;font-weight:700;background:#0f172af2;padding:.375rem .75rem;border-radius:.375rem;white-space:nowrap}.unemployment-label.low{color:#2ecc71;border:1px solid rgba(46,204,113,.5)}.unemployment-label.medium{color:#f39c12;border:1px solid rgba(243,156,18,.5)}.unemployment-label.high{color:#e74c3c;border:1px solid rgba(231,76,60,.5)}.interest-label{font-size:.8rem;font-weight:700;color:#3498db;background:#0f172af2;padding:.375rem .75rem;border-radius:.375rem;border:1px solid rgba(52,152,219,.5);white-space:nowrap}.economy-info-panel{position:absolute;top:5rem;left:1rem;z-index:100;width:280px;max-height:calc(100vh - 7rem);overflow-y:auto;background:#0f172af2;border:1px solid rgba(52,152,219,.3);border-radius:1rem;padding:1.25rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.economy-info-panel::-webkit-scrollbar{width:4px}.economy-info-panel::-webkit-scrollbar-thumb{background:#3498db80;border-radius:2px}.economy-info-panel h2{display:flex;align-items:center;gap:.5rem;font-size:1rem;color:#fff;margin:0 0 1rem}.economy-info-panel h2 svg{color:#3498db}.economy-status{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.75rem;background:#ffffff08;border:2px solid;border-radius:.5rem;margin-bottom:1rem}.economy-status .emoji{font-size:1.5rem}.economy-status .status{font-size:1.125rem;font-weight:700}.indicators-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-bottom:1rem}.indicator{display:flex;flex-direction:column;align-items:center;padding:.75rem .5rem;background:#ffffff08;border-radius:.375rem;text-align:center}.indicator .icon{font-size:1.25rem;margin-bottom:.25rem}.indicator .name{font-size:.65rem;color:#94a3b8;margin-bottom:.125rem}.indicator .value{font-size:1rem;font-weight:700;color:#e2e8f0}.indicator.gdp{border-left:3px solid #2ECC71}.indicator.gdp .value{color:#2ecc71}.indicator.inflation{border-left:3px solid #F39C12}.indicator.inflation .value{color:#f39c12}.indicator.inflation.warning{border-left-color:#e74c3c}.indicator.inflation.warning .value{color:#e74c3c}.indicator.unemployment{border-left:3px solid #9B59B6}.indicator.unemployment .value{color:#9b59b6}.indicator.unemployment.warning{border-left-color:#e74c3c}.indicator.unemployment.warning .value{color:#e74c3c}.indicator.interest{border-left:3px solid #3498DB}.indicator.interest .value{color:#3498db}.legend{padding:.75rem;background:#ffffff08;border-radius:.5rem}.legend h4{font-size:.8rem;color:#e2e8f0;margin:0 0 .5rem}.legend p{font-size:.7rem;color:#94a3b8;margin:0 0 .25rem;line-height:1.4}.control-panel-3d{position:absolute;top:5rem;right:1rem;z-index:100;width:280px;max-height:calc(100vh - 7rem);overflow-y:auto;background:#0f172af2;border:1px solid rgba(52,152,219,.3);border-radius:1rem;padding:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.control-panel-3d::-webkit-scrollbar{width:4px}.control-panel-3d::-webkit-scrollbar-thumb{background:#3498db80;border-radius:2px}.panel-section{padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid rgba(52,152,219,.2)}.panel-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.panel-section h3{font-size:.875rem;font-weight:600;color:#e2e8f0;margin:0 0 .75rem}.slider-group{margin-bottom:.75rem}.slider-group label{display:block;font-size:.75rem;color:#94a3b8;margin-bottom:.375rem}.panel-section input[type=range]{width:100%;height:6px;background:#3498db33;border-radius:3px;outline:none;cursor:pointer;appearance:none}.panel-section input[type=range]::-webkit-slider-thumb{appearance:none;width:18px;height:18px;background:linear-gradient(135deg,#3498db,#2980b9);border-radius:50%;cursor:pointer;border:3px solid #fff}.policy-info{font-size:.7rem;color:#94a3b8;margin:0;padding:.375rem;background:#3498db1a;border-radius:.25rem}.challenge-panel{padding:0}.challenge-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.challenge-header h3{margin:0;color:#3498db}.score-display{font-size:.875rem;font-weight:700;color:#3498db;background:#3498db26;padding:.375rem .75rem;border-radius:1rem}.challenge-question{font-size:.875rem;color:#fff;line-height:1.5;margin:0 0 1rem}.challenge-options{display:flex;flex-direction:column;gap:.5rem}.challenge-option{display:flex;align-items:center;justify-content:space-between;padding:.75rem;background:#3498db1a;border:1px solid rgba(52,152,219,.2);border-radius:.5rem;color:#e2e8f0;font-size:.75rem;cursor:pointer;transition:all .2s ease;text-align:left}.challenge-option:hover:not(:disabled){background:#3498db33;border-color:#3498db66}.challenge-option.correct{background:#2ecc714d;border-color:#2ecc71;color:#2ecc71}.challenge-option.incorrect{background:#e74c3c33;border-color:#e74c3c;color:#e74c3c}.challenge-feedback{margin-top:1rem;text-align:center}.correct-text{color:#2ecc71;font-weight:600}.incorrect-text{color:#e74c3c;font-weight:600}.next-btn{display:inline-flex;align-items:center;gap:.5rem;margin-top:.75rem;padding:.625rem 1.25rem;background:linear-gradient(135deg,#3498db,#2980b9);border:none;border-radius:.5rem;color:#fff;font-size:.875rem;font-weight:600;cursor:pointer}.challenge-complete{padding:1rem 0;text-align:center}.challenge-complete svg{color:#f39c12;margin-bottom:.5rem}.challenge-complete p{font-size:1.125rem;color:#fff;margin:0 0 1rem}.challenge-complete button{padding:.5rem 1.5rem;background:#3498db4d;border:1px solid #3498DB;border-radius:.5rem;color:#fff;cursor:pointer}.learn-panel h3{display:flex;align-items:center;gap:.5rem;margin:0 0 1rem;color:#e2e8f0}.learn-content{display:flex;flex-direction:column;gap:.75rem}.learn-card{padding:.75rem;background:#3498db1a;border:1px solid rgba(52,152,219,.2);border-radius:.5rem}.learn-card h4{font-size:.8rem;color:#3498db;margin:0 0 .5rem}.learn-card p{font-size:.75rem;color:#94a3b8;line-height:1.5;margin:0}.tip-section{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;background:#3498db1a;border:1px solid rgba(52,152,219,.2);border-radius:.5rem}.tip-section svg{color:#3498db;flex-shrink:0;margin-top:2px}.tip-section p{margin:0;font-size:.7rem;color:#94a3b8;line-height:1.4}.info-overlay-3d{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.info-modal-3d{width:100%;max-width:550px;max-height:85vh;overflow-y:auto;background:linear-gradient(135deg,#1a1a2e,#0f0f23);border:1px solid rgba(52,152,219,.4);border-radius:1.5rem}.info-modal-3d .modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(52,152,219,.2);position:sticky;top:0;background:inherit}.info-modal-3d .modal-header h2{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;color:#fff;margin:0}.info-modal-3d .modal-header h2 svg{color:#3498db}.info-modal-3d .modal-header button{background:none;border:none;color:#94a3b8;cursor:pointer}.info-modal-3d .modal-header button:hover{color:#fff}.info-modal-3d .modal-content{padding:1.5rem}.info-modal-3d section{margin-bottom:1.5rem}.info-modal-3d section:last-child{margin-bottom:0}.info-modal-3d section h3{font-size:1rem;color:#3498db;margin:0 0 .75rem}.info-modal-3d section p{font-size:.875rem;color:#94a3b8;line-height:1.6;margin:0}.info-modal-3d section ul{margin:0;padding-left:1.25rem}.info-modal-3d section li{font-size:.875rem;color:#94a3b8;line-height:1.8}.info-modal-3d section li strong{color:#e2e8f0}@media(max-width:768px){.header-3d{width:calc(100% - 2rem);flex-wrap:wrap;justify-content:center}.economy-info-panel,.control-panel-3d{position:fixed;width:calc(100% - 2rem);max-height:40vh;left:1rem;right:1rem}.economy-info-panel{top:auto;bottom:50vh}.control-panel-3d{top:auto;bottom:1rem}}
