/* DeepestFeelings — Christmas & New Year greetings */

@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap;
  src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap;
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg1: #0e2a1f; --bg2: #05100c;
  --accent: #ffdd81; --accent-ink: #2a1d00;
  --red: #c8283c; --red2: #e0475a;
  --ink: #fff6e0; --soft: #d6e8dc; --muted: rgba(214, 232, 220, .92);
  --head: #5aff00;
  --panel: rgba(255, 255, 255, .06);
  --panel-2: rgba(0, 0, 0, .5);
  --line: rgba(240, 196, 96, .35);
  --wa: #1c8f4d;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wish--new-year {
  --bg1: #0b1030; --bg2: #160a2c;
  --accent: #ffcd6e; --accent-ink: #2a1a00;
  --head: #3ae6ff;
  --red: #7a5cff; --red2: #a68bff;
  --ink: #fff8ec; --soft: #dedef8; --muted: rgba(222, 222, 248, .72);
  --line: rgba(255, 205, 110, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; /*min-height: 100vh; min-height: 150dvh;*/
  font: 400 16px/1.6 var(--sans); color: var(--ink);
  background-color: var(--bg2);
  overflow-x: hidden;
}
body.wish--christmas, body.wish--new-year {
	position: relative;
    isolation: isolate;
	}
body.wish--christmas::before {
	background:url(../../images/christmas-bg.jpg) var(--bg2);
}
body.wish--new-year::before {
	background:url(../../images/new-year-bg.jpg) var(--bg2);
}
body.wish--christmas::before, body.wish--new-year::before {
	content: "";
  	position: absolute;
  	inset: 0;
	background-repeat:no-repeat;
	background-attachment:fixed ;
	background-position: 50% center;
	background-size:cover;
	height:100%;
	opacity: 0.2; /* Adjust image opacity here (0.0 to 1.0) */
	transition: opacity 1s ease-in-out;
    z-index: -1;
}

body.wish--christmas.show-background::before, body.wish--new-year.show-background::before {
    opacity: 1.0;
}
a { color: var(--accent); }
[hidden] { display: none !important; }

.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- Christmas string lights ---------- */
.lights {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1; pointer-events: none;
  display: flex; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56'%3E%3Cpath d='M0 14 Q60 40 120 14' fill='none' stroke='%23244f3b' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 56px;
}
.lights i {
  flex: 0 0 10px; height: 15px; margin: 22px 25px 0; border-radius: 45% 45% 50% 50%;
  background: #ff5a5a; box-shadow: 0 0 12px 3px rgba(255, 90, 90, .55);
  animation: twinkle 2.6s ease-in-out infinite;
}
.lights i:nth-child(4n+2) { background: #ffd26e; box-shadow: 0 0 12px 3px rgba(255, 210, 110, .55); animation-delay: -.7s; }
.lights i:nth-child(4n+3) { background: #78e6a0; box-shadow: 0 0 12px 3px rgba(120, 230, 160, .5); animation-delay: -1.4s; }
.lights i:nth-child(4n+4) { background: #8cbeff; box-shadow: 0 0 12px 3px rgba(140, 190, 255, .5); animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Top bar ---------- */
.bar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: 15px 20px 0;
}
.wish--new-year .bar { padding-top: 18px; }
.wish--new-year .gate { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); }
.brand { display:block; font: 700 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .2px; margin:0 auto}
.brand img {max-width:270px; height:auto}
.sound {
 /* font: 500 13px/1 var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;*/
  padding:0; background:none; border:none;
}
.sound[aria-pressed="true"] .sound__off, .sound[aria-pressed="false"] .sound__on { display: none; }

/* ---------- Layout ---------- */
.wrap { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 20px 40px; }

.card__script, .gate__kicker {
  font: 400 clamp(44px, 11vw, 68px)/1.1 var(--script); color: var(--accent); margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* ---------- Gate (tap to open) ---------- */
.gate {
  min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 0 32px;
}
.gate__title { font: 400 clamp(20px, 5vw, 26px)/1.35 var(--sans); color: var(--soft); margin: 8px 0 28px; }
.gate__name { display: block; /*font: 700 clamp(32px, 8.5vw, 48px)/1.15 var(--serif);*/ color: var(--ink); margin-bottom: 4px; overflow-wrap: anywhere; }
.gate__hint { color: var(--muted); font-size: 15px; margin: 26px 0 0; }
.gate__hint span { white-space: nowrap; }

.gift {
  position: relative; width: 190px; height: 190px; border: 0; padding: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; animation: wobble 2.8s ease-in-out infinite;
}
.gift:focus-visible { outline: 3px solid var(--accent); outline-offset: 10px; border-radius: 16px; }
.gift__box {
  position: absolute; left: 14px; right: 14px; bottom: 0; height: 120px; border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 43%, var(--accent) 43% 57%, transparent 57%),
    linear-gradient(180deg, var(--red2), var(--red));
  box-shadow: inset 0 -14px 24px rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .45);
}
.gift__lid {
  position: absolute; left: 0; right: 0; top: 46px; height: 40px; border-radius: 9px; z-index: 2;
  background:
    linear-gradient(90deg, transparent 42%, var(--accent) 42% 58%, transparent 58%),
    linear-gradient(180deg, var(--red2), var(--red));
  box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1.2), opacity .7s ease;
}
.gift__bow { position: absolute; left: 50%; top: -38px; width: 0; height: 0; }
.gift__bow::before, .gift__bow::after {
  content: ""; position: absolute; top: 0; width: 46px; height: 38px;
  border: 10px solid var(--accent); border-radius: 50% 50% 40% 40%;
}
.gift__bow::before { right: 2px; transform: rotate(-18deg); }
.gift__bow::after { left: 2px; transform: rotate(18deg); }
.gift__glow {
  position: absolute; inset: -40px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 210, 120, .35), transparent 65%);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes wobble {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-5deg) scale(1.03); } 82% { transform: rotate(5deg) scale(1.03); }
  88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); }
}
@keyframes pulse { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }

.gate.is-opening .gift { animation: none; }
.gate.is-opening .gift__lid { transform: translateY(-150px) rotate(-22deg); opacity: 0; }
.gate.is-opening .gift__box { transition: transform .6s .25s ease, opacity .6s .25s ease; transform: scale(.85); opacity: 0; }
.gate.is-opening .gift__glow { animation: none; transition: transform .8s ease, opacity .8s ease; transform: scale(2.4); opacity: 0; }
.gate.is-opening .gate__title, .gate.is-opening .gate__hint, .gate.is-opening .gate__kicker { transition: opacity .5s ease; opacity: 0; }

/* ---------- Reveal card ---------- */
.card, .make, .info {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px;
  /*-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);*/
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.card { text-align: center; padding: 34px 26px 140px; margin: 28px 0 22px; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.card__msg { font: 400 italic clamp(19px, 4.6vw, 22px)/1.6 var(--serif); color: var(--ink); margin: 18px 0 22px; }
.card__from { color: var(--muted); margin: 0 0 65px; font-size: 15px; }
.card__from span { display: block; font: 700 clamp(24px, 6vw, 30px)/1.25 var(--serif); color: var(--ink); margin-top: 4px; overflow-wrap: anywhere; }
.card__days { margin: 6px 0 0; color: var(--soft); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.countdown { margin: 14px 0 4px; }
.countdown__label { margin: 0 0 10px; color: var(--soft); font-weight: 500; letter-spacing: .3px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 0 auto; }
.countdown__grid span {
  display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted);
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px 8px;
}
.countdown__grid b { font: 700 clamp(24px, 7vw, 32px)/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Maker ---------- */
.make { padding: 28px 24px 26px; margin: 0 0 22px; }
.make--hero { margin-top: 26px; text-align: center; }
.make--hero .form, .make--hero .result { text-align: left; }
.make__title { font: 700 clamp(26px, 6.4vw, 36px)/1.2 var(--serif); margin: 4px 0 10px; color:var(--head);text-shadow: 1px 1px #000; }
.make__intro { color: var(--soft); margin: 0 0 22px; }

.form label { display: block; font-weight: 600; margin: 0 0 8px; }
.form__row { display: flex; gap: 10px; }
.form input {
  flex: 1; min-width: 0; font: 500 17px/1.2 var(--sans); color: #1b1b1b; background: #fffdf7;
  border: 2px solid transparent; border-radius: 12px; padding: 13px 14px;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240, 196, 96, .25); }
.form input[aria-invalid="true"] { border-color: #ff7b7b; }
.form__help { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.form__error { margin: 8px 0 0; font-size: 14px; color: #ffb3b3; font-weight: 500; }
@media (max-width: 480px) { .form__row { flex-direction: column; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn--wa { background: var(--wa); color: #fff; border-color: transparent; }
.btn--ghost { background: transparent; }

.result { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); animation: rise .5s ease both; }
.result__label { margin: 0 0 10px; font-weight: 600; }
.result__link { display: flex; gap: 10px; }
.result__link input {
  flex: 1; min-width: 0; font: 400 14px/1.2 var(--sans); color: var(--ink);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.result__share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.result__share .btn--wa { flex: 1 1 200px; }

/* ---------- Info (maker page) ---------- */
.info { padding: 26px 24px 18px; }
.info h2 { font: 700 22px/1.3 var(--serif); margin: 6px 0 12px; color: #00cf97;}
.info h2:not(:first-child) { margin-top: 28px; }
.steps { margin: 0; padding-left: 22px; color: var(--soft); }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--ink); }
.preview { margin: 0; }
.preview img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.preview figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--soft); }
.also { margin: 24px 0 0; color: var(--soft); }
.terms { color: var(--muted); font-size: 14px; }

.foot { background: rgba(0, 0, 0, .60);position: relative; z-index: 2; text-align: center; color: var(--muted); font-size: 13px; padding: 8px 10px 8px; }
.foot a { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10; transform: translateX(-50%);
  background: #fffdf7; color: #1b1b1b; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  animation: rise .3s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
