/* BJSW weboldal – sötét, második világháborús hangulat (a killstreak-sáv színeivel). AGENTS.md 34. */
@font-face {
  font-family: "Black Ops One";
  src: url("../assets/fonts/BlackOpsOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0d0e0b;
  --bg2: #13150f;
  --panel: #191b15;
  --panel2: #20231b;
  --line: #2f3428;
  --line2: #3d4334;
  --gold: #d4a940;
  --gold2: #f0c95a;
  --gold-dim: #8f7330;
  --text: #ebe6d6;
  --muted: #a8a28f;
  --dim: #78735f;
  --red: #d2402f;
  --green: #7cc35a;
  --blue: #5d8fd6;
  --khaki: #8a8a5c;
  --radius: 4px;
  --head: "Black Ops One", "Impact", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(212, 169, 64, 0.07), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--gold); }
h3 { font-size: 1.15rem; color: var(--gold2); }
p { margin: 0 0 0.9em; }
code, .mono { font-family: Consolas, "DejaVu Sans Mono", Menlo, monospace; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- fejléc */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #16180f 0%, #0f110b 100%);
  border-bottom: 2px solid var(--gold-dim);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 14px; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--head); font-weight: 400; font-size: 1.35rem; color: var(--gold); letter-spacing: 0.06em; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--text); padding: 8px 11px; border-radius: var(--radius);
  font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.03em;
}
.nav a:hover { background: var(--panel2); text-decoration: none; color: var(--gold2); }
.nav a.active { color: var(--gold2); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.lang button {
  background: transparent; color: var(--muted); border: 0; padding: 6px 9px; cursor: pointer;
  font: 600 0.8rem var(--body);
}
.lang button.on { background: var(--gold); color: #1a1405; }
.menu-btn {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line2);
  color: var(--text); border-radius: var(--radius); padding: 7px 10px; font-size: 1.1rem; cursor: pointer;
}
.who { display: flex; align-items: center; gap: 8px; }
.who img { width: 26px; height: 26px; }
.who .name { font-weight: 600; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .topbar-in { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 12px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav-tools { padding-top: 6px; justify-content: space-between; }
}

/* ---------------------------------------------------------------- elrendezés */
main { flex: 1; width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px 48px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 38px; scroll-margin-top: 80px; }
.section > h2 { display: flex; align-items: center; gap: 10px; }
.section > h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold-dim), transparent); }

/* kártya: a killstreak-sáv stílusában (sötét lemez, arany felső él) */
.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.card h3 { margin-bottom: 0.4em; }
.card.flat { border-top-color: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1b1505;
  border: 1px solid #6e561f; border-radius: var(--radius); padding: 10px 18px;
  font: 400 1rem var(--head); letter-spacing: 0.04em; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 #5a4617;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--gold2); border-color: var(--gold-dim); box-shadow: none; }
.btn.red { background: linear-gradient(180deg, #e0584a, #b33424); color: #fff; border-color: #6d1d14; box-shadow: 0 2px 0 #5c1810; }
.btn.small { padding: 6px 11px; font-size: 0.85rem; }

/* ---------------------------------------------------------------- nyitóoldal */
.hero {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--gold-dim);
  background: #000 center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 8, 0.96) 0%, rgba(10, 11, 8, 0.8) 45%, rgba(10, 11, 8, 0.55) 100%);
}
.hero-in {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 44px 16px 40px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 28px; } }
.hero-logo { width: 150px; height: 150px; float: left; margin: 0 18px 8px 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
@media (max-width: 520px) { .hero-logo { width: 96px; height: 96px; } }
.hero h1 { color: var(--text); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6); }
.hero h1 span { color: var(--gold); }
.hero .lead { font-size: 1.12rem; color: #d8d2bf; clear: left; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.status-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.status-card .row:last-of-type { border-bottom: 0; }
.status-map { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.status-map img { width: 112px; height: 84px; object-fit: cover; border: 1px solid var(--line2); border-radius: 3px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.off { background: var(--red); }
.hostname { font-weight: 700; word-break: break-word; }
.plist { max-height: 260px; overflow: auto; margin-top: 8px; border-top: 1px solid var(--line); }
.plist table td { padding: 4px 6px; }

.join-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #0b0c09; border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px 12px;
}
.join-box code { font-size: 1.05rem; color: var(--gold2); word-break: break-all; }
.steps { margin: 10px 0 0; padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.feature .ico-txt {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  font: 1.3rem var(--head); color: var(--gold); border: 2px solid var(--gold-dim); border-radius: 50%;
}

/* ---------------------------------------------------------------- táblák */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #10120d; color: var(--gold); font: 400 0.85rem var(--head); letter-spacing: 0.04em; position: sticky; top: 0; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--gold2); }
th.sort.active::after { content: " ▼"; font-size: 0.7em; }
th.sort.active.asc::after { content: " ▲"; }
tbody tr:hover { background: rgba(212, 169, 64, 0.06); }
tbody tr.click { cursor: pointer; }
td.r, th.r { text-align: right; }
.rank-cell { display: flex; align-items: center; gap: 8px; }
.rank-cell img { width: 28px; height: 28px; }
.pos { font: 1rem var(--head); color: var(--muted); width: 2.2em; display: inline-block; }
tr.top1 .pos { color: #f4d06a; } tr.top2 .pos { color: #d7d7d7; } tr.top3 .pos { color: #d28a4e; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tools input, .tools select { flex: 1 1 200px; max-width: 320px; }
.tools label.check { display: flex; gap: 7px; align-items: center; margin: 0; font-weight: 400; cursor: pointer; white-space: nowrap; }
.tools label.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }

/* ---------------------------------------------------------------- űrlapok */
label { display: block; font-weight: 600; margin: 12px 0 5px; color: #ddd6c2; }
input[type=text], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; background: #0b0c09; color: var(--text); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 10px 11px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-dim); border-color: var(--gold-dim); }
textarea { min-height: 130px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.hint { font-size: 0.85rem; color: var(--dim); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.msg { padding: 10px 12px; border-radius: var(--radius); margin: 12px 0; border: 1px solid; }
.msg.ok { background: rgba(124, 195, 90, 0.1); border-color: rgba(124, 195, 90, 0.4); color: #bfe6a9; }
.msg.err { background: rgba(210, 64, 47, 0.12); border-color: rgba(210, 64, 47, 0.45); color: #f2b0a6; }
.msg.info { background: rgba(212, 169, 64, 0.1); border-color: rgba(212, 169, 64, 0.35); color: #f0dfb0; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line2); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  background: transparent; border: 0; color: var(--muted); padding: 10px 14px; cursor: pointer;
  font: 400 1rem var(--head); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs button.on { color: var(--gold2); border-bottom-color: var(--gold); }

/* csillagok */
.stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: #4a4636; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; font-size: 2rem; line-height: 1; color: #4a4636; cursor: pointer; padding: 0 2px; }
.star-pick button.on { color: var(--gold); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review .reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--gold-dim); background: rgba(212, 169, 64, 0.06); }
.review .text { white-space: pre-wrap; word-break: break-word; }
.bar { height: 8px; background: #2a2c22; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold2)); }
.dist { display: grid; grid-template-columns: 2.4em 1fr 2.5em; gap: 8px; align-items: center; font-size: 0.9rem; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--line2); color: var(--muted); white-space: nowrap;
}
.badge.gold { color: #1a1405; background: var(--gold); border-color: var(--gold); }
.badge.green { color: #bfe6a9; border-color: rgba(124, 195, 90, 0.5); }
.badge.red { color: #f2b0a6; border-color: rgba(210, 64, 47, 0.55); }
.badge.blue { color: #b8cff0; border-color: rgba(93, 143, 214, 0.55); }

/* ---------------------------------------------------------------- mód oldal */
.toc { display: flex; gap: 8px; flex-wrap: wrap; }
.toc a { padding: 6px 12px; border: 1px solid var(--line2); border-radius: 16px; color: var(--text); font-size: 0.9rem; }
.toc a:hover { border-color: var(--gold); text-decoration: none; }
.ladder { display: grid; gap: 8px; }
.ks {
  display: grid; grid-template-columns: 64px 84px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold-dim);
  border-radius: var(--radius); padding: 8px 12px;
}
.ks .kills { font: 1.5rem var(--head); color: var(--gold); text-align: center; }
.ks .kills small { display: block; font: 0.7rem var(--body); color: var(--dim); letter-spacing: 0.05em; }
.ks .icon { width: 84px; height: 42px; display: grid; place-items: center; }
.ks .icon img { max-width: 84px; max-height: 42px; }
.ks .icon .ico-txt { font: 0.95rem var(--head); color: var(--khaki); }
.ks .key { font-family: Consolas, monospace; color: var(--gold2); font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 600px) {
  .ks { grid-template-columns: 54px minmax(0, 1fr); }
  .ks .icon { display: none; }
  .ks .key { grid-column: 2; }
}
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rank { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; }
.rank img { width: 36px; height: 36px; }
.rank b { display: block; font-size: 0.85rem; line-height: 1.2; }
.rank span { font-size: 0.78rem; color: var(--dim); }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); }
.map img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map b {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font: 400 1.05rem var(--head);
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- játékos oldal */
.player-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.player-head .big-rank { width: 96px; height: 96px; }
.player-head h1 { margin: 0; }
.prog { margin-top: 10px; max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stat span { display: block; font-size: 0.8rem; color: var(--muted); }
.stat b { font: 400 1.35rem var(--head); color: var(--gold2); }
.weapon { display: flex; gap: 10px; align-items: center; }
.weapon img { width: 96px; height: 48px; object-fit: contain; flex: none; }
.weapon > div { min-width: 0; }
.stat.weapon b { font-size: 1.05rem; overflow-wrap: break-word; }
.wstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
td.rank-td { padding-right: 24px; }
@media (max-width: 480px) { .weapon img { width: 64px; height: 32px; } }

/* ---------------------------------------------------------------- admin */
.adm-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.adm-item:last-child { border-bottom: 0; }
.adm-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs a img { height: 90px; border: 1px solid var(--line2); border-radius: 3px; }

/* ---------------------------------------------------------------- lábléc */
footer { border-top: 1px solid var(--line); background: #0a0b08; color: var(--dim); font-size: 0.85rem; }
footer .wrap { padding-top: 18px; padding-bottom: 22px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }

/* ---------------------------------------------------------------- játékbeli bejelentkező képernyő */
#login-stage { position: fixed; inset: 0; z-index: 100; background: #000; }
#login-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#login-stage input {
  position: absolute; background: transparent; border: 0; outline: 0; color: transparent;
  caret-color: transparent; font-size: 16px; padding: 0; margin: 0;
}
#login-stage input::selection { background: transparent; }
#login-stage .hot { position: absolute; cursor: pointer; background: transparent; border: 0; padding: 0; }
#login-stage .hot:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); }

.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--gold); color: #000; padding: 8px; }

/* ---------------------------------------------------------------- "vissza a tetejére" gomb (A mód oldal) */
.totop {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--panel2); color: var(--gold2); border: 2px solid var(--gold-dim);
  font-size: 1.15rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover, .totop:focus-visible { border-color: var(--gold); color: #fff; outline: none; }

/* főoldal: Újdonságok (2026-10-27) */
.news { display: grid; gap: 12px; }
.news-item { display: grid; gap: 16px; align-items: start; }
.news-item.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.news-item[hidden] { display: none; }
.news-item h3 { margin: 2px 0 6px; }
.news-item p { margin: 0; color: var(--muted); }
.news-date { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.news-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line2); border-radius: var(--radius); }
.news-img:hover img { border-color: var(--gold-dim); }
.news-more { margin-top: 12px; }
@media (max-width: 720px) { .news-item.has-img { grid-template-columns: minmax(0, 1fr); } }
.hero .cta-news { margin-top: 10px; }
.news-img { cursor: zoom-in; }

/* kép nagyítása ugyanazon a lapon (lightbox, 2026-10-27): a kép mellé kattintva vagy az X-szel zárul */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, 0.86); cursor: zoom-out; animation: lb-in 0.15s ease-out;
}
.lightbox figure { position: relative; margin: 0; cursor: default; max-width: 100%; max-height: 100%; }
.lightbox img {
  display: block; max-width: min(1920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); width: auto; height: auto;
  border: 1px solid var(--gold-dim); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}
.lightbox-x {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: rgba(13, 14, 11, 0.85); color: var(--gold2);
  font: 600 26px/1 var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-x:hover, .lightbox-x:focus-visible { background: var(--gold); color: #1b1505; outline: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .lightbox { padding: 10px; } .lightbox img { max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); } }
