@font-face{font-family:YekanBakh;src:url(/fonts/YekanBakh-Black.woff) format("woff");font-weight:900;font-display:swap}@font-face{font-family:YekanBakh;src:url(/fonts/YekanBakh-Bold.woff) format("woff");font-weight:700;font-display:swap}@font-face{font-family:YekanBakh;src:url(/fonts/YekanBakh-Regular.woff) format("woff");font-weight:400;font-display:swap}@font-face{font-family:YekanBakh;src:url(/fonts/YekanBakh-SemiBold.woff) format("woff");font-weight:600;font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f7f9fc;color:#20242b;font-family:YekanBakh,Tahoma,Arial,sans-serif;font-size:15px}button,input,select,textarea{font:inherit}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}a,button{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #2c9ee6;outline-offset:4px}[hidden]{display:none!important}.topbar{height:94px;background:#fff;justify-content:space-between;gap:28px;padding:0 max(4.2vw,22px);border-bottom:1px solid #e8ecf1}.brand,.topbar{display:flex;align-items:center}.brand{gap:18px}.pixel-logo{font-family:Impact,Arial Black,sans-serif;font-size:32px;font-weight:1000;letter-spacing:-2px;color:#101417;position:relative;text-shadow:2px 3px 0 #ffc928,-2px -1px 0 #28adf4,4px 5px 0 #e62a50;line-height:1.3}.brand-dot{display:inline-block;width:7px;height:7px;background:#ec3353;margin-left:4px}.edition{font-size:11px;color:#929aa5;line-height:1.8;max-width:90px;border-right:1px solid #e5e9f0;padding-right:15px}.edition b{display:block;font-size:12px;color:#555f6b}.topbar nav{display:flex;align-self:stretch;gap:30px}.nav{background:transparent;border:0;color:#7f8792;font-size:14px;position:relative;padding:0 2px}.nav.active{color:#181e26;font-weight:700}.nav.active:after{content:"";height:3px;border-radius:8px;background:var(--nav-accent,#29a6ee);position:absolute;bottom:0;left:0;right:0}.nav span{font-size:11px;background:#edf2f7;padding:2px 6px;border-radius:5px;margin-right:4px}.account{background:#fff;border:1px solid #e3e8ef;border-radius:10px;display:flex;align-items:center;gap:10px;padding:9px 13px;font-size:13px}.avatar{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#eff7ff;color:#299edf;font-size:18px}main{max-width:1380px;margin:auto;padding:32px 4.2vw 0}.hero{position:relative;overflow:hidden;min-height:310px;background:radial-gradient(ellipse at 85% 15%,#d9efff 0,transparent 48%),radial-gradient(ellipse at 55% 105%,#fff0b2 0,transparent 40%),radial-gradient(ellipse at 9% 110%,#ffdfe5 0,transparent 40%),#edf6ff;border:1px solid #e4edf4;border-radius:18px;padding:38px 46px;justify-content:space-between;gap:35px}.eyebrow,.hero{display:flex;align-items:center}.eyebrow{font-size:11px;letter-spacing:1.6px;color:#5e7789;font-weight:700;gap:7px}.dot{height:6px;width:6px;background:#209de5;border-radius:50%;display:inline-block}.hero h1{font-size:37px;line-height:1.65;letter-spacing:-1px;margin:12px 0 10px;position:relative;z-index:1}.hero h1>span{font-weight:500}.hero-star{font-size:65px;font-style:normal;position:absolute;left:-85px;top:20px;color:#f0b515;transform:rotate(-10deg);font-weight:400}.hero p{font-size:13px;line-height:2;color:#657484;margin:0}.hero-tags{display:flex;gap:8px;margin-top:19px}.hero-tags span{border:1px solid #d9e2e8;border-radius:6px;background:#ffffff66;padding:5px 10px;font-size:11px;color:#687b8c}.hero-code{position:absolute;font-family:monospace;font-size:170px;font-weight:700;left:30%;bottom:-40px;color:#2b89ae06;transform:rotate(-10deg)}.countdown-card{width:326px;z-index:1;background:#ffffffcb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #fff;box-shadow:0 8px 24px #45688008;border-radius:14px;padding:22px 25px}.countdown-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700}.status-pill{font-size:11px;background:#fff4cf;color:#9b7c14;padding:4px 9px;border-radius:20px}.status-pill.running{background:#e6f6ec;color:#24844b}.countdown{display:flex;align-items:center;justify-content:space-between;margin:24px 0}.countdown>div{text-align:center;min-width:65px}.countdown b{font-size:43px;line-height:1.3;display:block;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;letter-spacing:1px}.countdown small{font-size:11px;color:#8e99a4}.countdown em{font-style:normal;color:#bfcbd6;font-size:25px;margin-bottom:15px}.countdown-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8edf1;padding-top:15px;font-size:11px;color:#7a8692}.countdown-bottom b{font-size:13px;color:#465766}.countdown-bottom small{font-size:10px;font-weight:400;margin-right:4px}.service-banner{margin:18px 0 5px;padding:10px 14px;border:1px solid #e6eaf0;background:#fff;border-radius:8px;color:#79828e;font-size:12px;line-height:1.9;display:flex;align-items:center;gap:8px}.service-banner:before{content:"";width:6px;height:6px;border-radius:50%;background:#edb52b;flex-shrink:0}.service-banner.ready:before{background:#40ab72}.service-banner.error{background:#fff5f5;color:#a54b4b}.section-line{gap:14px;margin:30px 0 18px}.section-line,.section-line h2{display:flex;align-items:center}.section-line h2{margin:0;font-size:19px;gap:9px}.section-line h2>span{font-size:12px;color:#8a96a6;font-weight:400;background:#edf1f7;border-radius:5px;padding:3px 7px}.muted{font-size:12px;color:#8c97a5;line-height:1.9}.text-link{color:#368cb9;font-size:12px}.section-line .text-link,.section-line>.outline{margin-right:auto}.workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:23px;align-items:start}.problem-sidebar{position:sticky;top:20px}.sidebar-label{display:flex;justify-content:space-between;margin:0 13px 12px;font-size:11px;color:#939ca8}.sidebar-label span{font-size:10px}.problem-item{display:flex;align-items:center;gap:12px;width:100%;border:1px solid transparent;border-radius:10px;background:transparent;padding:11px 12px;margin-bottom:6px;text-align:right;transition:background .15s,border .15s}.problem-item:hover{background:#fff}.problem-item.active{background:#e8f5ff;border-color:#bcdff6}.problem-item .letter{width:31px;height:33px;border:1px solid #e0e6ef;background:white;border-radius:7px;display:grid;place-items:center;font-family:monospace;font-weight:700;font-size:15px;flex-shrink:0;color:#697581}.problem-item.active .letter{background:#2da7ed;color:white;border-color:#2da7ed}.problem-item .pname{font-size:13px;flex:1 1}.problem-item .pscore{font-size:11px;color:#96a1ae}.problem-item.solved .pscore{color:#2a9a5f}.side-note{display:flex;gap:12px;border-top:1px solid #e4e9f0;margin:19px 12px;padding-top:20px;align-items:center;color:#a0a8b3}.side-note>span{font-size:27px;color:#efb929}.side-note p{font-size:11px;line-height:2}.side-note b{font-weight:400;color:#6b7787}.problem-area{background:white;border:1px solid #e3e9f0;border-radius:13px;overflow:hidden;min-width:0}.problem-head{padding:26px 29px 23px;justify-content:space-between}.problem-head,.problem-heading{display:flex;align-items:center;gap:15px}.letter-large{width:48px;height:52px;display:grid;place-items:center;background:#eff8ff;border:1px solid #d9edfb;color:#2597d8;border-radius:9px;font:600 23px monospace}.problem-heading .eyebrow{font-size:10px;letter-spacing:0;color:#9da7b2}.problem-heading h2{font-size:21px;line-height:1.7;margin:3px 0 0}.problem-meta{display:flex;gap:13px;align-items:center;color:#8d98a7;font-size:12px}.problem-meta span{white-space:nowrap}.problem-meta b{font-size:11px}.points{font-size:10px!important;color:#9b7c25!important;background:#fff6d7;padding:5px 9px;border-radius:5px}.problem-tabs{border-top:1px solid #f0f2f5;border-bottom:1px solid #e9edf2;display:flex;gap:25px;padding:0 29px;height:50px;align-items:stretch}.ptab{border:0;background:transparent;font-size:12px;color:#8e98a5;position:relative;padding:0}.ptab.active{color:#2b98d7;font-weight:700}.ptab.active:after{content:"";height:2px;background:#279ee5;bottom:-1px;left:0;right:0;position:absolute}.ptab span{margin-right:7px}.problem-tabs a{font-size:11px;align-self:center;margin-right:auto;color:#8e98a5}#submit-panel,article{padding:26px 30px 30px}.statement-text{font-size:14px;line-height:2.3;white-space:pre-line;overflow-wrap:anywhere}.statement-text p{margin:0 0 12px}article h3{font-size:15px;margin:26px 0 10px}article h3:before{content:"";display:inline-block;width:4px;height:14px;background:#ffe08b;margin-left:9px;vertical-align:middle;border-radius:1px}.sample{margin-top:25px}.sample-label{display:flex;justify-content:space-between;color:#798797;font-size:11px;margin-bottom:8px}.sample-block{background:#f7f9fc;border:1px solid #e6ebf1;border-radius:7px;padding:13px 17px;font:13px/1.9 SFMono-Regular,Consolas,monospace;white-space:pre-wrap;margin:0 0 15px;text-align:left;direction:ltr;overflow:auto}.copy-btn{border:0;background:none;color:#93a1b2;font-size:11px;cursor:pointer}.problem-note{font-size:12px;line-height:2;color:#8b96a5;background:#fafbfd;border-right:3px solid #f0cb5f;padding:10px 13px;margin:20px 0}.problem-note:empty{display:none}.primary{display:inline-flex;justify-content:center;align-items:center;gap:14px;border:0;border-radius:8px;background:#202b36;color:white;padding:11px 18px;font-size:13px;line-height:1.8;cursor:pointer;transition:background .15s}.primary:hover{background:#35485b}.next-submit{display:flex;margin-right:auto;margin-top:27px;background:#2ca4e8}.next-submit:hover{background:#208dc9}.outline{border:1px solid #dbe2ec;background:white;color:#627486;border-radius:7px;padding:8px 12px;font-size:12px}.editor-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.editor-title h3{margin:0;font-size:15px}.editor-title p{margin:7px 0 0}.editor-title label{font-size:10px;color:#8b98a9}.editor-title select{display:block;margin-top:6px;direction:ltr;min-width:155px}input,select{border:1px solid #dae2ec;border-radius:7px;padding:9px 11px;background:#fff;color:#425367;max-width:100%}label{display:block}.editor-wrap{border-radius:9px;overflow:hidden;border:1px solid #2d3b4b;background:#172330}.editor-top{display:flex;justify-content:space-between;align-items:center;background:#213040;padding:10px 15px;font-size:11px;color:#a5b5c7}.editor-top span:first-child{color:#e2cb85;font-family:monospace}#code{display:block;width:100%;height:340px;resize:vertical;padding:18px;border:0;background:#172330;color:#dbe9f5;font:13px/1.9 Consolas,monospace;tab-size:4;text-align:left;outline:0}#code::placeholder{color:#64788c}.upload-row{display:flex;align-items:center;justify-content:space-between;margin:15px 0 24px}.file-label{font-size:12px;color:#408db7;cursor:pointer}.file-label small{display:block;color:#98a4b2;font-size:10px;margin-top:4px}.submit-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8edf3;padding-top:20px;gap:20px}.submit-bottom p{font-size:11px;line-height:2;color:#6f7c8c}.submit-bottom small{color:#99a3af}.submit-bottom .primary{background:#2da6eb}.last-result{margin-top:20px;padding:15px;border:1px solid #dbe7ef;background:#f5faff;border-radius:8px;font-size:13px;line-height:2}.last-result.accepted{border-color:#c7e6d3;background:#f0faf4;color:#27794c}.table-card{border:1px solid #e1e8f0;border-radius:12px;overflow:hidden;background:white;min-height:230px}.scrollable{overflow:auto}table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}th{font-size:11px;color:#8a98a9;background:#f9fbfd;font-weight:400;border-bottom:1px solid #e9edf3}td,th{padding:17px 20px}td{border-bottom:1px solid #f0f3f7;font-size:12px}.empty-state{text-align:center;padding:65px 20px;color:#77899c;font-size:15px;line-height:2.3}.empty-state small{font-size:12px;color:#a0adba}.verdict{padding:5px 8px;border-radius:5px;font-size:11px;background:#fff7df;color:#9b822b}.verdict.accepted{background:#e9f7ee;color:#2a8c56}.verdict.compile_error,.verdict.memory_limit,.verdict.runtime_error,.verdict.time_limit,.verdict.wrong_answer{background:#fff0f0;color:#be5b62}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:#fff;border:1px solid #e2e8f0;padding:25px;border-radius:12px}.card h3{margin:0 0 15px}.card label{font-size:12px;color:#7f8d9e;margin:13px 0}.card input,.card select,.card textarea{display:block;width:100%;margin-top:7px}.card textarea{border:1px solid #dae2ec;border-radius:7px;padding:12px}.card .primary{margin-top:12px}.test-row{border-bottom:1px solid #edf1f5;padding:8px;font-size:12px}.test-row,footer{display:flex;justify-content:space-between}footer{align-items:center;gap:18px;border-top:1px solid #e1e7ef;margin-top:45px;padding:25px 0;color:#9aa5b4;font-size:11px}footer .mini{font-size:21px}footer>span:first-of-type{margin-left:auto}.red{color:#e05a6a;font-size:16px;vertical-align:middle;margin-right:7px}dialog{border:1px solid #e4e9f0;border-radius:18px;box-shadow:0 25px 100px #192c4e22;padding:34px;max-width:470px;width:calc(100% - 30px);color:#283644}dialog::backdrop{background:#16253b55;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}dialog .close-dialog{position:absolute;left:16px;top:10px;border:0;background:none;font-size:25px;color:#97a5b5}dialog h2{margin:17px 0 7px;font-size:26px}dialog label{font-size:13px;margin:20px 0}dialog label input{width:100%;margin-top:8px}dialog .primary{width:100%;margin:13px 0}dialog .text-link{display:block;text-align:center;margin-top:13px}#source-dialog{max-width:850px}#source-content{overflow:auto;max-height:60vh;background:#172330;color:#dbe9f5;padding:20px;border-radius:10px;font:12px/1.8 monospace;text-align:left}#toast{position:fixed;bottom:25px;left:25px;max-width:min(430px,90vw);background:#233448;color:white;box-shadow:0 6px 30px #17233b30;border-radius:10px;padding:13px 20px;font-size:13px;line-height:2;z-index:100;opacity:0;transform:translateY(20px);transition:.2s;pointer-events:none}#toast.show{opacity:1;transform:translateY(0)}@media(min-width:1500px){main{padding-left:35px;padding-right:35px}.hero{padding-left:65px;padding-right:65px}}@media(max-width:1050px){.topbar{gap:15px;padding:0 25px}.topbar nav{gap:17px}.edition{display:none}.workspace{grid-template-columns:190px minmax(0,1fr);gap:15px}.problem-head{align-items:flex-start;flex-direction:column}.problem-meta{margin-right:63px}.hero h1{font-size:31px}.hero-star{left:-55px;font-size:45px}.countdown-card{width:300px}.hero{padding:30px}.problem-item{padding:10px 8px;gap:8px}.problem-item .pname{font-size:12px}}@media(max-width:720px){.topbar{height:auto;min-height:80px;flex-wrap:wrap;padding:17px 20px 0;gap:14px}.topbar nav{order:3;width:100%;height:43px;justify-content:center;gap:30px}.nav{font-size:12px}.pixel-logo{font-size:27px}.account{padding:5px 9px;font-size:11px}.avatar{width:24px;height:24px}main{padding:18px 16px 0}.hero{min-height:0;padding:25px;gap:24px;flex-direction:column;align-items:stretch}.hero-copy{text-align:right}.hero h1{font-size:30px}.hero-star{left:5px;top:30px}.hero p br{display:none}.hero-tags{margin-top:13px}.countdown-card{width:100%;padding:18px 22px}.countdown{margin:15px 0}.countdown b{font-size:36px}.section-line{flex-wrap:wrap;margin-top:24px;gap:7px}.section-line h2{font-size:16px}.section-line>.muted{display:none}.workspace{display:block}.problem-sidebar{position:static}.side-note,.sidebar-label{display:none}#problem-list{display:flex;overflow:auto;gap:7px;margin-bottom:17px;padding:2px 1px 6px}.problem-item{min-width:145px;width:145px;flex-shrink:0;background:white;padding:9px;margin-bottom:0}.problem-item .letter{height:27px;width:25px;border-radius:5px}.problem-item .pname{font-size:11px}.problem-item .pscore{display:none}.problem-head{padding:20px;gap:13px}.problem-heading h2{font-size:19px}.problem-meta{margin:0;justify-content:space-between;width:100%;gap:8px}.problem-tabs{padding:0 20px;gap:22px}#submit-panel,article{padding:22px 20px}.statement-text{font-size:13px}.editor-title{align-items:flex-start;gap:10px}.editor-title select{min-width:125px;font-size:12px}.editor-title h3{font-size:14px}.editor-title p{font-size:11px}.submit-bottom{align-items:stretch;flex-direction:column;gap:5px}.submit-bottom p{margin:0 0 10px}.table-card{overflow:auto}td,th{padding:14px 12px}.admin-grid{display:block}.card{margin-bottom:15px}footer{flex-wrap:wrap;justify-content:flex-start;gap:15px;font-size:10px}footer>span:last-child{width:100%}dialog{padding:30px 24px}.service-banner{font-size:11px}.hero-code{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.math-line{direction:ltr;unicode-bidi:isolate;text-align:left;font-family:YekanBakh,Tahoma,sans-serif;margin:7px 0;color:#526376}.teams-admin{margin-bottom:22px}.team-admin-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid #edf1f5}.team-admin-row b{font-size:14px}.team-admin-row p{font-size:12px;color:#7e8d9e;line-height:1.9}.team-admin-row small{font-size:11px;color:#9aa6b4}.team-admin-row code{background:#fff5d7;padding:8px 12px;border-radius:6px;font-size:14px;color:#937426;white-space:nowrap}.teams-admin details{margin-top:20px;font-size:13px}.teams-admin textarea{width:100%;max-width:100%;padding:15px;line-height:1.8;font:12px/1.8 monospace;border:1px solid #dbe3ed;border-radius:8px}.teams-admin .outline{margin-top:18px}#grade-dialog .primary{width:100%}@media(max-width:720px){.team-admin-row{align-items:flex-start;flex-direction:column;gap:8px}}.hero h1{font-weight:900}.hero h1>span{font-weight:700}.nav.active,.primary,.problem-heading h2,article h3{font-weight:600}.countdown small,.hero p,.muted,footer{font-weight:400}.countdown b{font-weight:700}.eyebrow{font-weight:600}.auth-tabs{display:flex;gap:8px;margin:20px 0}.auth-tabs button{flex:1 1;border:1px solid #e0e7ef;background:#f7f9fc;border-radius:7px;padding:9px;font-size:13px;color:#79899a}.auth-tabs button.active{background:#e7f5ff;border-color:#add9f5;color:#278dc7}#logout-button{width:100%;margin-top:8px}#auth-password,#manager-password{font-family:Arial,sans-serif}#end-screen{text-align:center;min-height:65vh;border:1px solid #e1ebf4;border-radius:20px;padding:65px 25px;margin:15px 0 40px;background:radial-gradient(ellipse at 20% 10%,#d8efff,transparent 55%),radial-gradient(ellipse at 80% 85%,#fff0b9,transparent 50%),#fff}#end-screen .eyebrow{justify-content:center;font-weight:600}#end-screen .end-emblem{font-size:70px;color:#edb923;line-height:1.4;margin-bottom:22px}#end-screen h1{font-size:35px;font-weight:900;margin:20px 0}#end-screen p{font-size:15px;line-height:2.2;color:#61758a}#end-screen .end-details{font-size:13px;line-height:2.2;margin:30px auto;color:#8b9aac;max-width:540px;padding:20px;border-block:1px solid #e4eaf1}#end-screen strong{font-weight:600;color:#2d99d4;font-size:16px}@media(max-width:720px){#end-screen{padding:45px 22px}#end-screen h1{font-size:27px}#end-screen p{font-size:14px}}.react-backdrop{position:fixed;inset:0;z-index:90;background:#16253b55;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.react-dialog{position:relative;background:white;box-shadow:0 25px 100px #192c4e22;border:1px solid #e4e9f0;border-radius:18px;padding:34px;width:470px;max-width:100%;max-height:90vh;overflow:auto}.react-dialog:has(#source-content){width:850px}.react-dialog .close-dialog{position:absolute;left:16px;top:10px;border:0;background:none;font-size:25px;color:#97a5b5}.react-dialog label{font-size:13px;margin:18px 0}.react-dialog label input,.react-dialog label select{width:100%;margin-top:8px}.react-dialog h2{font-size:26px}.react-dialog .primary{width:100%;margin:12px 0}.full-width{width:100%}.last-result pre{white-space:pre-wrap;text-align:left;font-size:12px;max-height:200px;overflow:auto}.card .outline{margin-top:10px}.card textarea{resize:vertical}button:disabled{cursor:not-allowed}#end-screen{display:block}@media(max-width:720px){.react-dialog{padding:30px 24px}.topbar nav{gap:17px}.topbar nav .nav{font-size:11px}}.hero p{font-size:14px;font-weight:600}.hero-tags{flex-wrap:wrap}.hero-tags span{font-size:12px;font-weight:600}.hero-tags span:first-child{border-color:#e12d4b;background:#fff1f4;color:#b51f3b}.hero-tags span:nth-child(2){border-color:#259fe5;background:#edf8ff;color:#1675ac}.hero-tags span:nth-child(3){border-color:#e3b320;background:#fff8df;color:#8b6a0c}.nav[data-view=arena]{--nav-accent:#e12d4b}.nav[data-view=submissions]{--nav-accent:#259fe5}.nav[data-view=standings]{--nav-accent:#e3b320}.nav[data-view=admin]{--nav-accent:#151515}.problem-meta,.problem-meta b{font-size:14px;font-weight:400}.problem-meta .points{font-size:13px!important;font-weight:600;padding:6px 10px}:root{--motion-fast:160ms;--motion-normal:220ms;--motion-ease:cubic-bezier(.22,1,.36,1)}html{scrollbar-gutter:stable;scroll-behavior:smooth}.account,.auth-tabs button,.copy-btn,.file-label,.nav,.outline,.primary,.problem-item,.ptab,.react-dialog .close-dialog,.text-link{transition:background-color var(--motion-normal) var(--motion-ease),color var(--motion-normal) var(--motion-ease),border-color var(--motion-normal) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),transform var(--motion-fast) var(--motion-ease)}.editor-wrap,input,select,textarea{transition:border-color var(--motion-normal) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),background-color var(--motion-normal) var(--motion-ease)}input:focus,select:focus,textarea:focus{border-color:#8acbed;box-shadow:0 0 0 3px #2da7eb12}#code:focus{box-shadow:inset 0 0 0 1px #2da7eb50}.file-label:active,button:not(:disabled):active{transform:translateY(1px) scale(.985)}@media(hover:hover) and (pointer:fine){.account:hover,.outline:hover,.primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #263d5710}.problem-item:hover{transform:translateX(-3px)}.copy-btn:hover,.file-label:hover,.text-link:hover{color:#238ec9}.nav:hover,.ptab:hover{color:#273b4f}}.nav:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:8px;background:var(--nav-accent,#29a6ee);transform:scaleX(0);opacity:0;transform-origin:center;transition:transform var(--motion-normal) var(--motion-ease),opacity var(--motion-fast) ease}.nav.active:after{transform:scaleX(1);opacity:1}.ptab:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#279ee5;transform:scaleX(0);opacity:0;transition:transform var(--motion-normal) var(--motion-ease),opacity var(--motion-fast) ease}.ptab.active:after{transform:scaleX(1);opacity:1}.problem-item .letter,.problem-item .pscore,.service-banner,.status-pill{transition:color var(--motion-normal) ease,background-color var(--motion-normal) ease,border-color var(--motion-normal) ease}@keyframes soft-enter{0%{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes result-enter{0%{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.hero{animation:soft-enter .38s var(--motion-ease) both}.view-content{animation:soft-enter var(--motion-normal) var(--motion-ease) both}.empty-state,.last-result,.table-card tbody tr,.verdict{animation:result-enter var(--motion-normal) var(--motion-ease) both}.table-card tbody tr{transition:background-color var(--motion-normal) ease}@media(hover:hover){.table-card tbody tr:hover{background-color:#f8fbff}}.motion-presence{display:contents}.react-backdrop{transition:opacity .18s var(--motion-ease)}.react-backdrop,.react-dialog{opacity:1;overscroll-behavior:contain}.react-dialog{transform:translateY(0) scale(1);transition:opacity .18s var(--motion-ease),transform .18s var(--motion-ease),height .24s var(--motion-ease)}.dialog-content{display:flow-root}@starting-style{.react-backdrop{opacity:0}.react-dialog{opacity:0;transform:translateY(10px) scale(.985)}}.motion-presence.is-exiting .react-backdrop{opacity:0;pointer-events:none}.motion-presence.is-exiting .react-dialog{opacity:0;transform:translateY(8px) scale(.985)}#toast{transition:opacity .18s var(--motion-ease),transform .22s var(--motion-ease)}@media(prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}.react-dialog{transform:none!important}}.react-backdrop.is-exiting{opacity:0;pointer-events:none}.react-backdrop.is-exiting .react-dialog{opacity:0;transform:translateY(8px) scale(.985)}.account,.auth-tabs button,.copy-btn,.file-label,.nav,.outline,.primary,.problem-item,.ptab{transition-property:background-color,color,border-color,box-shadow,transform,opacity}.smooth-details{margin-top:20px;font-size:13px}.details-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:none;padding:8px 0;text-align:right;color:inherit}.details-toggle i{width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);transition:transform var(--motion-normal) var(--motion-ease)}.details-toggle[aria-expanded=true] i{transform:rotate(225deg)}.details-panel{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s var(--motion-ease),opacity .18s ease}.details-panel.open{grid-template-rows:1fr;opacity:1}.details-inner{min-height:0;overflow:hidden}.hero-tags span{transition:transform .22s var(--motion-ease),box-shadow .22s var(--motion-ease)}@media(hover:hover) and (pointer:fine){.hero-tags span:hover{transform:translateY(-4px);box-shadow:0 6px 14px #263d5716}}.hero-star{--star-orbit:136px;--star-orbit-y:93.5px;animation:srcpc-star-orbit 10s linear infinite;will-change:transform;transform-origin:center}@media(max-width:1200px){.hero-star{--star-orbit:85px;--star-orbit-y:89.25px}}@media(max-width:1050px){.hero-star{--star-orbit:38.25px;--star-orbit-y:72.25px}}@media(max-width:720px){.hero-star{--star-orbit:8.5px;--star-orbit-y:8.5px}}@keyframes srcpc-star-orbit{0.000000%{transform:translate(calc(var(--star-orbit) * 0),calc(var(--star-orbit-y) * 0)) rotate(-10deg) scale(1)}1.388888%{transform:translate(calc(var(--star-orbit) * -.003762),calc(var(--star-orbit-y) * -.011347)) rotate(-8.630091deg) scale(.999989)}2.777778%{transform:translate(calc(var(--star-orbit) * -.015826),calc(var(--star-orbit-y) * -.045023)) rotate(-4.530791deg) scale(.999818)}4.166667%{transform:translate(calc(var(--star-orbit) * -.03846),calc(var(--star-orbit-y) * -.099845)) rotate(2.266703deg) scale(.999084)}5.555555%{transform:translate(calc(var(--star-orbit) * -.075215),calc(var(--star-orbit-y) * -.173583)) rotate(11.710657deg) scale(.997137)}6.944445%{transform:translate(calc(var(--star-orbit) * -.130551),calc(var(--star-orbit-y) * -.262622)) rotate(23.729197deg) scale(.993119)}8.333333%{transform:translate(calc(var(--star-orbit) * -.209261),calc(var(--star-orbit-y) * -.361609)) rotate(38.230855deg) scale(.986036)}9.722222%{transform:translate(calc(var(--star-orbit) * -.315687),calc(var(--star-orbit-y) * -.463192)) rotate(55.105264deg) scale(.974864)}11.111112%{transform:translate(calc(var(--star-orbit) * -.45275),calc(var(--star-orbit-y) * -.557984)) rotate(74.224deg) scale(.958694)}12.500000%{transform:translate(calc(var(--star-orbit) * -.620884),calc(var(--star-orbit-y) * -.634904)) rotate(95.441559deg) scale(.936912)}13.888888%{transform:translate(calc(var(--star-orbit) * -.81704),calc(var(--star-orbit-y) * -.681962)) rotate(118.596461deg) scale(.90939)}15.277778%{transform:translate(calc(var(--star-orbit) * -1.033973),calc(var(--star-orbit-y) * -.687539)) rotate(143.512483deg) scale(.876655)}16.666667%{transform:translate(calc(var(--star-orbit) * -1.260074),calc(var(--star-orbit-y) * -.64204)) rotate(170deg) scale(.84)}18.055555%{transform:translate(calc(var(--star-orbit) * -1.47992),calc(var(--star-orbit-y) * -.53969)) rotate(197.857426deg) scale(.801486)}19.444445%{transform:translate(calc(var(--star-orbit) * -1.675666),calc(var(--star-orbit-y) * -.380143)) rotate(226.872748deg) scale(.763811)}20.833333%{transform:translate(calc(var(--star-orbit) * -1.829145),calc(var(--star-orbit-y) * -.169482)) rotate(256.825144deg) scale(.73004)}22.222222%{transform:translate(calc(var(--star-orbit) * -1.924409),calc(var(--star-orbit-y) * .079703)) rotate(287.486656deg) scale(.703224)}23.611112%{transform:translate(calc(var(--star-orbit) * -1.950243),calc(var(--star-orbit-y) * .349357)) rotate(318.623933deg) scale(.68596)}25.000000%{transform:translate(calc(var(--star-orbit) * -1.902113),calc(var(--star-orbit-y) * .618034)) rotate(350deg) scale(.68)}26.388888%{transform:translate(calc(var(--star-orbit) * -1.783127),calc(var(--star-orbit-y) * .863688)) rotate(381.376067deg) scale(.68596)}27.777778%{transform:translate(calc(var(--star-orbit) * -1.603728),calc(var(--star-orbit-y) * 1.066658)) rotate(412.513344deg) scale(.703224)}29.166667%{transform:translate(calc(var(--star-orbit) * -1.38019),calc(var(--star-orbit-y) * 1.212258)) rotate(443.174856deg) scale(.73004)}30.555555%{transform:translate(calc(var(--star-orbit) * -1.1322),calc(var(--star-orbit-y) * 1.292474)) rotate(473.127252deg) scale(.763811)}31.944445%{transform:translate(calc(var(--star-orbit) * -.880059),calc(var(--star-orbit-y) * 1.306493)) rotate(502.142574deg) scale(.801486)}33.333333%{transform:translate(calc(var(--star-orbit) * -.64204),calc(var(--star-orbit-y) * 1.260074)) rotate(530deg) scale(.84)}34.722222%{transform:translate(calc(var(--star-orbit) * -.432376),calc(var(--star-orbit-y) * 1.163985)) rotate(556.487517deg) scale(.876655)}36.111112%{transform:translate(calc(var(--star-orbit) * -.260152),calc(var(--star-orbit-y) * 1.031963)) rotate(581.403539deg) scale(.90939)}37.500000%{transform:translate(calc(var(--star-orbit) * -.129119),calc(var(--star-orbit-y) * .878595)) rotate(604.558441deg) scale(.936912)}38.888888%{transform:translate(calc(var(--star-orbit) * -.038308),calc(var(--star-orbit-y) * .717539)) rotate(625.776deg) scale(.958694)}40.277778%{transform:translate(calc(var(--star-orbit) * .016861),calc(var(--star-orbit-y) * .560286)) rotate(644.894736deg) scale(.974864)}41.666667%{transform:translate(calc(var(--star-orbit) * .043253),calc(var(--star-orbit-y) * .415549)) rotate(661.769145deg) scale(.986036)}43.055555%{transform:translate(calc(var(--star-orbit) * .048747),calc(var(--star-orbit-y) * .289202)) rotate(676.270803deg) scale(.993119)}44.444445%{transform:translate(calc(var(--star-orbit) * .041179),calc(var(--star-orbit-y) * .184642)) rotate(688.289343deg) scale(.997137)}45.833333%{transform:translate(calc(var(--star-orbit) * .027572),calc(var(--star-orbit-y) * .103382)) rotate(697.733297deg) scale(.999084)}47.222222%{transform:translate(calc(var(--star-orbit) * .01366),calc(var(--star-orbit-y) * .045727)) rotate(704.530791deg) scale(.999818)}48.611112%{transform:translate(calc(var(--star-orbit) * .003626),calc(var(--star-orbit-y) * .011391)) rotate(708.630091deg) scale(.999989)}50.000000%{transform:translate(calc(var(--star-orbit) * 0),calc(var(--star-orbit-y) * 0)) rotate(710deg) scale(1)}to{transform:translate(0) rotate(710deg) scale(1)}}@media(prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hero-star{transform:rotate(-10deg)!important;will-change:auto}.react-dialog{transform:none!important}}.brand-logo-image{display:block;width:130px;height:38px;object-fit:contain}.footer-brand{display:inline-flex;align-items:center;flex-shrink:0}.footer-logo-image{display:block;width:92px;height:28px;object-fit:contain}@media(max-width:720px){.brand-logo-image{width:105px;height:32px}.footer-logo-image{width:82px;height:25px}}.rules-warning{border:1px solid #efb3bc;background:#fff1f3;color:#9f1732;border-radius:12px;padding:14px 18px;font-size:14px;font-weight:600;line-height:1.9;margin:18px 0}.cheat-review{margin-bottom:24px}.cheat-review table{width:100%;min-width:600px}.judge-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin:22px 0}.judge-actions>.outline,.judge-actions>.primary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1 1 180px;min-height:52px;margin:0;padding:12px 18px;font-size:14px;line-height:1.6}:root{color-scheme:light}.header-actions{display:flex;align-items:center;gap:10px}.theme-toggle{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;border:1px solid #dbe2ec;border-radius:10px;background:#fff;color:#425367;font-size:23px;line-height:1}.theme-toggle:hover{background:#eff7ff}html[data-theme=dark]{color-scheme:dark;--night-surface:#172230;--night-border:#334355;--night-muted:#afbdce}[data-theme=dark] body{background:#0d1520;color:#edf2f8}[data-theme=dark] :is(.topbar,.account,.problem-area,.table-card,.card,dialog,.react-dialog,.service-banner,.outline,.theme-toggle){background:var(--night-surface);color:#edf2f8;border-color:var(--night-border)}[data-theme=dark] :is(input,select,textarea){background:#101a27;color:#e7eff9;border-color:var(--night-border)}[data-theme=dark] :is(.edition,.edition b,.nav,.muted,.eyebrow,.hero p,.problem-meta,.problem-meta b,.sidebar-label,.side-note,.side-note b,.problem-heading .eyebrow,.card label,.sample-label,.countdown small,.countdown-bottom,.countdown-bottom b,.submit-bottom p,.submit-bottom small,.editor-title label,.team-admin-row p,.team-admin-row small,footer,.copy-btn,.problem-tabs a,.ptab){color:var(--night-muted)}[data-theme=dark] :is(.nav.active,.ptab.active){color:#eaf4ff}[data-theme=dark] .nav[data-view=admin]{--nav-accent:#f0f3f8}[data-theme=dark] .hero{background:radial-gradient(ellipse at 85% 15%,#164565 0,transparent 55%),radial-gradient(ellipse at 55% 105%,#453d1e 0,transparent 45%),radial-gradient(ellipse at 9% 110%,#482637 0,transparent 45%),#162536;border-color:var(--night-border)}[data-theme=dark] .countdown-card{background:#121e2ce8;border-color:#3a5066}[data-theme=dark] :is(.problem-item,.problem-item .letter){color:#e8eff7}[data-theme=dark] .problem-item{background:transparent}[data-theme=dark] .problem-item:hover{background:#1d2e40}[data-theme=dark] .problem-item.active{background:#173954;border-color:#397ba3}[data-theme=dark] :is(.problem-item .letter,.letter-large,.avatar){background:#233a50;border-color:#3a5871;color:#77c8ff}[data-theme=dark] .problem-item.active .letter{background:#238bc5;color:#fff}[data-theme=dark] :is(.sample-block,.problem-note,th,.auth-tabs,.auth-tabs button,.last-result){background:#101b29;color:#d0dfef;border-color:var(--night-border)}[data-theme=dark] .auth-tabs .active{background:#29435c;color:#fff}[data-theme=dark] :is(td,th,.test-row,.problem-tabs,.countdown-bottom,.side-note,.submit-bottom,.team-admin-row,footer,.edition){border-color:var(--night-border)}[data-theme=dark] .primary{background:#315575;color:#fff}[data-theme=dark] .primary:hover{background:#3c698f}[data-theme=dark] .theme-toggle:hover{background:#29435c}[data-theme=dark] .hero-tags span:first-child{background:#3b202b;color:#ff9eb1;border-color:#c54e69}[data-theme=dark] .hero-tags span:nth-child(2){background:#17354c;color:#88d0ff;border-color:#388ec4}[data-theme=dark] .hero-tags span:nth-child(3){background:#3c351c;color:#ffe08a;border-color:#a38a31}[data-theme=dark] :is(.points,.status-pill,.verdict,.team-admin-row code){background:#3c351c;color:#ffe08a!important}[data-theme=dark] :is(.status-pill.running,.verdict.accepted,.last-result.accepted){background:#183c2e;color:#94e4b5;border-color:#377b53}[data-theme=dark] :is(.verdict.wrong_answer,.verdict.runtime_error,.verdict.compile_error,.verdict.time_limit,.verdict.memory_limit,.service-banner.error,.rules-warning){background:#3b202b;color:#ffb4c0;border-color:#754052}[data-theme=dark] :is(.nav span,.section-line h2>span){background:#293b50;color:#cad8e8}[data-theme=dark] :is(.brand-logo-image,.footer-logo-image){background:transparent;padding:0}[data-theme=dark] .file-label,[data-theme=dark] .text-link{color:#79caff}[data-theme=dark] .math-line{color:#c2d2e4}@media(max-width:720px){.header-actions{gap:7px}.theme-toggle{width:33px;height:33px;font-size:21px}}[data-theme=dark] #end-screen{background:radial-gradient(ellipse at 20% 10%,#164565,transparent 55%),radial-gradient(ellipse at 80% 85%,#453d1e,transparent 50%),#172230;border-color:var(--night-border)}[data-theme=dark] #end-screen :is(p,.end-details){color:#afbdce;border-color:var(--night-border)}.footer-star{color:#dca812}[data-theme=dark] .footer-star{color:#f3c548}.theme-toggle .pixel-theme-icon{display:block;width:24px;height:24px;color:#477bb4;transition:transform .2s ease}.theme-toggle .pixel-icon-shine{fill:#a6c9eb}.theme-toggle .pixel-icon-star{fill:#e0aa16}.theme-toggle:hover .pixel-theme-icon{transform:rotate(-8deg)}[data-theme=dark] .theme-toggle .pixel-theme-icon{color:#f3c548}[data-theme=dark] .theme-toggle .pixel-icon-shine{fill:#fff0ad}@media(max-width:720px){.theme-toggle .pixel-theme-icon{width:22px;height:22px}}.admin-recovery{max-width:540px;padding-top:60px;padding-bottom:60px}.admin-recovery label{margin:20px 0}.admin-recovery input{width:100%;display:block;margin-top:8px}.admin-recovery .primary{width:100%}.brand{gap:16px}.edition{padding-right:16px}.standings-view tbody tr:hover{background-color:#dcecff;color:#152b45}.standings-view tbody tr:hover *{color:#152b45}[data-theme=dark] .standings-view tbody tr:hover{background-color:#e2edfa;color:#152b45}[data-theme=dark] .standings-view tbody tr:hover *{color:#152b45}.submission-actions{display:inline-flex;align-items:center;gap:20px}.submission-actions .copy-btn{display:inline-flex;transition:transform .2s ease}.submission-actions .copy-btn:hover{transform:translateY(-3px)}@media(prefers-reduced-motion:reduce){.submission-actions .copy-btn:hover{transform:none}}.submission-actions .copy-btn{transition:transform .2s ease,color .2s ease}.table-card tbody tr:hover .submission-actions .copy-btn{color:#25496c}.submission-actions .copy-btn:hover{color:#0d263e!important}[data-theme=dark] .table-card tbody tr:hover .submission-actions .copy-btn{color:#25496c}[data-theme=dark] .submission-actions .copy-btn:hover{color:#0d263e!important}.admin-submissions-table tbody tr:hover,.admin-submissions-table tbody tr:hover :is(td,time,small,span:not(.verdict),b,button){color:#152b45}.submission-actions .copy-btn:hover{font-family:YekanBakh,Tahoma,Arial,sans-serif;font-weight:600}