:root{color-scheme:dark;font-family:Manrope,Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#f5f7ff;background:#10141e;--blue:#7099ff;--line:#2b3549;--muted:#9aa8c0;--height:100dvh;--safe:0px}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}button,input{font:inherit}button{border:1px solid var(--line);border-radius:16px;background:#1a2232;color:inherit;min-height:50px;padding:12px 18px;font-weight:650;cursor:pointer;transition:transform .13s,background .13s}button:active{transform:scale(.975)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}button.primary{background:#769cff;border-color:#769cff;color:#0c1529;font-weight:800}button.text{background:none;border:0;color:var(--muted)}[hidden]{display:none!important}#app{height:var(--height);max-width:480px;margin:auto;display:flex;flex-direction:column;padding:calc(16px + var(--safe)) 20px max(12px,env(safe-area-inset-bottom));overflow:hidden}header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;height:40px;margin-bottom:16px}.brand{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:950;letter-spacing:-.6px}.brand svg{width:30px;height:30px}#connection{font-size:10px;color:var(--muted);max-width:115px;text-align:right}#notice{background:#372b28;color:#ffd0a9;border-radius:12px;font-size:13px;padding:9px 12px;margin-bottom:8px;flex-shrink:0}.screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;animation:enter .16s ease}h1,h2,p{margin:0}h1{font-size:clamp(30px,5vh,46px);line-height:1.05;letter-spacing:-1.6px}h2{font-size:22px;letter-spacing:-.5px}p{line-height:1.5;font-size:14px;color:var(--muted)}.profile{display:flex;gap:13px;align-items:center;border-bottom:1px solid var(--line);padding:7px 0 18px}.profile>div:nth-child(2){flex:1;min-width:0}.profile b,.profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{color:var(--muted);font-size:12px;margin-top:3px}.avatar{position:relative;flex-shrink:0;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#2d3e63;color:#d1ddff;font-size:20px;font-weight:750;overflow:hidden}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mmr{color:#ffbc8e;font-size:16px}.hero{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;justify-content:center;isolation:isolate}.hero em{font-style:normal;color:#8caaff}.hero p{margin-top:14px;font-size:13px}.pitch{position:absolute;right:-65px;top:12%;bottom:12%;width:210px;border:1px solid #7099ff22;transform:rotate(-16deg);z-index:-1;border-radius:6px;overflow:hidden}.pitch:before{content:'';position:absolute;inset:0 0 50%;border-bottom:1px solid #7099ff22}.pitch i{position:absolute;width:100px;height:100px;border:1px solid #7099ff22;border-radius:50%;top:calc(50% - 50px);left:calc(50% - 50px)}.actions{display:grid;gap:10px}.actions button{text-align:left;display:flex;justify-content:space-between;align-items:center}.actions .primary{min-height:62px;font-size:19px}.section-head{display:flex;align-items:center;gap:12px;min-height:42px}.section-head h2{flex:1}.back{font-size:28px;width:40px;min-height:40px;padding:0;border-radius:12px}.muted{color:var(--muted);font-size:12px}.center{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center}.emblem{font-size:70px;color:var(--blue)}.radar{width:140px;height:140px;border:1px solid #7099ff55;border-radius:50%;display:grid;place-items:center;position:relative;background:radial-gradient(circle,#7099ff22,transparent 70%)}.radar:after{content:'';position:absolute;inset:15px;border:2px solid transparent;border-top-color:var(--blue);border-radius:50%;animation:spin 1.8s linear infinite}.radar span{font-size:45px}.duel-art{font-size:72px;font-weight:900;letter-spacing:-6px;color:#9ab4ff}.duel-art span{font-size:44px;color:#ffbc8e;margin:0 20px}.invite{padding:14px;border:1px solid var(--line);border-radius:18px}.invite label{font-size:12px;color:var(--muted)}input{width:100%;min-width:0;min-height:48px;background:#171f2f;border:1px solid var(--line);border-radius:12px;color:#f5f7ff;padding:12px}#invite-url{font-size:12px;margin:8px 0}.waiting{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}.waiting i{width:7px;height:7px;border-radius:50%;background:#ffb57e;animation:pulse 1.5s infinite}.ranks,.suggestions{flex:1;min-height:0;display:flex;flex-direction:column;gap:5px}.rank,.suggestion{display:flex;align-items:center;gap:10px;min-height:0;flex:1;max-height:65px;border-radius:12px;padding:7px 10px;border-bottom:1px solid var(--line)}.rank>div:nth-last-child(2),.suggestion>span{flex:1;min-width:0}.rank b,.suggestion strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank small{font-size:11px;color:var(--muted)}.rank .avatar,.suggestion .avatar{width:34px;height:34px;font-size:14px}.rank.top1{background:#e9b65513;color:#ffd18e}.rank.top2{background:#acbdd011}.rank.top3{background:#d2946711}.place{width:21px;font-weight:800;font-size:14px}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;font-size:12px;color:var(--muted)}.pager button{min-height:38px;width:48px;padding:0;font-size:22px}.match-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px}.match-head span{max-width:44%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.match-head span:first-child{color:#9db7ff}.match-head span:last-child{color:#ffb88e}.turn{display:flex;justify-content:space-between;padding:10px 14px;background:#1b2437;border-radius:12px;font-size:14px}.turn b{color:#adc3ff;font-variant-numeric:tabular-nums}.board-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.board{width:min(100%,calc(var(--height) - 285px));display:grid;grid-template-columns:.7fr repeat(3,1fr);grid-template-rows:.7fr repeat(3,1fr);aspect-ratio:1;gap:6px}.team{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:0;font-size:9px;text-align:center;line-height:1.1}.team img{width:30px;height:30px;object-fit:contain}.team span{max-width:100%;overflow:hidden;text-overflow:ellipsis}.team .fallback{padding:8px;border-radius:10px;background:#283751;color:#dce5ff;font-weight:800}.cell{padding:3px;min-height:0;min-width:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;overflow:hidden;background:#1a2230}.cell:disabled{opacity:1}.cell>span{width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell .avatar{width:35px;height:35px;font-size:14px}.cell.you{background:#243c69;border-color:#547acd}.cell.them{background:#513729;border-color:#ab754b}.cell.win{border:2px solid #fae29e;animation:win .8s ease 3}.cell.empty:enabled{color:#8396b9;font-size:26px}.game-controls{display:flex;gap:8px}.game-controls button{flex:1}.answer-pair{display:flex;align-items:center;justify-content:center;gap:24px;min-height:48px}.answer-pair .team{font-size:12px}.suggestion{width:100%;text-align:left;border:1px solid var(--line);background:#192131;min-height:38px}.suggestion:disabled{opacity:.45}#search-status{min-height:18px}#outcome{text-align:center}#outcome p{margin:5px 0 12px}#outcome .actions{grid-template-columns:1fr 1fr}#outcome .actions button{font-size:14px;min-height:46px;justify-content:center}dialog{max-width:360px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:20px;background:#171f2e;color:#fff;padding:24px}dialog::backdrop{background:#03060bcc}dialog p{margin:16px 0}dialog button{width:100%;margin-top:8px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.4}}@keyframes enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes win{50%{box-shadow:0 0 18px #f9d48680}}@media(max-height:650px){#app{padding:8px 12px}header{height:32px;margin-bottom:8px}.screen{gap:8px}.profile{padding-bottom:10px}.avatar{width:38px;height:38px}.hero h1{font-size:32px}.hero p{margin-top:8px}.actions{gap:7px}.actions .primary{min-height:50px;font-size:17px}button{min-height:44px;padding:9px 14px}.center{gap:10px}.center h1{font-size:30px}.radar{width:90px;height:90px}.duel-art{font-size:52px}.board{width:min(100%,calc(var(--height) - 220px))}.cell .avatar{width:26px;height:26px}.team img{width:23px;height:23px}.rank{padding:4px}.rank .avatar{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Compact home menu */
#home{position:relative;isolation:isolate}#home>.profile{flex-shrink:0}#home>.actions{margin-top:clamp(20px,5vh,44px);gap:12px}#home>.actions button{justify-content:center;text-align:center;min-height:58px}#home>.actions .primary{min-height:68px}#home>.pitch{pointer-events:none;top:48%;bottom:-8%;right:-45px;width:240px;opacity:.8}#home>#rules{align-self:center;margin-top:4px}@media(max-height:650px){#home>.actions{margin-top:12px;gap:9px}#home>.actions button{min-height:48px}#home>.actions .primary{min-height:56px}}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');
#home{position:relative;isolation:isolate}#home .home-intro{position:relative;z-index:1;margin-top:clamp(30px,7vh,76px);display:flex;flex-direction:column;gap:7px}.home-intro span{font-size:10px;letter-spacing:2.8px;color:#91a9e9;font-weight:800}.home-intro b{font-size:25px;letter-spacing:-.8px}.home-intro i{font-style:normal;color:var(--muted);font-size:12px}.pitch{z-index:-1!important;top:28%!important;bottom:-10%!important;right:-38px!important;width:255px!important;opacity:.75!important}.actions button{font-family:inherit;letter-spacing:-.15px;box-shadow:0 8px 22px #05091238}.actions button:not(.primary){background:linear-gradient(135deg,#202c43 0%,#172131 100%)}.actions .primary{background:linear-gradient(135deg,#8ba9ff 0%,#6388ed 100%);box-shadow:0 10px 28px #6388ed42}.actions button:active{filter:brightness(1.12)}#home>.actions{margin-top:auto!important;margin-bottom:4px!important;gap:11px!important}@media(max-height:650px){#home .home-intro{margin-top:18px}.home-intro b{font-size:21px}}

/* Home introduction and visible midfield circle. */
#home .home-intro .intro-brand{color:#ffad70;font-size:32px;font-weight:800;letter-spacing:-1px}
#home .home-intro .intro-description{font-size:20px;line-height:1.45;color:#f5f7ff;font-weight:600}
#home .home-intro .intro-telegram{color:#7099ff;font-size:inherit;letter-spacing:normal;font-weight:700}
#home>.pitch{top:12%!important;bottom:auto!important;right:-38px!important;width:255px!important;height:clamp(260px,43vh,360px);opacity:.9!important}
@media(max-height:650px){#home .home-intro .intro-brand{font-size:27px}#home .home-intro .intro-description{font-size:17px}#home>.pitch{top:5%!important}}