@font-face{font-family:Golos;src:url('/fonts/GolosText.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Comfortaa;src:url('/fonts/Comfortaa.ttf') format('truetype');font-weight:300 700;font-display:swap}
:root{--ink:#253d34;--muted:#748279;--green:#32624e;--mint:#eef5ee;--line:#dfe7de;--paper:#fffef9;--fr:#3259ad;--ru:#aa4269;--gold:#c59430;font-family:Golos,system-ui,sans-serif;color:var(--ink);background:var(--mint);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 100% 0,#e4eedf 0,transparent 50%),var(--mint);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible{outline:3px solid #2c6b9d;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #83ab91;outline-offset:2px}input,select,textarea{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:11px 12px}textarea{resize:vertical;line-height:1.55}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}h1,h2,h3,p{margin:0}h1,h2{font-family:Comfortaa,system-ui,sans-serif}h1{font-size:clamp(28px,3.3vw,42px);letter-spacing:-1.7px;line-height:1.3}h2{font-size:23px;letter-spacing:-.8px}h3{font-size:14px;font-weight:650}.app-shell{max-width:1440px;margin:auto;padding:0 46px}.topbar{display:flex;justify-content:space-between;align-items:center;height:99px;border-bottom:1px solid #dce6da}.brand{display:flex;align-items:center;gap:13px;font-family:Comfortaa,system-ui,sans-serif;font-size:24px;letter-spacing:-1px;color:var(--ink)}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:45px;height:45px;background:var(--green);color:#fff9e8;border-radius:15px;font-size:32px;font-family:Georgia,serif;font-weight:bold;letter-spacing:-3px;padding-right:5px}.brand-subtitle{display:block;font-family:Golos,system-ui,sans-serif;font-size:8px;letter-spacing:2px;margin-top:6px;color:var(--muted)}.atelier-badge{background:#f8fbf5;border:1px solid var(--line);padding:10px 15px;border-radius:30px;font-size:12px}.status-dot{display:inline-block;width:6px;height:6px;background:#65a87d;border-radius:50%;margin-right:8px;vertical-align:middle}.workspace-heading{display:flex;justify-content:space-between;align-items:center;padding:38px 0 32px;gap:20px}.eyebrow{display:block;font-size:9px;letter-spacing:1.9px;color:#758678;font-weight:650;margin-bottom:10px}.workspace-heading h1 span{color:#a1b488}.workspace-heading p{color:var(--muted);font-size:14px;margin-top:12px}.button{border:1px solid transparent;border-radius:11px;padding:12px 16px;font-size:12px;font-weight:600;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#244b3a}.button.dark{background:#283d33;color:#fff;border-radius:12px;padding:14px 20px}.button.quiet{background:#f6f8f2;border-color:var(--line);color:#56695b}.text-button{border:0;padding:5px 0;background:transparent;color:#698270;font-size:11px}.text-button:hover:not(:disabled){color:#234832;text-decoration:underline}.icon-button{border:0;border-radius:8px;background:transparent;font-size:22px;color:#85958a;min-height:32px;min-width:32px;display:inline-grid;place-items:center}.icon-button:hover{background:#eef3ed;color:var(--green)}.workspace{display:grid;grid-template-columns:410px minmax(0,1fr);gap:30px;align-items:start}.teacher-panel{background:var(--paper);border:1px solid #dfe5da;border-radius:22px;box-shadow:0 4px 24px #314b2e04;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 21px}.panel-heading h2{font-size:21px}.panel-heading .eyebrow{font-size:8px}.panel-symbol{border:1px solid #e7e9da;background:#f5f6e8;width:37px;height:37px;border-radius:12px;display:grid;place-items:center;color:#869459;font-size:22px}.panel-tabs{display:flex;margin:0 24px;border-bottom:1px solid var(--line);gap:20px}.panel-tabs button{border:0;background:transparent;padding:12px 0;font-size:12px;color:#8b958b;border-bottom:2px solid transparent;margin-bottom:-1px}.panel-tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:650}.panel-body{padding:23px 24px;max-height:560px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d3dfd1 transparent}.section-label{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:15px;gap:8px}.section-label span{font-size:10px;color:#8b958b}.deck-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.deck-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:14px;border:1px solid #e7e7dc;background:#f7f7ef;border-radius:13px;text-align:left;min-height:117px;transition:border .15s,transform .15s}.deck-tile:hover{transform:translateY(-2px);border-color:#99b59c}.deck-tile.chosen{border:1.5px solid #7fa586;background:#edf4e9}.deck-tile.chosen:after{content:'✓';position:absolute;right:10px;top:10px;background:#628868;border-radius:50%;color:white;width:15px;height:15px;text-align:center;line-height:15px;font-size:9px}.deck-icon{font-size:27px;margin-bottom:4px}.deck-tile strong{font-size:12px;font-weight:600}.deck-tile>span:last-child{font-size:9px;color:#92968b}.deck-1{background:#f4f0e8}.deck-2{background:#fcf2e7}.deck-3{background:#eff3f5}.deck-4{background:#f4edf3}.deck-5{background:#f8f1e8}.deck-6{background:#f7f6e4}.saved-heading{margin-top:29px}.empty-library{border:1px dashed #dfe6d9;border-radius:13px;padding:18px;display:flex;align-items:center;gap:15px}.empty-library>span{font-size:30px;color:#b1bf9f}.empty-library p{font-size:11px;color:#8c988b;line-height:1.7}.saved-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0e8;padding:10px 0;font-size:12px}.saved-load{display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:0;background:transparent;text-align:left;flex:1}.saved-load strong{font-size:12px;color:var(--ink)}.saved-load span{font-size:10px;color:var(--muted)}.delete-button{font-size:12px}.panel-bottom{padding:17px 24px 21px;border-top:1px solid var(--line);background:#fcfdf7}.save-status{display:block;font-size:9px;color:#8c987f;margin-bottom:12px}.save-actions{display:flex;gap:8px}.save-actions .button{flex:1;font-size:11px}.secondary-actions{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.share-url{margin-top:10px}.share-url input{font-size:10px}.play-area{min-width:0}.preview-label{display:flex;justify-content:space-between;align-items:center;height:33px;margin-bottom:13px}.preview-label>span{font-size:9px;letter-spacing:1.8px;color:#81907f;font-weight:600}.game-stage{background:var(--paper);border:1px solid #dfe5da;border-radius:24px;padding:27px 32px 17px;box-shadow:0 6px 30px #30462e06;min-height:550px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.game-heading h2{font-size:24px}.game-heading .eyebrow{font-size:8px;letter-spacing:1.8px}.round-badge{padding:8px 12px;background:#f4f5eb;border-radius:20px;font-size:11px;color:#8c9577;white-space:nowrap}.game-instruction{display:flex;gap:12px;align-items:center;justify-content:center;font-size:15px;color:#788775;margin-top:27px}.game-instruction>span:first-child{font-size:18px}.progress-stars{display:flex;justify-content:center;align-items:center;gap:6px;margin:13px 0 25px;color:#d6dbc5;font-size:23px;min-height:28px}.progress-stars .filled{color:var(--gold)}progress{accent-color:#b6984b;width:160px;height:10px}.matching-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px 18px}.card-wrap{position:relative;display:flex;min-width:0}.word-card{position:relative;width:100%;min-height:76px;border:1px solid #e5e7de;border-radius:14px;background:#fff;font-size:clamp(17px,1.5vw,22px);padding:16px 23px;font-weight:500;line-height:1.35;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #e9ece3;transition:background .15s,border-color .15s,transform .15s}.word-card.french{color:var(--fr);background:#f6f8ff;border-color:#e1e7f1}.word-card.russian{color:var(--ru);background:#fdf6f8;border-color:#f0e3e8}.word-card.visual{background:#fafaf3}.word-card:hover:not(:disabled){transform:translateY(-2px);border-color:#aebba9}.word-card.selected{outline:2px solid #b6974a;outline-offset:2px;background:#fff9e9}.word-card.matched{opacity:1;background:#eef6ed;border-color:#cfdfc9;box-shadow:none;color:#557450;animation:pop .3s ease-out}.match-tick{position:absolute;right:10px;top:8px;color:#7d9b71;font-size:12px}.word-card.wrong{background:#ffe8ed!important;border-color:#d9a0ab!important;animation:shake .35s}.card-emoji{font-size:39px;line-height:1}.color-disc{width:43px;height:43px;border:1px solid #a7afa4;border-radius:50%;box-shadow:inset 0 0 0 3px #ffffff40}.speak-button{position:absolute;right:4px;bottom:3px;border:0;background:transparent;color:#87917f;padding:5px;font-size:15px;z-index:1}.game-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ecede3;padding-top:15px;margin-top:26px;gap:10px}.game-footer>span{font-size:10px;color:#a0aa98}.game-footer .text-button{font-size:10px}.game-options{display:flex;align-items:center;gap:17px;padding:21px 3px 0}.game-options label{font-size:9px;letter-spacing:.2px;color:#8c9887}.game-options select{font-size:11px;background:#f9fbf6;border-color:#dce5d6;padding:9px 10px;max-width:220px}.game-options .audio-option{display:flex;flex-direction:row;align-items:center;margin-left:auto;gap:7px;white-space:nowrap}.audio-option input{accent-color:var(--green)}.preview-note{text-align:right;font-size:9px;color:#99a491;margin-top:12px}.app-footer{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#9aa793;padding:28px 0 24px}.notice{padding:13px 16px;border:1px solid;border-radius:11px;font-size:12px;line-height:1.6;margin:0 0 18px;display:block}.notice .icon-button{float:right;margin-top:-6px}.notice.error{background:#fff0f0;color:#944052;border-color:#f1cfd8}.notice.success{background:#f5faf0;color:#58794d;border-color:#d7e7cf}.notice.warning{background:#fff7e6;border-color:#ecddad;color:#886d2b;font-size:11px;margin-top:17px}.exercise-details{display:grid;grid-template-columns:1fr 66px;gap:12px}.exercise-details label{font-size:10px;color:#7a8779}.exercise-details input,.exercise-details select{font-size:12px;padding:10px}.panel-help{font-size:10px;color:#8d9987;line-height:1.7;margin:14px 0}.editor-row{display:flex;gap:9px;border-top:1px solid #edf0e7;padding:14px 0;align-items:start}.word-number{font-size:9px;color:#a3ad98;padding-top:12px;width:17px;flex-shrink:0}.word-fields{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}.word-fields>input{font-size:13px;padding:9px 11px}.fr-input{color:var(--fr)}.ru-input{color:var(--ru)}.visual-editor{display:flex;gap:5px;align-items:center}.visual-editor select{font-size:10px;padding:6px;flex:1}.visual-editor .emoji-input{font-size:20px;width:49px;padding:3px;text-align:center;height:32px}.visual-editor input[type=color]{padding:2px;width:44px;height:32px}.picker-button{font-size:21px;min-width:26px}.editor-row>.icon-button{font-size:17px;min-width:20px}.add-word{width:100%;border:1px dashed #bed1b8;color:#628658;background:#f3f8ee}.emoji-popover{border:1px solid #d9e2d3;border-radius:12px;overflow:hidden;margin-top:5px}.emoji-toolbar{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background:#f3f7ee}.emoji-toolbar strong{font-size:10px}.emoji-toolbar>div{display:flex;align-items:center;gap:8px}emoji-picker{width:100%;height:310px;--num-columns:6;--background:#fffef9;--border-size:0px;--indicator-color:#32624e;--emoji-size:1.25rem;--emoji-padding:.35rem}.import-intro{padding:3px 0 18px}.import-symbol{display:inline-grid;place-items:center;width:45px;height:45px;background:#f1f2e4;border-radius:12px;font-size:20px;color:#7b8c53;margin-bottom:15px}.import-intro h3{font-size:17px;margin-bottom:10px}.import-intro p{font-size:11px;color:#87917d;line-height:1.8}.json-label{font-size:10px;color:#7d8b75}.json-label textarea{font-size:11px;font-family:ui-monospace,monospace;font-weight:400;background:#fafbf5;min-height:230px}.import-actions{display:flex;flex-direction:column;gap:10px;margin:13px 0}.file-button{position:relative;text-align:center;display:block;padding:11px;border:1px solid var(--line);border-radius:10px;color:#78896b;font-size:11px;overflow:hidden;cursor:pointer}.file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.round-complete{display:flex;justify-content:center;align-items:center;gap:20px;margin:20px 0;color:#6a875c;font-size:13px}.celebration{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:420px;text-align:center}.celebration-stars{font-size:37px;color:var(--gold);letter-spacing:8px}.celebration-emoji{font-size:63px;animation:pop .4s}.celebration h2{font-size:34px}.celebration>p[lang]{font-size:23px;color:var(--ru)}.completion-caption{font-size:12px;color:#98a18d;margin-bottom:10px}.game-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;gap:17px;text-align:center}.game-empty>span{font-size:60px}.game-empty p{font-size:12px;color:var(--muted)}.presentation-mode{max-width:960px;padding:35px 35px}.presentation-mode .workspace{display:block}.presentation-mode .game-stage{min-height:650px}.presentation-mode .word-card{min-height:95px;font-size:26px}.presentation-return{position:fixed;right:15px;top:15px;z-index:5;opacity:.15;border:0;background:#e7f0e2;border-radius:50%;width:35px;height:35px;color:#537351}.presentation-return:hover,.presentation-return:focus-visible{opacity:1}.student-shell{max-width:820px;margin:auto;padding:25px}.student-header{display:flex;justify-content:center;align-items:center;gap:12px;margin:0 0 24px;font-family:Comfortaa,system-ui,sans-serif;font-size:21px}.student-shell .word-card{min-height:85px}.empty-page{max-width:700px;margin:80px auto;text-align:center;line-height:1.7;padding:25px}.empty-page h1{font-size:26px;margin-bottom:20px}.large-emoji{font-size:60px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;padding:15px;background:#fff0cf;color:#694e24;text-align:center;z-index:100}.components-reconnect-show,.components-reconnect-failed,.components-reconnect-rejected{position:fixed;inset:0;z-index:100;background:#f1f6eeeb;display:grid;place-items:center;color:var(--ink)}
@keyframes pop{0%{transform:scale(.95)}65%{transform:scale(1.035)}100%{transform:scale(1)}}@keyframes shake{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@media(min-width:1450px){.app-shell{padding:0 65px}.workspace{grid-template-columns:420px minmax(0,1fr)}}
@media(max-width:1100px){.app-shell{padding:0 25px}.workspace{grid-template-columns:350px minmax(0,1fr);gap:20px}.panel-body{padding:20px}.panel-heading{padding:22px 20px}.panel-tabs{margin:0 20px}.panel-bottom{padding:17px 20px}.game-stage{padding:25px 20px 17px}.matching-grid{gap:10px}.game-options{gap:10px;flex-wrap:wrap}.game-options .audio-option{margin-left:0}.preview-note{text-align:left}.workspace-heading h1{font-size:33px}}
@media(max-width:800px){.app-shell{padding:0 18px}.topbar{height:79px}.brand{font-size:20px}.brand-mark{width:40px;height:40px;font-size:28px}.atelier-badge{font-size:10px;padding:8px 10px}.workspace-heading{align-items:start;padding:28px 0;flex-direction:column;gap:18px}.workspace-heading h1{font-size:30px}.workspace-heading p{font-size:12px}.workspace{grid-template-columns:1fr;gap:24px}.teacher-panel{order:0}.play-area{order:1}.panel-body{max-height:420px}.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-stage{padding:23px 20px 16px}.game-heading h2{font-size:22px}.word-card{font-size:20px}.game-options{justify-content:flex-start}.game-options .audio-option{margin-left:auto}.presentation-mode{padding:25px 15px}.presentation-mode .word-card{font-size:22px;min-height:85px}.student-shell{padding:15px}.student-shell .game-stage{padding:22px 15px 15px}}
@media(max-width:430px){.deck-grid{grid-template-columns:1fr 1fr}.game-options .audio-option{margin-left:0}.game-heading h2{font-size:20px}.word-card{padding:14px 15px;font-size:18px;min-height:74px}.round-badge{padding:7px 9px;font-size:10px}.game-footer>span{font-size:8px}.matching-grid{gap:10px}.app-footer{font-size:8px}.eyebrow{font-size:8px}.atelier-badge{max-width:140px}.round-complete{gap:10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
