/* Класно — styles for AI tutor, tools, games, reference, planner, progress and extras. Uses theme tokens from main.css. */

/* ---------- header additions ---------- */
.nav-ai { display: inline-flex; align-items: center; gap: 4px; }
.nav-new { display: inline-block; animation: sparkle 2.4s ease-in-out infinite; font-size: 13px; }
.tools-menu { grid-template-columns: 1fr; width: min(360px, 90vw); left: auto; right: -40px; transform: none; gap: 2px; }
.tools-menu a { display: flex; align-items: center; gap: 12px; height: auto; padding: 9px 10px; font: 600 14px/1.25 'Onest', sans-serif; text-align: left; place-items: initial; background: transparent; }
.tools-menu a:hover { background: var(--accent-soft); color: var(--accent-2); transform: translateX(3px); }
.tools-menu a b { display: block; font-size: 14px; color: var(--ink); }
.tools-menu a small { display: block; font-size: 12px; color: var(--muted); }
.tool-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 18px; }
.xp-chip { gap: 3px; padding: 0 10px; font-size: 15px; }
.xp-chip b { font-size: 13px; font-weight: 800; color: var(--gold); }
@media (max-width: 640px) { .xp-chip { display: none; } }
@media (max-width: 400px) { .header-actions { gap: 5px; } .header-actions .icon-btn { min-width: 38px; height: 38px; padding: 0 8px; } .brand-word { font-size: 19px; } }
@media (max-width: 1024px) { .tools-menu { width: auto; right: auto; } }

/* ---------- home: tools, fact, AI band ---------- */
.tools-section { padding: 10px 0 60px; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--spring), border-color .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; transition: transform .4s var(--spring); }
.tool-card:hover .tool-card-icon { transform: scale(1.2) rotate(-10deg); }
.tool-card b { font: 800 16px/1.25 'Manrope', sans-serif; }
.tool-card small { color: var(--muted); font-size: 13px; }
.tool-card-go { position: absolute; right: 16px; top: 16px; color: var(--accent-2); font-weight: 800; transition: transform .25s var(--spring); }
.tool-card:hover .tool-card-go { transform: translateX(4px); }
.tool-card--ai { grid-column: span 2; color: #fff; border: 0; background: linear-gradient(120deg, #6d5bd0, #c056b8 55%, #f08a6c); }
.tool-card--ai small, .tool-card--ai .tool-card-go { color: rgba(255, 255, 255, .9); }
.tool-card--ai::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); animation: orbit 20s linear infinite; }
@media (max-width: 640px) { .tool-card--ai { grid-column: auto; } }
.fact-card { display: flex; align-items: center; gap: 16px; margin: 0 auto 30px; padding: 18px 22px; border-radius: 20px; background: linear-gradient(120deg, var(--gold-soft), var(--surface) 70%); border: 1px solid var(--line); }
.fact-card .fact-icon { flex: none; font-size: 34px; animation: wobble 4s ease-in-out infinite; }
.fact-card b { display: block; font-family: 'Manrope', sans-serif; margin-bottom: 2px; }
.fact-card p { margin: 0; color: var(--ink-soft); }
.fact-card .fact-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .fact-card { flex-wrap: wrap; } .fact-card .fact-actions { margin-left: 0; } }

/* ---------- AI tutor ---------- */
.ai-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.ai-hero h1 { font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -1.6px; margin: 0 0 6px; }
.ai-orb { position: relative; flex: none; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c8b6ff, #7a5cf0 60%, #4b35b8); box-shadow: 0 0 40px color-mix(in srgb, #7a5cf0 55%, transparent); animation: float-c 5s ease-in-out infinite; }
.ai-orb span { font-size: 46px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.ai-orb i { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); animation: ai-ring 3s ease-out infinite; }
.ai-orb i:nth-child(3) { animation-delay: 1s; }
.ai-orb i:nth-child(4) { animation-delay: 2s; }
@keyframes ai-ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.ai-form { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ai-book { margin: 0; font-size: 14px; color: var(--muted); }
.ai-book a { color: var(--accent-2); font-weight: 700; }
.ai-question { position: relative; display: block; }
.ai-question textarea { width: 100%; min-height: 130px; padding: 14px 16px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); outline: 0; resize: vertical; font-size: 16px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
.ai-question textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.ai-counter { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); }
.ai-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-form-row .select-wrap { flex: 1 1 180px; }
.ai-form-row .select-wrap select { width: 100%; }
.ai-submit { min-height: 48px; padding: 0 26px; margin-left: auto; background: linear-gradient(120deg, #7a5cf0, var(--accent)); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.ai-examples .chip { font-size: 12.5px; padding: 6px 10px; white-space: normal; text-align: left; }
.ai-form > * { min-width: 0; }
.ai-privacy { margin: 0; font-size: 12.5px; color: var(--muted); }
.ai-thinking { display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line-strong); font-weight: 700; color: var(--ink-soft); }
.ai-dots { display: flex; gap: 6px; }
.ai-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: dot-bounce 1s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: .15s; background: var(--mint); }
.ai-dots i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes dot-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.ai-result { margin-top: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.ai-result:empty { display: none; }
.ai-card { animation: rise-in .45s var(--ease-out) both; }
.pill--ai { color: #fff; background: linear-gradient(120deg, #7a5cf0, #c056b8); border-color: transparent; }
.ai-note { margin: 0; font-size: 16px; font-weight: 600; }
.ai-card--note { padding: 20px; }
.ai-disclaimer { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.tutor-check summary::before { content: none; }
.ai-popular, .ai-history { margin-top: 34px; }
.ai-popular-list, .ai-history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ai-history-list .search-solution { text-align: left; border: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.book-ai-link { background: linear-gradient(120deg, #7a5cf0, #c056b8); color: #fff; }
.book-ai-link:hover { color: #fff; box-shadow: 0 10px 24px rgba(122, 92, 240, .35); }
@media (max-width: 640px) { .ai-hero { flex-direction: column; align-items: flex-start; } .ai-orb { width: 72px; height: 72px; } .ai-orb span { font-size: 34px; } .ai-submit { width: 100%; } }

/* ---------- solvers ---------- */
.solver-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.solver-tabs { position: sticky; top: calc(var(--header-h) + 14px); display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; }
.solver-tab { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; transition: background .2s, transform .2s; }
.solver-tab:hover { background: var(--accent-soft); transform: translateX(3px); }
.solver-tab.is-active { background: var(--accent); color: var(--on-accent); }
.solver-tab.is-active small { color: inherit; opacity: .85; }
.solver-tab b { display: block; font-size: 14px; }
.solver-tab small { display: block; font-size: 12px; color: var(--muted); }
.solver-tab-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 17px; font-weight: 800; color: var(--ink); }
.solver-panel { display: grid; gap: 16px; min-width: 0; }
.solver-form { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise-in .3s var(--ease-out) both; }
.solver-title { font-size: 22px; margin: 0; }
.solver-row { display: flex; flex-wrap: wrap; gap: 10px; }
.solver-field { display: grid; gap: 5px; flex: 1 1 110px; font-size: 13px; font-weight: 700; color: var(--muted); }
.solver-field input, .solver-field select { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.solver-field input:focus, .solver-field select:focus { border-color: var(--accent); }
.solver-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.solver-form .button { justify-self: start; }
.solver-placeholder { text-align: center; padding: 40px 20px; color: var(--muted); border-radius: var(--radius); border: 1.5px dashed var(--line-strong); }
.solver-placeholder span { font-size: 40px; display: block; margin-bottom: 8px; animation: wobble 3s ease-in-out infinite; }
.solver-result .tutor-step { animation: step-in .45s var(--spring) both; }
@media (max-width: 860px) { .solver-layout { grid-template-columns: 1fr; } .solver-tabs { position: static; max-height: none; flex-direction: row; overflow-x: auto; } .solver-tab { flex: none; } .solver-tab small { display: none; } }

/* ---------- games ---------- */
.game-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.game-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 150px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-align: left; overflow: hidden; transition: transform .3s var(--spring), box-shadow .2s, border-color .2s; }
.game-card::before { content: ''; position: absolute; inset: auto -30px -50px auto; width: 130px; height: 130px; border-radius: 50%; background: var(--g, var(--accent-soft)); opacity: .5; transition: transform .5s var(--ease-out); }
.game-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--accent); }
.game-card:hover::before { transform: scale(1.5); }
.game-card--math { --g: hsl(262 80% 65% / .35); } .game-card--geo { --g: hsl(175 70% 50% / .35); } .game-card--chem { --g: hsl(30 90% 60% / .35); }
.game-card--eng { --g: hsl(345 80% 62% / .35); } .game-card--ukr { --g: hsl(48 95% 55% / .4); }
.game-card-icon { position: relative; font-size: 36px; margin-bottom: 8px; }
.game-card b { position: relative; font: 800 17px/1.2 'Manrope', sans-serif; }
.game-card small { position: relative; color: var(--muted); font-size: 13px; }
.game-best { position: relative; margin-top: auto; font-size: 13px; font-weight: 800; color: var(--gold); }
.game-stage { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); animation: rise-in .35s var(--ease-out) both; }
.game-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.game-title { font: 800 19px 'Manrope', sans-serif; }
.game-stats { margin-left: auto; display: flex; gap: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.game-stats .is-hurry { color: var(--danger); animation: pulse .6s ease-in-out infinite; }
.game-body { min-height: 300px; display: grid; align-content: center; gap: 18px; }
.game-question { text-align: center; font: 800 clamp(30px, 6vw, 52px)/1.2 'Manrope', sans-serif; padding: 18px; border-radius: 18px; background: var(--surface-2); }
.game-question small { font: 600 16px 'Onest', sans-serif; color: var(--muted); }
.game-question.is-ok { animation: flash-ok .5s ease; }
.game-question.is-bad { animation: shake .45s ease; }
@keyframes flash-ok { 0% { box-shadow: 0 0 0 0 var(--mint); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--mint) 40%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.game-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-option { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font: 800 20px 'Manrope', sans-serif; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.game-option:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-option kbd { font-size: 10px; }
.game-option.is-ok { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); animation: answer-pop .4s var(--spring); }
.game-option.is-bad { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); animation: shake .4s ease; }
.game-typed { display: flex; gap: 10px; justify-content: center; }
.game-typed input { width: min(260px, 60vw); min-height: 60px; text-align: center; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); font: 800 26px 'Manrope', sans-serif; outline: 0; }
.game-typed input:focus { border-color: var(--accent); }
.game-hint { text-align: center; color: var(--danger); font-weight: 700; min-height: 1.4em; margin: 0; }
.game-over { text-align: center; animation: rise-in .4s var(--ease-out) both; }
.game-over-score { font: 800 90px/1 'Manrope', sans-serif; background: linear-gradient(120deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-over-stars { font-size: 34px; margin: 0; }
.game-over-actions { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.game-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.game-levels p { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.game-levels .button { flex-direction: column; min-height: 90px; white-space: normal; font-size: 16px; }
.game-levels small { font-weight: 500; color: var(--muted); }
.frac-q { display: flex; align-items: center; justify-content: center; gap: 30px; }
.gfrac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.gfrac b { padding: 0 10px 4px; border-bottom: 4px solid currentColor; }
.gfrac i { font-style: normal; padding-top: 4px; }
.frac-gap { min-width: 60px; color: var(--accent); }
.apo-gap { display: inline-block; min-width: .7em; color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.el-big { font-size: 1.3em; color: var(--accent); }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.memory-card { position: relative; height: 92px; border: 0; background: transparent; transform-style: preserve-3d; transition: transform .45s var(--spring); }
.memory-card span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; border-radius: 14px; backface-visibility: hidden; font: 800 18px/1.15 'Manrope', sans-serif; }
.memory-front { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-size: 30px !important; }
.memory-back { transform: rotateY(180deg); background: var(--surface-2); border: 2px solid var(--line); }
.memory-back--sym { font-size: 28px !important; color: var(--accent-2); }
.memory-card.is-open, .memory-card.is-done { transform: rotateY(180deg); }
.memory-card.is-done .memory-back { border-color: var(--mint); background: var(--mint-soft); }
@media (max-width: 640px) { .game-levels { grid-template-columns: 1fr; } .memory-grid { grid-template-columns: repeat(3, 1fr); } .game-option { font-size: 17px; min-height: 56px; } }

/* ---------- reference & formulas ---------- */
.ref-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ref-chips { margin-bottom: 10px; }
.ref-section { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 10px); }
.ref-section h2 { font-size: 24px; }
.ref-section h2 small { font: 600 14px 'Onest', sans-serif; color: var(--muted); }
.formula-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.formula-card { display: grid; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: copy; transition: transform .25s var(--spring), border-color .2s, box-shadow .2s; }
.formula-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.formula-card b { font-size: 14px; color: var(--muted); }
.formula-math { font-size: 18px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.formula-math .katex, .formula-math .katex .base { white-space: nowrap; }
.formula-card small { color: var(--muted); font-size: 12.5px; }
.formula-card.copied { animation: answer-pop .5s var(--spring); border-color: var(--mint); }

/* ---------- periodic table ---------- */
.periodic-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.el-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.legend-chip { padding: 5px 10px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--c-bg); }
.periodic-scroll { overflow-x: auto; padding-bottom: 8px; }
.periodic-grid { display: grid; grid-template-columns: repeat(18, minmax(46px, 1fr)); grid-template-rows: repeat(7, auto) 14px repeat(2, auto); gap: 4px; min-width: 900px; }
.el { --c-bg: hsl(var(--c) / .22); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 3px 2px; border-radius: 8px; border: 1px solid hsl(var(--c) / .55); background: var(--c-bg); color: var(--ink); transition: transform .2s var(--spring), box-shadow .2s, opacity .2s; }
.el small { position: absolute; top: 2px; left: 4px; font-size: 9px; color: var(--muted); }
.el b { font: 800 17px/1.1 'Manrope', sans-serif; }
.el span { font-size: 8.5px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el:hover, .el:focus-visible { transform: scale(1.25); z-index: 2; box-shadow: var(--shadow); }
.legend-chip { --c-bg: hsl(var(--c) / .25); }
.el--alkali { --c: 0 80% 62%; } .el--alkaline { --c: 30 90% 58%; } .el--transition { --c: 205 75% 58%; } .el--post { --c: 185 55% 50%; }
.el--metalloid { --c: 150 55% 48%; } .el--nonmetal { --c: 95 60% 48%; } .el--halogen { --c: 55 90% 52%; } .el--noble { --c: 275 70% 65%; }
.el--lanthanide { --c: 320 65% 62%; } .el--actinide { --c: 340 70% 58%; } .el--unknown { --c: 0 0% 60%; }
.periodic-grid.is-filtering .el:not(.is-match) { opacity: .2; }
.periodic-grid .el.is-match { box-shadow: 0 0 0 2px hsl(var(--c)); }
.el-gap { display: grid; place-items: center; border-radius: 8px; border: 1px dashed var(--line-strong); font-size: 10px; color: var(--muted); }
.el-dialog { width: min(560px, calc(100% - 28px)); }
.el-detail { display: flex; gap: 20px; padding: 24px 24px 6px; }
.el-card { flex: none; position: relative; width: 110px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: hsl(var(--c) / .3); border: 2px solid hsl(var(--c)); animation: answer-pop .5s var(--spring); }
.el-card small { position: absolute; top: 8px; left: 10px; font-weight: 700; }
.el-card b { font: 800 44px/1 'Manrope', sans-serif; }
.el-card span { font-size: 13px; font-weight: 700; }
.el-card i { font-style: normal; font-size: 12px; color: var(--muted); }
.el-detail h2 { margin: 0 0 10px; font-size: 26px; }
.el-detail h2 small { color: var(--muted); }
.el-facts { display: grid; gap: 6px; margin: 0; }
.el-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.el-facts dt { color: var(--muted); }
.el-facts dd { margin: 0; font-weight: 700; text-align: right; }
.el-fact { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 14px; }
.el-dialog .modal-actions { padding: 0 24px 20px; }
@media (max-width: 640px) { .el-detail { flex-direction: column; } }

/* ---------- verbs ---------- */
.verbs-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.verbs-table-wrap { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.verbs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.verbs-table th { position: sticky; top: 0; text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); background: var(--surface-2); }
.verbs-table td { padding: 8px 12px; border-top: 1px solid var(--line); }
.verbs-table tr:hover td { background: var(--accent-soft); }
.verbs-table.hide-forms .v-form { color: transparent; text-shadow: 0 0 10px var(--muted); cursor: pointer; user-select: none; }
.verbs-table.hide-forms .v-form.is-shown { color: var(--accent-2); text-shadow: none; }

/* ---------- planner & grades ---------- */
.planner-grid, .progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.panel-card h2 { font-size: 20px; }
.panel-card h2 small { font: 600 14px 'Onest', sans-serif; color: var(--muted); }
.planner-form { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.planner-form input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: 0; }
.planner-form input:focus { border-color: var(--accent); }
.planner-filters { display: flex; gap: 6px; margin: 14px 0 8px; }
.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.planner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.planner-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); animation: rise-in .3s ease both; }
.planner-item label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.planner-item input { width: 20px; height: 20px; accent-color: var(--mint); }
.planner-item.is-done span { text-decoration: line-through; color: var(--muted); }
.due { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--surface-3); }
.due--today { background: var(--gold-soft); color: var(--gold); } .due--soon { background: var(--accent-soft); color: var(--accent-2); } .due--late { background: var(--danger-soft); color: var(--danger); }
.grade-pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 12px 0; }
.grade-key, .grade-pill { min-height: 44px; border: 0; border-radius: 12px; font: 800 18px 'Manrope', sans-serif; color: #fff; transition: transform .2s var(--spring); }
.grade-key:hover { transform: translateY(-3px); }
.grade-key.pop { animation: heart-pop .35s var(--spring); }
.g1, .g2, .g3 { background: hsl(0 70% 55%); } .g4, .g5, .g6 { background: hsl(30 85% 52%); } .g7, .g8, .g9 { background: hsl(200 70% 48%); } .g10, .g11, .g12 { background: hsl(150 60% 40%); }
.grade-list-box { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; }
.grade-pill { min-height: 34px; min-width: 34px; font-size: 15px; animation: answer-pop .3s var(--spring); }
.grade-result { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.grade-result b { font: 800 44px/1 'Manrope', sans-serif; color: var(--accent-2); }
.grade-result span { color: var(--muted); font-size: 14px; }
.goal-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.goal-row input { width: 80px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 800; }
.goal-advice { font-weight: 600; color: var(--ink-soft); }
@media (max-width: 860px) { .planner-grid, .progress-grid { grid-template-columns: 1fr; } .planner-form { grid-template-columns: 1fr; } }

/* ---------- focus timer ---------- */
.focus-box { display: grid; justify-items: center; gap: 18px; padding: 30px 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.focus-ring { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring circle { fill: none; stroke-width: 8; }
.focus-track { stroke: var(--surface-3); }
.focus-progress { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s linear, stroke .3s; }
.focus-box.is-break .focus-progress { stroke: var(--mint); }
.focus-time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.focus-time b { font: 800 clamp(48px, 12vw, 72px)/1 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.focus-time small { color: var(--muted); font-weight: 700; }
.focus-presets, .focus-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.focus-count { margin: 0; color: var(--muted); font-weight: 600; }
.focus-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; text-align: center; }
.focus-pill { position: fixed; z-index: 26; left: 18px; bottom: 18px; padding: 10px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-lg); animation: pop-in .3s var(--spring) both; }
.focus-pill:hover { transform: translateY(-2px); }

/* ---------- progress ---------- */
.level-card { display: flex; align-items: center; gap: 22px; padding: 22px; margin-bottom: 16px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #6d5bd0, #c056b8 60%, #f08a6c); box-shadow: 0 18px 40px rgba(109, 91, 208, .3); }
.level-badge { flex: none; width: 96px; height: 96px; display: grid; place-content: center; text-align: center; border-radius: 28px; background: rgba(255, 255, 255, .18); animation: float-c 5s ease-in-out infinite; }
.level-badge span { font: 800 44px/1 'Manrope', sans-serif; }
.level-badge small { font-weight: 700; opacity: .9; }
.level-info { flex: 1; min-width: 0; display: grid; gap: 8px; }
.level-info b { font: 800 26px 'Manrope', sans-serif; }
.xp-bar { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffe17f, #fff); transition: width 1s var(--ease-out); }
.level-info small { opacity: .9; }
.streak-box { flex: none; display: grid; justify-items: center; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .15); }
.streak-box span { font-size: 30px; animation: pulse 1.6s ease-in-out infinite; }
.streak-box b { font: 800 28px/1 'Manrope', sans-serif; }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.stat-list div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.stat-list dt { font-size: 13px; color: var(--muted); }
.stat-list dd { margin: 0; font: 800 24px 'Manrope', sans-serif; }
.heatmap { display: grid; grid-template-columns: repeat(7, minmax(0, 34px)); gap: 6px; }
.heat { aspect-ratio: 1; border-radius: 8px; background: var(--surface-3); }
.heat.is-on { background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.badge-tile { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface-2); opacity: .55; filter: grayscale(1); transition: transform .25s var(--spring); }
.badge-tile.is-earned { opacity: 1; filter: none; background: linear-gradient(135deg, var(--gold-soft), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.badge-tile:hover { transform: translateY(-3px) rotate(-1deg); }
.badge-tile span { font-size: 30px; }
.badge-tile b { font-size: 14px; }
.badge-tile small { font-size: 12px; color: var(--muted); }
.records { display: flex; flex-wrap: wrap; gap: 10px; }
.record { display: grid; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); }
.record b { font: 800 28px 'Manrope', sans-serif; color: var(--gold); }
.record span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .level-card { flex-wrap: wrap; } }

/* ---------- easter eggs & seasonal ---------- */
.emoji-rain { position: fixed; z-index: 95; top: -50px; pointer-events: none; animation: emoji-fall 4s linear forwards; }
@keyframes emoji-fall { to { transform: translateY(110vh) rotate(360deg); } }
html.party body { animation: party-hue 2s linear infinite; }
@keyframes party-hue { to { filter: hue-rotate(360deg); } }
.brand.spin .brand-mark { animation: spin-slow .8s var(--spring); }
.snow { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.snow i { position: absolute; top: -20px; color: rgba(255, 255, 255, .8); font-style: normal; animation: snow-fall linear infinite; text-shadow: 0 0 4px rgba(120, 160, 255, .5); }
@keyframes snow-fall { to { transform: translateY(105vh) translateX(40px) rotate(180deg); } }
[data-theme="den"] .snow i, [data-theme="sakura"] .snow i, [data-theme="zakhid"] .snow i, [data-theme="papir"] .snow i { color: #9bb6e8; }
