:root{
  --blue:#005AFF;--blue2:#3D7BFF;--blue3:#6A9EFF;--sky:#E8F0FF;--ink:#0D1530;--txt:#4A5372;--muted:#8A92AC;
  --bg:#F6F8FC;--card:#fff;--line:#E6EAF3;--green:#1FB866;--red:#F0443A;--yellow:#F2A900;--r:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.55}
a{color:var(--blue);text-decoration:none}
code{background:var(--sky);color:var(--blue);padding:2px 7px;border-radius:7px;font-weight:600;font-size:.92em}
h1{font-size:30px;margin:0 0 6px;letter-spacing:-.02em;line-height:1.15}
h2{font-size:20px;margin:0 0 14px;letter-spacing:-.01em}
h3{margin:10px 0 6px;font-size:18px}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}.small{font-size:13px}.grow{flex:1;min-width:0}.center{text-align:center}.right{display:flex;justify-content:flex-end;margin-top:-6px}
.inline{display:inline}

/* top */
.top{position:sticky;top:0;z-index:20;background:rgba(246,248,252,.85);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:26px;height:76px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;color:var(--ink);letter-spacing:.02em}
.logo b{color:var(--blue)}
.logo img{width:48px;height:48px;filter:drop-shadow(0 6px 12px rgba(0,90,255,.3))}
.logo-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue3));box-shadow:0 8px 20px rgba(0,90,255,.3)}
.nav{display:flex;gap:4px}
.nav a{padding:8px 14px;border-radius:12px;color:var(--txt);font-weight:600}
.nav a:hover{background:#fff}.nav a.on{background:var(--sky);color:var(--blue)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.pill{display:flex;align-items:center;gap:8px;padding:8px 16px;border-radius:99px;background:#E7F8EF;border:1px solid #C9EFD9;color:#127A44;font-weight:600;font-size:13px;white-space:nowrap}
.dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(31,184,102,.18);animation:pulse 2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(31,184,102,.05)}}
.me{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);padding:5px 12px 5px 5px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.me img{width:28px;height:28px;border-radius:8px}
.burger{display:none;border:1px solid var(--line);background:#fff;border-radius:12px;width:44px;height:44px;font-size:20px;cursor:pointer}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;cursor:pointer;font:inherit;font-weight:700;color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--blue2));padding:11px 20px;border-radius:14px;box-shadow:0 8px 20px rgba(0,90,255,.25);transition:.15s}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(0,90,255,.32)}
.btn.big{padding:17px 28px;border-radius:18px;font-size:15px}
.btn.sm{padding:7px 14px;border-radius:11px;font-size:13px;box-shadow:none}
.btn.white{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 6px 16px rgba(13,21,48,.05)}
.btn.ghost{background:transparent;color:var(--txt);border:1px solid var(--line);box-shadow:none}
.btn.full{width:100%}

/* layout */
.main{padding-top:34px;padding-bottom:60px;min-height:70vh}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:26px;box-shadow:0 10px 30px rgba(13,21,48,.04)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.grid2.top{align-items:start}
.narrow{max-width:680px;margin:0 auto}
.head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.alert{padding:14px 18px;border-radius:16px;margin-bottom:22px;font-weight:600}
.alert.ok{background:#E7F8EF;color:#127A44;border:1px solid #C9EFD9}
.alert.err{background:#FDECEB;color:#B42318;border:1px solid #F8CFCB}

/* hero */
.hero{position:relative;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:30px;padding:40px 0 70px}
.kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.kicker.light{color:#CFE0FF}
.hero h1{font-size:56px;line-height:1.05;letter-spacing:-.035em;margin-bottom:18px}
.grad{background:linear-gradient(90deg,var(--blue),var(--blue3));-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{font-size:17px;color:var(--txt);max-width:520px;margin:0 0 30px}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-art{position:relative;height:380px;display:flex;justify-content:center;align-items:flex-end}
.skin{margin:0 -4px;position:relative;text-align:center;filter:drop-shadow(0 22px 22px rgba(13,21,48,.18));animation:bob 4s ease-in-out infinite}
.skin img{height:290px;display:block}
.skin.s1{z-index:2;transform:translateY(-26px);animation-delay:-1.3s}.skin.s1 img{height:320px}
.skin.s2{animation-delay:-2.6s}
@keyframes bob{50%{translate:0 -8px}}
.skin figcaption{display:inline-block;margin-bottom:10px;background:rgba(13,21,48,.62);color:#fff;font-family:ui-monospace,Consolas,monospace;font-size:13px;padding:3px 9px;border-radius:4px}
.sq{position:absolute;background:var(--sky);border-radius:4px;z-index:-1}
.sq.a{width:46px;height:46px;left:-30px;top:40px}.sq.b{width:40px;height:40px;right:-10px;top:10px}.sq.c{width:28px;height:28px;right:60px;bottom:40px;background:#DDE8FF}

.feat{transition:.15s;color:var(--ink)}.feat:hover{transform:translateY(-3px);border-color:#C9D8FF}
.feat p{color:var(--txt);margin:0}
.ico{width:56px;height:56px;display:grid;place-items:center}

.how .steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.steps li{display:flex;gap:14px}
.steps li>b{flex:0 0 40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--blue3));color:#fff;display:grid;place-items:center}
.steps h4{margin:6px 0 4px}.steps p{margin:0;color:var(--txt);font-size:14px}

.toprow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--bg);margin-bottom:8px}
.toprow img{width:34px;height:34px;border-radius:9px}.medal{position:relative;width:34px;height:34px;display:grid;place-items:center}.toprow .val{margin-left:auto;font-weight:800;color:var(--blue)}

.discord{margin-top:30px;border-radius:28px;padding:40px 44px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#fff;
  background:radial-gradient(circle at 85% 20%,rgba(255,255,255,.18),transparent 40%),linear-gradient(120deg,#0046D8,var(--blue) 45%,var(--blue3))}
.discord h2{font-size:30px;margin:0 0 6px}.discord p{margin:0;opacity:.85}

/* forms */
.form{display:flex;flex-direction:column;gap:14px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;color:var(--txt)}
input,select,textarea{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:13px 15px;outline:none;transition:.15s}
input:focus,select:focus,textarea:focus{border-color:var(--blue2);background:#fff;box-shadow:0 0 0 4px rgba(0,90,255,.1)}
textarea{resize:vertical}
.auth{max-width:460px;margin:30px auto}
.btns{display:flex;justify-content:flex-end}

/* profile */
.profile{display:flex;gap:34px;align-items:center;background:linear-gradient(135deg,#fff 60%,var(--sky))}
.pbody{height:220px;filter:drop-shadow(0 18px 18px rgba(13,21,48,.15))}
.pinfo{flex:1}
.pinfo h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:18px}
.stats div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.stats small{display:block;color:var(--muted);font-weight:600;font-size:12px}.stats b{font-size:17px}
.mini{display:flex;flex-direction:column;color:var(--ink)}
.mini small{color:var(--muted);font-weight:600}.mini b{font-size:34px;color:var(--blue)}.mini span{color:var(--blue);font-weight:700;font-size:13px}

/* lists */
.list{padding:8px}
.pad{padding:14px 16px;margin:0}
.row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 16px;border-radius:14px;color:var(--ink)}
a.row:hover{background:var(--bg)}
.row+.row{border-top:1px solid var(--line)}
.row small{display:block}.row .h{width:32px;height:32px;border-radius:8px}
.note{display:block;color:var(--blue);margin-top:2px}
.badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px;white-space:nowrap}
.badge.blue{background:var(--sky);color:var(--blue)}.badge.green{background:#E7F8EF;color:#127A44}.badge.gray{background:#EEF0F5;color:#6B7390}
.badge.yellow{background:#FFF5DB;color:#9A6B00}.badge.red{background:#FDECEB;color:#B42318}
.rank{font-size:13px;font-weight:800;padding:5px 12px;border-radius:10px;background:#EEF0F5;color:#5A6380;letter-spacing:.02em}
.r-vip{background:#E7F8EF;color:#16924F}.r-svip{background:#FFF5DB;color:#B07A00}.r-wish,.r-elf{background:var(--sky);color:var(--blue)}
.r-media,.r-tworca{background:#FDEBF6;color:#C21E84}
.r-wlasciciel,.r-vwlasciciel,.r-zarzad,.r-developer,.r-opiekun,.r-technik,.r-headadmin,.r-admin,.r-junioradmin{background:#FDECEB;color:#C4271C}
.r-moderator,.r-juniormoderator,.r-support,.r-testsupport{background:#EAF2FF;color:#1F5FD6}

/* ticket chat */
.chat{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}
.msg{display:flex;gap:12px;max-width:80%}
.msg img{width:40px;height:40px;border-radius:10px}
.bubble{background:#fff;border:1px solid var(--line);border-radius:4px 18px 18px 18px;padding:12px 16px}
.msg.staff{align-self:flex-end;flex-direction:row-reverse}
.msg.staff .bubble{background:var(--sky);border-color:#CFDDFF;border-radius:18px 4px 18px 18px}
.meta{font-size:13px;margin-bottom:4px}.txt{white-space:normal;word-break:break-word}

/* admin */
.tabs{display:flex;gap:6px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
.tabs a{padding:9px 16px;border-radius:12px;font-weight:700;color:var(--txt);background:#fff;border:1px solid var(--line)}
.tabs a.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.cnt{background:var(--blue);color:#fff;border-radius:99px;padding:1px 8px;font-size:12px;margin-left:4px}
.report{margin-bottom:14px}
.rep-head{display:flex;gap:12px;align-items:center}.rep-head img{width:40px;height:40px;border-radius:10px}.rep-head small{display:block}
.rep-form{display:flex;gap:10px;flex-wrap:wrap}.rep-form input{flex:1;min-width:200px}.rep-form select,.rep-form input{padding:9px 12px}

.foot{border-top:1px solid var(--line);background:#fff}
.foot-in{display:flex;justify-content:space-between;gap:14px;padding:26px 24px;flex-wrap:wrap;font-size:14px}
.foot-links{display:flex;gap:18px}

@media (max-width:960px){
  .hero{grid-template-columns:1fr;padding-top:10px}.hero h1{font-size:40px}.hero-art{height:300px}.skin img{height:220px}.skin.s1 img{height:250px}
  .grid3,.grid2,.how .steps{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}
  .profile{flex-direction:column;text-align:center}.pinfo h1{justify-content:center}
  .nav{display:none;position:absolute;top:76px;left:0;right:0;background:#fff;flex-direction:column;padding:12px;border-bottom:1px solid var(--line)}
  .nav.open{display:flex}.burger{display:block}.me,.top-right .pill{display:none}
  .msg{max-width:100%}
}

/* grafiki */
.mascot-hero{position:absolute;width:170px;right:-10px;bottom:-30px;z-index:3;filter:drop-shadow(0 16px 18px rgba(0,90,255,.25));animation:bob 5s ease-in-out infinite;animation-delay:-.7s}
.discord{position:relative;overflow:hidden}
.mascot-dc{width:150px;margin:-20px 0 -46px -10px;filter:drop-shadow(0 12px 16px rgba(0,0,0,.25))}
.auth{text-align:center}.auth .card{text-align:left}
.mascot-auth{width:150px;margin-bottom:-18px;position:relative;z-index:1;filter:drop-shadow(0 12px 14px rgba(0,90,255,.22))}
.mascot-404{width:180px;margin:-10px auto 6px;display:block}
.empty{text-align:center;padding:26px 16px}.empty img{width:120px;opacity:.95}.empty img.tall{width:auto;height:150px}
@media (max-width:960px){.mascot-hero{width:110px;right:0;bottom:-10px}.mascot-dc{display:none}}

/* pikselowe ikony */
.pic,.bi,.si,.ii,.medal img{image-rendering:pixelated}
.ico .pic{width:56px;height:56px;filter:drop-shadow(0 6px 10px rgba(0,90,255,.2));transition:.2s}
.feat:hover .pic{transform:rotate(-6deg) scale(1.08)}
.bi{width:24px;height:24px}
.si{width:18px;height:18px;vertical-align:-4px;margin-right:2px}
.stats .si{float:right;width:22px;height:22px}
.ii{width:20px;height:20px;vertical-align:-4px}
.medal img{width:34px;height:34px}
.medal i{position:absolute;font-style:normal;font-weight:800;font-size:12px;color:#5a3a00;top:11px}
.medal.m1 img{filter:grayscale(1) brightness(1.25)}.medal.m1 i{color:#333}
.medal.m2 img{filter:sepia(1) hue-rotate(-25deg) saturate(2.2) brightness(.85)}.medal.m2 i{color:#fff}
