/* =========================================================
   Strona główna, polecane serwery i wspólna nawigacja nowych stron.
   Korzysta ze zmiennych z css/style.css (--rust, --toxic, --bone, …).
   ========================================================= */
body.hm-body { display: block; overflow-y: auto; overflow-x: hidden; height: auto; min-height: 100vh; padding: 0; place-items: unset; }
.hm-body .tlo-szum, .hm-body .tlo-skan { position: fixed; }
:root { --hm-ok: #a3b54e; --hm-warn: #d9a441; --hm-err: #e0503a; --hm-acc: #e08a4f; }
.hm-wrap { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: 0 22px 60px; }

/* ---------- nawigacja ---------- */
.hm-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 64px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hm-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--bone); }
.hm-brand__mark { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rust); display: grid; place-items: center; position: relative; background: radial-gradient(circle, rgba(192,90,43,.25), transparent 70%); }
.hm-brand__mark::before, .hm-brand__mark::after { content: ''; position: absolute; border: 1px solid rgba(192,90,43,.45); border-radius: 50%; }
.hm-brand__mark::before { inset: 6px; } .hm-brand__mark::after { inset: -6px; opacity: .4; }
.hm-brand__mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--toxic); box-shadow: 0 0 8px var(--toxic); }
.hm-brand__t { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: .24em; font-size: 20px; line-height: 1; }
.hm-brand__s { display: block; font-family: 'Rajdhani', sans-serif; font-weight: 500; letter-spacing: .08em; font-size: 11px; color: var(--bone-dim); margin-top: 3px; text-transform: uppercase; }
.hm-links { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.hm-links a { padding: 8px 14px; border-radius: 3px; border: 1px solid transparent; color: var(--bone-dim); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: color .15s, border-color .15s, background .15s; }
.hm-links a:hover { color: var(--bone); border-color: var(--line); }
.hm-links a.on { color: var(--bone); border-color: var(--rust); background: rgba(192,90,43,.12); }
.hm-links a .hm-dot { display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--rust); color: #fff; font-size: 10px; letter-spacing: 0; text-align: center; line-height: 17px; }

/* ---------- hero ---------- */
.hm-hero { position: relative; text-align: center; padding: 78px 10px 66px; overflow: hidden; }
.hm-hero__rings { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); pointer-events: none; opacity: .55; }
.hm-hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.hm-hero__rings span:nth-child(2) { inset: 110px; } .hm-hero__rings span:nth-child(3) { inset: 220px; }
.hm-hero__rings::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(163,181,78,.14), transparent 16%); animation: hm-sweep 9s linear infinite; }
@keyframes hm-sweep { to { transform: rotate(360deg); } }
.hm-eyebrow { position: relative; display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 20px; font-family: 'Oswald', sans-serif; letter-spacing: .26em; font-size: 11px; text-transform: uppercase; color: var(--toxic); background: rgba(12,14,10,.7); }
.hm-hero h1 { position: relative; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; margin: 22px auto 18px; max-width: 900px; }
.hm-hero h1 em { font-style: normal; color: var(--rust); }
.hm-hero p { position: relative; max-width: 700px; margin: 0 auto 28px; font-size: 18px; line-height: 1.55; color: var(--bone-dim); }
.hm-cta { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--bone); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: all .15s; }
.hm-btn:hover { border-color: var(--bone-dim); transform: translateY(-1px); }
.hm-btn--main { background: var(--rust); border-color: var(--rust); color: #fff; }
.hm-btn--main:hover { background: #d4662f; border-color: #d4662f; }
.hm-btn--small { padding: 6px 13px; font-size: 11px; }
.hm-btn--danger { border-color: rgba(224,80,58,.5); color: var(--hm-err); }
.hm-btn:disabled { opacity: .45; cursor: default; transform: none; }
.hm-stats { position: relative; display: flex; align-items: center; gap: 10px 28px; justify-content: center; flex-wrap: wrap; margin-top: 38px; font-size: 13px; color: var(--bone-dim); letter-spacing: .06em; }
.hm-stats span { display: inline-flex; align-items: center; }
.hm-stats b { color: var(--bone); font-family: 'Oswald', sans-serif; font-size: 20px; line-height: 1; margin-right: 8px; }

/* ---------- sekcje ---------- */
.hm-sec { margin-top: 64px; }
.hm-sec__h { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hm-sec__k { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .3em; color: var(--rust); text-transform: uppercase; }
.hm-sec__t { font-family: 'Oswald', sans-serif; font-size: clamp(22px, 3.2vw, 32px); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.hm-sec__d { max-width: 620px; font-size: 15px; color: var(--bone-dim); margin-top: 6px; line-height: 1.5; }
.hm-sec__more { margin-left: auto; color: var(--rust); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.hm-sec__more:hover { color: var(--bone); }

/* ---------- narzędzia ---------- */
.hm-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.hm-tool { position: relative; display: block; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--bone); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; overflow: hidden; }
.hm-tool::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--rust), var(--toxic)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.hm-tool:hover { border-color: var(--rust); transform: translateY(-3px); background: var(--surface-2); }
.hm-tool:hover::before { transform: scaleX(1); }
.hm-tool__i { font-size: 28px; line-height: 1; margin-bottom: 12px; display: block; }
.hm-tool__t { font-family: 'Oswald', sans-serif; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.hm-tool__d { margin-top: 7px; font-size: 14px; line-height: 1.5; color: var(--bone-dim); }
.hm-tool__n { position: absolute; right: 12px; top: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(163,181,78,.16); border: 1px solid var(--toxic); color: var(--toxic); font-family: 'Oswald', sans-serif; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.hm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; counter-reset: s; }
.hm-step { position: relative; padding: 16px 18px 16px 62px; border: 1px dashed var(--line); border-radius: 4px; font-size: 14px; line-height: 1.5; color: var(--bone-dim); counter-increment: s; }
.hm-step::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rust); display: grid; place-items: center; font-family: 'Oswald', sans-serif; color: var(--rust); }
.hm-step b { display: block; color: var(--bone); font-family: 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin-bottom: 3px; }

/* ---------- karty serwerów ---------- */
.hm-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.hm-srv { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color .2s, transform .2s; }
.hm-srv:hover { border-color: var(--bone-dim); transform: translateY(-2px); }
.hm-srv__ban { height: 118px; position: relative; background: linear-gradient(135deg, #1d2415, #2a2218); display: grid; place-items: center; overflow: hidden; }
.hm-srv__ban img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-srv__ban b { font-family: 'Oswald', sans-serif; font-size: 44px; color: rgba(206,201,182,.18); letter-spacing: .1em; }
.hm-srv__rank { position: absolute; left: 10px; top: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: rgba(12,14,10,.88); border: 1px solid var(--line); display: grid; place-items: center; font-family: 'Oswald', sans-serif; font-size: 13px; }
.hm-srv__rank.r1 { border-color: #e0b840; color: #e0b840; } .hm-srv__rank.r2 { border-color: #b9c0c8; color: #b9c0c8; } .hm-srv__rank.r3 { border-color: #c98a55; color: #c98a55; }
.hm-srv__live { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 12px; background: rgba(12,14,10,.88); border: 1px solid var(--line); font-size: 12px; display: none; align-items: center; gap: 6px; }
.hm-srv__live.on { display: inline-flex; } .hm-srv__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-ok); box-shadow: 0 0 6px var(--hm-ok); } .hm-srv__live.off i { background: var(--hm-err); box-shadow: none; }
.hm-srv__b { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hm-srv__n { font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: .05em; line-height: 1.2; overflow-wrap: anywhere; }
.hm-srv__tag { font-size: 14px; color: var(--bone-dim); line-height: 1.45; }
.hm-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-badge { padding: 2px 9px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; color: var(--bone-dim); }
.hm-badge--mode { border-color: var(--rust); color: var(--rust); } .hm-badge--map { border-color: var(--toxic); color: var(--toxic); }
.hm-srv__f { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; }
.hm-vote { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); color: var(--bone-dim); cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .06em; transition: all .15s; }
.hm-vote:hover { border-color: var(--rust); color: var(--bone); }
.hm-vote.on { border-color: var(--rust); background: rgba(192,90,43,.18); color: var(--bone); }
.hm-empty { grid-column: 1 / -1; padding: 34px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 4px; color: var(--bone-dim); line-height: 1.6; }

/* ---------- pasek filtrów i zakładki ---------- */
.hm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; }
.hm-tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--bone-dim); cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.hm-tab:hover { color: var(--bone); border-color: var(--bone-dim); } .hm-tab.on { color: var(--bone); border-color: var(--rust); background: rgba(192,90,43,.12); }
.hm-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (max-width: 800px) { .hm-filters { grid-template-columns: 1fr 1fr; } .hm-filters > :first-child { grid-column: 1 / -1; } }
.hm-in, .hm-sel, .hm-ta { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; color: var(--bone); font-family: 'Rajdhani', sans-serif; font-size: 15px; }
.hm-in:focus, .hm-sel:focus, .hm-ta:focus { outline: none; border-color: var(--rust); }
.hm-ta { min-height: 130px; resize: vertical; line-height: 1.5; }

/* ---------- okna, formularz ---------- */
.hm-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(5,6,4,.8); display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; overflow-y: auto; }
.hm-modal__b { width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.hm-modal__t { font-family: 'Oswald', sans-serif; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hm-modal__x { margin-left: auto; cursor: pointer; color: var(--bone-dim); font-size: 20px; border: 0; background: none; }
.hm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.hm-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .hm-form { grid-template-columns: 1fr; } }
.hm-fld label { display: block; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 5px; }
.hm-fld small { display: block; font-size: 12px; color: var(--steel); margin-top: 4px; line-height: 1.4; }
.hm-fld.err .hm-in, .hm-fld.err .hm-sel, .hm-fld.err .hm-ta { border-color: var(--hm-err); } .hm-fld .hm-err { color: var(--hm-err); font-size: 12px; margin-top: 4px; }
.hm-note { padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; line-height: 1.5; color: var(--bone-dim); }
.hm-note--ok { border-color: var(--hm-ok); } .hm-note--warn { border-color: var(--hm-warn); } .hm-note--err { border-color: var(--hm-err); color: #f0b4a8; }
.hm-desc { white-space: pre-wrap; line-height: 1.6; font-size: 15px; margin: 12px 0; overflow-wrap: anywhere; }
.hm-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 14px; margin: 10px 0; }
.hm-kv dt { color: var(--bone-dim); } .hm-kv dd { overflow-wrap: anywhere; } .hm-kv a { color: var(--hm-acc); }
.hm-status { display: inline-block; padding: 2px 10px; border-radius: 11px; font-size: 12px; border: 1px solid; }
.hm-status--pending { color: var(--hm-warn); border-color: var(--hm-warn); } .hm-status--approved { color: var(--hm-ok); border-color: var(--hm-ok); } .hm-status--rejected { color: var(--hm-err); border-color: var(--hm-err); }
.hm-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; }
.hm-row__m { flex: 1; min-width: 220px; }
.hm-diff { font-size: 13px; color: var(--bone-dim); margin-top: 6px; } .hm-diff b { color: var(--hm-acc); font-weight: 500; }

/* ---------- RATS na stronie głównej ---------- */
.hm-rats { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 860px) { .hm-rats { grid-template-columns: 1fr; } }
.hm-rats__l, .hm-rats__r { padding: 24px; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 4px; }
.hm-rats__l p { color: var(--bone-dim); line-height: 1.6; margin: 10px 0 16px; }
.hm-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hm-quick a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--bone-dim); text-decoration: none; font-size: 13px; } .hm-quick a:hover { color: var(--bone); border-color: var(--rust); }
.hm-ip { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-family: Consolas, monospace; font-size: 17px; }
.hm-comm { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.hm-foot { margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--steel); font-size: 13px; }
.hm-foot a { color: var(--bone-dim); text-decoration: none; } .hm-foot a:hover { color: var(--bone); }
@media (max-width: 720px) { .hm-nav { padding-top: 70px; } .hm-links { margin-left: 0; } .hm-hero { padding-top: 44px; } .hm-hero__rings { width: 520px; height: 520px; } }
@media (prefers-reduced-motion: reduce) { .hm-hero__rings::after { animation: none; } }

.hm-links a.hm-login { border-color: var(--line); background: var(--surface); margin-left: 8px; color: var(--bone); }
.hm-links a.hm-login:hover { border-color: var(--rust); }

/* statystyki BattleMetrics w karcie serwera RATS */
.hm-sv { padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.06); } .hm-sv:first-child { border-top: 0; padding-top: 0; }
.hm-stat { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.hm-stat__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-stat__n { font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: .04em; }
.hm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; }
.hm-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-err); } .hm-pill.on i { background: var(--hm-ok); box-shadow: 0 0 6px var(--hm-ok); } .hm-pill.on { border-color: var(--hm-ok); }
.hm-bar { height: 6px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; } .hm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--toxic), var(--rust)); }
.hm-stat__meta { font-size: 12px; line-height: 1.5; } .hm-spark { width: 100%; max-width: 280px; height: 44px; display: block; }
.hm-stat__bm { font-size: 13px; color: var(--hm-acc); text-decoration: none; } .hm-stat__bm:hover { text-decoration: underline; }

/* Serwer RATS na stronie głównej: jeden szeroki kafelek z serwerami obok siebie i przycisk pod nim */
.hm-rats { display: block; }
.hm-rats__r { padding: 22px 24px; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 4px; }
#hm-lista-sr { display: block; }
#hm-lista-sr .hm-sv { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07); }
#hm-lista-sr .hm-sv:first-child { border-top: 0; padding-top: 0; } #hm-lista-sr .hm-sv:last-child { padding-bottom: 0; }
#hm-lista-sr .hm-ip { margin-top: 0; min-width: 330px; flex: 0 0 auto; }
#hm-lista-sr .hm-stat { flex: 1; min-width: 300px; margin-top: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
#hm-lista-sr .hm-bar { width: 100px; flex: 0 0 100px; } #hm-lista-sr .hm-spark { width: 200px; height: 34px; }
#hm-lista-sr .hm-stat__sp { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { #hm-lista-sr .hm-ip { min-width: 0; } }
#hm-lista-sr .hm-stat__top { flex: 0 0 auto; } #hm-lista-sr .hm-stat__meta { flex: 1 1 140px; }
