:root{color-scheme:dark;--bg:#101b17;--panel:#192920;--panel2:#203329;--line:#385043;--ink:#edf2e7;--muted:#b0bfae;--lime:#d4ed9c;--gold:#e8bd79;--bad:#eda48d;--safe-top:env(safe-area-inset-top,0px);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:46px;border:1px solid transparent;border-radius:12px;padding:11px 17px;color:var(--bg);background:var(--lime);font-weight:600}button:hover:not(:disabled){filter:brightness(1.08)}button:disabled{opacity:.42;cursor:default}button.secondary{background:var(--panel2);border-color:var(--line);color:var(--ink)}button.quiet{background:transparent;color:var(--muted);padding:9px 10px;font-weight:400}button.danger{background:transparent;color:var(--bad);border-color:var(--line)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:var(--lime);text-underline-offset:4px}input,select{background:#111f18;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:11px 13px;min-height:46px;min-width:0;width:100%}input::placeholder{color:#8e9e8e}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(42px,8vw,70px);line-height:1.02;letter-spacing:-.065em;font-weight:650;margin-bottom:22px}h2{font-size:27px;letter-spacing:-.035em;line-height:1.2;margin-bottom:16px}h3{font-size:18px;font-weight:550;margin-bottom:9px}.ambient{position:fixed;inset:0;background:radial-gradient(ellipse at 70% 0%,#4c654521,transparent 55%);pointer-events:none;z-index:-1}main{max-width:950px;margin:auto;padding:calc(24px + var(--safe-top)) 28px 60px}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:32px}.brand{display:flex;align-items:center;gap:9px;font-size:13px;letter-spacing:.06em}.brand-mark{width:27px;height:27px;border:1px solid var(--lime);border-radius:50%;display:grid;place-items:center;color:var(--lime);font-size:17px}.top-actions{display:flex;align-items:center;gap:3px}.top-actions button{font-size:13px;min-height:42px}.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:17px}.muted{color:var(--muted)}.small{font-size:13px}.hero{padding:20px 0 26px;max-width:690px}.hero p{max-width:560px;font-size:18px;color:var(--muted)}.hero .eyebrow{font-size:12px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:27px 0}.mode{background:var(--panel);border:1px solid var(--line);padding:24px;border-radius:17px;text-align:left;color:var(--ink);font-weight:400;min-height:180px;position:relative}.mode .number{font-size:36px;font-weight:500;line-height:1.1;color:var(--lime);display:block;margin:0 0 18px}.mode strong{font-size:20px;display:block;margin-bottom:7px}.mode span:last-child{font-size:14px;color:var(--muted)}.mode[aria-pressed=true]{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}.setup-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:14px}.field label{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}.section{margin-top:34px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.recent{display:grid;gap:8px}.recent button{background:transparent;border:1px solid var(--line);color:var(--ink);font-weight:400;display:flex;justify-content:space-between;gap:10px;text-align:left}.join-row{display:flex;gap:8px}.join-row input{flex:1}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px}.notice{border-left:2px solid var(--gold);padding:4px 0 4px 14px;font-size:13px;color:var(--muted);margin:18px 0}.room-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px}.room-head h1{font-size:35px;margin-bottom:8px;letter-spacing:-.05em}.room-title{display:flex;align-items:center;gap:12px}.lobby-info{display:flex;gap:18px 28px;flex-wrap:wrap;margin:22px 0;color:var(--muted);font-size:13px}.lobby-info strong{color:var(--ink);font-size:23px;display:block;font-weight:500}.people{list-style:none;margin:15px 0;padding:0}.person{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.person:last-child{border:0}.person .identity{display:flex;align-items:center;gap:11px;min-width:0}.person-name{overflow-wrap:anywhere}.mini-avatar{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#314735;display:grid;place-items:center;font-size:13px;color:var(--lime)}.role{font-size:12px;color:var(--muted)}.ready-label{font-size:12px;color:var(--lime);white-space:nowrap}.waiting{color:var(--muted)}.lobby-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.lobby-actions button:first-child{flex:1}.invite{font-size:12px;word-break:break-all;color:var(--muted);margin-top:10px}.hud{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.round-label{font-size:14px;color:var(--muted)}.round-label strong{font-size:22px;font-weight:500;color:var(--ink);margin-right:7px}.keys{display:flex;align-items:center;gap:8px;font-size:13px}.key{width:19px;height:19px;border-radius:50%;background:#2b3b2d;border:1px solid #54704c;display:inline-block}.key.owned{background:var(--gold);border-color:var(--gold);box-shadow:0 0 15px #e8bd792a}.timer{color:var(--gold);font-size:14px;font-variant-numeric:tabular-nums}.zhuk{display:flex;gap:14px;align-items:center;margin:22px 0}.zhuk-avatar{width:54px;height:54px;flex-shrink:0;position:relative;background:#2a3c29;border:1px solid #59734c;border-radius:50%;display:grid;place-items:center;color:var(--lime);font-size:29px;font-weight:500}.zhuk-name{font-size:12px;color:var(--muted);margin-bottom:4px}.zhuk p{margin:0;font-size:15px}.zhuk em{color:var(--lime);font-style:normal;font-size:12px}.sectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.sector{background:linear-gradient(155deg,#293c2c,#1e2f24);border:1px solid #54654b;border-radius:16px;padding:20px 14px 16px;min-width:0;text-align:center;position:relative}.sector .sector-title{text-transform:uppercase;font-size:11px;letter-spacing:.13em;color:var(--muted);margin-bottom:3px}.sector h3{font-size:21px;margin:0 0 17px;font-weight:500}.door{width:94px;height:94px;max-width:100%;margin:0 auto 20px;position:relative;border:2px solid #728260;border-radius:12px;display:grid;place-items:center;background:#1b2c20}.door::before,.door::after{content:'';position:absolute;width:68%;height:2px;background:#8b9777;transform:rotate(45deg)}.door::after{transform:rotate(-45deg)}.door b{position:relative;z-index:1;border:2px solid #8b9777;background:#203022;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:400}.sector .effort{font-size:29px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.1}.sector .label{font-size:12px;color:var(--muted);margin-top:4px}.sector .defence{margin-top:12px;font-size:14px;color:var(--muted);min-height:25px}.sector.won{border-color:var(--lime);background:linear-gradient(155deg,#3c512c,#243622)}.sector.won .defence{color:var(--lime)}.sector.lost .defence{color:var(--gold)}.stepper{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #4b6046}.stepper button{width:43px;padding:0;background:#15231a;color:var(--ink);border:1px solid #53634b;font-size:23px;font-weight:400}.stepper span{min-width:19px;font-variant-numeric:tabular-nums;font-size:19px}.mine{font-size:11px;color:var(--muted);margin-top:6px}.plan-footer{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.plan-footer p{margin:0;font-size:14px;color:var(--muted)}.plan-footer .primary{min-width:210px}.error-text{color:var(--bad)!important}.team-panel{margin-top:24px}.team-table{width:100%;border-collapse:collapse;font-size:13px}.team-table th,.team-table td{text-align:left;padding:10px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.team-table th{color:var(--muted);font-weight:400;font-size:11px}.team-table th:first-child,.team-table td:first-child{padding-left:0}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.suggestions button{font-size:12px;min-height:39px;padding:7px 11px;border:1px solid var(--line);background:transparent;color:var(--muted);font-weight:400}.chat{max-height:220px;overflow-y:auto;font-size:13px}.chat p{margin:7px 0;overflow-wrap:anywhere}.chat b{color:var(--lime);font-weight:500;margin-right:7px}.message-row{display:flex;gap:8px;margin-top:14px}.message-row input{flex:1}.message-row button{font-size:13px}.result-title{color:var(--lime);font-size:37px;line-height:1.1;letter-spacing:-.045em;margin:28px 0 10px}.result-title.defeat{color:var(--gold)}.result-sub{color:var(--muted);max-width:570px}.history{margin-top:28px}.history summary{cursor:pointer;color:var(--muted);min-height:44px;font-size:14px}.record{padding:17px 0;border-top:1px solid var(--line)}.record-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:14px}.record-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.record-grid div{font-size:13px;background:var(--panel);border-radius:8px;padding:9px}.record-grid b{display:block;color:var(--muted);font-size:11px;font-weight:400}.proof{font-size:11px;color:var(--muted);margin-top:9px;overflow-wrap:anywhere}.proof.verified{color:var(--lime)}.room-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:28px}.auth{max-width:460px;margin:50px auto}.auth .field{margin:24px 0 14px}.auth button{width:100%}.loading{padding:50px 0;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;padding:13px 18px;background:#e8eddd;color:#172319;border-radius:12px;font-size:14px;z-index:10;box-shadow:0 10px 40px #0004;display:none}dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:18px;max-width:500px;width:calc(100% - 32px);padding:28px}dialog::backdrop{background:#0009}dialog p{color:var(--muted)}dialog button{margin-top:12px}.lesson-example{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.lesson-example div{background:var(--panel2);padding:14px 7px;border-radius:9px;text-align:center;font-variant-numeric:tabular-nums}.lesson-example small{display:block;color:var(--muted);font-size:11px}.lesson-example strong{display:block;font-size:23px}.badge{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:3px 9px;color:var(--muted);font-size:11px;margin-left:7px}.pulse .door{animation:unlock .5s ease-out}@keyframes unlock{0%{transform:scale(.95)}70%{transform:scale(1.035)}100%{transform:scale(1)}}
@media(min-width:760px){.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px}.board-layout .team-panel{margin-top:0}.board-layout:has(.team-panel) .sector{padding:17px 9px}.board-layout:has(.team-panel) .door{width:76px;height:76px}}
@media(max-width:600px){main{padding:calc(18px + var(--safe-top)) 16px 45px}.top{margin-bottom:24px}.hero{padding-top:12px}h1{font-size:49px}.hero p{font-size:16px}.mode-grid{gap:10px}.mode{padding:19px 15px;min-height:176px}.mode strong{font-size:18px}.mode span:last-child{font-size:12px}.mode .number{font-size:30px}.setup-row{grid-template-columns:1fr}.setup-row button{width:100%}.panel{padding:18px 15px}.room-head h1{font-size:29px}.sectors{gap:7px}.sector{padding:16px 6px 13px;border-radius:12px}.sector h3{font-size:17px;margin-bottom:15px}.sector .sector-title{font-size:10px}.door{width:69px;height:69px;margin-bottom:18px}.door b{width:32px;height:32px;font-size:16px}.sector .effort{font-size:26px}.sector .label{font-size:10px}.sector .defence{font-size:12px}.stepper{gap:5px;margin-top:13px}.stepper button{width:33px;min-height:44px;font-size:22px}.stepper span{font-size:17px;min-width:16px}.plan-footer{gap:13px}.plan-footer .primary{width:100%}.hud{align-items:start;flex-wrap:wrap}.zhuk{gap:11px}.zhuk p{font-size:14px}.team-table{font-size:12px}.message-row button{padding:8px 11px}.record-grid div{font-size:12px;padding:8px 5px}.lobby-actions button{flex:1}.top-actions button{padding:8px 7px}.top-actions{gap:0}.room-title{gap:7px}}
@media(max-width:350px){main{padding-left:12px;padding-right:12px}.stepper button{width:29px}.stepper{gap:3px}.door{width:61px;height:61px}.sector h3{font-size:15px}.top-actions button{font-size:11px}.keys{font-size:12px}.sector .defence{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduced *,body.reduced *::before,body.reduced *::after{animation:none!important;transition:none!important}
.zhuk-avatar{background-image:url('/assets/zhuk.png');background-size:300% 200%;background-position:0 0;background-color:#152920;color:transparent;border-color:#52634b}.hero-zhuk{width:120px;height:120px;border-radius:50%;background-image:url('/assets/zhuk.png');background-size:300% 200%;background-position:0 0;float:right;margin:0 0 20px 22px;border:1px solid var(--line)}@media(max-width:600px){.hero-zhuk{width:84px;height:84px;margin-left:12px}}
