*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;color:#1a1a1a;background:#f5f5f5}.app{max-width:800px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}.header{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#fff;border-bottom:1px solid #e0e0e0}.header-date{font-weight:600}.header-phase{color:#666}.header-phase-extinction{color:#dc2626;font-weight:700}.header-phase-utopia{color:#16a34a;font-weight:700}.header-new-button{padding:.5rem 1rem;background:#e0e0e0;border:none;border-radius:4px;cursor:pointer}.header-new-button:hover{background:#d0d0d0}.tab-bar{display:flex;gap:.5rem;padding:.5rem 1rem;background:#fff;border-bottom:1px solid #e0e0e0}.tab-button{padding:.5rem 1rem;background:transparent;border:none;border-radius:4px;cursor:pointer;color:#666}.tab-button:hover{background:#f0f0f0}.tab-button-active{background:#e0e0e0;color:#1a1a1a;font-weight:600}.main-content{flex:1;padding:1rem;overflow-y:auto}.error-banner{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#fef2f2;color:#dc2626;border-bottom:1px solid #fecaca}.error-banner button{padding:.25rem .5rem;background:#dc2626;color:#fff;border:none;border-radius:4px;cursor:pointer}.tutorial-tab{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2rem}.tutorial-hero{margin-bottom:2rem}.tutorial-title{font-size:2rem;margin:0 0 .5rem}.tutorial-subtitle{font-size:1.25rem;color:#666;margin:0 0 1rem}.tutorial-description{color:#666;max-width:400px;margin:0 0 1.5rem}.tutorial-start-button{padding:.75rem 2rem;font-size:1.125rem;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer}.tutorial-start-button:hover{background:#1d4ed8}.tutorial-start-button:disabled{background:#93c5fd;cursor:not-allowed}.tutorial-instructions{text-align:left;background:#fff;padding:1.5rem;border-radius:8px;max-width:400px;width:100%}.tutorial-instructions h2{margin:0 0 1rem;font-size:1.125rem}.tutorial-instructions ul{margin:0;padding-left:1.5rem}.tutorial-instructions li{margin-bottom:.5rem}.tutorial-footer{margin-top:2rem;color:#999;font-size:.875rem}.news-tab{background:#fff;border-radius:8px;padding:1rem}.news-tab-empty{text-align:center;color:#666;padding:2rem}.news-year-group{margin-bottom:1rem}.news-year-marker{font-size:1.5rem;font-weight:700;padding:.5rem 0;border-bottom:2px solid #e0e0e0;margin-bottom:.5rem}.news-month-group{margin-bottom:1rem;padding-left:1rem}.news-month-marker{font-weight:600;color:#666;margin-bottom:.5rem}.news-items{display:flex;flex-direction:column;gap:.5rem;padding-left:1rem}.news-item{border-left:3px solid #e0e0e0;padding:.5rem .5rem .5rem 1rem}.news-item-revealed{border-left-color:#f59e0b;background:#fffbeb}.news-revealed-icon{margin-right:.5rem}.news-headline{font-weight:500}.news-description{color:#666;font-size:.875rem;margin-top:.25rem}.loading-indicator{display:flex;align-items:center;gap:.5rem;padding:1rem;color:#666}.loading-dots{animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.5}50%{opacity:1}}.vote-tab{display:flex;flex-direction:column;gap:1rem}.vote-tab-empty{background:#fff;border-radius:8px;padding:2rem;text-align:center;color:#666}.topic-list{display:flex;flex-direction:column;gap:1rem}.topic-card{background:#fff;border-radius:8px;padding:1rem}.topic-header{margin-bottom:1rem}.topic-title{margin:0;font-size:1rem;text-transform:uppercase;letter-spacing:.05em;color:#666}.topic-description{color:#666;font-size:.875rem;margin-top:.5rem}.topic-options{display:flex;flex-direction:column;gap:.5rem}.topic-option{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;border:1px solid #e0e0e0;border-radius:6px;cursor:pointer}.topic-option:hover{background:#f5f5f5}.topic-option input[type=radio]{margin-top:.25rem}.option-content{display:flex;flex-direction:column}.option-title{font-weight:500}.option-description{color:#666;font-size:.875rem;margin-top:.25rem}.submit-button-container{position:sticky;bottom:0;background:#f5f5f5;padding:1rem;border-top:1px solid #e0e0e0;text-align:center}.submit-button{width:100%;max-width:300px;padding:.75rem 2rem;font-size:1rem;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer}.submit-button:hover:not(:disabled){background:#1d4ed8}.submit-button:disabled{background:#93c5fd;cursor:not-allowed}.submit-hint{color:#666;font-size:.875rem;margin:.5rem 0 0}.summary-tab{background:#fff;border-radius:8px;padding:1.5rem}.summary-tab-loading{display:flex;justify-content:center;align-items:center;min-height:200px}.loading-spinner{color:#666}.summary-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e0e0e0}.summary-section:last-of-type{border-bottom:none}.summary-section h2{margin:0 0 1rem;font-size:1.125rem}.summary-what-happened{color:#333;white-space:pre-wrap}.summary-preset-description{color:#666}.summary-stats{list-style:none;margin:0;padding:0}.summary-stat{display:flex;gap:.5rem;padding:.5rem 0}.stat-icon{width:1.5rem}.stat-label{color:#666}.stat-value{font-weight:600}.summary-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.summary-share-button,.summary-new-button{padding:.75rem 2rem;font-size:1rem;border:none;border-radius:6px;cursor:pointer}.summary-share-button{background:#e0e0e0;color:#333}.summary-share-button:hover{background:#d0d0d0}.summary-new-button{background:#2563eb;color:#fff}.summary-new-button:hover{background:#1d4ed8}@media(min-width:768px){.app{max-width:1000px}}
