/* ==========================================================
   Tương tác kiểu unseen.co
   ========================================================== */

/* Phóng ảnh thẻ mục lục khi rê chuột */
.index-card img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.index-card:hover img { transform: scale(1.1); }

/* Ảnh cuộn phim phóng theo tốc độ kéo */
.frame { overflow: hidden; border-radius: 3px; }
.frame img { transform: scale(calc(1 + var(--v, 0))); transition: none; }

/* Màn chuyển võng */
.wipe { position: fixed; inset: 0; z-index: 190; pointer-events: none; visibility: hidden; }
.wipe.is-on { visibility: visible; pointer-events: auto; }
.wipe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wipe-logo { position: absolute; left: 50%; top: 50%; width: clamp(130px, 14vw, 210px); height: auto; translate: -50% -50%; opacity: 0; filter: drop-shadow(0 14px 36px rgba(0,0,0,.35)); }
@media (max-width: 767px) { .wipe-logo { width: 130px; } }

/* Thư tâm tình trôi nhẹ */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.wish-entry { animation: bob 6s ease-in-out infinite; }
.wish-entry:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.wish-entry:nth-child(3n) { animation-duration: 8.5s; animation-delay: -4s; }

/* Menu: ngăn kéo trượt từ phải – toàn bộ kiểu nằm ở main.css (khối "Menu") */

@media (prefers-reduced-motion: reduce) {
  .wish-entry { animation: none; }
}

/* Logo góc trái: kính mờ thay cho nền trắng đặc */
.brand {
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  box-shadow: 0 10px 30px -14px rgba(12, 46, 27, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: var(--green-deep);
  text-shadow: 0 1px 10px rgba(255, 255, 255, .7);
}
.brand img { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .brand { background: rgba(255, 255, 255, .85); }
}

/* Khung hiển thị mùa (góc trái dưới): hình vuông bo góc thay cho viên tròn */
.season-pill { border-radius: 16px; padding: 6px 14px 6px 6px; }
.season-pill img { border-radius: 11px; }

/* Nút gỡ lời nhắn (chủ lời nhắn hoặc chủ trang) */
.wish-remove { margin-top: 12px; border: 0; background: none; padding: 0; color: var(--muted); font: 600 13px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wish-remove:hover { color: #A33A2A; }
.wish-form :disabled { opacity: .55; cursor: not-allowed; }

/* Chuyển cảnh khi nhảy xa (ux.js transitionTo) */
.page-fade { position: fixed; inset: 0; z-index: 180; pointer-events: none; background: var(--page-bg, #F4F8EE); opacity: 0; transition: opacity .22s ease; }
.page-fade.is-on { opacity: 1; pointer-events: auto; }
.wipe { display: none !important; }
