/* =========================================================
   PABIRUSIOS RAIDELĖS – „WOW“ funkcijos
   Kiekviena funkcija – atskirame bloke (WOW 1 … WOW 5).
   Nereikalingą funkciją galima tiesiog ištrinti kartu su jos HTML dalimi.
   Naudoja spalvas iš css/style.css viršaus (--red, --yellow, --dark ...).
   ========================================================= */

/* Naujų skyrių (žaidimas, DUK) tarpai viršuje/apačioje – tie patys kaip kitų skyrių (--section-y iš style.css) */
:root { --pr-new-pad: var(--section-y, 88px); }

/* Bendras naujų skyrių antraštės stilius (kaip kituose skyriuose) */
.pr-game-heading, .pr-faq-heading { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.pr-game-heading span, .pr-faq-heading span {
  display: inline-block; margin-bottom: 16px;
  color: var(--red); font-size: 15px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.pr-game-heading h2, .pr-faq-heading h2 { margin: 0 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.pr-game-heading p, .pr-faq-heading p { max-width: 620px; margin: 0 auto; font-size: 18px; }
@media (max-width: 640px) {
  .pr-game-heading, .pr-faq-heading { text-align: left; margin-bottom: 24px; }
  .pr-game-heading h2, .pr-faq-heading h2 { font-size: 42px; }
  .pr-game-heading p, .pr-faq-heading p { font-size: 17px; }
}


/* =========================================================
   WOW 1: „Pabirusios raidelės“ – spalvotos raidelės hero bloke
   susibėga į pavadinimą; paspaudus raidelė pašoka.
   ========================================================= */
.pr-letters {
  --t: clamp(27px, calc((100vw - 84px) / 10), 46px);   /* vienos raidelės dydis */
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: calc(var(--t) * .3) calc(var(--t) * .6);
  width: min(1000px, calc(100vw - 40px));
  margin: 30px 0 0 50%; transform: translateX(-50%);
  user-select: none; -webkit-user-select: none;
}
.pr-letters-word { display: flex; gap: calc(var(--t) * .12); }
.pr-tile { display: block; width: var(--t); height: calc(var(--t) * 1.1); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pr-tile-face {
  display: grid; place-items: center; width: 100%; height: 100%;
  padding-bottom: calc(var(--t) * .08);
  border-radius: calc(var(--t) * .24);
  background: var(--c, var(--red)); color: #fff;
  font-size: calc(var(--t) * .6); font-weight: 900; line-height: 1;
  box-shadow: inset 0 calc(var(--t) * -.1) 0 rgba(0, 0, 0, .18), 0 calc(var(--t) * .1) calc(var(--t) * .22) rgba(7, 7, 24, .14);
  rotate: var(--r, 0deg);
  animation: prBob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.17s);
  transition: scale .2s ease;
}
.pr-letters.is-paused .pr-tile-face { animation-play-state: paused; }
@media (hover: hover) { .pr-tile:hover .pr-tile-face { scale: 1.12; } }
@keyframes prBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--t) * -.1); } }


/* =========================================================
   WOW 2: Žaidimas „Sudėk žodį“
   ========================================================= */
.pr-game-section { position: relative; padding: var(--pr-new-pad) 24px; background: #fff; overflow: hidden; }
.pr-game {
  position: relative; max-width: 760px; margin: 0 auto; padding: 28px 32px 36px;
  border-radius: 36px; background: #ffeec3; text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 176, 0, .28);
}
.pr-game-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-game-stars { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--dark); font-size: 18px; font-weight: 800; }
.pr-game-skip {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--dark);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background .2s ease;
}
.pr-game-skip:hover { background: #fff; }
.pr-game-pic { margin: 6px 0 16px; font-size: 84px; line-height: 1.15; user-select: none; }
.pr-game-slots { --s: clamp(40px, 11vw, 66px); display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.pr-slot {
  display: grid; place-items: center; width: var(--s); height: calc(var(--s) * 1.1);
  padding-bottom: calc(var(--s) * .06);
  border: 3px dashed rgba(229, 52, 29, .3); border-radius: calc(var(--s) * .24);
  background: rgba(255, 255, 255, .6); color: #fff;
  font-size: calc(var(--s) * .6); font-weight: 900; line-height: 1;
}
.pr-slot.is-current { border-color: var(--red); animation: prPulse 1.2s ease-in-out infinite; }
.pr-slot.is-filled { border: 0; background: var(--c, var(--red)); box-shadow: inset 0 calc(var(--s) * -.09) 0 rgba(0, 0, 0, .18); }
@keyframes prPulse { 0%, 100% { background: rgba(255, 255, 255, .6); } 50% { background: #fff; } }

.pr-game-play { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 16px; }
.pr-game-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 520px; margin: 0 auto; }
.pr-game-tiles[hidden] { display: none; }
.pr-gtile {
  width: 60px; height: 64px; padding: 0 0 5px; border: 0; border-radius: 15px;
  background: var(--c, var(--red)); color: #fff;
  font: inherit; font-size: 34px; font-weight: 900; line-height: 1;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  rotate: var(--r, 0deg);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(7, 7, 24, .14);
  transition: scale .15s ease, opacity .25s ease;
}
@media (hover: hover) { .pr-gtile:hover { scale: 1.08; } }
.pr-gtile:active { scale: .92; }
.pr-gtile:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.pr-gtile.is-used { opacity: 0; scale: .4; pointer-events: none; }
.pr-gtile.is-hint { animation: prWiggle .9s ease-in-out infinite; }
@keyframes prWiggle { 0%, 100% { translate: 0 0; } 25% { translate: 0 -8px; } 50% { translate: 0 0; } 75% { translate: 0 -4px; } }

.pr-game-msg { min-height: 1.4em; margin: 0; color: var(--dark); font-size: 19px; font-weight: 800; line-height: 1.4; }
.pr-game-next { font-size: 17px; background: #fff; color: var(--dark); box-shadow: 0 4px 0 #f0c873; }
.pr-game-next:hover { color: var(--dark); box-shadow: 0 7px 0 #f0c873; }
.pr-game-next:active { box-shadow: 0 2px 0 #f0c873; }
.pr-game-next[hidden] { display: none; }
.pr-game-cta { margin-top: 26px; padding-top: 24px; border-top: 2px dashed rgba(229, 52, 29, .22); }
.pr-game-cta p { max-width: 460px; margin: 0 auto 16px; font-size: 17px; font-weight: 600; color: var(--dark); }
@media (max-width: 640px) {
  .pr-game-section { padding-left: 20px; padding-right: 20px; }
  .pr-game { padding: 18px 14px 26px; border-radius: 26px; }
  .pr-game-pic { font-size: 68px; margin-bottom: 12px; }
  .pr-game-slots { gap: 6px; margin-bottom: 22px; }
  .pr-game-tiles { gap: 10px; }
  .pr-gtile { width: 54px; height: 58px; font-size: 31px; border-radius: 14px; }
  .pr-game-msg { font-size: 17px; }
  .pr-game-skip { font-size: 14px; padding: 8px 14px; }
}


/* =========================================================
   WOW 3: Telefone prilipęs „Registruotis“ mygtukas
   (rodomas tik telefone/planšetėje, kai nuslenkate žemiau pagrindinio bloko;
    registracijos skyriaus – formos, žirafos – nekeičia)
   ========================================================= */
.pr-sticky { display: none; }
@media (max-width: 1024px) {
  .pr-sticky {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
    display: flex; gap: 8px; max-width: 560px; margin: 0 auto; padding: 8px 8px 12px;
    border-radius: 22px; background: #fff; border: 1px solid rgba(255, 180, 70, .25);
    box-shadow: 0 10px 34px rgba(7, 7, 24, .18);
    transform: translateY(calc(100% + 40px)); visibility: hidden;
    transition: transform .35s ease-in, visibility 0s linear .35s;
  }
  .pr-sticky.is-shown { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), visibility 0s; }
  .pr-sticky[hidden] { display: none; }
}
.pr-sticky-btn {
  position: relative; overflow: hidden; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 16px; border-radius: 16px;
  background: var(--yellow); color: #fff; box-shadow: 0 4px 0 var(--red);
  font-size: 17px; font-weight: 800; line-height: 1.2; text-decoration: none; text-align: center;
}
.pr-sticky-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red); }
/* šviesos blyksnis per mygtuką kas kelias sekundes */
.pr-sticky-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-18deg); animation: prSheen 4.5s ease-in-out 1.2s infinite;
}
@keyframes prSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.pr-sticky-ico { flex: 0 0 52px; display: grid; place-items: center; height: 52px; border-radius: 16px; color: #fff; }
.pr-sticky-ico[hidden] { display: none; }
.pr-sticky-ico svg { width: 26px; height: 26px; }
.pr-sticky-call { background: #18b957; }
.pr-sticky-msg { background: #0084ff; }
.pr-sticky-wa { background: #25d366; }
@media (max-width: 360px) { .pr-sticky-btn { font-size: 15px; padding: 12px 10px; } }
/* Kai šalia yra kontaktų mygtukai – mažame telefone užrašas trumpesnis („Registruotis →“), kad tilptų vienoje eilutėje */
@media (max-width: 480px) { .pr-sticky.has-contacts .pr-sticky-long { display: none; } }


/* =========================================================
   WOW 4: DUK – dažniausi tėvelių klausimai (išsiskleidžiantys)
   ========================================================= */
.pr-faq-section { position: relative; padding: var(--pr-new-pad) 24px; background: #fff; }
.pr-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.pr-faq details {
  border-radius: 24px; background: var(--cream-2); border: 1px solid #f2ece7;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pr-faq details[open]:not(.is-closing) { background: #fff; border-color: #ffd8cf; box-shadow: 0 12px 30px rgba(7, 7, 24, .07); }
.pr-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 20px 18px 26px;
  color: var(--dark); font-size: 19px; font-weight: 800; line-height: 1.35;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary:hover { color: var(--red); }
.pr-faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; border-radius: 24px; }
.pr-faq summary::after {
  content: ""; flex: 0 0 40px; height: 40px; border-radius: 14px;
  background:
    linear-gradient(var(--red), var(--red)) center / 16px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 16px no-repeat,
    #fff;
  box-shadow: 0 2px 0 rgba(255, 65, 43, .15);
  transition: transform .3s ease, background-color .3s ease;
}
.pr-faq details[open]:not(.is-closing) summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(#fff, #fff) center / 16px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 16px no-repeat,
    var(--red);
}
.pr-faq-body { padding: 0 26px 22px; }
.pr-faq-body p { margin: 0 0 10px; font-size: 17px; line-height: 1.65; }
.pr-faq-body p:last-child { margin-bottom: 0; }
.pr-faq-more { max-width: 860px; margin: 34px auto 0; text-align: center; }
.pr-faq-more p { margin: 0 0 18px; font-size: 18px; font-weight: 600; color: var(--dark); }
/* Vieta, kurią savininkas turi užpildyti (prieš skelbiant – pakeisti tikru tekstu) */
.pr-ph { padding: 1px 6px; border-radius: 6px; background: #fff3a8; color: #a14d00; font-weight: 800; }
@media (max-width: 640px) {
  .pr-faq-section { padding-left: 20px; padding-right: 20px; }
  .pr-faq { gap: 10px; }
  .pr-faq details { border-radius: 20px; }
  .pr-faq summary { min-height: 60px; padding: 16px 14px 16px 20px; font-size: 17px; }
  .pr-faq summary::after { flex-basis: 36px; height: 36px; border-radius: 12px; }
  .pr-faq-body { padding: 0 20px 20px; }
  .pr-faq-body p { font-size: 16px; }
  .pr-faq-more { text-align: left; }
  .pr-faq-more p { font-size: 17px; }
}


/* =========================================================
   WOW 5: Švelnus atsiradimas slenkant + konfeti po registracijos
   (klasę .pr-reveal-on uždeda js/features.js; be JS viskas matosi kaip įprastai)
   ========================================================= */
html.pr-reveal-on .pr-reveal { opacity: 0; translate: 0 34px; }
html.pr-reveal-on .pr-reveal.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity .75s ease, translate .8s cubic-bezier(.2, .75, .25, 1);
  transition-delay: var(--pr-delay, 0s);
}

/* Konfeti (spalvoti popieriukai ir raidelės) */
.pr-confetti { position: fixed; inset: 0; z-index: 10001; overflow: hidden; pointer-events: none; }
.pr-confetti i { position: absolute; width: 9px; height: 13px; margin: -6px 0 0 -4px; border-radius: 2px; }
.pr-confetti b { position: absolute; margin: -12px 0 0 -8px; font-size: 20px; font-weight: 900; line-height: 1; }


/* ---------- Mažiau judesio (žmonėms, kurie telefone išjungė animacijas) ---------- */
@media (prefers-reduced-motion: reduce) {
  .pr-tile-face, .pr-slot.is-current, .pr-gtile.is-hint, .pr-sticky-btn::after { animation: none; }
  .pr-sticky, .pr-sticky.is-shown, .pr-tile-face, .pr-gtile, .pr-faq details, .pr-faq summary::after { transition: none; }
}
