/* ==========================================================================
   Wygląd gry: zmienne (design tokens). Żeby zmienić kolorystykę całej gry,
   zmień wartości w tym bloku – reszta stylów korzysta wyłącznie z nich.
   ========================================================================== */
:root {
  /* paleta marki */
  --brand-navy: #052244;
  --brand-orange: #E75021;
  --brand-light: #F5F7FD;
  --brand-white: #FFFFFF;

  /* role kolorów */
  --color-primary: var(--brand-navy);          /* menu, nagłówki, linki, wyróżnienia */
  --color-primary-hover: #0b3a6e;
  --color-primary-soft: #e8edf8;               /* jasne tło elementów w kolorze głównym */
  --color-primary-soft-border: #c5d0e6;
  --color-on-primary: var(--brand-white);      /* tekst na granatowym tle */
  --color-on-primary-muted: rgba(255, 255, 255, 0.72);

  --color-accent: var(--brand-orange);         /* główne przyciski akcji, aktywne elementy */
  --color-accent-hover: #c9431a;
  --color-accent-soft: #fdece5;
  --color-on-accent: var(--brand-white);

  --color-bg: var(--brand-light);              /* tło strony */
  --color-surface: var(--brand-white);         /* karty, tabele, okna */
  --color-surface-alt: var(--brand-light);     /* nagłówki tabel, wiersze kategorii */

  --color-text: #0e1f36;
  --color-text-secondary: #34465e;
  --color-text-muted: #5d6c82;
  --color-text-disabled: #9aa5b6;
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-accent);

  --color-border: #e2e7f2;
  --color-border-strong: #c9d1e1;

  /* znaczenia finansowe: wzrost / spadek, kupno / sprzedaż */
  --color-up: #12803c;
  --color-up-hover: #0e6a31;
  --color-up-soft: #e6f5ec;
  --color-up-strong: #0d5a2a;
  --color-down: #c8232c;
  --color-down-hover: #a81c24;
  --color-down-soft: #fbe8e9;
  --color-down-strong: #8f1820;

  --color-warning: #d48806;
  --color-warning-soft: #fff6e0;
  --color-warning-strong: #8a5a00;

  --color-favorite: var(--color-accent);      /* serduszko „ulubione” */

  --color-backdrop: rgba(5, 34, 68, 0.55);

  /* wykresy (Chart.js czyta te wartości przez theme.js) */
  --chart-line: var(--color-primary);
  --chart-fill: rgba(5, 34, 68, 0.08);
  --chart-reference: var(--color-text-disabled);
  --chart-grid: var(--color-border);
  --chart-text: var(--color-text-muted);
  --color-focus: rgba(231, 80, 33, 0.45);

  /* typografia, kształty, cienie */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(5, 34, 68, 0.08);
  --shadow-md: 0 6px 20px rgba(5, 34, 68, 0.15);
  --shadow-lg: 0 20px 50px rgba(5, 34, 68, 0.3);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* główne menu (tylko nav.site-nav – inne <nav> mają własne style) */
nav.site-nav {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-bottom: 3px solid var(--color-accent);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
nav.site-nav a { color: var(--color-on-primary); text-decoration: none; font-weight: 500;
  padding: 0.15rem 0; border-bottom: 2px solid transparent; }
nav.site-nav a:hover { color: var(--color-on-primary); border-bottom-color: var(--color-on-primary-muted); }
nav.site-nav a.active { border-bottom-color: var(--color-accent); }
nav.site-nav .brand { font-size: 1.05rem; }
nav.site-nav .spacer { flex: 1; }
nav.site-nav form { display: inline; margin: 0; }
nav.site-nav button { background: transparent; border: 1px solid var(--color-on-primary-muted); color: var(--color-on-primary); }
nav.site-nav button:hover { background: var(--color-primary-hover); }

main {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

h1 { margin-top: 0; color: var(--color-primary); }
h2 { color: var(--color-primary); }
a { color: var(--color-link); }
a:hover { color: var(--color-link-hover); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; border: 0; margin-bottom: 1.5rem; }
th, td { border: 0; border-bottom: 1px solid var(--color-border); padding: 0.6rem 0.75rem; text-align: left; }
thead th { background: var(--color-surface-alt); color: var(--color-primary); font-weight: 600; }
tbody tr:hover { background: var(--color-surface-alt); }

button {
  cursor: pointer;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-size: 0.95rem;
}
button:hover { background: var(--color-surface-alt); }
button[value="BUY"] { background: var(--color-up); border-color: var(--color-up); color: var(--color-on-primary); }
button[value="BUY"]:hover { background: var(--color-up-hover); }
button[value="SELL"] { background: var(--color-down); border-color: var(--color-down); color: var(--color-on-primary); }
button[value="SELL"]:hover { background: var(--color-down-hover); }

input[type="text"], input[type="password"], input[type="number"] {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* powiadomienia w rogu ekranu (komunikaty Django) */
.toasts {
  position: fixed; top: 4rem; right: 1rem; z-index: 1000;
  display: flex; flex-direction: column; gap: 0.5rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.65rem 0.5rem 0.65rem 0.9rem;
  border-radius: var(--radius); border-left: 4px solid;
  background: var(--color-surface); color: var(--color-text); font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.2s ease-out;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.toast-hiding { opacity: 0; transform: translateX(1rem); }
.toast-text { flex: 1; padding-top: 0.1rem; }
.toast-close {
  border: 0; background: transparent; color: var(--color-text-muted);
  font-size: 1.2rem; line-height: 1; padding: 0.1rem 0.4rem;
}
.toast-close:hover { background: var(--color-surface-alt); color: var(--color-text); }
.toast-success { border-color: var(--color-up); background: var(--color-up-soft); }
.toast-info { border-color: var(--color-link); background: var(--color-primary-soft); }
.toast-warning { border-color: var(--color-warning); background: var(--color-warning-soft); }
.toast-error { border-color: var(--color-down); background: var(--color-down-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateX(1rem); } }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; transition: none; }
}

.big-price { font-size: 1.5rem; font-weight: 600; }
.muted { color: var(--color-text-muted); }

/* zmiana od zamknięcia poprzedniej sesji */
.change { font-weight: 600; white-space: nowrap; }
.change.up { color: var(--color-up); }
.change.down { color: var(--color-down); }
.change.flat { color: var(--color-text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.chips a {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.chips a:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.chips a.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }

select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--color-surface);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 760px;
  margin-bottom: 1.5rem;
}
.order-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--color-text-secondary); }
.order-form input[type="number"] { padding: 0.35rem 0.5rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); }
.order-form .muted, .order-form button { grid-column: 1 / -1; }
.order-form button[type="submit"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); justify-self: start; }
.order-form button[type="submit"]:hover { background: var(--color-accent-hover); }

.inline-form { display: inline; margin: 0; }

.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.8rem; white-space: nowrap; }
.badge-OPEN { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-TRIGGERED { background: var(--color-warning-soft); color: var(--color-warning-strong); }
.badge-FILLED { background: var(--color-up-soft); color: var(--color-up-strong); }
.badge-CANCELLED { background: var(--color-border); color: var(--color-text-secondary); }
.badge-REJECTED { background: var(--color-down-soft); color: var(--color-down-strong); }

/* stopka i dokumenty prawne */
.site-footer { max-width: 1000px; margin: 0 auto 2rem; padding: 0 1.5rem; display: flex; justify-content: center; gap: 1.25rem;
  font-size: 0.85rem; }
.site-footer a { color: var(--color-text-muted); }
.legal-content { max-width: 70ch; }

/* tabela notowań (/instruments/) – jedna tabela, stałe szerokości kolumn */
.table-scroll { overflow-x: auto; }
table.quotes { table-layout: fixed; min-width: 760px; }
/* nazwa ma stałą szerokość, symbol stoi tuż obok, wolne miejsce przechodzi za symbol */
table.quotes .col-name { width: 200px; }
table.quotes .col-symbol { width: auto; }
table.quotes .col-time { width: 100px; }
table.quotes .col-price { width: 150px; }
table.quotes .col-change { width: 90px; }
table.quotes .col-owned { width: 110px; }
table.quotes .col-actions { width: 92px; }
table.quotes th, table.quotes td { vertical-align: middle; }
table.quotes .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.quotes .name-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.quotes .name-cell a { font-weight: 500; text-decoration: none; }
table.quotes .name-cell a:hover { text-decoration: underline; }
table.quotes .name-cell .badge { margin-left: 0.35rem; }
table.quotes .symbol-cell { color: var(--color-text-muted); font-size: 0.9rem; letter-spacing: 0.02em; padding-left: 0.25rem; }
table.quotes .name-cell { padding-right: 0.25rem; }
table.quotes .group-row th {
  background: var(--color-surface-alt); color: var(--color-primary); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.45rem 0.75rem;
}
table.quotes tbody tr.group-row:hover { background: none; }
/* „Na rachunku” i przyciski oddzielone od notowań */
table.quotes .account-start { border-left: 2px solid var(--color-border); padding-right: 1rem; }
table.quotes td.account-start, table.quotes td.actions-cell { background: var(--color-surface-alt); }
table.quotes .actions-cell { text-align: center; }
.btn-ks { width: 2rem; padding: 0.3rem 0; font-weight: 700; margin: 0 0.1rem !important; }
.small { font-size: 0.85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* portfel: kafelki z podsumowaniem */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.stat-tile { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.stat-tile.stat-main { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.stat-tile.stat-main .stat-label { color: var(--color-on-primary-muted); }
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; }
.stat-value { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 0.9rem; }

/* portfel i zlecenia: szerokości kolumn (reszta szerokości trafia do kolumny „Instrument”) */
table.holdings { min-width: 940px; }
table.holdings .col-name { width: 200px; }
table.holdings .col-qty { width: 60px; }
table.holdings .col-avg { width: 105px; }
table.holdings .col-price { width: 130px; }
table.holdings .col-change { width: 80px; }
table.holdings .col-value { width: 110px; }
table.holdings .col-profit { width: 115px; }
table.holdings .col-actions { width: 88px; }

table.history { min-width: 860px; }
table.history .col-date { width: 130px; }
table.history .col-side { width: 100px; }
table.history .col-name { width: 175px; }
table.history .col-qty { width: 60px; }
table.history .col-price { width: 130px; }
table.history .col-rate { width: 75px; }
table.history .col-value { width: 120px; }

table.orders-table { min-width: 900px; }
table.orders-table .col-name { width: auto; }
table.orders-table .col-date { width: 120px; }
table.orders-table .col-order { width: 150px; }
table.orders-table .col-qty { width: 55px; }
table.orders-table .col-condition { width: 180px; }
table.orders-table .col-price { width: 115px; }
table.orders-table .col-status { width: 110px; }
table.orders-table .col-cancel { width: 85px; }
table.orders-table .col-notes { width: 170px; }
table.orders-table .name-cell .symbol-under { display: block; font-size: 0.8rem; color: var(--color-text-muted); }
table.quotes .condition-cell, table.quotes .notes-cell { font-size: 0.88rem; white-space: normal; }
table.quotes .notes-cell { color: var(--color-down-strong); }
.side-BUY { background: var(--color-up-soft); color: var(--color-up-strong); }
.side-SELL { background: var(--color-down-soft); color: var(--color-down-strong); }
table.quotes .btn-minor { font-size: 0.85rem; padding: 0.25rem 0.6rem; }

/* stronicowanie historii */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: -0.75rem 0 1.5rem; }
.pagination a, .pagination span.disabled {
  color: var(--color-link); font-weight: 400;
  padding: 0.3rem 0.7rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); text-decoration: none; font-size: 0.9rem;
}
.pagination a:hover { background: var(--color-primary-soft); border-color: var(--color-primary-soft-border); }
.pagination span.disabled { color: var(--color-text-disabled); border-color: var(--color-border); }
.pagination .page-info { padding: 0 0.5rem; font-size: 0.9rem; }
table.quotes .date-cell { white-space: nowrap; font-size: 0.88rem; }
table.quotes td.actions-cell { padding-left: 0.4rem; padding-right: 0.4rem; }

/* sortowanie kolumn */
.sort-btn {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
}
.sort-btn:hover { background: none; color: var(--color-primary); }
.sort-btn::after { content: '↕'; font-size: 0.8em; color: var(--color-text-disabled); }
th[aria-sort="ascending"] .sort-btn::after { content: '▲'; color: var(--color-accent); }
th[aria-sort="descending"] .sort-btn::after { content: '▼'; color: var(--color-accent); }
th.num .sort-btn { flex-direction: row; }

/* ranking: wiersz zalogowanego gracza */
tr.me-row td { background: var(--color-accent-soft); }
tr.me-row td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }

/* ulubione: serduszko przy nazwie i filtr obok „Wszystkie” */
.heart-icon { width: 1.25rem; height: 1.15rem; display: block; }
.heart-outline, .heart-plus { fill: none; stroke: var(--color-favorite); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.heart-fill { fill: var(--color-favorite); }
.icon-fav { display: none; }
.is-fav .icon-add, .chip-fav.active .icon-add { display: none; }
.is-fav .icon-fav, .chip-fav.active .icon-fav { display: block; }
.fav-form { display: inline-flex; margin: 0; }
.fav-btn { border: 0; background: none; padding: 0.15rem; border-radius: var(--radius-sm); line-height: 0; flex-shrink: 0; }
.fav-btn:hover { background: var(--color-accent-soft); }
.fav-btn:hover .icon-add .heart-outline, .fav-btn:hover .icon-add .heart-plus { stroke-width: 2.2; }
.name-wrap { display: flex; align-items: center; gap: 0.3rem; min-width: 0; }
.name-wrap .fav-form { flex-shrink: 0; }

/* Puste serduszko („dodaj do ulubionych”) w tabeli nie rzuca się w oczy:
   – mysz: pokazuje się dopiero po najechaniu na wiersz (pełne serduszka ulubionych zawsze widać),
   – klawiatura: pokazuje się, gdy przycisk dostanie fokus (Tab),
   – ekran dotykowy (brak najeżdżania): widoczne stale, ale przygaszone. */
table.quotes .fav-btn:not(.is-fav) { transition: opacity 0.15s; }
@media (hover: hover) and (pointer: fine) {
  table.quotes .fav-btn:not(.is-fav) { opacity: 0; }
  table.quotes tr:hover .fav-btn:not(.is-fav),
  table.quotes .fav-btn:not(.is-fav):focus-visible { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  table.quotes .fav-btn:not(.is-fav) { opacity: 0.45; }
}
.name-wrap a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chips a.chip-fav { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.75rem; }
.chips a.chip-fav.active { background: var(--color-accent-soft); border-color: var(--color-favorite); color: var(--color-text); }
.chip-fav .fav-count { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.empty-note { background: var(--color-surface-alt); border-radius: var(--radius); padding: 1rem 1.25rem; }
.title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.title-row h1 { margin: 0; }
.title-row .heart-icon { width: 1.6rem; height: 1.5rem; }

/* ==========================================================================
   Strona główna: pulpit gracza / wizytówka gry + kolumna wiadomości
   ========================================================================== */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.75rem; align-items: start; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
.home-section { margin-bottom: 1.75rem; }
.home-section h2 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.section-head h2 { margin: 0; }
.section-more { font-size: 0.9rem; text-decoration: none; white-space: nowrap; }

/* kafelki jako linki (wartość → portfel, miejsce → ranking) */
a.stat-tile { text-decoration: none; color: inherit; transition: box-shadow 0.15s, border-color 0.15s; }
a.stat-tile:hover { border-color: var(--color-primary-soft-border); box-shadow: var(--shadow-sm); color: inherit; }
a.stat-tile.stat-main:hover { color: var(--color-on-primary); }
.stat-of { font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); }

/* mini-tabele (ulubione, ranking) */
table.mini-table { margin-bottom: 0; }
table.mini-table td { padding: 0.5rem 0.6rem; }
table.mini-table tr:last-child td { border-bottom: 0; }
/* największe pozycje na stronie głównej */
table.positions-mini { table-layout: fixed; min-width: 0; }
table.positions-mini th { font-size: 0.85rem; padding: 0.45rem 0.6rem; }
table.positions-mini th:nth-child(1) { width: 36%; }
table.positions-mini th:nth-child(2) { width: 13%; }
table.positions-mini th:nth-child(3) { width: 12%; }
table.positions-mini th:nth-child(4) { width: 22%; }
table.positions-mini th:nth-child(5) { width: 17%; }
@media (max-width: 560px) {
  table.positions-mini { table-layout: auto; }
  table.positions-mini .symbol-cell, table.positions-mini .symbol-head { display: none; }
  table.positions-mini td.name-cell, table.positions-mini .name-wrap a { white-space: normal; }
  table.positions-mini th, table.positions-mini td { width: auto !important; padding-left: 0.4rem; padding-right: 0.4rem; }
}
.first-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--color-accent-soft); border-left: 4px solid var(--color-accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; }
.first-buy p { margin: 0; }
.first-buy-title { font-weight: 700; color: var(--color-primary); font-size: 1.05rem; margin-bottom: 0.25rem !important; }
.first-buy-text { color: var(--color-text-secondary); max-width: 46ch; }

table.favorites-mini { table-layout: fixed; min-width: 0; }   /* bez min. szerokości tabeli notowań */
table.favorites-mini td.name-cell { width: 40%; }
table.favorites-mini td.symbol-cell { width: 15%; }
table.favorites-mini td.num { width: 22.5%; }
@media (max-width: 560px) {   /* telefon: bez kolumny symbolu, szerokości dobiera przeglądarka */
  table.favorites-mini { table-layout: auto; }
  table.favorites-mini td.symbol-cell { display: none; }
  table.favorites-mini td.name-cell, table.favorites-mini td.num { width: auto; }
  table.favorites-mini td.name-cell, table.favorites-mini .name-wrap a { white-space: normal; }
  table.favorites-mini td { padding-left: 0.4rem; padding-right: 0.4rem; }
}
.ranking-mini .place { width: 3rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.ranking-mini .player { font-weight: 500; }
.ranking-mini .num { text-align: right; }
.ranking-mini .gap-row td { text-align: center; color: var(--color-text-disabled); padding: 0.1rem; }

/* kolumna wiadomości */
.news-column { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.news-box { background: var(--color-surface-alt); border-radius: var(--radius); padding: 0.9rem 1rem; }
.news-heading { margin: 0 0 0.6rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-primary); border-left: 3px solid var(--color-accent); padding-left: 0.5rem; }
.news-item + .news-item { border-top: 1px solid var(--color-border); }
.news-link { display: flex; gap: 0.65rem; padding: 0.6rem 0; text-decoration: none; color: var(--color-text); }
.news-link:hover { color: var(--color-text); }
.news-link:hover .news-title { color: var(--color-link-hover); }
.news-img { width: 76px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--color-border); }
.news-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.news-title { font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.news-summary { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-time { font-size: 0.78rem; color: var(--color-text-muted); }
.news-featured .news-link { flex-direction: column; padding-top: 0.2rem; }
.news-featured .news-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.news-featured .news-title { font-size: 1rem; }
.news-placeholder { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.news-source { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); text-align: right; }
.news-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; }
.news-foot .news-source { margin: 0; }
.news-more { font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* strona /news/: zakładki i szeroka lista */
nav.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
nav.tabs a { padding: 0.5rem 1rem; text-decoration: none; color: var(--color-text-secondary); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--color-primary); }
nav.tabs a.active { color: var(--color-primary); border-bottom-color: var(--color-accent); font-weight: 600; }
.news-list { margin-bottom: 1.5rem; }
.news-wide .news-link { padding: 0.9rem 0; gap: 1rem; }
.news-wide .news-img { width: 180px; height: 110px; }
.news-wide .news-title { font-size: 1.05rem; }
.news-wide .news-summary { font-size: 0.92rem; -webkit-line-clamp: 2; }
@media (max-width: 560px) {
  .news-wide .news-img { width: 96px; height: 64px; }
  .news-wide .news-summary { display: none; }
}

/* wizytówka gry dla niezalogowanych */
.hero { background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem; margin-bottom: 1.75rem; border-bottom: 4px solid var(--color-accent); }
.hero h1 { color: var(--color-on-primary); font-size: 2rem; margin-bottom: 0.5rem; }
.hero-lead { font-size: 1.1rem; max-width: 60ch; margin: 0 0 1rem; }
.hero-points { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--color-on-primary-muted); }
.hero-points li { margin-bottom: 0.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-accent, .btn-ghost { display: inline-block; padding: 0.65rem 1.3rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-ghost { border-color: var(--color-on-primary-muted); color: var(--color-on-primary); }
.btn-ghost:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
