@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--bg-base:#101619;--bg-surface:#182226;--bg-surface-elevated:#223138;--primary:#35d3cf;--primary-hover:#65e2dd;--primary-glow:#35d3cf38;--secondary:#e7b84f;--success:#79d46b;--warning:#f0bd58;--danger:#ff6b6b;--text-main:#f7f4e8;--text-muted:#9eadb2;--border-color:#e7b84f29;--font-sans:"Inter", system-ui, -apple-system, sans-serif;--radius-md:8px;--radius-lg:12px;--transition:all .3s cubic-bezier(.25, .8, .25, 1)}*{box-sizing:border-box;min-width:0;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-base);color:var(--text-main);-webkit-font-smoothing:antialiased;flex-direction:column;min-height:100vh;line-height:1.6;display:flex;overflow-x:hidden}html,#root{width:100%;min-height:100%;overflow-x:hidden}img,video,canvas,svg{max-width:100%}.glass-panel{-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-color);border-radius:var(--radius-md);background:#182226e0}.deck-card{-webkit-user-select:none;user-select:none;padding:1rem}.badge{min-height:24px;color:var(--text-muted);white-space:nowrap;background:#ffffff0f;border-radius:999px;align-items:center;padding:.2rem .5rem;font-size:.78rem;line-height:1.1;display:inline-flex}.badge-warning{color:var(--warning);background:#ffb8001a}h1,h2,h3,h4{margin-bottom:.5em;font-weight:700;line-height:1.2}h1{letter-spacing:0;font-size:2.5rem}.btn{border-radius:var(--radius-md);cursor:pointer;transition:var(--transition);text-transform:none;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:center;border:none;justify-content:center;align-items:center;max-width:100%;min-height:44px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;display:inline-flex}.btn-primary{background:var(--primary);color:#0b1b1d;box-shadow:0 4px 14px var(--primary-glow)}.btn-primary:hover{background:var(--primary-hover);box-shadow:0 6px 18px var(--primary-glow);transform:translateY(-2px)}.btn-outline{color:var(--text-main);border:1px solid var(--border-color);background:0 0}.btn-outline:hover{border-color:var(--text-muted);background:#ffffff0d}.input-field{background:var(--bg-surface-elevated);border:1px solid var(--border-color);width:100%;color:var(--text-main);border-radius:var(--radius-md);font-size:1rem;font-family:var(--font-sans);transition:var(--transition);min-height:44px;padding:.75rem 1rem}.input-field:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 2px #00f0ff33}.container{width:100%;max-width:1200px;margin:0 auto;padding:2rem}@media (width<=480px){body{line-height:1.45}h1{font-size:1.55rem}h2{font-size:1.18rem}h3{font-size:1rem}.btn{letter-spacing:0;min-height:38px;padding:.55rem .7rem;font-size:.82rem}.input-field{min-height:40px;padding:.6rem .75rem;font-size:.9rem}.glass-panel{border-radius:8px}.deck-card{border-radius:8px;padding:.7rem!important}.deck-card h3{line-height:1.25;margin-bottom:.2rem!important;font-size:.94rem!important}.deck-card p{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;display:-webkit-box;overflow:hidden;min-height:0!important;margin-bottom:.45rem!important;font-size:.76rem!important}.badge{min-height:20px;padding:.16rem .38rem;font-size:.68rem}}@keyframes shake{10%,90%{transform:translate(-1px)}20%,80%{transform:translate(2px)}30%,50%,70%{transform:translate(-4px)}40%,60%{transform:translate(4px)}}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}@keyframes zoom-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes td-hit-pulse{0%{filter:brightness()}to{filter:brightness(1.35)drop-shadow(0 0 10px #ffffff73)}}@keyframes td-attack-player{0%{transform:translate(-50%)rotate(0)}40%{filter:brightness(1.2);transform:translate(-35%)rotate(18deg)scale(1.1)}to{transform:translate(-50%)rotate(0)}}@keyframes td-attack-enemy{0%{transform:translate(-50%)rotate(0)}40%{filter:brightness(1.2);transform:translate(-65%)rotate(-18deg)scale(1.1)}to{transform:translate(-50%)rotate(0)}}@keyframes td-attack-ranged-player{0%{transform:translate(-50%)}30%{filter:brightness(1.2);transform:translate(-40%)scale(1.05)}to{transform:translate(-50%)}}@keyframes td-attack-ranged-enemy{0%{transform:translate(-50%)}30%{filter:brightness(1.2);transform:translate(-60%)scale(1.05)}to{transform:translate(-50%)}}@keyframes td-boss-warning{0%{opacity:0;transform:translate(-50%,-50%)scale(0)}10%{opacity:1;transform:translate(-50%,-50%)scale(1.1)}15%{opacity:1;transform:translate(-50%,-50%)scale(1)}85%{opacity:1;transform:translate(-50%,-50%)scale(1)}90%{opacity:1;transform:translate(-50%,-50%)scale(1.1)}to{opacity:0;transform:translate(-50%,-50%)scale(0)}}.app-container{width:100%;min-height:100vh;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px));flex-direction:column;display:flex;overflow-x:hidden}.app-header{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:100;border-bottom:1px solid var(--border-color);background:#0b0e14e6;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.5rem;display:flex;position:sticky;top:0}.app-title{color:var(--primary);cursor:pointer;letter-spacing:0;margin:0;font-size:1.5rem;font-weight:700}.app-logo-img{flex:none}.app-header-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.55rem;min-width:0}.header-menu-wrap{position:relative;padding:0!important}.header-menu-trigger{border-radius:50%;width:40px;height:40px;min-height:40px;padding:0;font-size:1rem;line-height:1}.header-menu{z-index:1200;border:1px solid var(--border-color);background:#151a22;border-radius:8px;width:210px;padding:.35rem;position:absolute;top:calc(100% + .55rem);right:0;box-shadow:0 12px 32px #0000006b}.header-menu button{width:100%;min-height:40px;color:var(--text-main);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;grid-template-columns:28px minmax(0,1fr);align-items:center;padding:.45rem .55rem;font-size:.82rem;display:grid}.header-menu button:hover{background:#ffffff12}.header-menu button>svg{width:18px;height:18px;color:var(--primary);justify-self:center}.header-menu button span{color:var(--primary);text-align:center;font-size:.72rem;font-weight:800}.upgrade-label-short{display:none}.bottom-nav{height:calc(58px + env(safe-area-inset-bottom,0px));background:var(--bg-surface-elevated);border-top:1px solid var(--border-color);z-index:1000;padding:0 0 env(safe-area-inset-bottom,0px);justify-content:space-around;align-items:stretch;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav-item{color:var(--text-muted);cursor:pointer;width:25%;min-width:0;height:58px;transition:var(--transition);background:0 0;border:none;flex-direction:column;flex:0 0 25%;justify-content:center;align-items:center;gap:4px;padding:.25rem .1rem;font-size:.75rem;display:flex;overflow:hidden}.bottom-nav-item:hover,.bottom-nav-item.active{color:var(--primary)}.bottom-nav-icon{stroke-width:2px;flex:0 0 20px;width:20px;height:20px}.folder-grid{grid-template-columns:minmax(0,1fr);gap:.5rem;margin-bottom:1.5rem;display:grid}.home-library{-webkit-user-select:none;user-select:none}.home-create-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-bottom:1rem;display:grid}.home-create-actions>form{grid-column:1/-1}.home-folder-card,.home-deck-card{position:relative}.library-list-item{border:1px solid var(--border-color);background:var(--bg-surface-elevated);min-width:0;min-height:76px;color:var(--text-main);border-radius:8px;align-items:center;gap:.7rem;padding:.65rem .7rem;transition:border-color .16s,background .16s,transform .16s;display:grid}.library-list-item:hover{background:#ffffff0b;border-color:#00e5ff61}.home-folder-card{grid-template-columns:40px minmax(0,1fr) 32px 16px}.home-deck-card{grid-template-columns:40px minmax(0,1fr) auto}.home-deck-card.is-dragging{border-color:var(--primary);background:var(--bg-surface);filter:brightness(1.12);box-shadow:0 14px 30px #0000006b,0 0 0 2px #00e5ff4d}.library-list-item.is-drop-target{border-color:var(--primary);background:#00e5ff1a;transform:scale(1.01)}.library-item-leading{width:38px;height:38px;color:var(--primary);background:#35d3cf1f;border:1px solid #35d3cf38;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.library-item-leading.deck{color:var(--warning);background:#f0bd581f;border-color:#f0bd5838}.scored-result-panel{border-color:#f0bd585c;max-width:560px;margin:0 auto}.scored-result{color:var(--text-main);justify-items:center;gap:.65rem;margin:0 auto 1.5rem;display:grid}.scored-result>svg{color:var(--warning)}.scored-result-score{color:var(--primary);align-items:baseline;gap:.25rem;display:flex}.scored-result-score strong{font-size:3rem;line-height:1}.scored-result-score span,.scored-result-rank{font-size:1rem;font-weight:800}.scored-result-breakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;width:min(360px,100%);display:grid}.scored-result-breakdown span{border:1px solid var(--border-color);background:var(--bg-surface-elevated);border-radius:6px;padding:.45rem .35rem;font-size:.78rem}.scored-result p{color:var(--text-muted);font-size:.88rem}.reveal-quiz-shell{max-width:760px}.reveal-back{margin-bottom:.8rem}.reveal-setup-panel,.reveal-question-panel,.reveal-card-screen,.reveal-finish-panel{padding:1.2rem}.reveal-title-row,.reveal-safety-note,.reveal-game-header{align-items:center;gap:.7rem;display:flex}.reveal-title-row>svg,.reveal-finish-panel>svg{color:var(--warning)}.reveal-title-row h2,.reveal-title-row p{margin:0}.reveal-title-row p,.reveal-safety-note,.reveal-error{color:var(--text-muted);font-size:.8rem}.reveal-safety-note{color:var(--success);border:1px solid #79d46b47;border-radius:8px;margin:.8rem 0;padding:.65rem}.reveal-setup-list{gap:.65rem;display:grid}.reveal-player-form{border:1px solid var(--border-color);background:var(--bg-surface-elevated);border-radius:8px;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.65rem;display:grid}.reveal-help{border:1px solid var(--border-color);background:var(--bg-surface-elevated);border-radius:8px;margin:.8rem 0}.reveal-help summary{cursor:pointer;align-items:center;gap:.45rem;padding:.65rem .75rem;font-weight:700;display:flex}.reveal-help ol{color:var(--text-muted);margin:0;padding:0 1rem .8rem 2rem;font-size:.8rem;line-height:1.65}.reveal-topic-field,.reveal-secret-field{gap:.4rem;margin:.8rem 0;font-size:.82rem;font-weight:700;display:grid}.reveal-topic-examples{flex-wrap:wrap;gap:.4rem;display:flex}.reveal-topic-examples button{border:1px solid var(--border-color);color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:.35rem .55rem;font-size:.72rem}.reveal-topic-examples button:hover{border-color:var(--primary);color:var(--primary)}.reveal-handoff-panel,.reveal-secret-panel,.reveal-ready-panel{text-align:center;justify-items:center;gap:.75rem;padding:1.2rem;display:grid}.reveal-handoff-panel>svg,.reveal-secret-panel>svg,.reveal-ready-panel>svg{color:var(--warning)}.reveal-handoff-panel h2,.reveal-ready-panel h2{margin:0;font-size:1.25rem}.reveal-handoff-panel p,.reveal-ready-panel p{color:var(--text-muted);margin:0;font-size:.82rem}.reveal-step-count{color:var(--text-muted);font-size:.75rem;font-weight:700}.reveal-topic-card{border-left:3px solid var(--primary);text-align:left;background:#39d3d014;gap:.25rem;width:min(520px,100%);padding:.7rem .8rem;display:grid}.reveal-topic-card span,.reveal-topic-inline{color:var(--text-muted);font-size:.72rem}.reveal-topic-card strong{overflow-wrap:anywhere}.reveal-secret-field{text-align:left;width:min(520px,100%)}.reveal-secret-field>div{grid-template-columns:minmax(0,1fr) auto;gap:.45rem;display:grid}.reveal-secret-field small{color:var(--text-muted);justify-self:end;font-weight:400}.reveal-secret-visibility{width:44px;padding:0}.reveal-secret-actions{flex-wrap:wrap;justify-content:center;gap:.55rem;display:flex}.reveal-ready-list{gap:.4rem;width:min(420px,100%);display:grid}.reveal-ready-list span{border:1px solid var(--border-color);background:var(--bg-surface-elevated);color:var(--success);border-radius:8px;align-items:center;gap:.45rem;padding:.5rem .65rem;font-size:.8rem;font-weight:700;display:flex}.reveal-topic-inline{text-align:center;margin-bottom:.4rem}.reveal-setup-actions,.reveal-final-actions{flex-wrap:wrap;justify-content:flex-end;gap:.55rem;margin-top:.9rem;display:flex}.reveal-game-header{justify-content:space-between;margin-bottom:.65rem}.reveal-game-header>div{text-align:center;display:grid}.reveal-game-header span{color:var(--text-muted);font-size:.75rem}.reveal-score-strip{gap:.4rem;margin-bottom:.8rem;display:flex;overflow-x:auto}.reveal-score-strip span{border:1px solid var(--border-color);color:var(--text-muted);border-radius:999px;flex:none;padding:.28rem .5rem;font-size:.72rem}.reveal-question-panel h2{text-align:center;place-items:center;min-height:3.2em;font-size:1.25rem;display:grid}.reveal-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.reveal-correct{background:var(--success);color:#102012}.reveal-wrong{background:var(--danger);color:#fff}.reveal-answer-result{justify-items:center;gap:.45rem;margin-top:.8rem;display:grid}.reveal-answer-result span{color:var(--text-muted);font-size:.8rem}.reveal-card-screen,.reveal-finish-panel{text-align:center;justify-items:center;gap:.8rem;display:grid}.reveal-card-content{border:2px solid var(--warning);background:var(--bg-surface-elevated);width:min(520px,100%);color:var(--text-main);overflow-wrap:anywhere;border-radius:8px;padding:1.4rem 1rem;font-size:1.2rem;font-weight:800}.reveal-ranking{gap:.45rem;width:min(420px,100%);display:grid}.reveal-ranking>div{border:1px solid var(--border-color);background:var(--bg-surface-elevated);border-radius:8px;justify-content:space-between;padding:.65rem .8rem;display:flex}@media (width<=600px){.reveal-quiz-shell{padding:.55rem}.reveal-player-form{grid-template-columns:1fr}.reveal-setup-actions,.reveal-final-actions,.reveal-secret-actions{grid-template-columns:1fr;width:100%;display:grid}.reveal-setup-panel,.reveal-question-panel,.reveal-card-screen,.reveal-finish-panel,.reveal-handoff-panel,.reveal-secret-panel,.reveal-ready-panel{padding:.85rem}.reveal-topic-examples{grid-template-columns:1fr;display:grid}.reveal-answer-grid{gap:.42rem}.reveal-answer-grid .btn{min-height:46px;padding:.5rem .4rem}.reveal-card-content{font-size:1rem}}.home-card-content{min-width:0}.home-folder-actions{position:relative}.library-item-chevron{color:var(--text-muted)}.home-card-heading{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.home-card-title{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:1rem;line-height:1.25;overflow:hidden}.home-card-description{min-height:0;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:.2rem 0 .3rem;font-size:.73rem;line-height:1.3;overflow:hidden}.home-card-meta{color:var(--text-muted);flex-wrap:wrap;gap:0;font-size:.68rem;display:flex}.home-card-meta span+span:before{content:"·";color:var(--text-muted);margin:0 .35rem}.home-card-meta .is-due{color:var(--warning)}.home-card-icon-button{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;font-size:1rem;line-height:1;display:inline-flex}.home-card-icon-button:hover{color:var(--text-main);background:#ffffff12}.home-deck-primary-actions{flex:none;gap:.1rem;display:flex;position:relative}.home-deck-actions-menu{z-index:30;border:1px solid var(--border-color);background:#151a22;border-radius:8px;width:160px;padding:.3rem;position:absolute;top:calc(100% + .25rem);right:0;box-shadow:0 10px 28px #0006}.home-deck-actions-menu.opens-up{top:auto;bottom:calc(100% + .25rem)}.home-deck-actions-menu button{width:100%;min-height:36px;color:var(--text-main);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:.55rem;padding:.4rem .55rem;font-size:.78rem;display:flex}.home-deck-actions-menu button:hover{background:#ffffff12}.home-deck-actions-menu button.danger{color:var(--danger)}.folder-detail-mobile-tabs{display:none}.folder-detail-view .btn,.folder-section-header h3,.folder-copy-badge{align-items:center;gap:.4rem}.folder-detail-back,.folder-section-header h3,.folder-copy-badge{display:inline-flex}.folder-detail-title>button{justify-content:center;align-items:center;display:inline-flex}.folder-material-card h4>span{align-items:center;gap:.2rem;display:inline-flex}.deck-editor-mobile-label{display:none}.deck-editor-tabs{border:1px solid var(--border-color);background:#ffffff08;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;margin-bottom:1rem;padding:.25rem;display:grid}.deck-editor-tabs button{min-width:0;min-height:40px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.45rem .55rem;font-size:.86rem;font-weight:700}.deck-editor-tabs button.active{background:var(--primary);color:#fff}.deck-editor-study-panel{margin-bottom:2rem;padding:1.35rem}.deck-editor-study-panel>h3{color:var(--primary);margin:0 0 1rem}.deck-editor-study-block{border-top:1px solid var(--border-color);padding:.9rem 0}.deck-editor-setting-title,.setting-help-label{color:var(--text-muted);font-size:.85rem;font-weight:700}.setting-help-label{align-items:center;gap:.35rem;display:inline-flex;position:relative}.setting-help-button{width:26px;height:26px;color:var(--primary);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.setting-help-button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.setting-help-tooltip{z-index:20;border:1px solid var(--border-color);width:min(280px,76vw);color:var(--text);pointer-events:none;background:#0f172afa;border-radius:8px;padding:.65rem .75rem;font-size:.78rem;font-weight:400;line-height:1.55;position:absolute;bottom:calc(100% + .4rem);left:0;box-shadow:0 12px 30px #00000059}.deck-editor-review-presets,.deck-editor-direction-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.55rem;display:grid}.deck-editor-direction-options{grid-template-columns:repeat(3,minmax(0,1fr))}.deck-editor-review-presets .btn,.deck-editor-direction-options .btn{min-width:0;padding:.55rem .4rem;font-size:.82rem}.deck-editor-setting-field{color:var(--text-muted);font-size:.85rem}.deck-editor-setting-field .input-field{margin-top:.35rem}.deck-editor-study-plan .deck-editor-setting-field .input-field{max-width:220px}.study-plan-summary{flex-wrap:wrap;align-items:center;gap:.65rem;margin-top:.65rem;font-size:.84rem;display:flex}.study-plan-summary .btn{padding:.35rem .65rem;font-size:.8rem}.deck-editor-tts-setting{border-top:1px solid var(--border-color);cursor:pointer;align-items:center;gap:.55rem;padding:.9rem 0;display:flex}.deck-editor-advanced-settings{border-top:1px solid var(--border-color);padding-top:.9rem}.deck-editor-advanced-settings summary{color:var(--primary);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;gap:.75rem;font-weight:700;display:flex}.deck-editor-advanced-settings summary span{color:var(--text-muted);font-size:.78rem;font-weight:500}.deck-editor-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin-top:.9rem;display:grid}.deck-editor-card-menus{gap:.55rem;margin-bottom:.65rem;display:flex}.deck-editor-card-menus .btn{min-height:38px}.deck-editor-action-sheet{border:1px solid var(--border-color);background:var(--border-color);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-bottom:.85rem;display:grid;overflow:hidden}.deck-editor-action-sheet button{min-height:42px;color:var(--text);font:inherit;cursor:pointer;background:#0f172afa;border:0;justify-content:center;align-items:center;gap:.4rem;padding:.55rem .65rem;font-size:.82rem;display:flex}.deck-editor-action-sheet button:disabled{opacity:.45;cursor:not-allowed}.deck-editor-action-sheet button:not(:disabled):hover{background:#ffffff12}.dashboard-header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.dashboard-header h2{margin:0}.dashboard-tabs{border:1px solid var(--border-color);background:#ffffff08;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;margin-bottom:1rem;padding:.3rem;display:grid}.dashboard-tabs button{min-width:0;min-height:38px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.4rem .5rem;font-size:.8rem}.dashboard-tabs button.active{color:var(--primary);background:#00e5ff24;font-weight:700}.library-tools{box-shadow:none;background:0 0;border:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.65rem;margin-bottom:.85rem;padding:0;display:grid}.library-search-wrap{border:1px solid var(--border-color);background:var(--bg-surface-elevated);min-height:42px;color:var(--text-muted);border-radius:8px;align-items:center;gap:.55rem;padding:0 .75rem;display:flex}.library-search-wrap:focus-within{border-color:var(--primary)}.library-search{width:100%;min-width:0;color:var(--text-main);font:inherit;background:0 0;border:0;outline:0;padding:0;font-size:.82rem}.library-trash-button{border:1px solid var(--border-color);background:var(--bg-surface-elevated);width:42px;height:42px;color:var(--text-muted);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.library-trash-count{background:var(--danger);color:#fff;border:1px solid #0b0e14;border-radius:9px;place-items:center;min-width:15px;height:15px;padding:0 3px;font-size:.58rem;font-weight:800;display:grid;position:absolute;top:1px;right:1px}.library-trash-warning{width:100%;color:var(--warning);font:inherit;text-align:left;cursor:pointer;background:#ffb80014;border:1px solid #ffb8008c;border-radius:6px;grid-column:1/-1;padding:.48rem .65rem;font-size:.75rem;line-height:1.35}.home-favorites{border-top:1px solid var(--border-color);grid-column:1/-1;gap:.45rem;min-width:0;padding-top:.65rem;display:grid}.home-favorites-header{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.home-favorites-header h2{color:var(--text-muted);margin:0;font-size:.78rem;line-height:1.2}.home-favorites-header span{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:.68rem}.home-favorites-track{overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#ffb80073 transparent;-webkit-overflow-scrolling:touch;gap:.4rem;min-width:0;padding:0 0 .25rem;display:flex;overflow-x:auto}.home-favorite-item{background:#ffb8000a;border:1px solid #ffb8008c;border-radius:6px;grid-template-columns:minmax(0,1fr) 36px;width:min(220px,58vw);min-width:min(220px,58vw);height:36px;display:grid;overflow:hidden}.home-favorite-open,.home-favorite-remove{min-width:0;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0}.home-favorite-open{text-align:left;text-overflow:ellipsis;white-space:nowrap;padding:.35rem .55rem;font-size:.72rem;font-weight:700;overflow:hidden}.home-favorite-remove{border-left:1px solid var(--border-color);width:36px;color:var(--warning);padding:0;font-size:.78rem}.home-favorite-open:hover,.home-favorite-open:focus-visible,.home-favorite-remove:hover,.home-favorite-remove:focus-visible{background:#ffb8001a;outline:none}.create-folder-card{border:1px solid var(--border-color);background:var(--bg-surface-elevated);cursor:pointer;min-width:0;min-height:44px;transition:var(--transition);color:var(--text-main);font:inherit;-webkit-user-select:none;user-select:none;border-radius:8px;justify-content:center;align-items:center;gap:.45rem;padding:.55rem .7rem;font-size:.82rem;font-weight:700;display:flex}.create-folder-card:hover{border-color:var(--primary);color:var(--primary);background:#00f0ff0d}.create-folder-card svg{color:var(--primary);flex:none}.store-view,.store-screen{gap:.85rem;display:grid}.store-back-button{justify-self:start;min-height:36px;padding:.45rem .75rem;font-size:.8rem}.store-header{background:#050c1857;border-top:1px solid #00f0ff38;border-bottom:1px solid #ffffff1a;grid-template-columns:minmax(0,auto) minmax(240px,1fr);align-items:center;gap:.8rem 1.25rem;padding:.85rem 1rem;display:grid}.store-eyebrow,.error-state-label{color:var(--primary);letter-spacing:0;margin:0 0 .18rem;font-size:.64rem;font-weight:800}.store-header h2{margin:0;font-size:1.2rem;line-height:1.15}.store-intro{color:var(--text-muted);margin:0;font-size:.8rem;line-height:1.45}.store-admin-area{border-top:1px solid #ffffff14;grid-column:1/-1;padding-top:.7rem}.store-admin-button{color:#ff79c6;border-color:#ff79c6}.store-admin-form{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:start;gap:.5rem;display:grid}.store-admin-form .input-field{margin:0}.store-admin-actions,.store-card-admin-actions{gap:.45rem;display:flex}.store-admin-actions .btn,.store-card-admin-actions .btn{flex:1}.store-toolbar{color:var(--text-muted);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:0 .15rem;font-size:.85rem;display:grid}.store-search{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem;display:grid}.store-search-label{color:var(--text);font-size:.74rem;font-weight:700}.store-search .input-field{min-height:38px;margin:0;padding:.45rem .7rem}.store-result-count{text-align:right;font-variant-numeric:tabular-nums;min-width:3.2rem}.store-state{min-height:104px;color:var(--text-muted);text-align:center;border:1px dashed #ffffff24;border-radius:8px;justify-content:center;align-items:center;gap:.65rem;padding:1rem;font-size:.82rem;display:flex}.store-state-error{text-align:left;border-style:solid;border-color:#ff527747;justify-content:space-between}.store-state-error strong{color:var(--danger)}.store-state-error p{color:var(--text-muted);margin:.18rem 0 0;font-size:.74rem}.store-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem;display:grid}.store-card{flex-direction:column;gap:.7rem;min-width:0;padding:.85rem;display:flex}.store-card-copy{flex:1;min-width:0}.store-card h3{overflow-wrap:anywhere;margin:0 0 .3rem;font-size:.95rem;line-height:1.3}.store-card-copy>p{min-height:2.5em;color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 .65rem;font-size:.76rem;line-height:1.35;display:-webkit-box;overflow:hidden}.store-card-stats{border-top:1px solid #ffffff14;border-bottom:1px solid #ffffff14;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.store-card-stats span{min-width:0;color:var(--text-muted);text-align:center;white-space:nowrap;padding:.42rem .25rem;font-size:.68rem}.store-card-stats span+span{border-left:1px solid #ffffff14}.store-card-stats strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:.76rem}.store-card-actions{gap:.45rem;display:grid}.store-card-actions>.btn{width:100%;min-height:36px;padding:.45rem .65rem;font-size:.76rem}.ui-spinner{border:2px solid #ffffff2e;border-top-color:var(--primary);border-radius:50%;flex:none;width:18px;height:18px;animation:.7s linear infinite ui-spin}@keyframes ui-spin{to{transform:rotate(360deg)}}.screen-loading,.content-loading-panel{color:var(--text);justify-content:center;align-items:center;gap:.65rem;font-size:.8rem;font-weight:700;display:flex}.screen-loading{min-height:96px;margin:.75rem 0}.content-loading-overlay{z-index:12000;pointer-events:none;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.content-loading-panel{padding:.75rem .9rem}.error-state{gap:.8rem;width:min(100%,620px);margin:1rem auto;padding:1rem;display:grid}.error-state h2{color:var(--danger);margin:0 0 .3rem;font-size:1.05rem}.error-state p{color:var(--text-muted);margin:0;font-size:.8rem;line-height:1.5}.error-state-details{color:var(--text-muted);font-size:.74rem}.error-state-details pre{white-space:pre-wrap;background:#0003;border-radius:6px;max-height:100px;margin:.45rem 0 0;padding:.55rem;font-size:.7rem;overflow:auto}.error-state-actions{justify-content:flex-end;gap:.55rem;display:flex}.toast-region{right:16px;bottom:max(16px, env(safe-area-inset-bottom));z-index:10000;pointer-events:none;gap:8px;width:min(360px,100vw - 32px);display:grid;position:fixed}.toast-message{color:#fff;background:#192b44f7;border:1px solid #ffffff29;border-radius:8px;padding:.7rem .8rem;font-size:.78rem;font-weight:700;line-height:1.4;box-shadow:0 10px 28px #00000059}.toast-message-success{border-left:4px solid #42d6a4}.toast-message-error{border-left:4px solid var(--danger)}.toast-message-info{border-left:4px solid var(--primary)}.confirm-overlay{z-index:10001;padding:max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.confirm-panel{background:#101827fa;border:1px solid #ffffff29;border-radius:8px;width:min(420px,100%);max-height:min(82dvh,520px);padding:1rem;overflow:auto;box-shadow:0 20px 60px #00000073}.confirm-panel h3{color:var(--primary);margin:0 0 .5rem;font-size:1rem}.confirm-panel>p{color:var(--text);white-space:pre-wrap;margin:0 0 .9rem;font-size:.8rem;line-height:1.5}.confirm-actions{justify-content:flex-end;gap:.55rem;display:flex}.uncategorized-drop-zone{border-radius:10px;transition:background .18s,box-shadow .18s}.uncategorized-drop-zone.is-over{box-shadow:inset 0 0 0 1px var(--primary);background:#00f0ff0f}.study-mode{width:100%}.study-card{overflow:hidden}.study-card.is-quiz{max-height:none!important}.study-swipe-hints{pointer-events:none;justify-content:space-between;align-items:flex-start;margin-top:.55rem;padding:0 .15rem;line-height:1.2;display:flex}.study-swipe-hint{flex-direction:column;min-width:5rem;font-size:.72rem;font-weight:700;display:flex}.study-swipe-hint-easy{color:var(--primary);text-align:right;align-items:flex-end}.study-swipe-hint-again{color:var(--danger)}.battle-beta-note{color:var(--warning);text-align:center;background:#ffb80014;border:1px solid #ffb80038;border-radius:8px;margin:0 0 .75rem;padding:.55rem .7rem;font-size:.82rem;line-height:1.35}.battle-launch-section{background:#ffffff05;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem}.battle-launch-description{color:var(--text-muted);margin:0 0 1rem;font-size:.86rem}.battle-selected-deck{border-left:3px solid var(--success);color:var(--text-main);background:#ffffff0a;margin-top:1rem;padding:.65rem .75rem;font-size:.86rem;font-weight:700}.battle-mode-switcher{background:#0003;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;padding:.5rem;display:grid}.battle-mode-switcher .btn{min-width:0;min-height:42px;padding:.5rem .35rem;font-size:.78rem;line-height:1.2}.battle-mode-description{min-height:2.6em;color:var(--text-muted);margin:.75rem 0;font-size:.8rem;line-height:1.35}.battle-mode-settings{flex-wrap:wrap;gap:.75rem 1rem;margin-bottom:1rem;display:flex}.battle-mode-settings label{color:var(--text-muted);align-items:center;gap:.45rem;font-size:.82rem;display:flex}.battle-mode-settings input{text-align:center;width:72px}.battle-mode-settings select{width:104px;padding:.4rem}.battle-mode-settings .battle-reveal-topic-field{align-items:stretch;width:100%}.battle-mode-settings .battle-reveal-topic-field input{text-align:left;width:100%}.battle-reveal-ready-panel,.battle-reveal-result{background:#38d9d60f;border:1px solid #38d9d647;border-radius:8px;width:min(100%,560px);margin:0 auto 1.25rem;padding:1rem}.battle-reveal-ready-panel .reveal-secret-field{text-align:left;margin:.8rem 0}.battle-reveal-ready-panel .battle-reveal-topic-field{text-align:left;width:min(520px,100%);margin:.8rem 0}.battle-reveal-topic-field>div{grid-template-columns:minmax(0,1fr) auto;gap:.45rem;display:grid}.battle-reveal-topic-field small{color:var(--text-muted);font-size:.72rem;font-weight:400}.reveal-secret-input-row{grid-template-columns:minmax(0,1fr)!important}.reveal-topic-source{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.lobby-mode-switcher{text-align:left;background:#ffffff09;border:1px solid #ffffff21;gap:.65rem;margin:0 auto 1rem;padding:.85rem;display:grid}.lobby-mode-switcher-title{justify-content:space-between;align-items:center;gap:.75rem;font-size:.85rem;display:flex}.lobby-mode-switcher-title span,.lobby-mode-switcher p,.lobby-mode-switcher small{color:var(--text-muted);font-size:.74rem}.lobby-mode-switcher p{margin:0;line-height:1.45}.lobby-mode-switcher .battle-mode-switcher{grid-template-columns:repeat(3,minmax(0,1fr))}.lobby-mode-switcher .battle-mode-switcher .btn{min-width:0;padding:.55rem .3rem;font-size:.76rem}.lobby-current-mode{color:var(--primary);font-weight:800}.reveal-topic-source .btn{min-width:0;padding:.65rem .5rem;font-size:.82rem}.reveal-player-topic-field{margin-top:0}.reveal-card-topic{border-left:3px solid var(--reveal-gold,var(--warning));width:100%;color:var(--text-muted);text-align:left;overflow-wrap:anywhere;background:#ffffff14;padding:.45rem .55rem;font-size:.78rem;line-height:1.4}.reveal-secret-textarea{resize:vertical;width:100%;min-height:68px;font:inherit;line-height:1.45}.battle-reveal-ready-panel>small{color:var(--text-muted);margin-top:.65rem;font-size:.75rem;line-height:1.5;display:block}.battle-match-status{color:var(--text);margin-bottom:.8rem;font-size:1rem;font-weight:800}.battle-participant-chips{flex-wrap:wrap;justify-content:center;gap:.75rem;margin-bottom:2rem;display:flex}.battle-reveal-participants{gap:.5rem;width:min(100%,560px);margin:0 auto 1rem;display:grid}.battle-reveal-participant{text-align:left;background:#ffffff0a;border:1px solid #ffffff1a;border-radius:8px;justify-content:space-between;align-items:center;gap:.75rem;min-width:0;padding:.65rem .75rem;font-size:.88rem;font-weight:700;display:flex}.battle-reveal-participant span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.battle-reveal-participant strong{flex:none;font-size:.76rem}.battle-reveal-participant .is-ready{color:var(--success)}.battle-reveal-participant .is-waiting{color:var(--warning)}.battle-reveal-ready-summary{color:var(--primary);margin-bottom:.65rem;font-size:.88rem;font-weight:800}.reveal-secret-input-masked{-webkit-text-security:disc}.battle-reveal-result h3{margin:.9rem 0}.battle-reveal-result .reveal-card-content{margin-bottom:.85rem}.reveal-round-status{color:var(--text-muted);background:#38d9d612;border:1px solid #38d9d63d;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.45rem .65rem;font-size:.82rem;display:flex}.reveal-round-status strong{color:var(--primary);font-size:.95rem}.reveal-waiting-message{color:var(--text-muted);font-size:.9rem;line-height:1.5}.reveal-answer-result{color:var(--primary);margin-bottom:.55rem;font-size:1.35rem;font-weight:800}.reveal-loser-intro{color:var(--text-muted);margin:1rem 0 .65rem;font-size:.85rem}.reveal-loser-card{background:#ff6b8114;border:1px solid #ff6b8159;border-radius:8px;padding:.85rem}.reveal-loser-card+.reveal-loser-card{margin-top:.75rem}.reveal-loser-card h3{margin:0 0 .65rem;font-size:1rem}.reveal-rematch-note{color:var(--text-muted);margin-bottom:.75rem;font-size:.82rem}.reveal-lobby-shell,.reveal-result-shell,.reveal-board-arena{--reveal-felt:#132824;--reveal-ink:#17191f;--reveal-paper:#f4f1e8;--reveal-gold:#f0c75e;--reveal-coral:#ff7185;--reveal-cyan:#38d9d6}.reveal-table-lobby,.reveal-result-table{background:var(--reveal-felt);border:1px solid #f0c75e73;position:relative;overflow:hidden;box-shadow:inset 0 0 0 5px #0c1715,inset 0 0 0 7px #f0c75e33,0 16px 40px #00000047}.reveal-table-lobby:before,.reveal-result-table:before,.reveal-question-table:before{content:"";pointer-events:none;border:1px solid #f0c75e29;border-radius:6px;position:absolute;inset:12px}.reveal-table-title,.reveal-result-title{letter-spacing:0;position:relative;color:var(--reveal-paper)!important;margin-bottom:.25rem!important}.reveal-table-kicker{color:#f4f1e8b3;margin:0 0 1rem;font-size:.78rem;position:relative}.reveal-room-code{font-variant-numeric:tabular-nums;background:#0d1716;border:1px solid #f0c75e99;border-radius:6px;width:fit-content;padding:.45rem .75rem .45rem 1rem;position:relative;box-shadow:0 5px #080e0d;color:var(--reveal-gold)!important;margin:0 auto .5rem!important}.reveal-table-lobby .battle-match-status{color:var(--reveal-cyan);background:#0d1716b8;border:1px solid #38d9d647;border-radius:999px;padding:.35rem .65rem;font-size:.78rem;display:inline-flex}.reveal-table-lobby .battle-reveal-participants{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.reveal-table-lobby .battle-reveal-participant{background:#080f0e8f;border-color:#f4f1e829;grid-template-columns:48px minmax(0,1fr);min-height:76px;padding:.55rem;display:grid;box-shadow:0 5px #0408078c}.reveal-player-card-back{color:#f4f1e8b8;background:#2b3039;border:2px solid #f4f1e8bf;border-radius:5px;place-items:center;width:48px;height:64px;display:grid;box-shadow:inset 0 0 0 4px #2b3039,inset 0 0 0 5px #f4f1e847}.reveal-player-card-back span{border:1px solid;border-radius:50%;place-items:center;width:24px;height:24px;font-size:.78rem;font-weight:900;display:grid}.reveal-player-card-back.is-sealed{border-color:var(--reveal-gold);color:var(--reveal-gold);background:#243d3a;transform:translateY(-2px)}.reveal-player-card-info{flex-direction:column;justify-content:center;align-items:flex-start;gap:.3rem;min-width:0;display:flex}.reveal-table-lobby .battle-reveal-participant strong{background:#ffffff12;border-radius:999px;padding:.18rem .4rem;font-size:.66rem}.reveal-table-lobby .battle-reveal-ready-panel{background:var(--reveal-ink);border-color:#f0c75e4d;position:relative;box-shadow:0 7px #06080b8c}.reveal-table-lobby .reveal-topic-card,.reveal-result-table .reveal-topic-card{border-left:4px solid var(--reveal-gold);text-align:left;background:#f4f1e814}.reveal-playing-table{background:#142c28;border-block:2px solid #4f736b;grid-template-columns:88px minmax(0,1fr) 88px;align-items:center;gap:12px;padding:16px 12px;display:grid}.reveal-table-seats{gap:10px;min-width:0;display:grid}.reveal-table-seat{color:#edf6f3;text-align:center;justify-items:center;gap:4px;min-width:0;display:grid}.reveal-seat-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}.reveal-seat-back{background:repeating-linear-gradient(45deg,#303547 0 5px,#383f53 5px 6px);border:1px solid #9ba9c5;border-radius:6px;place-items:center;width:56px;height:64px;display:grid;position:relative;box-shadow:inset 0 0 0 3px #252938,0 3px #080d0c}.reveal-seat-back>span{color:#e6e8f1;background:#252938;border:1px solid #9ba9c5;border-radius:50%;place-items:center;width:28px;height:28px;font-weight:700;display:grid}.reveal-seat-back strong{color:#f0c75e;background:#17191f;border:1px solid #f0c75e;border-radius:4px;padding:2px 5px;font-size:12px;position:absolute;bottom:-4px;right:-8px}.reveal-seat-back small{margin-left:2px;font-size:9px}.reveal-seat-status{color:#c1d0cb;font-size:10px}.reveal-table-seat.is-you .reveal-seat-back{border:2px solid #38d9d6}.reveal-table-seat.is-you .reveal-seat-name{color:#72eeeb}.reveal-table-seat.is-answered .reveal-seat-status{color:#a8efb7}.reveal-table-seat.is-spectating .reveal-seat-back{opacity:.55}.reveal-playing-table>.reveal-question-table{width:100%;min-width:0;max-height:none;box-shadow:none;background:0 0;border:0;gap:14px;margin:0!important;padding:24px 12px 12px!important}.reveal-playing-table .reveal-question-card{overflow-wrap:anywhere;width:100%;min-width:0;flex:none!important;font-size:18px!important}.reveal-playing-table .reveal-answer-cards .btn{overflow-wrap:anywhere;min-width:0;padding:12px 8px!important;font-size:14px!important}@media (width<=600px){.reveal-playing-table{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 6px}.reveal-table-seats{justify-content:space-evenly;gap:6px;display:flex}.reveal-table-seat{flex:0 64px;width:64px}.reveal-seat-back{width:38px;height:44px}.reveal-seat-back>span{width:22px;height:22px;font-size:13px}.reveal-seat-back strong{font-size:10px;right:-5px}.reveal-seat-name{font-size:10px}.reveal-playing-table>.reveal-question-table{min-height:240px!important;padding:22px 4px 8px!important}.reveal-playing-table .reveal-question-card{min-height:76px;margin-bottom:10px!important;padding:10px!important;font-size:15px!important}.reveal-playing-table .reveal-answer-cards{gap:8px!important}.reveal-playing-table .reveal-answer-cards .btn{min-height:48px;font-size:13px!important}}.reveal-table-score-strip{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:.45rem;margin:-1.2rem 0 .75rem;display:grid}.reveal-score-token{min-width:0;color:var(--reveal-paper);background:#20242b;border:1px solid #f4f1e826;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.45rem;padding:.45rem .55rem;font-size:.72rem;display:grid}.reveal-score-token span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reveal-score-token strong{border:2px solid var(--reveal-gold);width:28px;height:28px;color:var(--reveal-gold);background:#101318;border-radius:50%;place-items:center;font-size:.78rem;display:grid}.reveal-score-token.is-you{border-color:var(--reveal-cyan);box-shadow:inset 0 -2px #38d9d640}.reveal-score-token.is-out{opacity:.42}.reveal-question-table{background:var(--reveal-felt);border:1px solid #f0c75e66;overflow:hidden;box-shadow:inset 0 0 0 5px #0c1715,0 12px 32px #00000040}.reveal-question-table .battle-mode-label{z-index:2;background:#0d1716;border:1px solid #f0c75e52;border-radius:4px;padding:.2rem .45rem;font-size:.68rem;color:var(--reveal-gold)!important}.reveal-question-card{z-index:1;background:var(--reveal-paper);color:#20242b;border:1px solid #d5d0c4;border-radius:6px;min-height:132px;padding:1.25rem 1rem;line-height:1.5;position:relative;box-shadow:0 7px #a9a397;margin:.4rem auto 1.1rem!important}.reveal-answer-cards{z-index:1;position:relative}.reveal-answer-cards .btn{min-height:64px;color:var(--reveal-paper);background:#20242b;border-width:1px;border-radius:6px;box-shadow:0 4px #0b0d10}.reveal-answer-cards .btn:first-child{border-color:#38d9d6a6}.reveal-answer-cards .btn:nth-child(2){border-color:#ff7185a6}.reveal-answer-cards .btn:nth-child(3){border-color:#f0c75ea6}.reveal-answer-cards .btn:nth-child(4){border-color:#93d276a6}.reveal-answer-cards .btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px #0b0d10}.reveal-result-table .battle-reveal-result{background:0 0;border:0}.reveal-result-title{color:var(--reveal-gold)!important}.reveal-loser-intro{color:#f4f1e8b8}.reveal-flip-card{perspective:1000px;width:min(100%,380px);height:190px;margin:.75rem auto}.reveal-flip-card-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.75,.25,1);position:relative}.reveal-flip-card.is-revealed .reveal-flip-card-inner{transform:rotateY(180deg)}.reveal-flip-face{border:2px solid var(--reveal-gold);backface-visibility:hidden;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0;box-shadow:0 8px #0509088c}.reveal-flip-back{color:var(--reveal-paper);background:#20242b}.reveal-card-emblem{border:2px solid var(--reveal-gold);width:54px;height:54px;color:var(--reveal-gold);border-radius:50%;place-items:center;margin-bottom:.55rem;font-size:1.6rem;font-weight:900;display:grid}.reveal-flip-back small{color:#f4f1e899;margin-top:.35rem}.reveal-flip-front{border-color:var(--reveal-coral);background:var(--reveal-paper);color:#20242b;transform:rotateY(180deg)}.reveal-flip-front>span{color:#b34055;font-size:.66rem;font-weight:900}.reveal-flip-front h3{color:#20242b;margin:.25rem 0 .55rem}.reveal-flip-front .reveal-card-content{color:#20242b;background:#fffdf6;border-color:#b3405557;max-height:92px;font-size:1.05rem;line-height:1.5;overflow-y:auto}@media (width<=600px){.battle-reveal-ready-panel,.battle-reveal-result{padding:.8rem}.reveal-round-status{justify-content:space-between;width:100%}.battle-main-panel .battle-question-text{margin-bottom:1rem!important;font-size:1.1rem!important}.battle-main-panel .battle-answer-grid{gap:.6rem!important}.battle-main-panel .battle-answer-grid .btn{min-height:52px;padding:.7rem .45rem!important;font-size:.88rem!important}.reveal-table-lobby,.reveal-result-table{padding:1rem .75rem!important}.battle-reveal-topic-field>div{grid-template-columns:minmax(0,1fr)}.reveal-table-title,.reveal-result-title{font-size:1.35rem!important}.reveal-room-code{letter-spacing:5px!important;font-size:1.65rem!important}.reveal-table-lobby .battle-reveal-participants{gap:.5rem}.reveal-table-lobby .battle-reveal-participant{grid-template-columns:38px minmax(0,1fr);min-height:62px;padding:.4rem}.reveal-player-card-back{width:38px;height:50px}.reveal-player-card-back span{width:20px;height:20px;font-size:.65rem}.reveal-player-card-info span{font-size:.72rem}.reveal-table-score-strip{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-.5rem}.reveal-question-table{min-height:0!important;padding:1rem .8rem!important}.reveal-question-card{min-height:96px;padding:1rem .75rem}.reveal-answer-cards .btn{min-height:50px}.reveal-flip-card{height:174px}}@media (prefers-reduced-motion:reduce){.reveal-flip-card-inner{transition-duration:.01ms}}.reveal-card-preview{border-style:dashed}.battle-online-start{justify-content:center;align-items:center;gap:.45rem;width:100%;padding:.85rem;display:flex}.auth-view{text-align:center;align-items:flex-start;width:min(100% - 2rem,400px);min-height:100dvh;margin:0 auto;padding:clamp(1rem,8vh,4rem) 0;display:flex}.auth-panel{width:100%;padding:1.5rem}.auth-brand{color:var(--text-main);font-size:1.05rem;font-weight:700;line-height:1}.auth-title{color:var(--primary);margin:.45rem 0 1rem;font-size:1.2rem}.auth-mode-tabs{border:1px solid var(--border-color);background:#ffffff06;border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;margin-bottom:.85rem;padding:.25rem;display:grid}.auth-mode-tabs button{min-height:36px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;font-size:.82rem;font-weight:600}.auth-mode-tabs button.active{background:var(--bg-surface-elevated);color:var(--primary);box-shadow:inset 0 0 0 1px #00f0ff38}.auth-form{flex-direction:column;gap:.75rem;display:flex}.auth-note{border-left:2px solid var(--warning);color:var(--text-muted);text-align:left;background:#ffb8000f;margin:0;padding:.55rem .65rem;font-size:.76rem;line-height:1.45}.auth-terms-row{color:var(--text-muted);text-align:left;align-items:flex-start;gap:.5rem;font-size:.78rem;line-height:1.4;display:flex}.auth-terms-row input{width:18px;height:18px;accent-color:var(--primary);cursor:pointer;flex:0 0 18px;margin-top:.05rem}.auth-terms-row a,.terms-modal a{color:var(--primary);text-decoration:underline}.auth-submit{text-transform:none;letter-spacing:0;width:100%;margin-top:.15rem}.auth-message{text-align:left;border-radius:6px;margin:.75rem 0 0;padding:.55rem .65rem;font-size:.78rem;line-height:1.4}.auth-message.error{color:var(--danger);background:#ff005514}.auth-message.success{color:var(--success);background:#00ff9412}.auth-links{margin-top:.8rem}.auth-links button{min-height:32px;color:var(--primary);font:inherit;cursor:pointer;background:0 0;border:0;padding:.25rem .5rem;font-size:.78rem;text-decoration:underline}.terms-modal-backdrop{z-index:1000;background:#000000d1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.terms-modal{width:min(100%,600px);max-height:min(80vh,720px);color:var(--text-main);background:#1e1e2e;flex-direction:column;display:flex;overflow:hidden}.terms-modal-header,.terms-modal-footer{background:#1e1e2e;flex:none;padding:.85rem 1rem}.terms-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:.75rem;display:flex}.terms-modal-header h2{color:var(--primary);margin:0;font-size:1rem}.terms-modal-close{width:36px;height:36px;color:var(--text-main);cursor:pointer;background:#ffffff0d;border:0;border-radius:6px;flex:0 0 36px;font-size:1.35rem;line-height:1}.terms-modal-body{overscroll-behavior:contain;flex:auto;padding:1rem;font-size:.84rem;line-height:1.55;overflow-y:auto}.terms-modal-body h3{color:var(--warning);margin:1rem 0 .35rem;font-size:.9rem}.terms-modal-body h3:first-child{margin-top:0}.terms-modal-body p{margin:0}.terms-modal-links{color:var(--text-muted);font-size:.8rem;line-height:1.7;margin-top:1rem!important}.terms-modal-footer{border-top:1px solid var(--border-color)}.terms-modal-footer .btn{width:100%}.settings-modal-backdrop,.help-modal-backdrop{z-index:10000;background:#000000d1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.settings-modal,.help-modal{background:#151a22;flex-direction:column;width:min(100%,720px);max-height:min(85vh,760px);display:flex;overflow:hidden}.settings-modal{width:min(100%,400px)}.settings-modal-header,.settings-modal-footer,.help-modal-header,.help-modal-footer{background:#151a22;flex:none;padding:.85rem 1rem}.settings-modal-header,.help-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:.75rem;display:flex}.settings-modal-header h2,.help-modal-header h2{color:var(--primary);margin:0;font-size:1rem}.settings-modal-close,.help-modal-close{width:36px;height:36px;box-shadow:inset 0 0 0 1px var(--border-color);cursor:pointer;background:#ffffff14;border:0;border-radius:6px;flex:0 0 36px;font-size:1.35rem;line-height:1;color:#fff!important}.help-modal-close{z-index:1;position:relative}.settings-modal-body,.help-modal-body{overscroll-behavior:contain;flex:auto;overflow-y:auto}.settings-modal-body{padding:0 1rem}.settings-section{border-bottom:1px solid var(--border-color);padding:.9rem 0}.settings-section:last-child{border-bottom:0}.settings-label,.settings-toggle-row strong{color:var(--text-main);font-size:.84rem;font-weight:700;display:block}.settings-volume-row{color:var(--text-muted);text-align:center;grid-template-columns:20px minmax(0,1fr) 20px;align-items:center;gap:.6rem;margin-top:.55rem;font-size:.7rem;display:grid}.settings-volume-row input{width:100%;accent-color:var(--primary)}.settings-toggle-row{cursor:pointer;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:.6rem;display:grid}.settings-toggle-row input{width:18px;height:18px;accent-color:var(--primary);margin:0}.settings-toggle-row small{color:var(--text-muted);margin-top:.1rem;font-size:.7rem;line-height:1.35;display:block}.settings-time-row{color:var(--text-muted);justify-content:space-between;align-items:center;gap:.75rem;margin:.65rem 0 0 1.65rem;font-size:.76rem;display:flex}.settings-time-row .input-field{width:128px;min-height:36px;padding:.35rem .55rem;font-size:.8rem}.settings-backup-section>small,.settings-backup-section>div>small{color:var(--text-muted);margin-top:.25rem;font-size:.68rem;line-height:1.4;display:block}.settings-backup-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.65rem;display:grid}.settings-backup-actions .btn{min-width:0;padding:.5rem .4rem;font-size:.72rem}.settings-backup-input{display:none}.settings-backup-message{border-radius:6px;margin:.55rem 0 0;padding:.45rem .55rem;font-size:.68rem;line-height:1.35}.settings-backup-message.success{color:var(--success);background:#10b9811f}.settings-backup-message.error{color:var(--danger);background:#ef44441f}.settings-backup-message.info{color:var(--primary);background:#38bdf81f}.settings-modal-footer,.help-modal-footer{border-top:1px solid var(--border-color)}.settings-modal-footer .btn,.help-modal-footer .btn{width:100%}.help-tabs{scrollbar-width:thin;border-bottom:1px solid var(--border-color);flex:none;padding:0 .5rem;display:flex;overflow-x:auto}.help-tabs button{min-height:42px;color:var(--text-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:.55rem .75rem;font-size:.78rem;font-weight:700}.help-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.help-modal-body{padding:1rem;font-size:.82rem;line-height:1.6}.help-modal-body h3{color:var(--text-main);margin:0 0 .4rem;font-size:1rem}.help-modal-body h4{font-size:.88rem!important}.help-modal-body p,.help-modal-body ul,.help-modal-body ol{color:var(--text-muted)}.help-modal-body code{color:var(--primary)}.profile-modal-backdrop,.trash-modal-backdrop{z-index:9999;background:#000000d1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.profile-modal,.trash-modal{background:#151a22;flex-direction:column;width:min(100%,720px);max-height:min(84vh,760px);display:flex;overflow:hidden}.profile-modal{width:min(100%,400px)}.profile-modal-header,.profile-modal-footer,.trash-modal-header,.trash-modal-footer{background:#151a22;flex:none;padding:.85rem 1rem}.profile-modal-header,.trash-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:.75rem;display:flex}.profile-modal-header h3,.trash-modal-header h3{color:var(--primary);margin:0;font-size:1rem}.profile-modal-close,.trash-modal-close{width:36px;height:36px;box-shadow:inset 0 0 0 1px var(--border-color);cursor:pointer;z-index:1;background:#ffffff14;border:0;border-radius:6px;flex:0 0 36px;font-size:1.35rem;line-height:1;position:relative;color:#fff!important}.profile-modal-body,.trash-modal-body{overscroll-behavior:contain;flex:auto;padding:1rem;overflow-y:auto}.profile-name-field>span{color:var(--text-muted);margin-bottom:.4rem;font-size:.76rem;font-weight:700;display:block}.profile-terms-link{border:0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);width:100%;min-height:40px;color:var(--text-main);font:inherit;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.75rem;padding:.45rem 0;font-size:.78rem;display:flex}.profile-terms-link span{color:var(--primary);font-size:1.2rem}.profile-account-section{margin-top:.75rem}.profile-account-section h4{color:var(--text-muted);margin:0 0 .45rem;font-size:.72rem}.profile-account-actions,.profile-modal-footer,.trash-modal-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.profile-account-actions.single{grid-template-columns:minmax(0,1fr)}.btn-danger-outline{color:var(--danger);border:1px solid var(--danger);background:0 0}.profile-modal-footer,.trash-modal-footer{border-top:1px solid var(--border-color)}.trash-note{color:var(--text-muted);margin:0 0 .75rem;font-size:.76rem;line-height:1.45}.trash-empty{color:var(--text-muted);text-align:center;margin:0;padding:1.25rem 0;font-size:.82rem}.trash-list{gap:.55rem;display:grid}.trash-item{border:1px solid var(--border-color);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.7rem;display:grid}.trash-item-copy>div{overflow-wrap:anywhere;font-size:.8rem;font-weight:700}.trash-item-copy>div span{color:var(--primary);margin-right:.4rem;font-size:.66rem;display:inline-block}.trash-item-copy small{overflow-wrap:anywhere;color:var(--text-muted);margin-top:.15rem;font-size:.68rem;line-height:1.35;display:block}.trash-item .btn{min-width:72px}.upgrade-modal-backdrop{z-index:10000;background:#000000d1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.upgrade-modal{background:#151a22;flex-direction:column;width:min(100%,520px);max-height:min(86vh,720px);display:flex;overflow:hidden}.upgrade-modal-header,.upgrade-modal-footer{background:#151a22;flex:none;padding:.85rem 1rem}.upgrade-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:.75rem;display:flex}.upgrade-modal-header span{color:var(--primary);margin-bottom:.15rem;font-size:.72rem;font-weight:800;display:block}.upgrade-modal-header h2{margin:0;font-size:1.05rem;line-height:1.3}.upgrade-modal-close{z-index:1;width:36px;height:36px;box-shadow:inset 0 0 0 1px var(--border-color);cursor:pointer;background:#ffffff14;border:0;border-radius:6px;flex:0 0 36px;font-size:1.35rem;line-height:1;position:relative;color:#fff!important}.upgrade-modal-body{overscroll-behavior:contain;flex:auto;padding:1rem;overflow-y:auto}.upgrade-modal-reason{color:var(--text-main);margin:0 0 .85rem;font-size:.82rem;line-height:1.5}.upgrade-modal-reason span{color:var(--text-muted);margin-top:.25rem;display:block}.upgrade-store-notice{border-left:3px solid var(--primary);background:#39d3d014;margin:0 0 .85rem;padding:.7rem .8rem}.upgrade-store-notice strong{color:var(--primary);font-size:.8rem}.upgrade-store-notice p{color:var(--text-muted);margin:.25rem 0 0;font-size:.75rem;line-height:1.5}.upgrade-plan-prices{border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.upgrade-plan-prices>div{justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem;font-size:.8rem;display:flex}.upgrade-plan-prices>div+div{border-left:1px solid var(--border-color)}.upgrade-plan-prices span{color:var(--primary);white-space:nowrap;font-weight:700}.upgrade-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:.85rem 0 0;display:grid}.upgrade-benefits>div{border-bottom:1px solid var(--border-color);min-width:0;padding:.5rem .65rem}.upgrade-benefits dt{color:var(--text-muted);font-size:.68rem;font-weight:700}.upgrade-benefits dd{overflow-wrap:anywhere;margin:.12rem 0 0;font-size:.76rem;line-height:1.35}.upgrade-modal-footer{border-top:1px solid var(--border-color);grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.upgrade-modal-footer-web{grid-template-columns:minmax(0,1fr)}.ai-tutor-backdrop{z-index:10000;background:#000000d1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.ai-tutor-modal{background:#151a22;flex-direction:column;width:min(100%,600px);height:min(82vh,760px);display:flex;overflow:hidden}.ai-tutor-header{border-bottom:1px solid var(--border-color);background:#151a22;flex:none;justify-content:space-between;align-items:center;gap:.75rem;padding:.85rem 1rem;display:flex}.ai-tutor-header h3{color:var(--primary);margin:0;font-size:1rem}.ai-tutor-close{z-index:1;width:36px;height:36px;box-shadow:inset 0 0 0 1px var(--border-color);cursor:pointer;background:#ffffff14;border:0;border-radius:6px;flex:0 0 36px;font-size:1.35rem;line-height:1;position:relative;color:#fff!important}.ai-tutor-context{border-bottom:1px solid var(--border-color);background:#ffffff09;flex:none;padding:.75rem 1rem}.ai-tutor-context span{color:var(--text-muted);margin-bottom:.2rem;font-size:.68rem;font-weight:700;display:block}.ai-tutor-context strong,.ai-tutor-context p{overflow-wrap:anywhere;margin:0;font-size:.8rem;line-height:1.4;display:block}.ai-tutor-context p{color:var(--primary);margin-top:.15rem}.ai-tutor-messages{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:.7rem;min-height:0;padding:.85rem 1rem;display:flex;overflow-y:auto}.ai-tutor-empty{color:var(--text-muted);text-align:center;margin:auto 0;font-size:.8rem;line-height:1.45}.ai-tutor-empty p{margin:0 0 .3rem}.ai-tutor-empty small{font-size:.7rem}.ai-tutor-message{overflow-wrap:anywhere;white-space:pre-wrap;border-radius:8px;max-width:85%;padding:.65rem .75rem;font-size:.8rem;line-height:1.5}.ai-tutor-message.user{background:var(--primary);color:#061018;align-self:flex-end}.ai-tutor-message.model{background:#ffffff14;align-self:flex-start}.ai-tutor-report{color:var(--danger);font:inherit;cursor:pointer;background:0 0;border:0;margin:.35rem 0 0 auto;padding:0;font-size:.64rem;display:block}.ai-tutor-loading{color:var(--text-muted);align-self:flex-start;font-size:.76rem}.ai-tutor-generate{align-self:center}.ai-tutor-generate .btn{border-color:var(--success);min-height:34px;color:var(--success);padding:.35rem .65rem;font-size:.72rem}.ai-tutor-composer{border-top:1px solid var(--border-color);background:#151a22;flex:none;padding:.75rem 1rem}.ai-tutor-materials-toggle{color:var(--text-muted);cursor:pointer;align-items:center;gap:.45rem;margin-bottom:.4rem;font-size:.72rem;display:flex}.ai-tutor-materials-toggle input{width:17px;height:17px;accent-color:var(--primary);margin:0}.ai-tutor-materials-note{color:var(--text-muted);margin-bottom:.4rem;font-size:.64rem}.ai-tutor-error{color:var(--danger);background:#ff005514;border-radius:6px;margin-bottom:.5rem;padding:.5rem;font-size:.7rem}.ai-tutor-error .btn{min-height:30px;margin-top:.4rem;padding:.25rem .55rem;font-size:.66rem}.ai-tutor-form{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;display:grid}.ai-tutor-form .input-field{min-width:0;min-height:38px;margin:0;font-size:.78rem}.ai-tutor-form .btn{min-width:72px}.ai-tutor-count{color:var(--text-muted);text-align:right;margin-top:.25rem;font-size:.64rem}.ai-tutor-count.limit{color:var(--warning)}.ai-generator-view{background:#151a22;flex-direction:column;width:min(100%,640px);max-height:min(78vh,720px);margin:0 auto;display:flex;overflow:hidden}.ai-generator-header,.ai-generator-actions{background:#151a22;flex:none;padding:.9rem 1rem}.ai-generator-header{border-bottom:1px solid var(--border-color)}.ai-generator-header h2{color:var(--primary);margin:0;font-size:1.05rem}.ai-generator-header p{color:var(--text-muted);margin:.25rem 0 0;font-size:.76rem;line-height:1.4}.ai-generator-body{overscroll-behavior:contain;flex:auto;min-height:0;padding:1rem;overflow-y:auto}.ai-generator-field{margin-bottom:.85rem;display:block}.ai-generator-field>span{color:var(--text-muted);margin-bottom:.35rem;font-size:.72rem;font-weight:700;display:block}.ai-generator-field .input-field{margin:0;font-size:.82rem}.ai-generator-prompt{margin-bottom:0}.ai-generator-prompt textarea{resize:vertical;min-height:190px;line-height:1.5}.ai-generator-count{color:var(--text-muted);text-align:right;margin-top:.3rem;font-size:.66rem}.ai-generator-count.limit{color:var(--warning)}.ai-generator-error{color:var(--danger);background:#ff005514;border-radius:6px;margin-top:.75rem;padding:.65rem}.ai-generator-error p{overflow-wrap:anywhere;margin:0;font-size:.74rem;line-height:1.4}.ai-generator-error>div{gap:.5rem;margin-top:.55rem;display:flex}.ai-generator-error .btn{min-height:32px;padding:.3rem .6rem;font-size:.68rem}.ai-generator-actions{border-top:1px solid var(--border-color);grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.ai-generator-loading{justify-content:center;align-items:center;gap:.45rem;display:inline-flex}.spinner{border:2px solid #0000004d;border-top-color:#000;border-radius:50%;width:16px;height:16px;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (width<=768px){.container{padding:1rem}.app-header{align-items:center;padding:.75rem .85rem}.app-title{font-size:1.25rem;line-height:40px}.app-header-actions{gap:.4rem!important}.app-header-actions>div{padding:.28rem .5rem!important;font-size:.72rem!important}.app-header-actions>.btn{min-height:34px;line-height:1;border-radius:50%!important;width:34px!important;height:34px!important;padding:.2rem!important;font-size:.72rem!important}.header-menu-wrap>.header-menu-trigger{min-height:34px;border-radius:50%!important;width:34px!important;height:34px!important;padding:0!important}.folder-grid{grid-template-columns:minmax(0,1fr);gap:1rem}}@media (width<=480px){.auth-view{width:min(100% - 1rem,400px);padding:max(.6rem, env(safe-area-inset-top,0px)) 0 max(.6rem, env(safe-area-inset-bottom,0px))}.auth-panel{padding:.85rem}.auth-title{margin:.35rem 0 .7rem;font-size:1rem}.auth-mode-tabs{margin-bottom:.6rem}.auth-mode-tabs button{min-height:32px;font-size:.74rem}.auth-form{gap:.55rem}.auth-note,.auth-message,.auth-terms-row,.auth-links button{font-size:.7rem}.auth-submit{min-height:38px}.terms-modal-backdrop{padding:max(.4rem, env(safe-area-inset-top,0px)) .4rem max(.4rem, env(safe-area-inset-bottom,0px));align-items:flex-start}.terms-modal{max-height:calc(100dvh - max(.8rem, env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));border-radius:8px}.terms-modal-header,.terms-modal-footer{padding:.55rem .65rem}.terms-modal-header h2{font-size:.86rem}.terms-modal-close{flex-basis:32px;width:32px;height:32px;font-size:1.15rem}.terms-modal-body{padding:.7rem;font-size:.7rem;line-height:1.48}.terms-modal-body h3{margin:.75rem 0 .25rem;font-size:.76rem}.terms-modal-links{font-size:.68rem}.settings-modal-backdrop,.help-modal-backdrop{padding:max(.4rem, env(safe-area-inset-top,0px)) .4rem max(.4rem, env(safe-area-inset-bottom,0px));align-items:flex-start}.settings-modal,.help-modal{max-height:calc(100dvh - max(.8rem, env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));border-radius:8px}.settings-modal-header,.settings-modal-footer,.help-modal-header,.help-modal-footer{padding:.5rem .65rem}.settings-modal-header h2,.help-modal-header h2{font-size:.86rem}.settings-modal-close,.help-modal-close{flex-basis:32px;width:32px;height:32px;font-size:1.15rem}.settings-modal-body{padding:0 .65rem}.settings-section{padding:.65rem 0}.settings-label,.settings-toggle-row strong{font-size:.74rem}.settings-toggle-row small,.settings-volume-row,.settings-time-row{font-size:.64rem}.settings-time-row .input-field{min-height:34px;font-size:.72rem}.help-tabs{padding:0 .25rem}.help-tabs button{min-height:36px;padding:.42rem .55rem;font-size:.68rem}.help-modal-body{padding:.7rem;font-size:.7rem;line-height:1.48}.help-modal-body h3{font-size:.82rem}.help-modal-body h4{margin:.75rem 0 .25rem!important;font-size:.74rem!important}.help-modal-body ul,.help-modal-body ol{margin-bottom:.65rem!important;padding-left:1.15rem!important}.profile-modal-backdrop,.trash-modal-backdrop{padding:max(.4rem, env(safe-area-inset-top,0px)) .4rem max(.4rem, env(safe-area-inset-bottom,0px));align-items:flex-start}.profile-modal,.trash-modal{max-height:calc(100dvh - max(.8rem, env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));border-radius:8px}.profile-modal-header,.profile-modal-footer,.trash-modal-header,.trash-modal-footer{padding:.5rem .65rem}.profile-modal-header h3,.trash-modal-header h3{font-size:.86rem}.profile-modal-close,.trash-modal-close{flex-basis:32px;width:32px;height:32px;font-size:1.15rem}.profile-modal-body,.trash-modal-body{padding:.65rem}.profile-name-field>span,.profile-account-section h4,.trash-note{font-size:.66rem}.profile-terms-link{min-height:36px;margin-top:.55rem;font-size:.7rem}.profile-account-section{margin-top:.55rem}.profile-account-actions,.profile-modal-footer,.trash-modal-footer,.trash-list{gap:.4rem}.trash-item{gap:.45rem;padding:.5rem}.trash-item-copy>div{font-size:.7rem}.trash-item-copy>div span,.trash-item-copy small{font-size:.58rem}.trash-item .btn{min-width:58px;min-height:32px;padding:.35rem .45rem;font-size:.66rem}.upgrade-modal-backdrop{padding:max(.4rem, env(safe-area-inset-top,0px)) .4rem max(.4rem, env(safe-area-inset-bottom,0px));align-items:flex-start}.upgrade-modal{max-height:calc(100dvh - max(.8rem, env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));border-radius:8px}.upgrade-modal-header,.upgrade-modal-footer{padding:.5rem .65rem}.upgrade-modal-header span{font-size:.62rem}.upgrade-modal-header h2{font-size:.86rem}.upgrade-modal-close{flex-basis:32px;width:32px;height:32px;font-size:1.15rem}.upgrade-modal-body{padding:.65rem}.upgrade-modal-reason{margin-bottom:.55rem;font-size:.7rem;line-height:1.4}.upgrade-store-notice{margin-bottom:.55rem;padding:.55rem .65rem}.upgrade-store-notice strong{font-size:.68rem}.upgrade-store-notice p{font-size:.64rem;line-height:1.4}.upgrade-plan-prices>div{padding:.5rem;font-size:.68rem}.upgrade-benefits{margin-top:.55rem}.upgrade-benefits>div{padding:.38rem .45rem}.upgrade-benefits dt{font-size:.58rem}.upgrade-benefits dd{font-size:.65rem}.upgrade-modal-footer{gap:.4rem}.upgrade-modal-footer .btn{min-height:34px;padding:.35rem .45rem;font-size:.68rem}.ai-tutor-backdrop{padding:max(.4rem, env(safe-area-inset-top,0px)) .4rem max(.4rem, env(safe-area-inset-bottom,0px));align-items:flex-start}.ai-tutor-modal{height:calc(100dvh - max(.8rem, env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));border-radius:8px}.ai-tutor-header{padding:.5rem .65rem}.ai-tutor-header h3{font-size:.86rem}.ai-tutor-close{flex-basis:32px;width:32px;height:32px;font-size:1.15rem}.ai-tutor-context{max-height:22dvh;padding:.5rem .65rem;overflow-y:auto}.ai-tutor-context span{font-size:.58rem}.ai-tutor-context strong,.ai-tutor-context p{font-size:.68rem;line-height:1.35}.ai-tutor-messages{gap:.5rem;padding:.55rem .65rem}.ai-tutor-empty,.ai-tutor-message{font-size:.68rem}.ai-tutor-empty small,.ai-tutor-loading,.ai-tutor-materials-toggle{font-size:.62rem}.ai-tutor-message{max-width:88%;padding:.5rem .6rem}.ai-tutor-report,.ai-tutor-materials-note,.ai-tutor-count{font-size:.56rem}.ai-tutor-composer{padding:.5rem .65rem}.ai-tutor-materials-toggle input{width:16px;height:16px}.ai-tutor-form{gap:.35rem}.ai-tutor-form .input-field,.ai-tutor-form .btn{min-height:34px;padding:.35rem .45rem;font-size:.68rem}.ai-tutor-form .btn{min-width:58px}.ai-generator-view{max-height:calc(100dvh - 7.5rem - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:8px}.ai-generator-header,.ai-generator-actions{padding:.5rem .65rem}.ai-generator-header h2{font-size:.86rem}.ai-generator-header p{font-size:.64rem}.ai-generator-body{padding:.65rem}.ai-generator-field{margin-bottom:.55rem}.ai-generator-field>span{margin-bottom:.25rem;font-size:.64rem}.ai-generator-field .input-field{min-height:36px;padding:.4rem .5rem;font-size:.7rem}.ai-generator-prompt textarea{min-height:min(30dvh,220px)}.ai-generator-count{font-size:.58rem}.ai-generator-error{margin-top:.5rem;padding:.5rem}.ai-generator-error p,.ai-generator-error .btn{font-size:.62rem}.ai-generator-actions{gap:.4rem}.ai-generator-actions .btn{min-height:34px;padding:.35rem .45rem;font-size:.68rem}.container{padding:.75rem}.app-header{gap:.45rem;padding:.6rem .75rem}.app-title{font-size:1rem;line-height:32px}.app-logo-img{height:28px!important;margin-right:5px!important}.app-header-actions{gap:.28rem!important}.app-header-actions>div{padding:.2rem .38rem!important;font-size:.66rem!important}.app-header-actions>.btn{min-height:30px;width:30px!important;height:30px!important;font-size:.66rem!important}.header-menu-wrap>.header-menu-trigger{min-height:30px;width:30px!important;height:30px!important;font-size:.72rem!important}.app-header-actions>.upgrade-action{min-width:34px;width:34px!important;padding:.2rem .25rem!important}.upgrade-label-full{display:none}.upgrade-label-short{display:inline}.home-section-header{gap:.5rem!important;margin-top:.55rem!important;margin-bottom:.65rem!important}.home-section-header h2{margin:0;font-size:1rem}.home-section-header span{padding:2px 6px!important;font-size:.66rem!important}.home-create-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-bottom:.75rem}.library-tools{gap:.45rem;margin-bottom:.55rem;padding:0}.library-trash-button{width:40px;height:40px}.library-search-wrap{min-height:40px}.library-trash-warning{padding:.38rem .5rem;font-size:.66rem}.home-favorites{gap:.35rem;padding-top:.5rem}.home-favorites-header h2{font-size:.7rem}.home-favorites-header span{font-size:.62rem}.home-favorites-track{margin-right:-.5rem;padding-right:.5rem}.home-favorite-item{grid-template-columns:minmax(0,1fr) 32px;width:min(190px,62vw);min-width:min(190px,62vw);height:32px}.home-favorite-open{padding:.28rem .45rem;font-size:.66rem}.home-favorite-remove{width:32px;font-size:.7rem}.header-menu{width:190px;top:calc(100% + .45rem)}.create-folder-card{text-align:center;min-height:42px;padding:.45rem .5rem;font-size:.74rem;line-height:1.15}.create-folder-card svg{width:18px;height:18px}.folder-grid{gap:.55rem;margin-bottom:1rem}.folder-list-grid,.deck-list-grid{grid-template-columns:minmax(0,1fr)}.home-folder-card,.home-deck-card{min-height:0}.library-list-item{min-height:70px;padding:.55rem .6rem}.home-folder-card{grid-template-columns:38px minmax(0,1fr) 30px 14px}.home-deck-card{grid-template-columns:38px minmax(0,1fr) auto}.library-item-leading{width:36px;height:36px}.home-card-title{line-height:1.2;font-size:.86rem!important}.deck-card .home-card-description{-webkit-line-clamp:1;margin:.25rem 0 .45rem!important;font-size:.7rem!important}.home-card-meta{gap:.25rem}.home-card-icon-button{width:30px;height:30px;font-size:.86rem!important}.home-folder-card .home-card-icon-button{width:26px;height:26px;font-size:.75rem!important}.home-folder-card .badge{min-height:18px;padding:.12rem .28rem;font-size:.6rem}.home-deck-actions-menu{width:150px}.deck-card{border-left-width:3px!important}.deck-card>div:first-child{align-items:flex-start;gap:.45rem}.deck-card>div:first-child>div{gap:.25rem!important}.deck-card>div:first-child button{line-height:1;font-size:.82rem!important}.deck-card .badge{margin-right:0}.bottom-nav{height:calc(54px + env(safe-area-inset-bottom,0px))}.bottom-nav-item{gap:2px;height:54px;font-size:.66rem;line-height:1.1}.bottom-nav-icon{width:19px;height:19px}}@media (width<=360px){.app-container{padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}.bottom-nav{height:calc(50px + env(safe-area-inset-bottom,0px))}.bottom-nav-item{height:50px;font-size:.62rem}.bottom-nav-icon{width:18px;height:18px}.app-header{padding:.5rem .55rem}.app-title{font-size:.92rem}.app-logo-img{height:24px!important}.app-header-actions>div:not(.ai-usage-pill):not(.header-menu-wrap){display:none!important}.app-header-actions>.ai-usage-pill{white-space:nowrap;border-radius:999px!important;gap:.2rem!important;padding:.14rem .28rem!important;font-size:.58rem!important;line-height:1!important;display:flex!important}.app-header-actions>.btn{min-height:28px;width:28px!important;height:28px!important;font-size:.62rem!important}.app-header-actions>.upgrade-action{min-width:30px;width:30px!important}}@media (width<=480px){div[style*="z-index: 10000"]{padding:max(.45rem, env(safe-area-inset-top,0px)) .5rem max(.5rem, env(safe-area-inset-bottom,0px))!important;align-items:flex-start!important;overflow-y:auto!important}div[style*="z-index: 10000"]>.glass-panel{border-radius:10px!important;gap:.48rem!important;width:min(420px,100%)!important;max-height:calc(100svh - 1rem)!important;padding:.72rem!important;overflow-y:auto!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"]{padding:max(.45rem, env(safe-area-inset-top,0px)) .5rem max(.5rem, env(safe-area-inset-bottom,0px))!important;justify-content:center!important;align-items:flex-start!important;overflow-y:auto!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"]>.glass-panel{border-radius:10px!important;gap:.48rem!important;width:min(420px,100%)!important;max-height:calc(100svh - 1rem)!important;padding:.72rem!important;overflow-y:auto!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] h2{margin:0!important;font-size:1.05rem!important;line-height:1.2!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] p{font-size:.76rem!important;line-height:1.38!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="fontSize: '0.9rem'"],div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="font-size: 0.9rem"]{font-size:.72rem!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="border: '1px solid var(--border-color)'"],div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="border: 1px solid var(--border-color)"]{gap:.35rem!important;padding:.55rem!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="display: grid"][style*="gap: 0.45rem"]{gap:.22rem!important;font-size:.7rem!important;line-height:1.22!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] div[style*="justify-content: flex-end"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.45rem!important;margin-top:.15rem!important;display:grid!important}div[style*="z-index: 10000"][style*="rgba(0,0,0,0.72)"] .btn{min-height:34px!important;padding:.42rem .5rem!important;font-size:.72rem!important;line-height:1.12!important}.battle-arena{max-width:none!important;padding:.45rem .55rem .7rem!important}.battle-beta-note{margin-bottom:.45rem;padding:.38rem .5rem;font-size:.68rem;line-height:1.22}.battle-launch-section{padding:.8rem}.battle-launch-description{margin-bottom:.65rem;font-size:.72rem}.battle-selected-deck{margin-top:.65rem;padding:.5rem .6rem;font-size:.74rem}.battle-mode-switcher{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;padding:.4rem}.battle-mode-switcher .btn{min-height:36px;padding:.42rem .3rem;font-size:.7rem}.battle-mode-switcher .btn:last-child:nth-child(odd){grid-column:1/-1}.battle-mode-description{min-height:0;margin:.55rem 0;font-size:.68rem}.battle-mode-settings{gap:.5rem;margin-bottom:.7rem}.battle-mode-settings label{gap:.3rem;font-size:.68rem}.battle-mode-settings input{width:58px}.battle-mode-settings select{width:84px}.battle-online-start{min-height:38px;padding:.55rem;font-size:.76rem}.battle-exit-row{margin-bottom:.35rem!important}.battle-exit-row .btn{min-height:30px!important;padding:.28rem .5rem!important;font-size:.68rem!important}.battle-round-header{gap:.35rem!important;margin-bottom:.42rem!important;font-size:.7rem!important}.battle-score-list{max-width:100%;padding-bottom:.1rem;overflow-x:auto;gap:.35rem!important}.battle-score-list>div{white-space:nowrap;border-radius:8px!important;padding:.22rem .42rem!important;font-size:.66rem!important}.battle-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.35rem!important;margin-bottom:.4rem!important}.battle-player-grid>div{border-radius:8px!important;padding:.42rem!important}.battle-player-grid>div>div:first-child{line-height:1.12;margin-bottom:.25rem!important;font-size:.68rem!important}.battle-player-grid>div>div:nth-child(2){height:5px!important;margin-bottom:.22rem!important}.battle-player-grid>div>div:nth-child(3){margin-bottom:.22rem!important;font-size:.62rem!important}.battle-skill-panel{gap:.38rem!important;margin-bottom:.45rem!important;padding:.45rem!important}.battle-skill-buttons{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:.35rem!important;display:grid!important}.battle-skill-buttons .btn{min-height:32px!important;padding:.3rem .25rem!important;font-size:.6rem!important;line-height:1.08!important}.battle-skill-panel>div:nth-child(2){text-align:center;line-height:1.16;font-size:.68rem!important}.battle-skill-panel>.btn{min-height:34px!important;margin-top:.05rem!important;padding:.38rem .55rem!important;font-size:.72rem!important}.battle-main-panel{max-height:calc(100svh - 188px);min-height:0!important;padding:.6rem!important}.battle-mode-label,.battle-main-panel>div[style*="top: 1rem"][style*="right: 1rem"]{opacity:.72;text-align:right;pointer-events:none;max-width:42%;font-size:.56rem!important;line-height:1!important;top:.36rem!important;right:.42rem!important}.battle-question-text{min-height:60px;padding-top:.65rem;overflow-y:auto;margin-bottom:.42rem!important;font-size:.92rem!important;line-height:1.24!important}.battle-answer-grid{gap:.42rem!important}.battle-answer-grid .btn{text-transform:none;letter-spacing:0;min-height:42px!important;padding:.45rem .4rem!important;font-size:.78rem!important;line-height:1.18!important}.battle-main-panel>div[style*="text-align: center"]{margin-top:0!important;margin-bottom:0!important}.battle-main-panel>div[style*="text-align: center"]>div{margin-bottom:.48rem!important;font-size:.84rem!important;line-height:1.22!important}.battle-main-panel>div[style*="text-align: center"] div[style*="font-size: 2rem"]{margin-bottom:.6rem!important;font-size:1.05rem!important;line-height:1.16!important}.battle-main-panel>div[style*="text-align: center"] div[style*="font-size: 1.5rem"]{margin-bottom:.42rem!important;font-size:.88rem!important;line-height:1.18!important}.battle-main-panel>div[style*="text-align: center"] div[style*="font-size: 1.2rem"]{margin-bottom:.62rem!important;font-size:.78rem!important;line-height:1.22!important}.battle-main-panel>div[style*="text-align: center"] .btn{min-height:34px!important;padding:.38rem .65rem!important;font-size:.72rem!important}.study-mode{padding:0 .1rem;max-width:none!important}.study-back-button{min-height:32px;margin-bottom:.45rem!important;padding:.32rem .62rem!important;font-size:.72rem!important}.study-toolbar{flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.68rem;margin-bottom:.45rem!important}.study-toolbar .btn{min-height:30px;line-height:1.1;padding:.25rem .45rem!important;font-size:.64rem!important}.study-undo-button{margin-left:auto}.study-card{max-height:calc(100svh - 170px);border-radius:10px!important;min-height:calc(100svh - 230px)!important;padding:3.2rem .75rem .75rem!important}.study-mode.has-answer .study-card{min-height:max(320px,100svh - 400px)!important}.study-mode.is-passive .study-card{min-height:calc(100svh - 286px)!important}.study-passive-controls{gap:.4rem!important;margin-bottom:.45rem!important;padding:.42rem .5rem!important;font-size:.68rem!important}.study-passive-controls .input-field{min-height:30px;font-size:.68rem}.study-typing-area{gap:.5rem!important}.study-typing-input{min-height:42px;padding:.55rem .65rem!important;font-size:.9rem!important}.study-typing-result{font-size:.82rem;line-height:1.25}.study-card img{max-height:132px!important}.study-mode.is-scored .study-card{min-height:calc(100svh - 225px)!important;padding-top:.8rem!important}.study-mode.is-scored .study-card:not(:has(.study-quiz-result)) img{max-height:96px!important}.study-mode.is-scored .study-card:not(:has(.study-quiz-result)) .study-question-text{min-height:48px;margin-bottom:.15rem;flex:none!important}.study-mode.is-scored .study-card:not(:has(.study-quiz-result)) .study-quiz-area{gap:.3rem!important}.study-mode.is-scored .study-card:not(:has(.study-quiz-result)) .study-quiz-area>.btn{min-height:34px;padding:.34rem .5rem!important}.study-mode.is-scored .study-card:has(.study-quiz-result) img{max-height:56px!important}.study-mode.is-scored .study-card:has(.study-quiz-result)>div:has(img){margin-bottom:.1rem!important}.study-mode.is-scored .study-card:has(.study-quiz-result) .study-question-text{min-height:32px;margin-bottom:0;flex:none!important}.study-mode.is-scored .study-card:has(.study-quiz-result) hr{margin:.3rem 0!important}.study-mode.is-scored .study-card:has(.study-quiz-result) .study-quiz-area{gap:.24rem!important}.study-mode.is-scored .study-card:has(.study-quiz-result) .study-quiz-area>.btn{min-height:32px;padding:.28rem .5rem!important;font-size:.74rem!important}.study-mode.is-scored .study-card:has(.study-quiz-result) .study-quiz-result{margin-top:.2rem!important;font-size:.8rem!important}.study-mode.is-scored .study-card:has(.study-quiz-result) .study-quiz-next .btn{min-height:36px;padding:.38rem .6rem!important;font-size:.78rem!important}.study-card>div:has(img){margin-bottom:.55rem!important}.study-question-text,.study-answer-text{min-height:72px;line-height:1.38;padding:0 30px!important;font-size:.96rem!important}.study-speech-feedback{z-index:2;-webkit-line-clamp:2;pointer-events:none;-webkit-box-orient:vertical;max-height:3.15rem;line-height:1.18;display:-webkit-box;position:absolute;top:.55rem;left:.55rem;right:.55rem;overflow:hidden;border-radius:8px!important;margin-top:0!important;padding:.42rem .55rem!important;font-size:.72rem!important;box-shadow:0 8px 18px #00000047!important}.study-speech-feedback>div{margin-top:.12rem!important;font-size:.64rem!important}.study-question-text button,.study-answer-text button{font-size:1rem!important;right:4px!important}.study-card hr{margin:.7rem 0!important}.study-quiz-area{gap:.42rem!important}.study-quiz-area>.btn{min-height:38px;line-height:1.22;padding:.42rem .55rem!important;font-size:.78rem!important}.study-quiz-result{line-height:1.2;margin-top:.35rem!important;font-size:.9rem!important}.study-quiz-result>div{margin-top:.18rem!important;font-size:.78rem!important}.study-quiz-next .btn{min-height:40px;padding:.5rem .65rem!important;font-size:.84rem!important}.study-answer-area,.study-action-area{gap:.55rem!important}.study-action-area .btn{min-height:40px;padding:.5rem .65rem!important;font-size:.84rem!important}.study-rating-grid{gap:.3rem!important}.study-swipe-hints{margin-top:.35rem;padding:0 .1rem}.study-swipe-hint{min-width:4.5rem;font-size:.64rem}.study-rating-grid .btn{min-height:34px;line-height:1.12;padding:.34rem .18rem!important;font-size:.64rem!important}.td-menu{padding:.35rem}.td-menu-hero{align-items:flex-start!important;gap:.4rem!important;margin-bottom:.45rem!important}.td-menu-hero h2{font-size:.98rem;margin-bottom:.2rem!important}.td-menu-hero p{font-size:.72rem;line-height:1.35}.td-menu .glass-panel{padding:.42rem!important}.td-chapter-tabs{gap:.35rem!important}.td-chapter-tabs .btn{min-height:34px;font-size:.74rem;padding:.38rem .52rem!important}.td-menu-layout{grid-template-columns:minmax(0,1fr)!important;gap:.45rem!important}.td-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.32rem!important}.td-stage-card{gap:.12rem;font-size:.56rem;line-height:1.15;min-height:54px!important;padding:.28rem!important}.td-stage-card span:first-child{font-size:.82rem!important}.td-stage-card span:nth-child(2){-webkit-line-clamp:2;word-break:keep-all;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-height:1.3rem;display:-webkit-box;overflow:hidden}.td-stage-card span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.52rem!important}.td-unit-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.28rem!important}.td-unit-preview{min-height:48px!important;padding:.22rem!important}.td-unit-preview img{width:22px!important;height:22px!important;margin-bottom:.12rem!important}.td-unit-preview div{word-break:keep-all;overflow-wrap:anywhere;font-size:.5rem!important;line-height:1.08!important}.td-selected-stage{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.25rem .45rem;display:grid}.td-selected-stage>div:first-child{margin-bottom:0!important;font-size:1.1rem!important}.td-selected-stage h3{word-break:keep-all;overflow-wrap:anywhere;margin:0!important;font-size:.78rem!important}.td-selected-stage>div:last-child{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));line-height:1.18;gap:.12rem .4rem!important;font-size:.58rem!important}.td-start-button{line-height:1.15;min-height:34px!important;padding:.38rem .5rem!important;font-size:.72rem!important}.td-deck-picker-wrap h3{margin-bottom:.35rem!important;font-size:.76rem!important}.td-deck-picker-wrap input{min-height:34px;padding:.4rem .55rem;font-size:.76rem}.td-deck-picker-wrap section h3,.td-deck-picker-wrap h4{margin-bottom:.3rem!important;font-size:.7rem!important}.td-deck-picker-wrap .btn{min-height:32px;font-size:.68rem;line-height:1.12;padding:.34rem .46rem!important}.td-tip{font-size:.64rem;line-height:1.25;margin-top:.45rem!important;padding:.45rem!important}.td-battle{gap:.28rem!important;padding:.25rem!important}.td-battle-header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center!important;gap:.35rem!important;display:grid!important}.td-battle-header h2{white-space:nowrap;text-overflow:ellipsis;font-size:.74rem;overflow:hidden;margin-bottom:.08rem!important}.td-battle-header .btn{min-height:28px;font-size:.64rem;padding:.28rem .42rem!important}.td-battle-header>div:nth-child(2)>div{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.58rem!important}.td-battle-header>div:last-child{font-size:.58rem;text-align:right!important}.td-battle-header>div:last-child>div:first-child{line-height:1;font-size:.82rem!important}.td-battle-header>div:last-child>div:last-child{white-space:nowrap;font-size:.55rem!important}.td-base-gauges{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.25rem!important}.td-base-gauges .glass-panel{padding:.25rem .35rem!important}.td-base-gauges .glass-panel>div:first-child{gap:.25rem;line-height:1.05;margin-bottom:.18rem!important;font-size:.52rem!important}.td-base-gauges .glass-panel>div:last-child{height:4px!important}.td-battlefield{min-height:170px!important}.td-battlefield>div:nth-child(2),.td-battlefield>div:nth-child(3){font-size:1.45rem!important;top:64px!important}.td-battlefield>div:nth-child(4){height:5px!important;bottom:43px!important;left:42px!important;right:42px!important}.td-field-unit{bottom:49px!important}.td-character-visual{width:42px!important;height:42px!important}.td-field-unit .td-character-visual{max-width:52px!important;max-height:52px!important}.td-field-unit.td-unit-scale-150 .td-character-visual{width:63px!important;max-width:63px!important;height:63px!important;max-height:63px!important}.td-field-unit>div:last-child{width:28px!important;height:3px!important}.td-control-panel{grid-template-columns:minmax(0,1fr)!important;gap:.45rem!important;padding:.45rem!important}.td-control-panel h3{margin-bottom:.18rem;font-size:.62rem;line-height:1.05}.td-summon-grid{overflow:visible;grid-template-columns:repeat(var(--td-unit-count,7), minmax(0, 1fr))!important;gap:.12rem!important;display:grid!important}.td-summon-card{min-width:0;min-height:62px;overflow:hidden;letter-spacing:0!important;gap:.08rem!important;padding:.18rem .05rem!important}.td-summon-card .td-character-visual{width:22px!important;height:22px!important}.td-summon-card span{word-break:normal;overflow-wrap:anywhere;width:100%;line-height:1.05;font-size:.46rem!important}.td-summon-card span:last-child{font-size:.52rem!important}.td-question-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.18;display:-webkit-box;overflow:hidden;min-height:38px!important;margin-bottom:.3rem!important;font-size:.72rem!important}.td-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.22rem!important}.td-choice-grid .btn{font-size:.64rem;line-height:1.1;min-height:34px!important;padding:.3rem .36rem!important}.store-view{gap:.55rem;display:grid}.store-screen{gap:.55rem}.store-back-button{min-height:32px;padding:.35rem .55rem;font-size:.72rem}.store-header{grid-template-columns:auto minmax(0,1fr);gap:.45rem .75rem;padding:.55rem .65rem}.store-header h2{font-size:1rem}.store-eyebrow{font-size:.55rem}.store-intro{font-size:.68rem;line-height:1.3}.store-admin-area{padding-top:.5rem}.store-admin-form{grid-template-columns:minmax(0,1fr)}.store-admin-actions .btn{min-height:32px;padding:.35rem .5rem;font-size:.7rem}.store-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem;padding:0;font-size:.68rem;display:grid}.store-search{display:block}.store-search-label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.store-search .input-field{min-height:34px;padding:.38rem .55rem;font-size:.72rem}.store-grid{grid-template-columns:minmax(0,1fr)!important;gap:.45rem!important}.store-card{gap:.5rem;padding:.6rem}.store-card h3{margin-bottom:.2rem;font-size:.84rem}.store-card-copy>p{min-height:0;margin-bottom:.45rem;font-size:.68rem}.store-card-stats span{padding:.32rem .18rem;font-size:.6rem}.store-card-stats strong{font-size:.68rem}.store-card-actions>.btn,.store-card-admin-actions .btn{min-height:32px;padding:.35rem .5rem;font-size:.68rem}.store-card-actions{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:stretch}.store-card-actions>.btn:only-child{grid-column:1/-1}.store-card-admin-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem;display:grid}.store-state{min-height:80px;padding:.75rem;font-size:.72rem}.store-state-error{text-align:left;flex-direction:column;align-items:stretch}.toast-region{right:10px;bottom:calc(64px + env(safe-area-inset-bottom));gap:6px;width:calc(100vw - 20px)}.toast-message{padding:.58rem .65rem;font-size:.7rem}.confirm-overlay{padding:.65rem max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));align-items:flex-end}.confirm-panel{max-height:min(72dvh,480px);padding:.8rem}.confirm-panel h3{font-size:.9rem}.confirm-panel>p{margin-bottom:.7rem;font-size:.72rem;line-height:1.4}.confirm-actions .btn,.error-state-actions .btn{min-height:34px;padding:.4rem .55rem;font-size:.7rem}.error-state{gap:.65rem;margin:.6rem auto;padding:.75rem}.error-state h2{font-size:.92rem}.error-state p{font-size:.72rem}.folder-detail-view>.btn:first-child{min-height:32px;margin-bottom:.55rem!important;padding:.35rem .55rem!important;font-size:.74rem!important}.folder-detail-hero{margin-bottom:.7rem!important;padding:.7rem!important}.folder-detail-title{flex-wrap:wrap;align-items:center;gap:.35rem;line-height:1.2;display:flex;margin-bottom:.25rem!important;font-size:1rem!important}.folder-copy-badge{width:100%;line-height:1.2;display:block;margin-left:0!important;font-size:.68rem!important}.folder-detail-hero p{margin:0;font-size:.74rem;line-height:1.3}.folder-detail-hero .folder-image-usage{margin-top:.25rem;font-size:.68rem}.folder-detail-hero>div[style*="position: absolute"]{margin-top:.55rem;grid-template-columns:minmax(0,1fr)!important;gap:.4rem!important;display:grid!important;position:static!important}.folder-detail-mobile-tabs{border:1px solid var(--border-color);background:#ffffff08;border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem;margin-bottom:.55rem;padding:.25rem;display:grid}.folder-detail-mobile-tabs button{min-width:0;min-height:34px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.35rem .45rem;font-size:.74rem}.folder-detail-mobile-tabs button.active{color:var(--primary);background:#00e5ff24;font-weight:700}.folder-detail-mobile-tabs span{background:#ffffff14;border-radius:50%;justify-content:center;align-items:center;min-width:18px;min-height:18px;margin-left:.2rem;font-size:.62rem;display:inline-flex}.folder-detail-hero>div[style*="position: absolute"] .btn{min-height:32px;padding:.35rem .55rem!important;font-size:.72rem!important}.folder-detail-layout{grid-template-columns:minmax(0,1fr)!important;gap:.75rem!important}.folder-detail-layout[data-mobile-section=decks] .folder-materials-section,.folder-detail-layout[data-mobile-section=materials] .folder-decks-section{display:none}.folder-section-header{flex-direction:column;gap:.45rem;align-items:stretch!important;margin-bottom:.55rem!important}.folder-section-header h3{display:none}.folder-section-actions{flex-direction:column;gap:.35rem!important}.folder-section-actions .btn,.folder-section-header>.btn{width:100%;min-height:32px;line-height:1.15;padding:.38rem .5rem!important;font-size:.72rem!important}.folder-detail-layout .deck-card{padding:.6rem!important}.folder-detail-layout .deck-card h4{overflow-wrap:anywhere;line-height:1.25;font-size:.86rem!important}.folder-detail-layout .folder-deck-card .home-deck-primary-actions{gap:.05rem!important}.folder-detail-layout .folder-deck-card .home-deck-actions-menu{top:auto;bottom:calc(100% + .25rem)}.folder-detail-layout .folder-deck-card .home-card-icon-button{width:28px;height:28px;font-size:.8rem!important}.folder-material-card{gap:.5rem;padding:.65rem!important}.folder-material-card h4{font-size:.82rem;line-height:1.3;margin-bottom:0!important}.folder-material-card>div:last-child{gap:.35rem!important}.folder-material-card .btn{min-height:30px;padding:.28rem .45rem!important;font-size:.68rem!important}.folder-random-modal{max-height:calc(100dvh - 1rem);overflow-y:auto;width:calc(100% - 1rem)!important;padding:.8rem!important}.folder-random-modal h3{font-size:.95rem;line-height:1.25;margin-bottom:.7rem!important}.folder-random-modal>div{margin-bottom:.7rem!important}.folder-random-modal .input-field{min-height:38px;padding:.45rem .55rem;font-size:.82rem}.folder-random-deck-list{max-height:min(38dvh,240px)!important}.folder-random-deck-list label{font-size:.76rem;line-height:1.25;margin-bottom:.35rem!important;padding:.4rem!important}.folder-random-modal>div:last-child{gap:.45rem!important}.folder-random-modal>div:last-child .btn{flex:1;min-height:36px;padding:.4rem .5rem;font-size:.74rem}.folder-detail-layout section>div[style*="gap: 1rem"]{gap:.5rem!important}.deck-editor-view{padding-bottom:7rem!important}.deck-editor-save-bar{right:.75rem;bottom:calc(54px + env(safe-area-inset-bottom,0px) + .4rem);z-index:90;border:1px solid var(--border-color);background:#090e14f5;border-radius:8px;padding:.35rem;position:fixed;left:.75rem;box-shadow:0 8px 18px #00000047;flex-wrap:nowrap!important;gap:.45rem!important;margin:0!important}.deck-editor-save-bar .btn{white-space:nowrap;flex:1;min-height:34px;padding:.35rem .55rem!important;font-size:.74rem!important}.deck-editor-desktop-label{display:none}.deck-editor-mobile-label{display:inline}.deck-editor-basic-panel{margin-bottom:.7rem!important;padding:.7rem!important}.deck-editor-basic-panel>h3{font-size:.92rem;margin-bottom:.55rem!important}.deck-editor-basic-panel>label{font-size:.7rem;margin-bottom:.25rem!important}.deck-editor-basic-panel>.input-field{min-height:36px;padding:.42rem .55rem;margin-bottom:.55rem!important;font-size:.76rem!important}.deck-editor-basic-panel>textarea.input-field{min-height:58px;margin-bottom:0!important}.deck-editor-tabs{z-index:40;background:#090e14f5;margin-bottom:.65rem;position:sticky;top:.35rem;box-shadow:0 5px 16px #0003}.deck-editor-tabs button{min-height:36px;padding:.35rem .25rem;font-size:.72rem}.deck-editor-study-panel{margin-bottom:.7rem;padding:.7rem}.deck-editor-study-panel>h3{margin-bottom:.5rem;font-size:.92rem}.deck-editor-study-block{padding:.65rem 0}.deck-editor-review-presets .btn{min-height:30px;padding:.28rem .45rem!important;font-size:.68rem!important}.deck-editor-direction-options .btn{min-height:32px;padding:.32rem .25rem!important;font-size:.68rem!important}.deck-editor-setting-title,.setting-help-label,.deck-editor-setting-field,.deck-editor-tts-setting{font-size:.7rem}.setting-help-button{width:30px;height:30px}.deck-editor-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.45rem!important}.deck-editor-review-grid .input-field{min-height:34px;padding:.35rem .45rem;font-size:.74rem}.deck-editor-study-plan .deck-editor-setting-field .input-field{max-width:180px}.study-plan-summary{gap:.4rem;font-size:.7rem}.deck-editor-tts-setting,.deck-editor-advanced-settings{padding:.65rem 0}.deck-editor-advanced-settings summary{font-size:.72rem}.deck-editor-advanced-settings summary span{font-size:.64rem}.deck-editor-list-header{align-items:center!important;gap:.4rem!important;margin:.65rem 0 .45rem!important}.deck-editor-list-header h3{font-size:.82rem}.deck-editor-list-header .btn{min-height:30px;padding:.3rem .45rem!important;font-size:.66rem!important}.deck-editor-toolbar{gap:.45rem!important;margin-bottom:.55rem!important;padding:.55rem!important}.deck-editor-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem!important;display:grid!important}.deck-editor-filter-row .input-field{grid-column:1/-1;width:100%;min-height:34px;padding:.35rem .45rem!important;font-size:.7rem!important}.deck-editor-filter-row .btn{width:100%;min-height:30px;padding:.28rem .35rem!important;font-size:.64rem!important}.deck-editor-tool-row{grid-template-columns:minmax(0,1fr) auto auto;gap:.3rem!important;display:grid!important}.deck-editor-tool-row .input-field{min-width:0;min-height:32px;width:100%!important;padding:.3rem .4rem!important;font-size:.68rem!important}.deck-editor-tool-row .btn{min-height:32px;padding:.3rem .4rem!important;font-size:.64rem!important}.deck-editor-tool-row .btn:nth-of-type(3),.deck-editor-tool-row>span{display:none}.deck-editor-pagination{grid-template-columns:auto minmax(0,1fr);gap:.4rem!important;margin-bottom:.55rem!important;padding:.5rem!important;display:grid!important}.deck-editor-pagination>div:first-child{white-space:nowrap;font-size:.66rem!important}.deck-editor-pagination>div:last-child{grid-template-columns:auto minmax(42px,1fr) auto;gap:.25rem!important;display:grid!important}.deck-editor-pagination>div:last-child .btn{min-height:30px;padding:.28rem .4rem!important;font-size:.66rem!important}.deck-editor-pagination>div:last-child .btn:first-child,.deck-editor-pagination>div:last-child .btn:last-child{display:none}.deck-editor-pagination>div:last-child span{align-self:center;min-width:0!important;font-size:.68rem!important}.deck-editor-card-menus{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem!important;margin-bottom:.55rem!important;display:grid!important}.deck-editor-card-menus .btn{min-width:0;min-height:34px;line-height:1.15;padding:.3rem .35rem!important;font-size:.68rem!important}.deck-editor-action-sheet{grid-template-columns:1fr;margin-bottom:.65rem}.deck-editor-action-sheet button{justify-content:flex-start;min-height:38px;padding:.45rem .65rem;font-size:.72rem}.deck-editor-card-list{gap:.5rem!important}.deck-card-editor-row{padding:.6rem!important}.deck-card-editor-header{align-items:flex-start!important;gap:.35rem!important;margin-bottom:.4rem!important}.deck-card-editor-actions{gap:.35rem!important}.deck-card-editor-actions button,.deck-card-editor-actions label,.deck-card-editor-actions span{font-size:.65rem!important}.deck-card-editor-fields .input-field{min-height:48px;padding:.4rem .5rem;font-size:.74rem;line-height:1.3}.deck-card-editor-fields textarea[rows="1"]{min-height:36px}.deck-card-editor-fields label{font-size:.7rem!important}.deck-editor-modal-backdrop{overflow-y:auto;align-items:flex-start!important;padding:.5rem!important}.deck-editor-modal{max-height:calc(100dvh - 1rem);margin:auto 0;overflow-y:auto;width:100%!important;padding:.75rem!important}.deck-editor-modal h3{font-size:.9rem;margin-bottom:.5rem!important}.deck-editor-modal p,.deck-editor-modal label,.deck-editor-modal>div{font-size:.7rem!important}.deck-editor-modal textarea{min-height:110px;font-size:.72rem;padding:.45rem!important}.deck-editor-modal-actions{background:#0f141bfa;padding-top:.4rem;position:sticky;bottom:0;gap:.4rem!important}.deck-editor-modal-actions .btn{flex:1;min-height:34px;padding:.35rem .45rem;font-size:.7rem}.deck-editor-bulk-modal{height:calc(100dvh - 1rem)!important}.dashboard-view{padding-bottom:1rem!important}.dashboard-header{margin-bottom:.55rem}.dashboard-header .btn{min-height:32px;padding:.35rem .55rem!important;font-size:.72rem!important}.dashboard-header h2{font-size:.95rem}.dashboard-tabs{gap:.2rem;margin-bottom:.55rem;padding:.2rem}.dashboard-tabs button{min-height:32px;padding:.3rem .2rem;font-size:.66rem}.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem!important;margin-bottom:.55rem!important;display:grid!important}.dashboard-summary-card{min-width:0;padding:.6rem!important}.dashboard-summary-card>div:first-child{margin-bottom:.15rem!important;font-size:1.15rem!important}.dashboard-summary-value{line-height:1.2;font-size:1rem!important}.dashboard-summary-card>div:last-child{font-size:.65rem}.dashboard-panel{margin-bottom:.55rem!important;padding:.65rem!important}.dashboard-panel>h3,.dashboard-panel-header h3{font-size:.82rem;margin-bottom:.55rem!important}.dashboard-panel-header{gap:.4rem!important;margin-bottom:.55rem!important}.dashboard-month-controls{flex-wrap:nowrap!important;gap:.3rem!important}.dashboard-month-controls .btn{min-height:30px;padding:.28rem .4rem!important;font-size:.64rem!important}.dashboard-month-controls>div{font-size:.7rem;min-width:74px!important}.dashboard-month-summary{gap:.3rem!important;margin-bottom:.55rem!important}.dashboard-month-summary>div{padding:.4rem!important}.dashboard-month-summary>div>div:first-child{font-size:.58rem!important}.dashboard-month-summary>div>div:last-child{font-size:.7rem}.dashboard-week-labels,.dashboard-calendar-grid{gap:.18rem!important}.dashboard-week-labels div{font-size:.58rem!important}.dashboard-calendar-day{border-radius:5px!important;min-height:42px!important;padding:.2rem!important}.dashboard-calendar-day span,.dashboard-calendar-day>div:last-child{font-size:.56rem!important;line-height:1.15!important}.dashboard-calendar-day>div:first-child span:last-child,.dashboard-calendar-correct{display:none}.dashboard-heatmap-panel h3{margin-bottom:.45rem!important}.dashboard-heatmap-panel>div{gap:3px!important}.dashboard-heatmap-panel>div>div{border-radius:3px!important;width:16px!important;height:16px!important}.dashboard-deck-list{gap:.45rem!important;max-height:none!important;padding-right:0!important}.dashboard-deck-item{grid-template-columns:minmax(0,1fr)!important;gap:.35rem!important;padding:.55rem!important}.dashboard-deck-item>div:first-child>div:first-child{font-size:.76rem}.dashboard-deck-item>div:first-child>div:last-child,.dashboard-deck-item>div:last-child{text-align:left!important;justify-items:start!important;font-size:.65rem!important}.dashboard-weak-list{gap:.4rem!important}.dashboard-weak-item{border-bottom:1px solid var(--border-color);padding-bottom:.4rem;grid-template-columns:auto minmax(0,1fr)!important;gap:.35rem!important;font-size:.7rem!important}.dashboard-weak-item>span:last-child{grid-column:2;font-size:.6rem;text-align:left!important}.dashboard-achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem!important;display:grid!important}.dashboard-achievement-item{gap:.45rem!important;width:auto!important;min-width:0!important;padding:.5rem!important}.dashboard-achievement-item>div:first-child{font-size:1.15rem!important}.dashboard-achievement-item>div:last-child>div:first-child{font-size:.7rem}.dashboard-achievement-item>div:last-child>div:last-child{line-height:1.25;font-size:.58rem!important}}
