.nevera-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 191, 206, 0.14), transparent 50%),
    var(--cream, #f7f5fb);
  min-height: 100vh;
  overflow-x: hidden;
}
.nevera-header .wrap {
  gap: 10px;
  min-height: 64px;
}
.nevera-nav {
  justify-content: flex-end;
  flex: 0 1 auto;
}
.nevera-main { padding-bottom: clamp(24px, 5vw, 48px); }
.nevera-intro {
  padding: clamp(16px, 4vw, 28px) 0 12px;
  text-align: center;
}
.nevera-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
}
.nevera-intro .lead {
  margin: 0 auto 10px;
  max-width: 36rem;
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  padding: 0 4px;
}
.nevera-hint {
  font-size: clamp(0.8rem, 2.4vw, 0.9rem);
  color: var(--muted, #6b6580);
  margin: 0;
  line-height: 1.45;
  padding: 0 6px;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary, #3d3185);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fridge-wrap {
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 8px clamp(12px, 4vw, 20px) 24px;
  box-sizing: border-box;
}
.fridge-stage {
  position: relative;
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0 auto;
  border-radius: clamp(16px, 4vw, 24px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, #2a2440 0%, #1a1528 100%);
  box-shadow: 0 24px 60px rgba(61, 49, 133, 0.22);
  border: 1px solid rgba(61, 49, 133, 0.14);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: clamp(12px, 3.5vw, 20px) clamp(14px, 5vw, 28px) clamp(16px, 4vw, 28px);
}
.fridge-bg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}
.fridge-surface {
  position: absolute;
  left: 11%;
  right: 9%;
  top: 5%;
  bottom: 7%;
  z-index: 2;
}

.magnet {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  max-width: min(22vw, 96px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: filter 0.15s ease;
  z-index: 3;
  appearance: none;
  -webkit-appearance: none;
}
.magnet:active,
.magnet.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
  z-index: 40;
}
.magnet img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  background: transparent !important;
}
.magnet.is-dragging img {
  outline: 2px solid rgba(125, 191, 206, 0.85);
  outline-offset: 2px;
}

.nevera-cta {
  text-align: center;
  padding: 12px clamp(12px, 4vw, 20px) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.nevera-cta p {
  width: 100%;
  margin: 0 0 4px;
  color: var(--muted, #6b6580);
  font-size: clamp(0.9rem, 2.6vw, 1rem);
}
.nevera-cta .btn {
  width: auto;
  max-width: 100%;
}

.magnet-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.magnet-lightbox[hidden] {
  display: none !important;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(20, 16, 36, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(92vw, 720px);
  max-height: min(90vh, 90dvh);
  padding: 44px 8px 12px;
  box-sizing: border-box;
  pointer-events: auto;
}
.magnet-lightbox img {
  max-width: 100%;
  max-height: min(70vh, 72dvh);
  width: auto;
  height: auto;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  margin: 0;
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  text-align: center;
  padding: 0 8px;
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

.nevera-footer { padding: 24px 0; }
.nevera-footer .legal {
  border: 0;
  padding: 0 12px;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 0.8rem;
}

body.lightbox-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Tablet */
@media (max-width: 900px) {
  .nevera-nav { display: none; }
  .nevera-header .header-cta { display: none; }
  .nevera-header .wa-mobile { display: inline-flex; }
}

/* Phone */
@media (max-width: 640px) {
  .nevera-header .brand small { display: none; }
  .nevera-header .brand-logo {
    height: 42px;
    max-width: 90px;
    padding: 3px 5px;
  }
  .fridge-stage {
    max-width: min(100%, 360px);
  }
  .magnet {
    width: 22%;
    max-width: min(24vw, 88px);
  }
  .nevera-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .nevera-hint { font-size: 0.78rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .fridge-stage { padding: 10px 12px 14px; }
  .magnet { width: 34%; max-width: 88px; }
  .fridge-surface {
    left: 10%;
    right: 8%;
    top: 4%;
    bottom: 6%;
  }
}

/* Landscape phones: keep fridge usable */
@media (max-height: 500px) and (orientation: landscape) {
  .nevera-intro { padding-top: 8px; padding-bottom: 4px; }
  .nevera-intro .lead,
  .nevera-hint { display: none; }
  .fridge-wrap { max-width: min(280px, 46vh); padding-bottom: 12px; }
  .fridge-stage { max-width: 100%; }
  .nevera-cta { padding-top: 4px; padding-bottom: 16px; }
}
