:root{
  --bg1:#f8b4c4;
  --bg2:#f2a6b7;
  --ink:#b21b52;
  --btn:#d62b63;
  --card:#ffffff;
  --shadow: 0 22px 55px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; margin:0; padding:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial; }

body{
  height:100vh;
  overflow:hidden;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(255,255,255,.25), transparent 55%),
              linear-gradient(135deg,var(--bg1),var(--bg2));
}

#bg{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.wrap{
  position:relative;
  z-index:2;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.card{
  width:min(420px, 92vw);
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius:28px;
  padding:26px 22px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
  text-align:center;
  position:relative;
  overflow: hidden;
}

.top{
  display:flex;
  justify-content:center;
  margin-top:4px;
  margin-bottom:10px;
}

.bear{
  width:160px;
  height:auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
  transform: translateZ(0);
  animation: float 2.2s ease-in-out infinite;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.bear.big{ width:min(240px, 80vw); animation: pop .45s ease-out both; }

.hero-3d{
  position: relative;
  display: inline-block;
  animation: heroFloat 3.6s ease-in-out infinite;
}

.hero-3d::after{
  content:"";
  position:absolute;
  inset:-6% -4% -2% -4%;
  background:
    radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
    linear-gradient(120deg, rgba(255,255,255,.25), rgba(255,255,255,0) 45%);
  border-radius: 24px;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.6;
  animation: glassSheen 4.2s ease-in-out infinite;
}

.hero-3d .bear.big{
  filter:
    drop-shadow(0 18px 28px rgba(0,0,0,.22))
    drop-shadow(0 4px 10px rgba(214,43,99,.25));
  transform: translateZ(0);
}

@keyframes heroFloat{
  0%,100%{ transform: translateY(0) scale(1) }
  50%{ transform: translateY(-6px) scale(1.02) }
}

@keyframes glassSheen{
  0%,100%{ opacity:.45; transform: translateY(0) }
  50%{ opacity:.7; transform: translateY(-4px) }
}

@keyframes float{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-10px) }
}
@keyframes pop{
  from{ transform: scale(.85); opacity:.4 }
  to{ transform: scale(1); opacity:1 }
}

.title{
  color:var(--ink);
  font-size:28px;
  line-height:1.06;
  margin:6px 0 18px;
  letter-spacing:-.3px;
}
.title .bold{ font-weight:800; }

.buttons{
  position:relative;
  height:56px;
  display:flex;
  justify-content:center;
  gap:14px;
  align-items:center;
  margin-bottom:10px;
}

.btn{
  border:0;
  border-radius:999px;
  padding:12px 22px;
  font-size:16px;
  cursor:pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 18px rgba(214,43,99,.22);
}

.btn.yes{
  background:var(--btn);
  color:white;
  min-width:120px;
}
.btn.yes:hover{ transform: translateY(-1px) scale(1.03); }

.btn.no{
  background:#e8e8ea;
  color:#555;
  min-width:120px;
  position:relative;
}

.btn.ghost{
  background: rgba(255,255,255,.65);
  color: #8a1240;
  box-shadow:none;
  border:1px solid rgba(178,27,82,.18);
}

.btn.secret{
  background: linear-gradient(135deg,#ff5f9e,#ff7b6b);
  color:#fff;
  border:0;
  box-shadow: 0 12px 26px rgba(255,95,158,.35);
}

.btn.secret.jumping{
  position: absolute;
  z-index: 9;
}

.hint{
  font-size:12px;
  color: rgba(0,0,0,.45);
  margin-bottom:6px;
}

.result{ display:none; margin-top:6px; }
.subtitle{
  color: var(--ink);
  font-size:22px;
  margin: 10px 0 14px;
}

.gallery-title{
  margin: 4px 0 6px;
  font-size:15px;
  color: rgba(0,0,0,.65);
  font-weight:600;
  letter-spacing:.2px;
}

.gallery{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 8px 0 10px;
}

.photo{
  width:min(320px, 78vw);
  height:200px;
  object-fit:cover;
  border-radius:18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.6);
  animation: fade .25s ease;
}

@keyframes fade{ from{opacity:.4; transform:scale(.98)} to{opacity:1; transform:scale(1)} }

.nav{
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background: rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.08);
  font-size:26px;
  line-height:40px;
  color:#8a1240;
}

.actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 10, 14, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 10;
}

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

.modal__card{
  position: relative;
  width: min(420px, 92vw);
  background:
    radial-gradient(120% 120% at 20% 10%, #fff6fb 0%, #ffe8f1 50%, #ffdbe9 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease;
}

.modal.show .modal__card{
  transform: translateY(0) scale(1);
}

.modal__close{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.85);
  color: #8a1240;
  font-size: 20px;
  cursor: pointer;
}

.modal__badge{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #8a1240;
  background: rgba(255,255,255,.7);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138,18,64,.15);
}

.modal__title{
  margin: 8px 0 6px;
  color: #7a0f3a;
  font-size: 22px;
}

.modal__text{
  margin: 8px 0 14px;
  font-size: 18px;
  color: #3a0b20;
  line-height: 1.35;
  min-height: 72px;
}

.modal__nav{
  display:flex;
  gap:10px;
  justify-content:center;
}

.modal__btn{
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #8a1240;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(138,18,64,.25);
}

.modal__btn:hover{ filter: brightness(1.05); }

.shake{
  animation: shake .35s ease;
}
@keyframes shake{
  0%{ transform: translateX(0) }
  25%{ transform: translateX(-6px) }
  50%{ transform: translateX(6px) }
  75%{ transform: translateX(-4px) }
  100%{ transform: translateX(0) }
}
