:root{--background:#fff;--foreground:#171717;--accent:#0070f3;--muted:#666;--border:#eaeaea;--success:#10b981;--font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}@media (max-width:680px){.container{padding:1.5rem 1.5rem 3rem}}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--background);color:var(--foreground);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;line-height:1.6;position:relative}body:before{content:"";opacity:.05;z-index:-1;pointer-events:none;background-image:url(/wallpaper.png);background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;position:fixed;top:0;left:0}a{color:inherit;text-decoration:none;transition:opacity .2s}a:hover{opacity:.8;color:var(--accent)}.back-link{color:var(--muted);align-items:center;gap:.4rem;font-size:.9rem;font-weight:500;text-decoration:none;transition:color .2s;display:flex}.back-link:hover{color:var(--accent);opacity:1}.container{max-width:680px;margin:0 auto;padding:4rem 1.5rem}header{margin-bottom:2rem}.lang-switcher{color:var(--muted);gap:1rem;font-size:.8rem;font-weight:600;display:flex}.lang-switcher .active{color:var(--accent);opacity:1!important}.lang-switcher button{opacity:.6;transition:all .2s}.lang-switcher button:hover{opacity:1}.lang-switcher button.active{color:var(--accent);opacity:1}header h1{letter-spacing:-.05em;margin-bottom:.5rem;font-size:2.5rem;font-weight:800}@media (max-width:680px){header h1{font-size:2rem}.mobile-hide{display:none!important}.mobile-only{display:flex!important}}.mobile-only{display:none!important}header p{color:var(--muted);font-size:1.1rem}.post-list{list-style:none}.post-item{margin-bottom:3rem;transition:transform .2s}.post-item:hover{transform:translate(4px)}.post-date{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;font-size:.85rem;display:block}.post-title{color:var(--accent);margin-bottom:.5rem;font-size:1.5rem;font-weight:700;display:block}.post-description{color:var(--muted);font-size:1rem}.post-item.featured{border:1px solid var(--success);background:#10b9810d;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem}.post-item.featured .post-title{color:var(--foreground)}.post-item.featured:hover{background:#10b98114;transform:translateY(-2px)}.featured-tag{background:var(--success);color:#fff;text-transform:uppercase;border-radius:20px;margin-bottom:1rem;padding:.2rem .6rem;font-size:.7rem;font-weight:700;display:inline-block}.post-content blockquote{border-left:4px solid var(--success);color:var(--muted);background:#10b9810d;border-radius:0 8px 8px 0;margin:1.5rem 0;padding-top:1rem;padding-bottom:1rem;padding-left:1.5rem;font-style:italic}.post-content blockquote p{color:var(--foreground);opacity:.9}.post-content blockquote p:last-child{margin-bottom:0}.post-content{margin-top:2rem;margin-bottom:4.5rem}.post-content img{border-radius:12px;max-width:100%;height:auto;margin:2.5rem auto;display:block}.post-content h1{color:var(--foreground);margin-bottom:1.5rem;font-size:2.5rem}.post-content h2{margin:3rem 0 1rem;font-size:1.8rem}.post-content h3{margin:2.5rem 0 1rem;font-size:1.4rem}.post-content a{color:var(--accent);text-underline-offset:4px;text-decoration:underline;text-decoration-thickness:1px}.post-content a:hover{opacity:.8;text-decoration-thickness:2px}.post-content a[href*="codeforces.com/blog/entry/62730"]{color:var(--success)}.post-content p{margin-bottom:1.25rem}.post-content code{background:var(--border);border-radius:4px;padding:.2rem .4rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9em}.post-content pre{background:var(--foreground);color:var(--background);border-radius:8px;margin:2rem 0;padding:1.5rem;overflow-x:auto}.post-content pre code{color:inherit;background:0 0;padding:0}.post-content blockquote a{color:var(--success);text-underline-offset:4px;-webkit-text-decoration:underline #10b98166;text-decoration:underline #10b98166}.post-content blockquote a:hover{color:var(--success);opacity:.8;-webkit-text-decoration-color:var(--success);text-decoration-color:var(--success)}.intro-cover{margin-top:0;margin-bottom:.8rem}.intro-cover img{box-shadow:0 2px 12px #00000014}.intro-cover:last-of-type{margin-bottom:3.5rem}.home-cover{margin-top:3.5rem;margin-bottom:0}@media (max-width:680px){.home-cover{margin-top:1.5rem}}footer{border-top:1px solid var(--border);color:var(--muted);text-align:center;margin-top:4.5rem;padding-top:2rem;font-size:.9rem}@media (max-width:680px){footer{margin-top:4rem}}footer a{color:var(--muted);transition:all .2s}footer a:hover{color:var(--accent);transform:translateY(-1px);opacity:1!important}.fab-container{z-index:100;flex-direction:column;gap:.75rem;transition:opacity .3s,filter .3s;display:flex;position:fixed;bottom:3.5rem;right:2rem}.fab-button{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);width:44px;height:44px;color:var(--muted);cursor:pointer;opacity:0;pointer-events:none;background:#fffc;border-radius:50%;justify-content:center;align-items:center;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.8)translateY(10px);box-shadow:0 4px 12px #0000000d}.fab-button.visible{opacity:1;pointer-events:auto;transform:scale(1)translateY(0)}.fab-button:hover{color:var(--accent);border-color:var(--accent);background:#fff;transform:translateY(-2px);box-shadow:0 6px 16px #0000001a}@media (max-width:680px){.fab-container{bottom:3rem;right:1.5rem}.fab-button{width:40px;height:40px}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:.5s forwards fadeIn}.notification-banner{color:#000;cursor:pointer;z-index:100;background:linear-gradient(135deg,#facc15 0%,#eab308 100%);border-radius:12px;margin-top:.5rem;margin-bottom:2.5rem;padding:0;text-decoration:none;transition:box-shadow .2s;animation:.4s cubic-bezier(.4,0,.2,1) forwards slideDown;display:block;position:relative;overflow:hidden;box-shadow:0 4px 16px #eab30859}.notification-banner:hover{color:#000;opacity:1;box-shadow:0 8px 24px #eab30873}.notification-content{align-items:flex-start;gap:.85rem;padding:1.5rem 1.15rem;display:flex}.notification-icon{color:#000;background:#0000001a;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;animation:2s infinite bellRing;display:flex}.notification-text{flex-direction:column;flex:1;gap:.2rem;min-width:0;display:flex}.notification-text strong{letter-spacing:-.01em;font-size:.95rem;font-weight:700}.notification-text span{opacity:.85;font-size:.82rem;line-height:1.4}.notification-close{color:#000;cursor:pointer;background:#0000001a;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:2px;transition:background .2s;display:flex}.notification-close:hover{background:#0003}.notification-progress{background:#ffffff59;height:3px;animation:5s linear forwards progressShrink}@keyframes slideDown{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes bellRing{0%{transform:rotate(0)}20%{transform:rotate(14deg)}40%{transform:rotate(-14deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-8deg)}to{transform:rotate(0)}}@keyframes progressShrink{0%{width:100%}to{width:0%}}@media (max-width:680px){.notification-content{padding:.85rem 1rem}.notification-text strong{font-size:.88rem}.notification-text span{font-size:.78rem}.notification-icon{width:32px;height:32px}}.sidebar-widget{color:#fff;z-index:90;background:linear-gradient(135deg,#1a4a6e 0%,#103253 100%);border-radius:14px;width:200px;padding:1.1rem;transition:opacity .3s,filter .3s;position:fixed;top:5.5rem;box-shadow:0 8px 24px #10325359}.sidebar-widget-left{top:4.5rem;left:auto;right:calc(50% + 340px + 3rem)}.sidebar-widget-math{display:none}.sidebar-widget-right{width:280px;box-shadow:none;background:0 0;padding:0;top:4.5rem;left:calc(50% + 340px + 3rem);right:auto}.sidebar-widget-right img{cursor:pointer;border-radius:14px;width:100%;transition:transform .2s;box-shadow:0 8px 24px #00000026}.sidebar-widget-right img:hover{transform:scale(1.02)}.sidebar-widget.warning{color:#000;background:linear-gradient(135deg,#facc15 0%,#eab308 100%);box-shadow:0 8px 24px #eab30859}.sidebar-widget.warning .countdown-number,.sidebar-widget.warning .countdown-desc strong,.sidebar-widget.warning .warning-text{color:#000}.sidebar-widget.warning .countdown-header,.sidebar-widget.warning .countdown-label,.sidebar-widget.warning .countdown-sep,.sidebar-widget.warning .countdown-desc{color:#000000bf}.sidebar-widget.warning .countdown-desc strong{color:#000;opacity:1}.countdown-header{text-transform:uppercase;letter-spacing:.04em;opacity:.9;align-items:center;gap:.45rem;margin-bottom:.75rem;font-size:.72rem;font-weight:700;display:flex}.countdown-timer{justify-content:center;align-items:center;gap:.2rem;margin-bottom:.75rem;display:flex}.countdown-unit{flex-direction:column;align-items:center;gap:.1rem;display:flex}.countdown-number{font-variant-numeric:tabular-nums;text-align:center;min-width:2ch;font-size:1.4rem;font-weight:800;line-height:1}.countdown-label{text-transform:uppercase;opacity:.55;letter-spacing:.04em;font-size:.55rem}.countdown-sep{opacity:.35;margin-top:-.7rem;font-size:1.2rem;font-weight:700}.countdown-desc{opacity:.7;margin:0;font-size:.68rem;line-height:1.4}.countdown-desc strong{opacity:1;color:#fff}@media (max-width:1100px){.sidebar-widget{display:none}}.lightbox-overlay{z-index:2000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000d9;justify-content:center;align-items:center;width:100%;height:100%;padding:2rem;animation:.2s fadeIn;display:flex;position:fixed;top:0;left:0}body.lightbox-open .sidebar-widget,body.lightbox-open .fab-container,body.lightbox-open .notification-banner{pointer-events:none;filter:blur(2px);transition:opacity .3s,filter .3s;opacity:.2!important}.lightbox-content{justify-content:center;align-items:center;max-width:90vw;max-height:90vh;display:flex;position:relative}.lightbox-content img{border-radius:8px;max-width:100%;max-height:90vh;box-shadow:0 8px 32px #00000080}.lightbox-close{color:#fff;cursor:pointer;opacity:.7;background:0 0;border:none;padding:.5rem;transition:opacity .2s;position:absolute;top:-3rem;right:0}.lightbox-close:hover{opacity:1}.not-found-container{text-align:center;flex-direction:column;justify-content:flex-start;align-items:center;min-height:60vh;padding-top:4rem;padding-left:2rem;padding-right:2rem;animation:.6s ease-out fadeIn;display:flex}.not-found-code{background:linear-gradient(135deg,#10b981 0%,#103253 100%);-webkit-text-fill-color:transparent;letter-spacing:-.05em;-webkit-background-clip:text;background-clip:text;margin-bottom:1rem;font-size:8rem;font-weight:900;line-height:1}.not-found-title{color:#103253;margin-bottom:1rem;font-size:2rem;font-weight:700}.not-found-desc{color:var(--muted);max-width:450px;margin-bottom:2.5rem;font-size:1.1rem}.not-found-button{color:#fff;background:#103253;border-radius:50px;align-items:center;gap:.5rem;padding:.8rem 2rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 4px 12px #10325333}.not-found-button:hover{opacity:1;color:#fff;background:#1a4a6e;transform:translateY(-2px);box-shadow:0 8px 24px #1032534d}.not-found-icon{color:#10b981;margin-top:.5rem;margin-bottom:1.5rem;animation:3s ease-in-out infinite float}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}@media (max-width:680px){.not-found-code{font-size:6rem}.not-found-title{font-size:1.5rem}}.copy-button{background:var(--background);border:1px solid var(--border);color:var(--muted);cursor:pointer;border-radius:8px;align-items:center;gap:.6rem;padding:.6rem 1.2rem;font-size:.9rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 2px 4px #00000005}.copy-button:hover{border-color:var(--accent);color:var(--accent);background:#0070f308;transform:translateY(-1px);box-shadow:0 4px 12px #0000000d}.copy-button:active{transform:translateY(0)}.copy-button.success{border-color:var(--success);color:var(--success);background:#10b9810d}
