:root{--holo-x:50%;--holo-y:24%}
.ambient-prism{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.16;
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y),rgba(255,255,255,.1),transparent 17%),
    linear-gradient(112deg,transparent 0 41%,rgba(111,214,255,.055) 47%,rgba(217,158,255,.065) 52%,rgba(255,215,145,.055) 58%,transparent 66%);
  mix-blend-mode:screen;
  transition:opacity .35s ease;
}
.app-shell{position:relative;z-index:1}
body.prism-bloom .ambient-prism{opacity:.34;animation:prism-breathe 1.45s ease-out}
.holo-surface{position:relative;isolation:isolate}
.holo-surface::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
  opacity:.11;
  background:linear-gradient(118deg,transparent 20%,rgba(111,218,255,.12) 35%,rgba(214,164,255,.14) 49%,rgba(255,221,151,.1) 62%,transparent 78%);
  background-size:230% 230%;
  background-position:var(--holo-x) var(--holo-y);
  mix-blend-mode:screen;
  transition:opacity .25s ease,background-position .2s ease;
}
.holo-surface:hover::after,.holo-surface:focus-within::after{opacity:.2}

.wind-chime-button{
  position:relative;
  width:46px;
  height:46px;
  flex:0 0 auto;
  overflow:visible;
  border:1px solid rgba(215,202,248,.22);
  border-radius:16px;
  color:#f3e8ff;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(114,91,176,.07));
  box-shadow:inset 0 0 16px rgba(255,255,255,.045),0 8px 24px rgba(0,0,0,.2);
}
.wind-chime-button .chime-ring{
  position:absolute;
  left:11px;
  top:8px;
  width:23px;
  height:23px;
  border:1px solid rgba(233,221,255,.72);
  border-radius:50%;
  background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.22),rgba(135,106,203,.08) 60%,transparent 61%);
  box-shadow:inset 0 0 10px rgba(255,255,255,.08),0 0 12px rgba(179,142,241,.11);
}
.wind-chime-button .chime-ring::before{
  content:"";
  position:absolute;
  left:6px;
  top:4px;
  width:9px;
  height:11px;
  border-radius:50%;
  border-left:2px solid #f2d2a3;
  transform:rotate(18deg);
  filter:drop-shadow(0 0 4px rgba(255,210,151,.45));
}
.wind-chime-button .chime-thread{
  position:absolute;
  top:29px;
  width:1px;
  height:10px;
  background:linear-gradient(#e9ddff,rgba(255,255,255,.1));
  transform-origin:top;
}
.wind-chime-button .chime-thread::after{
  content:"";
  position:absolute;
  left:-3px;
  bottom:-4px;
  width:7px;
  height:7px;
  transform:rotate(45deg);
  border:1px solid rgba(220,205,255,.82);
  border-radius:2px;
  background:linear-gradient(135deg,rgba(255,255,255,.52),rgba(126,202,241,.18),rgba(222,158,255,.19));
  box-shadow:0 0 6px rgba(184,149,244,.2);
}
.wind-chime-button .chime-thread.one{left:15px;height:8px}
.wind-chime-button .chime-thread.two{left:22px;height:12px}
.wind-chime-button .chime-thread.three{left:29px;height:9px}
.wind-chime-button .chime-butterfly{
  position:absolute;
  right:-3px;
  bottom:5px;
  width:9px;
  height:7px;
}
.wind-chime-button .chime-butterfly::before,.wind-chime-button .chime-butterfly::after{
  content:"";
  position:absolute;
  top:0;
  width:6px;
  height:7px;
  border:1px solid rgba(233,191,255,.82);
  border-radius:75% 25% 70% 30%;
}
.wind-chime-button .chime-butterfly::before{left:-1px;transform:rotate(-26deg)}
.wind-chime-button .chime-butterfly::after{right:-1px;transform:scaleX(-1) rotate(-26deg)}
.wind-chime-button.ringing .chime-thread.one{animation:chime-left .8s ease-out}
.wind-chime-button.ringing .chime-thread.two{animation:chime-mid .9s ease-out}
.wind-chime-button.ringing .chime-thread.three{animation:chime-right .76s ease-out}
.wind-chime-button.ringing .chime-butterfly{animation:butterfly-glint 1s ease-out}

@keyframes chime-left{0%,100%{transform:rotate(0)}30%{transform:rotate(11deg)}65%{transform:rotate(-7deg)}}
@keyframes chime-mid{0%,100%{transform:rotate(0)}28%{transform:rotate(-10deg)}62%{transform:rotate(6deg)}}
@keyframes chime-right{0%,100%{transform:rotate(0)}35%{transform:rotate(9deg)}68%{transform:rotate(-6deg)}}
@keyframes butterfly-glint{0%,100%{filter:none;transform:translateY(0)}35%{filter:drop-shadow(0 0 7px rgba(214,178,255,.85));transform:translateY(1px)}}
@keyframes prism-breathe{0%{opacity:.13}35%{opacity:.38}100%{opacity:.16}}

/* Final mockup alignment pass */
@media(max-width:620px){
  body{
    background:
      radial-gradient(circle at 5% 18%,rgba(67,82,172,.2),transparent 24%),
      radial-gradient(circle at 96% 42%,rgba(112,70,173,.14),transparent 26%),
      linear-gradient(165deg,#070b20 0%,#101431 52%,#090d23 100%);
  }
  body::after{
    opacity:.95;
    background:
      radial-gradient(circle at 2% 86%,rgba(109,76,181,.27),transparent 21%),
      radial-gradient(circle at 10% 96%,rgba(78,100,183,.2),transparent 20%),
      radial-gradient(circle at 98% 90%,rgba(91,62,151,.18),transparent 22%);
  }
  .ambient-prism{opacity:.075}
  .holo-surface::after{opacity:.055}
  .app-shell{padding:8px 18px calc(138px + env(safe-area-inset-bottom))}
  .topbar{
    position:relative;
    min-height:58px;
    gap:9px;
    padding:7px 0 13px;
    background:transparent;
    backdrop-filter:none;
  }
  .logo{width:44px;height:44px;border-radius:14px}
  .brand strong{font-size:18px}
  .brand span{
    max-width:none;
    margin-top:2px;
    overflow:visible;
    text-overflow:clip;
    white-space:nowrap;
    font-size:10.5px;
    letter-spacing:.01em;
  }
  .icon-button,.wind-chime-button{width:38px;height:38px;border-radius:13px}
  .icon-button{font-size:18px}
  .wind-chime-button .chime-ring{left:8px;top:6px;width:20px;height:20px}
  .wind-chime-button .chime-ring::before{left:5px;top:3px;width:8px;height:10px}
  .wind-chime-button .chime-thread{top:24px}
  .wind-chime-button .chime-thread.one{left:12px;height:7px}
  .wind-chime-button .chime-thread.two{left:18px;height:10px}
  .wind-chime-button .chime-thread.three{left:24px;height:8px}
  .wind-chime-button .chime-butterfly{right:-2px;bottom:4px;transform:scale(.86)}

  .glass-card{
    border-color:rgba(207,199,255,.14);
    background:linear-gradient(145deg,rgba(35,39,83,.78),rgba(17,23,54,.9));
    box-shadow:0 18px 42px rgba(2,4,20,.27),inset 0 1px rgba(255,255,255,.035);
  }
  .welcome-card{
    grid-template-columns:44% 56%;
    min-height:238px;
    border-radius:23px;
  }
  .hero-photo-wrap::after{background:linear-gradient(90deg,transparent 70%,rgba(17,23,54,.58))}
  .family-photo{object-position:48% center}
  .welcome-copy{padding:18px 15px 18px 16px}
  .eyebrow,.section-kicker,.card-copy small,.memory-preview small,.stat-card small,.door-note small,.sleep-card small{font-size:10px;letter-spacing:.09em}
  .welcome-copy h1{margin:7px 0 8px;font-size:25px;line-height:1.08;letter-spacing:-.035em}
  .welcome-copy p{font-size:11px;line-height:1.62;-webkit-line-clamp:3}
  .continue-button{gap:9px;margin-top:14px;padding:11px 16px;border-radius:14px;font-size:13px}
  .continue-button span{font-size:19px}

  .home-content{gap:11px;margin-top:12px}
  .conversation-card{gap:12px;padding:15px 16px;border-radius:20px}
  .soft-icon{width:38px;height:38px;border-radius:13px}
  .card-copy strong{margin:3px 0 2px;font-size:16px}
  .card-copy>span{font-size:10.5px}
  .arrow{font-size:25px}
  .memory-preview,.door-note,.stat-card{padding:16px 17px;border-radius:20px}
  .card-heading h2,.card-heading h3{font-size:17px}
  .memory-preview p{margin-top:11px;font-size:12px;line-height:1.65}
  blockquote{margin-top:11px;font-size:12.5px;line-height:1.72}
  .home-stats{grid-template-columns:.92fr 1.08fr;gap:10px}
  .stat-card{min-height:104px}
  .stat-card strong{margin:6px 0 3px;font-size:25px}
  .stat-card>span:not(.energy-track){font-size:10px}
  .energy-card{grid-template-columns:1fr auto;gap:7px}
  .energy-card .energy-track{grid-column:1/-1;grid-row:2;height:6px}
  .energy-card button{grid-column:2;grid-row:1;padding:8px 9px;border-radius:11px;font-size:9px}

  .page-heading{margin:10px 3px 13px}
  .page-heading h2{font-size:23px}
  .status-dot{padding:6px 8px;font-size:8.5px}
  .chat-panel{min-height:calc(100vh - 170px);padding:14px;border-radius:22px}
  .date-pill{margin-bottom:16px;padding:5px 9px}
  .messages{gap:9px;padding-bottom:18px}
  .message{max-width:84%;padding:10px 12px;font-size:12.5px;line-height:1.55}
  .composer{bottom:73px;padding:6px 6px 6px 13px;border-radius:19px}
  .composer button{width:40px;height:40px;font-size:20px}

  .memory-compose{padding:16px;border-radius:20px}
  textarea{min-height:96px;padding:13px}
  .memory-list{gap:11px;margin-top:13px;padding-left:23px}
  .memory-card{padding:15px 16px;border-radius:19px}
  .memory-card p{font-size:12.5px}

  .album-filters{margin-bottom:12px}
  .album-filters button{padding:7px 12px;font-size:10px}
  .album-grid{gap:10px}
  .album-card{border-radius:19px}
  .album-card figcaption{padding:12px 13px}

  .bottom-nav{
    width:calc(100% - 36px);
    bottom:max(10px,env(safe-area-inset-bottom));
    padding:4px;
    border-radius:20px;
    background:rgba(12,16,39,.88);
    box-shadow:0 16px 36px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.03);
  }
  .bottom-nav button{
    min-height:45px;
    gap:2px;
    border-radius:14px;
    font-size:9px;
  }
  .bottom-nav button .nav-icon{font-size:16px}
  .bottom-nav button.active{
    background:linear-gradient(135deg,rgba(112,76,178,.55),rgba(76,59,132,.46));
    box-shadow:inset 0 0 14px rgba(255,255,255,.03),0 5px 16px rgba(34,23,76,.2);
  }
  .toast{bottom:82px}
}

@media(max-width:390px){
  .app-shell{padding-inline:14px}
  .brand span{font-size:9.6px}
  .icon-button,.wind-chime-button{width:36px;height:36px}
  .welcome-card{grid-template-columns:43% 57%;min-height:226px}
  .welcome-copy{padding:15px 12px}
  .welcome-copy h1{font-size:23px}
  .continue-button{padding:10px 13px}
  .bottom-nav{width:calc(100% - 28px)}
}

@media(prefers-reduced-motion:reduce){.ambient-prism,.holo-surface::after{transition:none}.wind-chime-button.ringing *{animation:none!important}}

/* Reference chime: open hanging ornament, no square shell */
.wind-chime-button{
  width:52px!important;
  height:58px!important;
  margin:-3px 1px -8px 0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.wind-chime-button::after{
  content:"";
  position:absolute;
  right:-4px;
  top:13px;
  width:1px;
  height:31px;
  background:linear-gradient(transparent,rgba(215,202,248,.24),transparent);
}
.wind-chime-button .chime-svg{
  width:45px!important;
  height:60px!important;
  transform:translate(-50%,-50%)!important;
}
.wind-chime-button .chime-hook,.wind-chime-button .chime-cap,.wind-chime-button .chime-tail{stroke:rgba(229,216,255,.66)}
.wind-chime-button .chime-halo{fill:rgba(99,78,160,.08);stroke:rgba(222,209,255,.68)}
.wind-chime-button .chime-moon{fill:rgba(255,211,153,.08);stroke:#f4d39f;stroke-width:1.5}
.wind-chime-button .chime-gem{fill:rgba(187,151,240,.16);stroke:rgba(232,216,255,.86)}
.wind-chime-button .chime-butterfly-svg{stroke:#ddaef6;stroke-width:1.1}
@media(max-width:620px){
  .wind-chime-button{width:45px!important;height:53px!important;margin:-2px -1px -7px 0}
  .wind-chime-button .chime-svg{width:40px!important;height:54px!important}
}


/* Long, relaxed hanging chime */
.wind-chime-button{
  width:54px!important;
  height:68px!important;
  margin:-5px 0 -18px 0!important;
  overflow:visible!important;
  z-index:4;
}
.wind-chime-button::after{display:none}
.wind-chime-button .chime-svg{
  top:0!important;
  width:49px!important;
  height:91px!important;
  transform:translateX(-50%)!important;
  transform-origin:50% 8px;
  filter:drop-shadow(0 4px 7px rgba(106,77,166,.18));
}
.wind-chime-button .chime-cord{stroke-width:1;stroke:rgba(224,210,255,.68)}
.wind-chime-button .cord-left{animation:cord-breathe-left 4.8s ease-in-out infinite}
.wind-chime-button .cord-mid{animation:cord-breathe-mid 5.4s ease-in-out infinite}
.wind-chime-button .cord-right{animation:cord-breathe-right 4.4s ease-in-out infinite}
.wind-chime-button.ringing .chime-svg{animation:long-chime-sway 1.15s ease-out}
@keyframes long-chime-sway{0%,100%{transform:translateX(-50%) rotate(0)}28%{transform:translateX(-50%) rotate(4deg)}62%{transform:translateX(-50%) rotate(-2.5deg)}}
@keyframes cord-breathe-left{0%,100%{transform:translateX(0)}50%{transform:translateX(1px)}}
@keyframes cord-breathe-mid{0%,100%{transform:translateX(0)}50%{transform:translateX(-1px)}}
@keyframes cord-breathe-right{0%,100%{transform:translateX(0)}50%{transform:translateX(.8px)}}
@media(max-width:620px){
  .wind-chime-button{width:48px!important;height:64px!important;margin:-5px -1px -18px 0!important}
  .wind-chime-button .chime-svg{width:44px!important;height:84px!important}
}


/* Reference moon chime with soft butterfly tassel */
.wind-chime-button .chime-svg{
  width:47px!important;
  height:86px!important;
}
.wind-chime-button .chime-bead{fill:rgba(255,231,204,.7);stroke:rgba(255,240,224,.82);stroke-width:.8}
.wind-chime-button .chime-halo{fill:rgba(86,69,143,.06);stroke:rgba(239,224,255,.75);stroke-width:1}
.wind-chime-button .chime-moon{fill:rgba(255,219,166,.1);stroke:#f5d39b;stroke-width:1.55;filter:drop-shadow(0 0 4px rgba(255,208,143,.34))}
.wind-chime-button .chime-cap{stroke:rgba(235,220,255,.7);stroke-width:.9}
.wind-chime-button .chime-drop{fill:rgba(188,153,239,.13);stroke:rgba(236,218,255,.86);stroke-width:1}
.wind-chime-button .chime-butterfly-svg{fill:rgba(198,154,244,.08);stroke:#dbaaf5;stroke-width:1.15;filter:drop-shadow(0 0 4px rgba(202,155,241,.24))}
@media(max-width:620px){
  .wind-chime-button .chime-svg{width:43px!important;height:80px!important}
}


/* Glass-orb furin with a long relaxed paper strip */
.wind-chime-button{
  width:58px!important;
  height:72px!important;
  margin:-7px -1px -21px 0!important;
}
.wind-chime-button .chime-svg.glass-chime{
  top:-2px!important;
  width:54px!important;
  height:112px!important;
  transform:translateX(-50%) rotate(-1.5deg)!important;
  transform-origin:50% 5px;
  filter:drop-shadow(0 3px 8px rgba(100,155,219,.18));
  overflow:visible;
}
.glass-thread,.glass-center-line,.glass-knot{fill:none;stroke:rgba(212,235,255,.65);stroke-width:.9}
.glass-orb-shape{fill:url(#glassOrb);stroke:rgba(224,245,255,.78);stroke-width:1.15}
.glass-shine{fill:none;stroke:rgba(255,255,255,.72);stroke-width:1.3;stroke-linecap:round}
.glass-moon{fill:rgba(255,221,163,.08);stroke:#f3d19d;stroke-width:1.35;filter:drop-shadow(0 0 4px rgba(255,208,142,.32))}
.glass-bead{fill:rgba(147,220,218,.65);stroke:rgba(221,255,255,.8);stroke-width:.7}
.paper-strip{fill:url(#paperGlow);stroke:rgba(210,224,255,.38);stroke-width:.7}
.paper-spark{fill:none;stroke:rgba(239,231,255,.4);stroke-width:.65;stroke-linecap:round}
.wind-chime-button.ringing .glass-chime{animation:furin-sway 1.35s ease-out}
@keyframes furin-sway{
  0%,100%{transform:translateX(-50%) rotate(-1.5deg)}
  28%{transform:translateX(-50%) rotate(4deg)}
  62%{transform:translateX(-50%) rotate(-3deg)}
}
@media(max-width:620px){
  .wind-chime-button{width:52px!important;height:68px!important;margin:-6px -2px -20px 0!important}
  .wind-chime-button .chime-svg.glass-chime{width:49px!important;height:105px!important}
}


/* Keep the glass orb visually open */
.glass-center-line{display:none}
