/* ===== Žvėryno paslaptys — vieša svetainė ===== */
:root {
  --sand: #FBF7EE;
  --sand-2: #F3ECDB;
  --sand-3: #E7E0D0;
  --ink: #1D1B16;
  --ink-soft: #49463C;
  --muted: #6B6154;
  --green: #2D6A4F;
  --green-deep: #1B4332;
  --green-cont: #B7D9C8;
  --green-pale: #DDEBE1;
  --amber: #E9A23B;
  --amber-deep: #9A6A1C;
  --brown: #7A5C3E;
  --river: #7FAFD6;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
a { color: var(--green-deep); }

/* ===== Antraštė ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-3);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand em { color: var(--green); font-style: normal; }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.site-header nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500;
}
.site-header nav a:hover { color: var(--green-deep); }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 8px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--green-deep); }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px; border: 1px solid var(--sand-3); border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.lang-switch:hover { border-color: var(--green-cont); background: var(--sand-2); transform: translateY(-1px); }
.lang-switch svg { width: 22px; height: 15px; border-radius: 3px; flex: none; display: block; }
@media (max-width: 560px) {
  .site-header nav a:not(.nav-cta):not(.lang-switch) { display: none; }
}

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 64px); align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(30px, 5vw, 70px);
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-phone { order: 2; margin-top: 20px; }
  .store-buttons { justify-content: center; }
}
.eyebrow {
  color: var(--amber-deep); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px;
}
.hero .accent { color: var(--green); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
@media (max-width: 820px) { .lead { margin-inline: auto; } }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Parduotuvių mygtukai */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-buttons.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .15s, box-shadow .15s;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.05rem; }
.store-btn small { font-weight: 400; font-size: .72rem; opacity: .8; }
.store-btn.play:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,27,22,.25); }
.store-btn.soon { background: var(--sand-3); color: var(--muted); cursor: default; }
.store-btn.big { padding: 13px 26px; }

/* Telefono animacija */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(250px, 62vw); aspect-ratio: 9 / 18.6;
  background: #15130E; border-radius: 38px; padding: 10px;
  box-shadow: 0 24px 60px rgba(29,27,22,.28), inset 0 0 0 2px #3a352b;
  transform: rotate(3deg);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 15px; background: #15130E; border-radius: 10px; z-index: 3;
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 28px; overflow: hidden; background: #000;
}
.viewfinder-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; animation: kenburns 9s ease-in-out infinite;
}
@keyframes kenburns {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.14) translate(-2%, -3%); }
  100% { transform: scale(1.02) translate(0, 0); }
}
.scanline {
  position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 14px 2px rgba(233,162,59,.55);
  animation: scan 9s ease-in-out infinite;
}
@keyframes scan {
  0%, 8% { top: 12%; opacity: 0; }
  12% { opacity: 1; }
  38% { top: 86%; }
  62% { top: 14%; opacity: 1; }
  66% { opacity: 0; }
  100% { top: 12%; opacity: 0; }
}
.corner { position: absolute; width: 26px; height: 26px; border: 3.5px solid var(--amber); z-index: 2; opacity: .95; animation: cornerPulse 2.2s ease-in-out infinite; }
.corner.tl { top: 14%; left: 10%; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { top: 14%; right: 10%; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: 16%; left: 10%; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { bottom: 16%; right: 10%; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
@keyframes cornerPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.gps-chip {
  position: absolute; top: 7%; left: 8%; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(21,19,14,.72); color: #E8E2D4;
  font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.gps-dot { width: 7px; height: 7px; border-radius: 50%; background: #6BCB8B; animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.shutter {
  position: absolute; bottom: 4.5%; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  background: #FBF7EE; border: 4px solid rgba(255,255,255,.5);
  animation: shutterPress 9s ease-in-out infinite;
}
@keyframes shutterPress {
  0%, 60%, 70%, 100% { transform: translateX(-50%) scale(1); }
  64% { transform: translateX(-50%) scale(.82); }
}
.flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 3;
  animation: flash 9s ease-out infinite; pointer-events: none;
}
@keyframes flash { 0%, 63.5%, 67%, 100% { opacity: 0; } 65% { opacity: .9; } }
.match-card {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(.6);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(27,67,50,.94); color: #fff; text-align: center;
  padding: 16px 22px; border-radius: 18px; opacity: 0;
  animation: matchPop 9s ease-out infinite;
}
.match-card .check {
  width: 34px; height: 34px; border-radius: 50%; background: #6BCB8B;
  color: #0B2E1F; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 4px;
}
.match-card strong { font-family: var(--serif); font-size: 1.05rem; }
.match-card .pts { color: var(--amber); font-weight: 800; font-size: .95rem; }
@keyframes matchPop {
  0%, 66% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  70%, 92% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  97%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
}
.phone-shadow {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  width: 62%; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29,27,22,.28), transparent);
}
.float-q {
  position: absolute; font-family: var(--serif); font-weight: 700;
  color: var(--amber-deep); opacity: .8; user-select: none;
  animation: floatQ 5.5s ease-in-out infinite;
}
.float-q.q1 { top: 4%; left: 6%; font-size: 1.9rem; animation-delay: 0s; }
.float-q.q2 { bottom: 12%; right: 4%; font-size: 1.4rem; animation-delay: 1.4s; }
.float-q.q3 { top: 16%; right: 10%; font-size: 1.6rem; color: var(--green); animation-delay: 2.6s; }
@keyframes floatQ {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ===== Sekcijos ===== */
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-align: center; margin: 0 0 10px;
}
.section-sub { text-align: center; color: var(--ink-soft); max-width: 44em; margin: 0 auto 26px; }
.q-badge {
  display: inline-grid; place-items: center; width: 1.55em; height: 1.55em;
  background: var(--amber); color: #fff; border-radius: 50%; font-family: var(--serif);
}

/* Kaip žaisti */
.steps { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); background: var(--sand-2); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; max-width: 1120px; margin: 30px auto 0;
}
.step {
  position: relative; background: var(--sand); border: 1px solid var(--sand-3);
  border-radius: 20px; padding: 26px 22px 20px;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,27,22,.1); }
.step-no {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--sand-3);
}
.step-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 2.6; }
.step-icon svg .fill { fill: var(--green-cont); }
.step-icon svg .thin { stroke-width: 2; }
.step-icon svg .qmark { fill: var(--green); stroke: none; font: 700 13px var(--serif); }
.step h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ===== Žemėlapis ===== */
.map-section { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); }
.map-progress { text-align: center; margin-bottom: 14px; }
#found-count {
  display: inline-block; background: var(--green-cont); color: var(--green-deep);
  font-weight: 700; padding: 6px 18px; border-radius: 999px; font-size: .95rem;
}
.map-wrap {
  position: relative; max-width: 980px; margin: 0 auto;
  border-radius: 26px; box-shadow: 0 20px 50px rgba(29,27,22,.12);
}
.zverynas-map { display: block; width: 100%; height: auto; border-radius: 26px; }
.river-flow { animation: riverFlow 12s linear infinite; }
@keyframes riverFlow { to { stroke-dashoffset: -420; } }

.marker {
  position: absolute; transform: translate(-50%, -50%);
  width: clamp(34px, 5vw, 46px); height: clamp(34px, 5vw, 46px);
  border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: var(--amber); color: #fff;
  font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(29,27,22,.28);
  transition: transform .15s;
}
.marker::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--amber); opacity: 0;
  animation: markerPing 2.4s ease-out infinite;
  /* Žiedas išsipučia iki 1.9x ir siauruose ekranuose uždengtų kaimyninį
     žymeklį — be šito paspaudimas atidarytų ne tą paslaptį (opacity: 0
     nuo pelės neapsaugo). */
  pointer-events: none;
}
.marker:nth-of-type(2n)::after { animation-delay: .8s; }
.marker:nth-of-type(3n)::after { animation-delay: 1.5s; }
@keyframes markerPing {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.marker:hover, .marker:focus-visible { transform: translate(-50%, -50%) scale(1.15); }
/* Radus žymeklis virsta apvalia miniatiūra su retumo žiedu — kaip žaidime */
.marker.found {
  background-color: var(--sand); background-size: cover; background-position: center;
  border-color: var(--tier, var(--green));
  box-shadow: 0 4px 12px rgba(29, 27, 22, .3);
}
.marker.found::after { animation: none; opacity: 0; }

.map-finale {
  max-width: 700px; margin: 22px auto 0; text-align: center;
  background: var(--green-cont); color: var(--green-deep);
  padding: 16px 22px; border-radius: 18px; font-size: 1.05rem;
  animation: finalePop .5s ease-out;
}
@keyframes finalePop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Konfeti */
.confetti {
  position: fixed; top: -14px; z-index: 90; pointer-events: none;
  width: 10px; height: 14px; border-radius: 3px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: .6; }
}

/* ===== Kodėl patiks ===== */
.why { padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); background: var(--sand-2); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px; max-width: 1120px; margin: 30px auto 0;
}
.why-card {
  background: var(--sand); border: 1px solid var(--sand-3);
  border-radius: 20px; padding: 22px;
}
.why-emoji { font-size: 1.7rem; }
.why-card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ===== Atsisiųsti ===== */
.download { padding: clamp(50px, 8vw, 100px) clamp(16px, 4vw, 40px); }
.download-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--green-deep); color: #F0EDE3;
  border-radius: 30px; padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 60px);
  box-shadow: 0 24px 60px rgba(27,67,50,.35);
}
.download-logo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.download h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 18px 0 8px; color: #fff; }
.download p { margin: 0 0 24px; opacity: .85; }
.download .store-btn.play { background: var(--amber); color: var(--ink); }
.download .store-btn.play:hover { box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.download .store-btn.soon { background: rgba(255,255,255,.12); color: rgba(240,237,227,.6); }

/* ===== Poraštė ===== */
.site-footer { border-top: 1px solid var(--sand-3); padding: 30px clamp(16px, 4vw, 40px) 40px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-credit-text { font-family: var(--serif); font-weight: 700; font-size: .98rem; }
/* Logotipas ir socialiniai ženklai — viena eilutė po tekstu, vienodo dydžio.
   Pilni žali apskritimai su baltais ženklais — kaip programėlėje (CreatorCredit.kt) */
.socials { display: flex; align-items: center; gap: 10px; }
.socials a, .socials img {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: block;
}
.socials a {
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  transition: background .15s, transform .15s;
}
.socials a:hover { background: var(--green-deep); transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--green-deep); text-decoration: underline; }
.footer-copy { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  .footer-links { margin-left: 0; }
}

/* ===== Paslapties kortelė ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(29,27,22,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
}
/* display: grid nustelbtų naršyklės [hidden] taisyklę — grąžinam ją */
.modal-backdrop[hidden] { display: none; }
.secret-card {
  position: relative; width: min(420px, 100%);
  background: var(--sand); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: cardIn .35s cubic-bezier(.2, .9, .3, 1.2);
  /* Žemuose languose (telefonas gulsčiai) kortelė kitaip išlįstų už ekrano */
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}
@keyframes cardIn { from { transform: translateY(26px) scale(.94); opacity: 0; } }
.card-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21,19,14,.55); color: #fff; font-size: 1rem;
}
/* Apvali nuotrauka su retumo žiedu — ta pati kalba kaip programėlės kortelėje */
.card-photo {
  width: 72%; max-width: 260px; aspect-ratio: 1; margin: 26px auto 0;
  border-radius: 50%; overflow: hidden; background: #241f16;
  border: 5px solid var(--tier, var(--sand-3));
  box-shadow: 0 10px 26px rgba(29, 27, 22, .22);
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(16px) grayscale(.7); transform: scale(1.12);
  transition: filter 1.1s ease .15s, transform 1.1s ease .15s;
}
.secret-card.revealed .card-photo img { filter: none; transform: scale(1); }
.card-body { padding: 16px 22px 24px; text-align: center; }
.rarity-chip {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 8px;
  color: var(--ink); background: color-mix(in srgb, var(--tier, var(--sand-3)) 26%, transparent);
}
.card-body h3 { margin: 0 0 8px; font-size: 1.35rem; }
.card-body p { margin: 0 0 6px; color: var(--ink-soft); }
.card-hint { font-size: .85rem; color: var(--muted); }

/* Lygių spalvos — iš gyvo `config/rarities` katalogo (D-091), t. y. tos,
   kurias savininkas nustatė admin panelėje, o ne kode įrašytos numatytosios.
   Pakeitus panelėje — atnaujinti ir čia, ir data-*.js pavadinimus. */
[data-tier="common"] { --tier: #649803; }
[data-tier="rare"] { --tier: #5979f7; }
[data-tier="epic"] { --tier: #9c51b6; }
[data-tier="legendary"] { --tier: #daa520; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Sumažintas judesys ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewfinder-photo, .scanline, .corner, .shutter, .flash, .match-card,
  .float-q, .river-flow, .marker::after, .gps-dot { animation: none !important; }
  .match-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-photo img { transition: none; }
}
