*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,"Noto Sans",sans-serif;color:#302a27;background:#f8f3ed}body{background:radial-gradient(circle at 8% 5%,#f3e0e5 0 12%,transparent 30%),radial-gradient(circle at 95% 30%,#e9eee3 0 10%,transparent 25%),#f8f3ed}button{font:inherit}.shell{width:min(100%,520px);margin:auto;padding:20px 12px 36px}.paper{background:#fffdf9;border:1px solid #eaded8;border-radius:30px;overflow:hidden;box-shadow:0 24px 70px rgba(80,59,50,.10);padding:24px}.header{display:flex;align-items:center;justify-content:space-between}.identity{display:flex;align-items:center;gap:12px}.kanji{font-size:42px;font-weight:800}.identity b{display:block;font-size:15px;letter-spacing:.08em}.identity small{display:block;color:#b7a59f;font-size:11px;margin-top:3px}.menu,.tabs button,.filters button{border:1px solid #eaded9;background:#faf3f1;color:#927b75;border-radius:999px}.menu{padding:10px 15px;font-size:12px;font-weight:700}.tabs{display:flex;gap:8px;margin:24px 0 30px}.tabs button{padding:10px 18px;font-size:12px;font-weight:700;cursor:pointer}.tabs .active{background:#302b2a;color:#fffaf7}.view{display:none}.view.active{display:block}.polaroid{position:relative;background:#f7f0ea;border-radius:20px;padding:16px 16px 14px}.polaroid img{display:block;width:100%;height:470px;object-fit:cover;object-position:52% 28%;border-radius:10px}.tape{position:absolute;width:120px;height:25px;top:-10px;left:50%;transform:translateX(-50%) rotate(-2deg);background:#ead8cf;opacity:.9}.caption{display:flex;justify-content:space-between;align-items:center;padding:14px 4px 0}.caption b{font-size:14px}.caption span{font-size:11px;color:#a3948e}.profile{margin-top:24px;padding:20px;border-radius:20px;background:#faf5f1;border:1px solid #eee2dc}.online{font-size:12px;font-weight:700;color:#74625e}.online i,.avatar-line i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#85d9a0;margin-right:7px}.name-row{display:flex;justify-content:space-between;align-items:center}.name-row h1{font-size:32px;margin:12px 0 6px}.name-row h1 em{font-style:normal;color:#d992a4}.name-row span{color:#c49aa4;font-size:20px;font-weight:700}.profile p{margin:0;color:#8f7f79;font-size:13px}.mini-grid,.little-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.mini-grid div,.little-grid div{padding:14px;border:1px solid #eadfda;border-radius:16px;background:#fff}.mini-grid b,.mini-grid span,.little-grid small,.little-grid b{display:block}.mini-grid b{color:#bd8997;font-size:14px}.mini-grid span,.little-grid small{font-size:10px;color:#9d8c86;margin-top:5px}.hello{padding:30px 3px 18px}.hello small,.section-head small,.dream>small{color:#bd8997;font-weight:700}.hello h2,.section-head h2{font-size:28px;margin:8px 0 10px}.hello p,.section-head p{font-size:14px;line-height:1.6;color:#84746e}.dark-btn{width:100%;border:0;border-radius:17px;padding:16px 18px;background:#302b2a;color:#fffaf7;font-weight:700;display:flex;justify-content:space-between;cursor:pointer}.wishlist-teaser{margin-top:18px;padding:20px;border-radius:20px;background:#f3e7ea;display:flex;align-items:end;justify-content:space-between;gap:12px;cursor:pointer}.wishlist-teaser small{color:#ae7886}.wishlist-teaser h3{margin:6px 0;font-size:18px}.wishlist-teaser p{margin:0;color:#8d7770;font-size:12px}.wishlist-teaser>span{font-size:11px;font-weight:700;color:#775e66}.little{margin-top:28px}.little h3{font-size:16px}.little-grid div{background:#faf4f1;font-size:17px;color:#ce91a0}.little-grid b{font-size:13px;color:#544945;margin-top:3px}.section-head{margin-bottom:24px}.section-head h2{margin-bottom:5px}.avatar-line{display:flex;gap:14px;align-items:center;padding:14px 0 20px}.avatar-line img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:55% 25%}.avatar-line b{font-size:15px}.avatar-line p{font-size:11px;color:#9b8982;margin:5px 0}.avatar-line small{font-size:10px;color:#9b8982}.filters{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.filters button{white-space:nowrap;padding:8px 11px;font-size:10px;font-weight:700}.filters .selected{background:#f7ecef;color:#b17c89}.wish-list{display:grid;gap:12px;margin-top:14px}.wish{display:grid;grid-template-columns:112px 1fr;gap:15px;padding:14px;border:1px solid #eaded9;background:#fbf6f2;border-radius:20px}.wish-icon{display:grid;place-items:center;background:#f1e6e2;border-radius:16px;font-size:42px;min-height:145px}.wish-copy small{font-size:9px;font-weight:700;color:#bd8a98}.wish-copy h3{font-size:16px;margin:6px 0}.wish-copy p{font-size:11px;color:#8f7e78;margin:0 0 8px}.wish-copy>b{font-size:14px}.wish-copy button{display:block;width:100%;margin-top:10px;border:0;border-radius:12px;background:#302b2a;color:#fff;padding:10px;font-size:11px;font-weight:700}.wish-copy button.gifted{background:#eee5e2;color:#9a7d86}.dream{margin-top:18px;padding:20px;border-radius:20px;background:#f3e7ea}.dream h3{margin:8px 0 5px}.dream p{font-size:12px;color:#8d7770}.dream button{width:100%;display:flex;justify-content:space-between;border:0;border-radius:14px;background:#fffaf7;padding:13px 15px;color:#775e66;font-weight:700}.dream em{display:block;font-style:normal;font-size:10px;color:#9b8982;margin-top:15px}.diary-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin-bottom:18px}.diary-card{overflow:hidden;border-radius:18px;background:#faf4f1}.diary-card.big{grid-row:span 2}.diary-card img{width:100%;height:190px;object-fit:cover}.diary-card.big img{height:360px;object-position:48% 25%}.diary-card.crop1 img{object-position:70% 15%}.diary-card.crop2 img{object-position:50% 80%}.diary-card div{padding:12px}.diary-card small{color:#bd8997;font-size:9px;font-weight:700}.diary-card h3{font-size:13px;margin:4px 0}.diary-card p{font-size:10px;color:#8f7e78;margin:0;line-height:1.4}footer{border-top:1px solid #eaded9;margin-top:30px;padding-top:20px;display:flex;justify-content:space-between;color:#9b8982;font-size:9px;gap:8px}footer span{text-align:center}@media(max-width:430px){.shell{padding:0}.paper{border-radius:0;border:0;padding:20px}.polaroid img{height:55vh;min-height:410px}.wishlist-teaser{align-items:flex-start;flex-direction:column}.wish{grid-template-columns:95px 1fr}.wish-icon{min-height:135px}.diary-grid{grid-template-columns:1fr 1fr}.diary-card.big img{height:330px}}

/* v2 header: clickable Rin wordmark */
.identity-home{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  color:inherit;
  cursor:pointer;
  text-align:left;
}
.identity-home:hover{opacity:.82}
.rin-logo{
  display:block;
  font-family:"Brush Script MT","Segoe Script","URW Chancery L",cursive;
  font-size:38px;
  line-height:.95;
  font-weight:600;
  font-style:italic;
  letter-spacing:-2px;
  color:#2d2927;
}
.rin-logo::first-letter{text-transform:lowercase}
.identity-home small{
  display:block;
  margin-top:7px;
  font-size:12px;
  line-height:1;
  font-weight:400;
  color:#b58d98;
  letter-spacing:0;
}
@media(max-width:520px){
  .rin-logo{font-size:35px}
  .identity-home small{font-size:11px}
}

/* v3 photo gallery */
.gallery-stage{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:18px;
  aspect-ratio: 4 / 4.55;
  background:#eee5df;
}
.gallery-stage .gallery-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transform:scale(1.015);
  transition:opacity .28s ease, transform .35s ease;
  pointer-events:none;
}
.gallery-stage .gallery-photo.active{
  opacity:1;
  transform:scale(1);
}
.gallery-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:50%;
  background:rgba(38,31,29,.32);
  backdrop-filter:blur(7px);
  color:#fff;
  font-size:31px;
  line-height:36px;
  cursor:pointer;
  z-index:3;
}
.gallery-arrow.prev{left:12px}
.gallery-arrow.next{right:12px}
.gallery-arrow:hover{background:rgba(38,31,29,.48)}
.gallery .caption{padding-bottom:8px}
.gallery-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  padding:0 0 14px;
}
.gallery-dots .dot{
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#dbcac5;
  cursor:pointer;
  transition:width .2s ease, background .2s ease;
}
.gallery-dots .dot.active{
  width:19px;
  border-radius:999px;
  background:#b98491;
}
@media(max-width:520px){
  .gallery-arrow{width:38px;height:38px;font-size:28px}
}

/* v4 — smaller, precisely centered gallery arrows */
.gallery-arrow{
  top:50% !important;
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  min-height:28px !important;
  padding:0 !important;
  margin:0 !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(255,255,255,.72) !important;
  border-radius:50% !important;
  background:rgba(38,31,29,.34) !important;
  color:#fff !important;
  font-size:20px !important;
  font-family:Arial,sans-serif !important;
  font-weight:400 !important;
  line-height:1 !important;
  text-align:center !important;
  box-sizing:border-box !important;
}
.gallery-arrow.prev{left:10px !important}
.gallery-arrow.next{right:10px !important}
.gallery-arrow:hover{background:rgba(38,31,29,.48) !important}
@media(max-width:520px){
  .gallery-arrow{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    min-height:26px !important;
    font-size:18px !important;
  }
  .gallery-arrow.prev{left:8px !important}
  .gallery-arrow.next{right:8px !important}
}

/* v5 — optical centering for carousel arrow icons */
.gallery-arrow{
  display:grid !important;
  place-items:center !important;
  line-height:0 !important;
}
.gallery-arrow .arrow-icon{
  display:block !important;
  width:14px !important;
  height:14px !important;
  line-height:13px !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:15px !important;
  font-weight:400 !important;
  text-align:center !important;
  transform:none !important;
  margin:0 !important;
  padding:0 !important;
}
@media(max-width:520px){
  .gallery-arrow .arrow-icon{
    width:13px !important;
    height:13px !important;
    line-height:12px !important;
    font-size:14px !important;
  }
}

/* v8 — Telegram invitation */
.telegram-intro p{
  margin-bottom:16px;
}
.telegram-card{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:14px 15px;
  margin-top:15px;
  border:1px solid #eadbd8;
  border-radius:18px;
  background:#faf2f3;
  color:#332b29;
  text-decoration:none;
  box-sizing:border-box;
  transition:transform .18s ease, background .18s ease;
}
.telegram-card:hover{
  transform:translateY(-1px);
  background:#f7e9ed;
}
.telegram-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fffaf8;
  color:#c78596;
  font-size:17px;
}
.telegram-copy{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.telegram-copy b{
  font-size:14px;
  line-height:1.25;
  color:#332b29;
}
.telegram-copy small{
  font-size:11px;
  color:#9b7f85;
}
.telegram-arrow{
  color:#b47d8c;
  font-size:18px;
  line-height:1;
}

/* v9 — prominent private Telegram offer */
.telegram-offer{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:0 !important;
  padding:18px !important;
  margin-top:17px !important;
  border:0 !important;
  border-radius:22px !important;
  background:#2f2928 !important;
  color:#fffaf8 !important;
  text-decoration:none !important;
  box-shadow:0 10px 24px rgba(57,43,44,.12);
}
.telegram-offer:hover{
  transform:translateY(-1px);
  background:#292423 !important;
}
.telegram-offer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.telegram-offer .telegram-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff6f3;
  color:#c77e92;
  font-size:16px;
}
.telegram-badge{
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  color:#f2c7d2;
  font-size:10px;
  line-height:1;
  font-weight:700;
  letter-spacing:.08em;
}
.telegram-offer-title{
  margin-top:16px;
  color:#fff;
  font-size:19px;
  line-height:1.2;
  font-weight:800;
}
.telegram-offer-sub{
  margin-top:6px;
  color:#c9bbba;
  font-size:11px;
}
.telegram-timer{
  margin:12px 0 14px;
  color:#fff;
  font-size:34px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05em;
  font-variant-numeric:tabular-nums;
}
.telegram-join{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  background:#fff7f4;
  color:#302827;
  font-size:13px;
  font-weight:800;
}
.telegram-join b{
  font-size:18px;
  font-weight:400;
}
.telegram-offer.expired{
  opacity:.72;
}
.telegram-offer.expired .telegram-join{
  justify-content:center;
  color:#8f7e79;
}

/* v10 — requested first-screen layout */
.header{display:none!important}
.shell{padding-top:22px!important}
.tabs{margin-top:0!important;margin-bottom:16px!important}
#home .profile{margin-top:0!important;margin-bottom:16px!important}
#home .telegram-intro{margin-top:0!important;margin-bottom:20px!important}
#home .polaroid{margin-top:0!important;margin-bottom:20px!important}
@media(max-width:520px){
 .shell{padding-top:14px!important}
 .tabs{margin-bottom:12px!important}
 #home .profile{margin-bottom:12px!important}
 #home .telegram-intro{margin-bottom:16px!important}
}

/* v11 — exact requested Home order: 1 profile, 2 nav, 3 gallery, 4 Telegram */
#home > .profile{margin-top:0!important;margin-bottom:14px!important}
#home > .tabs{margin:0 0 18px!important}
#home > .polaroid{margin-top:0!important;margin-bottom:20px!important}
#home > .telegram-intro{margin-top:0!important;margin-bottom:20px!important}
@media(max-width:520px){
  #home > .profile{margin-bottom:12px!important}
  #home > .tabs{margin-bottom:14px!important}
  #home > .polaroid{margin-bottom:16px!important}
}


/* v12 — unified soft Japanese/Kawaii Telegram card */
#home > .telegram-intro{margin-top:0!important;margin-bottom:20px!important}
.telegram-intro > small,.telegram-intro > p{display:none!important}
.telegram-offer{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:0!important;margin-top:0!important;padding:22px!important;
  border:1px solid #ead7dd!important;border-radius:24px!important;
  background:#f3e4e9!important;color:#302625!important;
  box-shadow:none!important;text-decoration:none!important;
}
.telegram-offer:hover{background:#f0dfe5!important;transform:translateY(-1px)}
.telegram-offer-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.telegram-jp{color:#c47d90;font-size:12px;line-height:1.2}
.telegram-badge{padding:6px 9px;border:1px solid #dbb9c3;border-radius:999px;color:#ad667a;font-size:9px;line-height:1;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.telegram-offer-title{margin-top:13px;color:#2b2221;font-size:20px;line-height:1.15;font-weight:800}
.telegram-flirt{margin-top:7px;color:#9a7075;font-size:12px;line-height:1.55;font-style:italic}
.telegram-countdown-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:13px;border-top:1px solid #dfc9d0}
.telegram-offer-sub{margin:0;color:#a4737c;font-size:10px;line-height:1.2}
.telegram-timer{margin:0!important;padding:6px 9px;border:1px solid #ddc3ca;border-radius:999px;background:#f9eff2;color:#6d4d53!important;font-size:12px!important;line-height:1!important;font-weight:800!important;letter-spacing:.05em!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.telegram-join{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-top:14px;padding:0 14px;border-radius:14px;background:#fff9f7!important;color:#342827!important;font-size:12px;font-weight:800}
.telegram-join b{font-size:17px;font-weight:400}
.telegram-offer.expired{opacity:.72}
.telegram-offer.expired .telegram-join{justify-content:center;color:#8f7e79}
@media(max-width:520px){.telegram-offer{padding:18px!important}.telegram-offer-title{font-size:18px}.telegram-flirt{font-size:11px}}

/* v13 — fit the complete Home hero into the initial 100% viewport */
@media (min-width: 700px) and (min-height: 760px){
  .shell{width:min(100%,500px)!important;padding:10px 10px 14px!important}
  .paper{padding:14px 16px 16px!important;border-radius:26px!important}
  #home > .profile{padding:14px 16px!important;margin-bottom:9px!important;border-radius:18px!important}
  .online{font-size:10px!important}
  .online i{width:8px!important;height:8px!important}
  .name-row h1{font-size:25px!important;margin:7px 0 3px!important}
  .name-row span{font-size:17px!important}
  .profile p{font-size:11px!important}
  #home > .tabs{margin:0 0 10px!important;gap:7px!important}
  #home > .tabs button{padding:8px 15px!important;font-size:11px!important}
  #home > .polaroid{padding:11px 11px 8px!important;margin-bottom:11px!important;border-radius:18px!important}
  #home .gallery-stage{height:43vh!important;max-height:390px!important;min-height:315px!important;aspect-ratio:auto!important;border-radius:14px!important}
  #home .gallery-stage .gallery-photo{object-position:52% 28%!important}
  #home .tape{width:100px!important;height:20px!important;top:-8px!important}
  #home .caption{padding:8px 2px 0!important}
  #home .caption b{font-size:11px!important}
  #home .caption span{font-size:9px!important}
  #home .gallery-dots{padding:0 0 6px!important;gap:5px!important}
  #home .gallery-dots .dot{height:5px!important;width:5px!important}
  #home .gallery-dots .dot.active{width:15px!important}
  #home > .telegram-intro{margin:0!important;padding:0!important}
  #home .telegram-offer{padding:13px 15px!important;border-radius:18px!important}
  #home .telegram-jp{font-size:9px!important}
  #home .telegram-badge{padding:4px 7px!important;font-size:8px!important}
  #home .telegram-offer-title{margin-top:7px!important;font-size:15px!important}
  #home .telegram-flirt{margin-top:4px!important;font-size:9px!important;line-height:1.35!important}
  #home .telegram-countdown-row{margin-top:8px!important;padding-top:7px!important}
  #home .telegram-offer-sub{font-size:8px!important}
  #home .telegram-timer{padding:4px 7px!important;font-size:10px!important}
  #home .telegram-join{min-height:32px!important;margin-top:8px!important;padding:0 11px!important;border-radius:11px!important;font-size:10px!important}
  #home .telegram-join b{font-size:14px!important}
  #home > .wishlist-teaser{margin-top:12px!important}
}

/* Compact phone viewport: keep the same hierarchy without browser zoom. */
@media (max-width: 699px){
  .paper{padding:18px!important}
  #home .gallery-stage{height:min(54vh,430px)!important;aspect-ratio:auto!important}
}

/* v14 — force full Home CTA into the first desktop viewport at browser zoom 100% */
@media (min-width:700px){
  html,body{min-height:100%}
  .shell{
    width:min(100%,500px)!important;
    padding:8px 10px 12px!important;
  }
  .paper{
    padding:12px 16px 14px!important;
    border-radius:26px!important;
  }

  #home > .profile{
    padding:12px 16px!important;
    margin:0 0 8px!important;
    border-radius:18px!important;
  }
  #home .online{font-size:10px!important}
  #home .online i{width:7px!important;height:7px!important}
  #home .name-row h1{font-size:24px!important;margin:5px 0 2px!important}
  #home .name-row span{font-size:16px!important}
  #home .profile p{font-size:10px!important}

  #home > .tabs{
    margin:0 0 8px!important;
    gap:6px!important;
  }
  #home > .tabs button{
    padding:7px 14px!important;
    font-size:10px!important;
  }

  #home > .polaroid{
    padding:9px 9px 7px!important;
    margin:0 0 9px!important;
    border-radius:17px!important;
  }
  #home .gallery-stage{
    height:clamp(300px,39vh,350px)!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    border-radius:13px!important;
  }
  #home .gallery-stage .gallery-photo{
    object-fit:cover!important;
    object-position:52% 25%!important;
  }
  #home .tape{
    width:90px!important;
    height:18px!important;
    top:-7px!important;
  }
  #home .caption{
    padding:7px 2px 0!important;
  }
  #home .caption b{font-size:10px!important}
  #home .caption span{font-size:8px!important}
  #home .gallery-dots{
    padding:0 0 4px!important;
    gap:4px!important;
  }
  #home .gallery-dots .dot{
    width:4px!important;height:4px!important;
  }
  #home .gallery-dots .dot.active{width:13px!important}

  #home > .telegram-intro{
    margin:0!important;
    padding:0!important;
  }
  #home .telegram-offer{
    padding:11px 13px!important;
    border-radius:17px!important;
  }
  #home .telegram-jp{font-size:8px!important}
  #home .telegram-badge{
    padding:4px 6px!important;
    font-size:7px!important;
  }
  #home .telegram-offer-title{
    margin-top:6px!important;
    font-size:14px!important;
  }
  #home .telegram-flirt{
    margin-top:3px!important;
    font-size:8px!important;
    line-height:1.3!important;
  }
  #home .telegram-countdown-row{
    margin-top:6px!important;
    padding-top:6px!important;
  }
  #home .telegram-offer-sub{font-size:7px!important}
  #home .telegram-timer{
    padding:3px 6px!important;
    font-size:9px!important;
  }
  #home .telegram-join{
    min-height:29px!important;
    margin-top:6px!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:9px!important;
  }
  #home .telegram-join b{font-size:13px!important}
}

/* v15 — remove profile card and place Rin ♡ before navigation */
#home > .profile{display:none!important}
#home > .tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 8px!important;
}
.nav-rin{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-right:4px;
  color:#2b2523;
  font-size:22px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.nav-heart{
  color:#df94a6;
  font-size:23px;
  line-height:1;
  font-weight:400;
}
@media(max-width:520px){
  .nav-rin{
    font-size:18px;
    gap:3px;
    margin-right:2px;
  }
  .nav-heart{font-size:19px}
  #home > .tabs{gap:6px!important}
}

/* v16 — prettier Rin mark + gallery shows every photo in full */
.nav-rin{
  font-family: Georgia, "Times New Roman", serif!important;
  font-size:25px!important;
  font-weight:600!important;
  font-style:italic!important;
  letter-spacing:-1.2px!important;
  color:#2b2422!important;
  transform:translateY(-1px);
}
.nav-heart{
  font-family:Arial,sans-serif!important;
  font-size:21px!important;
  font-style:normal!important;
  font-weight:400!important;
  color:#dc8fa4!important;
  margin-left:1px!important;
}

/* Override v14 fixed/cropped desktop gallery. */
#home .gallery-stage{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  display:block!important;
  background:#f7efeb!important;
}
#home .gallery-stage .gallery-photo{
  position:relative!important;
  inset:auto!important;
  display:none!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:inherit!important;
}
#home .gallery-stage .gallery-photo.active{
  display:block!important;
}

/* The first visible image defines the stage height; JS updates it for each slide. */
@media(max-width:520px){
  .nav-rin{font-size:21px!important}
  .nav-heart{font-size:18px!important}
}

/* v17 — fit the complete Home composition into a 100% desktop viewport */
@media (min-width:700px){
  html, body{
    min-height:100%;
  }
  body{
    overflow-x:hidden;
  }

  .shell{
    width:500px!important;
    padding:8px 10px 10px!important;
    transform-origin:top center;
  }

  .paper{
    padding:10px 14px 12px!important;
    border-radius:24px!important;
  }

  #home > .tabs{
    margin:0 0 7px!important;
  }

  #home > .polaroid{
    margin:0 0 8px!important;
    padding:8px 8px 6px!important;
  }

  #home > .telegram-intro{
    margin:0!important;
  }
}

/* Keep every slide fully visible; never crop it. */
#home .gallery-stage,
#home .gallery-stage .gallery-photo.active{
  max-height:none!important;
}
#home .gallery-stage .gallery-photo{
  object-fit:contain!important;
  object-position:center!important;
}

/* v18 — 100% browser zoom target:
   header + full first photo + complete Telegram CTA in viewport.
   Wishlist begins below the fold. No whole-page scaling. */
@media (min-width:700px){
  html,body{
    min-height:100%;
  }
  body{
    overflow-x:hidden!important;
  }

  .shell{
    transform:none!important;
    margin-bottom:0!important;
    width:min(100%,520px)!important;
    padding:3px 8px 18px!important;
  }

  .paper{
    padding:8px 10px 14px!important;
    border-radius:24px!important;
  }

  #home > .tabs{
    margin:0 0 6px!important;
    gap:7px!important;
  }
  #home > .tabs button{
    padding:6px 13px!important;
    font-size:9px!important;
  }
  .nav-rin{
    font-size:24px!important;
  }
  .nav-heart{
    font-size:19px!important;
  }

  #home > .polaroid{
    padding:8px 8px 5px!important;
    margin:0 0 7px!important;
    border-radius:18px!important;
  }

  /* Keep photo fully visible. Height is limited by viewport, width follows aspect ratio. */
  #home .gallery-stage{
    height:min(67vh,650px)!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f7efeb!important;
    overflow:hidden!important;
  }
  #home .gallery-stage .gallery-photo{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  #home .gallery-stage .gallery-photo.active{
    display:block!important;
  }

  #home .caption{
    padding:5px 2px 0!important;
  }
  #home .caption b{font-size:9px!important}
  #home .caption span{font-size:7px!important}
  #home .gallery-dots{
    padding:0 0 2px!important;
  }

  #home > .telegram-intro{
    margin:0!important;
  }
  #home .telegram-offer{
    padding:9px 11px!important;
    border-radius:16px!important;
  }
  #home .telegram-offer-title{
    margin-top:4px!important;
    font-size:13px!important;
  }
  #home .telegram-flirt{
    margin-top:2px!important;
    font-size:7px!important;
    line-height:1.25!important;
  }
  #home .telegram-countdown-row{
    margin-top:5px!important;
    padding-top:5px!important;
  }
  #home .telegram-join{
    min-height:27px!important;
    margin-top:5px!important;
    font-size:8px!important;
  }

  /* The next section deliberately starts below the initial viewport. */
  #home > .wishlist-teaser{
    margin-top:14px!important;
  }
}

/* Shorter desktop screens: shrink only gallery, never the whole page. */
@media (min-width:700px) and (max-height:850px){
  #home .gallery-stage{height:62vh!important}
}
@media (min-width:700px) and (max-height:740px){
  #home .gallery-stage{height:57vh!important}
}

/* v19 — reference layout: photo fills card width, Telegram ends first viewport */
@media (min-width:700px){
  .shell{
    width:min(100%,520px)!important;
    padding:3px 8px 18px!important;
    transform:none!important;
    margin-bottom:0!important;
  }

  /* Let the active image use the full available width and its natural ratio. */
  #home .gallery-stage{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    display:block!important;
    overflow:hidden!important;
    background:transparent!important;
  }
  #home .gallery-stage .gallery-photo{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  #home .gallery-stage .gallery-photo:not(.active){
    display:none!important;
  }
  #home .gallery-stage .gallery-photo.active{
    display:block!important;
  }

  /* Keep the arrows over the photo after returning it to natural height. */
  #home .gallery-arrow,
  #home .gallery-prev,
  #home .gallery-next{
    position:absolute!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:5!important;
  }

  /* First screen should finish at Telegram; wishlist starts after a small scroll. */
  #home > .wishlist-teaser{
    margin-top:22px!important;
  }
}

/* On shorter desktop screens keep full-width natural image; do not force vh height. */
@media (min-width:700px) and (max-height:850px){
  #home .gallery-stage{height:auto!important}
}
@media (min-width:700px) and (max-height:740px){
  #home .gallery-stage{height:auto!important}
}

/* v20 — desktop first screen: wide gallery, shorter photo, full Telegram visible */
@media (min-width:700px){
  #home .gallery-stage{
    width:100%!important;
    height:clamp(500px,68vh,650px)!important;
    min-height:0!important;
    max-height:650px!important;
    position:relative!important;
    overflow:hidden!important;
    background:#f7efeb!important;
    border-radius:13px!important;
  }

  #home .gallery-stage .gallery-photo{
    position:absolute!important;
    inset:0!important;
    display:none!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center 38%!important;
  }

  #home .gallery-stage .gallery-photo.active{
    display:block!important;
  }

  #home > .polaroid{
    margin-bottom:7px!important;
  }

  #home .telegram-offer{
    padding:9px 11px!important;
  }

  #home > .wishlist-teaser{
    margin-top:22px!important;
  }
}

/* Tune only the photo height on common shorter desktop viewports. */
@media (min-width:700px) and (max-height:900px){
  #home .gallery-stage{height:61vh!important;min-height:470px!important}
}
@media (min-width:700px) and (max-height:800px){
  #home .gallery-stage{height:57vh!important;min-height:420px!important}
}

/* v21 FINAL — full image + Telegram in first viewport, wishlist below fold */
@media (min-width:700px){
  body{overflow-x:hidden!important}

  .shell{
    transform:none!important;
    margin-bottom:0!important;
    width:clamp(365px, calc((100vh - 190px) * .49), 500px)!important;
    padding:3px 7px 18px!important;
  }
  .paper{padding:7px 9px 14px!important}

  #home > .tabs{
    margin:0 0 5px!important;
    gap:6px!important;
  }
  .nav-rin{font-size:23px!important}
  .nav-heart{font-size:18px!important}
  #home > .tabs button{
    padding:6px 12px!important;
    font-size:9px!important;
  }

  #home > .polaroid{
    padding:7px 7px 5px!important;
    margin:0 0 7px!important;
  }

  #home .gallery-stage{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    position:relative!important;
    display:block!important;
    overflow:visible!important;
    background:transparent!important;
  }
  #home .gallery-stage .gallery-photo{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    display:none!important;
  }
  #home .gallery-stage .gallery-photo.active{
    display:block!important;
  }

  #home .caption{padding-top:4px!important}
  #home .caption b{font-size:9px!important}
  #home .caption span{font-size:7px!important}
  #home .gallery-dots{padding-bottom:1px!important}

  #home .telegram-offer{
    padding:8px 10px!important;
    border-radius:15px!important;
  }
  #home .telegram-jp{font-size:7px!important}
  #home .telegram-badge{font-size:6px!important;padding:3px 6px!important}
  #home .telegram-offer-title{margin-top:3px!important;font-size:13px!important}
  #home .telegram-flirt{margin-top:1px!important;font-size:7px!important;line-height:1.2!important}
  #home .telegram-countdown-row{margin-top:4px!important;padding-top:4px!important}
  #home .telegram-offer-sub{font-size:6px!important}
  #home .telegram-timer{font-size:8px!important;padding:2px 6px!important}
  #home .telegram-join{
    min-height:25px!important;
    margin-top:4px!important;
    padding:0 9px!important;
    font-size:8px!important;
  }

  /* Wishlist is deliberately below the first viewport. */
  #home > .wishlist-teaser{
    margin-top:24px!important;
  }
}

/* v22: desktop first viewport = 70% profile/gallery + 30% Telegram */
@media (min-width:700px){
.shell{width:min(500px,96vw)!important;min-width:0!important;transform:none!important;margin-bottom:0!important;padding:4px 7px 18px!important}
.paper{padding:7px 9px 14px!important}
#home>.tabs{height:38px!important;margin:0 0 4px!important;display:flex!important;align-items:center!important}
#home>.polaroid{height:calc(70vh - 46px)!important;min-height:0!important;margin:0 0 6px!important;padding:7px 7px 5px!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important}
#home .gallery-stage{flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;position:relative!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#f7efeb!important}
#home .gallery-stage .gallery-photo{position:absolute!important;inset:0!important;display:none!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
#home .gallery-stage .gallery-photo.active{display:block!important}
#home .caption{flex:0 0 auto!important;padding:4px 2px 0!important}
#home .gallery-dots{flex:0 0 auto!important;padding:0 0 1px!important}
#home>.telegram-intro{height:calc(30vh - 12px)!important;min-height:145px!important;margin:0!important;box-sizing:border-box!important}
#home .telegram-offer{height:100%!important;box-sizing:border-box!important;padding:10px 12px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;border-radius:16px!important}
#home .telegram-offer-title{margin-top:3px!important;font-size:14px!important}
#home .telegram-flirt{margin-top:2px!important;font-size:7px!important;line-height:1.25!important}
#home .telegram-countdown-row{margin-top:auto!important;padding-top:5px!important}
#home .telegram-join{min-height:28px!important;margin-top:5px!important}
#home>.wishlist-teaser{margin-top:18px!important}
}

/* v23 — keep exact 70/30 geometry; adapt content INSIDE both zones */
@media (min-width:700px){
  /* 70% zone stays unchanged in height */
  #home > .polaroid{
    height:calc(70vh - 46px)!important;
  }

  /* Give the full photo as much width as its aspect ratio permits without cropping. */
  #home .gallery-stage{
    position:relative!important;
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    background:#f7efeb!important;
  }
  #home .gallery-stage .gallery-photo{
    position:absolute!important;
    inset:0!important;
    margin:auto!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  /* Arrows sit against the visible photo area rather than floating far away. */
  #home .gallery-arrow,
  #home .gallery-prev,
  #home .gallery-next{
    width:30px!important;
    height:30px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  #home .gallery-prev{left:10px!important}
  #home .gallery-next{right:10px!important}

  #home .caption{
    min-height:18px!important;
    padding:3px 2px 0!important;
    align-items:center!important;
  }
  #home .caption b{font-size:8px!important}
  #home .caption span{font-size:7px!important}
  #home .gallery-dots{
    height:10px!important;
    padding:0!important;
    margin:0!important;
  }

  /* 30% zone stays unchanged in height, but content is distributed deliberately. */
  #home > .telegram-intro{
    height:calc(30vh - 12px)!important;
    min-height:145px!important;
  }
  #home .telegram-offer{
    height:100%!important;
    padding:10px 12px!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-rows:auto auto 1fr auto auto!important;
    column-gap:10px!important;
    align-items:start!important;
  }

  #home .telegram-jp{
    grid-column:1!important;
    grid-row:1!important;
    font-size:7px!important;
  }
  #home .telegram-badge{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
  }
  #home .telegram-offer-title{
    grid-column:1 / -1!important;
    grid-row:2!important;
    margin:4px 0 0!important;
    font-size:14px!important;
  }
  #home .telegram-flirt{
    grid-column:1 / -1!important;
    grid-row:3!important;
    margin:2px 0 0!important;
    font-size:7px!important;
    line-height:1.3!important;
  }
  #home .telegram-countdown-row{
    grid-column:1 / -1!important;
    grid-row:4!important;
    width:100%!important;
    margin:0!important;
    padding:6px 0 0!important;
    align-self:end!important;
  }
  #home .telegram-join{
    grid-column:1 / -1!important;
    grid-row:5!important;
    width:100%!important;
    min-height:29px!important;
    margin:6px 0 0!important;
    box-sizing:border-box!important;
  }
}

/* v24 — keep 70/30, actually adapt the content inside both zones */
@media (min-width:700px){
  /* Keep the chosen 70/30 geometry */
  #home > .polaroid{
    height:calc(70vh - 46px)!important;
  }
  #home > .telegram-intro{
    height:calc(30vh - 12px)!important;
    min-height:145px!important;
  }

  /* Gallery: full image remains uncropped.
     Empty contain area gets a soft image-derived backdrop instead of blank beige. */
  #home .gallery-stage{
    position:relative!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#f3e8e5!important;
  }
  #home .gallery-stage::before{
    content:""!important;
    position:absolute!important;
    inset:-22px!important;
    z-index:0!important;
    background-image:var(--gallery-bg, none)!important;
    background-size:cover!important;
    background-position:center!important;
    filter:blur(20px)!important;
    opacity:.20!important;
    transform:scale(1.08)!important;
  }
  #home .gallery-stage .gallery-photo{
    z-index:1!important;
    object-fit:contain!important;
  }
  #home .gallery-prev,
  #home .gallery-next{
    z-index:3!important;
  }

  /* Telegram: no giant dead spacer.
     Content uses the whole 30% zone in balanced bands. */
  #home .telegram-offer{
    height:100%!important;
    padding:14px 16px 13px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    box-sizing:border-box!important;
  }
  #home .telegram-offer-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:20px!important;
    flex:0 0 auto!important;
  }
  #home .telegram-jp{
    font-size:9px!important;
    line-height:1.2!important;
  }
  #home .telegram-badge{
    font-size:8px!important;
    padding:4px 8px!important;
  }
  #home .telegram-offer-title{
    margin:8px 0 0!important;
    font-size:19px!important;
    line-height:1.05!important;
    letter-spacing:-.25px!important;
    flex:0 0 auto!important;
  }
  #home .telegram-flirt{
    margin:5px 0 0!important;
    font-size:9px!important;
    line-height:1.35!important;
    flex:0 0 auto!important;
  }

  /* Timer sits in its own middle/lower band instead of being pushed
     to the bottom by a huge 1fr grid row. */
  #home .telegram-countdown-row{
    width:100%!important;
    margin:auto 0 0!important;
    padding:10px 0 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex:0 0 auto!important;
  }
  #home .telegram-offer-sub{
    font-size:8px!important;
  }
  #home .telegram-timer{
    font-size:12px!important;
    line-height:1!important;
    padding:4px 9px!important;
    letter-spacing:1px!important;
  }
  #home .telegram-join{
    width:100%!important;
    min-height:38px!important;
    margin:0!important;
    padding:0 13px!important;
    font-size:10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }

  #home > .wishlist-teaser{
    margin-top:18px!important;
  }
}

/* v25 — typography/readability only. Keep 70/30 and gallery dimensions unchanged. */
@media (min-width:700px){
  #home .telegram-offer{
    padding:14px 16px 13px!important;
  }

  #home .telegram-offer-top{
    min-height:24px!important;
    gap:10px!important;
  }

  #home .telegram-jp{
    font-size:11px!important;
    line-height:1.25!important;
    font-weight:600!important;
  }

  #home .telegram-badge{
    font-size:10px!important;
    line-height:1!important;
    padding:5px 9px!important;
    font-weight:600!important;
    letter-spacing:.3px!important;
  }

  #home .telegram-offer-title{
    margin:8px 0 0!important;
    font-size:22px!important;
    line-height:1.05!important;
    font-weight:800!important;
    letter-spacing:-.35px!important;
  }

  #home .telegram-flirt{
    margin:5px 0 0!important;
    font-size:11px!important;
    line-height:1.35!important;
    font-weight:500!important;
  }

  #home .telegram-countdown-row{
    margin:auto 0 0!important;
    padding:10px 0 8px!important;
  }

  #home .telegram-offer-sub{
    font-size:10px!important;
    line-height:1.2!important;
    font-weight:500!important;
  }

  #home .telegram-timer{
    font-size:14px!important;
    line-height:1!important;
    padding:5px 10px!important;
    font-weight:800!important;
    letter-spacing:1.4px!important;
  }

  #home .telegram-join{
    min-height:40px!important;
    padding:0 14px!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:800!important;
  }
}

/* Give smaller desktop widths the same readable hierarchy without overflow. */
@media (min-width:700px) and (max-width:900px){
  #home .telegram-offer-title{font-size:20px!important}
  #home .telegram-flirt{font-size:10px!important}
  #home .telegram-jp{font-size:10px!important}
  #home .telegram-badge{font-size:9px!important}
  #home .telegram-offer-sub{font-size:9px!important}
  #home .telegram-timer{font-size:13px!important}
  #home .telegram-join{font-size:10px!important}
}

/* v26 — larger Telegram typography only; 70/30 and gallery untouched */
@media (min-width:700px){
  #home .telegram-jp{
    font-size:13px!important;
    line-height:1.25!important;
  }
  #home .telegram-badge{
    font-size:12px!important;
    padding:6px 11px!important;
  }
  #home .telegram-offer-title{
    font-size:27px!important;
    line-height:1.05!important;
    margin-top:9px!important;
  }
  #home .telegram-flirt{
    font-size:13px!important;
    line-height:1.38!important;
    margin-top:5px!important;
  }
  #home .telegram-offer-sub{
    font-size:12px!important;
    line-height:1.2!important;
  }
  #home .telegram-timer{
    font-size:15px!important;
    padding:6px 11px!important;
  }
  #home .telegram-join{
    min-height:43px!important;
    font-size:13px!important;
    padding:0 15px!important;
  }
}

@media (min-width:700px) and (max-width:900px){
  #home .telegram-jp{font-size:12px!important}
  #home .telegram-badge{font-size:11px!important}
  #home .telegram-offer-title{font-size:24px!important}
  #home .telegram-flirt{font-size:12px!important}
  #home .telegram-offer-sub{font-size:11px!important}
  #home .telegram-timer{font-size:14px!important}
  #home .telegram-join{font-size:12px!important}
}

/* v27 — gallery footer readability only. Photo and 70/30 geometry untouched. */
@media (min-width:700px){
  #home .caption{
    min-height:27px!important;
    padding:6px 4px 2px!important;
    display:flex!important;
    align-items:center!important;
  }

  #home .caption b{
    font-size:13px!important;
    line-height:1.15!important;
    font-weight:800!important;
  }

  #home .caption span{
    font-size:10px!important;
    line-height:1!important;
    font-weight:500!important;
  }

  #home .gallery-dots{
    height:15px!important;
    padding:1px 0 2px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
  }

  #home .gallery-dot{
    transform:scale(1.2)!important;
    transform-origin:center!important;
  }
}

/* v28 — clean gallery only: remove side "walls" and heavy circular controls.
   Photo dimensions, caption, Telegram and 70/30 geometry stay unchanged. */
@media (min-width:700px){
  #home .gallery-stage{
    background:#fffaf7!important;
  }

  #home .gallery-stage::before{
    display:none!important;
    content:none!important;
  }

  #home .gallery-prev,
  #home .gallery-next,
  #home .gallery-arrow{
    width:28px!important;
    height:42px!important;
    min-width:0!important;
    min-height:0!important;
    border:0!important;
    border-radius:10px!important;
    background:rgba(255,250,247,.78)!important;
    box-shadow:0 2px 10px rgba(72,49,45,.08)!important;
    color:#6f5c58!important;
    font-size:0!important;
    line-height:1!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    backdrop-filter:blur(5px)!important;
    -webkit-backdrop-filter:blur(5px)!important;
    opacity:.88!important;
    transition:background .18s ease, opacity .18s ease, transform .18s ease!important;
  }

  #home .gallery-prev::after,
  #home .gallery-next::after{
    display:block!important;
    font-family:Georgia, "Times New Roman", serif!important;
    font-size:28px!important;
    font-weight:400!important;
    line-height:1!important;
    transform:translateY(-1px)!important;
  }
  #home .gallery-prev::after{content:"‹"!important}
  #home .gallery-next::after{content:"›"!important}

  #home .gallery-prev{left:8px!important}
  #home .gallery-next{right:8px!important}

  #home .gallery-prev:hover,
  #home .gallery-next:hover{
    background:rgba(255,250,247,.96)!important;
    opacity:1!important;
  }
}

/* v29 — pastel blurred-photo gallery background.
   Keep photo fully visible and preserve 70/30 layout. */
@media (min-width:700px){
  #home .gallery-stage{
    position:relative!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#f7efec!important;
  }

  #home .gallery-stage::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:-34px!important;
    z-index:0!important;
    background-image:var(--gallery-bg, none)!important;
    background-size:cover!important;
    background-position:center!important;
    filter:blur(38px) brightness(1.34) saturate(.72)!important;
    opacity:.42!important;
    transform:scale(1.12)!important;
    pointer-events:none!important;
  }

  #home .gallery-stage::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    background:rgba(255,248,246,.30)!important;
    pointer-events:none!important;
  }

  #home .gallery-photo{
    position:relative!important;
    z-index:1!important;
    object-fit:contain!important;
  }

  /* Small glass controls hug the visible photo area rather than looking
     like large controls floating in blank side walls. */
  #home .gallery-prev,
  #home .gallery-next{
    z-index:4!important;
    width:32px!important;
    height:32px!important;
    border-radius:50%!important;
    border:1px solid rgba(255,255,255,.70)!important;
    background:rgba(255,255,255,.48)!important;
    color:#604f4b!important;
    box-shadow:0 4px 14px rgba(58,39,35,.12)!important;
    backdrop-filter:blur(9px)!important;
    -webkit-backdrop-filter:blur(9px)!important;
    opacity:.92!important;
  }

  #home .gallery-prev::after,
  #home .gallery-next::after{
    font-size:23px!important;
    transform:translateY(-1px)!important;
  }

  #home .gallery-prev:hover,
  #home .gallery-next:hover{
    background:rgba(255,255,255,.72)!important;
    transform:scale(1.04)!important;
  }
}

/* v30 — less blurred / more photographic side backdrop only */
@media (min-width:700px){
  #home .gallery-stage::before{
    inset:-16px!important;
    filter:blur(12px) brightness(1.08) saturate(.92)!important;
    opacity:.68!important;
    transform:scale(1.045)!important;
  }

  #home .gallery-stage::after{
    background:rgba(255,248,246,.10)!important;
  }
}

/* v31 — softer kawaii active navigation */
.nav a.active,
.nav-link.active,
a.active[href="#home"],
a[href="#home"].active{
  background:#f3dfe3!important;
  color:#654b4f!important;
  border:1px solid #e6c8cf!important;
  box-shadow:0 2px 8px rgba(146,92,105,.10)!important;
  text-shadow:none!important;
}

.nav a.active:hover,
.nav-link.active:hover,
a.active[href="#home"]:hover,
a[href="#home"].active:hover{
  background:#efd6dc!important;
  border-color:#dfbbc4!important;
  color:#5d4549!important;
  box-shadow:0 3px 10px rgba(146,92,105,.13)!important;
}

/* v32 — Home matches Wishlist exactly: no active highlight */
.nav a.active,
.nav-link.active,
a.active[href="#home"],
a[href="#home"].active,
.nav a[href="#home"],
.nav-link[href="#home"]{
  background:#fff8f6!important;
  color:#8a6862!important;
  border:1px solid #ead9d4!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

.nav a.active:hover,
.nav-link.active:hover,
a.active[href="#home"]:hover,
a[href="#home"].active:hover,
.nav a[href="#home"]:hover,
.nav-link[href="#home"]:hover{
  background:#fff8f6!important;
  color:#8a6862!important;
  border-color:#ead9d4!important;
  box-shadow:none!important;
  transform:none!important;
}

/* v33 — exact fix: active Home is identical to Wishlist */
.tabs button,
.tabs button.active,
.tabs .active,
#home > .tabs button,
#home > .tabs button.active{
  background:#faf3f1!important;
  color:#927b75!important;
  border:1px solid #eaded9!important;
  box-shadow:none!important;
  text-shadow:none!important;
  outline:none!important;
}

.tabs button:hover,
.tabs button.active:hover,
.tabs .active:hover,
#home > .tabs button:hover,
#home > .tabs button.active:hover{
  background:#faf3f1!important;
  color:#927b75!important;
  border-color:#eaded9!important;
  box-shadow:none!important;
  text-shadow:none!important;
  outline:none!important;
  transform:none!important;
}

.tabs button:focus,
.tabs button:focus-visible,
.tabs button.active:focus,
.tabs button.active:focus-visible{
  background:#faf3f1!important;
  color:#927b75!important;
  border-color:#eaded9!important;
  box-shadow:none!important;
  outline:none!important;
}

/* v34 — Telegram card bottom spacing fix only.
   Keep outer 30% block height unchanged. */
@media (min-width:700px){
  #home .telegram-offer{
    padding:14px 16px 18px!important;
    box-sizing:border-box!important;
  }

  #home .telegram-countdown-row{
    margin:auto 0 0!important;
    padding:7px 0 7px!important;
  }

  #home .telegram-join{
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
    flex:0 0 40px!important;
    box-sizing:border-box!important;
  }
}

/* v35 — pixel-aligned Telegram inner spacing.
   Outer card size and 70/30 layout remain unchanged. */
@media (min-width:700px){
  #home .telegram-offer{
    padding:16px 20px 20px!important;
    box-sizing:border-box!important;
  }

  #home .telegram-countdown-row{
    margin:auto 0 0!important;
    padding:8px 0 9px!important;
  }

  #home .telegram-join{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    flex:0 0 40px!important;
    margin:0!important;
    padding:0 16px!important;
    box-sizing:border-box!important;
  }
}

/* v36 — exact equal vertical edge spacing for Telegram card.
   Keep outer card dimensions and 70/30 unchanged. */
@media (min-width:700px){
  #home .telegram-offer{
    padding:22px 20px 22px!important;
    box-sizing:border-box!important;
  }

  /* Keep the content compact enough to preserve the exact 22px bottom gap. */
  #home .telegram-offer-top{
    flex:0 0 auto!important;
  }

  #home .telegram-offer-title{
    margin-top:7px!important;
  }

  #home .telegram-flirt{
    margin-top:3px!important;
  }

  #home .telegram-countdown-row{
    margin:auto 0 0!important;
    padding:6px 0 7px!important;
    flex:0 0 auto!important;
  }

  #home .telegram-join{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    flex:0 0 40px!important;
    margin:0!important;
    padding:0 16px!important;
    box-sizing:border-box!important;
  }
}

/* v37 — only Join button/bottom edge spacing */
@media (min-width:700px){
 #home .telegram-offer{padding:14px 16px 18px!important;box-sizing:border-box!important}
 #home .telegram-offer-title{margin-top:9px!important}
 #home .telegram-flirt{margin-top:5px!important}
 #home .telegram-countdown-row{margin:auto 0 0!important;padding:7px 0 7px!important}
 #home .telegram-join{
   width:100%!important;height:40px!important;min-height:40px!important;
   flex:0 0 40px!important;margin:0 0 8px!important;padding:0 16px!important;
   box-sizing:border-box!important
 }
}

/* v39 — ONLY the white Join button is moved.
   20px top / 10px bottom -> target 15px / 15px.
   Therefore button bottom gap increases by exactly 5px. */
@media (min-width:700px){
  #home .telegram-join{
    margin-bottom:13px!important; /* v37 had 8px; +5px = exact midpoint correction */
  }
}

/* v40 — Telegram card: exact equal vertical inner spacing, 12px top / 12px bottom. */
@media (min-width:700px){
  #home .telegram-offer{
    padding-top:12px!important;
    padding-bottom:12px!important;
  }
  #home .telegram-join{
    margin-bottom:0!important;
  }
}

/* v41 — equal outer vertical spacing between the marked Home blocks: 24px. */
@media (min-width:700px){
  #home > .polaroid{
    margin-bottom:24px!important;
  }
  #home > .telegram-intro{
    margin-top:0!important;
    margin-bottom:0!important;
  }
  #home > .wishlist-teaser{
    margin-top:24px!important;
    margin-bottom:0!important;
  }
  #home > footer{
    margin-top:24px!important;
  }
}

/* v42 — temporary wishlist placeholder */
.wishlist-placeholder{min-height:420px;padding:62px 24px 48px;border:1px solid #eaded9;border-radius:24px;background:#faf3f5;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.wishlist-placeholder-icon{font-size:42px;margin-bottom:14px}.wishlist-placeholder small{color:#bd8997;font-weight:700}.wishlist-placeholder h2{margin:10px 0 8px;font-size:27px;color:#302a27}.wishlist-placeholder p{margin:0;color:#927b75;font-size:13px;line-height:1.65}.wishlist-back{margin-top:26px;min-width:150px;border:0;border-radius:15px;padding:14px 20px;background:#302b2a;color:#fffaf7;font-weight:700;cursor:pointer}.wishlist-back span{margin-right:8px}

/* v44 — full phone adaptation (320–699px). Desktop layout is unchanged. */
@media (max-width:699px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{-webkit-text-size-adjust:100%}
  .shell{width:100%;max-width:none;margin:0;padding:10px 8px 18px}
  .paper{width:100%;padding:14px;border-radius:24px}

  #home>.tabs{margin:2px 0 18px;gap:6px;align-items:center;overflow:visible}
  .tabs .nav-rin{margin-right:auto;white-space:nowrap}
  .tabs button{flex:0 0 auto;padding:8px 11px;font-size:11px;white-space:nowrap}

  #home>.polaroid{margin-bottom:24px}
  .polaroid{padding:10px 10px 8px;border-radius:18px}
  .gallery-stage{width:100%;aspect-ratio:4/4.55;min-height:0;border-radius:14px}
  .polaroid img,.gallery-stage .gallery-photo{height:100%!important;min-height:0!important;max-height:none!important}
  .caption{padding:11px 3px 0;gap:8px}
  .caption b{font-size:13px;line-height:1.25}
  .caption span{font-size:10px;white-space:nowrap}
  .gallery-dots{padding:0 0 9px}
  .tape{width:88px;height:20px;top:-8px}

  #home>.telegram-intro{padding:0;margin:0}
  #home .telegram-offer{width:100%;margin:0!important;padding:12px!important;border-radius:18px!important;box-shadow:none}
  #home .telegram-offer-top{justify-content:flex-start;gap:8px;flex-wrap:wrap}
  #home .telegram-jp{font-size:13px;white-space:nowrap}
  #home .telegram-badge{font-size:10px;padding:6px 9px;white-space:nowrap}
  #home .telegram-offer-title{margin-top:11px;font-size:clamp(25px,8.1vw,34px);line-height:1.03;letter-spacing:-.025em;overflow-wrap:anywhere}
  #home .telegram-flirt{margin-top:5px;font-size:13px;line-height:1.45}
  #home .telegram-countdown-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding-top:9px}
  #home .telegram-offer-sub{margin:0;font-size:11px}
  #home .telegram-timer{flex:0 0 auto;margin:0;font-size:20px;line-height:1;padding:7px 11px;white-space:nowrap}
  #home .telegram-join{width:100%;min-height:44px;height:auto;margin:9px 0 0!important;padding:10px 13px;font-size:12px;line-height:1.2;border-radius:12px;gap:8px}
  #home .telegram-join b{flex:0 0 auto}

  #home>.wishlist-teaser{margin-top:24px!important;margin-bottom:0!important;padding:17px;border-radius:18px;display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:10px}
  .wishlist-teaser h3{font-size:17px;line-height:1.15}
  .wishlist-teaser p{font-size:11px}
  .wishlist-teaser>span{max-width:105px;text-align:right;line-height:1.25;white-space:normal}

  .wishlist-placeholder{min-height:calc(100svh - 105px);padding:36px 18px;border-radius:20px}
  .wishlist-placeholder-icon{font-size:38px}
  .wishlist-placeholder h2{font-size:23px;line-height:1.15}
  .wishlist-placeholder p{font-size:12px}
  .wishlist-back{min-width:140px;padding:13px 18px}
}

@media (max-width:360px){
  .shell{padding-left:5px;padding-right:5px}
  .paper{padding:11px;border-radius:20px}
  #home>.tabs{gap:4px}
  .tabs button{padding:7px 8px;font-size:10px}
  #home .telegram-offer-title{font-size:24px}
  #home .telegram-jp{font-size:12px}
  #home .telegram-badge{font-size:9px;padding:5px 7px}
  #home .telegram-timer{font-size:18px;padding:7px 9px}
  #home>.wishlist-teaser{padding:15px}
  .wishlist-teaser h3{font-size:16px}
}

/* v45 — phone first screen: keep both the photo and Telegram card visible immediately. */
@media (max-width:699px){
  .shell{padding-top:6px}
  .paper{padding-top:10px}
  #home>.tabs{margin:0 0 10px}
  #home>.polaroid{margin-bottom:12px!important}
  .polaroid{padding:8px 8px 6px}
  .gallery-stage{aspect-ratio:auto!important;height:clamp(210px,31svh,285px)!important;min-height:0!important}
  .polaroid img,.gallery-stage .gallery-photo{height:100%!important;width:100%!important;object-fit:contain!important}
  .caption{padding-top:7px}
  .gallery-dots{padding-bottom:5px}

  #home .telegram-offer{padding:10px 12px!important}
  #home .telegram-offer-title{margin-top:8px;font-size:clamp(22px,7vw,30px)}
  #home .telegram-flirt{margin-top:3px;font-size:12px;line-height:1.3}
  #home .telegram-countdown-row{margin-top:6px;padding-top:6px}
  #home .telegram-timer{font-size:18px;padding:6px 10px}
  #home .telegram-join{min-height:40px;margin-top:7px!important;padding:8px 12px}
}
@media (max-width:699px) and (max-height:700px){
  .gallery-stage{height:clamp(185px,27svh,220px)!important}
  .caption{padding-top:5px}
  .gallery-dots{padding-bottom:3px}
  #home .telegram-offer-title{font-size:21px}
  #home .telegram-flirt{font-size:11px}
  #home .telegram-join{min-height:38px}
}

/* v46 — zoom-safe Telegram layout.
   Keep the normal desktop minimum size, but allow the card to grow when browser zoom
   or a shorter viewport makes its contents taller. This prevents the Join button from
   escaping the pink card and keeps Wishlist 24px below the card's real bottom edge. */
@media (min-width:700px){
  #home > .telegram-intro{
    height:auto!important;
    min-height:calc(30vh - 12px)!important;
    overflow:visible!important;
  }
  #home .telegram-offer{
    height:auto!important;
    min-height:calc(30vh - 12px)!important;
    overflow:visible!important;
  }
  #home > .wishlist-teaser{
    margin-top:24px!important;
  }
}
