:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{height:100vh;width:100vw;margin:0;padding:0;background:#f5f7fa;display:flex;justify-content:center;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#111;box-sizing:border-box;overflow:auto;--icon-size: 22px;transition:background .35s ease,color .35s ease}.container{width:900px;max-width:95%;display:flex;flex-direction:column;min-height:100vh;padding:40px 20px;box-sizing:border-box}.top-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.category{background:#ffdf39;border-radius:10px;padding:12px 20px;height:70%;font-weight:600;color:#111;white-space:nowrap}.top-buttons{display:flex;gap:10px;position:relative}.dropdown-wrapper{position:relative;display:inline-flex}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:6px;background:#fff;border-radius:10px;border:none;box-shadow:0 2px 6px #00000026;cursor:pointer;overflow:hidden;transition:transform .1s ease}.icon-btn:active{transform:scale(.92)}.app.dark .icon-btn{background:#0b1220;border:1px solid #334155}.app.dark .icon-img{filter:invert(1)}.icon-img{width:var(--icon-size);height:var(--icon-size);object-fit:contain;display:block}.card{background:#fff;border-radius:20px;padding:40px;box-shadow:0 4px 20px #0000001a;margin-top:auto;margin-bottom:auto;width:100%;max-width:100%;transition:background .35s ease,color .35s ease,box-shadow .35s ease,transform .3s ease,opacity .3s ease;will-change:transform,opacity;transform-style:preserve-3d}.flip-none{transform:rotateY(0)}.flip-start{transform:rotateY(90deg);transition:transform .3s ease}.flip-end{transform:rotateY(0);transition:transform .3s ease}.card-header{display:flex;align-items:center;justify-content:space-between}.word{font-size:48px;font-weight:700}.transcr{color:#666;font-size:20px;margin-top:5px}.pos{color:#777;margin-top:5px;font-size:18px}.new-word-dot{width:10px;height:10px;border-radius:50%;background:#1a73e8}.new-word-label{margin-top:10px;font-size:14px;color:#1a73e8}.show-area{margin-top:30px;text-align:center}.show-btn{background:#fff;border-radius:12px;padding:10px 30px;cursor:pointer;border:2px solid #eeeeee;font-size:18px;display:inline-flex;align-items:center;gap:10px;transition:box-shadow .15s ease,transform .1s ease;color:#111}.show-btn:hover{box-shadow:0 3px 10px #0000001f}.show-btn:active{transform:scale(.94)}.answer{display:inline-block;padding:12px 24px;border-radius:12px;background:#f2f4ff;font-size:20px;color:#333;transition:background .35s ease,color .35s ease}.pagination{margin-top:20px;color:#444;font-size:18px;text-align:center}.bottom-buttons{margin-top:40px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.yes-btn,.no-btn{flex:1 1 45%;padding:20px;border-radius:15px;border:none;font-size:20px;cursor:pointer;font-weight:600;transition:transform .1s ease,box-shadow .15s ease}.yes-btn{background:#ffd600;color:#111}.no-btn{background:#000;color:#fff}.yes-btn:hover,.no-btn:hover{transform:translateY(-2px)}.yes-btn:active,.no-btn:active{transform:scale(.95)}.dropdown-settings{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border-radius:12px;padding:12px 16px;box-shadow:0 4px 14px #0003;z-index:1000;width:200px;transition:background .35s ease,color .35s ease}.dropdown-item{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:16px;color:#111}.dropdown-stats{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border-radius:12px;padding:16px 18px;box-shadow:0 8px 24px #0000002e;z-index:1000;width:340px;font-size:16px;color:#111;transition:background .35s ease,color .35s ease}.switch{position:relative;display:inline-block;width:44px;height:22px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;border-radius:34px;transition:.3s}.slider:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}input:checked+.slider{background-color:#3b82f6}input:checked+.slider:before{transform:translate(22px)}.app.dark{background:#0f172a;color:#f1f5f9}.app.dark .card{background:#1e293b;color:#f8fafc}.app.dark .category{background:#facc15;color:#111}.app.dark .dropdown-settings,.app.dark .dropdown-stats{background:#1f2937;color:#f8fafc}.app.dark .dropdown-settings .dropdown-item span{color:#f8fafc}.app.dark .show-btn{background:#1e293b;border-color:#334155;color:#f8fafc}.app.dark .answer{background:#334155;color:#f1f5f9}.app.dark .yes-btn{background:#eab308;color:#111}.app.dark .no-btn{background:#111827;color:#fff}.app.dark .auth-btn,.app.dark .auth-tab.active,.app.dark .stats-total{background:#facc15;color:#111}.app.dark .auth-tab{background:transparent;color:#e2e8f0}.app.dark .stats-box,.app.dark .stats-header{color:#e2e8f0}.app.dark .stats-bar-label{color:#cbd5e1}.auth-wrapper{display:flex;justify-content:center;align-items:center;height:100vh;background:#f7f8fa}.auth-card{background:#fff;padding:40px 50px;border-radius:20px;box-shadow:1px 2px 10px #ffd600;text-align:center;width:420px;display:flex;flex-direction:column;gap:16px}.auth-title{margin:0 0 30px;font-size:28px;font-weight:700;color:#111}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.auth-input{flex:1;padding:16px 18px;border-radius:12px;border:1px solid #7c7c7c;background:#f1f3f7;font-size:16px;outline:none;transition:all .2s;color:#000}.auth-input:focus{border-color:#b7b7b7;background:#fff}.auth-btn{width:60px;height:60px;background:#ffd600;border:none;border-radius:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s ease,background .2s ease;box-shadow:0 2px 6px #00000026}.auth-btn:hover{background:#ffcd00}.auth-btn:active{transform:scale(.93)}.auth-tabs{display:flex;gap:8px;background:#f1f3f7;padding:4px;border-radius:12px}.auth-tab{flex:1;border:none;background:transparent;border-radius:10px;padding:10px 12px;font-weight:600;color:#555;cursor:pointer;transition:background .2s ease,color .2s ease}.auth-tab.active{background:#ffd600;color:#111}.auth-form-column{display:flex;flex-direction:column;gap:12px;align-items:stretch;width:100%}.auth-input.full{width:100%}.auth-input{width:100%;flex:0 0 auto;box-sizing:border-box}.auth-btn.wide{width:100%;height:auto;padding:14px 16px;font-weight:700;font-size:17px}.auth-helper{font-size:13px;color:#555}.auth-error{color:#c53030;margin-top:8px}.stats-box{display:flex;flex-direction:column;gap:10px}.stats-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:15px}.stats-total{background:#ffd600;padding:4px 8px;border-radius:8px;font-size:14px}.stats-chart{display:flex;align-items:stretch;height:200px;padding:8px 4px 0;box-sizing:border-box}.stats-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.stats-bar-fill{width:100%;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#ffd600,#e9c92a);transition:height .25s ease;min-height:6px}.stats-bar-label{font-size:11px;color:#555}@media(max-width:600px){.container{padding:20px 16px}.dropdown-stats{width:min(100vw - 24px,480px);left:50%;right:auto;transform:translate(-50%)}.stats-chart{height:220px}.top-row{flex-direction:column;align-items:stretch;gap:10px}.category{width:100%;text-align:left}.top-buttons{align-self:flex-end}.card{padding:25px}.word{font-size:36px}.yes-btn,.no-btn{font-size:16px;padding:15px;flex-basis:100%}.app{--icon-size: 18px}}.app.device-mobile{height:100vh;width:100vw;padding:0;display:flex;justify-content:flex-start;align-items:stretch;overflow:hidden;--icon-size: 20px;background-position:center}.app.device-mobile .container{max-width:95%;padding:18px;box-sizing:border-box;min-height:80%;display:flex;flex-direction:column;gap:12px;overflow-y:auto;-webkit-overflow-scrolling:touch}.app.device-mobile .top-row{flex-direction:row;align-items:center;gap:10px;margin-bottom:12px;width:100%;padding-top:env(safe-area-inset-top,8px)}.app.device-mobile .category{padding:8px 12px;border-radius:10px;white-space:nowrap;max-width:70%}.app.device-mobile .top-buttons{gap:6px;align-self:flex-end;align-items:flex-end}.app.device-mobile .icon-btn{width:44px;height:44px;padding:8px;border-radius:10px}.app.device-mobile .card{padding:20px;max-height:50%;max-width:90%;border-radius:16px;margin:6px 0;box-shadow:0 6px 22px #00000014;width:100%;flex:1 0 auto}.app.device-mobile .card-header{flex-direction:column;align-items:flex-start;gap:8px}.app.device-mobile .word{font-size:34px;line-height:1.05}.app.device-mobile .transcr,.app.device-mobile .pos{font-size:15px}.app.device-mobile .new-word-dot{width:9px;height:9px}.app.device-mobile .new-word-label{font-size:13px;margin-top:8px}.app.device-mobile .show-area{margin-top:18px;text-align:center}.app.device-mobile .show-btn{padding:12px 22px;font-size:17px;border-radius:12px}.app.device-mobile .answer{font-size:18px;padding:10px 18px}.app.device-mobile .pagination{margin-top:14px;font-size:16px}.app.device-mobile .bottom-buttons{position:sticky;bottom:0;background:transparent;padding:10px 0 env(safe-area-inset-bottom,12px);gap:12px;display:flex;flex-wrap:nowrap;justify-content:space-between}.app.device-mobile .yes-btn,.app.device-mobile .no-btn{flex:1 1 48%;font-size:18px;padding:14px;border-radius:12px}.app.device-mobile .dropdown-settings,.app.device-mobile .dropdown-stats{right:12px;left:auto;width:auto;min-width:160px;max-width:calc(100% - 24px)}.app.device-mobile .auth-card{width:calc(100% - 36px);padding:22px}.app.device-mobile .icon-img{width:var(--icon-size);height:var(--icon-size)}.app.device-mobile button,.app.device-mobile .icon-btn,.app.device-mobile .auth-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
