/* ═══════════════════════════════════════════════
   magic-hp.css — Pokój Życzeń · Klimat HP (v6)
   Sowa · Mapa Huncwotów · Cookie · Intro
   (świece usunięte)
   ═══════════════════════════════════════════════ */

.hp-dust-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  mix-blend-mode: screen;
  opacity: .8;
}

/* ─────────────────────────────────────────────
   SOWA — pre-stacked klatki PNG, klikalna
───────────────────────────────────────────── */
.hp-owl {
  position: absolute;
  top: 0; left: 0;
  width: 140px;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.55));
  will-change: transform;
  z-index: 9500;
  transition: filter .2s ease;
  -webkit-tap-highlight-color: rgba(255,200,120,.35);
}
.hp-owl:hover, .hp-owl:focus-visible {
  filter: drop-shadow(0 8px 18px rgba(255,200,120,.55)) drop-shadow(0 0 22px rgba(255,180,80,.45));
  outline: none;
}
.hp-owl img { width: 100%; height: auto; -webkit-user-drag: none; }
@media (max-width: 820px) { .hp-owl { width: 96px; } }
/* Ukryj sowę na mobile */
@media (max-width: 768px) { .hp-owl { display: none !important; } }

/* ─── LIST OD SOWY ─── */
.hp-letter-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 4, 2, .72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.hp-letter-backdrop.is-open { opacity: 1; pointer-events: auto; }
.hp-letter {
  position: relative;
  max-width: 520px; width: calc(100% - 40px);
  padding: 56px 44px 36px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120, 70, 20, .18), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(80, 40, 10, .22), transparent 60%),
    linear-gradient(160deg, #f3e0b8 0%, #e6cb91 50%, #d4b173 100%);
  border: 1px solid rgba(90, 55, 20, .35);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 60px rgba(120, 70, 20, .2), inset 0 0 0 1px rgba(255, 240, 200, .25);
  color: #2a1a08;
  font-family: 'Almendra', 'Georgia', serif;
  text-align: center;
  transform: scale(.92) rotate(-1deg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hp-letter-backdrop.is-open .hp-letter { transform: scale(1) rotate(0); }
.hp-letter-seal {
  position: absolute; left: 50%; top: -32px;
  width: 64px; height: 64px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b32a1f, #6b0f08 70%);
  box-shadow: 0 6px 16px rgba(0,0,0,.55), inset -4px -4px 8px rgba(0,0,0,.4), inset 4px 4px 8px rgba(255,180,160,.25);
  display: flex; align-items: center; justify-content: center;
}
.hp-letter-seal img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.hp-letter h3 { margin: 8px 0 16px; font-family: 'Cinzel Decorative', serif; font-size: 1.35rem; color: #3a1e08; letter-spacing: .5px; }
.hp-letter p { margin: 0 0 22px; font-size: 1.08rem; line-height: 1.6; color: #2b1a08; }
.hp-letter .hp-btn {
  display: inline-block; padding: 10px 22px;
  font-family: 'Cinzel Decorative', serif; font-size: .95rem; letter-spacing: 1px;
  background: linear-gradient(180deg, #2b1a08, #4a2c10); color: #f3e0b8;
  border: 1px solid rgba(243, 224, 184, .35); border-radius: 4px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.hp-letter .hp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.45); }

/* ─────────────────────────────────────────────
   MAPA HUNCWOTÓW (tylko desktop)
───────────────────────────────────────────── */
.hp-marauders-trigger {
  position: fixed; right: 18px; bottom: 18px; z-index: 9200;
  background: linear-gradient(160deg, #e6cb91, #c9a566);
  color: #2b1a08;
  font-family: 'Cinzel Decorative', serif;
  font-size: .78rem; letter-spacing: .6px;
  padding: 10px 16px;
  border: 1px solid rgba(80, 45, 15, .55);
  border-radius: 30px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 0 20px rgba(120,70,20,.2);
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2;
  max-width: 260px; text-align: center;
}
.hp-marauders-trigger small { display: block; font-family: 'Almendra', serif; font-style: italic; font-size: .72rem; margin-top: 2px; opacity: .85; }
.hp-marauders-trigger:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.55); }

.hp-map-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 3, 1, .82); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.hp-map-backdrop.is-open { opacity: 1; pointer-events: auto; }
.hp-map {
  position: relative;
  width: min(960px, 94vw); height: min(640px, 86vh);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120, 70, 20, .22), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(80, 40, 10, .28), transparent 65%),
    linear-gradient(160deg, #efd9a8 0%, #d9b97a 55%, #b6915a 100%);
  border: 1px solid rgba(90, 55, 20, .45); border-radius: 6px;
  box-shadow: 0 40px 90px rgba(0,0,0,.75), inset 0 0 120px rgba(110, 60, 15, .3);
  overflow: hidden;
  transform: scale(.5);
  transition: transform .55s cubic-bezier(.2,.85,.2,1);
  color: #2a1a08; font-family: 'Almendra', serif;
  display: flex; flex-direction: column;
}
.hp-map-backdrop.is-open .hp-map { transform: scale(1); }
.hp-map-viewport { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; }
.hp-map-viewport.is-grabbing { cursor: grabbing; }
.hp-map-stage { position: absolute; inset: 0; transform-origin: center center; will-change: transform; }
.hp-map-art { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.hp-map-nav { position: absolute; inset: 0; pointer-events: none; }
.hp-map-link {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto;
  font-family: 'Cinzel Decorative', serif; font-size: clamp(.95rem, 1.5vw, 1.2rem);
  color: #2a1606; text-decoration: none;
  padding: 6px 14px; background: rgba(243, 224, 184, .72);
  border: 1px solid rgba(80, 40, 10, .45); border-radius: 4px; letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease; white-space: nowrap;
}
.hp-map-link::before { content: '✦ '; color: #6b3a0f; opacity: .8; }
.hp-map-link:hover { background: rgba(255, 240, 200, .9); transform: translate(-50%, -52%); }
.hp-map-controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.hp-map-controls .hp-zoom {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(43, 26, 8, .85); color: #f3e0b8;
  border: 1px solid rgba(243, 224, 184, .4);
  font-family: 'Cinzel Decorative', serif; font-size: 16px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.hp-map-controls .hp-zoom:hover { background: #4a2c10; }
.hp-map-close {
  align-self: center; margin: 10px 0 14px; padding: 10px 22px;
  font-family: 'Cinzel Decorative', serif; font-size: .9rem; letter-spacing: 1px;
  background: linear-gradient(180deg, #2b1a08, #4a2c10); color: #f3e0b8;
  border: 1px solid rgba(243, 224, 184, .35); border-radius: 4px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.hp-map-close:hover { transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   INTRO SCREEN
───────────────────────────────────────────── */
.hp-intro-enhanced .intro-stage {
  display: flex !important; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 1.2rem; padding: 0 1rem; max-width: 720px; width: 100%;
}
.hp-intro-enhanced .intro-frame img {
  width: clamp(180px, 28vw, 280px) !important; height: auto !important;
  filter: drop-shadow(0 0 40px rgba(243, 205, 117, .55));
}
.hp-intro-enhanced .intro-name {
  font-size: clamp(2rem, 6vw, 3.4rem) !important; letter-spacing: .22em;
  color: #f3cd75; text-shadow: 0 0 24px rgba(243, 205, 117, .35);
  margin: .4rem 0 .2rem;
}
.hp-intro-enhanced .intro-sub { font-size: clamp(.9rem, 1.6vw, 1.15rem) !important; letter-spacing: .28em; color: #d8c79a; }
.hp-intro-enhanced .intro-rule { margin: .4rem 0; }

/* ─────────────────────────────────────────────
   COOKIE BANNER
───────────────────────────────────────────── */
.pz-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 10500;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.pz-cookie.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pz-cookie-inner {
  max-width: 880px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(20, 12, 6, .96), rgba(40, 24, 10, .96));
  border: 1px solid rgba(243, 205, 117, .35);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .55), inset 0 0 30px rgba(120, 70, 20, .18);
  color: #f0e2bf;
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-family: 'Almendra', 'Georgia', serif;
}
.pz-cookie-inner p { margin: 0; font-size: .95rem; line-height: 1.5; flex: 1 1 320px; }
.pz-cookie-inner a { color: #f3cd75; text-decoration: underline; }
.pz-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-cookie-btn {
  font-family: 'Cinzel Decorative', serif;
  font-size: .82rem; letter-spacing: .8px;
  padding: 10px 18px; border-radius: 30px; cursor: pointer;
  border: 1px solid rgba(243, 205, 117, .45);
  transition: transform .15s ease, box-shadow .2s ease;
}
.pz-cookie-accept {
  background: linear-gradient(160deg, #f0d597, #c9913a);
  color: #2b1a08;
  box-shadow: 0 6px 18px rgba(201, 145, 58, .35);
}
.pz-cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(201, 145, 58, .5); }
.pz-cookie-dismiss { background: transparent; color: #f0e2bf; }
.pz-cookie-dismiss:hover { background: rgba(243, 205, 117, .1); }

@media (max-width: 600px) {
  .hp-map { width: 96vw; height: 88vh; }
  .hp-map-link { font-size: .95rem; padding: 5px 10px; }
  .pz-cookie { left: 10px; right: 10px; bottom: 10px; }
  .pz-cookie-inner { padding: 14px; font-size: .9rem; }
  .pz-cookie-actions { width: 100%; }
  .pz-cookie-btn { flex: 1; }
}

/* ─── LEGAL PAGES (regulamin, polityka) ─── */
.legal-page { max-width: 880px; margin: 0 auto; padding: 80px 24px 60px; color: #efe3c6; font-family: 'Almendra', 'Georgia', serif; line-height: 1.7; }
.legal-page h1 { font-family: 'Cinzel Decorative', serif; color: #f3cd75; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .1em; margin: 0 0 .4em; text-align: center; }
.legal-page h2 { font-family: 'Cinzel Decorative', serif; color: #f3cd75; font-size: 1.2rem; letter-spacing: .08em; margin: 2em 0 .5em; }
.legal-page p, .legal-page li { font-size: 1rem; }
.legal-page ul, .legal-page ol { padding-left: 1.4em; }
.legal-page .legal-meta { text-align: center; opacity: .7; font-size: .9rem; margin-bottom: 2.5em; }
.legal-page a { color: #f3cd75; }

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hp-owl { animation: none !important; }
  .hp-dust-canvas { display: none; }
}
