:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-hover: rgba(51, 65, 85, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; min-height: 100vh; overflow-x: hidden; position: relative; }
.ambient-light { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4; animation: pulse 10s infinite alternate; }
.light-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--accent-blue); }
.light-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--accent-purple); animation-delay: 5s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.1); opacity: 0.5; } }
.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.glass-panel { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
header { padding: 20px 0; display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.logo-box { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: white; box-shadow: 0 0 15px rgba(59,130,246,0.5); }
header h1 { font-size: 1.5rem; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.screen { display: none; animation: fadeIn 0.6s cubic-bezier(0.16,1,0.3,1); }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.intro-text { text-align: center; margin-bottom: 40px; padding: 40px; }
.intro-text h2 { font-size: 2.5rem; margin-bottom: 15px; }
.intro-text p { color: var(--text-muted); font-size: 1.1rem; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin-top: 30px; }
.industry-card { padding: 20px; cursor: pointer; transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; }
.industry-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent); opacity: 0; transition: opacity 0.3s; }
.industry-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(59,130,246,0.2); }
.industry-card:hover::before { opacity: 1; }
.industry-icon { font-size: 3rem; margin-bottom: 15px; display: block; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.industry-card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 600; }
.industry-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; padding: 20px; }
@media (min-width: 600px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { display: flex; flex-direction: column; gap: 5px; }
.stat-header { display: flex; justify-content: space-between; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.stat-val-text { color: white; }
.progress-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.fill-cash { background-color: var(--accent-emerald); box-shadow: 0 0 10px rgba(16,185,129,0.4); }
.fill-team { background-color: var(--accent-yellow); box-shadow: 0 0 10px rgba(234,179,8,0.4); }
.fill-product { background-color: var(--accent-blue); box-shadow: 0 0 10px rgba(59,130,246,0.4); }
.fill-market { background-color: var(--accent-purple); box-shadow: 0 0 10px rgba(168,85,247,0.4); }
.round-indicator { text-align: center; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; letter-spacing: 1px; }
.narrative-box { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); padding: 20px; border-radius: 12px; margin-bottom: 20px; color: #bfdbfe; font-size: 1rem; display: none; animation: slideIn 0.4s ease; align-items: flex-start; gap: 15px; }
.narrative-box.show { display: flex; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.scenario-card { padding: 40px; position: relative; overflow: hidden; }
.scenario-tag { display: inline-block; padding: 4px 12px; background: rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); }
.scenario-title { font-size: 1.8rem; margin-bottom: 20px; line-height: 1.3; color: white; }
.scenario-desc { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; line-height: 1.7; }
.choices-container { display: grid; gap: 15px; }
.choice-btn { background: rgba(30,41,59,0.5); border: 1px solid rgba(255,255,255,0.1); padding: 20px; border-radius: 12px; text-align: left; color: var(--text-main); font-size: 1rem; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.choice-btn:hover { background: rgba(51,65,85,0.8); border-color: var(--text-muted); transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.choice-btn:active { transform: scale(0.99); }
.choice-arrow { opacity: 0; transition: all 0.2s; transform: translateX(-10px); color: var(--accent-blue); }
.choice-btn:hover .choice-arrow { opacity: 1; transform: translateX(0); }
.result-header { text-align: center; padding: 40px; margin-bottom: 30px; position: relative; overflow: hidden; }
.result-header::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-red)); }
.score-circle { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.1); margin: 20px auto; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; background: rgba(0,0,0,0.2); box-shadow: 0 0 30px rgba(0,0,0,0.3); }
.score-good { color: var(--accent-emerald); border-color: var(--accent-emerald); box-shadow: 0 0 30px rgba(16,185,129,0.2); }
.score-mid { color: var(--accent-yellow); border-color: var(--accent-yellow); box-shadow: 0 0 30px rgba(234,179,8,0.2); }
.score-bad { color: var(--accent-red); border-color: var(--accent-red); box-shadow: 0 0 30px rgba(239,68,68,0.2); }
.analysis-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
.analysis-item { padding: 20px; border-left: 4px solid; }
.analysis-item h4 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.restart-btn { display: block; width: 200px; margin: 0 auto; padding: 15px 30px; background: white; color: var(--bg-dark); border: none; border-radius: 30px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.restart-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.4); }
.toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; pointer-events: none; z-index: 100; }
.toast { background: rgba(15,23,42,0.9); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px 24px; border-radius: 30px; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideUp 0.3s ease; display: flex; align-items: center; gap: 10px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); padding: 40px; border-radius: 16px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.modal-content h2 { margin-bottom: 15px; color: var(--accent-blue); font-size: 1.5rem; }
.modal-content p { color: var(--text-muted); margin-bottom: 15px; }
.primary-btn { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: transform 0.2s; width: 100%; }
.primary-btn:hover { transform: scale(1.02); }
.secondary-btn { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.2); padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; width: 100%; margin-top: 10px; }
.secondary-btn:hover { border-color: var(--accent-blue); color: white; }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.95); z-index: 900; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.loading-overlay.active { display: flex; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loading-text { font-size: 1.1rem; color: var(--text-muted); animation: pulse 1.5s infinite; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { margin-top: 1em; margin-bottom: 0.5em; color: var(--text-main); line-height: 1.3; }
.markdown-content p { margin-bottom: 1em; line-height: 1.6; }
.markdown-content ul, .markdown-content ol { margin-left: 1.5em; margin-bottom: 1em; }
.markdown-content li { margin-bottom: 0.5em; }
.markdown-content strong { color: var(--accent-blue); font-weight: 700; }
.badge { background: linear-gradient(to right, var(--accent-purple), var(--accent-red)); padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; vertical-align: middle; margin-left: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; box-shadow: 0 0 10px rgba(168,85,247,0.4); }
.usage-info { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 15px; padding: 8px 16px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.back-link:hover { color: white; }
