/* Tibia Fun - Main Styles */

/* ============================================
   RESPONSIVE SYSTEM - Fluid Typography & Spacing
   Używa clamp() dla płynnego skalowania
   ============================================ */
:root {
  /* Breakpoints reference */
  --bp-xs: 320px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  
  /* Fluid font sizes - skalują się płynnie między min i max (zmniejszone o ~20%) */
  --fs-xs: clamp(0.55rem, 0.5rem + 0.2vw, 0.65rem);       /* ~9-10px */
  --fs-sm: clamp(0.625rem, 0.58rem + 0.22vw, 0.75rem);    /* ~10-12px */
  --fs-base: clamp(0.75rem, 0.68rem + 0.3vw, 0.875rem);   /* ~12-14px */
  --fs-md: clamp(0.8125rem, 0.75rem + 0.35vw, 0.9375rem); /* ~13-15px */
  --fs-lg: clamp(0.9375rem, 0.85rem + 0.45vw, 1.1rem);    /* ~15-17.6px */
  --fs-xl: clamp(1rem, 0.9rem + 0.6vw, 1.3rem);           /* ~16-20.8px */
  --fs-2xl: clamp(1.2rem, 1rem + 1vw, 1.75rem);           /* ~19-28px */
  --fs-3xl: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem);        /* ~22-35px */
  --fs-4xl: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);         /* ~28-48px */
  
  /* Fluid spacing (zmniejszone o ~20%) */
  --space-xs: clamp(0.2rem, 0.15rem + 0.2vw, 0.375rem);   /* 3-6px */
  --space-sm: clamp(0.375rem, 0.3rem + 0.35vw, 0.625rem); /* 6-10px */
  --space-md: clamp(0.625rem, 0.5rem + 0.5vw, 1rem);      /* 10-16px */
  --space-lg: clamp(0.8rem, 0.65rem + 0.75vw, 1.375rem);  /* 13-22px */
  --space-xl: clamp(1.2rem, 0.85rem + 1.5vw, 2rem);       /* 19-32px */
  --space-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.75rem);      /* 26-44px */
  
  /* Container widths */
  --container-padding: clamp(10px, 2.5vw, 32px);
  --container-max: min(92vw, 550px);
  --container-wide: min(94vw, 1100px);
  
  /* Border radius - mniejsze na mobile (zmniejszone o ~20%) */
  --radius-sm: clamp(4px, 0.8vw, 8px);
  --radius-md: clamp(6px, 1.2vw, 11px);
  --radius-lg: clamp(8px, 1.6vw, 16px);
  --radius-xl: clamp(11px, 2vw, 22px);
  
  /* Button sizes (zmniejszone o ~20%) */
  --btn-padding-y: clamp(8px, 1.2vw, 13px);
  --btn-padding-x: clamp(14px, 2.4vw, 26px);
  
  /* Colors */
  --color-primary: #00d9ff;
  --color-primary-glow: rgba(0, 217, 255, 0.5);
  --color-success: #00ff88;
  --color-warning: #ffd700;
  --color-danger: #ff4757;
  --color-bg-dark: #1a1a2e;
  --color-bg-card: rgba(10, 15, 30, 0.85);
  --color-border: rgba(0, 217, 255, 0.25);
}

/* ============================================
   CUSTOM SCROLLBAR - Stylizowany scrollbar
   ============================================ */

/* Dla przeglądarek WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 20, 40, 0.6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.5), rgba(0, 150, 200, 0.5));
  border-radius: 5px;
  border: 2px solid rgba(10, 20, 40, 0.6);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.8), rgba(0, 180, 220, 0.8));
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--color-primary), rgba(0, 200, 240, 1));
}

::-webkit-scrollbar-corner {
  background: rgba(10, 20, 40, 0.6);
}

/* Mniejszy scrollbar dla wewnętrznych elementów */
.player-popup-deaths-list::-webkit-scrollbar,
.guild-members-list::-webkit-scrollbar,
.highscores-table-wrapper::-webkit-scrollbar,
.deaths-table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.player-popup-deaths-list::-webkit-scrollbar-track,
.guild-members-list::-webkit-scrollbar-track,
.highscores-table-wrapper::-webkit-scrollbar-track,
.deaths-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.4);
  border-radius: 3px;
}

.player-popup-deaths-list::-webkit-scrollbar-thumb,
.guild-members-list::-webkit-scrollbar-thumb,
.highscores-table-wrapper::-webkit-scrollbar-thumb,
.deaths-table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.4), rgba(0, 150, 200, 0.4));
  border-radius: 3px;
}

.player-popup-deaths-list::-webkit-scrollbar-thumb:hover,
.guild-members-list::-webkit-scrollbar-thumb:hover,
.highscores-table-wrapper::-webkit-scrollbar-thumb:hover,
.deaths-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.7), rgba(0, 180, 220, 0.7));
}

/* Dla Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 255, 0.5) rgba(10, 20, 40, 0.6);
}

/* Safe area support for notched phones */
@supports (padding: max(0px)) {
  :root {
    --safe-top: max(0px, env(safe-area-inset-top));
    --safe-bottom: max(0px, env(safe-area-inset-bottom));
    --safe-left: max(0px, env(safe-area-inset-left));
    --safe-right: max(0px, env(safe-area-inset-right));
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  font-size: 16px; /* Base for rem calculations */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
  text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  background-image: url('/image/bacground%20tibia.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding: var(--safe-top, 0) var(--safe-right, 0) var(--safe-bottom, 0) var(--safe-left, 0);
}

/* Dark overlay for all pages */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.75);
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above overlay */
body > * {
  position: relative;
  z-index: 1;
}

.container {
  text-align: center;
  padding: var(--container-padding);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: var(--container-max);
  width: 95%;
  position: relative;
  overflow: hidden;
  margin: var(--space-md) auto;
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.language-selector select {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85em;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
}

.language-selector select:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: #00d9ff;
}

.language-selector select:focus {
  border-color: #00d9ff;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.language-selector select option {
  background: #1a1a2e;
  color: #fff;
  padding: 8px;
}

h1 {
  color: var(--color-primary);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 20px var(--color-primary-glow);
  line-height: 1.2;
}

h2 {
  color: var(--color-primary);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  line-height: 1.3;
}

h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.status {
  color: var(--color-success);
  font-weight: bold;
  font-size: var(--fs-lg);
}

.domain {
  color: var(--color-warning);
  font-size: var(--fs-md);
  margin: var(--space-md) 0;
}

.env-badge {
  margin-bottom: var(--space-md);
}

.badge-production {
  background: var(--color-success);
  color: #000;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
}

.badge-dev {
  background: var(--color-warning);
  color: #000;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
}

/* Join Title */
.join-title {
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: bold;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Links */
.social-links {
  margin: var(--space-lg) 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.social-link {
  color: #fff;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: bold;
  font-size: var(--fs-base);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 38px; /* Touch target */
  min-width: 100px;
}

.social-link.twitch {
  background: #9146ff;
}

.social-link.twitch:hover {
  background: #772ce8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.social-link.kick {
  background: #53fc18;
  color: #000;
}

.social-link.kick:hover {
  background: #45d414;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(83, 252, 24, 0.4);
}

/* Buttons */
.btn {
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  display: inline-block;
  margin-top: var(--space-lg);
  transition: all 0.3s;
  font-size: var(--fs-md);
  font-weight: bold;
  min-height: 38px; /* Minimum touch target */
  min-width: 38px;
  text-align: center;
}

.btn:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.btn-back {
  background: transparent;
  border-color: #aaa;
  color: #aaa;
}

.btn-back:hover {
  background: #aaa;
  color: var(--color-bg-dark);
}

/* Info */
.info {
  margin-top: var(--space-xl);
  font-size: var(--fs-sm);
  color: #aaa;
}

/* Join Page Specific */
.join-options {
  margin: var(--space-xl) 0;
}

.join-option {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  transition: all 0.3s;
}

.join-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.join-option h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-lg);
}

.join-option p {
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.join-option a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.join-option a.discord {
  background: #5865f2;
  color: #fff;
}

.join-option a.discord:hover {
  background: #4752c4;
}

.join-option a.twitch {
  background: #9146ff;
  color: #fff;
}

.join-option a.twitch:hover {
  background: #772ce8;
}

.join-option a.kick {
  background: #53fc18;
  color: #000;
}

.join-option a.kick:hover {
  background: #45d414;
}

/* 404 Page */
.error-title {
  color: #ff6b6b;
  font-size: 3em;
}

.error-code {
  font-size: 5em;
  color: #ff6b6b;
  opacity: 0.5;
}

/* Stream Status */
.stream-status-box {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.stream-status-box p {
  margin-bottom: 10px;
  color: #aaa;
  font-size: 0.9em;
}

.status-loading {
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #444;
  border-top-color: #00d9ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-live {
  color: #ff4444;
  font-weight: bold;
  font-size: 1.3em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-offline {
  color: #888;
  font-size: 1.2em;
}

.status-error {
  color: #ff6b6b;
}

.status-online {
  text-align: left;
}

.status-offline-box {
  text-align: center;
}

.stream-details {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: left;
}

.stream-details strong {
  color: #00d9ff;
}

.stream-platform {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.stream-platform strong {
  font-size: 1.1em;
}

.viewers {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 0.95em;
}

.stream-title {
  color: #fff;
  font-size: 0.95em;
  margin: 5px 0;
  line-height: 1.3;
}

.stream-game {
  color: #9146ff;
  font-size: 0.85em;
  margin-top: 3px;
}

.stream-game .game-link {
  color: #9146ff;
  text-decoration: none;
  transition: all 0.2s;
}

.stream-game .game-link:hover {
  color: #00d9ff;
  text-decoration: underline;
}

/* Stream indicator (dot on buttons) */
.stream-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.stream-indicator.online {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444;
  animation: pulse-dot 1.5s infinite;
}

.stream-indicator.offline {
  background: #666;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 5px #ff4444; }
  50% { box-shadow: 0 0 15px #ff4444; }
}

/* Footer Info Section */
.footer-info {
  margin-top: 20px;
}

.footer-info .info {
  margin-top: 0;
}

.info-creator {
  margin-bottom: 2px !important;
}

.info-integration {
  margin-top: 2px !important;
  margin-bottom: 8px !important;
}

.info-copyright {
  font-size: 0.75em !important;
  margin-top: 8px !important;
  margin-bottom: 5px !important;
}

.info-links {
  font-size: 0.7em !important;
  margin-top: 5px !important;
}

.footer-link {
  color: #888;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-link:hover {
  color: #00d9ff;
  text-decoration: underline;
}

.footer-link.active {
  color: #00d9ff;
}

.footer-separator {
  color: #555;
  margin: 0 8px;
}

/* Content Pages (About, Service Agreement, Privacy Policy) */
.container-wide {
  max-width: 700px;
  background: rgba(10, 15, 30, 0.85);
  border: 2px solid rgba(0, 217, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.last-updated {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 25px;
  font-style: italic;
}

.content-section {
  background: rgba(10, 15, 30, 0.85);
  border: 2px solid rgba(0, 217, 255, 0.18);
  border-radius: 14px;
  padding: 28px 22px;
  margin: 18px 0;
  text-align: left;
  backdrop-filter: blur(7px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.08), 0 4px 16px rgba(0,0,0,0.18);
  overflow: hidden;
}

.content-section h2 {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #00d9ff;
}

.content-section p {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.terms-list li {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.6;
  padding: 5px 0 5px 20px;
  position: relative;
}

.terms-list li::before {
  content: "•";
  color: #00d9ff;
  position: absolute;
  left: 0;
}

.terms-list li strong {
  color: #fff;
}

/* ===================================
   RESPONSIVE DESIGN - All Devices
   =================================== */

/* Extra Large Screens (4K, Large Monitors) - 1920px+ */
@media screen and (min-width: 1920px) {
  .container {
    max-width: 600px;
    padding: 50px;
  }
  
  h1 {
    font-size: 3em;
  }
  
  h2 {
    font-size: 2.2em;
  }
  
  .social-links {
    gap: 25px;
  }
  
  .social-link {
    padding: 12px 28px;
    font-size: 1.1em;
  }
}

/* Large Screens (Desktop/Laptop) - 1200px to 1919px */
@media screen and (min-width: 1200px) and (max-width: 1919px) {
  .container {
    max-width: 550px;
    padding: 45px;
  }
}

/* Medium Screens (Small Laptops/Large Tablets) - 992px to 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 500px;
    padding: 40px;
  }
  
  h1 {
    font-size: 2.3em;
  }
}

/* Tablets (Portrait & Landscape) - 768px to 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {
  body {
    padding: 20px;
  }
  
  .container {
    max-width: 90%;
    padding: 35px 30px;
  }
  
  h1 {
    font-size: 2.2em;
  }
  
  h2 {
    font-size: 1.6em;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    padding: 10px 22px;
  }
  
  .join-option {
    padding: 18px;
  }
  
  .error-code {
    font-size: 4em;
  }
  
  .error-title {
    font-size: 2.5em;
  }
}

/* Large Phones / Small Tablets (Portrait) - 576px to 767px */
@media screen and (min-width: 576px) and (max-width: 767px) {
  body {
    padding: 15px;
    align-items: flex-start;
    padding-top: 30px;
  }
  
  .container {
    max-width: 95%;
    padding: 30px 25px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .social-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .social-link {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 1em;
  }
  
  .join-option {
    padding: 15px;
    margin: 12px 0;
  }
  
  .join-option h3 {
    font-size: 1.1em;
  }
  
  .stream-details {
    font-size: 0.85em;
  }
  
  .error-code {
    font-size: 3.5em;
  }
  
  .error-title {
    font-size: 2em;
  }
}

/* Mobile Phones (Standard) - 480px to 575px */
@media screen and (max-width: 575px) and (min-width: 480px) {
  body {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
    border-radius: 12px;
    margin: 0 auto;
  }
  
  h1 {
    font-size: 1.8em;
    margin-bottom: 12px;
  }
  
  h2 {
    font-size: 1.4em;
  }
  
  .join-title {
    font-size: 1em;
  }
  
  .social-links {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .social-link {
    padding: 12px 20px;
    font-size: 1em;
    justify-content: center;
    width: 100%;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    display: block;
    text-align: center;
  }
  
  .stream-status-box {
    padding: 12px;
    margin: 15px 0;
  }
  
  .stream-details {
    font-size: 0.85em;
    padding: 8px;
  }
  
  .stream-platform {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .join-options {
    margin: 20px 0;
  }
  
  .join-option {
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
  }
  
  .join-option h3 {
    font-size: 1.1em;
  }
  
  .join-option p {
    font-size: 0.85em;
  }
  
  .join-option a {
    padding: 10px 18px;
    font-size: 0.95em;
    display: block;
    text-align: center;
  }
  
  .info {
    font-size: 0.8em;
    margin-top: 20px;
  }
  
  .error-code {
    font-size: 3em;
  }
  
  .error-title {
    font-size: 1.8em;
  }
}

/* Small Mobile Phones - Below 480px */
@media screen and (max-width: 479px) {
  body {
    padding: 8px;
    align-items: flex-start;
    padding-top: 15px;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    border-radius: 10px;
    margin: 0;
  }
  
  h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  
  h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  
  .join-title {
    font-size: 0.95em;
  }
  
  .env-badge .badge-dev,
  .env-badge .badge-production {
    font-size: 0.7em;
    padding: 2px 6px;
  }
  
  .social-links {
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
  }
  
  .social-link {
    padding: 12px 15px;
    font-size: 0.95em;
    justify-content: center;
    width: 100%;
    border-radius: 15px;
  }
  
  .stream-indicator {
    width: 8px;
    height: 8px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95em;
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 20px;
  }
  
  .stream-status-box {
    padding: 10px;
    margin: 12px 0;
    border-radius: 8px;
  }
  
  .stream-status-box {
    margin: 20px 0;
    padding: 18px 16px;
    background: rgba(10, 15, 30, 0.85);
    border: 2px solid rgba(0, 217, 255, 0.13);
    border-radius: 12px;
    backdrop-filter: blur(7px);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.07), 0 2px 8px rgba(0,0,0,0.13);
    overflow: hidden;
  }
  }
  
  .status-offline {
    font-size: 1em;
  }
  
  .stream-details {
    font-size: 0.8em;
    padding: 8px;
    margin-top: 8px;
  }
  
  .stream-platform {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  
  .stream-platform strong {
    font-size: 1em;
  }
  
  .viewers {
    font-size: 0.85em;
  }
  
  .stream-title {
    font-size: 0.85em;
  }
  
  .stream-game {
    font-size: 0.8em;
  }
  
  .join-options {
    margin: 15px 0;
  }
  
  .join-option {
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
  }
  
  .join-option h3 {
    font-size: 1em;
    margin-bottom: 8px;
  }
  
  .join-option p {
    font-size: 0.8em;
    margin-bottom: 12px;
  }
  
  .join-option a {
    padding: 10px 15px;
    font-size: 0.9em;
    display: block;
    text-align: center;
    border-radius: 15px;
  }
  
  .info {
    font-size: 0.75em;
    margin-top: 15px;
  }
  
  .domain {
    font-size: 0.95em;
  }
  
  .error-code {
    font-size: 2.5em;
  }
  
  .error-title {
    font-size: 1.5em;
  }


/* Extra Small Devices (Very small phones) - Below 360px */
@media screen and (max-width: 359px) {
  body {
    padding: 5px;
  }
  
  .container {
    padding: 15px 12px;
  }
  
  h1 {
    font-size: 1.3em;
  }
  
  h2 {
    font-size: 1.1em;
  }
  
  .social-link {
    padding: 10px 12px;
    font-size: 0.9em;
    gap: 5px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  
  .join-option h3 {
    font-size: 0.95em;
  }
  
  .error-code {
    font-size: 2em;
  }
  
  .error-title {
    font-size: 1.3em;
  }
}

/* Landscape Mode for Mobile Phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
  body {
    align-items: flex-start;
    padding: 10px;
  }
  
  .container {
    padding: 20px;
    margin: 10px auto;
  }
  
  h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-link {
    flex: 0 1 auto;
    width: auto;
  }
  
  .stream-status-box {
    margin: 10px 0;
  }
  
  .join-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .join-option {
    flex: 1 1 45%;
    min-width: 200px;
    margin: 5px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  
  h1 {
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .container {
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }
  
  h1, h2, h3 {
    color: #000;
    text-shadow: none;
  }
  
  .social-link, .btn {
    background: #eee;
    color: #000;
    border: 1px solid #333;
  }
  
  .stream-status-box {
    display: none;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .loader {
    animation: none;
    border-color: #00d9ff;
  }
}

/* Responsive styles for footer and content pages */
@media screen and (max-width: 767px) {
  .container-wide {
    max-width: 95%;
  }
  
  .content-section {
    padding: 15px;
  }
  
  .content-section h2 {
    font-size: 1.1em;
  }
  
  .content-section p,
  .terms-list li {
    font-size: 0.85em;
  }
  
  .footer-separator {
    margin: 0 5px;
  }
  
  .info-links {
    font-size: 0.65em !important;
  }
  
  .language-selector {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 15px;
  }
  
  .language-selector select {
    width: 100%;
    padding: 10px;
    font-size: 0.9em;
  }
}

@media screen and (max-width: 479px) {
  .container-wide {
    max-width: 100%;
  }
  
  .content-section {
    padding: 12px;
    margin: 10px 0;
  }
  
  .content-section h2 {
    font-size: 1em;
  }
  
  .content-section p,
  .terms-list li {
    font-size: 0.8em;
  }
  
  .info-copyright {
    font-size: 0.65em !important;
  }
  
  .info-links {
    font-size: 0.6em !important;
  }
  
  .footer-separator {
    margin: 0 3px;
  }
  
  .last-updated {
    font-size: 0.75em;
  }
  
  .language-selector select {
    padding: 8px;
    font-size: 0.85em;
  }
}

/* ===== LATEST DEATH WIDGET (styl ramki jak boosted) ===== */
.latest-death-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 8px 10px;
  position: relative;
  z-index: 99;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.boosted-boss-container {
  justify-content: center;
  gap: 30px;
  max-width: 100%;
  overflow: hidden;
}

.latest-death-widget,
.latest-levelup-widget {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.death-frame,
.levelup-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 16px;
  min-height: 42px;
  height: auto;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.death-frame {
  background: linear-gradient(135deg, rgba(30, 15, 15, 0.95), rgba(50, 20, 20, 0.95));
  border: 2px solid rgba(139, 69, 69, 0.6);
  box-shadow: 
    0 0 15px rgba(139, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.death-skull {
  font-size: 1.2em;
  flex-shrink: 0;
  animation: skullPulse 2s ease-in-out infinite;
}

@keyframes skullPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.death-frame-header {
  display: none;
}

.death-frame-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #ddd;
  font-size: 0.8em;
  text-align: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.death-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-top-color: #ff6b6b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.death-player-name {
  color: #ffaaaa;
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.3s;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-player-name:hover {
  color: #ffcccc;
  text-shadow: 0 0 10px rgba(255, 170, 170, 0.5);
}

.death-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 0.85em;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.death-details span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.death-level {
  color: #ffd700;
  flex-shrink: 0;
}

.death-killer {
  color: #ff8888;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-world {
  color: #00d9ff;
  flex-shrink: 0;
}

.death-separator {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.death-error {
  color: #ff6b6b;
  font-style: italic;
  font-size: 0.85em;
}

/* ===== LEVEL UP WIDGET (zielony styl) ===== */
.levelup-frame {
  background: linear-gradient(135deg, rgba(15, 40, 15, 0.95), rgba(20, 60, 20, 0.95));
  border: 2px solid rgba(69, 139, 69, 0.6);
  box-shadow: 
    0 0 20px rgba(0, 139, 0, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.levelup-icon {
  font-size: 1.4em;
  animation: levelUpPulse 2s ease-in-out infinite;
}

@keyframes levelUpPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.levelup-player-name {
  color: #aaffaa;
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.3s;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.levelup-player-name:hover {
  color: #ccffcc;
  text-shadow: 0 0 10px rgba(170, 255, 170, 0.5);
}

.levelup-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 0.85em;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.levelup-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.levelup-level {
  color: #7fff7f;
}

.levelup-vocation {
  color: #ffdd77;
}

.levelup-world {
  color: #00d9ff;
}

.levelup-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(107, 255, 107, 0.3);
  border-top-color: #6bff6b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE - DEATH & LEVELUP WIDGETS ===== */

/* Large Screens (Desktop) - 1200px+ */
@media screen and (min-width: 1200px) {
  .latest-death-bar {
    gap: 30px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 10px 20px;
    height: 48px;
    gap: 12px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1.4em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 1em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.9em;
    gap: 8px;
  }
  
  .death-killer {
    max-width: 200px;
  }
}

/* Medium Screens (Tablets Landscape) - 900px to 1199px */
@media screen and (max-width: 1199px) and (min-width: 900px) {
  .latest-death-bar {
    gap: 20px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 8px 14px;
    height: 44px;
  }
  
  .death-killer {
    max-width: 140px;
  }
}

/* Tablets Portrait - 768px to 899px */
@media screen and (max-width: 899px) and (min-width: 768px) {
  .latest-death-bar {
    gap: 15px;
    padding: 6px 10px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 6px 12px;
    height: 40px;
    gap: 8px;
    border-radius: 8px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1.1em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.85em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.75em;
    gap: 5px;
  }
  
  .death-killer {
    max-width: 110px;
  }
  
  .death-frame-content {
    gap: 6px;
    font-size: 0.75em;
  }
}

/* Large Phones / Small Tablets - 600px to 767px */
@media screen and (max-width: 767px) and (min-width: 600px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 8px;
    padding: 6px 15px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 8px 14px;
    height: auto;
    min-height: 38px;
    width: 100%;
    max-width: 450px;
    justify-content: center;
    gap: 10px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1.1em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.9em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.8em;
    gap: 6px;
  }
  
  .death-killer {
    max-width: 130px;
  }
  
  .death-frame-content {
    gap: 8px;
  }
  
  .boosted-with-death {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Mobile Phones (Standard) - 480px to 599px */
@media screen and (max-width: 599px) and (min-width: 480px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 6px;
    padding: 5px 10px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 6px 10px;
    height: auto;
    min-height: 36px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 8px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.85em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.75em;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
  
  .death-killer {
    max-width: 100px;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
    gap: 6px;
    font-size: 0.75em;
  }
  
  .death-separator {
    display: none;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
}

/* Small Mobile Phones - 360px to 479px */
@media screen and (max-width: 479px) and (min-width: 360px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 5px;
    padding: 4px 8px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 5px 8px;
    height: auto;
    min-height: 32px;
    width: 100%;
    gap: 6px;
    border-radius: 6px;
    border-width: 1px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.9em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.78em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.68em;
    gap: 4px;
    flex-wrap: wrap;
    white-space: normal;
  }
  
  .death-level,
  .levelup-level {
    font-size: 0.7em;
  }
  
  .death-killer {
    max-width: 80px;
    font-size: 0.68em;
  }
  
  .levelup-vocation {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.7em;
  }
  
  .death-separator {
    display: none;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
  
  .death-loading-spinner,
  .levelup-loading-spinner {
    width: 14px;
    height: 14px;
  }
}

/* Extra Small Mobile Phones - below 360px */
@media screen and (max-width: 359px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 4px;
    padding: 3px 5px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 4px 6px;
    height: auto;
    min-height: 28px;
    width: 100%;
    gap: 5px;
    border-radius: 5px;
    border-width: 1px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.8em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.7em;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.6em;
    gap: 3px;
    flex-wrap: wrap;
  }
  
  .death-level,
  .levelup-level,
  .death-killer,
  .levelup-vocation {
    font-size: 0.6em;
  }
  
  .death-killer {
    max-width: 60px;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    gap: 3px;
    font-size: 0.62em;
  }
  
  .death-separator,
  .death-world,
  .levelup-world {
    display: none;
  }
  
  .death-loading-spinner,
  .levelup-loading-spinner {
    width: 12px;
    height: 12px;
  }
}

/* Landscape mode fixes for death/levelup */
@media screen and (max-height: 450px) and (orientation: landscape) {
  .latest-death-bar {
    flex-direction: row;
    gap: 10px;
    padding: 4px 10px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 4px 10px;
    height: 32px;
    min-height: auto;
    max-width: 48%;
    gap: 6px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.9em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.75em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.65em;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
}

/* ===== NAVBAR LAYOUT STYLES ===== */

/* Body with navbar - inherits background from body */
.page-with-navbar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Ensure all content is above overlay */
.page-with-navbar > * {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Navbar */
.navbar {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
  padding: 0 var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
}

.navbar-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(53px, 7.7vw, 66px);
  gap: var(--space-xs);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  font-size: var(--fs-md);
  transition: all 0.3s;
  flex-shrink: 0;
}

.navbar-logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px var(--color-primary-glow);
}

.logo-icon {
  font-size: 1.3em;
}

.logo-image {
  width: clamp(33px, 5vw, 45px);
  height: clamp(33px, 5vw, 45px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  background: linear-gradient(135deg, #00d9ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--fs-md);
}

.navbar-menu {
  display: flex;
  gap: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #aaa;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.95em;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.15);
}

.nav-icon {
  font-size: 1.1em;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 11px 17px;
  color: #aaa;
  font-size: 1.09em;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s;
  border-radius: 8px;
}

.hamburger-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn.active {
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.15);
}

.hamburger-line {
  display: none;
}

.menu-text {
  display: inline;
}

.menu-icon {
  font-size: 0.92em;
  transition: transform 0.3s;
}

.hamburger-btn.active .menu-icon {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: auto;
  max-width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: rgba(15, 20, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 12px;
  padding: 17px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 217, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  
  /* Grid layout - auto dopasowanie, max 5 w rzędzie */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(99px, 1fr));
  gap: 9px;
}

/* Gdy jest więcej niż 5 elementów, wymuś max 5 kolumn */
@media screen and (min-width: 600px) {
  .dropdown-menu {
    grid-template-columns: repeat(5, minmax(99px, 121px));
    width: auto;
  }
}

/* Mobile dropdown - kompaktowe wyświetlanie */
@media screen and (max-width: 480px) {
  .dropdown-menu {
    top: 55px;
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 70px);
    padding: 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .dropdown-menu .nav-link {
    padding: 10px 6px;
    font-size: 0.7em;
    min-width: auto;
  }
  
  .dropdown-menu .nav-icon {
    font-size: 1.1em;
  }
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 11px;
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 9px;
  font-size: 0.88em;
  text-align: center;
  white-space: nowrap;
  min-width: 88px;
}

.dropdown-menu .nav-link:hover {
  color: #fff;
  background: rgba(0, 217, 255, 0.15);
}

.dropdown-menu .nav-link.active {
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.1);
}

.dropdown-menu .nav-icon {
  font-size: 1.43em;
}

/* Menu container with dropdown */
.navbar-menu-wrapper {
  position: relative;
  margin-left: 20px;
}

.navbar-social {
  display: flex;
  gap: 10px;
}

.nav-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.3em;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
}

.nav-social.twitch:hover {
  background: #9146ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.nav-social.kick:hover {
  background: #53fc18;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(83, 252, 24, 0.4);
}

/* Navbar Language Switcher */
.navbar-lang {
  position: relative;
  margin-left: 5px;
}

.navbar-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 70px;
}

.navbar-lang-btn:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.4);
}

.navbar-lang-btn.active {
  background: rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.5);
}

.navbar-lang-flag {
  font-size: 1.1em;
}

.navbar-lang-code {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-lang-arrow {
  font-size: 0.7em;
  transition: transform 0.3s;
  opacity: 0.7;
}

.navbar-lang-btn.active .navbar-lang-arrow {
  transform: rotate(180deg);
}

.navbar-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 20, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 10px;
  padding: 8px;
  min-width: 140px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 217, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1002;
}

.navbar-lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #aaa;
}

.navbar-lang-option:hover {
  background: rgba(0, 217, 255, 0.15);
  color: #fff;
}

.navbar-lang-option.active {
  background: rgba(0, 217, 255, 0.2);
  color: #00d9ff;
}

.navbar-lang-option-flag {
  font-size: 1.2em;
}

.navbar-lang-option-name {
  font-size: 0.9em;
  font-weight: 500;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 32px 16px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-title {
  color: #00d9ff;
  font-size: 2em;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.page-subtitle {
  color: #aaa;
  font-size: 0.95em;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 8px;
}

/* Platform Card */
.platform-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.platform-card.discord-card::before {
  background: linear-gradient(90deg, #5865f2, #7289da);
}

.platform-card.twitch-card::before {
  background: linear-gradient(90deg, #9146ff, #772ce8);
}

.platform-card.kick-card::before {
  background: linear-gradient(90deg, #53fc18, #45d414);
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.card-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 1px;
}

.card-badge.discord {
  background: rgba(88, 101, 242, 0.2);
  color: #7289da;
}

.card-badge.twitch {
  background: rgba(145, 70, 255, 0.2);
  color: #9146ff;
}

.card-badge.kick {
  background: rgba(83, 252, 24, 0.2);
  color: #53fc18;
}

.card-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
  text-align: center;
}

.card-title {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 8px;
  text-align: center;
}

.card-description {
  color: #aaa;
  font-size: 0.85em;
  line-height: 1.5;
  text-align: center;
  flex: 1;
  margin-bottom: 16px;
}

.card-footer {
  text-align: center;
}

.card-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.85em;
}

.card-btn.discord {
  background: #5865f2;
  color: #fff;
}

.card-btn.discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.card-btn.twitch {
  background: #9146ff;
  color: #fff;
}

.card-btn.twitch:hover {
  background: #772ce8;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(145, 70, 255, 0.4);
}

.card-btn.kick {
  background: #53fc18;
  color: #000;
}

.card-btn.kick:hover {
  background: #45d414;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(83, 252, 24, 0.4);
}

/* Page Footer - Fixed at bottom */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.85);
  border-top: 1px solid rgba(0, 217, 255, 0.15);
  padding: 14px 18px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  color: #888;
  font-size: 0.86em;
  margin-bottom: 7px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.86em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #00d9ff;
}

.footer-divider {
  color: #555;
}

/* Add padding to main content so it doesn't hide behind fixed footer */
.page-with-navbar .main-content {
  padding-bottom: 85px;
}

/* Hide old navbar-menu, show hamburger by default */
.navbar-menu {
  display: none;
}

/* Menu overlay - ciemne tło gdy menu jest otwarte */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navbar Responsive */
@media screen and (max-width: 768px) {
  .navbar-container {
    padding: 0 10px;
  }
  
  .logo-text {
    font-size: 0.9em;
  }
  
  .nav-social {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
  
  .page-title {
    font-size: 2em;
  }
  
  .page-subtitle {
    font-size: 0.95em;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .platform-card {
    padding: 20px;
  }
  
  .dropdown-menu {
    min-width: 10px;
  }
  
  .nav-btn-login {
    padding: 6px 12px;
    font-size: 0.8em;
  }
  
  .navbar-lang-btn {
    padding: 6px 8px;
    min-width: auto;
  }
  
  .navbar-lang-code {
    display: none;
  }
  
  .navbar-lang-dropdown {
    right: -50px;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 0 10px;
  }
  
  .navbar-container {
    height: 50px;
  }
  
  .logo-icon {
    font-size: 1.2em;
  }
  
  .logo-text {
    font-size: 0.85em;
  }
  
  .main-content {
    padding: 25px 15px;
  }
  
  .page-title {
    font-size: 1.7em;
  }
  
  .card-icon {
    font-size: 2.5em;
  }
  
  .card-btn {
    padding: 10px 25px;
    font-size: 0.9em;
  }
}

/* ===== LOGIN PAGE STYLES ===== */

/* Login container */
.login-container {
  max-width: 450px;
  background: rgba(10, 15, 30, 0.85);
  border: 2px solid rgba(0, 217, 255, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.login-subtitle {
  color: #aaa;
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Login options */
.login-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.login-btn .login-icon {
  font-size: 1.5em;
}

/* Discord login button */
.discord-login {
  background: #5865f2;
  color: #fff;
}

.discord-login:hover {
  background: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Email login button */
.email-login {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.email-login:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d9ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

/* Login divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #666;
  font-size: 0.9em;
  margin: 10px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Navbar login button */
.nav-btn-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, #00d9ff, #00ff88);
  color: #1a1a2e;
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
  margin-left: 10px;
}

.nav-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

/* ============================
   BOOSTED BOSS BAR (pod navbarem)
   ============================ */
.boosted-boss-bar {
  padding: 10px 0;
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  overflow: visible;
  box-sizing: border-box;
}

.boosted-boss-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.boosted-boss-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 101;
}

.boosted-boss-link {
  display: block;
  text-decoration: none;
}

/* Główna ramka - układ flex */
.boosted-boss-frame {
  display: flex;
  align-items: flex-end;
  gap: 0;
  /* Cień pod całym podium */
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));
  overflow: visible;
}

/* Osobny kontener dla każdego podium */
.podium-container {
  position: relative;
  display: block;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* Obrazki podium bez marginesów */
.podium-container img {
  display: block;
  margin: 0;
  padding: 0;
}

/* Hover na osobnych kontenerach */
.podium-container:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Srebrny kontener */
.silver-container {
  position: relative;
  /* overflow: visible aby tooltip mógł się wyświetlić */
}

/* Złoty kontener */
.gold-container {
  position: relative;
  /* overflow: visible aby tooltip mógł się wyświetlić */
}

/* Obrazki podium */
.podium-img {
  display: block;
  height: auto;
  width: auto;
}

/* Ikona creature - wycentrowana wewnątrz .silver-container */
.silver-container .boosted-creature-img {
  position: absolute;
  top: 30%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 94px;
  height: 94px;
  object-fit: contain;
  z-index: 1;
}

/* Ikona bossa - wycentrowana wewnątrz .gold-container */
/* Możesz dostosować: top, left, width, height */
.gold-container .boosted-boss-img {
  position: absolute;
  /* Pozycja - dostosuj według potrzeb */
  top: 30%;
  left: 30%;
  transform: translate(-50%, -50%);
  /* Rozmiar */
  width: 94px;
  height: 94px;
  object-fit: contain;
  z-index: 1;
}

.boosted-boss-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 60px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-top: 2px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.boosted-boss-error {
  font-size: 1.2em;
  opacity: 0.5;
}

/* ============================
   BOOSTED TOOLTIP / INFO POPUP
   ============================ */
.boosted-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  transform: none;
  padding-top: 15px; /* Padding zamiast margin - utrzymuje hover */
  width: 280px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Wewnętrzna zawartość tooltipa */
.boosted-tooltip-inner {
  background-color: #1a1f2e;
  border: 2px solid #3a4a6b;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
  position: relative;
}

/* Strzałka tooltipa */
.boosted-tooltip-inner::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 20px;
  left: auto;
  transform: none;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #3a4a6b;
}

.boosted-tooltip-inner::after {
  content: '';
  position: absolute;
  top: -7px;
  right: 22px;
  left: auto;
  transform: none;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1a1f2e;
}

/* Pokazanie tooltipa na hover */
.podium-container:hover .boosted-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Utrzymanie tooltipa widocznego gdy mysz jest nad nim */
.boosted-tooltip:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Nagłówek tooltipa */
.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tooltip-title {
  flex: 1;
}

.tooltip-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.tooltip-type {
  font-size: 0.75em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tooltip-type.boss {
  color: #ffd700;
}

.tooltip-type.creature {
  color: #c0c0c0;
}

/* Stats w tooltipie */
.tooltip-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85em;
}

.stat-icon {
  font-size: 1em;
}

.stat-value {
  color: #fff;
  font-weight: 600;
}

/* Boss info (class, cooldown) */
.tooltip-boss-info {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.boss-class {
  font-size: 0.7em;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 2px 6px;
  border-radius: 4px;
}

.boss-cooldown {
  font-size: 0.7em;
  color: #888;
}

/* Resistances */
.tooltip-resistances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75em;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Sekcje tooltipa */
.tooltip-section {
  margin-bottom: 10px;
}

.tooltip-section:last-child {
  margin-bottom: 0;
}

.tooltip-label {
  font-size: 0.7em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tooltip-value {
  font-size: 0.9em;
  color: #ddd;
}

.tooltip-value a {
  color: #ff4444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tooltip-value a:hover {
  color: #ff6666;
  text-decoration: underline;
}

/* Lista lootów */
.tooltip-loot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.loot-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  color: #ccc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.loot-name {
  flex-shrink: 0;
}

.loot-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.loot-item.loot-more {
  background: rgba(77, 171, 247, 0.3);
  color: #4dabf7;
  font-style: italic;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(77, 171, 247, 0.4);
}

.loot-item.loot-more:hover {
  background: rgba(77, 171, 247, 0.5);
  color: #fff;
  transform: scale(1.05);
}

.loot-item.loot-expanded {
  animation: lootFadeIn 0.3s ease;
}

@keyframes lootFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loot-item.rare {
  background: rgba(138, 43, 226, 0.3);
  color: #da70d6;
}

.loot-item.very-rare {
  background: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

/* Link do wiki w sekcji loot (gdy brak danych) */
.wiki-loot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(77, 171, 247, 0.2), rgba(77, 171, 247, 0.1));
  border: 1px solid rgba(77, 171, 247, 0.3);
  border-radius: 6px;
  color: #4dabf7;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.wiki-loot-link:hover {
  background: linear-gradient(135deg, rgba(77, 171, 247, 0.3), rgba(77, 171, 247, 0.2));
  border-color: rgba(77, 171, 247, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(77, 171, 247, 0.3);
}

/* Link do wiki */
.tooltip-wiki {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-wiki a {
  color: #4dabf7;
  font-size: 0.85em;
  text-decoration: none;
}

.tooltip-wiki a:hover {
  text-decoration: underline;
}

/* ============================
   BOOSTED BOSS RESPONSIVE
   ============================ */

/* Mobile - pod navbarem, wycentrowane */
@media screen and (max-width: 768px) {
  .boosted-boss-bar {
    display: block;
    padding: 10px 0;
    position: relative;
  }
  
  .boosted-boss-container {
    justify-content: center;
    padding: 0 15px;
  }
  
  .boosted-boss-frame {
    transform: scale(0.7);
    transform-origin: center center;
  }
  
  /* Podium container na mobile */
  .podium-container {
    position: relative;
  }
  
  /* Tooltip bazowy na mobile */
  .boosted-tooltip {
    display: none;
    position: fixed;
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    height: auto;
    overflow-y: visible;
    z-index: 10001;
    padding-top: 0px;
  }
  
  /* ===== TOOLTIP DLA BOOSTED CREATURE (srebrne podium) ===== */
  .silver-container .boosted-tooltip {
    top: auto;
    left: 90%;
    transform: translateX(-50%);
    margin-top: 10px;
  }
  
  /* ===== TOOLTIP DLA BOOSTED BOSS (złote podium) ===== */
  .gold-container .boosted-tooltip {
    top: auto;
    left: 0%;
    transform: translateX(-50%);
    margin-top: 10px;
  }
  
  /* Wyłącz hover na mobile */
  .podium-container:hover .boosted-tooltip {
    display: none;
  }
  
  /* Aktywny tooltip po kliknięciu */
  .podium-container.tooltip-active .boosted-tooltip {
    display: block;
  }
  
  /* Strzałka tooltipa - ukryta na mobile bo fixed */
  .boosted-tooltip-inner::before,
  .boosted-tooltip-inner::after {
    display: none;
  }
  
  /* Overlay na mobile - wyłączony (bez przyciemnienia) */
  .tooltip-overlay {
    display: none !important;
  }
  
  /* Boosted boss widget wyżej niż overlay */
  .boosted-boss-widget {
    position: relative;
    z-index: 9999;
  }
  
  /* Przycisk zamknięcia */
  .tooltip-close {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 10002;
    line-height: 24px;
    text-align: center;
    padding: 0;
  }
  
  .tooltip-close:hover {
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Mniejszy padding w tooltipie na mobile */
  .boosted-tooltip-inner {
    padding: 12px;
  }
  
  .tooltip-header {
    padding-right: 25px;
  }
}

/* Ukryj przycisk zamknięcia na desktop */
@media screen and (min-width: 769px) {
  .tooltip-close {
    display: none;
  }
  
  .tooltip-overlay {
    display: none !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
  .boosted-boss-podium {
    transform: scale(0.9);
  }
  
  .boosted-boss-img {
    width: 38px;
    height: 38px;
  }
}

/* Login responsive */
@media screen and (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }
  
  .login-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .nav-btn-login {
    padding: 6px 12px;
    font-size: 0.8em;
  }
}

/* ===================================
   ADVERTISEMENT SIDEBARS
   =================================== */

.ad-sidebar {
  position: fixed;
  top: 60px;
  bottom: 100px;
  width: 340px;
  z-index: 50;
  display: flex;
  align-items: stretch;
  padding: 5px;
}

.ad-sidebar-left {
  left: 5px;
}

.ad-sidebar-right {
  right: 5px;
}

.ad-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ad-label {
  text-align: center;
  font-size: 0.6em;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  flex-shrink: 0;
}

/* Main frame containing all ad slots */
.ad-frame {
  flex: 1;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.1),
              inset 0 0 20px rgba(0, 217, 255, 0.05);
}

/* Individual ad slot inside the frame */
.ad-slot {
  flex: 1;
  border: 1px dashed rgba(0, 217, 255, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  min-height: 120px;
  transition: all 0.3s ease;
}

.ad-slot:hover {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.15);
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.ad-placeholder-text {
  color: rgba(0, 217, 255, 0.3);
  font-size: 0.7em;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main content wrapper - centers content between ad sidebars */
.page-with-navbar .main-content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 190px;
  padding-right: 190px;
  box-sizing: content-box;
}

/* Responsive - Adjust for different screen sizes */
@media screen and (max-width: 1600px) {
  .page-with-navbar .main-content {
    padding-left: 180px;
    padding-right: 180px;
  }
}

@media screen and (max-width: 1500px) {
  /* Hide both sidebars below 1500px */
  .ad-sidebar {
    display: none;
  }
  
  .page-with-navbar .main-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 1024px) {
  
  .page-with-navbar .main-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .page-with-navbar .main-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===================================
   HERO FRAME - Title Section
   =================================== */

.hero-frame {
  background: rgba(10, 15, 30, 0.85);
  border: 2px solid rgba(0, 217, 255, 0.4);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.15),
              inset 0 0 60px rgba(0, 217, 255, 0.05);
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.hero-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00d9ff, transparent);
}

.hero-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.hero-subtitle {
  font-size: 1.1em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===================================
   OFFER SECTION - What We Offer
   =================================== */

.offer-section {
  margin-bottom: 50px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0 10px;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 1.8em;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95em;
  margin-bottom: 30px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.offer-card {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d9ff, #9146ff);
  opacity: 0;
  transition: opacity 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 217, 255, 0.1);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.offer-title {
  font-size: 1.1em;
  color: #00d9ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: bold;
}

.offer-description {
  font-size: 0.85em;
  color: #aaa;
  line-height: 1.5;
}

/* ===================================
   NEWS SECTION - Latest News
   =================================== */

.news-section {
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0 10px;
  box-sizing: border-box;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.news-card {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.news-date {
  font-size: 0.7em;
  color: #00d9ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-category-badge {
  font-size: 0.65em;
  padding: 2px 6px;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 10px;
  color: #00d9ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card[data-category="community"] .news-category-badge {
  background: rgba(78, 205, 196, 0.15);
  border-color: rgba(78, 205, 196, 0.3);
  color: #4ecdc4;
}

.news-card[data-category="development"] .news-category-badge {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ffa500;
}

.news-card[data-category="technical"] .news-category-badge {
  background: rgba(147, 112, 219, 0.15);
  border-color: rgba(147, 112, 219, 0.3);
  color: #9370db;
}

.news-card[data-category="support"] .news-category-badge {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.news-title {
  font-size: 0.95em;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
  flex-grow: 1;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.8em;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-link {
  font-size: 0.8em;
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: auto;
}

.news-link:hover {
  color: #00ff88;
}

/* News Loading & Error States */
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #888;
}

.news-loading .loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 217, 255, 0.2);
  border-radius: 50%;
  border-top-color: #00d9ff;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.news-empty,
.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #888;
  background: rgba(10, 15, 30, 0.5);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================
   NEWS DETAIL PAGE
   ============================================ */

.news-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.news-detail-nav {
  margin-bottom: 25px;
}

.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: #00d9ff;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.news-back-btn:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateX(-3px);
}

.news-detail-container {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.news-detail-header {
  padding: 30px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 100, 150, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-detail-header[data-category="community"] {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(40, 100, 100, 0.1) 100%);
}

.news-detail-header[data-category="development"] {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(150, 80, 0, 0.1) 100%);
}

.news-detail-header[data-category="technical"] {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.15) 0%, rgba(80, 50, 120, 0.1) 100%);
}

.news-detail-header[data-category="support"] {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(150, 50, 50, 0.1) 100%);
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.news-detail-date {
  font-size: 0.85em;
  color: #00d9ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-detail-category {
  font-size: 0.8em;
  padding: 5px 12px;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 20px;
  color: #00d9ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-detail-header[data-category="community"] .news-detail-category {
  background: rgba(78, 205, 196, 0.15);
  border-color: rgba(78, 205, 196, 0.3);
  color: #4ecdc4;
}

.news-detail-header[data-category="development"] .news-detail-category {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ffa500;
}

.news-detail-header[data-category="technical"] .news-detail-category {
  background: rgba(147, 112, 219, 0.15);
  border-color: rgba(147, 112, 219, 0.3);
  color: #9370db;
}

.news-detail-header[data-category="support"] .news-detail-category {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.news-detail-title {
  font-size: 1.8em;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-detail-content {
  padding: 30px;
  color: #ccc;
  font-size: 1em;
  line-height: 1.8;
}

.news-detail-content p {
  margin-bottom: 1.2em;
}

.news-detail-content a {
  color: #00d9ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 217, 255, 0.5);
  transition: all 0.3s;
}

.news-detail-content a:hover {
  color: #00ff88;
  border-color: #00ff88;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

.news-detail-content ul,
.news-detail-content ol {
  padding-left: 25px;
  margin-bottom: 1.2em;
}

.news-detail-content li {
  margin-bottom: 0.5em;
}

.news-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.news-detail-content th,
.news-detail-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-detail-content th {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  font-weight: 600;
}

.news-detail-footer {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.news-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #888;
  text-decoration: none;
  font-size: 0.85em;
  transition: all 0.3s;
}

.news-source-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ccc;
}

.news-detail-error {
  text-align: center;
  padding: 60px 30px;
}

.news-detail-error .error-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.news-detail-error h2 {
  color: #ff6b6b;
  margin-bottom: 25px;
  font-size: 1.3em;
}

/* News Detail Responsive */
@media screen and (max-width: 768px) {
  .news-detail-page {
    padding: 15px;
  }
  
  .news-detail-header {
    padding: 20px;
  }
  
  .news-detail-title {
    font-size: 1.4em;
  }
  
  .news-detail-content {
    padding: 20px;
    font-size: 0.95em;
  }
  
  .news-detail-footer {
    padding: 15px 20px;
  }
}

/* Responsive for new sections */
@media screen and (max-width: 1200px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .hero-frame {
    padding: 30px 20px;
  }
  
  .hero-title {
    font-size: 2em;
    letter-spacing: 2px;
  }
  
  .offer-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.4em;
  }
}

/* =====================================================
   CSP-SAFE UTILITY CLASSES (zamiast inline styles)
   ===================================================== */

/* Error page message */
.error-message {
  margin: 20px 0;
  color: #aaa;
}

/* Resistance colors */
.resistance-immune {
  color: #4ecdc4;
}

.resistance-strong {
  color: #90EE90;
}

.resistance-weak {
  color: #ff6b6b;
}

/* No video text */
.no-video-text {
  color: #666;
}

/* Shield/immunity text */
.immunity-text {
  color: #4ecdc4;
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.98), rgba(25, 30, 50, 0.98));
  border-top: 2px solid rgba(0, 217, 255, 0.4);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2.5em;
  animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #00d9ff;
  margin-bottom: 5px;
}

.cookie-description {
  font-size: 0.95em;
  color: #b0b0b0;
  line-height: 1.5;
}

.cookie-link {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s;
}

.cookie-link:hover {
  color: #4ecdc4;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-btn-settings {
  background: transparent;
  color: #00d9ff;
  border: 2px solid rgba(0, 217, 255, 0.5);
}

.cookie-btn-settings:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: #00d9ff;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #00d9ff, #00b8d4);
  color: #0a0f1e;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #4ecdc4, #00d9ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.98), rgba(25, 30, 50, 0.98));
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s;
  overflow: hidden;
}

.cookie-modal.show .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.cookie-modal-header h3 {
  font-size: 1.2em;
  color: #00d9ff;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.3s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cookie-modal-close:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.cookie-modal-body {
  padding: 20px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-option-name {
  font-weight: 600;
  color: #fff;
}

.cookie-option-desc {
  font-size: 0.85em;
  color: #888;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transition: all 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #00d9ff, #4ecdc4);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle.disabled .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-btn-clear {
  background: transparent;
  color: #ff6b6b;
  border: 2px solid rgba(255, 107, 107, 0.5);
}

.cookie-btn-clear:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
}

.cookie-btn-save {
  background: linear-gradient(135deg, #4ecdc4, #00d9ff);
  color: #0a0f1e;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.cookie-btn-save:hover {
  background: linear-gradient(135deg, #00d9ff, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Cookie Banner Responsive */
@media screen and (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    min-width: 100%;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 150px;
  }
  
  .cookie-modal-content {
    width: 95%;
    margin: 10px;
  }
}

/* Footer Cookie Button */
.footer-cookie-btn {
  color: #00d9ff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-cookie-btn:hover {
  color: #4ecdc4;
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}
/* =====================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Device Breakpoints:
   - Ultra Small: < 360px (very small phones)
   - Small: 360px - 480px (standard phones)
   - Medium: 480px - 640px (large phones/phablets)
   - Tablet Portrait: 640px - 768px
   - Tablet Landscape: 768px - 1024px
   - Small Desktop: 1024px - 1200px
   - Desktop: 1200px - 1440px
   - Large Desktop: 1440px+
   ===================================================== */

/* ===== BASE RESPONSIVE - CSS Variables for scaling ===== */
:root {
  --font-scale: 0.85;
  --spacing-scale: 0.85;
  --container-padding: 16px;
}

/* ===== LARGE DESKTOP: 1440px+ ===== */
@media screen and (min-width: 1440px) {
  :root {
    --font-scale: 0.95;
    --spacing-scale: 1;
  }
  
  .main-content {
    max-width: 1300px;
    padding: 40px 25px;
  }
  
  .hero-title {
    font-size: 2.6em;
  }
  
  .offer-grid {
    gap: 25px;
  }
  
  .news-grid {
    gap: 20px;
  }
}

/* ===== DESKTOP: 1200px - 1439px ===== */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .main-content {
    max-width: 1100px;
    padding: 35px 20px;
  }
  
  .hero-title {
    font-size: 2.3em;
  }
}

/* ===== SMALL DESKTOP: 1024px - 1199px ===== */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .main-content {
    max-width: 1000px;
    padding: 35px 20px;
  }
  
  .hero-title {
    font-size: 2.5em;
    letter-spacing: 3px;
  }
  
  .hero-subtitle {
    font-size: 1em;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== TABLET LANDSCAPE: 768px - 1023px ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .main-content {
    padding: 30px 20px;
  }
  
  .hero-frame {
    padding: 35px 25px;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 2.2em;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 0.95em;
    letter-spacing: 1px;
  }
  
  .section-title {
    font-size: 1.5em;
    letter-spacing: 2px;
  }
  
  .section-subtitle {
    font-size: 0.9em;
    margin-bottom: 25px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .offer-card {
    padding: 20px 12px;
  }
  
  .offer-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
  }
  
  .offer-title {
    font-size: 1em;
    letter-spacing: 1px;
  }
  
  .offer-description {
    font-size: 0.8em;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .news-card {
    padding: 18px;
  }
  
  /* Navbar adjustments */
  .navbar-container {
    padding: 0 15px;
  }
  
  .nav-social {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
  }
  
  .nav-btn-login {
    padding: 8px 14px;
    font-size: 0.85em;
  }
}

/* ===== TABLET PORTRAIT: 640px - 767px ===== */
@media screen and (min-width: 640px) and (max-width: 767px) {
  .main-content {
    padding: 25px 15px;
  }
  
  .hero-frame {
    padding: 30px 20px;
    margin-bottom: 35px;
    border-radius: 10px;
  }
  
  .hero-title {
    font-size: 1.9em;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-size: 0.9em;
    letter-spacing: 1px;
  }
  
  .section-title {
    font-size: 1.4em;
    margin-bottom: 8px;
  }
  
  .section-subtitle {
    font-size: 0.85em;
    margin-bottom: 20px;
  }
  
  .offer-section {
    margin-bottom: 35px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .offer-card {
    padding: 18px 10px;
    border-radius: 10px;
  }
  
  .offer-icon {
    font-size: 2em;
    margin-bottom: 10px;
  }
  
  .offer-title {
    font-size: 0.95em;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }
  
  .offer-description {
    font-size: 0.75em;
    line-height: 1.4;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .news-card {
    padding: 16px;
  }
  
  /* Navbar */
  .navbar-container {
    height: 55px;
  }
  
  .logo-text {
    font-size: 0.95em;
  }
  
  .nav-social {
    width: 34px;
    height: 34px;
    font-size: 1em;
  }
  
  .hamburger-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

/* ===== MEDIUM PHONES (Phablets): 480px - 639px ===== */
@media screen and (min-width: 480px) and (max-width: 639px) {
  body.page-with-navbar {
    font-size: 15px;
  }
  
  .main-content {
    padding: 20px 12px;
  }
  
  .hero-frame {
    padding: 25px 18px;
    margin-bottom: 30px;
    border-radius: 10px;
  }
  
  .hero-title {
    font-size: 1.7em;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 0.85em;
    letter-spacing: 1px;
  }
  
  .section-title {
    font-size: 1.3em;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }
  
  .section-subtitle {
    font-size: 0.8em;
    margin-bottom: 18px;
  }
  
  .offer-section {
    margin-bottom: 30px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .offer-card {
    padding: 15px 8px;
    border-radius: 8px;
  }
  
  .offer-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
  }
  
  .offer-title {
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  
  .offer-description {
    font-size: 0.7em;
    line-height: 1.35;
  }
  
  .news-section {
    margin-bottom: 30px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .news-card {
    padding: 14px;
  }
  
  .news-title {
    font-size: 0.95em;
  }
  
  .news-excerpt {
    font-size: 0.8em;
  }
  
  /* Navbar */
  .navbar {
    padding: 0 10px;
  }
  
  .navbar-container {
    height: 52px;
    padding: 0 8px;
  }
  
  .logo-image {
    width: 35px;
    height: 35px;
  }
  
  .logo-text {
    font-size: 0.9em;
  }
  
  .nav-social {
    width: 32px;
    height: 32px;
    font-size: 0.95em;
    border-radius: 8px;
  }
  
  .navbar-social {
    gap: 8px;
  }
  
  .nav-btn-login {
    padding: 6px 10px;
    font-size: 0.75em;
    border-radius: 6px;
  }
  
  .hamburger-btn {
    padding: 6px 10px;
    font-size: 0.85em;
  }
  
  .menu-text {
    font-size: 0.9em;
  }
  
  /* Footer */
  .page-footer {
    padding: 15px 10px;
  }
  
  .footer-copyright {
    font-size: 0.7em;
  }
  
  .footer-links {
    gap: 10px;
  }
  
  .footer-links a {
    font-size: 0.7em;
  }
}

/* ===== SMALL PHONES: 360px - 479px ===== */
@media screen and (min-width: 360px) and (max-width: 479px) {
  body.page-with-navbar {
    font-size: 14px;
  }
  
  .main-content {
    padding: 15px 10px;
  }
  
  .hero-frame {
    padding: 22px 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-width: 1px;
  }
  
  .hero-title {
    font-size: 1.45em;
    letter-spacing: 1px;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.75em;
    letter-spacing: 1px;
    line-height: 1.3;
  }
  
  .section-title {
    font-size: 1.15em;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  
  .section-subtitle {
    font-size: 0.72em;
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 0 5px;
  }
  
  .offer-section {
    margin-bottom: 25px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .offer-card {
    padding: 12px 6px;
    border-radius: 8px;
  }
  
  .offer-icon {
    font-size: 1.5em;
    margin-bottom: 6px;
  }
  
  .offer-title {
    font-size: 0.72em;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
  }
  
  .offer-description {
    font-size: 0.62em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .news-section {
    margin-bottom: 25px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .news-card {
    padding: 12px;
    border-radius: 8px;
  }
  
  .news-header {
    margin-bottom: 8px;
  }
  
  .news-date {
    font-size: 0.65em;
  }
  
  .news-category {
    font-size: 0.6em;
    padding: 2px 6px;
  }
  
  .news-title {
    font-size: 0.85em;
    margin-bottom: 6px;
  }
  
  .news-excerpt {
    font-size: 0.72em;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  
  .news-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
  
  .news-read-more {
    font-size: 0.7em;
    padding: 6px 12px;
  }
  
  /* Navbar */
  .navbar {
    padding: 0 8px;
  }
  
  .navbar-container {
    height: 48px;
    padding: 0 5px;
  }
  
  .navbar-logo {
    gap: 6px;
  }
  
  .logo-image {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
  
  .logo-text {
    font-size: 0.8em;
  }
  
  .navbar-social {
    gap: 6px;
  }
  
  .nav-social {
    width: 28px;
    height: 28px;
    font-size: 0.85em;
    border-radius: 6px;
  }
  
  .nav-btn-login {
    padding: 5px 8px;
    font-size: 0.68em;
    border-radius: 5px;
  }
  
  .hamburger-btn {
    padding: 5px 8px;
    font-size: 0.8em;
    gap: 4px;
  }
  
  .menu-text {
    font-size: 0.85em;
  }
  
  .menu-icon {
    font-size: 0.7em;
  }
  
  /* Dropdown menu */
  .dropdown-menu {
    top: 50px;
    max-width: calc(100% - 16px);
    padding: 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-radius: 10px;
  }
  
  .dropdown-menu .nav-link {
    padding: 8px 4px;
    font-size: 0.62em;
    min-width: auto;
    gap: 3px;
    border-radius: 6px;
  }
  
  .dropdown-menu .nav-icon {
    font-size: 1em;
  }
  
  /* Footer */
  .page-footer {
    padding: 12px 8px;
  }
  
  .footer-container {
    gap: 8px;
  }
  
  .footer-copyright {
    font-size: 0.65em;
  }
  
  .footer-links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    font-size: 0.65em;
  }
  
  .footer-divider {
    font-size: 0.6em;
    margin: 0 4px;
  }
}

/* ===== ULTRA SMALL PHONES: < 360px ===== */
@media screen and (max-width: 359px) {
  body.page-with-navbar {
    font-size: 13px;
  }
  
  .main-content {
    padding: 12px 8px;
  }
  
  .hero-frame {
    padding: 18px 12px;
    margin-bottom: 20px;
    border-radius: 6px;
  }
  
  .hero-title {
    font-size: 1.25em;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: 0.68em;
    letter-spacing: 0.5px;
  }
  
  .section-title {
    font-size: 1em;
    letter-spacing: 0.5px;
  }
  
  .section-subtitle {
    font-size: 0.65em;
    margin-bottom: 12px;
  }
  
  .offer-section {
    margin-bottom: 20px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .offer-card {
    padding: 10px 5px;
    border-radius: 6px;
  }
  
  .offer-icon {
    font-size: 1.3em;
    margin-bottom: 5px;
  }
  
  .offer-title {
    font-size: 0.65em;
    letter-spacing: 0;
    margin-bottom: 4px;
  }
  
  .offer-description {
    font-size: 0.55em;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }
  
  .news-grid {
    gap: 6px;
  }
  
  .news-card {
    padding: 10px;
    border-radius: 6px;
  }
  
  .news-title {
    font-size: 0.78em;
  }
  
  .news-excerpt {
    font-size: 0.65em;
  }
  
  /* Navbar */
  .navbar-container {
    height: 44px;
  }
  
  .logo-image {
    width: 26px;
    height: 26px;
  }
  
  .logo-text {
    font-size: 0.72em;
  }
  
  .nav-social {
    width: 26px;
    height: 26px;
    font-size: 0.8em;
  }
  
  .nav-btn-login {
    padding: 4px 6px;
    font-size: 0.6em;
  }
  
  .hamburger-btn {
    padding: 4px 6px;
    font-size: 0.75em;
  }
  
  /* Dropdown */
  .dropdown-menu {
    top: 46px;
    padding: 6px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  .dropdown-menu .nav-link {
    padding: 6px 3px;
    font-size: 0.55em;
    gap: 2px;
  }
  
  .dropdown-menu .nav-icon {
    font-size: 0.9em;
  }
  
  /* Footer */
  .footer-copyright {
    font-size: 0.6em;
  }
  
  .footer-links a {
    font-size: 0.58em;
  }
}

/* ===== LANDSCAPE MODE FIXES ===== */
@media screen and (max-height: 450px) and (orientation: landscape) {
  .hero-frame {
    padding: 15px 20px;
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 1.4em;
  }
  
  .hero-subtitle {
    font-size: 0.75em;
  }
  
  .offer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .offer-card {
    padding: 12px 8px;
  }
  
  .offer-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
  }
  
  .offer-title {
    font-size: 0.7em;
  }
  
  .offer-description {
    font-size: 0.6em;
    -webkit-line-clamp: 2;
  }
  
  .section-title {
    font-size: 1.1em;
    margin-bottom: 5px;
  }
  
  .section-subtitle {
    font-size: 0.75em;
    margin-bottom: 15px;
  }
  
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .navbar-container {
    height: 45px;
  }
  
  .main-content {
    padding: 15px;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Większe obszary klikalne dla urządzeń dotykowych */
  .nav-link,
  .dropdown-menu .nav-link {
    min-height: 44px;
  }
  
  .nav-social,
  .hamburger-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .news-read-more,
  .nav-btn-login {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Usuń hover efekty na dotykowych */
  .offer-card:hover,
  .news-card:hover {
    transform: none;
  }
  
  /* Dodaj active state */
  .offer-card:active,
  .news-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ===== SAFE AREA (dla notch/island na iPhone) ===== */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .page-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  
  .cookie-banner {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* ===== DARK MODE PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
  /* Już mamy dark mode domyślnie, ale można dostosować */
  :root {
    --bg-opacity: 0.9;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .hero-frame,
  .offer-card,
  .news-card {
    border-width: 2px;
    border-color: rgba(0, 217, 255, 0.6);
  }
  
  .hero-title,
  .section-title {
    text-shadow: none;
    color: #fff;
  }
  
  .offer-description,
  .news-excerpt,
  .hero-subtitle,
  .section-subtitle {
    color: #ccc;
  }
}

/* =====================================================
   COMPREHENSIVE RESPONSIVE FIX FOR DEATH/LEVELUP BAR
   AND BOOSTED BAR - ALL SCREEN SIZES
   ===================================================== */

/* ===== LATEST DEATH BAR - UNIFIED RESPONSIVE ===== */

/* Base styles - ensure proper sizing */
.latest-death-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 8px 10px;
  position: relative;
  z-index: 99;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.latest-death-widget,
.latest-levelup-widget {
  flex: 0 1 auto;
  max-width: calc(50% - 10px);
  min-width: 0;
}

.death-frame,
.levelup-frame {
  max-width: 100%;
  overflow: hidden;
}

.death-frame-content {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop: 1024px+ */
@media screen and (min-width: 1024px) {
  .latest-death-bar {
    gap: 20px;
    padding: 10px 20px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 450px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 10px 18px;
  }
}

/* Tablet: 768px - 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .latest-death-bar {
    gap: 15px;
    padding: 8px 15px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 380px;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 8px 14px;
    gap: 8px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1.1em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.88em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.78em;
  }
  
  .death-killer {
    max-width: 120px;
  }
}

/* Small Tablet / Large Phone: 640px - 767px */
@media screen and (min-width: 640px) and (max-width: 767px) {
  .latest-death-bar {
    flex-direction: row;
    gap: 10px;
    padding: 6px 10px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 48%;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 1em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.8em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.72em;
  }
  
  .death-killer {
    max-width: 100px;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
}

/* Phablet: 480px - 639px */
@media screen and (min-width: 480px) and (max-width: 639px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 6px;
    padding: 5px 8px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 100%;
    width: 100%;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 6px 10px;
    gap: 6px;
    width: 100%;
    justify-content: center;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.95em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.78em;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.7em;
    justify-content: center;
  }
  
  .death-killer {
    max-width: 100px;
  }
  
  .death-separator {
    display: none;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
}

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 5px;
    padding: 4px 6px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 100%;
    width: 100%;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 5px 8px;
    gap: 5px;
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    justify-content: center;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.9em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.72em;
    max-width: 100px;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    font-size: 0.68em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.65em;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .death-killer {
    max-width: 80px;
  }
  
  .death-separator {
    display: none;
  }
  
  .death-world,
  .levelup-world {
    display: none;
  }
  
  .death-loading-spinner,
  .levelup-loading-spinner {
    width: 14px;
    height: 14px;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .latest-death-bar {
    flex-direction: column;
    gap: 4px;
    padding: 3px 5px;
  }
  
  .latest-death-widget,
  .latest-levelup-widget {
    max-width: 100%;
    width: 100%;
  }
  
  .death-frame,
  .levelup-frame {
    padding: 4px 6px;
    gap: 4px;
    width: 100%;
    min-height: 32px;
    border-radius: 6px;
    border-width: 1px;
    justify-content: center;
  }
  
  .death-skull,
  .levelup-icon {
    font-size: 0.8em;
  }
  
  .death-player-name,
  .levelup-player-name {
    font-size: 0.65em;
    max-width: 80px;
  }
  
  .death-frame-content {
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    font-size: 0.6em;
  }
  
  .death-details,
  .levelup-details {
    font-size: 0.58em;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .death-level,
  .levelup-level {
    font-size: 0.58em;
  }
  
  .death-killer {
    max-width: 60px;
    font-size: 0.55em;
  }
  
  .death-separator,
  .death-world,
  .levelup-world {
    display: none;
  }
  
  .death-loading-spinner,
  .levelup-loading-spinner {
    width: 12px;
    height: 12px;
  }
}

/* ===== BOOSTED BOSS BAR - UNIFIED RESPONSIVE ===== */

/* Tablet: 768px - 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .boosted-boss-bar {
    padding: 8px 0;
  }
  
  .boosted-boss-container {
    padding: 0 15px;
    justify-content: center;
  }
  
  .boosted-boss-frame {
    transform: scale(0.75);
    transform-origin: center center;
  }
}

/* Small Tablet: 640px - 767px */
@media screen and (min-width: 640px) and (max-width: 767px) {
  .boosted-boss-bar {
    padding: 5px 0;
  }
  
  .boosted-boss-container {
    padding: 0 10px;
    justify-content: center;
  }
  
  .boosted-boss-frame {
    transform: scale(0.65);
    transform-origin: center center;
  }
}

/* Phablet: 480px - 639px */
@media screen and (min-width: 480px) and (max-width: 639px) {
  .boosted-boss-bar {
    padding: 5px 0;
  }
  
  .boosted-boss-container {
    padding: 0 8px;
    justify-content: center;
  }
  
  .boosted-boss-frame {
    transform: scale(0.55);
    transform-origin: center center;
  }
}

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .boosted-boss-bar {
    padding: 3px 0;
  }
  
  .boosted-boss-container {
    padding: 0 5px;
    justify-content: center;
  }
  
  .boosted-boss-frame {
    transform: scale(0.45);
    transform-origin: center center;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .boosted-boss-bar {
    padding: 2px 0;
  }
  
  .boosted-boss-container {
    padding: 0 3px;
    justify-content: center;
  }
  
  .boosted-boss-frame {
    transform: scale(0.38);
    transform-origin: center center;
  }
}

/* ===== NAVBAR RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .navbar {
    padding: 0 5px;
  }
  
  .navbar-container {
    height: 50px;
    padding: 0 5px;
  }
  
  .navbar-logo {
    gap: 5px;
  }
  
  .logo-image {
    width: 28px;
    height: 28px;
  }
  
  .logo-text {
    font-size: 0.75em;
  }
  
  .navbar-social {
    gap: 4px;
  }
  
  .nav-social {
    width: 30px;
    height: 30px;
    font-size: 0.9em;
  }
  
  .nav-btn-login {
    padding: 5px 8px;
    font-size: 0.65em;
  }
  
  .hamburger-btn {
    padding: 5px 8px;
    font-size: 0.75em;
    gap: 3px;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .navbar {
    padding: 0 3px;
  }
  
  .navbar-container {
    height: 44px;
    padding: 0 3px;
  }
  
  .navbar-logo {
    gap: 4px;
  }
  
  .logo-image {
    width: 24px;
    height: 24px;
  }
  
  .logo-text {
    font-size: 0.65em;
  }
  
  .navbar-social {
    gap: 3px;
  }
  
  .nav-social {
    width: 26px;
    height: 26px;
    font-size: 0.8em;
    border-radius: 5px;
  }
  
  .nav-btn-login {
    padding: 4px 6px;
    font-size: 0.58em;
    border-radius: 4px;
  }
  
  .hamburger-btn {
    padding: 4px 5px;
    font-size: 0.68em;
    gap: 2px;
  }
  
  .menu-text {
    font-size: 0.75em;
  }
  
  .menu-icon {
    font-size: 0.6em;
  }
}

/* ===== HERO FRAME RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .hero-frame {
    padding: 20px 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .hero-title {
    font-size: 1.35em;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.72em;
    letter-spacing: 0.5px;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .hero-frame {
    padding: 15px 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    margin-left: 3px;
    margin-right: 3px;
    border-width: 1px;
  }
  
  .hero-title {
    font-size: 1.15em;
    letter-spacing: 0.5px;
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: 0.62em;
    letter-spacing: 0;
  }
}

/* ===== OFFER GRID RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .offer-section {
    padding: 0 5px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .offer-card {
    padding: 12px 8px;
  }
  
  .offer-icon {
    font-size: 1.6em;
    margin-bottom: 8px;
  }
  
  .offer-title {
    font-size: 0.7em;
    margin-bottom: 5px;
  }
  
  .offer-description {
    font-size: 0.6em;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .offer-section {
    padding: 0 3px;
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  
  .offer-card {
    padding: 10px 5px;
  }
  
  .offer-icon {
    font-size: 1.4em;
    margin-bottom: 5px;
  }
  
  .offer-title {
    font-size: 0.6em;
    letter-spacing: 0;
    margin-bottom: 4px;
  }
  
  .offer-description {
    font-size: 0.52em;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }
}

/* ===== NEWS GRID RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .news-section {
    padding: 0 5px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .news-card {
    padding: 12px 10px;
  }
  
  .news-title {
    font-size: 0.82em;
  }
  
  .news-excerpt {
    font-size: 0.7em;
    -webkit-line-clamp: 2;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .news-section {
    padding: 0 3px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .news-card {
    padding: 10px 8px;
  }
  
  .news-title {
    font-size: 0.75em;
  }
  
  .news-excerpt {
    font-size: 0.62em;
    -webkit-line-clamp: 2;
  }
  
  .news-read-more {
    font-size: 0.6em;
    padding: 5px 10px;
  }
}

/* ===== FOOTER RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .page-footer {
    padding: 10px 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  }
  
  .footer-copyright {
    font-size: 0.62em;
    margin-bottom: 6px;
  }
  
  .footer-links {
    gap: 6px;
  }
  
  .footer-links a {
    font-size: 0.6em;
  }
  
  .footer-divider {
    font-size: 0.55em;
  }
  
  /* Main content padding for fixed footer */
  .page-with-navbar .main-content {
    padding-bottom: 80px;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .page-footer {
    padding: 8px 5px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  }
  
  .footer-copyright {
    font-size: 0.55em;
    margin-bottom: 5px;
  }
  
  .footer-links {
    gap: 4px;
  }
  
  .footer-links a {
    font-size: 0.52em;
  }
  
  .footer-divider {
    font-size: 0.5em;
    margin: 0 2px;
  }
  
  /* Main content padding for fixed footer */
  .page-with-navbar .main-content {
    padding-bottom: 70px;
  }
}

/* ===== SECTION TITLES RESPONSIVE FIXES ===== */

/* Small Phone: 360px - 479px */
@media screen and (min-width: 360px) and (max-width: 479px) {
  .section-title {
    font-size: 1.1em;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  
  .section-subtitle {
    font-size: 0.68em;
    margin-bottom: 12px;
    padding: 0 10px;
  }
}

/* Extra Small Phone: < 360px */
@media screen and (max-width: 359px) {
  .section-title {
    font-size: 0.95em;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  
  .section-subtitle {
    font-size: 0.6em;
    margin-bottom: 10px;
    padding: 0 5px;
  }
}

/* ============================================
   MODERN RESPONSIVE SYSTEM
   Simplified media queries working with clamp()
   ============================================ */

/* Mobile-first critical fixes */
@media screen and (max-width: 600px) {
  :root {
    --container-padding: clamp(10px, 4vw, 20px);
  }
  
  body {
    padding: var(--space-sm);
    align-items: flex-start;
    padding-top: var(--space-md);
  }
  
  body.page-with-navbar {
    padding: 0;
    padding-top: 0;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: var(--space-sm);
  }
  
  /* Stack social links on mobile */
  .social-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  
  .social-link {
    width: 100%;
  }
  
  /* Full width buttons on mobile */
  .btn {
    width: 100%;
    display: block;
  }
  
  /* Join page options */
  .join-option a {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /* Feature cards */
  .feature-cards {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .feature-card {
    width: 100%;
    max-width: 100%;
  }
  
  /* News grid */
  .news-container {
    grid-template-columns: 1fr !important;
  }
  
  /* Footer */
  .footer-info {
    padding: var(--space-sm);
  }
  
  .info-links {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .footer-separator {
    display: none;
  }
}

/* iPhone 14 Pro Max and similar large phones */
@media screen and (min-width: 390px) and (max-width: 450px) {
  .navbar-container {
    padding: 0 var(--space-sm);
  }
  
  .boosted-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .boosted-card {
    flex: 0 1 calc(50% - var(--space-sm));
    min-width: 140px;
  }
}

/* Small phones (iPhone SE, etc.) */
@media screen and (max-width: 389px) {
  :root {
    --fs-3xl: clamp(1.4rem, 1.2rem + 2vw, 2rem);
    --fs-2xl: clamp(1.2rem, 1rem + 1.5vw, 1.6rem);
  }
  
  .navbar-container {
    padding: 0 var(--space-xs);
  }
  
  .logo-text {
    font-size: var(--fs-sm);
  }
  
  .hamburger-btn {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .boosted-cards {
    flex-direction: column;
  }
  
  .boosted-card {
    width: 100%;
  }
}

/* Tablets */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .container {
    max-width: min(90vw, 700px);
  }
  
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape orientation on phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
  body {
    align-items: flex-start;
  }
  
  .container {
    margin: var(--space-sm) auto;
    max-height: none;
  }
  
  .navbar-container {
    height: 50px;
  }
  
  .dropdown-menu {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .social-link,
  .nav-link,
  .hamburger-btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Disable hover effects that don't work well on touch */
  .btn:hover,
  .social-link:hover,
  .join-option:hover {
    transform: none;
  }
  
  /* Active states for touch feedback */
  .btn:active,
  .social-link:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-image {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   DEATHS PAGE - Lista Śmierci i Level Up
   ============================================ */

/* Page Content */
.deaths-page-content {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

/* ============================================
   TABS NAVIGATION
   ============================================ */
.deaths-tabs-container {
  margin-bottom: var(--space-md);
}

.deaths-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: calc(var(--space-sm) * 1.05);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.9) 0%, rgba(0, 15, 35, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(0, 30, 60, 0.5);
}

.deaths-tabs-nav::-webkit-scrollbar {
  height: 5px;
}

.deaths-tabs-nav::-webkit-scrollbar-track {
  background: rgba(0, 30, 60, 0.5);
  border-radius: 3px;
}

.deaths-tabs-nav::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.deaths-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: calc(var(--space-sm) * 1.2) calc(var(--space-lg) * 1.2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.deaths-tab-btn:hover {
  color: var(--color-primary);
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.3);
}

.deaths-tab-btn.active {
  color: var(--color-primary);
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.deaths-tab-btn .tab-icon {
  font-size: var(--fs-md);
}

.deaths-tab-btn .tab-text {
  font-size: var(--fs-sm);
}

/* Home Button - link styling */
.deaths-tab-btn.home-btn {
  text-decoration: none;
}

/* Tab Content */
.deaths-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.deaths-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SEARCH PLAYER TAB
   ============================================ */
.search-player-section {
  margin-bottom: var(--space-xl);
}

.search-player-container {
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-player-form {
  margin-bottom: var(--space-lg);
}

.search-input-group {
  display: flex;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.search-player-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 10, 25, 0.6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--fs-md);
  transition: all 0.3s ease;
}

.search-player-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.search-player-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-player-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #001a33;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-player-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.search-player-results {
  min-height: 200px;
}

.search-placeholder,
.guilds-placeholder,
.table-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-md);
}

/* ============================================
   HIGHSCORES TAB
   ============================================ */
.highscores-section {
  margin-bottom: var(--space-xl);
}

.highscores-container {
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.highscores-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-end;
}

.highscores-filter-group,
.guilds-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 150px;
}

.highscore-select,
.guild-select,
.guild-input {
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 10, 25, 0.6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.highscore-select:hover,
.guild-select:hover,
.guild-input:hover {
  border-color: rgba(0, 217, 255, 0.5);
}

.highscore-select:focus,
.guild-select:focus,
.guild-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.highscores-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.highscores-table .th-rank {
  width: 60px;
  text-align: center;
}

.highscores-table .th-value {
  width: 120px;
  text-align: right;
}

/* Highscores Pagination */
.highscores-pagination {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* Highscores Info Message */
.highscores-info {
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.1), transparent);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.info-row td {
  padding: var(--space-sm) !important;
  background: transparent !important;
}

/* ============================================
   GUILDS TAB
   ============================================ */
.guilds-section {
  margin-bottom: var(--space-xl);
}

.guilds-container {
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.guilds-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-end;
}

.guilds-list {
  min-height: 200px;
}

.guilds-count {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.guild-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 10, 25, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.guild-card:hover {
  border-color: var(--color-primary);
  background: rgba(0, 217, 255, 0.05);
}

.guild-card-clickable {
  cursor: pointer;
}

.guild-logo-container {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(0, 30, 60, 0.5);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guild-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.guild-info {
  flex: 1;
  min-width: 0;
}

.guild-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guild-name:hover {
  color: #00ffff;
  text-decoration: underline;
}

.guild-status {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
  vertical-align: middle;
}

.guild-status-formation {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.guild-members {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.guild-description {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-xs);
  line-height: 1.4;
  word-break: break-word;
}

/* ============================================
   PLAYER CARD (Search Results)
   ============================================ */
.player-card {
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 20, 45, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.player-header {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 217, 255, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.player-avatar {
  flex-shrink: 0;
}

.player-avatar img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 30, 60, 0.5);
}

.player-info {
  flex: 1;
}

.player-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.player-title {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.player-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.badge-vocation {
  background: rgba(155, 89, 182, 0.2);
  color: #bb8fce;
  border: 1px solid rgba(155, 89, 182, 0.4);
}

.badge-level {
  background: rgba(46, 204, 113, 0.2);
  color: #58d68d;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-world {
  background: rgba(52, 152, 219, 0.2);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.badge-guild {
  background: rgba(243, 156, 18, 0.2);
  color: #f5b041;
  border: 1px solid rgba(243, 156, 18, 0.4);
}

.player-details {
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
}

.detail-value {
  color: white;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.detail-value.status-premium {
  color: #f1c40f;
}

.detail-value.status-free {
  color: rgba(255, 255, 255, 0.6);
}

.player-deaths-section {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.player-deaths-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.player-death-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.death-level {
  color: #e74c3c;
  font-weight: 600;
}

.death-reason {
  flex: 1;
  color: rgba(255, 255, 255, 0.8);
}

.death-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
}

.player-actions {
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.player-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: #001a33;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.player-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.player-link-inline {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.player-link-inline:hover {
  color: #00ffff;
  text-decoration: underline;
}

/* ============================================
   PLAYER CARD - FULL PROFILE VERSION
   ============================================ */
.player-card-full {
  max-width: 600px;
  margin: 0 auto;
}

.player-card-full .player-header {
  align-items: center;
  flex-wrap: wrap;
}

.player-avatar-large {
  width: 80px;
  height: 80px;
}

.player-avatar-large img.vocation-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(0, 30, 60, 0.8);
  padding: var(--space-xs);
  border: 2px solid var(--color-border);
}

.player-card-full .player-name {
  font-size: var(--fs-2xl);
}

.player-card-full .player-title {
  font-size: var(--fs-md);
  color: #f1c40f;
  margin-bottom: var(--space-md);
}

/* Details Grid */
.player-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
}

.detail-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(0, 30, 60, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.detail-card:hover {
  background: rgba(0, 40, 80, 0.6);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.detail-icon {
  font-size: var(--fs-lg);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-sm);
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-card .detail-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-card .detail-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: white;
}

/* Deaths Section Enhanced */
.player-card-full .player-deaths-section {
  background: rgba(231, 76, 60, 0.05);
}

.player-card-full .section-title {
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player-card-full .player-death-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.player-card-full .death-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-card-full .death-reason {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.no-deaths {
  padding: var(--space-md);
  text-align: center;
  color: rgba(46, 204, 113, 0.9);
  font-size: var(--fs-md);
  background: rgba(46, 204, 113, 0.1);
  border-radius: var(--radius-md);
}

/* Player Level Ups Section */
.player-levelups-section {
  padding: var(--space-lg);
  background: rgba(46, 204, 113, 0.05);
  border-top: 1px solid var(--color-border);
}

.player-levelups-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.player-levelup-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: rgba(0, 30, 60, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-success);
}

.levelup-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.levelup-level {
  color: var(--color-success);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.levelup-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
}

.no-levelups {
  padding: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
}

/* Player Card Pagination */
.player-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  margin-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-pagination .pagination-btn {
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-pagination .pagination-btn:hover:not(:disabled) {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-1px);
}

.player-pagination .pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.player-pagination .pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  min-width: 50px;
  text-align: center;
}

/* Player Footer */
.player-footer {
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--color-border);
}

.player-card-full .player-actions {
  padding: 0;
  background: none;
  margin-bottom: var(--space-sm);
}

.player-link-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: #001a33;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-md);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

button.discord-card-btn {
  background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
  color: #ffffff;
}

/* Discord card URL styles */
.card-url-text {
  color: #00d9ff;
  word-break: break-all;
}

.card-url-input {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #00d9ff;
  color: #fff;
  padding: 5px;
  margin-top: 5px;
  border-radius: 4px;
}

/* Discord card success message */
.discord-card-success {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.player-link-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

.cache-info {
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-sm);
}

/* Highscores Table */
.td-rank {
  text-align: center;
  font-weight: 700;
  color: #f1c40f;
}

.td-rank:nth-child(1) {
  font-size: var(--fs-md);
}

.td-value {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
}

/* ============================================
   TABS RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .deaths-tabs-nav {
    padding: var(--space-xs);
    gap: 4px;
  }
  
  .deaths-tab-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
  }
  
  .deaths-tab-btn .tab-icon {
    font-size: var(--fs-sm);
  }
  
  .deaths-tab-btn .tab-text {
    display: none;
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .search-player-btn {
    width: 100%;
    justify-content: center;
  }
  
  .highscores-filters,
  .guilds-filters {
    flex-direction: column;
  }
  
  .highscores-filter-group,
  .guilds-filter-group {
    width: 100%;
  }
  
  /* Player Card Responsive */
  .player-card-full .player-header {
    flex-direction: column;
    text-align: center;
  }
  
  .player-avatar-large {
    margin: 0 auto;
  }
  
  .player-details-grid {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }
  
  .detail-card {
    padding: var(--space-sm);
  }
  
  .player-badges {
    justify-content: center;
  }
  
  .player-card-full .player-death-item .death-info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .deaths-tab-btn {
    padding: var(--space-xs);
  }
  
  .deaths-tab-btn .tab-icon {
    font-size: var(--fs-md);
  }
  
  /* Player Card Small Screens */
  .player-avatar-large,
  .player-avatar-large img.vocation-image {
    width: 80px;
    height: 80px;
  }
  
  .player-card-full .player-name {
    font-size: var(--fs-xl);
  }
  
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* Page Header */
.deaths-page-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.9) 0%, rgba(0, 15, 35, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 217, 255, 0.1);
}

.deaths-page-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 20px var(--color-primary-glow);
}

.deaths-page-subtitle {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.deaths-page-date {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 500;
  background: rgba(0, 217, 255, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.deaths-page-date span {
  text-transform: capitalize;
}

/* Mode Info */
.deaths-page-mode {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.deaths-page-mode.mode-single {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.deaths-page-mode.mode-all {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.deaths-page-mode.mode-player {
  color: #9b59b6;
  background: rgba(155, 89, 182, 0.1);
  border: 1px solid rgba(155, 89, 182, 0.3);
}

/* Filters Section */
.deaths-filters-section {
  margin-bottom: var(--space-xl);
}

.deaths-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  align-items: flex-end;
}

.deaths-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 200px;
}

.filter-label {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--fs-base);
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.filter-select option {
  background: #0a1525;
  color: #fff;
}

.deaths-filter-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  flex: 0 0 auto;
  align-self: flex-end;
}

/* Help Button & Tooltip */
.deaths-help-wrapper {
  position: relative;
  align-self: flex-end;
  margin-left: auto;
}

.deaths-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 100, 150, 0.3) 100%);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deaths-help-btn:hover {
  background: var(--color-primary);
  color: #001a33;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.deaths-help-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.98) 0%, rgba(0, 15, 35, 0.99) 100%);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 217, 255, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.deaths-help-tooltip.active {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

.help-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: rgba(0, 217, 255, 0.1);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.help-tooltip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.help-tooltip-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-tooltip-close:hover {
  background: rgba(255, 100, 100, 0.3);
  color: #ff6666;
}

.help-tooltip-content {
  padding: var(--space-md);
  max-height: 500px;
  overflow-y: auto;
}

.help-section {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.help-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.help-section p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.help-section p:last-child {
  margin-bottom: 0;
}

.help-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-section ul li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.5;
}

.help-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.help-section-highlight {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) !important;
  margin: var(--space-md) 0;
}

.help-section-highlight h4 {
  color: #f39c12;
}

.help-section-support {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) !important;
}

.help-section-support h4 {
  color: #e74c3c;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.help-link-support {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #000;
}

.help-link-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.help-link-twitch {
  background: linear-gradient(135deg, #9146ff 0%, #6441a5 100%);
  color: #fff;
}

.help-link-twitch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.help-link-kick {
  background: linear-gradient(135deg, #53fc18 0%, #3cb371 100%);
  color: #000;
}

.help-link-kick:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(83, 252, 24, 0.4);
}

.link-icon {
  font-size: var(--fs-sm);
}

/* Help tooltip responsive */
@media (max-width: 480px) {
  .deaths-help-tooltip {
    width: calc(100vw - 40px);
    right: -10px;
  }
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-btn-apply {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: #000;
}

.filter-btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

/* Button Cooldown State (Anti-spam) */
.btn-cooldown,
.filter-btn.btn-cooldown,
.search-player-btn.btn-cooldown {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  transform: none !important;
}

.filter-btn-clear {
  background: rgba(255, 71, 87, 0.2);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.filter-btn-clear:hover {
  background: rgba(255, 71, 87, 0.3);
}

/* Load Data Button */
.filter-btn-load {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  font-weight: 700;
  border: none;
}

.filter-btn-load:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Filter Status */
.deaths-filter-status {
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  min-height: 1.5em;
  transition: all 0.3s ease;
}

.deaths-filter-status.active {
  color: var(--color-primary);
  background: rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Table Section */
.deaths-table-section {
  margin-bottom: var(--space-xl);
}

.deaths-table-container {
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.deaths-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.deaths-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.deaths-table thead {
  background: linear-gradient(135deg, rgba(0, 50, 80, 0.9) 0%, rgba(0, 30, 50, 0.95) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.deaths-table th {
  padding: var(--space-md) var(--space-sm);
  text-align: left;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--fs-xs);
  border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}

.deaths-table tbody tr {
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  transition: background 0.2s ease;
}

.deaths-table tbody tr:hover {
  background: rgba(0, 217, 255, 0.08);
}

.deaths-table tbody tr.type-death {
  border-left: 3px solid var(--color-danger);
}

.deaths-table tbody tr.type-levelup {
  border-left: 3px solid var(--color-success);
}

.deaths-table td {
  padding: var(--space-sm);
  vertical-align: middle;
}

/* Type Badge */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.type-badge.type-death {
  background: rgba(255, 71, 87, 0.2);
  color: var(--color-danger);
  border: 1px solid rgba(255, 71, 87, 0.4);
}

.type-badge.type-levelup {
  background: rgba(0, 255, 136, 0.2);
  color: var(--color-success);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.type-icon {
  font-size: var(--fs-base);
}

/* Player Link */
.player-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.player-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--color-primary-glow);
}

/* Player Name in Deaths Table - plain text with color based on type */
.player-name-text {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
}

.player-name-text.name-death {
  color: #ff4444;
}

.player-name-text.name-death:hover {
  color: #ff6666;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.player-name-text.name-levelup {
  color: #44ff44;
}

.player-name-text.name-levelup:hover {
  color: #66ff66;
  text-shadow: 0 0 8px rgba(68, 255, 68, 0.5);
}

/* Guild Name - wyróżniony kolor */
.td-guild {
  color: #f0a030;
  font-weight: 500;
}

.td-guild a {
  color: #f0a030;
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-guild a:hover {
  color: #ffcc66;
  text-decoration: underline;
}

/* No Guild */
.no-guild {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: var(--fs-xs);
}

/* Detection Badge - pokazuje jak wykryto śmierć */
.detection-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  margin-left: var(--space-xs);
  background: rgba(0, 217, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  vertical-align: middle;
  cursor: help;
}

/* Retry Button */
.retry-btn {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary), #0099cc);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--color-primary-glow);
}

/* Table Error State */
.table-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  color: rgba(255, 255, 255, 0.7);
}

.table-error .error-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.table-error p {
  text-align: center;
  max-width: 400px;
}

/* Loading Row */
.loading-row td,
.no-results-row td,
.error-row td,
.waiting-row td,
.empty-row td,
.placeholder-row td {
  padding: var(--space-2xl) !important;
}

.table-loading,
.table-no-results,
.table-error,
.table-waiting,
.table-empty,
.table-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
}

.table-error {
  color: #ff6b6b;
}

.table-waiting {
  color: var(--color-primary);
}

.table-empty {
  color: #f39c12;
}

.waiting-icon,
.empty-icon {
  font-size: var(--fs-3xl);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.error-icon {
  font-size: var(--fs-3xl);
}

.retry-btn {
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-sm);
}

.retry-btn:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.no-results-icon {
  font-size: var(--fs-3xl);
  opacity: 0.5;
}

/* Pagination */
.deaths-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  background: rgba(0, 20, 40, 0.5);
}

.pagination-btn {
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
}

.pagination-info span {
  color: var(--color-primary);
  font-weight: 700;
}

/* Statistics Section */
.deaths-stats-section {
  margin-bottom: var(--space-xl);
}

.deaths-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.deaths-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 15, 35, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.deaths-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.deaths-stat-card .stat-icon {
  font-size: var(--fs-2xl);
}

.deaths-stat-card .stat-value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.deaths-stat-card .stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .deaths-filters-container {
    flex-direction: column;
  }
  
  .deaths-filter-group {
    width: 100%;
  }
  
  .deaths-filter-buttons {
    flex-direction: row;
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
  }
  
  .deaths-table th,
  .deaths-table td {
    padding: var(--space-xs);
    font-size: var(--fs-xs);
  }
  
  .th-vocation,
  .td-vocation,
  .th-guild,
  .td-guild {
    display: none;
  }
  
  .type-text {
    display: none;
  }
  
  .deaths-pagination {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .pagination-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-xs);
  }
  
  .deaths-stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .deaths-page-header {
    padding: var(--space-md);
  }
  
  .deaths-page-title {
    font-size: var(--fs-lg);
    letter-spacing: 1px;
  }
  
  .deaths-stats-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  
  .deaths-stat-card {
    padding: var(--space-md);
  }
  
  .deaths-stat-card .stat-value {
    font-size: var(--fs-lg);
  }
}

/* ============================================
   GUILD DETAILS MODAL
   ============================================ */
.guild-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  overflow-y: auto;
  padding: var(--space-md);
}

.guild-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.guild-modal-content {
  background: linear-gradient(145deg, rgba(10, 25, 50, 0.98), rgba(5, 15, 35, 0.98));
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  margin: var(--space-lg) auto;
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guild-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.1), transparent);
  border-bottom: 1px solid var(--color-border);
}

.guild-modal-title-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.guild-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0, 30, 60, 0.5);
  object-fit: contain;
  border: 2px solid var(--color-border);
}

.guild-modal-title-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.guild-modal-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.guild-modal-world {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.guild-modal-close {
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ff6b6b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guild-modal-close:hover {
  background: rgba(255, 100, 100, 0.3);
  transform: rotate(90deg);
}

.guild-modal-body {
  padding: var(--space-lg);
}

.guild-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.guild-stat {
  text-align: center;
  padding: var(--space-md);
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.guild-stat-value {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.guild-stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guild-modal-description {
  background: rgba(0, 30, 60, 0.3);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.guild-modal-description p {
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.guild-modal-members {
  margin-top: var(--space-lg);
}

.guild-members-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.guild-members-filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.guild-members-filters .filter-input,
.guild-members-filters .filter-select {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 30, 60, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--fs-sm);
}

.guild-members-filters .filter-input:focus,
.guild-members-filters .filter-select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.guild-members-list {
  max-height: 500px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.guild-member-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 20, 45, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.guild-member-card:hover {
  border-color: var(--color-primary);
  background: rgba(0, 217, 255, 0.05);
  transform: translateX(3px);
}

.guild-member-leader {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.guild-member-vice {
  border-color: rgba(192, 192, 192, 0.3);
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.05), transparent);
}

.member-vocation-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(0, 30, 60, 0.4);
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-name:hover {
  color: #00ffff;
  text-decoration: underline;
}

.member-details {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.member-level {
  color: var(--color-success);
  font-weight: 600;
}

.member-vocation {
  color: rgba(255, 255, 255, 0.5);
}

.member-rank-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 4px;
  background: rgba(100, 100, 100, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.member-rank-badge.leader {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.member-rank-badge.vice {
  background: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.3);
}

/* Guild Modal Responsive */
@media screen and (max-width: 768px) {
  .guild-modal-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  
  .guild-stat {
    padding: var(--space-sm);
  }
  
  .guild-stat-value {
    font-size: var(--fs-lg);
  }
  
  .guild-members-list {
    grid-template-columns: 1fr;
  }
  
  .guild-members-filters {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media screen and (max-width: 480px) {
  .guild-modal-content {
    margin: var(--space-sm);
  }
  
  .guild-modal-header {
    padding: var(--space-md);
  }
  
  .guild-modal-logo {
    width: 48px;
    height: 48px;
  }
  
  .guild-modal-title {
    font-size: var(--fs-lg);
  }
  
  .guild-modal-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .member-vocation-img {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   PLAYER PROFILE POPUP
   ============================================ */

.player-popup {
  display: none;
  position: absolute;
  z-index: 15000;
  width: 420px;
  max-height: 600px;
  overflow-y: auto;
}

.player-popup.active {
  display: block;
  animation: playerPopupFadeIn 0.2s ease;
}

@keyframes playerPopupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-popup-content {
  background: linear-gradient(145deg, rgba(10, 25, 50, 0.98), rgba(5, 15, 35, 0.98));
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3), 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  padding: var(--space-md);
}

.player-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: var(--color-danger);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.player-popup-close:hover {
  background: rgba(255, 100, 100, 0.4);
  transform: scale(1.1);
}

.player-popup-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-right: 30px;
}

.player-popup-outfit {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--color-border);
  object-fit: cover;
}

.player-popup-title {
  flex: 1;
}

.player-popup-name {
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.player-popup-title-text {
  font-size: var(--fs-sm);
  color: var(--color-accent);
  font-style: italic;
  margin: 4px 0 0 0;
}

.player-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.player-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.player-badge-vocation {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.3));
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #da70d6;
}

.player-badge-level {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 150, 200, 0.3));
  border: 1px solid rgba(0, 217, 255, 0.5);
  color: var(--color-primary);
}

.player-badge-world {
  background: linear-gradient(135deg, rgba(100, 200, 100, 0.3), rgba(50, 150, 50, 0.3));
  border: 1px solid rgba(100, 200, 100, 0.5);
  color: #90ee90;
}

.player-badge-guild {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(200, 120, 0, 0.3));
  border: 1px solid rgba(255, 165, 0, 0.5);
  color: #ffd700;
}

.player-popup-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: var(--space-md);
}

.player-popup-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 20, 40, 0.6);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.player-popup-stat-icon {
  font-size: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-sm);
}

.player-popup-stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-popup-stat-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-popup-stat-value {
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-popup-deaths {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.player-popup-deaths-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-danger);
}

.player-popup-deaths-header .deaths-icon {
  font-size: 18px;
}

.player-popup-death-count {
  color: var(--color-text);
  font-weight: 700;
}

.player-popup-deaths-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.player-popup-death-card {
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: var(--radius-md);
  padding: 10px;
}

.player-popup-death-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.player-popup-death-level {
  font-size: var(--fs-sm);
  color: var(--color-danger);
  font-weight: 600;
}

.player-popup-death-time {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.player-popup-death-reason {
  font-size: var(--fs-xs);
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}

.player-popup-deaths-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.player-popup-deaths-pagination .pagination-btn {
  padding: 6px 12px;
  font-size: var(--fs-xs);
}

.player-popup-deaths-pagination .pagination-info {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.player-popup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  gap: var(--space-sm);
}

.player-popup-loading p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.player-popup-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  gap: var(--space-sm);
}

.player-popup-error .error-icon {
  font-size: 32px;
}

.player-popup-error p {
  color: var(--color-danger);
  font-size: var(--fs-sm);
}

.no-deaths {
  text-align: center;
  color: var(--color-success);
  font-size: var(--fs-sm);
  padding: var(--space-md);
}

.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Player popup footer - Discord share */
.player-popup-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.player-popup-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.1));
  border: 2px solid rgba(88, 101, 242, 0.5);
  border-radius: var(--radius-md);
  color: #7289da;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-popup-share-btn:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), rgba(88, 101, 242, 0.3));
  border-color: rgba(88, 101, 242, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.player-popup-share-btn:active {
  transform: translateY(0);
}

.player-popup-share-btn .share-icon {
  font-size: 18px;
}

.player-popup-share-success {
  display: none;
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: var(--fs-sm);
  font-weight: 500;
  animation: fadeInOut 0.3s ease;
}

@keyframes fadeInOut {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Player popup responsive */
@media screen and (max-width: 480px) {
  .player-popup {
    width: calc(100vw - 20px);
    left: 10px !important;
    right: 10px;
  }
  
  .player-popup-stats {
    grid-template-columns: 1fr;
  }
  
  .player-popup-header {
    flex-direction: column;
    text-align: center;
  }
  
  .player-popup-badges {
    justify-content: center;
  }
}

/* ============================================
   CONSENT BANNER - Cookie/GDPR Consent
   ============================================ */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(135deg, rgba(15, 20, 40, 0.98), rgba(20, 25, 50, 0.98));
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 0 -2px 20px var(--color-primary-glow);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: var(--space-lg) var(--space-xl);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.consent-banner-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.consent-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.consent-banner-text {
  flex: 1;
  min-width: 280px;
}

.consent-banner-text h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin: 0 0 var(--space-sm) 0;
  font-weight: 600;
  text-shadow: 0 0 10px var(--color-primary-glow);
}

.consent-banner-text p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.5;
}

.consent-privacy-link {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.consent-privacy-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.consent-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.consent-btn {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.consent-btn-accept {
  background: linear-gradient(135deg, var(--color-primary), #0099cc);
  color: #000;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.consent-btn-accept:hover {
  background: linear-gradient(135deg, #00e5ff, #00aadd);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-primary-glow);
}

.consent-btn-analytics {
  background: rgba(0, 217, 255, 0.15);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.consent-btn-analytics:hover {
  background: rgba(0, 217, 255, 0.25);
  transform: translateY(-2px);
}

.consent-btn-deny {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.consent-btn-deny:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Consent banner responsive */
@media screen and (max-width: 768px) {
  .consent-banner {
    padding: var(--space-md);
  }
  
  .consent-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .consent-banner-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .consent-btn {
    flex: 1;
    min-width: 120px;
  }
}

@media screen and (max-width: 480px) {
  .consent-banner-buttons {
    flex-direction: column;
  }
  
  .consent-btn {
    width: 100%;
  }
}