@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@400;600;800&display=swap');

/* Alber Valentine Global Timer - scoped styles (safe for whole site) */
.av-root, .av-root * { box-sizing: border-box; }

.av-root {
  --av-pink: #ff4d6d;
  --av-hot: #ff2e63;
  --av-rose: #ff7aa2;
  --av-ink: #2b2b36;
  --av-card: rgba(255,255,255,.92);

  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 30px auto;
  padding: 18px 16px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.av-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(255,77,109,.30), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(255,122,162,.28), transparent 60%),
    radial-gradient(900px 700px at 40% 120%, rgba(255,77,109,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,240,246,1) 0%, rgba(255,247,251,1) 40%, rgba(255,255,255,1) 100%);
  border-radius: 22px;
}

.av-sparkles{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.av-sparkles span{
  position:absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 18px rgba(255,77,109,.55);
  animation: av-twinkle 2.8s ease-in-out infinite;
}
.av-sparkles span:nth-child(1){ left: 12%; top: 18%; animation-delay: .1s; }
.av-sparkles span:nth-child(2){ left: 82%; top: 26%; animation-delay: .7s; }
.av-sparkles span:nth-child(3){ left: 24%; top: 70%; animation-delay: 1.2s; }
.av-sparkles span:nth-child(4){ left: 62%; top: 78%; animation-delay: .4s; }
.av-sparkles span:nth-child(5){ left: 48%; top: 12%; animation-delay: 1.7s; }
.av-sparkles span:nth-child(6){ left: 90%; top: 68%; animation-delay: 2.0s; }

@keyframes av-twinkle{
  0%,100%{ transform: scale(.8); opacity: .35; }
  50%{ transform: scale(1.25); opacity: 1; }
}

.av-card {
  position: relative;
  background: var(--av-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 77, 109, 0.22);
  border-radius: 20px;
  padding: 30px 22px;
  box-shadow:
    0 18px 60px rgba(0,0,0,.10),
    0 2px 0 rgba(255,255,255,.65) inset;
  text-align: center;
}

.av-kicker{
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(43,43,54,.74);
}

.av-title {
  margin: 0 0 10px;
  font-family: "Dancing Script", cursive;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.03;
  color: var(--av-ink);
  text-shadow: 0 10px 26px rgba(255,77,109,.18);
}

.av-subtitle {
  margin: 0 0 18px;
  opacity: .85;
  color: rgba(43,43,54,.80);
}

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

.av-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 13px 22px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease, box-shadow .15s ease;
  color: #fff;
  min-width: 150px;
}

.av-btn:hover { transform: translateY(-2px) scale(1.03); }
.av-btn:active { transform: translateY(0) scale(0.99); }
.av-btn:disabled { opacity: .62; cursor: not-allowed; }

.av-btn--yes {
  background: linear-gradient(135deg, var(--av-hot) 0%, var(--av-pink) 55%, var(--av-rose) 100%);
  box-shadow: 0 14px 30px rgba(255,46,99,.25);
  animation: av-pulse 2.2s ease-in-out infinite;
}

@keyframes av-pulse{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-1px) scale(1.015); }
}

.av-btn--no {
  background: linear-gradient(135deg, #6f6f85 0%, #8d8da0 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.av-message {
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--av-pink);
}

.av-signature{
  margin: 16px 0 0;
  font-size: 13px;
  opacity: .70;
}

.av-footer{
  margin: 14px 0 0;
  font-weight: 700;
  opacity: .8;
}

.av-love{
  margin-top: 14px;
}

.av-meter{
  margin-top: 12px;
  padding: 14px 14px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,77,109,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.av-meter__value{
  font-weight: 800;
  font-size: 18px;
  color: var(--av-hot);
  margin-bottom: 10px;
}

.av-slider{
  width: min(520px, 95%);
  max-width: 100%;
  accent-color: var(--av-hot);
}

.av-meter__labels{
  width: min(520px, 95%);
  margin: 8px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .75;
}

.av-note{
  margin-top: 12px;
}

.av-note__input{
  width: min(520px, 95%);
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,77,109,.22);
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,.85);
}

.av-note__input:focus{
  box-shadow: 0 0 0 4px rgba(255,77,109,.14);
}

.av-love-pill{
  margin: 16px auto 0;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,46,99,.10);
  border: 1px solid rgba(255,46,99,.18);
  font-weight: 800;
  color: rgba(43,43,54,.88);
}

.av-admin{
  margin-top: 14px;
  opacity: .8;
}

.av-reset{
  appearance: none;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.av-reset:hover{
  background: rgba(0,0,0,.09);
}

.av-timer { margin-top: 14px; }

.av-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}

.av-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,77,109,.18);
  min-width: min(520px, 95%);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  gap: 16px;
}

.av-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--av-hot);
  min-width: 120px;
  text-align: right;
}

.av-label {
  opacity: .9;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--av-hot);
}

/* floating hearts */
.av-heart {
  position: fixed;
  bottom: -30px;
  pointer-events: none;
  z-index: 999999;
  opacity: .95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  animation: av-float var(--av-dur, 3.4s) ease-in forwards;
  transform: translateX(var(--av-drift, 0px));
  will-change: transform, opacity;
}

@keyframes av-float {
  0% { transform: translateX(var(--av-drift, 0px)) translateY(0) rotate(0deg); opacity: .95; }
  100% { transform: translateX(calc(var(--av-drift, 0px) * -1)) translateY(-110vh) rotate(540deg); opacity: 0; }
}

/* playful shake for "No" moments */
.av-shake { animation: av-shake .45s ease-in-out; }
@keyframes av-shake {
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce){
  .av-btn, .av-card { transition: none; }
  .av-btn--yes { animation: none; }
  .av-sparkles span { animation: none; }
  .av-heart { display: none !important; animation: none; }
  .av-shake { animation: none; }
}

