
:root{font-family:'Segoe UI',Arial,sans-serif;color:#172443;background:#f5f7ff;font-synthesis:none;--blue:#4555db;--border:#dce1f2}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea,summary{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:#394ac5;text-underline-offset:4px}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:4px solid #ffb62e;outline-offset:4px}[tabindex='-1']:focus{outline:none}.brandbar,.admin-header{max-width:1160px;margin:auto;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:24px;font-weight:800;color:#172443}.pill{background:#e9eaff;border-radius:24px;padding:10px 16px;font-size:14px;font-weight:700}.container{max-width:1100px;margin:auto;padding:0 28px}.eyebrow{font-size:12px;letter-spacing:1.4px;font-weight:800;color:#5360ad}.muted{color:#66718d;font-size:16px;line-height:1.5}.button{border:2px solid var(--border);border-radius:15px;background:white;color:#263759;min-height:54px;padding:12px 22px;font-size:18px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;text-decoration:none}.button:hover{border-color:#8994d3;background:#f2f4ff}.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 5px 0 #303a99}.primary:hover{background:#3545c4;border-color:#3545c4}.wide{width:100%}.quiet{background:transparent;border-color:transparent;min-height:48px;font-size:16px}.small{min-height:40px;font-size:14px;padding:8px 12px}.danger{color:#aa334d}.button:disabled,input:disabled{opacity:.5;cursor:not-allowed}.home-hero{background:#e9edff;border:1px solid #dce1fb;border-radius:32px;padding:48px;display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center;overflow:hidden}.home-hero h1{font-size:clamp(38px,4.5vw,60px);line-height:1.12;letter-spacing:-1.4px;white-space:pre-line;margin:16px 0 20px}.hero-description{font-size:20px;line-height:1.6;max-width:480px}.hero-scene{height:250px;position:relative;display:flex;align-items:center;justify-content:center;gap:26px}.hero-letter{font-size:96px;font-weight:900;color:#4555db;transform:rotate(8deg)}.spark{position:absolute;font-size:38px;color:#e4a72b}.s1{left:20px;top:10px}.s2{right:12px;bottom:30px}.pixel-ground{position:absolute;bottom:0;left:0;right:0;height:12px;background:repeating-linear-gradient(90deg,#c9d2fb 0 22px,transparent 22px 28px)}.lesson-section{padding:36px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.section-heading h2{font-size:24px}.lesson-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}.lesson-card{max-width:480px;background:white;border:2px solid var(--border);border-radius:24px;padding:26px;box-shadow:0 7px 0 #e9ecf7}.lesson-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.lesson-count{font-size:14px;font-weight:700;color:#53618a}.lesson-card h3{font-size:26px;line-height:1.3;margin:8px 0 24px}.home-footer{display:flex;justify-content:space-between;gap:15px;font-size:13px;color:#748099;padding:24px 0 36px}.cube{--c:#5cd5c7;--edge:#176f74;position:relative;width:88px;height:88px;flex-shrink:0;background:var(--c);border:5px solid var(--edge);box-shadow:inset 0 0 0 5px #ffffff55,5px 5px 0 #1724431a;border-radius:8px;transform:rotate(-5deg)}.color-1{--c:#ffe16a;--edge:#986419}.color-2{--c:#c3a1ff;--edge:#6945ad}.color-3{--c:#87c9ff;--edge:#2b679c}.color-4{--c:#ff9dac;--edge:#a14460}.eye{position:absolute;top:25%;width:15%;height:21%;background:#172443;border:2px solid #fff}.eye.left{left:21%}.eye.right{right:21%}.mouth{position:absolute;left:23%;right:23%;top:57%;height:25%;border:4px solid #172443;border-radius:0 0 24px 24px;background:white}.neutral .mouth{height:5%;top:66%;border-width:2px;border-radius:0}.sad{--c:#b6c0cf;--edge:#627086;transform:rotate(5deg)}.sad .mouth{background:transparent;top:64%;height:16%;border-radius:22px 22px 0 0;border-bottom:0}.sad .eye{height:13%;top:32%;transform:rotate(-10deg)}.sad .eye.right{transform:rotate(10deg)}.tear{position:absolute;right:14%;top:48%;width:13%;height:22%;background:#338bd3;border-radius:50% 0 50% 50%;transform:rotate(-35deg)}.tiny{width:36px;height:36px;border-width:2px;box-shadow:inset 0 0 0 2px #ffffff66}.tiny .eye,.mini .eye{border-width:1px}.tiny .mouth,.mini .mouth{border-width:2px}.small{width:auto}.cube.small{width:58px;height:58px;border-width:3px}.cube.small .mouth{border-width:3px}.hero-cube{width:140px;height:140px;border-width:7px;transform:rotate(-12deg)}.big{width:150px;height:150px;border-width:7px}.mini{width:34px;height:34px;border-width:2px;box-shadow:none;border-radius:4px}.game-container{max-width:920px;margin:auto;padding:0 28px 30px}.game-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.task-label{font-size:19px;font-weight:700}.progress{height:10px;background:#e3e7f6;border-radius:20px;margin-bottom:24px;overflow:hidden}.progress-fill{height:100%;width:var(--progress,0);background:#55bca9;border-radius:20px;transition:width .3s}.question-panel{background:white;border:2px solid var(--border);border-radius:28px;padding:30px;box-shadow:0 7px 0 #e8ecf8}.question-label{display:flex;align-items:center;gap:14px;margin-bottom:22px}.question-heading{font-size:24px;line-height:1.25}.mini-symbol{width:40px;height:40px;display:grid;place-items:center;background:#e9ecff;color:#4555db;font-size:26px;font-weight:800;border-radius:13px}.question-text{font-size:26px;line-height:1.5;white-space:pre-line;margin-bottom:25px;font-weight:600}.answer-group{display:grid;gap:12px;margin:20px 0}.group-label{font-size:19px;font-weight:800}.answer-button{display:flex;align-items:center;gap:16px;text-align:left;background:#fafbff;border:2px solid #dfe4f4;border-radius:16px;padding:15px 18px;min-height:68px;font-size:23px;line-height:1.35;color:#243357;font-weight:600}.answer-button:hover{background:#f0f3ff;border-color:#9da8e0}.answer-button[aria-pressed='true']{border-color:#4555db;background:#e9edff}.answer-number{width:32px;height:32px;display:grid;place-items:center;background:#e9edf7;border-radius:10px;font-size:17px;flex-shrink:0;color:#657096}.retry-note{background:#fff5d9;border-radius:12px;padding:14px 18px;font-size:20px;line-height:1.4;margin-bottom:18px;color:#765523}.selection-note{font-size:17px;color:#66718d}.collection{margin-top:26px;border:1px solid var(--border);border-radius:22px;padding:22px;background:#ffffffaa}.collection-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;font-size:14px;color:#697393}.collection h2{font-size:17px;color:#344263}.prize-row{display:flex;flex-wrap:wrap;gap:12px}.prize{display:flex;align-items:center;gap:7px;padding:8px 9px;border:1px solid #e0e5f4;background:white;border-radius:12px}.prize-letter{font-size:24px;font-weight:900;color:#3546b3}.result-panel{text-align:center;min-height:400px;display:flex;flex-direction:column;justify-content:center}.result-title{font-size:32px}.cube-stage{height:240px;position:relative;display:flex;align-items:center;justify-content:center;gap:44px;margin:16px auto;min-width:340px}.stage-floor{position:absolute;bottom:14px;left:0;right:0;height:14px;background:repeating-linear-gradient(90deg,#dce4ff 0 26px,transparent 26px 32px);border-top:4px solid #c0cef1}.earned-big{font-size:100px;font-weight:900;color:#4555db;animation:letter-pop .45s ease-out}.result-copy{font-size:22px;line-height:1.4;color:#546183}.jump{animation:cube-jump 1.2s ease-in-out infinite}.memory-page{max-width:1100px;margin:auto;padding:36px 44px 60px}.learning-screen{background:#fffcf3}.memory-label{display:flex;align-items:center;gap:20px;margin-bottom:32px}.memory-label h1{font-size:28px;margin-top:6px}.full-definition{font-size:clamp(30px,3.4vw,40px);line-height:1.55;font-weight:750;color:#273b52;background:white;border:3px solid #f0d887;border-radius:24px;padding:30px;margin-bottom:28px;white-space:pre-line}.memory-hint{font-size:21px;line-height:1.5;margin-bottom:24px;max-width:780px;color:#5a6477}.memory-button{font-size:22px;min-height:68px}.finish{text-align:center;padding:30px 0}.finish-stars{color:#e4a72b;font-size:36px;letter-spacing:15px}.finish-cube{width:120px;height:120px;margin:26px auto 32px;animation:victory .9s ease-in-out 3}.final-phrase{font-size:clamp(34px,5vw,56px);line-height:1.2;color:#3546b3;margin:14px auto 22px;max-width:780px}.finish-copy{font-size:23px;line-height:1.5}.finish-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:30px}.admin-body{background:#f5f6fa;font-size:16px}.admin-header{max-width:1400px;border-bottom:1px solid var(--border)}.admin-layout{display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1360px;margin:24px auto;gap:28px;padding:0 24px}.admin-sidebar{align-self:start;position:sticky;top:20px}.admin-sidebar h2{margin-bottom:20px;font-size:22px}.admin-list{display:grid;gap:10px;margin-top:18px}.quiz-list-button{white-space:pre-line;text-align:left;line-height:1.65;background:white;border:1px solid var(--border);border-radius:13px;padding:14px;font-size:15px;color:#344263}.quiz-list-button.selected{background:#e9ecff;border-color:#7886d8}.admin-sidebar hr{border:0;border-top:1px solid var(--border);margin:24px 0}.admin-editor{min-width:0}.admin-editor h1{font-size:30px;margin:6px 0 20px}.admin-editor h2{font-size:22px;margin-bottom:16px}.admin-card,.admin-empty{padding:26px;background:white;border:1px solid var(--border);border-radius:18px;margin-bottom:22px}.admin-empty p{line-height:1.65;margin-bottom:20px}.editor-top,.editor-actions,.bottom-actions,.question-actions,.phrase-presets{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}.editor-actions .button,.bottom-actions .button{font-size:16px}.field{display:grid;gap:8px;margin-bottom:18px;font-weight:600;font-size:15px}.input{width:100%;padding:12px 14px;border:1.5px solid #ccd3e5;border-radius:10px;background:white;min-height:48px;line-height:1.5;color:#263759;font-weight:400;font-size:17px}textarea.input{resize:vertical}.count-hint{background:#fff2d6;color:#72582a;border-radius:10px;padding:12px;font-size:15px;margin-bottom:16px}.count-ok{background:#e4f5ed;color:#2b6654}.phrase-presets{justify-content:flex-start}.file-button{display:inline-flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;margin:8px 0}.file-button span{font-weight:700}.file-button input{max-width:100%;font-size:15px}.admin-card details{margin-top:14px}summary{cursor:pointer;font-weight:700;line-height:1.5;min-height:44px;padding:10px 0}.question-editor{background:white;border:1px solid var(--border);border-radius:16px;padding:10px 22px;margin-bottom:16px}.question-editor summary{font-size:17px;padding:12px 0}.field-group{border:1px solid var(--border);border-radius:12px;margin:18px 0;padding:18px}.field-group legend{font-weight:700;padding:0 6px}.questions-editor .section-heading{margin-top:30px;margin-bottom:6px}.questions-editor>p{margin-bottom:18px}.question-actions{justify-content:flex-start;margin:16px 0}.bottom-actions{justify-content:flex-start;margin:24px 0 50px}.source-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:12px 0}.source-row a{overflow-wrap:anywhere}.notice{white-space:pre-line;line-height:1.6;padding:16px 20px;border-radius:12px;margin-bottom:22px}.notice.success{background:#e4f5ed;color:#225747}.notice.error{background:#ffedf0;color:#9a2841}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:28px}.login-card{max-width:470px;width:100%;padding:36px;border:1px solid var(--border);border-radius:24px;background:white;box-shadow:0 12px 40px #273b5210}.login-card h1{font-size:30px;margin:12px 0}.login-card>p{margin-bottom:24px}.login-card>a{display:block;margin-top:24px}.login-card .button{font-size:17px}@keyframes cube-jump{0%,100%{transform:translateY(40px) rotate(0)}45%{transform:translateY(-36px) rotate(180deg)}85%{transform:translateY(36px) rotate(360deg)}}@keyframes letter-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}@keyframes victory{50%{transform:translateY(-12px) rotate(8deg)}}@media(max-width:700px){.brandbar,.admin-header{padding:18px}.brand{font-size:20px}.brandbar .pill{font-size:11px;padding:8px 10px}.container,.game-container{padding-left:16px;padding-right:16px}.home-hero{padding:28px;grid-template-columns:1fr;gap:8px}.home-hero h1{font-size:39px}.hero-description{font-size:19px}.hero-scene{height:170px}.hero-cube{width:105px;height:105px}.hero-letter{font-size:76px}.section-heading{align-items:flex-start;flex-direction:column}.lesson-grid{grid-template-columns:1fr}.home-footer{flex-direction:column}.question-panel{padding:22px 18px;border-radius:22px}.question-heading{font-size:23px}.question-text{font-size:24px}.answer-button{font-size:22px;padding:14px 12px;gap:12px}.collection{padding:18px}.collection-title{align-items:flex-start}.collection-title h2{max-width:170px}.prize-row{gap:8px}.result-title{font-size:27px}.cube-stage{min-width:250px;width:100%;gap:28px}.big{width:125px;height:125px}.earned-big{font-size:80px}.memory-page{padding:24px 18px 40px}.memory-label{gap:14px;margin-bottom:24px}.memory-label h1{font-size:25px}.full-definition{font-size:30px;padding:20px;line-height:1.45}.memory-hint{font-size:20px}.memory-button{width:100%;font-size:21px}.admin-layout{grid-template-columns:1fr;padding:0 16px}.admin-sidebar{position:static}.admin-header{flex-wrap:wrap}.admin-header .pill{font-size:12px}.admin-card{padding:20px}.admin-list{max-height:240px;overflow:auto}.question-editor{padding:10px 16px}.login-card{padding:26px}.finish-copy{font-size:22px}.finish-actions .button{width:100%}}@media(prefers-reduced-motion:reduce){.jump{animation:reduced-jump 1.2s ease-in-out infinite}.finish-cube,.earned-big{animation:none}.progress-fill{transition:none}@keyframes reduced-jump{50%{transform:translateY(-6px)}}}
body{min-height:100vh}.home-footer{max-width:1100px;margin:auto;padding-left:28px;padding-right:28px}
.account-bar{max-width:1100px;margin:0 auto 24px;padding:0 28px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.account-bar .button{font-size:17px;min-height:48px}.points-pill{font-size:20px;font-weight:800;color:#386b55;background:#e3f5ec;padding:12px 18px;border-radius:16px}.account-dialog{max-width:760px;width:calc(100% - 32px);max-height:90vh;overflow:auto;border:2px solid #dce1f2;border-radius:24px;padding:28px;color:#172443}.account-dialog::backdrop{background:#17244377}.account-dialog h1{font-size:28px}.account-dialog .field{font-size:20px;margin-top:18px}.account-dialog .input{font-size:22px;min-height:58px}.account-dialog .muted{margin-top:14px}.profile-name{font-size:26px;font-weight:700}.profile-score{font-size:24px;font-weight:800;color:#4555db;margin:20px 0}.result-item{padding:18px;background:#f5f7ff;border:1px solid #dce1f2;border-radius:14px;margin:16px 0;line-height:1.7}.result-item h2,.result-item h3{font-size:21px}.result-item .button{margin:12px 8px 0 0}.rating-table{width:100%;border-collapse:collapse;margin:20px 0;font-size:19px}.rating-table th,.rating-table td{padding:12px;text-align:left;border-bottom:1px solid #dce1f2}.my-rating{background:#e9edff;font-weight:800}input[type=checkbox].input{width:24px;min-height:24px;height:24px;accent-color:#4555db}.admin-sidebar>.button{margin-top:12px}@media(max-width:700px){.account-bar{padding:0 16px}.account-dialog{padding:20px}.rating-table{font-size:16px}.rating-table th,.rating-table td{padding:9px 5px}}
