:root{--bg:#f8f9fc;--card-bg:#fff;--text:#1a1a2e;--text-secondary:#556;--text-tertiary:#889;--border:#e2e4ea;--hover:#0000000a;--accent:#6366f1;--accent-light:#6366f11a;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#0f1117;--card-bg:#1a1c25;--text:#e4e5f1;--text-secondary:#9d9eb0;--text-tertiary:#6b6c80;--border:#2a2c38;--hover:#ffffff0f}}:root[data-theme=dark]{--bg:#0f1117;--card-bg:#1a1c25;--text:#e4e5f1;--text-secondary:#9d9eb0;--text-tertiary:#6b6c80;--border:#2a2c38;--hover:#ffffff0f}:root[data-theme=light]{--bg:#f8f9fc;--card-bg:#fff;--text:#1a1a2e;--text-secondary:#556;--text-tertiary:#889;--border:#e2e4ea;--hover:#0000000a}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-text-size-adjust:100%}body{background:var(--bg);overscroll-behavior:none;min-height:100dvh}button{cursor:pointer;font-family:inherit}a{color:inherit;text-decoration:none}h1,h2,h3{line-height:1.3}.login-screen{justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.login-card{background:var(--card-bg);border:1px solid var(--border);border-radius:20px;width:100%;max-width:420px;padding:32px 24px}.login-logo{text-align:center;margin-bottom:28px}.logo-icon{margin-bottom:8px;font-size:3rem;display:block}.logo-title{letter-spacing:-.5px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:1.8rem;font-weight:800}.logo-subtitle{color:var(--text-secondary);margin-top:4px;font-size:.9rem}.login-section{margin-bottom:8px}.login-section-title{margin-bottom:4px;font-size:.9rem;font-weight:600}.login-hint{color:var(--text-tertiary);margin-bottom:10px;font-size:.75rem}.google-btn{background:var(--bg);border:1px solid var(--border);cursor:pointer;width:100%;color:var(--text);border-radius:10px;justify-content:center;align-items:center;gap:10px;padding:12px;font-family:inherit;font-size:.9rem;font-weight:500;transition:background .15s;display:flex}.google-btn:hover:not(:disabled){background:var(--hover)}.google-btn:disabled{opacity:.6;cursor:not-allowed}.google-icon{flex-shrink:0}.login-divider{color:var(--text-tertiary);align-items:center;gap:12px;margin:20px 0;font-size:.8rem;display:flex}.login-divider:before,.login-divider:after{content:"";background:var(--border);flex:1;height:1px}.guest-form{gap:8px;display:flex}.guest-input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;outline:none;flex:1;padding:10px 14px;font-family:inherit;font-size:.9rem}.guest-input:focus{border-color:var(--accent)}.guest-btn{background:var(--accent);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:10px;padding:10px 20px;font-family:inherit;font-size:.9rem;font-weight:600;transition:opacity .15s}.guest-btn:hover:not(:disabled){opacity:.9}.guest-btn:disabled{opacity:.5;cursor:not-allowed}.login-error{color:#ef4444;text-align:center;background:#ef44441a;border:1px solid #ef44444d;border-radius:8px;margin-top:12px;padding:10px;font-size:.8rem}.app-header{border-bottom:1px solid var(--border);background:var(--card-bg);z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);justify-content:space-between;align-items:center;padding:12px 16px;display:flex;position:sticky;top:0}.header-left{align-items:center;gap:8px;display:flex}.header-logo{font-size:1.4rem}.header-title{background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:1.1rem;font-weight:700}.header-user{border:1px solid var(--border);cursor:pointer;color:var(--text);background:0 0;border-radius:20px;align-items:center;gap:8px;padding:6px 10px;font-family:inherit;transition:background .15s;display:flex}.header-user:hover{background:var(--hover)}.user-name{text-overflow:ellipsis;white-space:nowrap;max-width:100px;font-size:.8rem;font-weight:500;overflow:hidden}.guest-tag{background:var(--accent);color:#fff;border-radius:8px;padding:1px 6px;font-size:.6rem}.user-avatar{background:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex;overflow:hidden}.avatar-img{object-fit:cover;width:100%;height:100%}.avatar-placeholder{color:#fff;font-size:.8rem;font-weight:700}@media (width<=400px){.user-name{display:none}}.section-list{flex-direction:column;gap:30px;max-width:860px;margin:0 auto;padding:4px 16px 40px;display:flex}.level-group{flex-direction:column;gap:14px;display:flex}.level-header{align-items:center;gap:10px;display:flex}.level-indicator{border-radius:999px;flex-shrink:0;width:6px;height:26px}.level-title{letter-spacing:.01em;font-size:1.05rem;font-weight:800}.mylist-count{color:#fff;background:linear-gradient(135deg,#a855f7,#ec4899);border-radius:999px;padding:3px 10px;font-size:.7rem;font-weight:800;box-shadow:0 2px 8px #a855f766}.locked-badge{color:var(--text-tertiary);background:var(--hover);border-radius:999px;padding:3px 10px;font-size:.7rem;font-weight:700}.unlock-hint{color:var(--text-tertiary);margin-left:16px;font-size:.76rem;line-height:1.5}.section-grid{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=620px){.section-grid{grid-template-columns:repeat(2,1fr)}}.section-locked{opacity:.45;pointer-events:none;filter:saturate(.4)}.section-card{background:var(--card-bg);border:1px solid var(--border);cursor:pointer;text-align:left;color:var(--text);border-radius:18px;gap:13px;width:100%;padding:15px 16px;font-family:inherit;transition:transform .18s cubic-bezier(.34,1.4,.64,1),box-shadow .2s,border-color .2s;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 10px #0f172a0d}.section-card:before{content:"";background:var(--level-color,var(--accent));opacity:.85;width:4px;position:absolute;inset:0 auto 0 0}.section-card:hover:not(:disabled){border-color:var(--level-color,var(--accent));transform:translateY(-4px);box-shadow:0 12px 28px #0f172a21}.section-card:active:not(:disabled){transform:translateY(-1px)scale(.99)}.section-card:disabled{cursor:not-allowed}.section-icon{background:color-mix(in srgb, var(--level-color,#6366f1) 14%, transparent);border-radius:14px;flex-shrink:0;place-items:center;width:46px;height:46px;font-size:1.7rem;transition:transform .25s cubic-bezier(.34,1.56,.64,1);display:grid}.section-card:hover:not(:disabled) .section-icon{transform:scale(1.12)rotate(-6deg)}.section-info{flex:1;min-width:0}.section-title{margin-bottom:4px;font-size:.96rem;font-weight:800}.section-desc{color:var(--text-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:9px;font-size:.75rem;line-height:1.45;display:-webkit-box;overflow:hidden}.section-meta{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.section-meta span{background:var(--hover);color:var(--text-tertiary);border-radius:999px;padding:3px 9px;font-size:.66rem;font-weight:700}.meta-accuracy{color:var(--text-secondary)!important}.meta-mastered{color:#16a34a!important;background:#22c55e24!important}.section-progress-bar{background:var(--border);border-radius:999px;height:6px;overflow:hidden}.section-progress-fill{border-radius:999px;height:100%;transition:width .6s cubic-bezier(.34,1.4,.64,1)}.section-complete-badge{font-size:.95rem;animation:2.4s ease-in-out infinite badgeFloat;position:absolute;top:10px;right:12px}@keyframes badgeFloat{0%,to{transform:translateY(0)rotate(0)}50%{transform:translateY(-3px)rotate(8deg)}}.test-tube-wrapper{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;flex-direction:column;align-items:center;gap:8px;transition:transform .2s;display:flex}.test-tube-wrapper:hover{transform:scale(1.05)}.test-tube-wrapper:active{transform:scale(.97)}.tube-selected{transform:scale(1.08)!important}.tube-correct{filter:drop-shadow(0 0 16px #22c55ecc)drop-shadow(0 0 32px #22c55e66)}.tube-wrong{filter:drop-shadow(0 0 16px #ef4444cc)drop-shadow(0 0 32px #ef444466)}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-7px)}40%{transform:translate(7px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}.test-tube-sm .tube-outer{width:32px;height:80px}.test-tube-md .tube-outer{width:44px;height:120px}.test-tube-lg .tube-outer{width:64px;height:180px}.test-tube-sm .flame-container{width:44px;height:90px}.test-tube-md .flame-container{width:58px;height:130px}.test-tube-lg .flame-container{width:80px;height:190px}.test-tube-container{position:relative}.tube-outer{flex-direction:column;display:flex;position:relative}.tube-glass{background:linear-gradient(135deg,#dcebff26 0%,#b4d2f014 50%,#dcebff1f 100%);border:2px solid #8caac899;border-bottom:none;border-radius:0;flex:1;position:relative;overflow:hidden}.tube-rim{z-index:2;background:linear-gradient(#a0bedccc,#8caac880);border-radius:3px 3px 0 0;height:6px;position:absolute;top:-3px;left:-4px;right:-4px}.tube-bottom{background:linear-gradient(#dcebff1a,#c8dcf033);border:2px solid #8caac899;border-top:none;border-radius:0 0 50% 50%;width:100%;height:16px}.tube-reflection{z-index:3;pointer-events:none;background:linear-gradient(#fff6,#ffffff1a,#0000);border-radius:2px;width:4px;height:60%;position:absolute;top:8px;left:3px}.tube-liquid{height:65%;transition:background-color .3s;position:absolute;bottom:0;left:0;right:0}.liquid-animate{animation:3s ease-in-out infinite liquidWobble}@keyframes liquidWobble{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}.tube-liquid-transparent{background:linear-gradient(#c8dcff14 0%,#c8dcff26 50%,#c8dcff14 100%);border-top:1px solid #c8dcff33;position:absolute;inset:0}.tube-liquid-white{background:repeating-linear-gradient(0deg,#0000,#0000 3px,#00000008 3px 6px);position:absolute;inset:0}.tube-liquid-clear{background:linear-gradient(#c8dcff0d,#c8dcff1a)}.tube-precipitate{border-top:2px solid #0000001a;height:28%;position:absolute;bottom:0;left:0;right:0}.precipitate-animate{animation:1s ease-out forwards settleDown}@keyframes settleDown{0%{opacity:.4;height:60%}to{opacity:1;height:28%}}.precipitate-white-pattern{background:repeating-linear-gradient(45deg,#0000,#0000 2px,#0000000d 2px 4px);position:absolute;inset:0}.tube-solid{border-radius:0 0 2px 2px;height:40%;position:absolute;bottom:0;left:0;right:0}.solid-animate{animation:.5s ease-out solidAppear}@keyframes solidAppear{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.solid-white-pattern{background:repeating-linear-gradient(-45deg,#0000,#0000 3px,#0000000f 3px 5px);position:absolute;inset:0}.tube-gas{transition:opacity .5s;position:absolute;inset:0}.gas-animate{animation:4s ease-in-out infinite gasSwirl}@keyframes gasSwirl{0%,to{opacity:var(--gas-opacity,.4)}50%{opacity:calc(var(--gas-opacity,.4) * .7)}}.smoke-container{z-index:5;pointer-events:none;width:40px;height:50px;position:absolute;top:-40px;left:50%;transform:translate(-50%)}.smoke-particle{background:var(--smoke-color,#ddd);opacity:0;width:8px;height:8px;animation:2s ease-out infinite smokeRise;animation-delay:var(--delay,0s);border-radius:50%;position:absolute;bottom:0;left:50%}@keyframes smokeRise{0%{opacity:.6;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(calc(-50% + var(--x-offset,0px)), -40px) scale(2)}}.bubbles{position:absolute;inset:0;overflow:hidden}.bubble{width:4px;height:4px;animation:1.8s ease-in infinite bubbleUp;animation-delay:var(--bubble-delay,0s);background:#ffffff80;border:1px solid #ffffff4d;border-radius:50%;position:absolute;bottom:5px}.bubble:first-child{left:25%}.bubble:nth-child(2){left:50%}.bubble:nth-child(3){left:70%}@keyframes bubbleUp{0%{opacity:0;transform:translateY(0)scale(.5)}20%{opacity:1}to{opacity:0;transform:translateY(-60px)scale(1.2)}}.flame-container{flex-direction:column;align-items:center;display:flex;position:relative}.flame{flex-shrink:0;width:30px;height:60px;position:relative}.flame-inner{opacity:.9;z-index:2;background:#fff;border-radius:50%/60% 60% 40% 40%;width:14px;height:35px;position:absolute;bottom:0;left:50%;transform:translate(-50%)}.flame-outer{background:var(--flame-color,#f60);z-index:1;width:28px;height:55px;box-shadow:0 0 20px var(--flame-color,#f60), 0 0 40px var(--flame-color,#f60);border-radius:50%/60% 60% 40% 40%;position:absolute;bottom:0;left:50%;transform:translate(-50%)}.flame-animate .flame-inner{animation:.3s ease-in-out infinite alternate flameFlicker}.flame-animate .flame-outer{animation:.4s ease-in-out infinite alternate flameFlickerOuter}@keyframes flameFlicker{0%{width:12px;height:32px}to{width:16px;height:38px}}@keyframes flameFlickerOuter{0%{width:26px;height:50px}to{width:30px;height:58px}}.burner{background:linear-gradient(#666,#444);border-radius:2px;width:40px;height:12px;margin-top:-2px}.tube-label{color:var(--text-secondary);text-align:center;max-width:80px;font-size:.7rem;line-height:1.2}@media (prefers-color-scheme:dark){.tube-glass{background:linear-gradient(135deg,#5078a01f 0%,#3c648c0f 50%,#5078a01a 100%);border-color:#648cb466}.tube-bottom{border-color:#648cb466}.tube-rim{background:linear-gradient(#78a0c899,#648cb466)}.tube-liquid-transparent{background:linear-gradient(#78a0dc14 0%,#78a0dc1f 50%,#78a0dc0f 100%);border-top-color:#78a0dc26}}:root[data-theme=dark] .tube-glass{background:linear-gradient(135deg,#5078a01f 0%,#3c648c0f 50%,#5078a01a 100%);border-color:#648cb466}:root[data-theme=dark] .tube-bottom{border-color:#648cb466}.quiz-screen{max-width:820px;height:100dvh;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));isolation:isolate;flex-direction:column;margin:0 auto;transition:background-color .4s;display:flex;position:relative;overflow:hidden}.quiz-aurora{z-index:-1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.blob{filter:blur(60px);opacity:.35;border-radius:50%;position:absolute}.blob-a{background:#818cf8;width:260px;height:260px;animation:18s ease-in-out infinite drift1;top:-80px;left:-70px}.blob-b{background:#f0abfc;width:220px;height:220px;animation:22s ease-in-out infinite drift2;bottom:10%;right:-70px}.blob-c{background:#67e8f9;width:200px;height:200px;animation:26s ease-in-out infinite drift3;bottom:-70px;left:25%}@keyframes drift1{0%,to{transform:translate(0)scale(1)}50%{transform:translate(40px,50px)scale(1.15)}}@keyframes drift2{0%,to{transform:translate(0)scale(1)}50%{transform:translate(-50px,-40px)scale(1.1)}}@keyframes drift3{0%,to{transform:translate(0)scale(1)}50%{transform:translate(30px,-50px)scale(1.2)}}@media (prefers-color-scheme:dark){.blob{opacity:.22}}@media (prefers-reduced-motion:reduce){.blob{animation:none}}.screen-correct{background-color:#22c55e17}.screen-wrong{background-color:#ef444417}.confetti{pointer-events:none;z-index:30;position:absolute;inset:0;overflow:hidden}.confetti-piece{opacity:0;border-radius:2px;width:9px;height:14px;animation-name:confettiFall;animation-timing-function:cubic-bezier(.2,.6,.4,1);animation-fill-mode:forwards;position:absolute;top:32%}.confetti-round{border-radius:50%;width:10px;height:10px}@keyframes confettiFall{0%{opacity:1;transform:translate(0)rotate(0)scale(.6)}25%{opacity:1;transform:translate(calc(var(--drift) * .4), -70px) rotate(calc(var(--spin) * .4)) scale(1)}to{opacity:0;transform:translate(var(--drift), 240px) rotate(var(--spin)) scale(.9)}}@media (prefers-reduced-motion:reduce){.confetti{display:none}}.quiz-header{flex-shrink:0;align-items:center;gap:10px;padding-bottom:8px;display:flex}.back-btn{background:var(--card-bg);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:12px;flex-shrink:0;place-items:center;width:34px;height:34px;font-size:1rem;transition:transform .15s,background .15s;display:grid;box-shadow:0 1px 3px #0000000f}.back-btn:hover{background:var(--hover);transform:translate(-2px)}.quiz-section-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:.95rem;font-weight:700;overflow:hidden}.quiz-stats{flex-shrink:0;align-items:center;gap:8px;display:flex}.stat-streak,.stat-score{background:var(--card-bg);border:1px solid var(--border);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:3px;padding:4px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.streak-flame{filter:grayscale()opacity(.45);font-size:.85rem;transition:filter .3s;display:inline-block}.streak-hot .streak-flame{filter:none;animation:.9s ease-in-out infinite flamePulse}.streak-blaze{background:linear-gradient(135deg,#fb923c33,#ef444426);border-color:#fb923c;box-shadow:0 0 12px #fb923c66}.streak-blaze .streak-num{color:#f97316}@keyframes flamePulse{0%,to{transform:scale(1)}50%{transform:scale(1.22)}}.score-sep{opacity:.4;margin:0 1px}.quiz-body{flex-direction:column;flex:1;justify-content:center;gap:10px;min-height:0;display:flex}.question-card{background:var(--card-bg);border:1px solid var(--border);text-align:center;border-radius:20px;flex-shrink:0;padding:16px 18px 14px;position:relative;overflow:hidden;box-shadow:0 4px 20px #0f172a12}.question-card:before{content:"";background:linear-gradient(90deg,#6366f1,#a855f7,#ec4899,#f59e0b) 0 0/300% 100%;height:4px;animation:6s linear infinite shimmer;position:absolute;inset:0 0 auto}@keyframes shimmer{0%{background-position:0 0}to{background-position:300% 0}}.question-substance{letter-spacing:.5px;margin-bottom:3px;font-size:1.65rem;font-weight:800;line-height:1.2}.question-name{color:var(--text-secondary);margin-bottom:6px;font-size:.85rem;font-weight:600}.question-reaction{color:var(--text-tertiary);font-size:.76rem;line-height:1.45}.bookmark-btn{cursor:pointer;color:var(--text-tertiary);-webkit-tap-highlight-color:transparent;background:0 0;border:none;padding:4px 6px;font-size:1.15rem;line-height:1;transition:transform .2s cubic-bezier(.34,1.56,.64,1),color .2s;position:absolute;top:8px;left:10px}.bookmark-btn:hover{color:#f59e0b;transform:scale(1.2)}.bookmark-btn.bookmark-on{color:#f59e0b;animation:.35s cubic-bezier(.34,1.56,.64,1) starPop}@keyframes starPop{0%{transform:scale(.6)rotate(-25deg)}60%{transform:scale(1.3)rotate(10deg)}to{transform:scale(1)rotate(0)}}.level-badge{letter-spacing:.03em;border-radius:999px;padding:3px 9px;font-size:.62rem;font-weight:800;position:absolute;top:10px;right:12px}.level-basic{color:#16a34a;background:#22c55e26}.level-common-test{color:#2563eb;background:#3b82f626}.level-intermediate{color:#d97706;background:#f59e0b2e}.level-advanced{color:#dc2626;background:#ef444426}.quiz-prompt{text-align:center;color:var(--text-secondary);flex-shrink:0;min-height:1.3em;font-size:.85rem;font-weight:600}.quiz-prompt b{color:var(--accent);font-weight:800}.prompt-ok{color:#16a34a;font-weight:800}.prompt-ng{color:#dc2626;font-weight:800}.quiz-options{flex-shrink:1;grid-template-columns:repeat(2,1fr);gap:10px;min-height:0;display:grid}@media (width>=620px){.quiz-options{grid-template-columns:repeat(4,1fr)}.quiz-option .test-tube-sm .tube-outer{width:46px;height:130px}.quiz-option .test-tube-sm .flame-container{width:60px;height:140px}.option-color-label{font-size:.85rem}}@media (width<=619px){.is-answered .quiz-body{justify-content:flex-start;padding-top:4px}.is-answered .quiz-options{grid-template-columns:repeat(4,1fr);gap:6px}.is-answered .quiz-option{border-radius:14px;gap:3px;padding:8px 2px}.is-answered .option-color-label{font-size:.58rem}.is-answered .option-mark{width:20px;height:20px;font-size:.65rem;top:-7px;right:-5px}}.quiz-option{border:2px solid var(--border);background:var(--card-bg);color:var(--text);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:10px 6px;font-family:inherit;transition:border-color .2s,background-color .3s,transform .18s,box-shadow .2s,opacity .3s;display:flex;position:relative;box-shadow:0 2px 10px #0f172a0f}.quiz-option:not(:disabled):hover{border-color:var(--accent);transform:translateY(-4px);box-shadow:0 10px 22px #6366f138}.quiz-option:not(:disabled):active{transform:translateY(-1px)scale(.97)}.quiz-option:disabled{cursor:default}.option-dimmed{opacity:.4;filter:saturate(.6)}.option-is-correct{animation:.55s cubic-bezier(.34,1.56,.64,1) correctPop;background:linear-gradient(#22c55e29,#22c55e0f)!important;border-color:#22c55e!important;box-shadow:0 0 0 4px #22c55e29,0 8px 24px #22c55e4d!important}.option-is-wrong{animation:.45s ease-in-out shake;background:linear-gradient(#ef444424,#ef44440d)!important;border-color:#ef4444!important}@keyframes correctPop{0%{transform:scale(1)}40%{transform:scale(1.09)}70%{transform:scale(.98)}to{transform:scale(1)}}.option-mark{color:#fff;z-index:4;background:#22c55e;border-radius:50%;place-items:center;width:26px;height:26px;font-size:.82rem;font-weight:900;animation:.35s cubic-bezier(.34,1.56,.64,1) markIn;display:grid;position:absolute;top:-9px;right:-7px;box-shadow:0 3px 10px #22c55e80}.option-mark-ng{background:#ef4444;box-shadow:0 3px 10px #ef444480}@keyframes markIn{0%{opacity:0;transform:scale(0)rotate(-45deg)}to{opacity:1;transform:scale(1)rotate(0)}}.option-color-label{color:var(--text-secondary);text-align:center;font-size:.76rem;font-weight:700;line-height:1.25}.option-is-correct .option-color-label{color:#16a34a;font-weight:800}.option-is-wrong .option-color-label{color:#dc2626}.quiz-progress-bar{background:var(--border);border-radius:999px;flex-shrink:0;height:6px;margin-top:10px;overflow:hidden}.quiz-progress-fill{background:linear-gradient(90deg,#22c55e,#4ade80,#22c55e) 0 0/200% 100%;border-radius:999px;height:100%;transition:width .6s cubic-bezier(.34,1.4,.64,1);animation:3s linear infinite shimmer}.result-sheet{z-index:20;max-height:62dvh;padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--card-bg);border-top:3px solid;border-radius:24px 24px 0 0;flex-direction:column;gap:10px;animation:.32s cubic-bezier(.34,1.3,.64,1) sheetUp;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -10px 40px #0f172a2e}@media (width>=620px){.result-sheet{border-top-width:4px;border-radius:24px;max-height:50dvh;bottom:14px;left:14px;right:14px}}.sheet-correct{border-top-color:#22c55e}.sheet-wrong{border-top-color:#ef4444}@keyframes sheetUp{0%{opacity:.5;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.sheet-scroll{-webkit-overflow-scrolling:touch;min-height:0;overflow-y:auto}.sheet-headline{align-items:center;gap:10px;margin-bottom:10px;display:flex}.sheet-emoji{flex-shrink:0;font-size:1.5rem;line-height:1;animation:.5s cubic-bezier(.34,1.56,.64,1) emojiPop}@keyframes emojiPop{0%{transform:scale(0)rotate(-30deg)}60%{transform:scale(1.25)rotate(8deg)}to{transform:scale(1)rotate(0)}}.sheet-headline-text{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.sheet-headline-text strong{font-size:1rem;font-weight:800}.sheet-correct .sheet-headline-text strong{color:#16a34a}.sheet-wrong .sheet-headline-text strong{color:#dc2626}.sheet-headline-text span{color:var(--text-secondary);font-size:.78rem;font-weight:600}.combo-badge{color:#fff;white-space:nowrap;background:linear-gradient(135deg,#fb923c,#ef4444);border-radius:999px;flex-shrink:0;padding:4px 10px;font-size:.7rem;font-weight:800;animation:.4s cubic-bezier(.34,1.56,.64,1) comboIn;box-shadow:0 3px 10px #fb923c73}@keyframes comboIn{0%{opacity:0;transform:scale(.4)translateY(6px)}to{opacity:1;transform:scale(1)translateY(0)}}.sheet-notes{flex-direction:column;gap:8px;display:flex}.note-goro{background:linear-gradient(135deg,#f59e0b29,#ec48991f);border:1px solid #f59e0b59;border-radius:14px;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.note-tag{letter-spacing:.08em;color:#fff;background:#f59e0b;border-radius:999px;flex-shrink:0;margin-top:1px;padding:3px 8px;font-size:.62rem;font-weight:800}.note-goro-text{color:var(--text);font-size:.85rem;font-weight:800;line-height:1.45}.note-explain{color:var(--text-secondary);padding:0 2px;font-size:.76rem;line-height:1.6}.sheet-actions{flex-shrink:0;gap:8px;display:flex}.sheet-bookmark-btn{border:2px solid var(--border);background:var(--card-bg);color:var(--text-secondary);cursor:pointer;white-space:nowrap;border-radius:16px;flex-shrink:0;padding:13px 14px;font-family:inherit;font-size:.78rem;font-weight:800;transition:border-color .2s,color .2s,transform .15s}.sheet-bookmark-btn:hover{color:#f59e0b;border-color:#f59e0b}.sheet-bookmark-btn.bookmark-on{color:#f59e0b;background:#f59e0b1f;border-color:#f59e0b}.sheet-bookmark-btn:active{transform:scale(.97)}.next-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:16px;flex:1;padding:13px 20px;font-size:.92rem;font-weight:800;transition:transform .15s,box-shadow .2s;box-shadow:0 6px 20px #6366f166}.next-btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px #6366f180}.next-btn:active{transform:translateY(0)scale(.98)}.best-streak-hint{color:var(--text-tertiary);background:var(--card-bg);border:1px solid var(--border);white-space:nowrap;border-radius:999px;padding:5px 14px;font-size:.72rem;font-weight:700;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}.quiz-empty{color:var(--text-secondary);flex:1;justify-content:center;align-items:center;display:flex}@media (height<=700px){.question-substance{font-size:1.4rem}.question-card{padding:12px 14px 11px}.question-reaction{font-size:.72rem}.quiz-body{gap:8px}.result-sheet{max-height:66dvh}}.modal-overlay{z-index:200;background:#00000080;justify-content:center;align-items:center;padding:20px;animation:.2s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:var(--card-bg);border:1px solid var(--border);border-radius:20px;width:100%;max-width:400px;padding:28px;animation:.2s slideIn;position:relative}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-close{color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;padding:4px;font-size:1.5rem;line-height:1;position:absolute;top:12px;right:16px}.profile-header-section{text-align:center;margin-bottom:20px}.profile-avatar-large{background:var(--accent);border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 10px;display:flex;overflow:hidden}.profile-avatar-large img{object-fit:cover;width:100%;height:100%}.profile-avatar-large span{color:#fff;font-size:1.5rem;font-weight:700}.profile-name{font-size:1.2rem;font-weight:600}.profile-guest-badge{background:var(--accent);color:#fff;border-radius:10px;margin-top:4px;padding:2px 10px;font-size:.7rem;display:inline-block}.profile-stats-section{background:var(--bg);border-radius:12px;justify-content:center;gap:24px;margin-bottom:20px;padding:16px;display:flex}.profile-stat{flex-direction:column;align-items:center;gap:2px;display:flex}.profile-stat-value{font-size:1.3rem;font-weight:700}.profile-stat-label{color:var(--text-tertiary);font-size:.7rem}.profile-link-section{background:#3b82f614;border:1px solid #3b82f633;border-radius:12px;margin-bottom:20px;padding:14px}.link-description{color:var(--text-secondary);margin-bottom:10px;font-size:.8rem;line-height:1.5}.link-google-btn{color:#fff;cursor:pointer;background:#4285f4;border:none;border-radius:8px;width:100%;padding:10px;font-family:inherit;font-size:.85rem;font-weight:500;transition:opacity .15s}.link-google-btn:hover{opacity:.9}.profile-actions{flex-direction:column;gap:8px;display:flex}.profile-action-btn{background:var(--bg);border:1px solid var(--border);cursor:pointer;width:100%;color:var(--text);border-radius:8px;padding:10px;font-family:inherit;font-size:.85rem;transition:background .15s}.profile-action-btn:hover{background:var(--hover)}.profile-action-btn.danger{color:#ef4444;border-color:#ef44444d}.profile-action-btn.danger:hover{background:#ef444414}.app{flex-direction:column;min-height:100dvh;display:flex}.app-main{flex:1;padding-top:20px}.main-intro{text-align:center;max-width:600px;margin:0 auto;padding:20px 16px 28px}.intro-title{margin-bottom:8px;font-size:1.4rem;font-weight:700}.intro-desc{color:var(--text-secondary);font-size:.85rem;line-height:1.6}.loading-screen{min-height:100dvh;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex}.loading-spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}
