/* ==========================================================================
   Portal Gildii CYRK - Minibia OTS 7.6 Theme
   Oparty na oryginalnych stylach Minibia.com (dark medieval fantasy RPG)
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  /* Paleta barw Minibia.com */
  --bg-dark: #0d0a05;
  --bg-medium: #1a1209;
  --bg-card: #1e1710;
  --bg-card-inner: #251c12;
  --bg-card-hover: #2c2116;
  --bg-input: #13100a;
  
  --border-dark: #2a1f0e;
  --border-color: #4a3520;
  --border-light: #6b4c2a;
  --border-gold: #c9a84c;
  --border-gold-bright: #e0c060;
  
  --text-primary: #dcc8a0;
  --text-secondary: #9a8560;
  --text-heading: #f0d890;
  --text-link: #d4a843;
  --text-link-hover: #f0c850;
  
  --accent-red: #c43c3c;
  --accent-green: #4a8c3f;
  --gold: #c9a84c;
  
  --gold-glow: rgba(201, 168, 76, 0.4);
  --gold-glow-strong: rgba(201, 168, 76, 0.6);
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-deep: rgba(0, 0, 0, 0.85);
  --emboss-light: rgba(255, 230, 160, 0.06);
  --emboss-dark: rgba(0, 0, 0, 0.4);
}

html, body {
  max-width: 100%;
  /* Fixed off-canvas widgets must not widen the document itself. */
  overflow-x: clip;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(40, 30, 15, 0.5) 0%, transparent 70%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.portal-launch-gate-active {
  overflow: hidden;
}

body.portal-launch-gate-active .quick-access-dock {
  display: none !important;
}

.portal-launch-gate[hidden] {
  display: none;
}

.portal-launch-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background-color: #070706;
  color: var(--text-primary);
  border: 1px solid #2c2518;
}

.portal-launch-frame {
  position: relative;
  width: min(980px, 100%);
  margin: auto;
  padding: 1.6rem 2.5rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: 8px;
  background-color: #0d0c09;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 236, 177, 0.08);
}

.portal-launch-frame::before,
.portal-launch-frame::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background-color: rgba(201, 168, 76, 0.22);
}

.portal-launch-frame::before { top: 10px; }
.portal-launch-frame::after { bottom: 10px; }

.portal-launch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 30px;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(92, 216, 133, 0.35);
  border-radius: 999px;
  background-color: rgba(34, 104, 57, 0.16);
  color: #91e5ad;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0;
}

.portal-launch-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #50e07e;
  box-shadow: 0 0 12px rgba(80, 224, 126, 0.85);
  animation: portalLaunchStatusPulse 1.8s ease-in-out infinite;
}

.portal-launch-logo-shell {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 0.45rem;
}

.portal-launch-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 168, 76, 0.07), 0 0 38px rgba(201, 168, 76, 0.24);
}

.portal-launch-logo-weapon {
  position: absolute;
  top: 43px;
  z-index: 1;
  font-size: 1.85rem;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.45));
}

.portal-launch-logo-weapon.left {
  left: -47px;
  transform: rotate(-25deg);
}

.portal-launch-logo-weapon.right {
  right: -47px;
  transform: rotate(18deg);
}

.portal-launch-brand {
  font-family: 'Cinzel', serif;
  color: #f2cf68;
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.4), 0 2px 0 #4a2f0a;
}

.portal-launch-motto {
  margin: 0.35rem 0 0.7rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-style: italic;
}

.portal-launch-gate h1 {
  margin: 0 0 0.85rem;
  color: #efe2bd;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.7rem;
  width: min(720px, 100%);
  margin: 0 auto;
}

.portal-launch-time-unit {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #3d3422;
  border-radius: 8px;
  background-color: #13110d;
  box-shadow: inset 0 -24px 35px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.portal-launch-unit-progress {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 3px;
  overflow: hidden;
  background-color: #2b2518;
}

.portal-launch-unit-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background-color: #d8ad3f;
  box-shadow: 0 0 12px rgba(216, 173, 63, 0.72);
  transition: transform 0.9s linear;
}

.portal-launch-unit-icon {
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: 0.95rem;
  opacity: 0.62;
  filter: saturate(0.8);
}

.portal-launch-time-unit strong {
  font-family: 'Inter', sans-serif;
  color: #fff8e2;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255, 216, 114, 0.25);
}

.portal-launch-unit-label {
  margin-top: 0.55rem;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
}

.portal-launch-time-unit strong.is-ticking {
  animation: portalLaunchDigitTick 0.28s ease-out;
}

.portal-launch-date {
  min-height: 1.6em;
  margin: 0.7rem 0 0.85rem;
  color: #c7b887;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
}

.portal-launch-actions,
.portal-launch-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.portal-launch-actions .action-btn {
  min-width: 205px;
  justify-content: center;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
}

.portal-launch-discord {
  background: #323b8c;
  color: #fff;
  border-color: #6974d9;
}

.portal-launch-note {
  max-width: 720px;
  margin: 0.85rem auto 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.portal-launch-language {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.portal-launch-language button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #100e0a;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.portal-launch-language button.is-active,
.portal-launch-language button:hover {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.45);
}

.portal-launch-preview-close {
  position: fixed;
  top: 0.7rem;
  left: 1rem;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: #17110a;
  color: var(--text-heading);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.portal-launch-gate.is-preview .portal-launch-preview-close {
  display: block;
}

.portal-launch-gate.is-opening .portal-launch-frame {
  animation: portalLaunchOpen 1.6s ease-in forwards;
}

@keyframes portalLaunchOpen {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  60% { opacity: 1; transform: translateY(-12px) scale(1.02); }
  100% { opacity: 0; transform: translateY(-70px) scale(1.04); }
}

@keyframes portalLaunchDigitTick {
  0% { opacity: 0.35; transform: translateY(-7px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes portalLaunchStatusPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Launch experience V2: runic gate */
.portal-launch-v2 {
  --launch-parallax-x: 0px;
  --launch-parallax-y: 0px;
  padding: 1rem;
  background-color: #050504;
  border: 0;
}

.portal-launch-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.portal-launch-v2 .portal-launch-frame {
  z-index: 1;
  width: min(1080px, 100%);
  padding: 1.25rem 2.5rem 1.6rem;
  border-color: rgba(221, 183, 81, 0.5);
  background-color: rgba(9, 9, 7, 0.9);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.82), 0 0 80px rgba(201, 168, 76, 0.1), inset 0 0 55px rgba(201, 168, 76, 0.025);
  backdrop-filter: blur(5px);
}

.portal-launch-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-bottom: 0.25rem;
}

.portal-launch-v2 .portal-launch-status {
  margin: 0;
}

.portal-launch-logo-stage {
  position: relative;
  width: 170px;
  height: 170px;
  margin: -0.1rem auto -0.15rem;
  transform: translate(var(--launch-parallax-x), var(--launch-parallax-y));
  transition: transform 0.3s ease-out;
}

.portal-launch-v2 .portal-launch-logo-shell {
  position: absolute;
  inset: 22px;
  width: auto;
  height: auto;
  margin: 0;
}

.portal-launch-v2 .portal-launch-logo {
  width: 126px;
  height: 126px;
  border-color: rgba(239, 199, 91, 0.9);
  box-shadow: 0 0 0 5px rgba(201, 168, 76, 0.08), 0 0 46px rgba(201, 168, 76, 0.32), 0 0 85px rgba(61, 132, 82, 0.13);
}

.portal-launch-rune-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portal-launch-rune-ring.outer {
  inset: 2px;
  border: 1px dashed rgba(201, 168, 76, 0.48);
  animation: portalRuneRotate 28s linear infinite;
}

.portal-launch-rune-ring.inner {
  inset: 13px;
  border: 2px dotted rgba(116, 183, 136, 0.32);
  animation: portalRuneRotateReverse 18s linear infinite;
}

.portal-launch-rune {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: 50%;
  background-color: #0a0907;
  color: #e0b94e;
  font-size: 0.7rem;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.24);
  animation: portalRuneGlow 2.8s ease-in-out infinite;
}

.portal-launch-rune.north { top: -6px; left: 72px; }
.portal-launch-rune.east { top: 72px; right: -6px; animation-delay: 0.7s; }
.portal-launch-rune.south { bottom: -6px; left: 72px; animation-delay: 1.4s; }
.portal-launch-rune.west { top: 72px; left: -6px; animation-delay: 2.1s; }

.portal-launch-v2 .portal-launch-brand {
  font-size: 2.85rem;
}

.portal-launch-v2 .portal-launch-motto {
  margin: 0.25rem 0 0.55rem;
}

.portal-launch-v2 h1 {
  margin-bottom: 0.65rem;
  color: #d8cda8;
}

.portal-launch-clock-shell {
  position: relative;
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 0.7rem;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 8px;
  background-color: rgba(16, 15, 11, 0.88);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.52), 0 15px 40px rgba(0, 0, 0, 0.36);
}

.portal-launch-v2 .portal-launch-countdown {
  grid-template-columns: minmax(120px, 1fr) 22px minmax(120px, 1fr) 22px minmax(120px, 1fr) 22px minmax(120px, 1fr);
  gap: 0.25rem;
  width: 100%;
}

.portal-launch-v2 .portal-launch-time-unit {
  min-height: 118px;
  border-color: rgba(201, 168, 76, 0.25);
  background-color: #0d0d0a;
  box-shadow: inset 0 -28px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 240, 190, 0.04);
}

.portal-launch-v2 .portal-launch-time-unit strong {
  font-size: 3.15rem;
}

.portal-launch-separator {
  align-self: center;
  color: #a98836;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  line-height: 1;
  animation: portalSeparatorPulse 1s steps(2, end) infinite;
}

.portal-launch-clock-corner {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-color: #d6ad43;
}

.portal-launch-clock-corner.top-left { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.portal-launch-clock-corner.top-right { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.portal-launch-clock-corner.bottom-left { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.portal-launch-clock-corner.bottom-right { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }

.portal-launch-v2 .portal-launch-date {
  margin-top: 0.55rem;
}

.portal-launch-v5 {
  background-color: #080704;
}

.portal-launch-v5 .portal-launch-frame {
  width: min(980px, 100%);
  padding: 0.9rem 1.6rem 1.1rem;
  border: 3px double #75613a;
  border-radius: 2px;
  background-color: rgba(17, 14, 9, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.82), inset 0 0 0 1px #1f1a10, inset 0 0 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
}

.portal-launch-oldworld-scene {
  position: relative;
  width: min(760px, 100%);
  height: 194px;
  margin: 0.35rem auto 0.1rem;
  overflow: hidden;
  border-right: 1px solid #403825;
  border-left: 1px solid #403825;
  background-color: #1c1913;
  box-shadow: inset 0 26px 45px rgba(0, 0, 0, 0.5), inset 0 -26px 38px rgba(0, 0, 0, 0.56);
}

.portal-launch-oldworld-wall {
  position: absolute;
  inset: 12px 16px 34px;
  border: 2px solid #393326;
  background-color: #27231b;
  box-shadow: inset 0 0 0 8px #211e17, inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.portal-launch-oldworld-wall::before,
.portal-launch-oldworld-wall::after {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 1px;
  background-color: #3f392a;
  content: '';
}

.portal-launch-oldworld-wall::before { top: 34%; }
.portal-launch-oldworld-wall::after { top: 68%; }

.portal-launch-oldworld-floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40px;
  border-top: 2px solid #4b4028;
  background-color: #15130e;
  box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.6);
}

.portal-launch-oldworld-arch {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 3;
  overflow: hidden;
  width: 218px;
  height: 158px;
  border: 13px solid #514936;
  border-bottom-width: 8px;
  border-radius: 106px 106px 2px 2px;
  background-color: #090908;
  box-shadow: 0 0 0 3px #29251b, inset 0 0 42px rgba(201, 168, 76, 0.08), 0 18px 30px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%) translate(var(--launch-parallax-x), var(--launch-parallax-y));
  transition: transform 0.35s ease-out;
}

.portal-launch-oldworld-keystone {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 30px;
  height: 24px;
  border: 2px solid #6b5d3e;
  background-color: #3f3828;
  transform: translateX(-50%);
}

.portal-launch-oldworld-crest {
  position: relative;
  z-index: 7;
  overflow: hidden;
  width: 88px;
  height: 88px;
  margin: 17px auto 0;
  border: 2px solid #b28e39;
  border-radius: 50%;
  background-color: #070706;
  box-shadow: 0 0 0 5px #211c11, 0 0 28px rgba(198, 153, 49, 0.28);
}

.portal-launch-oldworld-crest img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.portal-launch-oldworld-arch .portal-launch-gate-grate {
  inset: 0;
  z-index: 6;
  padding: 0 4%;
  border-radius: 106px 106px 0 0;
  opacity: 0.9;
  transform: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9));
}

.portal-launch-oldworld-arch .portal-launch-gate-grate::before,
.portal-launch-oldworld-arch .portal-launch-gate-grate::after {
  right: 0;
  left: 0;
}

.portal-launch-oldworld-lamp,
.portal-launch-oldworld-guard img,
.portal-launch-oldworld-slot-icon,
.portal-launch-hearts-effect {
  image-rendering: pixelated;
}

.portal-launch-oldworld-lamp {
  position: absolute;
  top: 30px;
  z-index: 4;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(232, 112, 34, 0.72));
  animation: portalOldworldLamp 3.4s ease-in-out infinite;
}

.portal-launch-oldworld-lamp.left { left: 20%; }
.portal-launch-oldworld-lamp.right { right: 20%; transform: scaleX(-1); animation-delay: 1.7s; }

.portal-launch-oldworld-guard {
  position: absolute;
  bottom: 24px;
  z-index: 4;
  width: 104px;
  height: 104px;
}

.portal-launch-oldworld-guard::after {
  position: absolute;
  right: 9px;
  bottom: 3px;
  left: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.62);
  content: '';
  filter: blur(2px);
}

.portal-launch-oldworld-guard img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.78));
}

.portal-launch-oldworld-guard.dragon {
  left: 10%;
  animation: portalOldworldGuard 5.2s ease-in-out infinite;
}

.portal-launch-oldworld-guard.demon {
  right: 10%;
  animation: portalOldworldGuard 5.8s ease-in-out 1.2s infinite reverse;
}

.portal-launch-v5 h1 {
  margin-bottom: 0.65rem;
  color: #b6222e;
  font-family: 'MedievalSharp', serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #120304, 0 0 8px rgba(179, 24, 38, 0.38);
}

.portal-launch-v5 .portal-launch-oldworld-clock {
  isolation: isolate;
  width: min(670px, 100%);
  padding: 17px 19px 19px;
  border: 3px solid #4d493d;
  border-radius: 0;
  outline: 3px solid #12100b;
  background-color: #29271f;
  box-shadow: 0 0 0 2px #7e6b43, 0 0 0 7px #17140e, inset 0 0 0 2px #777060, inset 0 0 0 6px #16140f, inset 0 0 34px rgba(0, 0, 0, 0.82), 0 18px 34px rgba(0, 0, 0, 0.58);
  clip-path: polygon(26px 0, calc(50% - 34px) 0, calc(50% - 24px) 7px, calc(50% + 24px) 7px, calc(50% + 34px) 0, calc(100% - 26px) 0, 100% 26px, 100% calc(100% - 24px), calc(100% - 24px) 100%, calc(50% + 32px) 100%, calc(50% + 22px) calc(100% - 7px), calc(50% - 22px) calc(100% - 7px), calc(50% - 32px) 100%, 24px 100%, 0 calc(100% - 24px), 0 26px);
}

.portal-launch-v5 .portal-launch-clock-corner {
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  background-color: #565145;
  box-shadow: inset 0 0 0 3px #211e18, inset 0 0 0 5px #81734e;
  clip-path: polygon(0 0, 100% 0, 100% 8px, 18px 8px, 18px 18px, 8px 18px, 8px 100%, 0 100%);
}

.portal-launch-v5 .portal-launch-clock-corner::before {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid #aa925b;
  background-color: #2c281f;
  content: '';
  box-shadow: inset 0 0 0 1px #5e5135;
}

.portal-launch-v5 .portal-launch-clock-corner.top-left { top: 0; left: 0; }
.portal-launch-v5 .portal-launch-clock-corner.top-right { top: 0; right: 0; transform: rotate(90deg); }
.portal-launch-v5 .portal-launch-clock-corner.bottom-left { bottom: 0; left: 0; transform: rotate(-90deg); }
.portal-launch-v5 .portal-launch-clock-corner.bottom-right { right: 0; bottom: 0; transform: rotate(180deg); }

.portal-launch-v5 .portal-launch-oldworld-clock::before,
.portal-launch-v5 .portal-launch-oldworld-clock::after {
  position: absolute;
  left: 50%;
  z-index: 5;
  width: 64px;
  height: 20px;
  border: 2px solid #82744f;
  background-color: #4a463b;
  content: '';
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 3px #1c1913, 0 2px 0 #090805;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.portal-launch-v5 .portal-launch-oldworld-clock::before { top: -5px; }
.portal-launch-v5 .portal-launch-oldworld-clock::after { bottom: -5px; }

.portal-launch-v5 .portal-launch-countdown {
  position: relative;
  z-index: 2;
  padding: 3px;
}

.portal-launch-v5 .portal-launch-countdown {
  grid-template-columns: minmax(145px, 1fr) 14px minmax(145px, 1fr) 14px minmax(145px, 1fr) 52px;
  gap: 0.3rem;
}

.portal-launch-v5 .portal-launch-time-unit {
  overflow: hidden;
  min-height: 94px;
  padding: 0.75rem 0.5rem 0.55rem;
  border: 0;
  border-radius: 0;
  outline: 2px solid #12100c;
  background-color: #171611;
  box-shadow: 0 0 0 3px #555145, inset 0 0 0 3px #0b0a07, inset 0 -24px 30px rgba(0, 0, 0, 0.56), inset 0 2px 0 #77705e;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 12px);
}

.portal-launch-v5 .portal-launch-time-unit::before,
.portal-launch-v5 .portal-launch-time-unit::after {
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 6px;
  border: 1px solid #b18e50;
  border-radius: 50%;
  background-color: #2c2111;
  content: '';
  box-shadow: inset 0 0 0 1px #70572e, 0 0 4px rgba(0, 0, 0, 0.8);
}

.portal-launch-v5 .portal-launch-time-unit::before { top: 7px; left: 7px; }
.portal-launch-v5 .portal-launch-time-unit::after { right: 7px; bottom: 7px; }

.portal-launch-v5 .portal-launch-time-unit strong {
  position: relative;
  z-index: 2;
  color: #f1ddb0;
  font-family: 'Cinzel', serif;
  font-size: 2.45rem;
  text-shadow: 2px 2px 0 #000;
}

.portal-launch-v5 .portal-launch-time-unit strong.is-ticking {
  animation: portalOldworldDigitDrop 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-launch-v5 .portal-launch-unit-label {
  margin-top: 0.3rem;
  color: #9c8b68;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
}

.portal-launch-oldworld-slot-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 0 5px rgba(201, 168, 76, 0.25));
}

.portal-launch-oldworld-grate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  padding: 0 12%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-115%);
}

.portal-launch-oldworld-grate::before,
.portal-launch-oldworld-grate::after {
  position: absolute;
  right: 4%;
  left: 4%;
  height: 4px;
  border: 1px solid #8d846d;
  background-color: #403d34;
  content: '';
  box-shadow: 0 2px 0 #13110d;
}

.portal-launch-oldworld-grate::before { top: 24%; }
.portal-launch-oldworld-grate::after { bottom: 24%; }

.portal-launch-oldworld-grate i {
  width: 4px;
  height: 100%;
  border-right: 1px solid #16140f;
  border-left: 1px solid #8d846f;
  background-color: #4b473c;
  box-shadow: 2px 0 3px rgba(0, 0, 0, 0.55);
}

.portal-launch-v5 .portal-launch-time-unit.is-changing .portal-launch-oldworld-grate {
  animation: portalOldworldGrateDrop 0.62s ease-in-out;
}

.portal-launch-hearts-effect {
  align-self: center;
  justify-self: center;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(214, 45, 52, 0.55));
  animation: portalLaunchHeartsFloat 2.2s steps(2, end) infinite;
}

.portal-launch-v5 .portal-launch-separator {
  color: #806735;
  font-size: 1.4rem;
  animation: portalOldworldSeparator 3.8s ease-in-out infinite;
}

.portal-launch-v5 .portal-launch-date {
  margin: 0.65rem 0 0.6rem;
  color: #dbc58f;
  font-size: 0.94rem;
  font-weight: 600;
}

.portal-launch-v5 .portal-launch-actions .action-btn {
  min-height: 40px;
  border-radius: 2px;
}

.portal-launch-v2.is-opening .portal-launch-rune-ring.outer,
.portal-launch-v2.is-opening .portal-launch-rune-ring.inner {
  animation-duration: 1.2s;
}

@keyframes portalRuneRotate {
  to { transform: rotate(360deg); }
}

@keyframes portalRuneRotateReverse {
  to { transform: rotate(-360deg); }
}

@keyframes portalRuneGlow {
  0%, 100% { color: #8f773b; box-shadow: 0 0 7px rgba(201, 168, 76, 0.12); }
  50% { color: #f4cf67; box-shadow: 0 0 18px rgba(201, 168, 76, 0.5); }
}

@keyframes portalSeparatorPulse {
  0%, 45% { opacity: 0.32; }
  50%, 100% { opacity: 0.9; }
}

@keyframes portalOldworldLamp {
  0%, 100% { opacity: 0.78; filter: drop-shadow(0 0 8px rgba(232, 112, 34, 0.55)); }
  50% { opacity: 1; filter: drop-shadow(0 0 17px rgba(244, 139, 47, 0.84)); }
}

@keyframes portalOldworldGuard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes portalOldworldSeparator {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes portalOldworldDigitDrop {
  0% { opacity: 0; transform: translateY(-18px) rotateX(70deg); }
  62% { opacity: 1; transform: translateY(2px) rotateX(-8deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes portalOldworldGrateDrop {
  0% { opacity: 0; transform: translateY(-115%); }
  24% { opacity: 0.88; transform: translateY(-4%); }
  62% { opacity: 0.72; transform: translateY(4%); }
  100% { opacity: 0; transform: translateY(115%); }
}

@keyframes portalLaunchHeartsFloat {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-3px); }
}


.portal-launch-admin-card {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.05);
}

.portal-launch-admin-card h4 {
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.portal-launch-admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #fff;
  cursor: pointer;
}

.portal-launch-admin-toggle input {
  width: 20px;
  height: 20px;
}

.portal-launch-admin-card > label[for="opt-launch-at"] {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-weight: 700;
}

.portal-launch-admin-card > p,
.portal-launch-admin-status {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.portal-launch-admin-status {
  min-height: 1.4em;
  color: #8fd7ff;
}

.portal-launch-admin-actions {
  justify-content: flex-start;
  margin-top: 0.9rem;
}

@media (max-width: 600px) {
  .portal-launch-gate {
    align-items: flex-start;
    padding: 3.5rem 0.65rem 0.75rem;
  }

  .portal-launch-frame {
    padding: 1.1rem 0.7rem 1.25rem;
  }

  .portal-launch-status {
    margin-bottom: 0.6rem;
  }

  .portal-launch-logo-shell,
  .portal-launch-logo {
    width: 88px;
    height: 88px;
  }

  .portal-launch-logo-weapon {
    top: 31px;
    font-size: 1.45rem;
  }

  .portal-launch-logo-weapon.left { left: -36px; }
  .portal-launch-logo-weapon.right { right: -36px; }

  .portal-launch-motto {
    margin-bottom: 0.55rem;
  }

  .portal-launch-brand {
    font-size: 2.05rem;
  }

  .portal-launch-gate h1 {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
  }

  .portal-launch-countdown {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 0.55rem;
    max-width: 300px;
  }

  .portal-launch-time-unit {
    min-height: 96px;
  }

  .portal-launch-time-unit strong {
    font-size: 2.15rem;
  }

  .portal-launch-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 310px;
    margin: 0 auto;
  }

  .portal-launch-actions .action-btn {
    width: 100%;
  }

  .portal-launch-note {
    font-size: 0.76rem;
  }

  .portal-launch-v2 {
    padding: 3.25rem 0.55rem 0.65rem;
  }

  .portal-launch-v2 .portal-launch-frame {
    padding: 0.8rem 0.65rem 1rem;
  }

  .portal-launch-v2 .portal-launch-topline {
    justify-content: center;
    margin-bottom: 0.1rem;
  }

  .portal-launch-v2 .portal-launch-logo-stage {
    width: 124px;
    height: 124px;
    margin-top: 0.2rem;
  }

  .portal-launch-v2 .portal-launch-logo-shell {
    inset: 18px;
  }

  .portal-launch-v2 .portal-launch-logo {
    width: 88px;
    height: 88px;
  }

  .portal-launch-v2 .portal-launch-rune-ring.outer { inset: 1px; }
  .portal-launch-v2 .portal-launch-rune-ring.inner { inset: 10px; }
  .portal-launch-v2 .portal-launch-rune { width: 21px; height: 21px; }
  .portal-launch-v2 .portal-launch-rune.north { top: -5px; left: 52px; }
  .portal-launch-v2 .portal-launch-rune.east { top: 52px; right: -5px; }
  .portal-launch-v2 .portal-launch-rune.south { bottom: -5px; left: 52px; }
  .portal-launch-v2 .portal-launch-rune.west { top: 52px; left: -5px; }

  .portal-launch-v2 .portal-launch-brand {
    font-size: 2.05rem;
  }

  .portal-launch-v2 .portal-launch-clock-shell {
    max-width: 310px;
    padding: 0.45rem;
  }

  .portal-launch-v2 .portal-launch-countdown {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 0.5rem;
    max-width: none;
  }

  .portal-launch-v2 .portal-launch-separator {
    display: none;
  }

  .portal-launch-v2 .portal-launch-time-unit {
    min-height: 94px;
  }

  .portal-launch-v2 .portal-launch-time-unit strong {
    font-size: 2.15rem;
  }

  .portal-launch-v5 {
    padding: 3.15rem 0.35rem 0.5rem;
  }

  .portal-launch-v5 .portal-launch-frame {
    padding: 0.55rem 0.45rem 0.8rem;
  }

  .portal-launch-oldworld-scene {
    height: 154px;
    margin-top: 0.2rem;
  }

  .portal-launch-oldworld-wall {
    inset: 9px 8px 28px;
  }

  .portal-launch-oldworld-floor {
    height: 32px;
  }

  .portal-launch-oldworld-arch {
    top: 14px;
    width: 148px;
    height: 120px;
    border-width: 9px;
    border-bottom-width: 6px;
    border-radius: 76px 76px 2px 2px;
  }

  .portal-launch-oldworld-keystone {
    top: -14px;
    width: 24px;
    height: 18px;
  }

  .portal-launch-oldworld-crest {
    width: 66px;
    height: 66px;
    margin-top: 14px;
  }

  .portal-launch-oldworld-lamp {
    top: 24px;
    width: 34px;
    height: 34px;
  }

  .portal-launch-oldworld-lamp.left { left: 10%; }
  .portal-launch-oldworld-lamp.right { right: 10%; }

  .portal-launch-oldworld-guard {
    bottom: 16px;
    width: 76px;
    height: 76px;
  }

  .portal-launch-oldworld-guard.dragon { left: 2%; }
  .portal-launch-oldworld-guard.demon { right: 2%; }

  .portal-launch-v5 .portal-launch-oldworld-clock {
    max-width: 350px;
    padding: 14px 13px 16px;
  }

  .portal-launch-v5 h1 {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
  }

  .portal-launch-v5 .portal-launch-countdown {
    grid-template-columns: repeat(3, minmax(62px, 1fr)) 38px;
    gap: 0.25rem;
  }

  .portal-launch-v5 .portal-launch-time-unit {
    min-height: 80px;
    padding-top: 0.6rem;
  }

  .portal-launch-v5 .portal-launch-time-unit strong {
    font-size: 1.9rem;
  }

  .portal-launch-v5 .portal-launch-separator {
    display: none;
  }

  .portal-launch-oldworld-slot-icon {
    width: 25px;
    height: 25px;
  }

  .portal-launch-hearts-effect {
    width: 38px;
    height: 38px;
  }

  .portal-launch-v5 .portal-launch-date {
    font-size: 0.84rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .portal-launch-status > span,
  .portal-launch-time-unit strong.is-ticking,
  .portal-launch-time-unit.is-changing .portal-launch-oldworld-grate,
  .portal-launch-hearts-effect,
  .portal-launch-gate.is-opening .portal-launch-frame,
  .portal-launch-rune-ring,
  .portal-launch-rune,
  .portal-launch-separator,
  .portal-launch-oldworld-lamp,
  .portal-launch-oldworld-guard {
    animation: none;
  }
}

/* ===== Custom Medieval RPG Scrollbars ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) var(--bg-dark);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-left: 1px solid var(--border-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--border-color) 0%, var(--gold) 50%, var(--border-color) 100%);
  border: 2px solid var(--bg-dark);
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(201, 168, 76, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--border-gold-bright) 50%, var(--gold) 100%);
  box-shadow: 0 0 8px var(--gold-glow);
}

::-webkit-scrollbar-corner {
  background: var(--bg-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--text-heading);
  font-weight: 700;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: var(--text-link-hover);
  text-shadow: 0 0 8px var(--gold-glow);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ===== Top Bar ===== */
.top-bar {
  background: rgb(42, 31, 14);
  border: none !important;
  box-shadow: none !important;
  margin-bottom: -2px;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 5;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.online {
  background-color: #00ff7f;
  box-shadow: 0 0 8px #00ff7f;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.discord-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid #5865F2;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.4);
}
.discord-top-btn:hover {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.8);
  transform: translateY(-1px);
}

/* ===== Modern High-Contrast PC & Mobile Language Toggle ===== */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(13, 14, 18, 0.85));
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 4px 12px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-primary);
  user-select: none;
}
.lang-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), rgba(13, 14, 18, 0.95));
  border-color: #f3e7c4;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}
.lang-current {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.lang-switch-to {
  color: #ccc;
  font-weight: 500;
  transition: color 0.2s;
}
.lang-toggle-btn:hover .lang-switch-to {
  color: #fff;
}

.user-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.user-panel-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.user-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-panel span {
  color: var(--text-primary);
}

.user-panel .verif-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.verif-status.ok {
  background: rgba(46, 139, 87, 0.2);
  border: 1px solid #2e8b57;
  color: #98fb98;
}

.verif-status.pending {
  background: rgba(218, 165, 32, 0.2);
  border: 1px solid #daa520;
  color: #ffe4b5;
  cursor: pointer;
}

/* ===== Site Header ===== */
.site-header {
  background: linear-gradient(180deg, rgb(42, 31, 14) 0%, var(--bg-dark) 100%);
  border-top: none !important;
  border-bottom: 3px solid var(--border-gold);
  box-shadow: 0 6px 15px var(--shadow-deep), inset 0 -1px 0 var(--emboss-light);
  padding: 1.5rem 0 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow-strong), transparent);
}

.header-logo h1 {
  font-family: 'MedievalSharp', cursive;
  font-size: 3.5rem;
  color: var(--gold);
  text-shadow: 0 0 25px var(--gold-glow), 0 2px 4px var(--shadow-deep);
  letter-spacing: 4px;
  margin-bottom: 0.2rem;
}

.header-logo .subtitle {
  font-family: 'Crimson Text', serif;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 1px;
}

.portal-weather-ticker {
  width: 100%;
  height: 30px;
  margin: 0.95rem auto 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 15, 8, 0.68) 4%, rgba(20, 15, 8, 0.78) 96%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255, 222, 115, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.portal-weather-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  height: 100%;
  white-space: nowrap;
  animation: portalWeatherScroll var(--weather-duration, 52s) linear infinite;
}

.portal-weather-ticker:hover .portal-weather-track {
  animation-play-state: paused;
}

.portal-weather-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.25rem;
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.portal-weather-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(255, 222, 115, 0.35));
}

.portal-weather-city {
  color: var(--gold);
  font-weight: 700;
}

.portal-weather-condition {
  color: var(--text-secondary);
  font-family: 'Crimson Text', serif;
  font-size: 0.92rem;
  font-style: italic;
  text-transform: none;
}

@keyframes portalWeatherScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Navigation ===== */
.main-nav {
  background: var(--bg-medium);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 0.5rem 0;
  position: relative;
  z-index: 40;
}

.main-nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 1480px;
}

.main-nav .nav-primary-btn {
  display: inline-grid;
  grid-template-columns: 1.3rem minmax(0, auto) auto;
  align-items: center;
  gap: 0.38rem;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.mobile-nav-shortcut { display: none; }
.nav-label-desktop { display: none; }

.nav-menu-group { position: relative; }
.nav-menu-trigger {
  display: inline-grid;
  grid-template-columns: 1.45rem auto auto 0.8rem;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(201,168,76,0.26);
  border-radius: 4px;
  background: rgba(20,16,11,0.58);
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.nav-menu-trigger:hover, .nav-menu-group.is-open .nav-menu-trigger, .nav-menu-group.has-active-tab .nav-menu-trigger {
  color: var(--gold);
  border-color: rgba(201,168,76,0.78);
  background: rgba(201,168,76,0.12);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.55), 0 0 12px rgba(201,168,76,0.18);
  text-shadow: 0 0 7px rgba(201,168,76,0.45);
}
.nav-menu-trigger-icon, .nav-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; min-width: 1.45rem; }
.nav-menu-chevron { color: #9d7e32; font-size: 0.76rem; transition: transform 0.18s ease; }
.nav-menu-group.is-open .nav-menu-chevron { transform: rotate(180deg); }
.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 60;
  width: max-content;
  min-width: 285px;
  padding: 0.42rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -7px) scale(0.985);
  transform-origin: top center;
  border: 1px solid rgba(201,168,76,0.58);
  border-radius: 5px;
  background: rgba(15,12,8,0.98);
  box-shadow: 0 18px 42px rgba(0,0,0,0.72), 0 0 18px rgba(201,168,76,0.13), inset 0 1px 0 rgba(255,224,133,0.08);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.nav-menu-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-menu-group.is-open .nav-menu-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-menu-group:hover .nav-menu-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
}
.nav-menu-dropdown .nav-btn { display: grid; grid-template-columns: 1.55rem minmax(0,1fr) auto; align-items: center; gap: 0.65rem; width: 100%; min-height: 45px; margin: 0; padding: 0.58rem 0.72rem; text-align: left; white-space: nowrap; }
.nav-menu-dropdown .nav-btn + .nav-btn { margin-top: 0.18rem; }
.nav-menu-dropdown .nav-btn.active { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 10px rgba(0,0,0,0.72), 0 0 8px rgba(201,168,76,0.18); }
.nav-more-dropdown { width: 570px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.18rem; }
.nav-more-group .nav-more-dropdown { left: auto; right: 0; transform: translateY(-7px) scale(0.985); transform-origin: top right; }
.nav-menu-group.is-open .nav-more-dropdown { display: grid; }
.nav-more-group.is-open .nav-more-dropdown { transform: translateY(0) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-more-group:hover .nav-more-dropdown { display: grid; }
  .nav-more-group:hover .nav-more-dropdown { transform: translateY(0) scale(1); }
}
.nav-more-dropdown .nav-btn + .nav-btn { margin-top: 0; }
.nav-more-dropdown #nav-btn-admin { border-color: rgba(201,168,76,0.5); color: var(--gold); background: rgba(201,168,76,0.1); }

@media (min-width: 769px) {
  .main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1450px !important;
  }
  .main-nav .nav-primary-btn,
  .main-nav .nav-more-dropdown > .nav-btn {
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0.6rem 1.4rem;
    grid-template-columns: 1.35rem minmax(0, auto) auto;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .main-nav .nav-label-mobile { display: none; }
  .main-nav .nav-label-desktop { display: inline; }
  .main-nav .mobile-nav-shortcut {
    display: none;
  }
  .main-nav .nav-more-group,
  .main-nav .nav-more-dropdown {
    display: contents;
  }
  .main-nav .nav-more-group:hover .nav-more-dropdown,
  .main-nav .nav-more-group.is-open .nav-more-dropdown {
    display: contents;
    transform: none;
  }
  .main-nav .nav-more-group .nav-menu-trigger {
    display: none;
  }
  .main-nav .nav-more-dropdown {
    position: static;
    width: auto;
    min-width: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .main-nav .nav-more-dropdown::before {
    display: none;
  }
  .main-nav .nav-more-dropdown .nav-btn.active {
    box-shadow: inset 0 0 8px var(--emboss-dark), 0 0 8px var(--gold-glow);
  }
  .main-nav .nav-btn[data-tab="announcements"] { order: 1; }
  .main-nav .nav-btn[data-tab="hunts"] { order: 2; }
  .main-nav .nav-btn[data-tab="quests"] { order: 3; }
  .main-nav .nav-btn[data-tab="hunted"] { order: 4; }
  .main-nav .nav-btn[data-tab="wars"] { order: 5; }
  .main-nav .nav-btn[data-tab="highscores"] { order: 6; }
  .main-nav .nav-btn[data-tab="deaths"] { order: 7; }
  .main-nav .nav-btn[data-tab="killers"] { order: 8; }
  .main-nav .nav-btn[data-tab="exp"] { order: 9; }
  .main-nav .nav-btn[data-tab="marketplace"] { order: 10; }
  .main-nav .nav-btn[data-tab="polls"] { order: 11; }
  .main-nav .partyzone-teaser-btn {
    order: 12;
  }
  .main-nav #nav-btn-admin { order: 13; }
}
.nav-item-label { min-width: 0; }
.nav-group-badge { display: none; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.32rem; border: 1px solid #d7ad43; border-radius: 999px; background: #8c1717; color: #fff; font: 800 0.7rem/1 Arial,sans-serif; box-shadow: 0 0 9px rgba(201,168,76,0.48); text-shadow: 0 1px 1px #000; }
.nav-group-badge.is-visible { display: inline-flex; }

.nav-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: var(--text-heading);
  background: var(--bg-card);
  border-color: var(--border-color);
  text-shadow: 0 0 8px var(--gold-glow);
}

.nav-btn.active {
  color: var(--gold);
  background: var(--bg-card);
  border-color: var(--border-gold);
  box-shadow: inset 0 0 8px var(--emboss-dark), 0 0 8px var(--gold-glow);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* ===== Interactive Medieval RPG Nav Badges (Powiększone o 20%) ===== */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.95rem;
  height: 1.7rem;
  padding: 0 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--bg-card-inner);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 1px #000;
  vertical-align: middle;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-badge.active-badge {
  color: #fff;
  background: linear-gradient(135deg, #b82828 0%, #681010 100%);
  border: 2px solid var(--border-gold-bright);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  animation: badge-pulse 2.5s infinite ease-in-out;
  transform: scale(1.05);
}

.nav-btn:hover .nav-badge.active-badge {
  transform: scale(1.22) rotate(4deg);
  background: linear-gradient(135deg, #d83030 0%, #881818 100%);
  box-shadow: 0 0 16px var(--gold-glow), inset 0 1px 3px rgba(255, 255, 255, 0.5);
  color: #fff;
}

.nav-btn:hover .nav-badge:not(.active-badge) {
  border-color: var(--border-gold);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 6px rgba(201, 168, 76, 0.5); }
  50% { box-shadow: 0 0 14px rgba(224, 192, 96, 0.9), 0 0 6px rgba(216, 48, 48, 0.7); }
  100% { box-shadow: 0 0 6px rgba(201, 168, 76, 0.5); }
}

/* ===== Opcja 4: Złota Czaszka / Znak Wyroku (Death Mark Medallion) dla Listy Hunted (Zmniejszona o 10%) ===== */
#badge-hunted.active-badge {
  border-radius: 18px;
  min-width: 2.25rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  background: linear-gradient(135deg, #1f1a18 0%, #0d0b0a 100%);
  border: 2px solid #a67c32;
  color: #ffddaa;
  font-weight: 900;
  font-size: 0.95rem;
  text-shadow: 0 0 4px #000, 0 0 6px #ff4500;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 69, 0, 0.5), 0 0 6px var(--gold-glow);
  animation: death-pulse 2.5s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#badge-hunted.active-badge::before {
  content: '☠️';
  font-size: 1.05rem;
  margin-right: 0.2rem;
  filter: drop-shadow(0 0 4px #ff4500);
  transition: all 0.3s ease;
}

.nav-btn:hover #badge-hunted.active-badge {
  transform: scale(1.18) rotate(3deg);
  background: linear-gradient(135deg, #30100a 0%, #150503 100%);
  color: #ffffff;
  border-color: #00ff7f;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 255, 127, 0.8), 0 0 12px rgba(255, 69, 0, 0.8);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn:hover #badge-hunted.active-badge::before {
  transform: scale(1.25) rotate(-12deg);
  filter: drop-shadow(0 0 8px #00ff7f);
}

@keyframes death-pulse {
  0% { box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 6px rgba(255, 69, 0, 0.4); }
  50% { box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 69, 0, 0.9), 0 0 8px var(--gold-glow); }
  100% { box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 6px rgba(255, 69, 0, 0.4); }
}

/* ===== Main Content & Tabs ===== */
/* Skalowanie głównej treści pod nagłówkiem CYRK (zwiększone o 15% na 0.98) */
.main-nav,
.main-content {
  zoom: 0.98;
}

.main-nav .container,
.main-content.container {
  max-width: 1450px !important;
}

.main-content {
  flex: 1;
  padding: 2.5rem 1rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--text-heading);
  text-shadow: 0 2px 4px var(--shadow-deep);
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ===== Buttons & Inputs ===== */
.action-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.gold-btn {
  background: linear-gradient(to bottom, #5a4520, #3a2a10);
  border: 1px solid var(--border-gold);
  color: var(--text-heading);
  box-shadow: 0 2px 6px var(--shadow);
}

.gold-btn:hover {
  background: linear-gradient(to bottom, #6a5530, #4a3a20);
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ===== Minibia Metallic Gold Plate Button (PLAY NOW Style) ===== */
.cta-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  background: linear-gradient(180deg, #d4b45a 0%, #a08030 40%, #8a6c28 100%) !important;
  color: #1a1209 !important;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 3px;
  border: 2px solid #d4b45a !important;
  text-shadow: 0 1px 0 rgba(255, 230, 160, 0.4);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px var(--shadow),
    0 0 12px var(--gold-glow);
  animation: cta-glow 2s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 2px 8px var(--shadow), 0 0 12px var(--gold-glow); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 2px 12px var(--shadow), 0 0 28px var(--gold-glow-strong), 0 0 48px rgba(212, 180, 90, 0.2); }
}

.cta-gold-btn:hover {
  background: linear-gradient(180deg, #e0c060 0%, #b09040 40%, #9a7c30 100%) !important;
  border-color: #e0c060 !important;
  color: #1a1209 !important;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 2px 12px var(--shadow),
    0 0 20px var(--gold-glow-strong);
  transform: translateY(-1px);
}

.cta-gold-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    0 1px 4px var(--shadow);
  background: linear-gradient(180deg, #a08030 0%, #8a6c28 40%, #7a5c20 100%) !important;
}

.red-btn {
  background: linear-gradient(to bottom, #7a2020, #4a1010);
  border: 1px solid var(--accent-red);
  color: #ffcccc;
}

.red-btn:hover {
  background: linear-gradient(to bottom, #9a3030, #5a1515);
  box-shadow: 0 0 12px rgba(196, 60, 60, 0.5);
}

.full-width {
  width: 100%;
  margin-top: 1rem;
}

.rpg-input {
  color-scheme: dark;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}

/* Całkowite ukrycie systemowych strzałek wyboru liczb (spinners) z pól input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: none;
}

textarea.rpg-input,
textarea {
  resize: none !important;
}

.rpg-input:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 6px var(--gold-glow);
}

.latest-deaths-wrap {
  display: grid;
  gap: 1rem;
}

.latest-deaths-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.latest-deaths-meta span {
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(20, 17, 14, 0.72);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
}

.latest-deaths-meta strong {
  color: var(--gold);
}

.exp-window-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.exp-window-switch button {
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 5px;
  background: rgba(12, 10, 8, 0.72);
  color: var(--text-secondary);
  padding: 0.16rem 0.45rem;
  cursor: pointer;
  font-weight: 700;
}

.exp-window-switch button.active,
.exp-window-switch button:hover {
  border-color: rgba(201, 168, 76, 0.68);
  background: rgba(201, 168, 76, 0.18);
  color: var(--gold);
}

.latest-deaths-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 8px;
  background: rgba(12, 10, 8, 0.82);
}

.latest-deaths-tab {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-title);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.latest-deaths-tab:hover,
.latest-deaths-tab.active {
  border-color: rgba(201, 168, 76, 0.52);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
  color: var(--gold);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.16);
}

.latest-deaths-card {
  padding: 0;
  overflow: visible;
}

.latest-deaths-empty-card {
  padding: 1rem;
}

.latest-deaths-panel-card {
  padding: 1rem;
}

.latest-deaths-panel-card h3 {
  margin: 0.8rem 1rem 0;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.08rem;
}

.latest-deaths-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

/* Frags: five compact summary cards, without stretching siblings when ranking expands. */
#guild-killers-trivia-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 0.8rem !important;
}

#guild-killers-trivia-cards > div {
  min-height: 0 !important;
  padding: 0.95rem !important;
}

@media (max-width: 1300px) {
  #guild-killers-trivia-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #guild-killers-trivia-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  #guild-killers-trivia-cards {
    grid-template-columns: 1fr !important;
  }
}

.latest-deaths-summary-card {
  min-height: 92px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 7px;
  background: rgba(10, 9, 8, 0.72);
  padding: 0.75rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.latest-deaths-summary-card span {
  font-size: 1.25rem;
}

.latest-deaths-summary-card small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.latest-deaths-summary-card strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.25;
}

.latest-deaths-events {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-primary);
}

.latest-deaths-events li {
  margin: 0.45rem 0;
}

.latest-deaths-events a {
  display: inline-block;
}

.latest-deaths-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.latest-deaths-table-wrap::-webkit-scrollbar {
  height: 8px;
  -webkit-appearance: none;
}
.latest-deaths-table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.latest-deaths-table-wrap::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(201, 168, 76, 0.6);
}

.latest-deaths-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  color: var(--text-primary);
}

.latest-deaths-table th,
.latest-deaths-table td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
  text-align: left;
  vertical-align: middle;
}

.latest-deaths-table th {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.88rem;
  background: rgba(201, 168, 76, 0.08);
}

.latest-deaths-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.latest-deaths-table .player-kill-death-row {
  background: linear-gradient(90deg, rgba(255, 72, 72, 0.22), rgba(201, 168, 76, 0.08) 55%, transparent);
  box-shadow: inset 4px 0 0 rgba(255, 82, 82, 0.95), inset 0 1px 0 rgba(255, 210, 92, 0.32), inset 0 -1px 0 rgba(255, 82, 82, 0.24);
}

.latest-deaths-table .player-kill-death-row:hover {
  background: linear-gradient(90deg, rgba(255, 72, 72, 0.32), rgba(201, 168, 76, 0.13) 62%, rgba(255, 255, 255, 0.035));
}

.latest-death-player {
  color: #f4ead7;
  font-weight: 700;
  text-decoration: none;
}

.latest-death-player:hover,
.latest-death-killer-player:hover {
  text-decoration: underline;
}

.latest-death-killer-player {
  color: #ffd970;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 217, 112, 0.48);
}

.death-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-weight: 800;
  font-size: 0.78rem;
}

.death-type-pvp {
  border: 1px solid rgba(255, 93, 93, 0.62);
  background: rgba(255, 93, 93, 0.16);
  color: #ffb3a9;
}

.death-type-pve {
  border: 1px solid rgba(118, 178, 255, 0.42);
  background: rgba(118, 178, 255, 0.12);
  color: #b7d4ff;
}

.exp-ranking-table .exp-podium-row {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.18), rgba(255, 255, 255, 0.025));
}

.exp-ranking-table .exp-podium-1 {
  box-shadow: inset 4px 0 0 rgba(255, 218, 92, 0.95);
}

.exp-ranking-table .exp-podium-2 {
  box-shadow: inset 4px 0 0 rgba(198, 213, 232, 0.82);
}

.exp-ranking-table .exp-podium-3 {
  box-shadow: inset 4px 0 0 rgba(205, 132, 73, 0.86);
}

.exp-vocation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.68);
  color: var(--text-primary);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.exp-vocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.exp-vocation-header h3 {
  margin: 0 !important;
}

.exp-vocation-toggle-btn {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  transition: all 0.2s ease;
}

.exp-vocation-toggle-btn:hover,
.exp-vocation-header:hover .exp-vocation-toggle-btn {
  background: rgba(201, 168, 76, 0.28);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.22);
}

.exp-vocation-stats-card.is-expanded .exp-vocation-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ccc;
}

.exp-vocation-collapsible {
  display: none;
}

.exp-vocation-stats-card.is-expanded .exp-vocation-collapsible {
  display: block;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.exp-view-hint {
  margin: -0.25rem 0 0;
}

.exp-highlights a {
  display: inline-block;
}

.exp-highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.exp-highlights-header h3 {
  margin: 0 !important;
}

.exp-highlights-toggle-btn {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  transition: all 0.2s ease;
}

.exp-highlights-toggle-btn:hover,
.exp-highlights-header:hover .exp-highlights-toggle-btn {
  background: rgba(201, 168, 76, 0.28);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.22);
}

.exp-highlights-card.is-expanded .exp-highlights-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ccc;
}

.exp-highlights-collapsible {
  display: none;
}

.exp-highlights-card.is-expanded .exp-highlights-collapsible {
  display: block;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.latest-deaths-error {
  margin: 0.8rem;
  color: #ff9a8e;
  font-size: 0.88rem;
}

select.rpg-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a8560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  transition: border-color 0.2s, background-image 0.2s;
}

select.rpg-input:hover,
select.rpg-input:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select.rpg-input option {
  background: #111;
  color: var(--text-primary);
}

/* ===== RPG Cards & Grids ===== */
.rpg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-deep);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.rpg-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.modal-content.rpg-card:hover {
  transform: none !important;
}

.announcements-grid, .hunted-grid, .hunts-grid, .quests-grid, .polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

#tab-marketplace {
  max-width: 750px !important;
  margin: 0 auto !important;
}

/* Announcement Card */
.ann-card.important {
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(201, 168, 76, 0.08) 100%);
}

.ann-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border-dark);
  padding-bottom: 0.5rem;
}

.ann-title {
  font-size: 1.25rem;
  color: var(--text-heading);
}

.ann-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ann-content {
  color: var(--text-primary);
  white-space: pre-line;
  font-size: 1rem;
}

/* Hunted Card */
.hunted-card {
  border-left: 4px solid var(--accent-red);
}

.hunted-card.status-Dead { border-left-color: #6b6b6b; opacity: 0.7; }
.hunted-card.status-Payed { border-left-color: var(--accent-green); }

.hunted-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hunted-nick {
  font-size: 1.3rem;
  color: #ff6b6b;
  font-weight: 700;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.Active { background: rgba(196, 60, 60, 0.2); border: 1px solid var(--accent-red); color: #ff9999; }
.status-badge.Dead { background: rgba(100, 100, 100, 0.2); border: 1px solid #888; color: #ccc; }
.status-badge.Payed { background: rgba(74, 140, 63, 0.2); border: 1px solid var(--accent-green); color: #98fb98; }

/* ===== Odznaka NEW HUNTED dla celów dodanych w ostatnich 3 dniach ===== */
.status-badge.new-hunted-badge {
  background: linear-gradient(135deg, #ff1a1a 0%, #800000 100%);
  color: #ffffff;
  border: 1.5px solid #ffcc00;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 0.72rem;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px #000, 0 0 4px #ff0000;
  animation: new-hunted-glow 1.8s infinite alternate ease-in-out;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hunted-item-container.is-new-hunted {
  border-left: 4px solid #ff1a1a;
  box-shadow: -4px 0 12px rgba(255, 26, 26, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.1);
}

@keyframes new-hunted-glow {
  0% { box-shadow: 0 0 6px rgba(255, 26, 26, 0.6), 0 0 2px #ffcc00; transform: scale(1); }
  100% { box-shadow: 0 0 14px rgba(255, 50, 50, 1), 0 0 6px #ffcc00; transform: scale(1.02); }
}

.hunted-info {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hunted-minibia-link {
  color: var(--text-link);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(240, 208, 104, 0.5);
}

.hunted-minibia-link:hover,
.hunted-minibia-link:focus-visible {
  color: #fff1a8;
  border-bottom-color: currentColor;
  text-shadow: 0 0 8px rgba(240, 208, 104, 0.38);
}

.hunted-bounty {
  margin-top: 1rem;
  padding: 0.6rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-weight: 700;
}

/* Vocation Badges */
.voc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-left: 6px;
}

.voc-EK { background: #1a364a; border: 1px solid #4682b4; color: #a0d2ff; }
.voc-ED { background: #163820; border: 1px solid #2e8b57; color: #98fb98; }
.voc-RP { background: #3d3010; border: 1px solid #daa520; color: #ffe4b5; }
.voc-MS { background: #3d1515; border: 1px solid #b22222; color: #ffb6c1; }

/* Hunt Card */
.hunt-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hunt-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.slots-container {
  margin-top: 1rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 0.8rem;
}

.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.slot-row:last-child { border-bottom: none; }

.slot-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.slot-players {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.btn-signup {
  padding: 2px 8px;
  font-size: 0.75rem;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  color: var(--gold);
}

.hunted-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  width: 250px;
  margin: 0;
}

/* ===== Ankiety Gildijne (Polls) ===== */
.poll-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border-gold);
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.35);
  padding-bottom: 0.7rem;
}

.poll-title {
  font-size: 1.18rem;
  color: var(--gold);
  font-weight: bold;
  margin: 0;
  line-height: 1.35;
}

/* Minimalistyczny zegar odliczający */
/* Minimalistyczny zegar odliczający */
.poll-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 11px;
  background: rgba(14, 11, 8, 0.85);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ffdf73;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.poll-timer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 1px;
}

.poll-timer-content {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.poll-timer-d-wrapper {
  display: inline-flex;
  align-items: center;
  color: #ffcc00;
  font-weight: 800;
  background: rgba(201, 168, 76, 0.18);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.poll-timer-time {
  display: inline-flex;
  align-items: center;
  font-family: monospace, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.poll-countdown-pill.closed {
  padding: 5px 14px;
  border-color: #777;
  color: #bbb;
  background: rgba(40, 40, 40, 0.65);
}

.poll-option-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.poll-option-row:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.poll-option-row.voted {
  border-color: #ffdf73;
  background: rgba(201, 168, 76, 0.14);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.22);
}

.poll-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.32) 0%, rgba(201, 168, 76, 0.12) 100%);
  z-index: 0;
  transition: width 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.poll-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.poll-option-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.poll-option-stats {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: bold;
  white-space: nowrap;
}

.poll-voters-list {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: -3px;
  margin-bottom: 10px;
  padding-left: 14px;
  font-style: italic;
  line-height: 1.3;
}

/* ===== Modals (Magiczny Portal Wejścia & Kaskada Formularzy) ===== */
@keyframes modalBackdropFadeIn {
  0% { opacity: 0; backdrop-filter: blur(0px); }
  100% { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes modalBackdropFadeOut {
  0% { opacity: 1; backdrop-filter: blur(8px); }
  100% { opacity: 0; backdrop-filter: blur(0px); }
}

@keyframes modalPortalZoom {
  0% { 
    opacity: 0; 
    transform: scale(0.65) translateY(-30px); 
    box-shadow: 0 0 0 rgba(255, 223, 115, 0); 
    border-color: #ffdf73;
  }
  60% {
    box-shadow: 0 0 65px rgba(255, 223, 115, 0.85), inset 0 0 30px rgba(201, 168, 76, 0.5);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px var(--gold-glow);
    border-color: var(--border-gold);
  }
}

@keyframes modalPortalZoomOut {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.8) translateY(25px); filter: blur(4px); }
}

@keyframes formItemStagger {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 3, 1, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
  animation: modalBackdropFadeIn 0.35s ease-out forwards;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 35px var(--gold-glow);
  transform-origin: center top;
}

.modal-content.portal-zoom {
  animation: modalPortalZoom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.event-confirmation-card {
  max-width: 620px;
  text-align: center;
  border: 2px solid rgba(201, 168, 76, 0.85);
  box-shadow: 0 0 45px rgba(201, 168, 76, 0.22), 0 0 18px rgba(0, 0, 0, 0.65);
}

.event-confirmation-card h3 {
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.event-confirmation-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-secondary);
}

.event-confirmation-meta span,
.event-confirmation-votes {
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}

.event-confirmation-votes {
  display: inline-block;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.event-confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.event-attendance-card {
  max-width: 680px;
}

.event-attendance-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.15rem;
  text-align: left;
}

.event-attendance-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}

.event-attendance-row:hover {
  border-color: rgba(201, 168, 76, 0.62);
  background: rgba(201, 168, 76, 0.08);
}

.event-attendance-checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.event-attendance-name {
  color: var(--text-primary);
  font-weight: 700;
}

.event-attendance-actions {
  grid-template-columns: 1fr;
}

.event-attendance-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.28rem;
  font-size: 0.88rem;
}

.event-confirmation-later {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.event-confirmation-status {
  margin: 0.8rem 0 0.2rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.32);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.event-confirmation-status strong {
  color: var(--gold);
}

.event-confirmation-status span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.event-confirmation-status.occurred {
  border-color: rgba(0, 255, 127, 0.45);
  background: rgba(0, 90, 45, 0.16);
}

.event-confirmation-status.occurred strong {
  color: #7dffad;
}

.event-confirmation-status.not-occurred {
  border-color: rgba(255, 91, 91, 0.5);
  background: rgba(120, 25, 25, 0.2);
}

.event-confirmation-status.not-occurred strong {
  color: #ff8b8b;
}

@media (max-width: 560px) {
  .event-confirmation-actions {
    grid-template-columns: 1fr;
  }
}

/* Zmniejszenie i zeskalowanie okienka rejestracji o ok. 10% */
#modal-register .modal-content {
  max-width: 450px;
  padding: 1.35rem;
}
#modal-register .modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
#modal-register .modal-content p {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
#modal-register .modal-content label {
  font-size: 0.85rem;
}
#modal-register .modal-content .rpg-input {
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: 0.65rem;
}
#modal-register .modal-content button[type="submit"] {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  margin-top: 0.7rem;
}
#modal-register .modal-content button[onclick*="connectDiscord"] {
  padding: 0 10px !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
}
#modal-register .close-modal {
  top: 0.6rem;
  right: 0.6rem;
  font-size: 1.7rem;
  width: 32px;
  height: 32px;
}

.close-modal {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  user-select: none;
  z-index: 100;
}

.close-modal:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.activity-points-balance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 2px 10px;
  border: 1px solid rgba(0, 255, 127, 0.4);
  border-radius: 6px;
  background: rgba(0, 255, 127, 0.12);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.15);
  color: #00ff7f;
  font: inherit;
  font-size: 0.92rem;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.activity-points-balance:hover,
.activity-points-balance:focus-visible {
  border-color: #7dffad;
  background: rgba(0, 255, 127, 0.2);
  box-shadow: 0 0 16px rgba(0, 255, 127, 0.28);
  outline: none;
}

.activity-rules-open-btn {
  border-color: rgba(201, 168, 76, 0.7);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.activity-points-rules-modal {
  max-width: 780px;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(28, 22, 15, 0.99), rgba(13, 11, 9, 0.99));
}

.activity-rules-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-right: 3rem;
}

.activity-rules-heading-icon {
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 7px rgba(201, 168, 76, 0.35));
}

.activity-rules-heading h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 1.45rem;
}

.activity-rules-heading p,
.activity-rules-note {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.activity-rules-section {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.activity-rules-section h4 {
  margin: 0 0 0.75rem;
  color: var(--text-heading);
  font-size: 1.04rem;
}

.activity-rule-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin-top: 0.65rem;
}

.activity-rule-line > span {
  text-align: center;
}

.activity-rule-line p {
  min-width: 0;
  margin: 0;
  color: #d1c8bb;
  line-height: 1.45;
}

.activity-rule-line strong,
.activity-rules-event-rewards strong {
  color: #f1d675;
}

.activity-rules-rewards,
.activity-rules-event-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.activity-rules-rewards span,
.activity-rules-event-rewards span {
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border-left: 2px solid rgba(201, 168, 76, 0.55);
  background: rgba(0, 0, 0, 0.2);
  color: #d8d0c3;
  line-height: 1.35;
}

.activity-rules-rewards .activity-rule-jackpot {
  border-left-color: #ff5a5a;
  color: #ffd36a;
}

.activity-rules-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #d1c8bb;
}

.activity-rules-list li {
  margin: 0.42rem 0;
  line-height: 1.42;
}

.activity-rules-section-last {
  padding-bottom: 0.15rem;
}

.activity-rules-actions {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.activity-rules-actions .action-btn {
  min-width: 180px;
}

@media (max-width: 600px) {
  .activity-points-rules-modal {
    width: 100%;
    max-height: calc(100vh - 1rem);
    padding: 1.15rem;
  }

  .activity-rules-heading {
    gap: 0.65rem;
  }

  .activity-rules-heading-icon {
    font-size: 1.6rem;
  }

  .activity-rules-heading h3 {
    font-size: 1.15rem;
  }

  .activity-rules-rewards,
  .activity-rules-event-rewards {
    grid-template-columns: 1fr;
  }
}

#modal-report-bug .report-modal-title {
  min-width: 0;
  padding-right: 3rem;
}

#modal-report-bug .report-modal-title > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-col {
  flex: 1;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.form-success {
  color: #00ff7f;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0.8rem 0;
}

/* Verify Modal */
.verify-card {
  max-width: 600px;
}

.verify-steps {
  margin: 1.5rem 0;
}

.step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.step-num {
  background: var(--border-gold);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  flex-shrink: 0;
}

.token-box {
  margin-top: 0.5rem;
  display: flex;
  gap: 10px;
}

.token-box code {
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

.copy-btn {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== Footer ===== */
.site-footer {
  background: #080603;
  border-top: 1px solid var(--border-dark);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-sub {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* ===== Animacje i Stany Przycisku Weryfikacji ===== */
@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 8px var(--gold); }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-loading {
  cursor: wait !important;
  opacity: 0.85 !important;
  background: linear-gradient(135deg, #3a2c16 0%, #5a4422 100%) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.5) !important;
}

.spinner-icon {
  display: inline-block;
  animation: spin 1.2s linear infinite;
  margin-right: 8px;
}

.pulse-icon {
  display: inline-block;
  animation: pulseGlow 1s ease-in-out infinite;
  margin-left: 6px;
}

/* ===== ZŁOTA AURA WOKÓŁ PANELU UŻYTKOWNIKA (POST-LOGIN GLOW) ===== */
@keyframes userPanelGlow {
  0% { box-shadow: 0 0 0 rgba(201, 168, 76, 0); }
  30% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.9), inset 0 0 18px rgba(201, 168, 76, 0.5); border: 1px solid #ffdf73; }
  100% { box-shadow: 0 0 0 rgba(201, 168, 76, 0); border: 1px solid transparent; }
}

.user-panel.glow-active {
  animation: userPanelGlow 3.5s ease-out;
  border-radius: 8px;
  padding: 4px 12px;
}

/* ===== KASKADOWE ŁADOWANIE KART (STAGGERED ENTRANCE) ===== */
@keyframes staggerCardIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); box-shadow: 0 0 35px rgba(201, 168, 76, 0.35); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger-in {
  animation: staggerCardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== EFEKTY WYLOGOWANIA (TELEPORT & RECALL) ===== */
@keyframes staggerCardOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(4px); }
}

.stagger-out {
  animation: staggerCardOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

/* ===== RPG TOAST NOTIFICATION ===== */
.rpg-toast {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: linear-gradient(135deg, #2a1f0c 0%, #120e06 100%);
  border: 2px solid #ffdf73;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 223, 115, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(201, 168, 76, 0.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rpg-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ===== LIVE ACTIVITY TOASTS ===== */
.live-activity-layer {
  position: fixed;
  inset: 0;
  z-index: 99970;
  pointer-events: none;
  overflow: hidden;
}

.live-activity-toast {
  position: fixed;
  left: 50%;
  bottom: calc(6vh + var(--activity-stack-offset, 0px));
  transform: translate(-50%, 38px) scale(0.96);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(560px, calc(100vw - 28px));
  padding: 0.78rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 92, 0.62);
  background: linear-gradient(135deg, rgba(18, 14, 9, 0.94), rgba(35, 26, 12, 0.9));
  color: #f4ead7;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(201, 168, 76, 0.24);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.35;
  opacity: 0;
  animation: liveActivityFloat 6.1s forwards;
}

.live-activity-icon {
  font-size: 1.32rem;
  filter: drop-shadow(0 0 8px rgba(255, 210, 92, 0.45));
  flex: 0 0 auto;
}

.live-activity-toast-death {
  border-color: rgba(255, 82, 82, 0.76);
  background: linear-gradient(135deg, rgba(28, 8, 8, 0.96), rgba(54, 15, 12, 0.92));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.78), 0 0 28px rgba(255, 62, 62, 0.32);
}

.live-activity-toast-death .live-activity-icon {
  filter: drop-shadow(0 0 9px rgba(255, 82, 82, 0.72));
}

.live-activity-toast-death .live-activity-body strong {
  color: #ff8a7b;
}

.live-activity-toast-player-kill {
  min-width: min(620px, calc(100vw - 28px));
  pointer-events: auto;
  border: 2px solid rgba(255, 82, 82, 0.92);
  background:
    linear-gradient(135deg, rgba(54, 6, 10, 0.98), rgba(26, 10, 8, 0.96) 48%, rgba(58, 42, 12, 0.94)),
    radial-gradient(circle at 12% 30%, rgba(255, 82, 82, 0.22), transparent 34%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.86),
    0 0 34px rgba(255, 64, 64, 0.42),
    0 0 22px rgba(255, 217, 112, 0.24),
    inset 0 0 22px rgba(255, 82, 82, 0.14);
  animation: playerKillToastFloat 132s forwards;
}

.live-activity-toast-player-kill .live-activity-icon {
  font-size: 1.65rem;
  filter: drop-shadow(0 0 12px rgba(255, 82, 82, 0.9));
}

.live-activity-toast-player-kill .live-activity-body span {
  color: #ffe5e5;
  font-weight: 800;
}

.live-activity-toast-guild-kill {
  min-width: min(620px, calc(100vw - 28px));
  pointer-events: auto;
  border: 2px solid rgba(55, 255, 128, 0.82);
  background:
    linear-gradient(135deg, rgba(6, 43, 25, 0.98), rgba(18, 25, 10, 0.96) 48%, rgba(66, 49, 10, 0.94)),
    radial-gradient(circle at 12% 30%, rgba(55, 255, 128, 0.2), transparent 34%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.86),
    0 0 34px rgba(55, 255, 128, 0.28),
    0 0 24px rgba(255, 217, 112, 0.34),
    inset 0 0 22px rgba(55, 255, 128, 0.12);
  animation: guildMemberKillToastFloat 40s forwards;
}

.live-activity-toast-guild-kill .live-activity-icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 0 13px rgba(255, 217, 112, 0.92));
}

.live-activity-toast-guild-kill .live-activity-body span {
  color: #eaffdc;
  font-weight: 850;
}

.live-activity-guild-killer-link {
  color: #37ff80;
  font-weight: 950;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(55, 255, 128, 0.7);
}

.live-activity-victim-link {
  color: #ffe5e5;
  font-weight: 900;
  text-decoration: none;
}

.live-activity-killer-link {
  color: #ffd970;
  font-weight: 950;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(255, 217, 112, 0.74);
}

.live-activity-victim-link:hover,
.live-activity-guild-killer-link:hover,
.live-activity-killer-link:hover {
  text-decoration: underline;
}

.live-activity-close {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 217, 112, 0.42);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #ffd970;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-activity-close:hover {
  border-color: rgba(255, 217, 112, 0.9);
  background: rgba(255, 82, 82, 0.22);
}

.live-activity-body {
  display: inline;
}

.live-activity-body strong {
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 800;
  margin-right: 0.28rem;
}

.live-activity-body span {
  color: #f0e6d2;
}

@keyframes liveActivityFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 54px) scale(0.94);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    animation-timing-function: cubic-bezier(0.18, 0.9, 0.2, 1);
  }
  52% {
    opacity: 1;
    transform: translate(-50%, -24vh) scale(1);
    animation-timing-function: linear;
  }
  66% {
    opacity: 1;
    transform: translate(-50%, -24vh) scale(1);
    animation-timing-function: cubic-bezier(0.72, 0, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--activity-fly-x, 36vw)), calc(-24vh + var(--activity-fly-y, -42vh))) scale(0.28);
  }
}

@keyframes playerKillToastFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 78px) scale(0.88);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  7.5% {
    opacity: 1;
    transform: translate(-50%, -18vh) scale(1);
    animation-timing-function: linear;
  }
  92% {
    opacity: 1;
    transform: translate(-50%, -18vh) scale(1);
    animation-timing-function: cubic-bezier(0.72, 0, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--death-fly-x, -62vw)), calc(-18vh + var(--death-fly-y, -4vh))) scale(0.7);
  }
}

@keyframes guildMemberKillToastFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 78px) scale(0.88);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -18vh) scale(1);
    animation-timing-function: linear;
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -18vh) scale(1);
    animation-timing-function: cubic-bezier(0.72, 0, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--guild-kill-fly-x, 0px)), calc(-18vh + var(--guild-kill-fly-y, -38vh))) scale(0.48);
  }
}

@media screen and (max-width: 600px) {
  .live-activity-toast {
    width: calc(100vw - 30px);
    justify-content: flex-start;
    font-size: 0.86rem;
    padding: 0.72rem 0.88rem;
  }
}

/* ===== Dwukolumnowy Układ Tabel Hunted & Kaskada Szczegółów ===== */
#tab-hunted .section-header,
#tab-hunted .hunted-columns-container,
#tab-hunted #hunted-pending-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hunted-columns-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
  width: 100%;
}

.hunted-table-section {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 1200px) {
  #tab-hunted .section-header,
  #tab-hunted .hunted-columns-container,
  #tab-hunted #hunted-pending-section {
    max-width: 100%;
  }
  .hunted-columns-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .hunted-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100% !important;
  }
}

.hunted-column-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.column-subtitle {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--text-secondary);
  font-family: 'Roboto', sans-serif;
}

.hunted-list-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hunted-item-container {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
}

.hunted-item-container:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hunted-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  box-sizing: border-box;
}

.hunted-compact-header:hover {
  background: rgba(201, 168, 76, 0.08);
}

.hunted-compact-header.expanded {
  background: rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hunted-toggle-icon {
  color: var(--gold);
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.hunted-compact-header.expanded .hunted-toggle-icon {
  transform: rotate(90deg);
}

.hunted-nick-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.hunted-details-body {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

/* ===== 8. Style Zakładki Zapisów na Questy (RPG Clock, Badges & Archive) ===== */
.quest-countdown-container {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: rgba(10, 15, 20, 0.75);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.countdown-label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(201, 168, 76, 0.5);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  min-width: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.timer-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px var(--gold), 0 0 12px #ff8c00;
  line-height: 1.1;
}

.timer-unit {
  font-size: 0.65rem;
  color: #aaa;
  margin-top: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timer-sep {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--gold);
  animation: timerPulse 1s infinite;
  align-self: flex-start;
  margin-top: 0.3rem;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.quest-in-progress-badge {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(180, 40, 40, 0.3), rgba(220, 140, 20, 0.3));
  border: 2px solid #ff4500;
  border-radius: 8px;
  color: #ff8c00;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
  animation: inProgressPulse 1.5s infinite alternate;
}

@keyframes inProgressPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 69, 0, 0.4); }
  100% { transform: scale(1.02); box-shadow: 0 0 25px rgba(255, 140, 0, 0.8); }
}

.quest-archived-banner {
  margin-top: 1rem;
  padding: 0.6rem;
  background: rgba(50, 50, 50, 0.4);
  border: 1px solid #777;
  border-radius: 6px;
  color: #bbb;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.quest-card-archived {
  opacity: 0.75;
  filter: grayscale(20%);
  border-color: #555;
}

.quest-card-archived:hover {
  opacity: 0.95;
  filter: grayscale(0%);
}

.quest-status-msg, .quest-success-msg {
  text-align: center;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.quest-status-msg {
  color: #ffaa00;
}

.quest-success-msg {
  color: #00ff7f;
  text-shadow: 0 0 5px rgba(0, 255, 127, 0.4);
}

.participant-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(20, 25, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.participant-badge.voc-EK { border-color: #ff4d4d; background: rgba(255, 77, 77, 0.1); }
.participant-badge.voc-ED { border-color: #4d94ff; background: rgba(77, 148, 255, 0.1); }
.participant-badge.voc-RP { border-color: #ffcc00; background: rgba(255, 204, 0, 0.1); }
.participant-badge.voc-MS { border-color: #bf40bf; background: rgba(191, 64, 191, 0.1); }

.lvl-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(201, 168, 76, 0.4);
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
}

.event-organizer-meta {
  min-width: 0;
}

.event-organizer-meta strong {
  min-width: 0;
}

.event-organizer-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
}

/* RWD dla Zegara Questowego na małych ekranach smartfonów */
@media (max-width: 600px) {
  .hunt-meta {
    align-items: flex-start;
  }

  .hunt-meta > span {
    max-width: 100%;
    min-width: 0;
  }

  .event-organizer-meta {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .countdown-timer {
    gap: 0.25rem;
  }
  .timer-box {
    min-width: 40px;
    padding: 0.2rem 0.35rem;
  }
  .timer-val {
    font-size: 1.1rem;
  }
  .timer-unit {
    font-size: 0.55rem;
  }
  .timer-sep {
    font-size: 1rem;
    margin-top: 0.2rem;
  }
}

/* ===== 9. Kalendarz i wybór daty (Date / Time Pickers) ===== */
input[type="datetime-local"].rpg-input,
input[type="date"].rpg-input,
input[type="time"].rpg-input {
  color-scheme: dark;
  cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(100%) saturate(500%) hue-rotate(30deg) brightness(1.3);
  cursor: pointer;
  opacity: 0.95;
  padding: 4px;
  transform: scale(1.2);
  transition: transform 0.2s, filter 0.2s;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.35);
  filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(20deg) brightness(1.5);
}

/* ===== 10. RWD - Idealne dopasowanie Top Bar na smartfony (Huawei P30 Pro i inne urządzenia mobilne <= 768px) ===== */
@media (max-width: 768px) {
  .portal-weather-ticker {
    height: 26px;
    margin-top: 0.65rem;
  }
  .portal-weather-item {
    padding: 0 0.8rem;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
  }
  .portal-weather-condition {
    font-size: 0.82rem;
  }
  .main-nav .container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0 0.4rem;
  }
  .main-nav .nav-primary-btn { width: 100%; grid-template-columns: 1.2rem minmax(0, 1fr) auto; min-height: 42px; padding: 0.48rem 0.55rem; font-size: 0.7rem; }
  .main-nav .mobile-nav-shortcut { display: grid; }
  .nav-more-dropdown .nav-more-desktop-only { display: none !important; }
  .nav-menu-group { position: static; min-width: 0; }
  .nav-menu-trigger { width: 100%; grid-template-columns: 1.25rem minmax(0,1fr) auto 0.7rem; padding: 0.55rem 0.65rem; font-size: 0.76rem; }
  .nav-menu-trigger-icon { width: 1.25rem; min-width: 1.25rem; }
  .nav-menu-dropdown { top: calc(100% + 0.4rem); left: 0.4rem; right: 4.65rem; width: auto; min-width: 0; transform: translateY(-7px) scale(0.985); transform-origin: top center; }
  .nav-more-dropdown { grid-template-columns: 1fr; }
  .nav-more-group .nav-more-dropdown { left: 0.4rem; right: 4.65rem; transform: translateY(-7px) scale(0.985); transform-origin: top center; }
  .nav-menu-group.is-open .nav-menu-dropdown { transform: translateY(0) scale(1); }
  .nav-more-group.is-open .nav-more-dropdown { transform: translateY(0) scale(1); }
  .partyzone-teaser-btn { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .nav-btn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.82rem !important;
    margin-bottom: 2px;
  }
  #tab-lottery .rpg-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.8rem 0.6rem !important;
    margin: 0 auto !important;
  }
  #tab-lottery .rpg-card > div[style*="width: 320px"] {
    width: 280px !important;
    height: 280px !important;
    max-width: 100% !important;
    margin: 0 auto 2rem auto !important;
  }
  .top-bar {
    padding: 0.8rem 0;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .top-bar-inner > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .user-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .user-panel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    line-height: 1.5;
    width: 100%;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
  }
  .user-panel-info span {
    word-break: break-word;
    font-size: 0.9rem;
  }
  .user-panel-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .user-panel-actions button {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  .user-panel.glow-active {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .user-panel.glow-active .user-panel-info {
    animation: userPanelGlow 3.5s ease-out;
  }
  .guest-lock-overlay {
    width: 98% !important;
    padding: 1.5rem 1rem !important;
    max-height: 85vh;
    overflow-y: auto;
  }
  .guest-lock-overlay h3 {
    font-size: 1.25rem !important;
  }
  .guest-activity-counter-bar {
    padding: 1rem 0.6rem !important;
    gap: 10px !important;
  }
  .guest-activity-counter-bar > div {
    flex: 1 1 42%;
    margin-bottom: 8px;
  }
  .unverified-sanctuary {
    padding: 1.6rem 1rem !important;
  }
  .unverified-sanctuary h3 {
    font-size: 1.3rem !important;
  }
  .verify-card {
    padding: 1.5rem 1.1rem !important;
  }
  .verify-steps .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .verify-steps .step-num {
    margin-bottom: 2px;
  }
  .token-box {
    flex-direction: column;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 0.4rem !important;
  }
  .token-box code {
    text-align: center;
    font-size: 0.98rem !important;
    padding: 0.6rem 0.4rem !important;
    word-break: break-all;
    width: 100% !important;
    box-sizing: border-box;
  }
  .token-box .copy-btn {
    width: 100% !important;
    padding: 0.65rem 0 !important;
    text-align: center;
    font-size: 0.95rem !important;
    justify-content: center;
  }
  #tab-hunted .hunted-columns-container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  #tab-hunted .section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .hunted-actions {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .search-input {
    width: 100% !important;
  }
  .hunted-compact-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0.75rem 0.85rem !important;
  }
  .hunted-nick-title {
    font-size: 1rem !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  .status-badge.new-hunted-badge,
  .status-badge.Active {
    flex-shrink: 0 !important;
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }
}

/* ===== 14. Grywalizacja: Koło Fortuny, Podium i Check-in ===== */
.checkin-card {
  transition: all 0.3s ease;
}
.checkin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(201,168,76,0.4) !important;
}

@keyframes spinWheelAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(3600deg); }
}

.podium-card {
  background: linear-gradient(135deg, rgba(25, 25, 32, 0.95), rgba(15, 15, 20, 0.98));
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.podium-card:hover {
  transform: translateY(-5px);
}

/* Złoto - 1. Miejsce */
.podium-1 {
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(45, 38, 12, 0.95), rgba(20, 18, 10, 0.98));
  transform: scale(1.05);
}
.podium-1:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.5);
}

/* Srebro - 2. Miejsce */
.podium-2 {
  border-color: #c0c0c0;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.25);
  background: linear-gradient(135deg, rgba(35, 35, 40, 0.95), rgba(18, 18, 22, 0.98));
}

/* Brąz - 3. Miejsce */
.podium-3 {
  border-color: #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.25);
  background: linear-gradient(135deg, rgba(40, 28, 18, 0.95), rgba(20, 15, 12, 0.98));
}

.ranking-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ranking-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* Detailed guild-online table: keep status badges intact on narrow screens. */
.online-guild-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15,15,20,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem;
}

.online-guild-detail-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.online-guild-detail-table th,
.online-guild-detail-table td {
  padding: 12px;
  vertical-align: middle;
}

.online-guild-detail-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.online-guild-role-cell {
  min-width: 140px;
}

.online-guild-portal-cell {
  min-width: 145px;
}

.online-guild-discord-cell {
  min-width: 175px;
}

.online-guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  box-sizing: border-box;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
}

.online-guild-role-leader {
  color: #ff4d4d;
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff4d4d;
  font-weight: bold;
}

.online-guild-role-vice {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  font-weight: bold;
}

.online-guild-role-member {
  color: #ccc;
  background: rgba(255, 255, 255, 0.1);
  border-color: #666;
}

.online-guild-status-linked {
  color: #00ff7f;
  background: rgba(0,255,127,0.1);
  border-color: #00ff7f;
}

.online-guild-discord-linked {
  color: #b9c2ff;
  background: rgba(88,101,242,0.16);
  border-color: #7289da;
}

.online-guild-status-missing {
  color: #ff6b6b;
  background: rgba(255,107,107,0.1);
  border-color: #ff6b6b;
}

@media (max-width: 768px) {
  .online-guild-table-wrap {
    padding: 0.55rem;
  }
}

/* ===== Statystyki odwiedzin w panelu administratora ===== */
.visitor-analytics-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.visitor-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.visitor-stat-card {
  min-height: 132px;
  box-sizing: border-box;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 0.65rem;
  align-items: center;
  background: rgba(15,18,21,0.92);
  border: 1px solid rgba(101,199,255,0.28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.visitor-stat-icon {
  grid-row: 1 / 3;
  font-size: 1.65rem;
}

.visitor-stat-label {
  color: #b8c6cf;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.25;
}

.visitor-stat-card strong {
  color: #eef9ff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.visitor-stat-card small {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.visitor-analytics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.visitor-analytics-updated {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.visitor-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.visitor-analytics-panel {
  min-width: 0;
  padding: 1rem;
  border-radius: 8px;
}

.visitor-analytics-panel h3 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 1rem;
}

.visitor-analytics-chart {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.visitor-chart-bars {
  min-width: 560px;
  height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px 4px 0;
  border-bottom: 1px solid rgba(201,168,76,0.36);
  background-image: linear-gradient(to top, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 100% 25%;
}

.visitor-chart-day {
  flex: 1 0 20px;
  height: 100%;
  min-width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.visitor-chart-columns {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.visitor-chart-bar {
  width: min(8px, 42%);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: height 0.25s ease;
}

.visitor-chart-bar.views,
.visitor-chart-legend i.views {
  background: #65c7ff;
  box-shadow: 0 0 8px rgba(101,199,255,0.42);
}

.visitor-chart-bar.unique,
.visitor-chart-legend i.unique {
  background: #d6b34f;
  box-shadow: 0 0 8px rgba(214,179,79,0.36);
}

.visitor-chart-date {
  height: 28px;
  color: #8c9298;
  font-size: 0.65rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.visitor-chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.visitor-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visitor-chart-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
}

.visitor-analytics-countries {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.visitor-country-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(70px, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.visitor-country-name {
  min-width: 0;
  color: #e8e1d5;
  overflow-wrap: anywhere;
}

.visitor-country-track {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.visitor-country-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #65c7ff;
}

.visitor-country-row strong {
  color: var(--gold);
  font-size: 0.86rem;
}

.visitor-analytics-error {
  grid-column: 1 / -1;
  padding: 1rem;
  color: #ff8893;
  border: 1px solid rgba(255,107,122,0.45);
  border-radius: 8px;
  background: rgba(255,107,122,0.08);
}

.discord-connect-prompt-card {
  max-width: 520px;
  text-align: center;
}
.discord-connect-prompt-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(88,101,242,0.7));
}
.discord-connect-prompt-card h3 {
  color: #dfe7ff;
  margin-bottom: 0.75rem;
}
.discord-connect-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.8rem;
}
.discord-connect-prompt-connect,
.discord-connect-prompt-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}
.discord-connect-prompt-connect {
  background: #5865f2;
  border-color: #8590ff;
  color: #fff;
}
.discord-connect-prompt-join {
  background: rgba(88,101,242,0.12);
  border: 1px solid #5865f2;
  color: #bfc6ff;
}
.discord-connect-prompt-later {
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* ===== Aktywność członków gildii ===== */
.activity-analytics-toolbar {
  border-color: rgba(255,159,67,0.3);
}
.activity-analytics-sort {
  min-width: 190px;
  margin-bottom: 0;
}
.activity-analytics-wheel {
  margin: 0 0 1rem;
}
.activity-wheel-card {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(255,159,67,0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(35,24,13,0.95), rgba(15,18,21,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 18px rgba(255,159,67,0.08);
}
.activity-wheel {
  width: min(210px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: var(--activity-wheel-gradient);
  box-shadow: 0 0 20px rgba(255,159,67,0.18);
}
.activity-wheel::before {
  content: '';
  position: absolute;
}
.activity-wheel-center {
  width: 56%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #15100c;
  border: 1px solid rgba(255,209,102,0.3);
  text-align: center;
}
.activity-wheel-center strong {
  color: #ffd166;
  font-size: 2rem;
  line-height: 1;
}
.activity-wheel-center span {
  max-width: 90%;
  margin-top: 0.35rem;
  color: #b9b0a2;
  font-size: 0.72rem;
  line-height: 1.2;
}
.activity-wheel-copy h3 {
  margin: 0 0 0.45rem;
  color: #ffd166;
}
.activity-wheel-copy p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}
.activity-wheel-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem 1rem;
}
.activity-wheel-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e8e1d5;
  font-size: 0.84rem;
}
.activity-wheel-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.activity-wheel-legend b {
  color: #ffd166;
}
.activity-analytics-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}
.activity-user-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 8px;
  background: rgba(18,15,12,0.9);
}
.activity-user-card.is-online {
  border-color: rgba(99,230,190,0.65);
  box-shadow: 0 0 12px rgba(99,230,190,0.09);
}
.activity-user-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.activity-user-heading strong {
  color: #f1e6d1;
  font-size: 1.05rem;
}
.activity-user-rank {
  color: #ffd166;
  font-weight: bold;
}
.activity-user-vocation {
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.78rem;
}
.activity-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #63e6be;
  box-shadow: 0 0 8px #63e6be;
}
.activity-score-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin: 0.85rem 0 0.7rem;
  color: #d6b34f;
  font-size: 0.8rem;
}
.activity-score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
}
.activity-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9f43, #ffd166);
}
.activity-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: #aaa39a;
  font-size: 0.76rem;
}
@media (max-width: 650px) {
  .activity-wheel-card {
    grid-template-columns: 1fr;
  }
  .activity-wheel {
    width: min(180px, 70vw);
  }
  .activity-analytics-sort {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .visitor-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .visitor-analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visitor-stat-card {
    min-height: 142px;
    padding: 0.8rem;
  }
  .visitor-stat-card strong {
    font-size: 1.3rem;
  }
  .visitor-country-row {
    grid-template-columns: minmax(110px, 1fr) minmax(55px, 0.8fr) auto;
  }
}

/* ===== Komunikat administratora dla zalogowanych ===== */
.portal-broadcast-overlay {
  position: fixed;
  inset: 0;
  z-index: 10120;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 2, 3, 0.82);
  backdrop-filter: blur(5px);
}

.portal-broadcast-overlay.active {
  display: flex !important;
  animation: portalBroadcastBackdropIn 0.24s ease-out;
}

.portal-broadcast-card {
  position: relative;
  width: min(620px, 94vw);
  max-height: min(760px, 90vh);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 2rem 2.2rem 1.8rem;
  text-align: center;
  color: var(--text-primary);
  background: #15110d;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.78), 0 0 32px rgba(201,168,76,0.24), inset 0 0 0 4px rgba(58,43,21,0.72);
  animation: portalBroadcastCardIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-broadcast-card::before,
.portal-broadcast-card::after {
  content: "◆";
  position: absolute;
  top: 14px;
  color: var(--gold);
  font-size: 0.7rem;
}

.portal-broadcast-card::before { left: 16px; }
.portal-broadcast-card::after { right: 16px; }

.portal-broadcast-close {
  position: absolute;
  top: 12px;
  right: 38px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.55);
  border-radius: 4px;
  background: rgba(0,0,0,0.42);
  color: #f4dfaa;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.portal-broadcast-emblem {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}

.portal-broadcast-card h2 {
  margin: 0 auto 1rem;
  padding: 0 2.6rem 0.8rem;
  color: #f2d477;
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(201,168,76,0.38);
  overflow-wrap: anywhere;
}

.portal-broadcast-message {
  color: #f2eee7;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.portal-broadcast-meta {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.portal-broadcast-confirm {
  margin-top: 1.35rem;
  min-width: 180px;
  justify-content: center;
}

.portal-broadcast-admin-card {
  margin: 0 0 1.6rem;
  padding: 1rem;
  border: 1px solid rgba(201,168,76,0.42);
  border-radius: 8px;
  background: rgba(201,168,76,0.06);
}

.portal-broadcast-admin-card h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.portal-broadcast-admin-card label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: bold;
}

.portal-broadcast-message-row {
  margin-top: 0.9rem;
}
.portal-broadcast-targets { margin-top: 1rem; }
.portal-broadcast-targets small { display: block; margin-top: 0.35rem; color: var(--text-secondary); }

.portal-broadcast-admin-card textarea {
  resize: vertical;
  min-height: 120px;
}

.portal-broadcast-admin-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.portal-broadcast-admin-status {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.portal-broadcast-admin-status.active {
  color: #7dffad;
}
.portal-broadcast-admin-status { line-height: 1.55; }

@keyframes portalBroadcastBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portalBroadcastCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .portal-broadcast-card {
    padding: 1.5rem 1rem 1.25rem;
  }
  .portal-broadcast-card h2 {
    padding-right: 2.8rem;
    padding-left: 2.8rem;
    font-size: 1.2rem;
  }
  .portal-broadcast-message {
    font-size: 1rem;
  }
  .portal-broadcast-close {
    right: 30px;
  }
  .portal-broadcast-admin-actions .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Alarm gildyjny Web Push ===== */
.guild-alert-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, rgba(90, 0, 0, 0.98), rgba(170, 18, 18, 0.98), rgba(55, 0, 0, 0.98));
  color: #fff;
  border-bottom: 2px solid #ffdf73;
  box-shadow: 0 0 28px rgba(255, 0, 0, 0.55), 0 4px 24px rgba(0, 0, 0, 0.75);
  padding: 0.75rem 1rem;
  font-family: var(--font-title);
  letter-spacing: 0;
}

.guild-alert-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guild-alert-banner-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.guild-alert-banner-title {
  color: #ffdf73;
  font-weight: 900;
  font-size: 0.95rem;
}

.guild-alert-banner-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.guild-alert-banner-close {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.guild-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: radial-gradient(circle at center, rgba(255, 47, 47, 0.38), rgba(50, 0, 0, 0.96) 66%, rgba(0, 0, 0, 0.98));
  color: #fff;
  padding: 1.25rem;
  align-items: center;
  justify-content: center;
  animation: guildAlertOverlayPulse 1.05s ease-in-out infinite;
}

.guild-alert-overlay.active {
  display: flex !important;
}

.guild-alert-overlay-card {
  width: min(680px, 94vw);
  border: 2px solid #ffdf73;
  background: linear-gradient(180deg, rgba(42, 0, 0, 0.98), rgba(12, 8, 8, 0.99));
  box-shadow: 0 0 48px rgba(255, 0, 0, 0.7), 0 0 28px rgba(255, 223, 115, 0.25);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: center;
}

.guild-alert-overlay-title {
  color: #ffdf73;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 5vw, 3.3rem);
  font-weight: 900;
  margin-bottom: 0.8rem;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.85);
}

.guild-alert-overlay-text {
  font-size: clamp(1.05rem, 3.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guild-alert-overlay-meta {
  margin-top: 0.85rem;
  color: #ffdf73;
  font-size: 0.95rem;
}

.guild-alert-overlay-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.guild-alert-overlay-btn {
  border: 1px solid #ffdf73;
  background: rgba(255, 223, 115, 0.16);
  color: #fff;
  border-radius: 7px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

@keyframes guildAlertOverlayPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(255, 0, 0, 0); }
  50% { box-shadow: inset 0 0 120px rgba(255, 0, 0, 0.45); }
}

.guild-alert-admin-card {
  max-width: 820px;
  margin: 0 auto;
  border-color: rgba(255, 47, 47, 0.55);
  box-shadow: 0 0 28px rgba(255, 47, 47, 0.18);
}

.guild-alert-admin-card h3 {
  color: #ff6b6b;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 47, 47, 0.35);
  padding-bottom: 0.75rem;
}

.guild-alert-admin-card p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.guild-alert-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.guild-alert-send-btn {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  font-size: 1.02rem;
}

.guild-alert-send-status {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Pływający Widżet Boczny (Quick Access Dock - Obecność, Ranking, Loteria)
   ========================================================================== */
/* Ukrycie pływającego paska bocznego na podstronie Targu Live */
body:has(#tab-market-live.active) #quick-access-dock,
body.market-live-tab-active #quick-access-dock {
  display: none !important;
}

/* PC resting state: podpięty do prawej krawędzi ekranu (right: 0), wysuwa się przy hover */
.quick-access-dock {
  position: fixed;
  right: 0;
  top: 50%;
  --dock-expanded-offset: 22px;
  transform: translate(calc(100% - 57px), -50%);
  z-index: 9980;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: rgba(14, 11, 8, 0.94);
  border: 1px solid var(--gold);
  border-right: none;
  border-left: 2px solid var(--gold);
  border-radius: 20px 0 0 20px;
  padding: 14px 14px 14px 12px;
  box-shadow: -6px 0 35px rgba(0, 0, 0, 0.9), -2px 0 15px rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(14px);
  transition: transform 1.15s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 1.15s ease, border-color 1.15s ease;
}

/* Po najechaniu myszką na PC (lub aktywacji dotykowej) - wysuwa się w pełni */
.quick-access-dock:hover,
.quick-access-dock.dock-expanded {
  transform: translate(var(--dock-expanded-offset), -50%);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.98), -3px 0 30px rgba(201, 168, 76, 0.55);
  border-color: #ffdf73;
}

.quick-access-dock.dock-forced-closed {
  transform: translate(calc(100% - 57px), -50%) !important;
}

.quick-access-dock.dock-ranking-mode {
  transform: translate(calc(100% - 50px), -50%);
}

.quick-access-dock.dock-ranking-mode:hover,
.quick-access-dock.dock-ranking-mode.dock-expanded {
  transform: translate(calc(100% - 74px), -50%);
}

.quick-access-dock.dock-ranking-mode.dock-forced-closed {
  transform: translate(calc(100% - 50px), -50%) !important;
}

@media screen and (min-width: 993px) {
  body.ranking-tab-active .ranking-table-card {
    padding-right: 5.25rem;
  }

  body.ranking-tab-active #tab-ranking .ranking-table th:last-child,
  body.ranking-tab-active #tab-ranking .ranking-table td:last-child {
    padding-right: 1.4rem !important;
  }
}

.dock-btn {
  background: rgba(26, 21, 15, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  color: #e6dac6;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.dock-btn:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), rgba(35, 27, 18, 0.96));
  border-color: var(--gold);
  color: #fff;
  transform: translateX(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.dock-btn.active {
  background: linear-gradient(135deg, var(--gold), #8a6f28);
  color: #0e0b08;
  border-color: #ffdf73;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.75);
  font-weight: 800;
}

.dock-icon {
  font-size: 1.38rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-btn:hover .dock-icon {
  transform: scale(1.25) rotate(-10deg);
}

.dock-btn.checkin-done {
  background: linear-gradient(135deg, rgba(42, 42, 46, 0.95), rgba(20, 20, 23, 0.96));
  border-color: rgba(150, 150, 155, 0.45);
  color: #b9bcc4;
  box-shadow: none;
}

.dock-btn.checkin-done:hover {
  background: linear-gradient(135deg, rgba(50, 50, 55, 0.98), rgba(24, 24, 28, 0.98));
  border-color: rgba(185, 188, 196, 0.55);
  color: #e0e2e8;
  box-shadow: none;
}

@keyframes pulseDockBtnGold {
  0% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.65); border-color: rgba(255, 170, 0, 0.8); }
  70% { box-shadow: 0 0 0 14px rgba(255, 170, 0, 0); border-color: #ffe066; }
  100% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0); border-color: rgba(255, 170, 0, 0.8); }
}

.pulse-dock-btn {
  animation: pulseDockBtnGold 2.2s infinite;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.25), rgba(35, 27, 18, 0.96));
  border-color: #ffaa00;
  color: #ffcc66;
}

/* Mobilność - na telefonie również podpięty do prawej krawędzi, chowa się i wysuwa po dotknięciu/najechaniu */
@media screen and (max-width: 992px) {
  .quick-access-dock {
    position: fixed;
    right: 0;
    top: 62%;
    bottom: auto;
    --dock-expanded-offset: 18px;
    transform: translate(calc(100% - 48px), -50%);
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 12px 8px;
    border-radius: 18px 0 0 18px;
    width: auto;
    max-width: 86%;
    border-right: none;
  }
  .quick-access-dock.dock-marketplace-mode,
  .quick-access-dock.dock-ranking-mode,
  .quick-access-dock.dock-hunted-mode,
  .quick-access-dock.dock-killers-mode,
  .quick-access-dock.dock-deaths-mode,
  .quick-access-dock.dock-exp-mode {
    display: none !important;
  }
  .quick-access-dock:hover {
    transform: translate(calc(100% - 48px), -50%);
  }
  .quick-access-dock.dock-expanded,
  .quick-access-dock.dock-expanded:hover {
    transform: translate(var(--dock-expanded-offset), -50%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.95), -2px 0 25px rgba(201, 168, 76, 0.5);
  }
  .quick-access-dock.dock-forced-closed {
    transform: translate(calc(100% - 48px), -50%) !important;
  }
  .quick-access-dock.dock-ranking-mode {
    transform: translate(calc(100% - 42px), -50%);
  }
  .quick-access-dock.dock-ranking-mode.dock-expanded,
  .quick-access-dock.dock-ranking-mode.dock-expanded:hover {
    transform: translate(calc(100% - 58px), -50%);
  }
  .quick-access-dock.dock-ranking-mode.dock-forced-closed {
    transform: translate(calc(100% - 42px), -50%) !important;
  }
  .dock-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 10px;
    border-radius: 12px;
  }
  .dock-icon {
    font-size: 1.22rem;
    width: 26px;
    min-width: 26px;
  }
}

@media screen and (max-width: 480px) {
  .quick-access-dock {
    --dock-expanded-offset: 14px;
    transform: translate(calc(100% - 44px), -50%);
    padding: 10px 10px 10px 6px;
    gap: 8px;
  }
  .quick-access-dock.dock-marketplace-mode,
  .quick-access-dock.dock-ranking-mode,
  .quick-access-dock.dock-hunted-mode,
  .quick-access-dock.dock-killers-mode,
  .quick-access-dock.dock-deaths-mode,
  .quick-access-dock.dock-exp-mode {
    display: none !important;
  }
  .quick-access-dock:hover {
    transform: translate(calc(100% - 44px), -50%);
  }
  .quick-access-dock.dock-expanded,
  .quick-access-dock.dock-expanded:hover {
    transform: translate(var(--dock-expanded-offset), -50%);
  }
  .quick-access-dock.dock-forced-closed {
    transform: translate(calc(100% - 44px), -50%) !important;
  }
  .quick-access-dock.dock-ranking-mode {
    transform: translate(calc(100% - 40px), -50%);
  }
  .quick-access-dock.dock-ranking-mode.dock-expanded,
  .quick-access-dock.dock-ranking-mode.dock-expanded:hover {
    transform: translate(calc(100% - 54px), -50%);
  }
  .quick-access-dock.dock-ranking-mode.dock-forced-closed {
    transform: translate(calc(100% - 40px), -50%) !important;
  }
  .dock-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
    gap: 8px;
  }
  .dock-icon {
    font-size: 1.15rem;
    width: 24px;
    min-width: 24px;
  }
  .guild-alert-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }
  .guild-alert-banner-close {
    width: 100%;
  }
  .guild-alert-overlay-card {
    padding: 1rem;
  }
}

/* ===== 11. Mobilne widoki tabeli (Karty RPG, Zwarta Lista, Akordeony) ===== */
@media (min-width: 769px) {
  .mobile-layout-switcher-box,
  .mobile-only,
  tr.mobile-accordion-details-row,
  td.mobile-accordion-toggle-td,
  .exp-highlights-more-btn {
    display: none !important;
  }
}

.mobile-lvl-label {
  display: none;
}

@media (max-width: 768px) {
  /* Opcja C — Ciekawostki zwijane do akordeonu na mobile */
  .exp-highlights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.6rem;
  }
  .exp-highlights-header h3 {
    margin: 0 !important;
  }
  .exp-highlights-toggle-btn {
    background: rgba(201,168,76,0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: bold;
  }
  .exp-highlights-card.is-expanded .exp-highlights-toggle-btn {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #ccc;
  }
  .mobile-highlight-collapsed {
    display: none;
  }
  .exp-highlights-card.is-expanded .mobile-highlight-collapsed {
    display: list-item !important;
    animation: fadeIn 0.3s ease;
  }
  .exp-highlights-card.is-expanded .exp-highlights-more-btn {
    display: none !important;
  }
  .exp-highlights-more-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.25));
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  /* Statystyki profesji na mobile (zwijane do akordeonu) */
  .exp-vocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .exp-vocation-header h3 {
    margin: 0 !important;
  }
  .exp-vocation-toggle-btn {
    background: rgba(201,168,76,0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: bold;
  }
  .exp-vocation-stats-card.is-expanded .exp-vocation-toggle-btn {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #ccc;
  }
  .mobile-vocation-collapsed {
    display: none;
  }
  .exp-vocation-stats-card.is-expanded .mobile-vocation-collapsed {
    display: block !important;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
  }

  .exp-highlights-more-btn:active {
    transform: scale(0.98);
    background: var(--gold);
    color: #000;
  }

  /* Opcja D — Rozwijane wiersze / Accordion w tabelach na mobile (zastępuje wszystkie dawne tryby .mobile-mode-* i min-width: 680px) */
  table.latest-deaths-table,
  table.exp-ranking-table,
  table.latest-deaths-all-table,
  table.exp-vocation-table,
  #tab-exp table.latest-deaths-table,
  #tab-exp table.exp-ranking-table,
  #tab-exp table.exp-vocation-table,
  .mobile-mode-cards table.latest-deaths-table,
  .mobile-mode-compact table.latest-deaths-table,
  .mobile-mode-table table.latest-deaths-table,
  #latest-deaths-list table,
  #guild-killers-list-wrap table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    box-sizing: border-box !important;
    touch-action: pan-x pan-y !important;
  }

  .latest-deaths-table-wrap,
  .rpg-card .latest-deaths-table-wrap,
  #tab-exp .latest-deaths-table-wrap,
  #tab-deaths .latest-deaths-table-wrap,
  #guild-killers-list-wrap .latest-deaths-table-wrap,
  #latest-deaths-list .latest-deaths-table-wrap,
  .mobile-mode-cards .latest-deaths-table-wrap,
  .mobile-mode-compact .latest-deaths-table-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    padding-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  table.latest-deaths-table thead,
  table.exp-ranking-table thead,
  table.latest-deaths-all-table thead,
  table.exp-vocation-table thead,
  .mobile-mode-cards table thead,
  .mobile-mode-compact table thead,
  #tab-exp table thead,
  #tab-deaths table thead,
  #guild-killers-list-wrap table thead,
  #latest-deaths-list table thead {
    display: none !important;
  }

  table.latest-deaths-table tbody,
  table.exp-ranking-table tbody,
  table.latest-deaths-all-table tbody,
  table.exp-vocation-table tbody,
  .mobile-mode-cards table tbody,
  .mobile-mode-compact table tbody,
  #tab-exp table tbody,
  #tab-deaths table tbody,
  #guild-killers-list-wrap table tbody,
  #latest-deaths-list table tbody {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  table tr.accordion-main-row,
  .mobile-mode-cards table tr.accordion-main-row,
  .mobile-mode-compact table tr.accordion-main-row,
  .mobile-mode-table table tr.accordion-main-row,
  #tab-exp table tr.accordion-main-row,
  #tab-deaths table tr.accordion-main-row,
  #guild-killers-list-wrap table tr.accordion-main-row,
  #latest-deaths-list table tr.accordion-main-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(25,22,17,0.95), rgba(38,32,22,0.95)) !important;
    border: 1px solid rgba(201,168,76,0.35) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transition: border-color 0.2s, background 0.2s !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
    margin-bottom: 0 !important;
  }

  table tr.accordion-main-row:active,
  .mobile-mode-cards table tr.accordion-main-row:active,
  .mobile-mode-compact table tr.accordion-main-row:active {
    transform: scale(0.99) !important;
  }

  table tr.accordion-main-row.is-expanded,
  .mobile-mode-cards table tr.accordion-main-row.is-expanded,
  .mobile-mode-compact table tr.accordion-main-row.is-expanded,
  #tab-exp table tr.accordion-main-row.is-expanded,
  #tab-deaths table tr.accordion-main-row.is-expanded,
  #guild-killers-list-wrap table tr.accordion-main-row.is-expanded,
  #latest-deaths-list table tr.accordion-main-row.is-expanded {
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, rgba(38,32,22,0.98), rgba(56,46,30,0.98)) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px dashed rgba(201,168,76,0.2) !important;
  }

  table tr.accordion-main-row td,
  .mobile-mode-cards table tr.accordion-main-row td,
  .mobile-mode-compact table tr.accordion-main-row td,
  #tab-exp table tr.accordion-main-row td,
  #tab-deaths table tr.accordion-main-row td,
  #guild-killers-list-wrap table tr.accordion-main-row td,
  #latest-deaths-list table tr.accordion-main-row td {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    order: unset !important;
    width: auto !important;
    min-width: 0 !important;
  }

  table tr.accordion-main-row td.mobile-hide-td,
  .mobile-mode-cards table tr.accordion-main-row td.mobile-hide-td,
  .mobile-mode-compact table tr.accordion-main-row td.mobile-hide-td,
  #tab-exp table tr.accordion-main-row td.mobile-hide-td,
  #tab-deaths table tr.accordion-main-row td.mobile-hide-td,
  #guild-killers-list-wrap table tr.accordion-main-row td.mobile-hide-td,
  #latest-deaths-list table tr.accordion-main-row td.mobile-hide-td {
    display: none !important;
  }

  td.mobile-accordion-toggle-td {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    padding-left: 10px !important;
  }

  .mobile-accordion-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: rgba(201,168,76,0.18) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    transition: all 0.2s !important;
  }

  tr.accordion-main-row.is-expanded .mobile-accordion-btn {
    background: var(--gold) !important;
    color: #000 !important;
    transform: rotate(180deg) !important;
  }

  table tr.mobile-accordion-details-row,
  .mobile-mode-cards table tr.mobile-accordion-details-row,
  .mobile-mode-compact table tr.mobile-accordion-details-row,
  #tab-exp table tr.mobile-accordion-details-row,
  #tab-deaths table tr.mobile-accordion-details-row,
  #guild-killers-list-wrap table tr.mobile-accordion-details-row,
  #latest-deaths-list table tr.mobile-accordion-details-row {
    display: none !important;
  }

  table tr.mobile-accordion-details-row.is-expanded,
  .mobile-mode-cards table tr.mobile-accordion-details-row.is-expanded,
  .mobile-mode-compact table tr.mobile-accordion-details-row.is-expanded,
  #tab-exp table tr.mobile-accordion-details-row.is-expanded,
  #tab-deaths table tr.mobile-accordion-details-row.is-expanded,
  #guild-killers-list-wrap table tr.mobile-accordion-details-row.is-expanded,
  #latest-deaths-list table tr.mobile-accordion-details-row.is-expanded {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    animation: fadeIn 0.25s ease !important;
  }

  table tr.mobile-accordion-details-row td,
  .mobile-mode-cards table tr.mobile-accordion-details-row td,
  .mobile-mode-compact table tr.mobile-accordion-details-row td,
  #tab-exp table tr.mobile-accordion-details-row td,
  #tab-deaths table tr.mobile-accordion-details-row td,
  #guild-killers-list-wrap table tr.mobile-accordion-details-row td,
  #latest-deaths-list table tr.mobile-accordion-details-row td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    order: unset !important;
  }

  .mobile-accordion-details-card {
    background: linear-gradient(135deg, rgba(20,17,13,0.98), rgba(28,23,17,0.98)) !important;
    border: 1px solid rgba(201,168,76,0.35) !important;
    border-top: none !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5) !important;
    margin-top: -6px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }

  .mobile-accordion-detail-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    font-size: 0.9rem !important;
  }

  .mobile-accordion-detail-item:last-child {
    border-bottom: none !important;
    padding-bottom: 2px !important;
  }

  .mobile-accordion-detail-label {
    color: #aaa !important;
  }

  .mobile-accordion-detail-value {
    font-weight: 600 !important;
    color: #fff !important;
    text-align: right !important;
  }

  .mobile-lvl-label {
    display: none !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table thead {
    display: table-header-group !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table tbody {
    display: table-row-group !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table tr.guild-killers-row {
    display: table-row !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: default !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table th,
  #guild-killers-list-wrap table.latest-deaths-table td {
    display: table-cell !important;
    padding: 9px 6px !important;
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-break: break-word !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table th.guild-killers-date-cell,
  #guild-killers-list-wrap table.latest-deaths-table td.guild-killers-date-cell {
    display: none !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table th:nth-child(1),
  #guild-killers-list-wrap table.latest-deaths-table td:nth-child(1),
  #guild-killers-list-wrap table.latest-deaths-table th:nth-child(2),
  #guild-killers-list-wrap table.latest-deaths-table td:nth-child(2) {
    width: 50% !important;
  }

  #guild-killers-list-wrap table.latest-deaths-table a {
    font-size: inherit !important;
    line-height: 1.2 !important;
  }
}

/* Pływający Przycisk Zgłoś Buga / Sugestię (Tylko czysty GIF jako przycisk bez ramki i tła) */
.rpg-feedback-fab {
  position: fixed;
  bottom: 6px;
  right: 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.report-fab-alert {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #ffe27a;
  background: radial-gradient(circle at 35% 30%, #ff5f5f 0%, #b30f0f 58%, #4d0505 100%);
  color: #fff5c9;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px #000, 0 0 7px rgba(255, 226, 122, 0.9);
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.9), 0 0 18px rgba(255, 204, 0, 0.45);
  pointer-events: none;
}

.rpg-feedback-fab.has-report-updates .report-fab-alert {
  display: flex;
  animation: reportFabPulse 1.1s ease-in-out infinite;
}

.rpg-feedback-fab.has-report-updates .fab-bug-gif {
  filter: drop-shadow(-3px 4px 9px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(255, 45, 45, 0.75)) drop-shadow(0 0 9px rgba(255, 224, 130, 0.7));
}

@keyframes reportFabPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

.rpg-feedback-fab:hover {
  transform: translateY(-4px) scale(1.15) rotate(5deg);
}

.rpg-feedback-fab:active {
  transform: scale(0.95);
}

.fab-bug-gif {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  filter: drop-shadow(-3px 4px 9px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 5px rgba(201, 168, 76, 0.36));
  transition: filter 0.3s ease;
}

.rpg-feedback-fab:hover .fab-bug-gif {
  filter: drop-shadow(-4px 6px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(255, 224, 130, 0.65));
}

@media (max-width: 768px) {
  .rpg-feedback-fab {
    right: 0;
    bottom: 0;
  }
  .fab-bug-gif {
    width: 40px;
    height: 40px;
  }
}

.my-reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.my-report-card {
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 8px;
  padding: 0.85rem;
}

.my-report-card.has-fresh-update {
  border-color: rgba(255, 214, 92, 0.9);
  box-shadow: 0 0 18px rgba(255, 214, 92, 0.18), inset 0 0 16px rgba(255, 214, 92, 0.06);
}

.my-report-fresh {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0.1rem 0 0.55rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 214, 92, 0.75);
  border-radius: 999px;
  background: rgba(255, 214, 92, 0.14);
  color: #ffe27a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.my-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.my-report-category,
.my-report-status {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.my-report-category {
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.my-report-status.status-new {
  color: #ffe082;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.15);
}

.my-report-status.status-progress {
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.55);
  background: rgba(0, 210, 255, 0.13);
}

.my-report-status.status-done {
  color: #00ff7f;
  border: 1px solid rgba(0, 255, 127, 0.55);
  background: rgba(0, 255, 127, 0.13);
}

.my-report-status.status-rejected {
  color: #ff7b7b;
  border: 1px solid rgba(255, 92, 92, 0.58);
  background: rgba(255, 47, 47, 0.14);
}

.my-report-text {
  color: var(--text-primary);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.my-report-comment {
  margin-top: 0.7rem;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background: rgba(0, 210, 255, 0.08);
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  color: var(--text-primary);
  line-height: 1.42;
  word-break: break-word;
}

.my-report-comment strong {
  display: block;
  color: #8fd7ff;
  margin-bottom: 0.25rem;
}

.my-report-comment span {
  display: block;
  white-space: pre-wrap;
}

.my-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.my-reports-empty {
  border: 1px dashed rgba(201, 168, 76, 0.3);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}

.my-reports-empty.error {
  border-color: rgba(255, 92, 92, 0.45);
  color: #ff8b8b;
}

@media (max-width: 720px) {
  #admin-marketplace-transactions > div,
  #admin-marketplace-bids > div {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    align-items: flex-start !important;
  }
}

.discord-nickname-sync-list { display: grid; gap: 0.7rem; counter-reset: discord-sync; }
.discord-nickname-sync-row {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr 1.4fr 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
}
.discord-nickname-sync-row > div { min-width: 0; }
.discord-nickname-sync-row small { display: block; color: var(--text-secondary); font-size: 0.72rem; margin-bottom: 0.2rem; }
.discord-nickname-sync-row code { color: #8fd7ff; overflow-wrap: anywhere; }
.discord-nickname-sync-character strong { color: var(--gold); display: block; overflow-wrap: anywhere; }
.discord-nickname-sync-character strong::before { counter-increment: discord-sync; content: counter(discord-sync) ". "; color: #8fd7ff; margin-right: 0.2rem; }
.discord-sync-count { color: #8fd7ff; font-size: 0.85em; }
.discord-nickname-sync-character small { color: var(--text-secondary); }
.discord-nickname-sync-input { width: 100%; margin: 0; min-width: 0; padding: 0.45rem 0.55rem; }
.discord-nickname-sync-status { display: flex; align-items: center; gap: 0.45rem; color: #c9b98b; font-size: 0.82rem; }
.discord-nickname-sync-status.is-ready { color: #00ff7f; }
.discord-nickname-auto-sync-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(143,215,255,0.32);
  border-radius: 8px;
  background: rgba(0,210,255,0.06);
}
.discord-nickname-auto-sync-toggle label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  color: #e8e1d5;
}
.discord-nickname-auto-sync-toggle input { width: 19px; height: 19px; margin-top: 2px; cursor: pointer; }
.discord-nickname-auto-sync-toggle small { display: block; margin-top: 0.25rem; color: var(--text-secondary); }
.discord-nickname-auto-sync-status { color: #8fd7ff; font-weight: bold; white-space: nowrap; }
@media (max-width: 900px) {
  .discord-nickname-sync-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discord-nickname-sync-character { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .discord-nickname-sync-row { grid-template-columns: 1fr; }
  .discord-nickname-sync-character { grid-column: auto; }
}

.discord-pairing-header { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.discord-pairing-header p { margin: 0.4rem 0 0; max-width: 760px; color: var(--text-secondary); }
.discord-pairing-count { color: #c9a7ff; font-size: 0.85em; }
.discord-pairing-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.discord-pairing-actions .action-btn:first-child { border: 1px solid #c9a7ff; color: #c9a7ff; }
.discord-pairing-actions .action-btn:nth-child(2) { border: 1px solid var(--border-gold); color: var(--gold); }
.discord-pairing-list { display: grid; gap: 0.7rem; }
.discord-pairing-row {
  display: grid;
  grid-template-columns: 28px minmax(170px, 0.8fr) minmax(260px, 1.5fr) minmax(150px, 0.6fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201,167,255,0.25);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
}
.discord-pairing-row.is-high { border-color: rgba(0,255,127,0.42); }
.discord-pairing-row.is-medium { border-color: rgba(255,193,77,0.42); }
.discord-pairing-row > * { min-width: 0; }
.discord-pairing-check { width: 19px; height: 19px; cursor: pointer; accent-color: #c9a7ff; }
.discord-pairing-row small { display: block; color: var(--text-secondary); font-size: 0.72rem; margin-bottom: 0.2rem; }
.discord-pairing-portal strong { display: block; color: var(--gold); overflow-wrap: anywhere; }
.discord-pairing-portal span { display: block; margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.8rem; overflow-wrap: anywhere; }
.discord-pairing-select { width: 100%; min-width: 0; margin: 0; padding: 0.5rem 0.6rem; }
.discord-pairing-confidence { color: #9e93af; font-weight: bold; font-size: 0.82rem; }
.is-high .discord-pairing-confidence { color: #00ff7f; }
.is-medium .discord-pairing-confidence { color: #ffc14d; }
.discord-pairing-confidence small { margin-top: 0.2rem; color: inherit; opacity: 0.75; }
.discord-pairing-message, .discord-pairing-empty { padding: 1rem; border: 1px solid rgba(201,167,255,0.25); border-radius: 8px; color: #c9a7ff; background: rgba(70,35,110,0.08); }
.discord-pairing-message { margin-bottom: 1rem; }
@media (max-width: 900px) {
  .discord-pairing-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.4fr); }
  .discord-pairing-confidence { grid-column: 2 / -1; }
}
@media (max-width: 620px) {
  .discord-pairing-actions, .discord-pairing-actions .action-btn { width: 100%; }
  .discord-pairing-row { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .discord-pairing-choice, .discord-pairing-confidence { grid-column: 2; }
}

.discord-campaign-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.discord-campaign-header p { max-width: 780px; margin: 0.4rem 0 0; color: var(--text-secondary); }
.discord-campaign-header > .action-btn { border: 1px solid #ff9fcf; color: #ff9fcf; }
.discord-campaign-message, .discord-campaign-empty { padding: 1rem; border: 1px solid rgba(255,159,207,0.28); border-radius: 8px; background: rgba(255,80,170,0.05); color: #ffb9dc; }
.discord-campaign-message { margin-bottom: 1rem; }
.discord-campaign-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.8rem; }
.discord-campaign-stats > div { padding: 0.85rem 1rem; border-left: 3px solid #ff9fcf; background: rgba(0,0,0,0.24); }
.discord-campaign-stats small { display: block; color: var(--text-secondary); }
.discord-campaign-stats strong { display: block; margin-top: 0.25rem; color: #fff; font-size: 1.35rem; }
.discord-campaign-warning, .discord-campaign-batch-info { margin-bottom: 1rem; padding: 0.75rem 0.9rem; border: 1px solid rgba(255,193,77,0.34); border-radius: 6px; background: rgba(255,193,77,0.06); color: #e7cc8b; line-height: 1.45; }
.discord-campaign-batch-info { border-color: rgba(107,196,255,0.3); background: rgba(107,196,255,0.05); color: #acdfff; }
.discord-campaign-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 0.8rem 1rem; margin-bottom: 1rem; padding: 1rem 0; border-top: 1px solid rgba(201,168,76,0.22); border-bottom: 1px solid rgba(201,168,76,0.22); }
.discord-campaign-editor > div:first-child, .discord-campaign-editor > div:nth-child(2) { grid-column: 1; }
.discord-campaign-editor label { display: block; margin-bottom: 0.35rem; color: var(--gold); font-weight: bold; }
.discord-campaign-editor .rpg-input { width: 100%; margin: 0; }
.discord-campaign-preview { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; padding: 1rem; border-left: 4px solid #5865f2; border-radius: 6px; background: #202225; color: #dcddde; box-shadow: 0 6px 18px rgba(0,0,0,0.24); }
.discord-campaign-preview strong { display: block; color: #fff; font-size: 1.05rem; }
.discord-campaign-preview p { min-height: 74px; margin: 0.8rem 0; line-height: 1.5; }
.discord-campaign-preview span { display: inline-block; padding: 0.45rem 0.65rem; border-radius: 4px; background: #5865f2; color: #fff; font-weight: bold; }
.discord-campaign-editor > button { justify-self: start; border: 1px solid #8fd7ff; color: #8fd7ff; }
.discord-campaign-recipient-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0 0.65rem; }
.discord-campaign-recipient-head > div { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.discord-campaign-recipient-list { max-height: 420px; overflow-y: auto; border-top: 1px solid rgba(201,168,76,0.24); border-bottom: 1px solid rgba(201,168,76,0.24); }
.discord-campaign-recipient-list > label { display: flex; align-items: center; gap: 0.7rem; min-height: 54px; padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; }
.discord-campaign-recipient-list > label:hover { background: rgba(255,159,207,0.05); }
.discord-campaign-recipient-list input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #ff75ba; }
.discord-campaign-recipient-list span, .discord-campaign-result span { min-width: 0; }
.discord-campaign-recipient-list strong, .discord-campaign-result strong { display: block; color: #eee; overflow-wrap: anywhere; }
.discord-campaign-recipient-list small, .discord-campaign-result small { display: block; margin-top: 0.15rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.discord-campaign-start { width: 100%; margin-top: 0.85rem; }
.discord-campaign-status { margin-top: 1.2rem; }
.discord-campaign-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.9rem 0; border-bottom: 1px solid rgba(201,168,76,0.25); }
.discord-campaign-progress-head > div:first-child strong { display: block; color: #ff9fcf; font-size: 1.05rem; }
.discord-campaign-progress-head > div:first-child span { display: block; margin-top: 0.2rem; color: var(--text-secondary); }
.discord-campaign-progress-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.discord-campaign-progress-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; padding: 0.8rem 0; }
.discord-campaign-progress-grid span { padding: 0.65rem; background: rgba(0,0,0,0.22); color: var(--text-secondary); }
.discord-campaign-progress-grid strong { color: #fff; }
.discord-campaign-result-list { max-height: 360px; overflow-y: auto; }
.discord-campaign-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr); gap: 0.8rem; align-items: center; padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.discord-campaign-result > span:last-child { color: #d2c7a3; }
.discord-campaign-result.is-sent > span:last-child { color: #00ff7f; }
.discord-campaign-result.is-failed > span:last-child { color: #ff7d8c; }
.discord-campaign-result.is-skipped_linked > span:last-child { color: #8fd7ff; }
.discord-campaign-result.is-unknown > span:last-child { color: #ffc14d; }
@media (max-width: 820px) {
  .discord-campaign-editor { grid-template-columns: 1fr; }
  .discord-campaign-editor > div:first-child, .discord-campaign-editor > div:nth-child(2), .discord-campaign-preview { grid-column: 1; grid-row: auto; }
  .discord-campaign-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .discord-campaign-stats { grid-template-columns: 1fr; }
  .discord-campaign-recipient-head > div, .discord-campaign-recipient-head .action-btn, .discord-campaign-progress-actions, .discord-campaign-progress-actions .action-btn { width: 100%; }
  .discord-campaign-result { grid-template-columns: 1fr; }
}

.partyzone-teaser-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(0, 229, 255, 0.22);
  border-radius: 5px;
  padding: 0.6rem 1.15rem;
  color: #fff;
  background: #171426;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18), 0 0 18px rgba(255, 0, 170, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partyzone-teaser-btn::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 5px;
  background: conic-gradient(from var(--partyzone-angle), transparent 0 32%, #00e5ff 40%, #ff00aa 50%, transparent 60% 100%);
  animation: partyzoneNeonSweep 3.2s linear infinite;
  will-change: --partyzone-angle;
}
.partyzone-teaser-btn::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 2px;
  border-radius: 3px;
  background: #171426;
}
.partyzone-teaser-btn span { position: relative; z-index: 2; text-shadow: 0 0 7px rgba(0,229,255,0.8), 0 0 10px rgba(255,0,170,0.55); }
.partyzone-teaser-btn:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(0,229,255,0.42), 0 0 25px rgba(255,0,170,0.28); }
@property --partyzone-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes partyzoneNeonSweep { to { --partyzone-angle: 360deg; } }
.partyzone-teaser-emblem { width: 100%; margin: 0 auto 0.8rem; }
.partyzone-console {
  position: relative;
  width: min(220px, 70vw);
  height: 118px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border: 2px solid #8374ff;
  border-radius: 12px;
  background: linear-gradient(145deg, #25203d, #100e1d 72%);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.38), 0 0 25px rgba(255, 0, 170, 0.2), inset 0 0 16px rgba(0, 0, 0, 0.9);
  transform: perspective(280px) rotateX(4deg);
}
.partyzone-console::before { content: ''; position: absolute; inset: -50% 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.16) 48%, transparent 60%); animation: partyzoneConsoleScan 3.8s ease-in-out infinite; pointer-events: none; }
.partyzone-console-top, .partyzone-console-deck, .partyzone-console-controls { position: relative; z-index: 1; display: flex; align-items: center; }
.partyzone-console-top { justify-content: space-between; margin-bottom: 7px; }
.partyzone-console-brand { color: #ffd35a; font: 700 0.63rem/1 'Cinzel', serif; letter-spacing: 1.5px; text-shadow: 0 0 7px rgba(255, 211, 90, 0.65); }
.partyzone-console-lights { display: flex; gap: 4px; }
.partyzone-console-lights i, .partyzone-console-controls i { width: 5px; height: 5px; border-radius: 50%; background: #ff3d8d; box-shadow: 0 0 7px #ff3d8d; animation: partyzoneConsoleBlink 1.25s ease-in-out infinite alternate; }
.partyzone-console-lights i:nth-child(2) { background: #00e5ff; box-shadow: 0 0 7px #00e5ff; animation-delay: 0.35s; }
.partyzone-console-lights i:nth-child(3) { background: #ffe15a; box-shadow: 0 0 7px #ffe15a; animation-delay: 0.7s; }
.partyzone-console-screen { position: relative; z-index: 1; height: 43px; padding: 7px 9px; overflow: hidden; border: 1px solid rgba(0,229,255,0.7); border-radius: 5px; background: #071a1d; box-shadow: inset 0 0 12px rgba(0,229,255,0.22), 0 0 8px rgba(0,229,255,0.25); }
.partyzone-console-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,229,255,0.08) 6px); animation: partyzoneConsoleScanlines 1.8s linear infinite; pointer-events: none; }
.partyzone-console-screen-label { display: block; color: #8affd9; font: 700 0.56rem/1 'Cinzel', serif; letter-spacing: 1px; text-shadow: 0 0 6px #00e5ff; }
.partyzone-console-eq { display: flex; align-items: end; gap: 4px; height: 25px; }
.partyzone-console-eq i { width: 7px; height: 12px; border-radius: 2px 2px 0 0; background: linear-gradient(#ff4eaa, #00e5ff); box-shadow: 0 0 6px rgba(0,229,255,0.7); animation: partyzoneConsoleEqualizer 0.75s ease-in-out infinite alternate; }
.partyzone-console-eq i:nth-child(2) { height: 20px; animation-delay: 0.12s; }
.partyzone-console-eq i:nth-child(3) { height: 15px; animation-delay: 0.24s; }
.partyzone-console-eq i:nth-child(4) { height: 23px; animation-delay: 0.36s; }
.partyzone-console-eq i:nth-child(5) { height: 17px; animation-delay: 0.48s; }
.partyzone-console-eq i:nth-child(6) { height: 11px; animation-delay: 0.6s; }
.partyzone-console-deck { justify-content: space-between; margin-top: 8px; }
.partyzone-console-disc { width: 27px; height: 27px; border: 2px solid #00e5ff; border-radius: 50%; background: repeating-radial-gradient(circle, #17152b 0 3px, #403d70 4px 5px); box-shadow: 0 0 7px rgba(0,229,255,0.65); animation: partyzoneConsoleSpin 2.4s linear infinite; }
.partyzone-console-disc.right { border-color: #ff4eaa; box-shadow: 0 0 7px rgba(255,0,170,0.65); animation-direction: reverse; animation-delay: -0.7s; }
.partyzone-console-fader { width: 46px; height: 3px; border-radius: 3px; background: #625b98; box-shadow: 0 0 5px rgba(0,229,255,0.5); }
.partyzone-console-controls { justify-content: center; gap: 7px; margin-top: 7px; }
.partyzone-console-controls i { width: 4px; height: 4px; background: #00e5ff; box-shadow: 0 0 6px #00e5ff; animation-delay: 0.2s; }
@keyframes partyzoneConsoleEqualizer { to { transform: scaleY(0.35); opacity: 0.65; } }
@keyframes partyzoneConsoleSpin { to { transform: rotate(360deg); } }
@keyframes partyzoneConsoleScan { 0%, 100% { transform: translateX(-65%); } 50% { transform: translateX(65%); } }
@keyframes partyzoneConsoleScanlines { to { transform: translateY(6px); } }
@keyframes partyzoneConsoleBlink { to { opacity: 0.28; } }
@media (prefers-reduced-motion: reduce) { .partyzone-console::before, .partyzone-console-lights i, .partyzone-console-controls i, .partyzone-console-screen::after, .partyzone-console-eq i, .partyzone-console-disc { animation: none; } }
.partyzone-stage {
  position: relative;
  width: 100%;
  max-width: 455px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35), 0 0 24px rgba(255, 0, 170, 0.2);
  transform: translateZ(0);
}
.partyzone-stage-base { display: block; width: 100%; height: auto; }
.partyzone-stage-base { transition: filter 0.35s ease, transform 0.35s ease; }
.partyzone-stage:hover .partyzone-stage-base { filter: brightness(1.08) saturate(1.12); transform: scale(1.01); }
.partyzone-teaser-modal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem 0.7rem 1.25rem;
  border: 2px solid rgba(0, 229, 255, 0.58) !important;
}
.partyzone-teaser-modal::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 8px;
  background: conic-gradient(from var(--partyzone-modal-angle), transparent 0 32%, #00e5ff 40%, #ff00aa 50%, transparent 60% 100%);
  animation: partyzoneModalSweep 3.2s linear infinite;
  will-change: --partyzone-modal-angle;
}
.partyzone-teaser-modal::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 3px;
  border-radius: 6px;
  background: #1d1610;
}
.partyzone-teaser-modal > h3,
.partyzone-teaser-modal > p,
.partyzone-teaser-modal > button,
.partyzone-teaser-modal > .partyzone-teaser-emblem { position: relative; z-index: 2; }
.partyzone-teaser-modal > .close-modal { position: absolute; z-index: 3; }
@property --partyzone-modal-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes partyzoneModalSweep { to { --partyzone-modal-angle: 360deg; } }
.partyzone-teaser-modal h3 { color: #fff; text-shadow: 0 0 10px #00e5ff, 0 0 14px rgba(255,0,170,0.7); margin-bottom: 0.7rem; }
.partyzone-teaser-modal p { color: #c8c3d8; line-height: 1.6; margin-bottom: 1.2rem; }
.partyzone-close-btn {
  position: relative;
  overflow: hidden;
  border-color: #00e5ff !important;
  color: #f8fbff !important;
  text-shadow: 0 0 7px rgba(0,229,255,0.8), 0 0 10px rgba(255,0,170,0.5);
  box-shadow: 0 0 8px rgba(0,229,255,0.35), inset 0 0 8px rgba(255,0,170,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.partyzone-close-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(0,229,255,0.75) 48%, rgba(255,0,170,0.8) 55%, transparent 68%);
  transform: translateX(-115%);
  animation: partyzoneCloseSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.partyzone-close-btn:hover { transform: translateY(-2px) scale(1.02); border-color: #ff4eaa !important; box-shadow: 0 0 14px rgba(0,229,255,0.65), 0 0 18px rgba(255,0,170,0.35); }
.partyzone-close-btn:active { transform: translateY(0) scale(0.97); }
.partyzone-close-btn { isolation: isolate; }
.partyzone-close-btn::after { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: inherit; background: rgba(24,18,13,0.72); }
.partyzone-close-btn { z-index: 2; }
@keyframes partyzoneCloseSweep { 0%, 28% { transform: translateX(-115%); } 72%, 100% { transform: translateX(115%); } }
@media (max-width: 620px) {
  .partyzone-teaser-btn { padding: 0.55rem 0.75rem; font-size: 0.72rem; letter-spacing: 0.45px; }
}
/* Guild Highscores */
.guild-highscores-header { align-items: flex-end; gap: 1rem; }
.guild-highscores-updated { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; }
.guild-highscores-tabs { display: flex; gap: 0.45rem; max-width: 1080px; margin: 0 auto 1rem; padding: 0.45rem; overflow-x: auto; border: 1px solid rgba(201,168,76,0.32); background: rgba(10,8,6,0.72); scrollbar-width: thin; }
.guild-highscores-tab { flex: 1 0 auto; min-height: 42px; padding: 0.55rem 0.8rem; border: 1px solid transparent; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.guild-highscores-tab:hover, .guild-highscores-tab.active { border-color: rgba(201,168,76,0.7); color: var(--gold); background: rgba(201,168,76,0.12); }
.guild-highscores-table-wrap { max-width: 1080px; margin: 0 auto; overflow-x: auto; border: 1px solid rgba(201,168,76,0.42); background: rgba(20,16,11,0.88); box-shadow: 0 14px 35px rgba(0,0,0,0.28); }
.guild-highscores-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.guild-highscores-table th, .guild-highscores-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; white-space: nowrap; }
.guild-highscores-table th { color: var(--gold); background: rgba(8,6,4,0.72); font-size: 0.82rem; }
.guild-highscores-table tbody tr:hover { background: rgba(201,168,76,0.07); }
.guild-highscores-table tr.is-top-1 { background: rgba(225,188,58,0.09); }
.guild-highscores-table tr.is-top-2 { background: rgba(186,196,211,0.055); }
.guild-highscores-table tr.is-top-3 { background: rgba(179,104,54,0.055); }
.guild-highscores-rank { width: 54px; color: var(--gold); font-weight: 800; }
.guild-highscores-global { width: 108px; }
.guild-highscores-name { color: #f5e7c4; font-weight: 750; }
.guild-highscores-name:hover { color: var(--gold); }
.guild-highscores-level { color: #d9d1c2; }
.guild-highscores-value { color: #ffd65e; font-size: 1.05rem; font-weight: 800; }
.guild-highscores-global { color: #8fd7ff; font-weight: 700; }
.guild-highscores-empty { min-height: 170px; display: grid; place-items: center; padding: 1.5rem; color: var(--text-secondary); text-align: center; }
.guild-highscores-empty.is-error { color: #ff9292; }
.guild-highscores-cms-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 220px)); gap: 0.8rem; }
.guild-highscores-cms-grid label span { display: block; margin-bottom: 0.35rem; color: var(--gold); font-size: 0.84rem; font-weight: 700; }
.guild-highscores-cms-grid .rpg-input { margin: 0; }

/* Wars */
.wars-section-header {
  align-items: flex-end;
  gap: 1rem;
}

.wars-section-header > div:first-child {
  min-width: 0;
}

.wars-management-actions,
.wars-add-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.wars-summary {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(201, 168, 76, 0.28);
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}

.wars-summary strong,
.wars-summary-online {
  color: var(--gold);
}

.wars-summary-warning {
  color: #ffb078;
}

.wars-guilds-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 860px));
  justify-content: center;
  gap: 1rem;
}

.wars-guild-card {
  overflow: hidden;
  background: rgba(24, 19, 13, 0.86);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.wars-guild-card.is-missing {
  border-color: rgba(255, 95, 95, 0.65);
}

.wars-guild-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.wars-guild-header h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 1.15rem;
}

.wars-guild-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.wars-guild-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.wars-online-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #7cf4a3;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.wars-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #23e878;
  box-shadow: 0 0 5px #23e878, 0 0 11px rgba(35, 232, 120, 0.75);
}

.wars-delete-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 95, 95, 0.6);
  border-radius: 4px;
  background: rgba(110, 20, 20, 0.32);
  color: #ff8585;
  font: 700 1.2rem/1 sans-serif;
  cursor: pointer;
}

.wars-delete-btn:hover {
  background: rgba(160, 25, 25, 0.55);
  color: #fff;
}

.wars-player-list {
  display: grid;
}

.wars-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.wars-player-row:last-child {
  border-bottom: 0;
}

.wars-player-row.is-leader {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.12), transparent 58%);
}

.wars-player-row.is-vice-leader {
  background: linear-gradient(90deg, rgba(176, 132, 54, 0.075), transparent 52%);
}

.wars-player-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.wars-character-link {
  overflow: hidden;
  color: #f3e6c2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wars-character-link:hover {
  color: var(--gold);
}

.wars-rank-icon {
  flex: 0 0 auto;
  width: 1.2rem;
  text-align: center;
  filter: drop-shadow(0 0 5px rgba(222, 184, 78, 0.42));
}

.wars-rank-icon-image {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.wars-player-row.is-leader .wars-character-link {
  color: #ffd968;
  text-shadow: 0 0 9px rgba(255, 202, 61, 0.28);
}

.wars-player-row.is-vice-leader .wars-character-link {
  color: #d8ad58;
}

.wars-player-vocation,
.wars-player-level {
  padding: 0.24rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.78rem;
}

.wars-player-vocation {
  font-weight: 700;
}

.wars-player-vocation.is-knight {
  color: #8bd5ff;
  border: 1px solid rgba(69, 172, 232, 0.58);
  background: rgba(16, 87, 128, 0.38);
}

.wars-player-vocation.is-paladin {
  color: #ffd86b;
  border: 1px solid rgba(222, 174, 47, 0.62);
  background: rgba(115, 80, 8, 0.38);
}

.wars-player-vocation.is-sorcerer {
  color: #ff8a92;
  border: 1px solid rgba(232, 69, 82, 0.6);
  background: rgba(124, 20, 30, 0.38);
}

.wars-player-vocation.is-druid {
  color: #7ef0a8;
  border: 1px solid rgba(47, 205, 106, 0.58);
  background: rgba(12, 102, 48, 0.36);
}

.wars-player-vocation.is-unknown {
  color: #d5d5d5;
  border: 1px solid rgba(190, 190, 190, 0.36);
  background: rgba(100, 100, 100, 0.2);
}

.wars-player-level {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.wars-empty,
.wars-no-online,
.wars-guild-error {
  padding: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
}

.wars-discord-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.8rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(35, 232, 120, 0.28);
  color: #75f3a9;
  background: rgba(35, 232, 120, 0.06);
  font-size: 0.82rem;
}

.wars-discord-state.is-error {
  border-color: rgba(255, 107, 122, 0.38);
  color: #ff8995;
  background: rgba(255, 107, 122, 0.07);
}

.wars-discord-repair-btn {
  border: 1px solid currentColor;
  color: inherit;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font: inherit;
}

.wars-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45rem;
  min-height: 130px;
  place-content: center;
  border: 1px dashed rgba(201, 168, 76, 0.38);
  border-radius: 8px;
}

.wars-empty strong {
  color: var(--gold);
}

.wars-empty.is-error,
.wars-guild-error {
  color: #ff9292;
}

.wars-guild-error {
  border-bottom: 1px solid rgba(255, 95, 95, 0.2);
  background: rgba(130, 20, 20, 0.12);
}

.wars-add-modal label {
  display: block;
  margin: 1rem 0 0.45rem;
  color: var(--gold);
  font-weight: 700;
}

.wars-add-actions {
  margin-top: 1.2rem;
}

@media (max-width: 600px) {
  .guild-highscores-header { align-items: flex-start; }
  .guild-highscores-header > * { flex: 1 1 100%; }
  .guild-highscores-updated { white-space: normal; }
  .guild-highscores-tabs { margin-inline: -0.2rem; }
  .guild-highscores-table th, .guild-highscores-table td { padding: 0.7rem 0.72rem; }
  .guild-highscores-global { width: 88px; }
  .guild-highscores-cms-grid { grid-template-columns: 1fr; }

  .wars-section-header {
    align-items: stretch;
  }

  .wars-management-actions {
    justify-content: stretch;
  }

  .wars-management-actions .action-btn {
    flex: 1 1 145px;
  }

  .wars-summary {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .wars-summary > span {
    flex: 1 1 100%;
  }

  .wars-guild-header {
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .wars-player-row {
    gap: 0.4rem;
    padding: 0.65rem 0.8rem;
  }

  .wars-player-vocation,
  .wars-player-level {
    padding-inline: 0.35rem;
  }
}

/* ==========================================
   ⚔️ MINIBIA LIVE MARKET (TARG LIVE) STYLES
   ========================================== */
.market-live-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .market-live-layout {
    grid-template-columns: 1fr;
  }
}

.market-feed-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.market-search-wrap {
  width: 100%;
}

.market-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.market-filter-chip {
  background: rgba(20, 25, 35, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--text-secondary, #aaa);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-filter-chip:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold, #c9a84c);
  border-color: var(--gold, #c9a84c);
}

.market-filter-chip.active {
  background: var(--gold, #c9a84c);
  color: #000;
  border-color: var(--gold, #c9a84c);
  font-weight: bold;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

.market-filter-chip.chip-deal.active {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.market-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.market-tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8892b0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-tag-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold, #c9a84c);
  border-color: var(--gold, #c9a84c);
}

.market-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-offer-card {
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  animation: slideDownMarket 0.25s ease;
}

@keyframes slideDownMarket {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.market-offer-card:hover {
  background: rgba(26, 32, 46, 0.98);
  border-color: var(--gold, #c9a84c);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.market-offer-card.deal-card {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(18, 22, 32, 0.95) 100%);
}

.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.market-player-name {
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.market-type-badge {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.market-type-badge.badge-sell {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.market-type-badge.badge-buy {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.market-type-badge.badge-trade {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.market-deal-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.market-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-card-time {
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  font-variant-numeric: tabular-nums;
}

.market-pm-btn {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
  font-size: 0.78rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-pm-btn:hover {
  background: var(--gold, #c9a84c);
  color: #000;
}

.market-card-message {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.35;
  word-break: break-word;
}

.market-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.market-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.market-item-name {
  color: #f1f5f9;
  font-weight: 500;
}

.market-item-price {
  color: #facc15;
  font-weight: bold;
}

.market-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(10, 14, 22, 0.6);
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.market-price-row:hover {
  background: rgba(201, 168, 76, 0.15);
}

.market-price-item-name {
  font-weight: 600;
  color: #e2e8f0;
}

.market-price-item-vals {
  display: flex;
  gap: 8px;
  font-weight: bold;
}

.price-val-sell {
  color: #22c55e;
}

.price-val-buy {
  color: #38bdf8;
}

.market-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(18, 22, 32, 0.6);
  border: 1px dashed rgba(201, 168, 76, 0.25);
  border-radius: 8px;
}

/* 🎯 Market Sniper Rules UI & Matching */
.market-sniper-card {
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(14, 24, 18, 0.85);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.market-sniper-card:hover {
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.market-sniper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.market-sniper-count {
  font-size: 0.72rem;
  background: #22c55e;
  color: #000;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 10px;
}

.market-sniper-toggle-btn {
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 500;
}

.market-sniper-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .market-sniper-form {
    grid-template-columns: 1fr;
  }
}

.market-sniper-rules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.market-sniper-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 30, 18, 0.9);
  border: 1px solid #22c55e;
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.market-sniper-chip.disabled {
  background: rgba(30, 35, 45, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: #888;
  opacity: 0.65;
}

.sniper-chip-status {
  cursor: pointer;
  font-weight: bold;
  color: #22c55e;
}

.market-sniper-chip.disabled .sniper-chip-status {
  color: #888;
}

.sniper-chip-label {
  cursor: pointer;
}

.sniper-chip-delete {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.sniper-chip-delete:hover {
  color: #ff3333;
}

.market-filter-chip.chip-sniper.active {
  background: #22c55e;
  border-color: #22c55e;
  color: #000;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

.market-offer-card.sniper-matched {
  border: 2px solid #22c55e !important;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12) 0%, rgba(18, 22, 32, 0.95) 100%) !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
  animation: pulseSniperCard 1.5s infinite alternate;
}

@keyframes pulseSniperCard {
  from { box-shadow: 0 0 8px rgba(34, 197, 94, 0.2); }
  to { box-shadow: 0 0 18px rgba(34, 197, 94, 0.5); }
}

.market-sniper-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Styl dla filtrów i ofert członków gildii CYRK */
.market-filter-chip.chip-guild {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.market-filter-chip.chip-guild:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
}

.market-filter-chip.chip-guild.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.market-offer-card.guild-member-card {
  border: 1px solid #f59e0b !important;
  border-left: 5px solid #fbbf24 !important;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(49, 16, 75, 0.7) 40%, rgba(20, 12, 32, 0.96) 100%) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.28), inset 0 0 25px rgba(245, 158, 11, 0.08) !important;
  position: relative;
}

.market-offer-card.guild-member-card:hover {
  border-color: #fbbf24 !important;
  border-left-color: #fef08a !important;
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.42), inset 0 0 30px rgba(245, 158, 11, 0.12) !important;
  background: linear-gradient(135deg, rgba(108, 38, 165, 0.55) 0%, rgba(60, 20, 95, 0.8) 40%, rgba(25, 15, 40, 0.98) 100%) !important;
}

.market-offer-card.guild-member-card .market-card-message {
  color: #fef08a !important;
  font-weight: 500;
}

.market-guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
  color: #000 !important;
  border: 1px solid #fde047 !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
  text-shadow: none !important;
}

.market-player-name.guild-member-name {
  color: #ffd700 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.market-feed-status {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.market-feed-status.status-live {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
  animation: pulseLiveFeed 2s infinite alternate ease-in-out;
}

@keyframes pulseLiveFeed {
  from { box-shadow: 0 0 4px rgba(34, 197, 94, 0.2); }
  to { box-shadow: 0 0 14px rgba(34, 197, 94, 0.6); }
}

.market-feed-status.status-offline {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Pasek wyboru typu ofert (Wszystkie / Sprzedam / Kupię) */
.market-type-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(15, 20, 30, 0.75);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.market-type-segmented-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 14, 22, 0.85);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.market-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.market-type-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.market-type-btn.active {
  color: #fff;
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.market-type-btn.btn-sell.active {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.market-type-btn.btn-buy.active {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.market-type-btn .type-count {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: normal;
}

.market-active-query-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.82rem;
}

.market-active-query-pill .query-clear-btn {
  background: transparent;
  border: none;
  color: #fbbf24;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.market-active-query-pill .query-clear-btn:hover {
  opacity: 1;
}





/* Ikonki sprite'ów przedmiotów na Targu Live */
.market-item-sprite {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
  margin-right: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.market-item-tag {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.market-item-tag:hover {
  background: rgba(201, 168, 76, 0.25) !important;
  border-color: var(--gold) !important;
  transform: translateY(-1px);
}

.market-price-item-name {
  display: inline-flex;
  align-items: center;
}
