/* ====================== Hey Jini! — hub (motyw magenta) ====================== */
:root {
  --mag-1: #a01a63;
  --mag-2: #7a1550;
  --mag-3: #5c0f3c;
  --gold: #f6c945;
  --gold-deep: #d99a2b;
  --cream: #fff6e2;
  --ink: #4a2c12;
  --shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow-x: hidden; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--cream);
  background: var(--mag-2) url('../assets/bg-magenta.jpg') center top / cover no-repeat fixed;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(120, 20, 80, .12) 0%, rgba(70, 10, 50, .55) 100%);
  pointer-events: none; z-index: 0;
}

#app {
  position: relative; z-index: 1;
  min-height: 100svh; max-width: 1000px; margin: 0 auto;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}

/* ---- przełącznik języka ---- */
.lang-switch { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 12px; z-index: 5; display: flex; gap: 4px; }
.lang-btn { width: 38px; height: 30px; border-radius: 8px; font-weight: 800; font-size: 13px; color: var(--cream); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; }
.lang-btn.active { background: var(--gold); color: var(--ink); border-color: #fff2c4; }
.lang-select { height: 30px; border-radius: 8px; padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--gold); border: 1px solid #fff2c4; cursor: pointer; max-width: 42vw; }

/* ---- hero ---- */
.hero { text-align: center; padding: 8px 0 4px; }
.logo-main { display: block; width: min(80%, 460px); height: auto; margin: 6px auto 10px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.tagline { font-size: clamp(19px, 5.2vw, 28px); font-weight: 800; margin: 6px 0 4px; text-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.subtitle { font-size: clamp(13px, 3.6vw, 16px); opacity: .92; margin: 0 auto; max-width: 560px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }

/* ---- Google Play / Android ---- */
/* Ukryta na produkcji (apka jeszcze nie w Google Play); hub.js pokazuje ją tylko lokalnie (dev). TODO(Play). */
.store-cta { display: none; text-align: center; padding: 6px 0 2px; }
.store-note { font-size: clamp(13px, 3.4vw, 15px); font-weight: 700; color: var(--cream); opacity: .92; margin: 0 0 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.store-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 12px;
  background: #101014; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: transform .12s ease, box-shadow .12s ease; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.store-badge:active { transform: translateY(0); }
.store-ico { width: 26px; height: 26px; flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-txt small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.store-txt b { font-size: 18px; font-weight: 600; letter-spacing: .01em; }

/* ---- karuzela ---- */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px 6px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.genie-card {
  scroll-snap-align: center; flex: 0 0 82%; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: rgba(5, 10, 40, .42); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); backdrop-filter: blur(3px);
}
.genie-img {
  width: clamp(150px, 44vw, 200px); height: clamp(150px, 44vw, 200px);
  background-size: contain; background-position: center bottom; background-repeat: no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4));
}
.genie-img--emoji { display: flex; align-items: center; justify-content: center; font-size: clamp(78px, 22vw, 110px); filter: none; opacity: .85; }
.genie-name { font-size: clamp(26px, 7vw, 34px); font-weight: 800; margin: 0; color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.genie-desc { font-size: 15px; opacity: .92; margin: 0; min-height: 2.8em; line-height: 1.35; }
.genie-btn {
  margin-top: 4px; padding: 12px 32px; border-radius: 30px; font-weight: 800; font-size: 18px;
  color: var(--ink); background: linear-gradient(180deg, #ffe08a, var(--gold), var(--gold-deep));
  border: 3px solid #fff2c4; text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .08s ease;
}
.genie-btn:active { transform: translateY(2px) scale(.99); }
.genie-btn--soon { background: rgba(255, 255, 255, .14); color: var(--cream); border-color: rgba(255, 255, 255, .3); cursor: default; }
.is-soon { opacity: .92; }

/* ---- strzałki + kropki ---- */
.car-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(5, 10, 40, .5); color: var(--cream);
  font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.car-arrow:active { transform: scale(.93); }
.dots { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .32); cursor: pointer; padding: 0; }
.dot.active { background: var(--gold); }

/* ---- stopka ---- */
.site-footer {
  width: 100%; margin-top: auto; padding: 18px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(40, 6, 30, .6); border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 18px 18px 0 0;
}
.social { display: flex; gap: 14px; }
.social-ico {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--cream); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .15s ease, color .15s ease, transform .08s ease;
}
.social-ico svg { width: 20px; height: 20px; fill: currentColor; }
.social-ico:hover { background: var(--gold); color: var(--ink); }
.social-ico:active { transform: translateY(1px) scale(.95); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; }
.footer-links a { color: var(--cream); opacity: .85; text-decoration: none; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-links .sep { opacity: .4; }
.copyright { font-size: 13px; opacity: .65; margin: 0; }

/* ---- baner cookies ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(45, 6, 32, .97); border-top: 2px solid var(--gold);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--cream); max-width: 640px; }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 18px; border-radius: 22px; font-weight: 800; font-size: 14px; cursor: pointer; border: 2px solid transparent; }
.cookie-btn--primary { background: linear-gradient(180deg, #ffe08a, var(--gold), var(--gold-deep)); color: var(--ink); border-color: #fff2c4; }
.cookie-btn--ghost { background: rgba(255, 255, 255, .1); color: var(--cream); border-color: rgba(255, 255, 255, .3); }
.cookie-btn:active { transform: translateY(1px); }

/* ---- strony prawne ---- */
.legal {
  position: relative; z-index: 1; width: calc(100% - 24px); max-width: 760px; margin: 16px auto 28px;
  padding: 26px 24px 40px; color: #f7ecff; line-height: 1.6;
  background: rgba(40, 6, 30, .82); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px; box-shadow: 0 14px 36px rgba(0, 0, 0, .4); backdrop-filter: blur(3px);
}
.lang-block { display: none; }
.lang-block.active { display: block; }
.legal-back { display: inline-block; margin-bottom: 14px; color: var(--gold); font-weight: 700; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(26px, 7vw, 38px); margin: 6px 0 2px; color: var(--cream); }
.legal h2 { font-size: clamp(19px, 5vw, 24px); margin: 26px 0 8px; color: #ffe4a3; }
.legal p, .legal li { font-size: 16px; }
.legal a { color: var(--gold); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal-updated { opacity: .6; font-size: 13px; margin-top: 0; }
.legal .card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 18px; margin: 10px 0; }
.legal details { margin: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 8px; }
.legal summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--cream); padding: 6px 0; }
.legal-footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; opacity: .75; text-align: center; }
.legal-footer a { color: var(--cream); }

/* ---- ekran ładowania (motyw sieci = magenta) ---- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(40, 6, 30, .30), rgba(40, 6, 30, .68)),
              #7a1550 url('../assets/bg-magenta.jpg') center / cover no-repeat;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo { width: min(76%, 400px); height: auto; margin-bottom: 2px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.loader-genies { position: relative; width: min(86%, 420px); height: clamp(280px, 72vw, 440px); }
.lg-genie { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: clamp(230px, 62vw, 360px); height: auto; opacity: 0; animation: lg-cycle 6s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); will-change: opacity, transform; }
.lg-solo { position: static; transform: none; opacity: 1; width: clamp(240px, 70vw, 400px); animation: lg-solo-cycle 3s ease-in-out infinite; }
.lg-emoji { font-size: clamp(62px, 17vw, 100px); line-height: 1; display: flex; align-items: center; justify-content: center; }
@keyframes lg-cycle {
  0%   { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.86); }
  6%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  19%  { opacity: 1; transform: translateX(-50%) translateY(-8px) scale(1.05); }
  25%  { opacity: 0; transform: translateX(-50%) translateY(-22px) scale(.94); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.86); }
}
@keyframes lg-solo-cycle {
  0%   { opacity: 0; transform: translateY(20px) scale(.9); }
  16%  { opacity: 1; transform: translateY(0) scale(1); }
  68%  { opacity: 1; transform: translateY(-12px) scale(1.05); }
  90%  { opacity: 0; transform: translateY(-24px) scale(.95); }
  100% { opacity: 0; transform: translateY(20px) scale(.9); }
}
.loader-text { font-size: clamp(20px, 5.5vw, 28px); font-weight: 800; letter-spacing: .5px; color: var(--cream); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); margin: 0; text-align: center; padding: 0 16px; }
.loader-bar { width: min(80%, 380px); height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), #ffe08a); animation: lg-load 1.9s ease forwards; }
@keyframes lg-load { to { width: 100%; } }

/* ---- desktop ---- */
@media (min-width: 760px) {
  .genie-card { flex-basis: 300px; }
  .hero { padding-top: 16px; }
}
