/* BrawlManager — landing page
   Branding własny (nie kopia brawlify.com / Discorda) — ciemny motyw, akcenty
   złota + fioletu, inspirowane paletą Brawl Stars, ale własny układ i typografia. */

:root {
  --bg: #0b0e1a;
  --bg-alt: #10142450;
  --panel: #131828;
  --panel-2: #171d33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4ff;
  --text-muted: #9aa3c0;
  --text-faint: #6b7394;
  --gold: #ffc72c;
  --gold-strong: #ffb300;
  --purple: #8b5cf6;
  --purple-strong: #7c3aed;
  --blue: #38bdf8;
  --green: #34d399;
  --red: #f87171;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255, 199, 44, 0.10), transparent 55%);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head {
  text-align: center;
  margin: 0 auto 8px;
}

.section-head .section-lede {
  margin-left: auto;
  margin-right: auto;
}

code, .mono {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1a1200;
  box-shadow: 0 10px 30px rgba(255, 199, 44, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 199, 44, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
  font-size: 0.85rem;
  padding: 8px 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- HERO ---------- */

.hero {
  padding: 92px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 auto 18px;
  max-width: 780px;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.hero-note a {
  color: var(--text-faint);
  text-decoration: underline;
}

/* ---------- SECTIONS (generic) ---------- */

section {
  padding: 88px 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- FEATURES ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: rgba(255, 199, 44, 0.12);
}

.feature-card.is-premium .feature-icon {
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.25), rgba(139, 92, 246, 0.25));
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.22), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 199, 44, 0.4);
  color: var(--gold);
  white-space: nowrap;
}

.badge-partial {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

/* ---------- COMMANDS ---------- */

.commands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.commands-col h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.command-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.command-item:first-of-type {
  border-top: none;
}

.command-main code {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

.command-main p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 380px;
}

/* ---------- ROTATION ---------- */

.rotation-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.rotation-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.rotation-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rotation-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text);
}

.rotation-points .dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Real Discord screenshot of a "rotation changed" notification (replaces the
   old CSS-only mockup with invented Polish map names). Reuses .command-screenshot
   (defined further down, shared with komendy.html) for the image treatment
   itself; this card just centers it and adds a caption underneath. */
.rotation-screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rotation-screenshot {
  max-width: 420px;
}

.rotation-screenshot-sub {
  color: var(--text-faint);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- PREMIUM ---------- */

.premium-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table.premium-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.premium-table thead th {
  text-align: left;
  padding: 18px 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--panel-2);
}

.premium-table thead th.col-premium {
  color: var(--gold);
}

.premium-table td {
  padding: 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
}

.premium-table td.feature-name {
  font-weight: 700;
  color: var(--text);
  width: 26%;
}

.premium-table td.feature-name span {
  display: block;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 4px;
}

.premium-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.015);
}

.premium-table td ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.premium-table td ul li {
  margin-bottom: 4px;
}

.premium-cta {
  margin-top: 28px;
  background: rgba(255, 199, 44, 0.08);
  border: 1px solid rgba(255, 199, 44, 0.3);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.premium-cta-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--text);
}

.premium-cta-lede {
  margin: 0 auto 22px;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- ONBOARDING ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  color: #14101f;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step code {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  word-break: break-word;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.step-optional {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 2px 8px;
}

.steps-arrow {
  display: none;
}

/* ---------- CTA BAND ---------- */

.cta-band {
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 24px;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .commands-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rotation-layout {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    display: none;
    gap: 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta .btn-secondary-label {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 56px;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-cta {
    padding: 26px 18px;
  }
}

/* ---------- SUBPAGE HERO (komendy.html / rotacja-map.html) ---------- */

.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 760px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--text);
}

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 199, 44, 0.07);
  border: 1px solid rgba(255, 199, 44, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ---------- COMMAND SHOWCASE (komendy.html) ---------- */

/* Sticky lives on the WRAPPER (.container instance around .command-nav), not on
   .command-nav itself. Reason (found via a real Playwright scroll test, not just
   reading CSS): a sticky element's containing block for offset purposes is its
   DIRECT parent's box (same rule as position:relative), not any further-out
   ancestor. .command-nav's direct parent used to be a bare <div class="container">
   containing nothing but the nav itself, so that box was only ever as tall as the
   nav — zero room to stick, so it behaved exactly like position:static (confirmed:
   with sticky on .command-nav, scrolling 1500px moved it to y=-1100 instead of
   clamping at top:63px). Moving position:sticky to this wrapper instead means ITS
   direct parent is .command-nav-stick-area (see komendy.html), which spans the
   full height of all the command sections — giving it real room to stay pinned.
   Confirmed with the same Playwright test: nav now clamps at y=63 from scroll
   500px all the way to scroll 5000px, matching .navbar's always-visible behavior. */
.command-nav-container {
  position: sticky;
  /* 63px = wysokość .navbar (padding 14px*2 + logo 34px + border 1px) -
     pasek komend dokuje się tuż pod głównym navbarem, bez szczeliny/nakładania. */
  top: 63px;
  z-index: 40;
}

.command-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 32px 0 8px;
  padding: 10px 12px;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.command-nav a {
  text-decoration: none;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.command-nav a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.command-showcase {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.command-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  scroll-margin-top: 90px;
}

.command-block-copy .command-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.command-block-copy code {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
}

.command-block-copy h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 4px;
}

.command-block-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.command-block-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.command-block-copy ul li {
  margin-bottom: 4px;
}

/* Real Discord screenshot for a command's output (replaces the old CSS mockups).
   Clickable (opens #command-lightbox, see inline script at the bottom of
   komendy.html) — cursor/hover/focus mirror .map-thumb on rotacja-map.html so
   the "this is enlargeable" affordance feels consistent across the site. */
.command-screenshot {
  display: block;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.command-screenshot:hover,
.command-screenshot:focus-visible {
  transform: scale(1.015);
  border-color: var(--border-strong);
  outline: none;
}

/* Usage screenshot stacked above the result screenshot within the same command-block. */
.command-screenshot-usage {
  margin-bottom: 16px;
}

/* Side-by-side layout for commands with two screenshot variants (e.g. /historia, /czystka) */
.command-screenshot-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.command-screenshot-item {
  flex: 1 1 220px;
  min-width: 0;
}

.command-screenshot-item .command-screenshot {
  max-width: 100%;
}

.command-screenshot-caption {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.badge-free {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--green);
}

@media (max-width: 900px) {
  .command-block {
    grid-template-columns: 1fr;
  }
}

/* ---------- COMMAND LIGHTBOX (komendy.html) ----------
   Deliberately a separate, analogous ruleset to .map-lightbox below, not a
   shared one — see the HTML comment next to #command-lightbox in komendy.html
   for why. Visually identical to .map-lightbox on purpose (same design
   language for "click to enlarge" across the site), just under its own class
   names so the two pages' lightboxes stay fully independent. */

.command-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 14, 0.86);
  backdrop-filter: blur(6px);
}

.command-lightbox[hidden] {
  display: none;
}

.command-lightbox-inner {
  max-width: min(720px, 92vw);
  text-align: center;
}

.command-lightbox-inner img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--panel-2);
  cursor: default;
}

.command-lightbox-caption {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.command-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.command-lightbox-close:hover,
.command-lightbox-close:focus-visible {
  background: var(--panel-2);
}

/* ---------- FULL MAP ROTATION TABLE (rotacja-map.html) ---------- */

.rotation-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 8px;
}

table.rotation-full-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.rotation-full-table thead th {
  text-align: left;
  padding: 16px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--panel-2);
}

.rotation-full-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}

.rotation-full-table td.mode-cell {
  font-weight: 700;
}

.rotation-full-table td.old-map {
  color: var(--text-faint);
}

.rotation-full-table td.current-map {
  color: var(--green);
  font-weight: 700;
}

.rotation-full-table td.countdown {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rotation-status {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

/* Mode icon (in game mode column) - grafika z Brawl Stars via Brawlify CDN,
   patrz info-note na rotacja-map.html po źródło/licencję. */
.mode-cell-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
  flex: 0 0 auto;
}

/* Map preview (ostatnia/aktualna mapa) - miniatura + nazwa obok siebie,
   miniatura znika sama (onerror w JS) jeśli Brawlify nie ma jeszcze danej
   mapy skatalogowanej - zostaje sama nazwa, spójnie z resztą tabeli. */
.map-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel-2);
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.map-thumb:hover,
.map-thumb:focus-visible {
  transform: scale(1.08);
  border-color: var(--border-strong);
  outline: none;
}

.map-name {
  line-height: 1.3;
}

@media (max-width: 560px) {
  .map-thumb {
    width: 40px;
    height: 40px;
  }

  .mode-icon {
    width: 24px;
    height: 24px;
  }
}

/* ---------- MAP LIGHTBOX (rotacja-map.html) ---------- */

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 14, 0.86);
  backdrop-filter: blur(6px);
}

.map-lightbox[hidden] {
  display: none;
}

.map-lightbox-inner {
  max-width: min(560px, 92vw);
  text-align: center;
}

.map-lightbox-inner img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--panel-2);
}

.map-lightbox-caption {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.map-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.map-lightbox-close:hover,
.map-lightbox-close:focus-visible {
  background: var(--panel-2);
}
