:root {
  --bg-color: #f7f6f4;
  --bg-rgb: 247, 246, 244;

  --main-font: "Bricolage Grotesque", Arial, Helvetica, sans-serif;

  --text-color: #2f2a25;
  --soft-text: rgba(47, 42, 37, 0.58);

  --glass-bg: rgba(210, 205, 198, 0.42);
  --glass-border: rgba(170, 160, 150, 0.34);
  --glass-shadow: rgba(60, 40, 30, 0.16);

  --image-shadow: rgba(60, 40, 30, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--main-font);
  background: var(--bg-color);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   Main phone container
========================= */

.phone {
  position: relative;
  width: 100vw;
  max-width: 430px;
  height: 100dvh;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.95),
      rgba(247, 246, 244, 0.92) 45%,
      #f7f6f4 100%
    );

  background-size: 120% 120%;
  background-position: center center;
  filter: saturate(120%);
  isolation: isolate;
}

/* =========================
   Intro screen
========================= */

.intro-screen {
  position: absolute;
  inset: 0;
  z-index: 200;

  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;

  opacity: 1;
  transform: scale(1);
  pointer-events: auto;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.intro-title {
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  z-index: 3;

  pointer-events: none;
}

.intro-title h1 {
  margin: 0;

  font-family: var(--main-font);
  font-size: clamp(46px, 13vw, 66px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.08em;

  color: #000000;
}

.intro-pik {
  position: absolute;
  right: -285px;
  top: 220px;

  width: 720px;
  max-width: none;
  height: auto;

  z-index: 2;

  transform:
    translate3d(
      var(--intro-pik-x, 0px),
      var(--intro-pik-y, 0px),
      0
    )
    rotate(var(--intro-pik-r, 0deg))
    scale(var(--intro-pik-scale, 1));

  transform-origin: center center;

  filter: drop-shadow(0 22px 28px rgba(60, 40, 30, 0.18));

  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;

  will-change: transform;
  transition: transform 0.12s ease-out;
}

.intro-start {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 10;

  min-width: 170px;
  height: 50px;
  padding: 0 26px;
  border-radius: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(170, 160, 150, 0.34);
  background: rgba(210, 205, 198, 0.42);

  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);

  box-shadow:
    0 12px 28px rgba(60, 40, 30, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -10px 22px rgba(80, 60, 45, 0.08);

  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;

  color: #2f2a25;
  -webkit-text-fill-color: #2f2a25;

  cursor: pointer;
  pointer-events: auto;
}

.phone.started .intro-screen {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* =========================
   App screen
========================= */

.app-screen {
  position: absolute;
  inset: 0;
  z-index: 1;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.35s ease;
}

.phone.started .app-screen {
  opacity: 1;
  pointer-events: auto;
}

.app-header {
  position: fixed;
  top: 18px;
  left: 50%;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
  z-index: 30;

  text-align: center;
  pointer-events: none;
}

.app-header h1 {
  margin: 0;

  font-size: 28px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.08em;

  color: var(--text-color);
}

.top-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;

  width: 100%;
  height: 112px;

  background: linear-gradient(
    to bottom,
    var(--bg-color) 35%,
    rgba(var(--bg-rgb), 0)
  );

  pointer-events: none;
}

.bottom-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;

  width: 100%;
  height: 112px;

  background: linear-gradient(
    to top,
    var(--bg-color) 35%,
    rgba(var(--bg-rgb), 0)
  );

  pointer-events: none;
}

/* =========================
   Scroll area
========================= */

.scroll-area {
  width: 100%;
  height: 100%;

  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  padding: 108px 0 96px;

  background: transparent;
  touch-action: pan-y;
}

.scroll-area::-webkit-scrollbar {
  display: none;
}

.item {
  position: relative;
  height: 230px;

  scroll-snap-align: center;

  display: flex;
  justify-content: center;
  align-items: center;

  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.item img {
  width: 215px;
  height: 215px;

  object-fit: contain;
  display: block;

  user-select: none;
  -webkit-user-drag: none;

  filter: drop-shadow(0 18px 18px var(--image-shadow));

  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    opacity 0.28s ease;
}

.item.active img {
  transform: scale(1.12);
  filter: drop-shadow(0 24px 24px rgba(60, 40, 30, 0.24));
}

.item:not(.active) img {
  opacity: 0.76;
}

.item.tap-feedback img {
  transform: scale(1.18);
}

.item-label {
  display: none !important;
}

/* =========================
   Bottom glass hint
========================= */

.tap-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;

  min-width: 170px;
  height: 50px;
  padding: 0 26px;
  border-radius: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;

  color: #2f2a25 !important;
  -webkit-text-fill-color: #2f2a25 !important;
  text-shadow: none !important;

  background: var(--glass-bg);

  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);

  border: 2px solid var(--glass-border);

  box-shadow:
    0 12px 28px var(--glass-shadow),
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    inset 0 -10px 22px rgba(80, 60, 45, 0.08);

  pointer-events: none;
  overflow: hidden;
}

.tap-hint,
.tap-hint * {
  color: #2f2a25 !important;
  -webkit-text-fill-color: #2f2a25 !important;
}

/* =========================
   Love interaction
========================= */

.heart-layer {
  position: fixed;
  inset: 0;
  z-index: 80;

  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  left: 50%;
  bottom: 90px;

  font-size: 28px;
  line-height: 1;
  opacity: 0;

  transform: translate(-50%, 0) scale(0.6);
  animation: floatHeart 1.25s ease-out forwards;

  filter: drop-shadow(0 8px 12px rgba(120, 40, 70, 0.2));
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.55) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--heart-x)),
        calc(-1 * var(--heart-y))
      )
      scale(1.18)
      rotate(var(--heart-r));
  }
}

.item.love-glow img {
  filter:
    drop-shadow(0 22px 26px rgba(160, 0, 60, 0.34))
    drop-shadow(0 0 22px rgba(255, 40, 110, 0.38));
}

.phone.love-burst::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 75;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 70, 120, 0) 36%,
      rgba(255, 40, 100, 0.16) 62%,
      rgba(255, 0, 80, 0.38) 100%
    );

  box-shadow:
    inset 0 0 48px rgba(255, 40, 100, 0.5),
    inset 0 0 100px rgba(255, 0, 80, 0.32),
    0 0 36px rgba(255, 40, 100, 0.28);

  opacity: 0;
  animation: loveScreenGlow 1.05s ease-out forwards;
}

.phone.love-burst::after {
  content: "♥";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 76;

  pointer-events: none;

  transform: translate(-50%, -50%) scale(0.45);
  transform-origin: center;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 360px;
  line-height: 1;

  color: rgba(255, 35, 100, 0.22);

  filter: blur(10px);
  text-shadow:
    0 0 28px rgba(255, 40, 110, 0.55),
    0 0 62px rgba(255, 0, 90, 0.38),
    0 0 110px rgba(255, 0, 80, 0.26);

  opacity: 0;
  animation: loveHeartBurst 1.05s ease-out forwards;
}

@keyframes loveScreenGlow {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  18% {
    opacity: 1;
    filter: blur(5px);
  }

  55% {
    opacity: 0.82;
    filter: blur(7px);
  }

  100% {
    opacity: 0;
    filter: blur(16px);
  }
}

@keyframes loveHeartBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
    filter: blur(18px);
  }

  18% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.72);
    filter: blur(10px);
  }

  52% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.86);
    filter: blur(13px);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(24px);
  }
}

.item.love-pulse img {
  animation: loveImagePulse 0.7s cubic-bezier(0.25, 1.4, 0.35, 1) both;
}

@keyframes loveImagePulse {
  0% {
    transform: scale(1.12);
  }

  35% {
    transform: scale(1.2) rotate(-2deg);
  }

  68% {
    transform: scale(1.15) rotate(2deg);
  }

  100% {
    transform: scale(1.12) rotate(0deg);
  }
}

/* =========================
   Play interaction
========================= */

.floating-play-particle {
  position: absolute;
  left: 50%;
  bottom: 110px;

  font-size: 24px;
  line-height: 1;
  opacity: 0;

  transform: translate(-50%, 0) scale(0.6);
  animation: floatPlayParticle 1.15s ease-out forwards;

  filter: drop-shadow(0 8px 12px rgba(50, 80, 180, 0.22));
}

@keyframes floatPlayParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--play-x)),
        calc(-1 * var(--play-y))
      )
      scale(1.18)
      rotate(var(--play-r));
  }
}

.item.play-glow img {
  filter:
    drop-shadow(0 24px 26px rgba(255, 210, 0, 0.35))
    drop-shadow(0 0 18px rgba(0, 180, 255, 0.36))
    drop-shadow(0 0 24px rgba(255, 70, 180, 0.28));
}

.item.play-shake img {
  animation: playImageShake 0.75s cubic-bezier(0.25, 1.4, 0.35, 1) both;
}

@keyframes playImageShake {
  0% {
    transform: scale(1.12) rotate(0deg) translate(0, 0);
  }

  12% {
    transform: scale(1.16) rotate(-8deg) translate(-6px, 2px);
  }

  25% {
    transform: scale(1.16) rotate(7deg) translate(7px, -3px);
  }

  38% {
    transform: scale(1.15) rotate(-6deg) translate(-5px, 3px);
  }

  52% {
    transform: scale(1.14) rotate(5deg) translate(5px, -2px);
  }

  68% {
    transform: scale(1.13) rotate(-3deg) translate(-3px, 1px);
  }

  84% {
    transform: scale(1.12) rotate(2deg) translate(2px, 0);
  }

  100% {
    transform: scale(1.12) rotate(0deg) translate(0, 0);
  }
}

.phone.play-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 75;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 230, 80, 0) 38%,
      rgba(255, 218, 55, 0.18) 62%,
      rgba(255, 195, 20, 0.42) 100%
    );

  box-shadow:
    inset 0 0 42px rgba(255, 220, 45, 0.55),
    inset 0 0 90px rgba(255, 180, 0, 0.32),
    0 0 36px rgba(255, 210, 40, 0.35);

  opacity: 0;
  animation: yellowScreenGlow 0.95s ease-out forwards;
}

@keyframes yellowScreenGlow {
  0% {
    opacity: 0;
    filter: blur(8px);
  }

  18% {
    opacity: 1;
    filter: blur(4px);
  }

  55% {
    opacity: 0.85;
    filter: blur(6px);
  }

  100% {
    opacity: 0;
    filter: blur(14px);
  }
}

/* =========================
   Feed interaction
========================= */

.cookie-layer {
  position: fixed;
  inset: 0;
  z-index: 82;

  pointer-events: none;
  overflow: hidden;
}

.floating-cookie {
  position: absolute;
  left: var(--cookie-left);
  bottom: var(--cookie-bottom);

  width: var(--cookie-size);
  height: var(--cookie-size);

 background-image: url("../images/pikpik-care/cookie.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0;

  transform:
    translate3d(-50%, 0, 0)
    rotate(var(--cookie-rotate))
    scale(0.7);

  filter:
    drop-shadow(0 10px 14px rgba(80, 45, 20, 0.22))
    saturate(115%);

  animation: floatCookie var(--cookie-duration) ease-out forwards;
}

@keyframes floatCookie {
  0% {
    opacity: 0;
    transform:
      translate3d(-50%, 0, 0)
      rotate(var(--cookie-rotate))
      scale(0.55);
  }

  12% {
    opacity: 1;
  }

  70% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        calc(-50% + var(--cookie-drift)),
        calc(-1 * var(--cookie-rise)),
        0
      )
      rotate(calc(var(--cookie-rotate) + var(--cookie-spin)))
      scale(1.05);
  }
}

.item.feed-bounce img {
  animation: feedImageBounce 0.72s cubic-bezier(0.25, 1.4, 0.35, 1) both;
}

@keyframes feedImageBounce {
  0% {
    transform: scale(1.12);
  }

  35% {
    transform: scale(1.2) rotate(2deg);
  }

  68% {
    transform: scale(1.14) rotate(-2deg);
  }

  100% {
    transform: scale(1.12) rotate(0deg);
  }
}

/* =========================
   Unhappy warning
========================= */

.item.unhappy-shake img {
  animation: unhappyImageShake 0.46s cubic-bezier(0.25, 1.4, 0.35, 1) infinite;

  filter:
    drop-shadow(0 22px 26px rgba(60, 40, 30, 0.3))
    drop-shadow(0 0 24px rgba(255, 0, 0, 0.38));
}

@keyframes unhappyImageShake {
  0% {
    transform: scale(1.12) rotate(0deg) translate(0, 0);
  }

  18% {
    transform: scale(1.16) rotate(-8deg) translate(-7px, 2px);
  }

  36% {
    transform: scale(1.16) rotate(8deg) translate(7px, -2px);
  }

  54% {
    transform: scale(1.15) rotate(-5deg) translate(-5px, 2px);
  }

  72% {
    transform: scale(1.15) rotate(5deg) translate(5px, -1px);
  }

  100% {
    transform: scale(1.12) rotate(0deg) translate(0, 0);
  }
}

.phone.unhappy-burst::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 78;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 0, 0, 0.06) 0%,
      rgba(255, 0, 0, 0.28) 42%,
      rgba(255, 0, 0, 0.7) 100%
    );

  box-shadow:
    inset 0 0 46px rgba(255, 0, 0, 0.95),
    inset 0 0 110px rgba(255, 0, 0, 0.72),
    0 0 48px rgba(255, 0, 0, 0.65);

  opacity: 0;
  animation: unhappyRedFlash 0.42s ease-in-out infinite;
}

.phone.unhappy-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 79;
  pointer-events: none;

  background:
    linear-gradient(
      135deg,
      rgba(255, 0, 0, 0.24),
      rgba(255, 255, 255, 0.02),
      rgba(255, 0, 0, 0.28)
    );

  mix-blend-mode: screen;
  opacity: 0;
  animation: unhappyRedStrobe 0.28s steps(2, end) infinite;
}

@keyframes unhappyRedFlash {
  0% {
    opacity: 0.12;
    filter: blur(14px) brightness(1);
  }

  45% {
    opacity: 1;
    filter: blur(6px) brightness(1.3);
  }

  100% {
    opacity: 0.22;
    filter: blur(16px) brightness(1);
  }
}

@keyframes unhappyRedStrobe {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.16;
  }
}

/* =========================
   Responsive
========================= */

@media (max-height: 720px) {
  .intro-title h1 {
    font-size: 46px;
  }

  .intro-pik {
    width: 620px;
    right: -245px;
    top: 180px;
  }

  .app-header h1 {
    font-size: 24px;
  }

  .scroll-area {
    padding: 92px 0 78px;
  }

  .item {
    height: 205px;
  }

  .item img {
    width: 195px;
    height: 195px;
  }

  .item.active img {
    transform: scale(1.09);
  }

  .item.tap-feedback img {
    transform: scale(1.14);
  }

  .tap-hint {
    bottom: 18px;
    height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .intro-pik {
    width: 620px;
    right: -270px;
  }

  .app-header h1 {
    font-size: 24px;
  }

  .item {
    height: 210px;
  }

  .item img {
    width: 195px;
    height: 195px;
  }
}

/* =========================
   Sleep interaction
========================= */

/* Sleep item becomes the container for the blue circle */
.item.sleep-breathe {
  position: relative;
}

/* Make sleep.png stay above the blue circle */
.item.sleep-breathe img {
  position: relative;
  z-index: 3;

  animation: sleepImageBreath 4.2s ease-in-out forwards;

  filter:
    drop-shadow(0 24px 26px rgba(70, 90, 220, 0.28))
    drop-shadow(0 0 28px rgba(105, 130, 255, 0.32));
}

/* Inner soft blue gradient circle behind sleep.png */
.item.sleep-breathe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  pointer-events: none;

  width: 320px;
  height: 320px;
  border-radius: 50%;

  transform: translate(-50%, -50%) scale(0.7);

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(170, 185, 255, 0.44) 20%,
      rgba(125, 140, 250, 0.36) 42%,
      rgba(90, 105, 230, 0.24) 62%,
      rgba(90, 105, 230, 0) 78%
    );

  box-shadow:
    0 0 0 20px rgba(115, 130, 245, 0.08),
    0 0 0 46px rgba(115, 130, 245, 0.06),
    0 0 0 76px rgba(115, 130, 245, 0.04),
    0 0 58px rgba(90, 105, 235, 0.32);

  opacity: 0;
  animation: sleepCircleBreath 4.2s ease-in-out forwards;
}

/* Larger outer halo, also behind sleep.png */
.item.sleep-breathe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  pointer-events: none;

  width: 390px;
  height: 390px;
  border-radius: 50%;

  transform: translate(-50%, -50%) scale(0.65);

  background:
    radial-gradient(
      circle,
      rgba(145, 160, 255, 0.2) 0%,
      rgba(110, 130, 245, 0.16) 34%,
      rgba(85, 100, 230, 0.12) 58%,
      rgba(85, 100, 230, 0) 78%
    );

  opacity: 0;
  animation: sleepOuterGlow 4.2s ease-in-out forwards;
}

@keyframes sleepCircleBreath {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
  }

  18% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.82);
  }

  42% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.02);
  }

  66% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.9);
  }

  86% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1.12);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.24);
  }
}

@keyframes sleepOuterGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
  }

  20% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(1.08);
  }

  80% {
    opacity: 0.36;
    transform: translate(-50%, -50%) scale(1.22);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.34);
  }
}

@keyframes sleepImageBreath {
  0% {
    transform: scale(1.12);
  }

  25% {
    transform: scale(1.16) translateY(-3px);
  }

  50% {
    transform: scale(1.1) translateY(2px);
  }

  75% {
    transform: scale(1.15) translateY(-2px);
  }

  100% {
    transform: scale(1.12) translateY(0);
  }
}
/* =========================
   Info liquid glass dialog
========================= */

.info-panel {
  position: fixed;
  inset: 0;
  z-index: 130;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 92px 22px 28px;

  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(255, 255, 255, 0.46),
      rgba(247, 246, 244, 0.24) 38%,
      rgba(247, 246, 244, 0.08) 100%
    );

  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.32s ease,
    backdrop-filter 0.32s ease;
}

.info-panel.show {
  opacity: 1;
  pointer-events: auto;
}

/* Title outside the glass card, replacing the original Pik Pik Care position */
.info-floating-title {
  position: fixed;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 132;

  margin: 0;

  font-family: var(--main-font);
  font-size: 28px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.06em;

  color: #d92b6a;
  -webkit-text-fill-color: #d92b6a;

  text-align: center;

  text-shadow:
    0 6px 18px rgba(217, 43, 106, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.5);

  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.25, 1.4, 0.35, 1);
}

.info-panel.show .info-floating-title {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Main glass container */
.info-dialog {
  position: relative;

  width: min(360px, 90vw);
  max-height: 76vh;

  border-radius: 36px;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.24) 42%,
      rgba(255, 255, 255, 0.42) 100%
    );

  border: 1.5px solid rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(24px) saturate(170%) contrast(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(170%) contrast(1.05);

  box-shadow:
    0 26px 70px rgba(60, 40, 30, 0.18),
    0 10px 26px rgba(60, 40, 30, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.86),
    inset 0 -18px 42px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(70, 50, 40, 0.08);

  transform: translateY(18px) scale(0.92);
  opacity: 0;

  transition:
    transform 0.42s cubic-bezier(0.2, 1.35, 0.28, 1),
    opacity 0.28s ease;

  isolation: isolate;
}

.info-panel.show .info-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Glass highlight layer */
.info-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 8%,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.18) 24%,
      rgba(255, 255, 255, 0) 46%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.48),
      rgba(255, 255, 255, 0.08) 28%,
      rgba(255, 255, 255, 0) 52%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.04) 42%,
      rgba(255, 255, 255, 0.24) 100%
    );

  opacity: 0.9;
}

/* Subtle liquid refraction glow */
.info-dialog::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;

  border-radius: 35px;
  pointer-events: none;

  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.18) 62%,
      rgba(255, 255, 255, 0.5) 100%
    );

  mix-blend-mode: screen;
  opacity: 0.55;
  filter: blur(0.3px);
}

.info-dialog-body {
  max-height: 76vh;
  overflow-y: auto;

  padding: 30px 24px 24px;

  scrollbar-width: none;
}

.info-dialog-body::-webkit-scrollbar {
  display: none;
}

.info-dialog-body h2 {
  margin: 0 0 18px;

  font-size: 34px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.08em;

  color: rgba(47, 42, 37, 0.92);
}

.info-dialog-body p {
  margin: 0 0 16px;

  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.035em;

  color: rgba(47, 42, 37, 0.68);
}

/* Liquid glass return button */
.info-return {
  position: relative;

  margin: 26px auto 0;

  width: 100%;
  min-height: 60px;
  padding: 8px 18px;

  border-radius: 999px;

  border: 1.5px solid rgba(255, 255, 255, 0.72);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.56),
      rgba(255, 255, 255, 0.24) 45%,
      rgba(255, 255, 255, 0.46) 100%
    );

  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  box-shadow:
    0 14px 32px rgba(60, 40, 30, 0.12),
    0 4px 12px rgba(60, 40, 30, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.86),
    inset 0 -12px 24px rgba(255, 255, 255, 0.18);

  font-family: var(--main-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;

  color: rgba(47, 42, 37, 0.82);
  -webkit-text-fill-color: rgba(47, 42, 37, 0.82);

  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.info-return::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;

  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.16) 28%,
      rgba(255, 255, 255, 0) 54%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.38),
      rgba(255, 255, 255, 0.02)
    );

  pointer-events: none;
  opacity: 0.86;
}

.info-return:active {
  transform: scale(0.97);

  box-shadow:
    0 8px 20px rgba(60, 40, 30, 0.12),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.86),
    inset 0 -8px 18px rgba(255, 255, 255, 0.18);
}

.info-return img {
  position: relative;
  z-index: 2;

  width: 34px;
  height: 34px;
  object-fit: contain;

  filter:
    drop-shadow(0 5px 8px rgba(60, 40, 30, 0.16))
    saturate(112%);
}

.info-return span {
  position: relative;
  z-index: 2;
}

