@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:light;--paper:#f7f8fd;--white:#fff;--ink:#172044;--muted:#66708b;--line:#dce1ef;--blue:#3454eb;--deep:#172044;--soft:#eef1ff;--orange:#ff875c;--danger:#b63543;--usable-height:100dvh;--viewport-top:0px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0;background:var(--paper);color:var(--ink);font:400 15px/1.7 Vazirmatn,Tahoma,sans-serif}button,input,a{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer}button:disabled{cursor:default}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}::selection{background:#dce3ff;color:var(--ink)}input{caret-color:var(--blue)}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:26px;font-weight:850;line-height:1.6;text-wrap:balance}h2{font-size:17px;font-weight:750}p{color:var(--muted)}.symbols{position:absolute;width:0;height:0}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.reverse{transform:rotate(180deg)}[hidden]{display:none!important}.accent{color:var(--orange)}
/* A bounded shell keeps the timer and navigation outside the scrolling sheet. */
.shell{position:fixed;top:calc(var(--viewport-top) + 24px);inset-inline:24px;max-width:1050px;margin-inline:auto;height:calc(var(--usable-height) - 48px);max-height:1050px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:22px;background:var(--paper);overflow:hidden;box-shadow:0 16px 60px #17204408}.topbar{padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;direction:ltr;background:var(--white);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;font:800 28px/1.1 Vazirmatn,sans-serif;letter-spacing:-1px}.brand-mark{width:53px;height:46px;flex:none}.top-meta{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);direction:rtl}.demo-badge{font-size:10px;background:var(--soft);color:#314ab5;padding:3px 7px;border-radius:6px;white-space:nowrap}.in-game .topbar{background:var(--blue);color:white;border-color:transparent}.in-game .top-meta{color:#eef1ff}.in-game .demo-badge{background:#fff2;color:white}.in-game .brand-mark{background:white;border-radius:9px;padding:2px}.workspace{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1fr) 260px;scroll-behavior:auto;scrollbar-color:#b8c3e8 transparent;scrollbar-width:thin;scroll-padding-block:12px;overflow-anchor:none}.workspace main{min-width:0;padding:24px 30px 20px;display:flex;flex-direction:column}.sidebar{padding:30px 24px;background:#edf1ff;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;gap:40px}.side-note{padding:18px 0}.side-logo{width:125px;height:110px;margin:0 0 22px}.side-note h2{font-size:25px;line-height:1.7;font-weight:850}.side-note p{margin-top:15px;font-size:14px;line-height:2}.key-hint{display:flex;justify-content:space-between;align-items:center;margin-top:28px;font-size:12px;color:var(--muted)}kbd{font:600 13px Vazirmatn,sans-serif;direction:ltr;border:1px solid #c3cce8;border-bottom-width:3px;border-radius:6px;background:white;padding:3px 9px;color:var(--ink)}.side-foot{font-size:12px}.side-foot>span{font-size:22px;font-weight:850}.side-foot p{margin-top:8px}
/* Entry screen: the approved e/f tiles, one clear action and restrained orange. */
.lobby{width:100%;max-width:510px;margin:0 auto;text-align:center}.welcome-art{position:relative;width:224px;height:175px;margin:8px auto 18px}.hero-logo{width:200px;height:175px}.spark{position:absolute;width:9px;height:25px;background:var(--orange);border-radius:9px;transform:rotate(22deg)}.spark::after{content:'';position:absolute;inset-inline-start:17px;top:11px;width:8px;height:23px;background:var(--orange);border-radius:9px;transform:rotate(30deg)}.spark-one{top:0;right:8px}.spark-two{bottom:12px;left:4px;transform:rotate(210deg) scale(.7)}.lobby h1{font-size:38px;font-weight:900;letter-spacing:-1px;line-height:1.6}.lobby>.tagline{font-size:19px;margin-top:2px;font-weight:550}.lobby>#lobbyHint{font-size:12px;margin:9px auto 0;max-width:48ch}.rules-strip{display:flex;margin:28px 0 30px;padding:4px 0}.rules-strip>span{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;font-weight:650}.rules-strip>span+span{border-right:1px solid var(--line)}.rules-strip .icon{width:29px;height:29px}.rules-strip b{font-size:25px;color:#dd571f;margin-left:3px;font-variant-numeric:tabular-nums}.players-title{display:flex;align-items:center;gap:9px;text-align:right}.players-title h2{font-size:15px}.players-title>span{margin-right:auto;color:var(--muted);font-size:12px}.players{display:flex;flex-direction:column;gap:8px;margin:12px 0 20px;max-height:180px;overflow:auto}.player{display:flex;align-items:center;gap:12px;font-size:15px;text-align:right;border:1px solid var(--line);border-radius:14px;background:#ffffffb3;padding:12px 15px}.avatar{width:40px;height:40px;flex:none;border-radius:50%;background:var(--blue);color:white;display:grid;place-content:center;font-weight:750}.host-tag{margin-right:auto;background:#fff0e8;color:#a7441d;font-size:11px;border-radius:6px;padding:2px 9px}.primary{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:10px 20px;background:var(--blue);color:white;border-radius:12px;font-size:14px;font-weight:700;transition:background .15s ease}.primary:hover:not(:disabled){background:#2543d0}.primary:active:not(:disabled){background:#1c35ad}.primary:disabled{background:#e0e6ff;color:#65749f}.start-button{width:100%;justify-content:space-between;font-size:18px;min-height:56px;padding-inline:22px}.hint{font-size:11px;margin-top:10px;text-align:center}.text-button{color:var(--blue);background:transparent;padding:6px 8px;font-size:13px;font-weight:650;min-height:36px;text-decoration:underline;text-underline-offset:4px}.text-button:hover{background:var(--soft)}.icon-button{display:grid;place-content:center;min-width:44px;min-height:44px;background:var(--soft);color:var(--blue);border-radius:10px}.icon-button:hover{background:#e0e6ff}.icon-button:disabled{color:#9ba6c4}.ownership{display:flex;flex-direction:column;align-items:center;gap:1px;border-top:1px solid var(--line);margin:26px 0 0;padding:16px 0 0;text-align:center;color:var(--muted);font-size:11px}.ownership>span:first-child{color:var(--ink);font-size:13px}.ownership b{font-weight:750}
/* Gameplay: a single quick-writing sheet with labels beside the text. */
.gamebar{position:relative;flex-shrink:0;display:flex;align-items:center;gap:25px;padding:16px 28px 23px;background:var(--white);border-bottom:1px solid var(--line)}.letter-box{display:flex;align-items:center;gap:14px}.letter-box>span{font-size:12px;color:var(--muted);max-width:65px;line-height:1.6}.letter-box strong{font-size:48px;font-weight:850;line-height:1.2;color:var(--blue);min-width:40px;text-align:center}.bar-middle{flex:1;max-width:260px;display:grid;grid-template-columns:1fr auto;gap:7px;font-size:12px}.bar-middle>span{color:var(--muted)}.bar-middle strong{font-weight:650}.fill-track{grid-column:1/-1;height:4px;border-radius:3px;background:#e9edfa;overflow:hidden}.fill-track i{display:block;height:100%;width:0;background:var(--blue)}.timer-box{margin-right:auto;display:flex;align-items:center;gap:7px;color:var(--ink)}.timer-box strong{font-size:34px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;min-width:95px;text-align:center;direction:ltr}.timer-box>span{font-size:11px}.timer-box.urgent{color:var(--danger)}.time-track{position:absolute;bottom:9px;inset-inline:28px;height:4px;background:#e5e9f4;border-radius:5px;overflow:hidden;direction:ltr}.time-track i{display:block;height:100%;width:100%;background:var(--orange);border-radius:5px}.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.sheet-heading h1{font-size:23px;font-weight:850}.count-badge{font-size:12px;font-weight:700;background:#e5eaff;color:var(--ink);border-radius:9px;padding:5px 10px;white-space:nowrap}#answers{display:grid;grid-template-columns:1fr;gap:9px}.answer-row{position:relative;min-width:0;min-height:54px;padding:5px 12px;border:1px solid #ccd4e7;border-radius:12px;background:#ffffffb3;scroll-margin:12px;display:grid;grid-template-columns:78px minmax(0,1fr) 20px;align-items:center;transition:background .12s ease,border-color .12s ease}.answer-row:focus-within{background:var(--soft);border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.field-label{grid-row:1;grid-column:1;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;min-height:32px;border-left:1px solid var(--line)}.field-number{display:none}.field-check{grid-column:3;grid-row:1;font-size:12px;font-weight:650;color:var(--blue);min-height:20px;text-align:left}.field-check .icon{width:16px;height:16px}.answer-row input{grid-column:2;grid-row:1;width:100%;min-width:0;font:550 19px/1.5 Vazirmatn,sans-serif;border:0;outline:none;background:transparent;color:var(--ink);padding:6px 12px;min-height:42px;border-radius:0;direction:rtl;scroll-margin-block:12px}.answer-row input::placeholder{color:#9aa5bd;font-weight:400;text-align:center}.answer-row input:focus::placeholder{color:transparent}.answer-row input:disabled{opacity:1;-webkit-text-fill-color:var(--ink)}.field-detail{grid-column:2/-1;font-size:11px;color:var(--danger);line-height:1.8;padding-inline:12px}.field-detail:empty{display:none}.answer-row.wrong{border-color:#ebbdc4}.answer-row.wrong .field-check{color:var(--danger)}.sheet-hint{text-align:center;font-size:12px;margin-top:15px}.stop-button{width:100%;margin-top:15px}.preparing{display:flex;align-items:center;gap:14px;background:#fff0e8;padding:12px 16px;border-radius:12px;margin-bottom:14px}.preparing strong{font-size:32px;line-height:1.4;color:#a7441d;font-variant-numeric:tabular-nums}.preparing>span{font-size:13px;color:#8c4226;flex:1}.preparing button{font-size:11px}.typingbar{padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);background:var(--white);flex-shrink:0}.save-state{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;min-width:0}.save-dot{width:6px;height:6px;background:#22804f;border-radius:50%;flex-shrink:0}.save-dot.pending{background:#c36624}.save-dot.offline{background:var(--danger)}.nav-actions{display:flex;gap:7px;flex-shrink:0}.nav-actions .primary{min-width:150px}.banner{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;background:#fff0e9;color:#8b332c;padding:8px 24px;font-size:12px;gap:8px}.banner .text-button{color:inherit;white-space:nowrap}.demo-note{padding:5px 18px;text-align:center;font-size:10px;color:var(--muted);background:var(--soft);flex-shrink:0}
.result-summary{margin:24px 0;background:var(--soft);border-radius:12px;padding:18px 22px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}.result-summary>span{font-size:14px}.result-summary strong{font-size:32px;line-height:1.4;color:var(--blue)}.result-summary p{grid-column:1/-1;font-size:12px}.ranking h2,.reviews h2{margin:24px 0 12px}.rank-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.rank-row>span:first-child{font-size:12px;color:var(--muted);min-width:16px}.rank-row strong{margin-right:auto;font-variant-numeric:tabular-nums}.rank-row:first-child strong{color:var(--blue)}.review-row{padding:14px 0;border-bottom:1px solid var(--line)}.review-row h3{font-size:16px}.review-row button{margin:10px 0 0 8px;padding:8px 16px;border-radius:8px;min-height:42px;background:var(--soft);color:var(--blue);font-weight:650}.review-row button:last-child{color:var(--danger);background:#fff0ed}.next-round{width:100%;margin-top:22px}.round-notice{font-size:13px;margin-top:16px}.round-notice:empty{display:none}.gate{max-width:470px;margin:40px auto;text-align:center}.gate-logo{width:130px;height:115px}.gate h1{margin:20px 0 10px}.gate a{margin-top:25px}.gate p{line-height:2}
@media(max-width:760px){.shell{top:var(--viewport-top);inset-inline:0;height:var(--usable-height);max-height:none;border:0;border-radius:0;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom);box-shadow:none}.topbar{padding:11px 18px}.brand{font-size:25px;gap:6px}.brand-mark{width:44px;height:38px}.top-meta{gap:6px;font-size:11px;flex-wrap:wrap;justify-content:flex-start;max-width:120px}.workspace{display:block}.workspace main{padding:20px 18px 22px}.sidebar{display:none}.lobby{max-width:460px}.welcome-art{width:200px;height:155px;margin:4px auto 14px}.hero-logo{width:178px;height:155px}.lobby h1{font-size:33px}.lobby>.tagline{font-size:17px}.rules-strip{margin:23px 0}.rules-strip b{font-size:23px}.gamebar{padding:13px 18px 21px;gap:18px;justify-content:space-between}.letter-box{gap:10px}.letter-box strong{font-size:45px}.letter-box>span{font-size:11px;max-width:58px}.bar-middle{display:none}.timer-box{gap:5px;flex-direction:column}.timer-box strong{font-size:31px;min-width:90px}.timer-box>.icon{display:none}.timer-box>span{font-size:10px}.time-track{inset-inline:18px;bottom:9px}.sheet-heading{margin-bottom:14px}.sheet-heading h1{font-size:22px}.answer-row{grid-template-columns:66px minmax(0,1fr) 18px;min-height:49px;padding:3px 10px;border-radius:10px}.field-label{font-size:13px}.answer-row input{font-size:18px;min-height:40px;padding-inline:11px}.field-detail{padding-inline:11px}#answers{gap:7px}.typingbar{padding:10px 14px;gap:6px}.save-state{font-size:10px;gap:5px;max-width:145px}.nav-actions .primary{min-width:127px;padding-inline:12px;font-size:12px;gap:7px}.nav-actions .icon-button{min-width:40px}.banner{padding:6px 16px;font-size:11px}.preparing{padding:9px 12px;gap:10px}.preparing>span{font-size:12px}.preparing button{padding:4px}.demo-note{font-size:10px;padding:4px 10px}.ownership{margin-top:22px;padding-top:14px}}
/* The class follows the visual viewport as well as Telegram viewport events. */
.keyboard-open .topbar{padding-block:6px}.keyboard-open .brand{font-size:21px}.keyboard-open .brand-mark{width:33px;height:28px}.keyboard-open .gamebar{padding-block:7px 14px}.keyboard-open .letter-box strong{font-size:31px}.keyboard-open .timer-box{flex-direction:row;gap:5px}.keyboard-open .timer-box strong{font-size:25px;min-width:77px}.keyboard-open .timer-box>span{display:none}.keyboard-open .time-track{bottom:4px;height:3px}.keyboard-open .workspace main{padding-top:11px}.keyboard-open .sheet-heading{margin-bottom:9px}.keyboard-open .sheet-heading h1{font-size:17px}.keyboard-open .count-badge{padding:2px 8px;font-size:11px}.keyboard-open .typingbar{padding-block:7px}.keyboard-open .demo-note{display:none}.keyboard-open .preparing{padding-block:5px}.keyboard-open .preparing>span{font-size:11px}.keyboard-open .preparing strong{font-size:25px}
@media(max-height:580px) and (max-width:760px){.in-game .topbar{padding-block:6px}.in-game .brand{font-size:21px}.in-game .brand-mark{width:33px;height:28px}.gamebar{padding-block:7px 14px}.letter-box strong{font-size:31px}.timer-box{flex-direction:row}.timer-box strong{font-size:25px;min-width:77px}.timer-box>span{display:none}.time-track{bottom:4px;height:3px}.in-game .workspace main{padding-top:11px}.sheet-heading{margin-bottom:9px}.sheet-heading h1{font-size:17px}.typingbar{padding-block:7px}.demo-note{display:none}}
@media(max-width:359px){.topbar{padding-inline:12px}.brand{font-size:22px}.workspace main{padding-inline:12px}.lobby h1{font-size:29px}.typingbar{padding-inline:9px}.nav-actions .primary{min-width:117px;padding-inline:8px}.save-state{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.waiting-room{display:flex;align-items:center;gap:13px;text-align:right;background:var(--soft);border:1px solid #dce3ff;border-radius:14px;padding:16px;margin-top:16px}.waiting-room>.icon{color:var(--blue);width:27px;height:27px}.waiting-room strong{font-size:15px;color:var(--ink)}.waiting-room p{font-size:12px;margin-top:3px}
