/* EloGamers Prezent — floating gift + Mikołajki modal */
:root {
  --egp-accent: #da3633;
  --egp-accent-soft: rgba(218, 54, 51, .22);
  --egp-bg: #100e0f;
  --egp-panel: #171415;
  --egp-line: rgba(255, 255, 255, .09);
  --egp-muted: #a7a2a4;
  --egp-text: #eee;
}

.eg-prezent-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
  animation: egp-bob 2.8s ease-in-out infinite;
}
.eg-prezent-fab:hover { transform: scale(1.06); animation-play-state: paused; }
.eg-prezent-fab:focus-visible { outline: 2px solid var(--egp-accent); outline-offset: 4px; border-radius: 8px; }
.eg-prezent-fab.is-hidden { display: none !important; }
.eg-prezent-fab__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@keyframes egp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.eg-prezent-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--egp-accent);
  color: #fff;
  font: 800 10px/18px system-ui, sans-serif;
  box-shadow: 0 0 0 2px #100e0f;
}

/* Modal */
.eg-prezent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 6, 7, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.eg-prezent-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.eg-prezent-modal {
  width: min(560px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--egp-line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(218, 54, 51, .16), transparent 55%),
    linear-gradient(180deg, #1b1618 0%, var(--egp-panel) 40%, #120f10 100%);
  color: var(--egp-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}
.eg-prezent-overlay.is-open .eg-prezent-modal {
  transform: none;
}
.eg-prezent-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--egp-line);
  border-left: 4px solid var(--egp-accent);
}
.eg-prezent-modal__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}
.eg-prezent-modal__close {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--egp-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  color: var(--egp-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.eg-prezent-modal__close:hover {
  border-color: var(--egp-accent);
  color: #fff;
}
.eg-prezent-modal__body {
  padding: 16px;
}
.eg-prezent-santa-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}
.eg-prezent-santa {
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}
.eg-prezent-bubble {
  position: relative;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--egp-line);
  background: rgba(255, 255, 255, .04);
  color: #e8e4e5;
  font-size: 14px;
  line-height: 1.45;
  min-height: 52px;
}
.eg-prezent-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--egp-line);
  border-bottom: 1px solid var(--egp-line);
  background: #1a1517;
  transform: rotate(45deg);
}
.eg-prezent-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.eg-prezent-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--egp-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.eg-prezent-tile:hover {
  border-color: var(--egp-accent);
  background: var(--egp-accent-soft);
  transform: translateY(-1px);
}
.eg-prezent-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.eg-prezent-tile--server {
  justify-content: flex-start;
  text-align: left;
}
.eg-prezent-tile--server span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.eg-prezent-tile--server small {
  font-size: 11px;
  font-weight: 700;
  color: var(--egp-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.eg-prezent-summary {
  margin-top: 12px;
  border: 1px solid var(--egp-line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, .22);
}
.eg-prezent-summary > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--egp-line);
  font-size: 13px;
}
.eg-prezent-summary > div:last-child { border-bottom: 0; }
.eg-prezent-summary span { color: var(--egp-muted); font-weight: 700; }
.eg-prezent-summary strong { color: #fff; font-weight: 800; }
.eg-prezent-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eg-prezent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--egp-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.eg-prezent-btn:hover { filter: brightness(1.08); }
.eg-prezent-btn:disabled {
  opacity: .55;
  cursor: wait;
}
.eg-prezent-btn--ghost {
  background: transparent;
  border: 1px solid var(--egp-line);
  color: var(--egp-muted) !important;
}
.eg-prezent-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--egp-muted);
}
.eg-prezent-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(218, 54, 51, .35);
  background: rgba(218, 54, 51, .12);
  color: #ffb4b2;
  font-size: 13px;
}

@media (max-width: 560px) {
  .eg-prezent-santa-row {
    grid-template-columns: 88px 1fr;
  }
  .eg-prezent-santa { width: 88px; }
  .eg-prezent-tiles { grid-template-columns: 1fr; }
  .eg-prezent-fab { right: 12px; bottom: 12px; width: 64px; height: 64px; }
  .eg-prezent-fab__img { width: 64px; height: 64px; }
}
