@import"https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&display=swap";:root{--primary: #167d7f;--primary-hover: #126365;--primary-dark: #0b3d3e;--primary-light: #e8f5f5;--bg-card: #ffffff;--accent-light: rgba(22, 125, 127, .08);--border-color: #e2e8f0;--text-dark: #0f172a;--text-muted: #64748b;--bg-app: #f8fafc;--font-family: "Outfit", ui-sans-serif, system-ui, sans-serif}.player-shell.category-food{--primary: #22c55e;--primary-hover: #16a34a;--primary-dark: #15803d;--primary-light: #f0fdf4;--accent-light: rgba(34, 197, 94, .08)}.player-shell.category-travel{--primary: #f59e0b;--primary-hover: #d97706;--primary-dark: #b45309;--primary-light: #fefbeb;--accent-light: rgba(245, 158, 11, .08)}.player-shell.category-daily_life{--primary: #8b5cf6;--primary-hover: #7c3aed;--primary-dark: #6d28d9;--primary-light: #f5f3ff;--accent-light: rgba(139, 92, 246, .08)}.player-shell.category-greetings{--primary: #ec4899;--primary-hover: #db2777;--primary-dark: #be185d;--primary-light: #fdf2f8;--accent-light: rgba(236, 72, 153, .08)}.player-shell.category-sentences{--primary: #3b82f6;--primary-hover: #2563eb;--primary-dark: #1d4ed8;--primary-light: #eff6ff;--accent-light: rgba(59, 130, 246, .08)}*{box-sizing:border-box;font-family:var(--font-family);-webkit-tap-highlight-color:transparent}body{margin:0;background-color:var(--bg-app);color:var(--text-dark);overflow-x:hidden}button{font:inherit;cursor:pointer;outline:none}button:disabled{cursor:not-allowed}.player-shell{min-height:100vh;padding:clamp(12px,3vw,32px);display:grid;place-items:center;background:radial-gradient(circle at top left,var(--primary-light),transparent 60%),radial-gradient(circle at bottom right,#f1f5f9,transparent 60%);transition:background .4s ease}.centered{text-align:center}.loading-panel{width:min(460px,100%);display:grid;justify-items:center;gap:24px;padding:40px 32px;border:4px solid var(--border-color);border-bottom-width:8px;border-radius:28px;background:#fff;box-shadow:0 20px 40px #0f172a0d}.loading-panel h1{margin:0 0 8px;font-size:28px;font-weight:900;color:var(--text-dark)}.loading-panel p{margin:0;color:var(--text-muted);font-size:16px;font-weight:600}.loader{width:64px;height:64px;border:8px solid var(--border-color);border-top-color:var(--primary);border-radius:50%;animation:spin .9s cubic-bezier(.68,-.55,.27,1.55) infinite}.loading-bars{width:100%;display:grid;gap:10px;margin-top:8px}.loading-bars span{height:12px;border-radius:999px;background:linear-gradient(90deg,#f1f5f9,var(--primary),#f1f5f9);background-size:220% 100%;animation:shimmer 1.5s ease-in-out infinite}.loading-bars span:nth-child(2){width:85%;animation-delay:.15s}.loading-bars span:nth-child(3){width:68%;animation-delay:.3s}.status-panel{width:min(440px,100%);padding:36px;border:4px solid #fecaca;border-bottom-width:8px;border-radius:28px;background:#fff;box-shadow:0 20px 40px #ef44440d;text-align:center}.status-panel h1{margin:0 0 12px;font-size:28px;font-weight:900;color:#dc2626}.status-panel p{margin:0 0 24px;color:var(--text-muted);font-size:16px;font-weight:600}.status-panel button{min-height:52px;border:0;border-bottom:4px solid var(--primary-dark);border-radius:16px;padding:0 28px;color:#fff;background:var(--primary);font-weight:800;font-size:16px;transition:all .1s ease}.status-panel button:active{transform:translateY(2px);border-bottom-width:2px}.game-surface{width:min(780px,100%);min-height:min(780px,calc(100vh - 64px));display:flex;flex-direction:column;gap:24px;padding:clamp(20px,5vw,42px);border:4px solid var(--border-color);border-bottom-width:10px;border-radius:36px;background:#fff;box-shadow:0 24px 60px #0f172a0f}.game-header{display:flex;justify-content:space-between;align-items:center;color:var(--text-muted);font-size:14px;font-weight:800;letter-spacing:1px}.game-header span:first-child{background:var(--primary-light);color:var(--primary);padding:6px 14px;border-radius:999px;font-size:13px;border:1px solid var(--accent-light)}.prompt-row{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--primary-light);padding:24px;border-radius:24px;border:2px solid var(--accent-light)}.prompt-row p{margin:0 0 4px;color:var(--primary);font-size:13px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}.game-surface h1{margin:0;font-size:clamp(28px,6vw,44px);font-weight:900;line-height:1.1;color:var(--text-dark)}.audio-button{min-width:104px;min-height:60px;border:3px solid var(--primary);border-bottom-width:6px;border-radius:18px;padding:0 18px;background:#fff;color:var(--primary);font-size:16px;font-weight:900;white-space:nowrap;transition:all .12s ease}.audio-button:hover:not(:disabled){background:var(--primary-light)}.audio-button:active:not(:disabled){transform:translateY(3px);border-bottom-width:3px}.audio-button.playing{animation:pulse-speaker .65s ease-in-out infinite}.prompt-image{width:min(260px,80vw);aspect-ratio:1;object-fit:contain;align-self:center;border-radius:28px;padding:16px;background:#f8fafc;border:3px solid var(--border-color);transition:transform .2s cubic-bezier(.175,.885,.32,1.275)}.prompt-image:hover{transform:scale(1.04) rotate(1deg)}.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:auto}.option-card{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border:4px solid var(--border-color);border-bottom:8px solid #cbd5e1;border-radius:24px;background:#fff;color:var(--text-dark);font-size:22px;font-weight:800;padding:16px;transition:all .12s cubic-bezier(.175,.885,.32,1.275)}.option-card img{width:min(130px,64%);aspect-ratio:1;object-fit:contain;pointer-events:none}.option-card:not(:disabled):hover{border-color:var(--primary);border-bottom-color:var(--primary-dark);background:var(--primary-light)}.option-card:not(:disabled):active{transform:translateY(4px);border-bottom-width:4px}.option-card.correct{border-color:#22c55e!important;border-bottom-color:#15803d!important;background:#f0fdf4!important;color:#15803d!important;animation:bounce .4s ease}.option-card.incorrect{border-color:#ef4444!important;border-bottom-color:#b91c1c!important;background:#fef2f2!important;color:#b91c1c!important;animation:shake .4s ease}.sentence-game{display:flex;flex-direction:column;gap:20px;margin-top:auto}.sentence-answer{min-height:96px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:20px;border:4px dashed #cbd5e1;border-radius:24px;background:#f8fafc;color:var(--text-muted);font-weight:700;font-size:18px;transition:all .2s ease}.sentence-answer.correct{border-color:#22c55e;background:#f0fdf4}.sentence-answer.incorrect{border-color:#ef4444;background:#fef2f2}.sentence-answer span{display:inline-flex;min-height:48px;align-items:center;border-radius:16px;padding:0 18px;background:#fff;color:var(--text-dark);border:3px solid var(--border-color);border-bottom-width:5px;font-weight:800;font-size:18px;animation:popIn .2s cubic-bezier(.175,.885,.32,1.275)}.word-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;background:#f1f5f9;padding:20px;border-radius:24px}.word-tile{min-height:52px;border:3px solid var(--border-color);border-bottom-width:6px;border-radius:16px;padding:0 20px;background:#fff;color:var(--text-dark);font-weight:800;font-size:18px;transition:all .1s ease}.word-tile:not(:disabled):hover{background:var(--primary-light);border-color:var(--primary)}.word-tile:not(:disabled):active{transform:translateY(3px);border-bottom-width:3px}.word-tile:disabled{opacity:.25;transform:scale(.95);border-bottom-width:3px}.sentence-actions{display:flex;justify-content:flex-end;gap:14px}.sentence-actions button{min-height:54px;border:3px solid var(--border-color);border-bottom-width:6px;border-radius:18px;padding:0 24px;background:#fff;color:var(--text-dark);font-weight:800;font-size:16px;transition:all .1s ease}.sentence-actions button:active{transform:translateY(3px);border-bottom-width:3px}.sentence-actions button:last-child{border-color:var(--primary);border-bottom-color:var(--primary-dark);color:#fff;background:var(--primary)}.completion-panel{display:grid;gap:8px;border:4px solid var(--border-color);border-bottom-width:8px;border-radius:24px;padding:24px;animation:slideUp .3s cubic-bezier(.175,.885,.32,1.275)}.completion-panel.correct{border-color:#22c55e;border-bottom-color:#15803d;background:#f0fdf4}.completion-panel.incorrect{border-color:#ef4444;border-bottom-color:#b91c1c;background:#fef2f2}.completion-panel strong{font-size:22px;font-weight:900;color:var(--text-dark)}.completion-panel span{font-size:17px;font-weight:700;color:var(--text-dark)}.completion-panel p{margin:8px 0 0;color:var(--text-muted);font-size:15px;line-height:1.4;font-weight:600}.completion-actions{display:flex;gap:12px;margin-top:8px}.completion-btn{flex:1;min-height:48px;border-radius:16px;font-weight:800;font-size:15px;transition:all .1s ease}.completion-btn.secondary{border:3px solid var(--border-color);border-bottom-width:6px;background:#fff;color:var(--text-dark)}.completion-btn.primary{border:3px solid var(--primary-dark);border-bottom-width:6px;background:var(--primary);color:#fff}.completion-btn:active{transform:translateY(3px);border-bottom-width:3px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:120% 0}to{background-position:-120% 0}}@keyframes pulse-speaker{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes bounce{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-8px)}75%{transform:translate(8px)}}@keyframes popIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:580px){.player-shell{padding:12px}.game-surface{min-height:calc(100vh - 24px);padding:24px 18px;border-radius:28px;border-bottom-width:8px}.prompt-row{padding:18px;border-radius:18px}.option-grid{grid-template-columns:1fr;gap:14px}.option-card{min-height:120px;border-radius:20px;font-size:18px}.option-card img{width:min(84px,25%)}.sentence-actions{justify-content:stretch}.sentence-actions button{flex:1}}
