*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: #1a1a1a;
}

/* Background images */
.bg {
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.08);
  z-index: 0;
}

.bg-desktop {
  display: none;
  background-image: url("assets/bg-desktop.png");
}

.bg-mobile {
  display: block;
  background-image: url("assets/bg-mobile.png");
}

@media (min-width: 768px) {
  .bg-desktop {
    display: block;
  }

  .bg-mobile {
    display: none;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Cookie popup */
.popup {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: popupIn 0.35s ease-out;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.popup-close:hover {
  background: #f0f0f0;
  color: #333;
}

.popup-icon {
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
}

.popup h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.popup-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 24px;
}

.popup-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-reject {
  background: #f2f2f2;
  color: #333;
}

.btn-reject:hover {
  background: #e5e5e5;
}

.btn-accept {
  background: #1a1a1a;
  color: #fff;
}

.btn-accept:hover {
  background: #333;
}

.popup-legal {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.4;
}

.popup-legal a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.popup-legal a:hover {
  color: #1a1a1a;
}
