/* ==========================================================================
   GupkiCraft – system wizualny (strona, panel gracza, panel admina)
   ========================================================================== */

:root {
  --bg: #070a09;
  --bg-2: #0a0e0c;
  --surface: #0f1512;
  --surface-2: #141c18;
  --surface-3: #1a241f;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --text: #eef3ef;
  --text-2: #b4c0b9;
  --muted: #7f8c85;
  --accent: #39ff14;
  --accent-2: #2fd90f;
  --accent-soft: rgba(57, 255, 20, .1);
  --accent-line: rgba(57, 255, 20, .35);
  --accent-ink: #061102;
  --success: #39ff14;
  --warn: #ffc53d;
  --danger: #ff5a5a;
  --info: #5cb8ff;
  --twitch: #9146ff;
  --kick: #53fc18;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px var(--accent-line), 0 8px 32px -8px rgba(57, 255, 20, .35);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f2a24; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c3a32; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 1.5em; height: 1.5em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.container-sm { max-width: 820px; }
.container-md { max-width: 980px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-1 { gap: .35rem; } .gap-2 { gap: .6rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.span-2 { grid-column: span 2; }
.split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.split-r { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
@media (max-width: 900px) { .split, .split-r { grid-template-columns: minmax(0, 1fr); } }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .container { padding-inline: 16px; }
}

/* ---------- Typografia pomocnicza ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.large { font-size: 1.1rem; }
.mono { font-family: var(--mono); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.accent { color: var(--accent); }
.danger { color: var(--danger); }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--text-2); }
.prose { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--accent); }

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.1rem;
  font: 600 .92rem/1.2 var(--font);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { --btn-bg: var(--surface-3); --btn-bd: rgba(255, 255, 255, .2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); box-shadow: 0 6px 24px -8px rgba(57, 255, 20, .6); }
.btn-primary:hover { --btn-bg: #5bff3d; --btn-bd: #5bff3d; box-shadow: 0 8px 30px -6px rgba(57, 255, 20, .75); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: var(--accent-line); }
.btn-outline:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: transparent; }
.btn-danger { --btn-bg: rgba(255, 90, 90, .1); --btn-fg: #ff8a8a; --btn-bd: rgba(255, 90, 90, .35); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #1a0505; --btn-bd: var(--danger); }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; --btn-bd: var(--discord); }
.btn-discord:hover { --btn-bg: #6a75ff; --btn-bd: #6a75ff; }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .82rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 42px; }
.btn-icon.btn-sm { width: 34px; }

/* ---------- Karty ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 21, 18, .9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-sm { padding: 1rem 1.15rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.card-hover:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-accent { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(57, 255, 20, .05), 0 20px 50px -30px rgba(57, 255, 20, .5); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .6rem; }
.card-header h2 .icon { color: var(--accent); }
.card-body { padding: 1.25rem; }
.card-title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 600; margin: 0 0 .75rem; }
.card-title .icon { color: var(--accent); }
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ---------- Odznaki ---------- */
.badge {
  --b: var(--muted);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  color: var(--b); background: color-mix(in srgb, var(--b) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--b) 30%, transparent);
}
.badge .icon { width: 13px; height: 13px; }
.badge-success { --b: var(--success); }
.badge-warn { --b: var(--warn); }
.badge-danger { --b: var(--danger); }
.badge-info { --b: var(--info); }
.badge-neutral { --b: #9aa7a0; }
.badge-accent { --b: var(--accent); }
.badge-twitch { --b: #b38bff; }
.badge-kick { --b: var(--kick); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-live { background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); animation: pulse 1.6s infinite; }
.dot-online { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 700;
}
.count-warn { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

/* ---------- Formularze ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field + .field { margin-top: 1.1rem; }
.label { font-size: .85rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: .5rem; }
.label .opt { color: var(--muted); font-weight: 400; }
.hint { font-size: .8rem; color: var(--muted); }
.error-text { font-size: .8rem; color: var(--danger); display: flex; align-items: center; gap: .35rem; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: .65rem .9rem;
  font: 400 .95rem/1.4 var(--font); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #5e6a64; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57, 255, 20, .15); background: #0b100d; }
.input[readonly] { color: var(--muted); background: var(--surface); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237f8c85' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.is-invalid .input, .is-invalid .textarea, .is-invalid .select { border-color: rgba(255, 90, 90, .6); }
.input-group { display: flex; gap: .5rem; }
.input-group .input { flex: 1; }
.check { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.char-count { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--danger); }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; height: 100%;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-2);
  font-size: .88rem; font-weight: 500; color: var(--text-2); transition: .2s;
}
.choice span .icon { color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.choice input:checked + span .icon { color: var(--accent); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(57, 255, 20, .25); }

/* ---------- Alerty / flash ---------- */
.alert {
  --a: var(--info);
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--a) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  color: var(--text); font-size: .92rem;
}
.alert > .icon { color: var(--a); margin-top: .15rem; }
.alert-success { --a: var(--success); }
.alert-warn { --a: var(--warn); }
.alert-danger { --a: var(--danger); }
.flash-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow); animation: slideIn .35s var(--ease); }
.flash-stack .alert.leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Awatary ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-square { border-radius: 10px; }
.mc-head { image-rendering: pixelated; border-radius: 6px; background: var(--surface-3); }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: .75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .row-link { cursor: pointer; }
.table .unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
}

/* ---------- Puste stany, paginacja, zakładki ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { width: 42px; height: 42px; margin: 0 auto 1rem; color: #3a4841; }
.empty h3 { color: var(--text); margin-bottom: .35rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: 8px; border: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
.pagination a:hover { border-color: var(--accent-line); color: var(--text); }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.tabs { display: flex; gap: .25rem; padding: .3rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 9px; font-size: .86rem; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tabs .count { background: var(--surface-3); color: var(--text-2); }
.tabs a.active .count { background: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.toolbar .search { position: relative; flex: 1 1 240px; }
.toolbar .search .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search .input { padding-left: 2.5rem; }
kbd { font-family: var(--mono); font-size: .75rem; padding: .1rem .4rem; border-radius: 5px; border: 1px solid var(--border-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--text-2); }

/* ---------- Statystyki ---------- */
.stat { display: flex; gap: 1rem; align-items: center; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.stat-icon.warn { background: rgba(255, 197, 61, .1); color: var(--warn); }
.stat-icon.danger { background: rgba(255, 90, 90, .1); color: var(--danger); }
.stat-icon.info { background: rgba(92, 184, 255, .1); color: var(--info); }
.stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 1rem; }
.bars .bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 28px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), rgba(57, 255, 20, .35)); position: relative; }
.bars .bar i[data-v="0"] { background: var(--surface-3); }
.bars .bar span { font-size: .65rem; color: var(--muted); }
.bars .bar:hover i::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 600 .72rem var(--font); font-style: normal; color: var(--text); background: var(--surface-3); padding: .1rem .4rem; border-radius: 5px; }

/* ---------- Oś czasu / wątek ticketu ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -1.6rem; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline-item.success::before { border-color: var(--success); background: var(--accent-soft); }
.timeline-item.warn::before { border-color: var(--warn); }
.timeline-item.danger::before { border-color: var(--danger); }
.thread { display: flex; flex-direction: column; gap: 1rem; }
.msg { display: flex; gap: .85rem; align-items: flex-start; }
.msg-body { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: .85rem 1.1rem; }
.msg-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.msg-meta strong { color: var(--text); font-size: .88rem; }
.msg-text { color: var(--text-2); overflow-wrap: anywhere; }
.msg-text p { margin-bottom: .6em; }
.msg.staff .msg-body { background: linear-gradient(180deg, rgba(57, 255, 20, .06), rgba(57, 255, 20, .02)); border-color: rgba(57, 255, 20, .22); }
.msg.internal .msg-body { background: rgba(255, 197, 61, .06); border-color: rgba(255, 197, 61, .3); border-style: dashed; }
.msg.system { justify-content: center; font-size: .8rem; color: var(--muted); }
.msg.system span { padding: .3rem .8rem; border: 1px dashed var(--border-2); border-radius: 999px; }

/* ---------- Postęp ---------- */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); box-shadow: 0 0 12px var(--accent); }

/* ---------- Dialog ---------- */
dialog { border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .25s var(--ease); }
.dialog-body { padding: 1.5rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-2); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* ==========================================================================
   STRONA GŁÓWNA
   ========================================================================== */
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.site-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(57, 255, 20, .12), transparent 70%),
    radial-gradient(35% 30% at 85% 20%, rgba(57, 255, 20, .07), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(57, 255, 20, .06), transparent 70%);
}
.site-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.announcement { background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 600; text-align: center; padding: .5rem 1rem; position: relative; z-index: 51; }
.announcement a { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 10, 9, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(7, 10, 9, .9); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo svg { height: 46px; width: auto; transition: filter .3s; }
.logo:hover svg { filter: drop-shadow(0 0 10px rgba(57, 255, 20, .5)); }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link { position: relative; padding: .5rem .8rem; font-size: .9rem; font-weight: 500; color: var(--text-2); border-radius: 8px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-link.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: .85rem; font-weight: 600; transition: border-color .2s; }
.user-chip:hover { border-color: var(--accent-line); }
.user-chip .avatar { width: 30px; height: 30px; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 16px 1.5rem; background: rgba(7, 10, 9, .98); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: .8rem 1rem; font-size: 1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: .75rem; }
  .nav-actions .btn { width: 100%; }
}

.section { padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; position: relative; }
.section-sm { padding: 3rem 0; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { margin-top: .6rem; }

/* Hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 .hl { color: var(--accent); text-shadow: 0 0 40px rgba(57, 255, 20, .35); }
.hero .lead { max-width: 560px; margin: 1.25rem 0 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-visual .shot {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(57, 255, 20, .08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease);
  aspect-ratio: 16 / 10; background: var(--surface);
}
.hero-visual .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual:hover .shot { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-visual::before { content: ""; position: absolute; inset: 10% -5% -10% 10%; background: radial-gradient(closest-side, rgba(57, 255, 20, .25), transparent); filter: blur(30px); z-index: -1; }
.server-card {
  position: absolute; left: -24px; bottom: -28px; min-width: 260px;
  background: rgba(15, 21, 18, .92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.server-card .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.server-card .ip { font-family: var(--mono); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero-visual .shot { transform: none; }
  .server-card { position: relative; left: 0; bottom: 0; margin-top: -2rem; margin-inline: 1rem; }
}

/* Licznik edycji */
.uptime { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.uptime div { text-align: center; padding: .7rem .25rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.uptime b { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--accent); }
.uptime span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Kafelki funkcji */
.feature .feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(57, 255, 20, .2); margin-bottom: 1rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--text-2); font-size: .93rem; }

/* Kroki (jak dołączyć) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { position: relative; padding: 1.5rem 1.25rem; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--accent-line); line-height: 1; margin-bottom: .75rem; }
.step h3 { font-size: 1rem; margin-bottom: .35rem; }
.step p { font-size: .88rem; color: var(--text-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Newsy */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card .meta { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }
.news-card h3 { font-size: 1.15rem; }
.news-card .prose { font-size: .93rem; }
.news-card.pinned { border-color: var(--accent-line); }
.news-featured { grid-column: span 2; }
@media (max-width: 900px) { .news-featured { grid-column: auto; } }

/* Ciekawostki */
.fact { text-align: left; }
.fact .num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.02em; margin-bottom: .6rem; }
.fact h3 { font-size: 1rem; margin-bottom: .3rem; }
.fact p { font-size: .9rem; color: var(--text-2); }

/* Karuzela (scroll-snap, bez bibliotek) */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .5rem; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: .5rem; }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 85%; } }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--border); cursor: zoom-in; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.9) brightness(.9); }
.gallery-item:hover img { transform: scale(1.05); filter: none; }
.lightbox { max-width: min(1200px, 94vw); background: #000; border: 0; }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: .75rem; right: .75rem; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: .75rem; } .lightbox .lb-next { right: .75rem; }

/* Streamerzy */
.streamer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; height: 100%; }
.streamer .ava { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--border-2); background: linear-gradient(135deg, #1f2c25, #0f1512); display: grid; place-items: center; }
.streamer .ava::before { content: attr(data-initial); font-size: 2rem; font-weight: 800; color: var(--accent); }
.streamer .ava img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.streamer.is-live .ava { border-color: #ff3b3b; box-shadow: 0 0 0 4px rgba(255, 59, 59, .15); }
.streamer .live-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: #ff3b3b; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .08em; padding: .1rem .45rem; border-radius: 4px; }
.streamer h3 { margin: .25rem 0 0; font-size: 1rem; }
.streamer .title { font-size: .8rem; color: var(--muted); min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.streamer .btn { margin-top: auto; width: 100%; }
.btn-twitch { --btn-bg: var(--twitch); --btn-fg: #fff; --btn-bd: var(--twitch); }
.btn-twitch:hover { --btn-bg: #a36bff; --btn-bd: #a36bff; }
.btn-kick { --btn-bg: var(--kick); --btn-fg: #041000; --btn-bd: var(--kick); }
.streamer-join { border-style: dashed; justify-content: center; }
.streamer-join .plus { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--accent-line); display: grid; place-items: center; color: var(--accent); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border-2); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 1rem; }
.stream-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stream-tabs button.active { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }

/* YouTube (lekki embed – iframe ładowany po kliknięciu) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--border-2); cursor: pointer; width: 100%; padding: 0; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(57, 255, 20, .15); transition: transform .3s var(--ease); }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt .play .icon { width: 30px; height: 30px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--text-2); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: radial-gradient(80% 120% at 50% 0%, rgba(57, 255, 20, .14), transparent 70%), var(--surface); }
.cta h2 { max-width: 640px; margin-inline: auto; }
.cta p { max-width: 520px; margin: .75rem auto 1.75rem; color: var(--text-2); }

/* Regulamin */
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: .15rem; }
.toc a { font-size: .85rem; color: var(--muted); padding: .4rem .75rem; border-left: 2px solid var(--border); transition: .2s; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); }
.rule-section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.rule-section h2 { font-size: 1.3rem; display: flex; gap: .75rem; align-items: baseline; }
.rule-section h2 .n { color: var(--accent); font-family: var(--mono); font-size: .95rem; }
.rule-section ul, .rule-section ol { padding-left: 1.2rem; color: var(--text-2); margin: 0; }
.rule-section li { margin: .45rem 0; }
.rule-section li::marker { color: var(--accent); }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* Stopka */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer-grid a { display: block; color: var(--text-2); font-size: .9rem; padding: .2rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--accent); font-weight: 600; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Animacje pojawiania się */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Strona pożegnalna (tryb między edycjami) */
.farewell { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
/* Wydajność: bez filtrów (blur/grayscale) i bez animacji pojedynczych zdjęć – cały kolaż
   to jedna warstwa GPU przesuwana samym transformem, a przyciemnienie robi osobna, statyczna warstwa. */
.fw-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.fw-collage { position: absolute; inset: -12% -8%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; opacity: .3; transform: rotate(-6deg) translate3d(0, 0, 0); will-change: transform; animation: fwDrift 40s ease-in-out infinite alternate; }
.fw-collage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--surface); }
.fw-shade { position: absolute; inset: 0; background: radial-gradient(55% 50% at 50% 40%, rgba(7, 10, 9, .75), rgba(7, 10, 9, .3) 70%, rgba(7, 10, 9, .9) 100%); }
@keyframes fwDrift { to { transform: rotate(-6deg) translate3d(0, -40px, 0); } }
.fw { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 5rem) 20px 3rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.fw-logo svg { height: 64px; }
.fw h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); margin: .25rem 0 0; }
.fw h1 .hl { color: var(--accent); text-shadow: 0 0 40px rgba(57, 255, 20, .35); }
.fw .lead { max-width: 620px; }
.fw-next { display: flex; flex-direction: column; align-items: center; margin-top: .75rem; }
.fw-next-label { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fw-next-title { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); font-weight: 700; }
.fw-next-title b { color: var(--accent); }
.fw-year { font-size: clamp(5rem, 3rem + 12vw, 10rem); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 60px rgba(57, 255, 20, .25); background: linear-gradient(180deg, rgba(57, 255, 20, .25), transparent 75%); -webkit-background-clip: text; background-clip: text; }
.fw-countdown { width: 100%; max-width: 440px; }
.fw-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.fw-stats div { min-width: 130px; padding: .9rem 1.1rem; border-radius: var(--radius); background: rgba(15, 21, 18, .92); border: 1px solid var(--border); display: flex; flex-direction: column; }
.fw-stats strong { font-size: 1.6rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fw-stats span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fw-cta { margin-top: 1rem; }
.fw-footer { text-align: center; padding: 1.5rem 16px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); background: rgba(7, 10, 9, .8); }
.fw-footer a { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .fw-collage { grid-template-columns: repeat(2, 1fr); } .fw-stats div { min-width: calc(50% - .5rem); } }

/* ==========================================================================
   PANELE (gracz + admin)
   ========================================================================== */
.panel-header { position: sticky; top: 0; z-index: 40; height: 64px; background: rgba(7, 10, 9, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.panel-header .container { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.panel-header .logo svg { height: 38px; }
.panel-tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: .2rem .55rem; border: 1px solid var(--accent-line); border-radius: 6px; }
.panel-nav { display: flex; gap: .25rem; }
.panel-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--text-2); }
.panel-nav a:hover { color: var(--text); background: var(--surface-2); }
.panel-nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.panel-main { padding: 2rem 0 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--muted); }
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a:hover { color: var(--text); }
@media (max-width: 760px) {
  .panel-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; justify-content: space-around; background: rgba(7, 10, 9, .96); border-top: 1px solid var(--border); padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); backdrop-filter: blur(12px); }
  .panel-nav a { flex-direction: column; gap: .15rem; font-size: .7rem; padding: .35rem .5rem; }
  .panel-nav a.active { box-shadow: none; color: var(--accent); background: transparent; }
  .panel-main { padding-bottom: 6rem; }
  .panel-header .user-chip span { display: none; }
  .panel-header .user-chip { padding-right: .25rem; }
}

/* Karta profilu gracza */
.profile { position: relative; overflow: hidden; }
.profile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(120deg, rgba(57, 255, 20, .22), rgba(57, 255, 20, .02) 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px); border-bottom: 1px solid var(--border); }
.profile-inner { position: relative; padding-top: 36px; }
.profile .avatar-xl { border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--accent-line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

.status-hero { display: flex; gap: 1.25rem; align-items: center; }
.status-hero .ring { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.status-hero .ring .icon { width: 30px; height: 30px; }
.ring-success { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ring-warn { background: rgba(255, 197, 61, .1); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .35); }
.ring-danger { background: rgba(255, 90, 90, .1); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .35); }
.ring-neutral { background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-2); }

/* ---------- Panel admina (sidebar) ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--border); padding: 1.1rem .85rem; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.25rem; }
.sidebar .brand svg { height: 36px; width: auto; }
.side-group { margin-top: 1.1rem; }
.side-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #56625b; padding: 0 .75rem .4rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.side-link .icon { color: var(--muted); }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-link.active .icon { color: var(--accent); }
.side-link .count { margin-left: auto; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: .65rem; padding: .75rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.sidebar .me .grow { line-height: 1.25; }
.admin-top, .scrim { display: none; }
.admin-main { min-width: 0; padding: 2rem clamp(1rem, 2.5vw, 2.5rem) 4rem; }
@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .admin-top { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 50; height: 58px; padding: 0 1rem; background: rgba(7, 10, 9, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .admin-top svg.logo-svg { height: 32px; width: auto; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: .3s; }
  .scrim.show { opacity: 1; visibility: visible; }
}

/* Recenzja WL */
.review-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items: start; }
.review-side { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.answer-block { padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.answer-block .q { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.answer-block .a { color: var(--text); overflow-wrap: anywhere; }
.quick-reasons { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick-reasons button { font: 500 .78rem var(--font); padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); cursor: pointer; text-align: left; }
.quick-reasons button:hover { border-color: rgba(255, 90, 90, .5); color: var(--text); }
@media (max-width: 1100px) { .review-grid { grid-template-columns: 1fr; } .review-side { position: static; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
