*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}
body{background:#0D0718;color:#FFF6EC;font-family:Rubik,system-ui,sans-serif;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-text-size-adjust:100%}
input,textarea{-webkit-user-select:text;user-select:text}
body.admin,html:has(body.admin){overflow:auto;height:auto}
body.admin{-webkit-user-select:auto;user-select:auto}
body.admin .app{height:auto;min-height:100%;overflow:visible}
a{color:#FFB37A}
button,input,textarea{font-family:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.45}
.app{max-width:440px;height:100vh;height:100dvh;margin:0 auto;background:#1A0F2E;position:relative;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.app>*{flex-shrink:0}
.app.fit{overflow-y:hidden}
.app.fit .page{flex:1 1 auto;min-height:0}
.scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.display{font-family:'Bowlby One',Rubik,sans-serif;font-weight:400}
.muted{color:#C9B9E6}
.soft{color:#E7DCF7}
.label{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#C9B9E6}
.banner{background:#FF7A1A;color:#1A0F2E;padding:12px 20px;margin-top:calc(-1 * env(safe-area-inset-top));padding-top:calc(12px + env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:10px}
.banner.big{flex-direction:column;justify-content:center;gap:2px;text-align:center}
.banner.big small{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em}
.banner.big b{font-family:'Bowlby One',Rubik,sans-serif;font-weight:400;font-size:24px;line-height:1.05}
.banner.big em{font-style:normal;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.banner span:first-child{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.banner span:last-child{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.banner.off{background:#2A1C47;color:#E7DCF7}
.page{padding:clamp(14px,3vh,24px) 22px clamp(14px,2.5vh,24px);display:flex;flex-direction:column;flex-grow:1}
.topbar{padding:18px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.iconbtn{width:44px;height:44px;border-radius:14px;background:#2A1C47;color:#FFF6EC;border:none;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.grow{flex-grow:1}
.btn{height:clamp(50px,7.5vh,60px);border:none;border-radius:16px;background:#FF7A1A;color:#1A0F2E;font-size:19px;font-weight:800;box-shadow:0 5px 0 #B34E06;width:100%}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #B34E06}
.btn.light{background:#FFF6EC;box-shadow:0 5px 0 #BFAFD9;display:flex;align-items:center;justify-content:center;gap:10px}
.btn.green{background:#1FAE66;box-shadow:0 5px 0 #127443}
.btn.small{height:52px;font-size:17px}
.ghost{height:clamp(42px,6vh,48px);border:2px solid #4A3770;border-radius:14px;background:transparent;color:#E7DCF7;font-size:15px;font-weight:600;width:100%}
.input{width:100%;height:clamp(48px,7vh,58px);border-radius:16px;border:2px solid #4A3770;background:#2A1C47;color:#FFF6EC;font-size:18px;padding:0 18px}
.input:focus,textarea:focus{outline:none;border-color:#FF7A1A}
textarea.input{height:auto;font-size:17px;line-height:1.35;padding:12px 16px;resize:none}
.error{background:#4A1420;color:#FFC2CE;border:2px solid #E5484D;border-radius:14px;padding:10px 14px;font-size:14px;font-weight:600;margin-top:10px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1FAE66;color:#1A0F2E;font-weight:800;padding:12px 18px;border-radius:14px;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.4);max-width:90vw;text-align:center}
.chip{display:inline-block;font-size:12px;font-weight:800;border-radius:99px;padding:6px 12px;letter-spacing:.04em;color:#1A0F2E}
.cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cat{border:none;text-align:left;color:#1A0F2E;border-radius:20px;padding:clamp(10px,2vh,16px) 14px;min-height:clamp(112px,18vh,150px);display:flex;flex-direction:column;gap:6px;position:relative}
.cat b{font-family:'Bowlby One',Rubik,sans-serif;font-weight:400;font-size:20px;line-height:1.05}
.cat small{font-size:13px;line-height:1.35;font-weight:500}
.cat i{font-style:normal;font-size:12px;font-weight:800;background:rgba(26,15,46,.15);border-radius:99px;padding:4px 10px;align-self:flex-start;margin-top:auto}
.cat:disabled{opacity:.4}
.ans-field{border-radius:16px;border:2px solid #4A3770;background:#2A1C47;padding:8px 12px 10px;display:flex;flex-direction:column;gap:5px}
.ans-field.ok{border:3px solid #1FAE66;background:#123B2A}
.ans-field label{font-size:12px;font-weight:800;display:flex;align-items:center;gap:6px;letter-spacing:.04em;color:#FF8FB3}
.ans-field.ok label{color:#4FE09A}
.ans-field input{width:100%;height:clamp(38px,5.5vh,44px);border:none;border-radius:10px;background:#1F1436;color:#FFF6EC;font-size:16px;padding:0 12px}
.ans-field.ok input{background:#0E2A1E}
.ans-field input:focus{outline:2px solid #FF7A1A}
.card-q{border-radius:26px;background:#FFF6EC;color:#1A0F2E;padding:22px;display:flex;flex-direction:column;box-shadow:0 18px 40px rgba(0,0,0,.35);touch-action:pan-y;user-select:none;transition:transform .25s ease, opacity .25s ease}
.vote-btn{width:clamp(66px,10vh,84px);height:clamp(66px,10vh,84px);border-radius:50%;border:3px solid #4A3770;background:#2A1C47;font-size:40px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}
.vote-btn.fire{border-color:#FF7A1A;background:#3A1E1A}
.dep{background:#2A1C47;color:#FFF6EC;border:none;border-radius:18px;padding:14px 16px;display:flex;align-items:center;gap:12px;text-align:left;width:100%}
.dep .bar{width:10px;align-self:stretch;border-radius:99px;flex-shrink:0}
.dep-open{background:#FFF6EC;color:#1A0F2E;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px}
.opt{border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.opt span:first-child{font-size:11px;font-weight:800;letter-spacing:.06em}
.opt span:last-child{font-size:15px;font-weight:700}
.answer-btn{min-height:clamp(58px,10vh,84px);border:none;border-radius:20px;color:#1A0F2E;font-size:19px;font-weight:800;padding:12px 18px;display:flex;align-items:center;gap:16px;text-align:left;width:100%}
.answer-btn.chosen{outline:4px solid #FFF6EC;outline-offset:3px}
.answer-btn.dim{opacity:.35}
.status{background:#2A1C47;border-radius:16px;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#E7DCF7}
.dot{width:10px;height:10px;border-radius:50%;background:#1FAE66;flex-shrink:0;animation:pulse 1.4s infinite}
@keyframes pulse{50%{opacity:.3}}
.resbar{position:relative;min-height:42px;border-radius:14px;background:#2A1C47;overflow:hidden}
.resbar .fill{position:absolute;left:0;top:0;bottom:0;background:#4A3770;transition:width .6s ease}
.resbar .txt{position:relative;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;font-weight:700}
.resbar.ok{background:#123B2A;border:3px solid #1FAE66}
.resbar.ok .fill{background:#1FAE66}
.react-grid{display:grid;grid-template-columns:repeat(4,clamp(48px,7vh,58px));justify-content:center;gap:10px 18px}
.react-grid button{width:clamp(48px,7vh,58px);height:clamp(48px,7vh,58px);border:none;border-radius:50%;background:#2A1C47;font-size:28px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}
.react-grid button:active{transform:scale(.9)}
.floater{position:fixed;font-size:30px;pointer-events:none;z-index:40;animation:floatup 2.6s ease-out forwards}
@keyframes floatup{0%{transform:translateY(0) scale(.6);opacity:0}10%{opacity:1;transform:translateY(-20px) scale(1)}100%{transform:translateY(-55vh) scale(1.1);opacity:0}}
.sheet-wrap{position:fixed;inset:0;background:rgba(13,7,24,.75);z-index:60;display:flex;justify-content:center;align-items:flex-end}
.sheet{width:100%;max-width:440px;max-height:92vh;overflow-y:auto;background:#FFF6EC;color:#1A0F2E;border-radius:28px 28px 0 0;padding:10px 22px 22px;display:flex;flex-direction:column}
.rank{display:flex;align-items:center;gap:12px;background:#2A1C47;border-radius:16px;padding:12px 14px}
.rank.me{outline:3px solid #FF7A1A}
.rank .pos{font-family:'Bowlby One',Rubik,sans-serif;font-size:22px;width:36px;text-align:center}
.loading{flex-grow:1;display:flex;align-items:center;justify-content:center;color:#C9B9E6;font-weight:600}

.modal-wrap{position:fixed;inset:0;background:rgba(13,7,24,.8);z-index:70;display:flex;align-items:center;justify-content:center;padding:24px}
.modal{width:100%;max-width:380px;background:#FFF6EC;color:#1A0F2E;border-radius:26px;padding:26px 22px 22px;text-align:center;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 50px rgba(0,0,0,.5);animation:pop .25s ease}
@keyframes pop{from{transform:scale(.9);opacity:0}}
.modal .big{font-size:52px;line-height:1}
.modal h2{margin:0;font-family:'Bowlby One',Rubik,sans-serif;font-weight:400;font-size:26px;line-height:1.1}
.modal p{margin:0;font-size:15px;line-height:1.45;color:#4A3A68}
.modal .ghost{color:#1A0F2E;border-color:#CFC3E3}
.hint{font-size:12px;color:#C9B9E6;text-align:center;line-height:1.4}
