/* ============ Mūsų mažylė — stilius ============ */
:root {
  --cream: #fffaf7;
  --blush: #fde8ee;
  --rose: #f4a6b8;
  --rose-deep: #e0708f;
  --berry: #c2507a;
  --lav: #cdb9f5;
  --peach: #ffd3bd;
  --mint: #c9eee0;
  --ink: #4b3343;
  --muted: #a08594;
  --glass: rgba(255, 255, 255, .7);
  --line: rgba(224, 112, 143, .16);
  --shadow: 0 10px 30px -12px rgba(194, 80, 122, .28), 0 2px 6px -2px rgba(194, 80, 122, .1);
  --shadow-lift: 0 22px 44px -16px rgba(194, 80, 122, .38);
  --r: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; scrollbar-gutter: stable; }
/* Kai atidaryta peržiūra – sustabdomas fonas, kad naršyklei nereikėtų jo perpiešinėti */
body.lb-open { overflow: hidden; }
.lb-open .bg, .lb-open .floaters { display: none; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream);
  font: 17px/1.65 var(--sans); overflow-x: hidden;
}
a { color: var(--berry); text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.55rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }

/* ---------- Animuotas fonas ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at top, #fff 0%, var(--cream) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 520px; height: 520px; background: var(--rose); top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: var(--lav); top: 20%; right: -160px; animation: drift2 30s ease-in-out infinite alternate; }
.b3 { width: 380px; height: 380px; background: var(--peach); bottom: -120px; left: 18%; animation: drift3 24s ease-in-out infinite alternate; }
.b4 { width: 260px; height: 260px; background: var(--mint); bottom: 15%; right: 12%; opacity: .35; animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(90px, -110px) scale(1.1); } }

.floaters { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.floater { position: absolute; bottom: -40px; opacity: 0; animation: floatUp linear forwards; }
.floater svg { width: 100%; height: 100%; }
@keyframes floatUp {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: var(--o, .5); }
  90% { opacity: var(--o, .5); }
  100% { transform: translate(var(--dx, 40px), -110vh) rotate(var(--rot, 40deg)); opacity: 0; }
}

/* ---------- Viršutinė juosta ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 30; margin: 12px auto 0; max-width: 1080px; width: calc(100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px 10px 20px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow);
  animation: dropIn .7s var(--ease) both;
}
@keyframes dropIn { from { transform: translateY(-30px); opacity: 0; } }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 1.2rem var(--serif); white-space: nowrap; }
.brand-bow { font-size: 1.4rem; display: inline-block; animation: wiggle 4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .92rem; transition: background .25s, color .25s, transform .25s var(--bounce);
}
.nav a:hover { background: var(--blush); transform: translateY(-1px); }
.nav a.on { background: var(--ink); color: #fff; }
.nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-plus { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 6px 16px -6px var(--rose-deep); }
.nav .nav-plus:hover { background: linear-gradient(135deg, var(--rose-deep), var(--berry)); }

.page { max-width: 1080px; margin: 0 auto; padding: 34px 20px 40px; animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 10px 0 40px; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font: 700 .98rem var(--sans); transition: transform .3s var(--bounce), box-shadow .3s, background .3s;
  box-shadow: 0 2px 8px -4px rgba(194, 80, 122, .25);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.96); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #f59ab3, var(--rose-deep) 55%, var(--berry)); background-size: 160% 160%; animation: sheen 6s ease infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.danger { color: #c0392b; border-color: rgba(192, 57, 43, .3); }
.btn.wide { width: 100%; }
.round {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow); font-size: 1.6rem; color: var(--ink);
  transition: transform .3s var(--bounce);
}
.round:hover { transform: scale(1.12); }

/* ---------- Pranešimai ---------- */
.toast {
  position: fixed; left: 50%; top: 86px; z-index: 60; transform: translateX(-50%);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lift);
  animation: toastIn .5s var(--bounce) both, toastOut .5s ease 3.6s forwards;
}
.toast.ok { background: #fff; color: var(--berry); }
.toast.klaida { background: #fff1f1; color: #b03030; }
@keyframes toastIn { from { transform: translate(-50%, -30px) scale(.8); opacity: 0; } }
@keyframes toastOut { to { transform: translate(-50%, -20px); opacity: 0; visibility: hidden; } }

/* ---------- Kortelės ---------- */
.card {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 30px; margin-bottom: 24px;
}
.card.narrow { max-width: 440px; margin: 20px auto; text-align: center; }
.card.narrow .form { text-align: left; }
.page-head { margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; }
.small-h { font-size: 1.25rem; margin-bottom: 14px; }

/* ---------- Atsiradimo animacijos ---------- */
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Pradžia: hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px;
  min-height: 360px; margin-bottom: 30px;
}
.hero-art { order: 2; }
.dream { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; filter: drop-shadow(0 20px 30px rgba(224, 112, 143, .25)); }
.dream .moon { animation: bob 6s ease-in-out infinite; transform-origin: center; }
.dream .cloud { animation: cloud 9s ease-in-out infinite; }
.dream .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.dream .t2 { animation-delay: .6s; } .dream .t3 { animation-delay: 1.2s; } .dream .t4 { animation-delay: 1.8s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes cloud { 50% { transform: translateX(16px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.4); opacity: .4; } }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; color: var(--rose-deep); margin: 0 0 6px; }
.baby-name {
  font-size: clamp(3rem, 9vw, 5.6rem); font-style: italic; line-height: 1; padding-bottom: .08em;
  background: linear-gradient(100deg, var(--berry), #f08aa8 30%, #b28ef0 60%, var(--berry));
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite, nameIn 1s var(--ease) both;
}
@keyframes shimmer { to { background-position: 250% center; } }
@keyframes nameIn { from { opacity: 0; transform: translateY(20px); letter-spacing: .08em; } }
.age-pill {
  display: inline-flex; flex-direction: column; margin-top: 18px; padding: 14px 24px; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow); animation: pop .8s .3s var(--bounce) both;
}
.age-big { font: 600 1.7rem var(--serif); color: var(--ink); }
.age-small { font-size: .86rem; color: var(--muted); font-weight: 700; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.born { margin: 14px 0 0; color: var(--muted); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.stat {
  background: var(--glass); backdrop-filter: blur(12px); border: 1px solid #fff; border-radius: 22px;
  padding: 18px 10px; text-align: center; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .35s var(--bounce);
}
.stat:hover { transform: translateY(-5px) rotate(-1deg); }
.stat b { display: block; font: 600 2rem var(--serif); color: var(--rose-deep); }
.stat span { font-size: .88rem; font-weight: 700; color: var(--muted); }

.block { margin-bottom: 42px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.more-link { font-weight: 800; font-size: .95rem; }
.more-link:hover { text-decoration: underline; }

.moments { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.moments .tile { scroll-snap-align: start; }
.moments, .gallery-grid { align-items: start; }

/* ---------- Įrašų kortelės ---------- */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.entry-card {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s var(--bounce), box-shadow .4s;
}
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.entry-link { display: block; padding: 22px; color: var(--ink); }
.entry-head { display: flex; gap: 14px; align-items: flex-start; }
.mood {
  flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--blush), #f3ecff);
}
.mood.big { width: 64px; height: 64px; font-size: 2.1rem; border-radius: 22px; animation: pop .7s var(--bounce) both; }
.entry-date { font-size: .82rem; font-weight: 800; color: var(--rose-deep); text-transform: uppercase; letter-spacing: .06em; }
.entry-card h3 { font-size: 1.3rem; margin-top: 2px; }
.entry-excerpt { margin: 12px 0 0; color: #6d5563; white-space: pre-line; }
.mini-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.mini-strip img, .mini-video video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mini-video { position: relative; }
.mini-video b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.mini-more { display: grid; place-items: center; border-radius: 12px; background: var(--blush); font-weight: 800; color: var(--berry); aspect-ratio: 1; }
.chip { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: #f3ecff; font-size: .85rem; font-weight: 700; color: #7a5bc7; }

.entry-full-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.entry-full .entry-date:hover { text-decoration: underline; }
.entry-body { white-space: pre-wrap; font-size: 1.08rem; margin-bottom: 24px; }
.entry-admin { margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Kalendorius ---------- */
.cal-wrap { max-width: 860px; margin: 0 auto 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-title { text-align: center; }
.cal-title h1 { font-style: italic; animation: nameIn .7s var(--ease) both; }
.cal-title span { color: var(--muted); font-weight: 800; letter-spacing: .1em; }
.cal-today { text-align: center; margin-top: 6px; font-weight: 700; font-size: .92rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 22px; }
.wd { text-align: center; font-weight: 800; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 4px; }
.day {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 18px; background: rgba(255, 255, 255, .75);
  color: var(--ink); padding: 8px; overflow: hidden; isolation: isolate;
  border: 1.5px solid transparent; transition: transform .3s var(--bounce), box-shadow .3s, border-color .3s;
  animation: dayIn .5s var(--bounce) both; animation-delay: calc(var(--i) * 14ms);
}
@keyframes dayIn { from { opacity: 0; transform: scale(.7); } }
.day:hover { transform: scale(1.07); box-shadow: var(--shadow); z-index: 2; border-color: var(--rose); }
.day .num { font-weight: 800; font-size: 1rem; position: relative; }
.day.other { opacity: .35; background: transparent; }
.day.has { background: linear-gradient(145deg, #fff, var(--blush)); }
.day.has::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--thumb); background-size: cover; background-position: center;
  opacity: .9; transition: transform .5s var(--ease);
}
.day.has::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.1) 55%); }
.day.has:hover::before { transform: scale(1.12); }
.day.today { border-color: var(--rose-deep); box-shadow: 0 0 0 4px rgba(244, 166, 184, .35); }
.day.today .num { color: var(--berry); }
.day.mday .num::after { content: " 🎂"; font-size: .8em; }
.day.bday { background: linear-gradient(135deg, #fff1c9, var(--blush)); }
.marks { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 2px; }
.marks .m { font-size: .95rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); animation: pop .5s var(--bounce) both; animation-delay: calc(var(--i) * 14ms + .25s); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; font-size: .86rem; color: var(--muted); font-weight: 700; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 5px; vertical-align: -2px; }
.lg.has { background: linear-gradient(145deg, #fff, var(--rose)); }
.lg.today { border: 2px solid var(--rose-deep); }

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.day-title { text-align: center; }
.day-title h1 { font-style: italic; }
.day-actions { text-align: center; margin: 26px 0 18px; }

/* ---------- Galerija ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; }
.tabs a {
  white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: .92rem; box-shadow: 0 2px 10px -6px rgba(194, 80, 122, .4); transition: transform .3s var(--bounce);
}
.tabs a:hover { transform: translateY(-2px); }
.tabs a b { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--blush); color: var(--berry); font-size: .8rem; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a.on b { background: rgba(255,255,255,.2); color: #fff; }
.month-h { font-style: italic; font-size: 1.4rem; margin: 30px 0 14px; color: var(--berry); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 10px; }
.gallery-grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery-grid.audio-grid, .audio-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); display: grid; gap: 12px; margin-bottom: 14px; }

.tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .4s var(--bounce), box-shadow .4s; }
.tile:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.tile .lb { display: block; position: relative; }
.tile img, .tile video { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s var(--ease); background: var(--blush); }
.tile:hover img, .tile:hover video { transform: scale(1.07); }
.tile figcaption { padding: 8px 12px 10px; font-size: .88rem; font-weight: 600; color: #6d5563; }
.play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 22px rgba(0,0,0,.2);
  transition: transform .35s var(--bounce);
}
.play svg { width: 24px; fill: var(--rose-deep); margin-left: 3px; }
.tile:hover .play { transform: scale(1.18); }
.tile-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-6px); transition: .3s var(--ease); }
.tile:hover .tile-tools, .tile:focus-within .tile-tools { opacity: 1; transform: none; }
@media (hover: none) { .tile-tools { opacity: 1; transform: none; } }
.tool { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1rem; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.tool.del-media:hover { background: #ffe0e0; color: #b03030; }
.tile.removing { animation: poof .45s var(--ease) forwards; }
@keyframes poof { to { transform: scale(.5) rotate(8deg); opacity: 0; } }

/* Garso kortelė */
.tile-audio { background: linear-gradient(135deg, #fff, #f6efff); }
.tile-audio:hover { transform: translateY(-3px); }
.audio-card { display: flex; align-items: center; gap: 14px; padding: 16px; padding-right: 50px; }
.audio-btn {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lav), #9e82e6); box-shadow: 0 8px 18px -8px #7a5bc7; transition: transform .3s var(--bounce);
}
.audio-btn:hover { transform: scale(1.1); }
.audio-btn svg { width: 22px; fill: #fff; }
.audio-btn .i-pause, .tile-audio.playing .i-play { display: none; }
.tile-audio.playing .i-pause { display: block; }
.audio-meta { min-width: 0; flex: 1; }
.audio-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-time { font-size: .8rem; color: var(--muted); font-weight: 700; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin: 4px 0; cursor: pointer; }
.wave span { flex: 1; max-width: 6px; height: 30%; border-radius: 3px; background: #d9cbf5; transition: background .2s; }
.wave span:nth-child(3n) { height: 70%; } .wave span:nth-child(4n) { height: 50%; } .wave span:nth-child(5n) { height: 90%; } .wave span:nth-child(7n) { height: 40%; }
.wave span.done { background: #9e82e6; }
.tile-audio.playing .wave span { animation: eq .9s ease-in-out infinite alternate; }
.tile-audio.playing .wave span:nth-child(2n) { animation-delay: .2s; } .tile-audio.playing .wave span:nth-child(3n) { animation-delay: .4s; }
@keyframes eq { to { transform: scaleY(.45); } }

/* ---------- Įkėlimas ---------- */
.uploader { margin: 18px 0 8px; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 28px 20px; border-radius: var(--r); border: 2.5px dashed rgba(224, 112, 143, .45);
  background: rgba(255, 255, 255, .6); transition: background .3s, border-color .3s, transform .3s var(--bounce);
}
.drop:hover, .drop.over { background: #fff; border-color: var(--rose-deep); transform: scale(1.01); }
.drop.over { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(244, 166, 184, .25); } }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--rose), var(--lav)); margin-bottom: 6px; animation: bob 3s ease-in-out infinite; }
.drop-ico svg { width: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-weight: 800; font-size: 1.05rem; }
.drop-hint { color: var(--muted); font-size: .88rem; font-weight: 600; }
.queue { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.queue li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
  border-radius: 16px; background: #fff; box-shadow: 0 2px 10px -6px rgba(194, 80, 122, .4); animation: slideIn .4s var(--ease) both;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } }
.queue .qthumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--blush); display: grid; place-items: center; font-size: 1.3rem; }
.queue .qname { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .bar { height: 6px; border-radius: 3px; background: var(--blush); margin-top: 6px; overflow: hidden; }
.queue .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--lav)); border-radius: 3px; transition: width .2s; }
.queue .qstate { font-size: .82rem; font-weight: 800; color: var(--muted); }
.queue li.done .qstate { color: #2e9b6a; }
.queue li.err .qstate { color: #c0392b; }
.queue li.err .qname { white-space: normal; }
.qrm { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.2rem; }

/* ---------- Formos ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-card { max-width: 760px; margin: 0 auto; }
.form-card h1 { margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .9rem; color: #6d5563; }
.field input[type=text], .field input[type=password], .field input[type=date], .field textarea {
  font: 500 1rem/1.6 var(--sans); color: var(--ink); padding: 12px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: rgba(255,255,255,.85); outline: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { font-size: 1.05rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244, 166, 184, .25); }
.moods { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mood-pick span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 1.35rem; cursor: pointer;
  background: rgba(255,255,255,.85); border: 1.5px solid var(--line); transition: transform .3s var(--bounce), background .2s;
}
.mood-pick span:hover { transform: scale(1.15) rotate(-6deg); }
.mood-pick input:checked + span { background: var(--blush); border-color: var(--rose-deep); transform: scale(1.12); box-shadow: 0 6px 14px -6px var(--rose-deep); }
.login-ico { font-size: 3rem; animation: bob 3s ease-in-out infinite; }
.card.narrow h1 { margin: 6px 0 6px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); font-weight: 600; }
.empty-ico { font-size: 3.4rem; animation: bob 3.5s ease-in-out infinite; margin-bottom: 6px; }

/* ---------- Peržiūros langas ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr 380px;
  background: rgb(36, 20, 31); animation: fadeIn .25s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-main { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 20px 70px; }
.lb-stage { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lb-frame { position: relative; display: inline-block; max-width: 100%; animation: zoomIn .35s var(--ease) both; }
.lb-frame img, .lb-frame video { display: block; max-width: 100%; max-height: calc(100vh - 40px); border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.lb-reacts { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.lb-reacts:empty { display: none; }
.lb-reacts, .soc-badge .emo { background: rgba(255,255,255,.94); border-radius: 999px; padding: 4px 10px 4px 6px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.lb-reacts i, .soc-badge .emo i { font-style: normal; display: inline-block; margin-right: -3px; font-size: 1.25rem; line-height: 1.2; }
.lb-reacts b, .soc-badge .emo b { margin-left: 8px; font-size: .85rem; color: var(--ink); }
.lb-reacts i.new, .soc-badge .emo i.new { animation: reactLand .7s var(--bounce); }
@keyframes reactLand { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.6) rotate(10deg); } 100% { transform: none; } }
.lb-frame.is-audio .lb-reacts { top: 14px; left: 14px; }
.lb-audio { width: min(440px, 80vw); padding: 36px 26px; border-radius: 26px; background: linear-gradient(135deg, #fff, #f3ecff); text-align: center; }
.lb-audio-ico { font-size: 3.4rem; animation: bob 3s ease-in-out infinite; margin-bottom: 12px; }
.lb-audio audio { width: 100%; }
@keyframes zoomIn { from { transform: scale(.88); opacity: 0; } }
.lb-side {
  background: var(--cream); overflow-y: auto; padding: 70px 22px 24px; animation: sideIn .45s var(--ease) both;
  box-shadow: -20px 0 40px rgba(0,0,0,.2);
}
@keyframes sideIn { from { transform: translateX(40px); opacity: 0; } }
.lb-caption { font: 600 1.25rem var(--serif); }
.lb-caption:empty { display: none; }
.lb-date { color: var(--rose-deep); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 14px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 3; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.16);
  width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: background .2s, transform .3s var(--bounce);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }
.lb-close { top: 14px; right: calc(380px + 14px); color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.lb-close:hover { background: var(--blush); }
.lb-prev { left: 14px; top: 50%; margin-top: -25px; }
.lb-next { left: calc(100% - 380px - 64px); top: 50%; margin-top: -25px; }

/* ---------- Komentarai ir reakcijos ---------- */
.social { margin-top: 26px; }
.lb-side .social { margin-top: 0; }
.social.stale { opacity: .45; transition: opacity .2s; }
.social.loading { min-height: 120px; background: linear-gradient(90deg, transparent, rgba(244,166,184,.15), transparent); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 18px; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.react {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font: 800 .9rem var(--sans); color: var(--ink);
  transition: transform .3s var(--bounce), background .2s, border-color .2s;
}
.react .re { font-size: 1.2rem; line-height: 1; display: inline-block; transition: transform .3s var(--bounce); }
.react:hover .re { transform: scale(1.3) rotate(-10deg); }
.react.mine { background: var(--blush); border-color: var(--rose-deep); color: var(--berry); }
.react.pop .re { animation: reactPop .5s var(--bounce); }
@keyframes reactPop { 40% { transform: scale(1.8) rotate(12deg); } }
.comments-h { margin: 22px 0 10px; font: 600 1.15rem var(--serif); }
.comments-h span { font: 800 .8rem var(--sans); background: var(--blush); color: var(--berry); border-radius: 999px; padding: 2px 9px; vertical-align: 3px; }
.comments-h span:empty { display: none; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.no-comments { color: var(--muted); font-weight: 600; font-size: .92rem; }
.comment { position: relative; display: flex; gap: 10px; align-items: flex-start; animation: slideIn .35s var(--ease) both; }
.comment.new .cbody { animation: glow 1.6s ease; }
@keyframes glow { 0% { box-shadow: 0 0 0 4px rgba(244,166,184,.6); } 100% { box-shadow: 0 2px 10px -6px rgba(194,80,122,.4); } }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 3px 8px -3px rgba(0,0,0,.25); }
.cbody { flex: 1; min-width: 0; background: #fff; border-radius: 4px 18px 18px 18px; padding: 8px 14px 10px; box-shadow: 0 2px 10px -6px rgba(194,80,122,.4); }
.by-admin .cbody { background: linear-gradient(135deg, #fff, var(--blush)); }
.chead { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.chead time { color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cbody p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.cdel { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #b03030; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s; }
.comment:hover .cdel { opacity: 1; }
@media (hover: none) { .cdel { opacity: 1; } }
.comment-form { display: grid; gap: 8px; margin-top: 16px; }
.comment-form input, .comment-form textarea {
  font: 500 .95rem/1.5 var(--sans); color: var(--ink); padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; outline: none; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244,166,184,.25); }
.comment-form .btn { justify-self: end; padding: 9px 18px; }
.comment-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b03030; font-weight: 700; font-size: .88rem; }
.form-err:empty { display: none; }
.entry-full .social { border-top: 1.5px dashed var(--line); padding-top: 22px; }

.soc-badge { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; pointer-events: none; }
.soc-badge > span { background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 800; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.15); display: inline-flex; align-items: center; }
.soc-badge .emo { padding: 2px 8px 2px 4px; }
.soc-badge .emo i { font-size: 1rem; }
.soc-badge .emo b { margin-left: 6px; font-size: .75rem; }
.soc-line { display: flex; gap: 10px; margin-top: 10px; font-size: .85rem; font-weight: 800; color: var(--muted); }
.audio-social { display: block; padding: 0 16px 14px; font-size: .82rem; font-weight: 800; color: var(--muted); }
.audio-social b { color: var(--berry); margin-left: 6px; }
.gallery-grid:not(.audio-grid) .tile-audio .audio-social { text-align: center; margin-top: -10px; }
.new-comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.new-comments li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.new-comments li a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-comments li a:hover { color: var(--berry); }

/* Šventinis efektas */
.burst { position: fixed; z-index: 200; pointer-events: none; font-size: 1.5rem; animation: burst 1.3s var(--ease) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.1) rotate(var(--r)); opacity: 0; }
}

/* ---------- Mobilus ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* backdrop-filter sukurtų naują fiksuoto elemento kontekstą – apatinė juosta atsidurtų viršuje */
  .topbar { justify-content: center; top: 8px; padding: 10px 18px; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; background: rgba(255,255,255,.9); }
  .nav {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40;
    justify-content: space-around; padding: 8px; border-radius: 26px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px -8px rgba(194, 80, 122, .4); border: 1px solid #fff;
  }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 10px; font-size: .68rem; border-radius: 16px; }
  .nav a.on { background: var(--blush); color: var(--berry); }
  .nav .nav-plus { width: 54px; height: 54px; border-radius: 50%; padding: 0; justify-content: center; margin-top: -26px; box-shadow: 0 10px 20px -6px var(--rose-deep); }
  .nav .nav-plus span { display: none; }
  .nav .nav-plus svg { width: 26px; height: 26px; }
  .page { padding: 22px 14px 120px; }
  .foot { padding-bottom: 110px; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 0; }
  .hero-art { order: 0; max-width: 230px; margin: 0 auto -10px; }
  .hero-actions { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 22px 18px; }
  .row { grid-template-columns: 1fr; }
  .cal-grid { gap: 4px; }
  .day { border-radius: 12px; padding: 4px 5px; }
  .day .num { font-size: .85rem; }
  .marks .m { font-size: .72rem; }
  .marks { left: 3px; bottom: 3px; }
  .wd { font-size: .68rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .moments { grid-auto-columns: 46%; }
  .lb-prev, .lb-next { display: none; }
  .lightbox { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lightbox[hidden] { display: none; }
  .lb-main { display: block; padding: 64px 10px 14px; }
  .lb-stage { max-height: none; }
  .lb-frame img, .lb-frame video { max-height: 58vh; }
  .lb-side { padding: 20px 16px 40px; border-radius: 26px 26px 0 0; box-shadow: none; overflow: visible; animation: none; }
  .lb-close { position: fixed; right: 14px; }
  .toast { top: 74px; width: max-content; max-width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .floaters { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Garso kortelė mišrioje galerijoje – kvadratinė */
.gallery-grid:not(.audio-grid) .tile-audio .audio-card {
  flex-direction: column; justify-content: center; text-align: center; aspect-ratio: 1; padding: 18px; gap: 10px;
}
.gallery-grid:not(.audio-grid) .tile-audio .audio-btn { width: 66px; height: 66px; }
.gallery-grid:not(.audio-grid) .tile-audio .audio-meta { width: 100%; }
.gallery-grid:not(.audio-grid) .tile-audio .audio-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gallery-grid:not(.audio-grid) .tile-audio .wave { justify-content: center; }
