/* =========================================================
   Bolzoo — дулаан, хайрын загвар (тоор · сарнай · алтлаг)
   ========================================================= */
:root {
  --ink: #5a2a46;
  --muted: #8b7285;
  --soft: #a98a9b;
  --ivory: #fffcfa;
  --blush: #fff3f6;
  --blush2: #ffe3ea;
  --rose: #f76a8e;
  --coral: #ff8fa6;
  --gold: #f3a85f;
  --line: #ffe0e8;
  --green: #4caf82;
  --grad: linear-gradient(135deg, #ff8fa6 0%, #f76a8e 100%);
  --shadow: 0 30px 60px -36px rgba(200, 80, 120, 0.55);
  --shadow-sm: 0 10px 22px -16px rgba(247, 106, 142, 0.6);
  --card: #ffffff;
  --panel: rgba(255, 252, 250, 0.93);
  --panel-line: rgba(255, 220, 230, 0.8);
  --hand: #a0577a;
  --avatar-bg: radial-gradient(circle at 50% 40%, #fff 0%, #fff4f1 70%);
  --ticket: linear-gradient(135deg, #fff 0%, #fff0f4 100%);
  --page-base: #fff0f4;
  --page:
    radial-gradient(520px 420px at 10% 4%, #ffe6d6 0%, transparent 60%),
    radial-gradient(520px 420px at 92% 12%, #ffdce8 0%, transparent 60%),
    radial-gradient(620px 520px at 50% 110%, #ece0ff 0%, transparent 60%),
    linear-gradient(170deg, #fff7f3 0%, #fff0f4 60%, #f9eefa 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--page-base); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* унах дэлбээ */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petals span { position: absolute; top: -40px; opacity: 0.75; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translate(0, -5vh) rotate(0deg); } 100% { transform: translate(var(--drift, 30px), 110vh) rotate(260deg); } }

a { color: var(--rose); }
button { font-family: inherit; }

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 22px 14px 30px; }
.panel {
  position: relative;
  width: min(460px, 100%);
  min-height: min(780px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  padding: 22px 22px 26px;
  border-radius: 32px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: 0 30px 60px -36px rgba(200, 80, 120, 0.55), 0 0 0 1px rgba(255, 220, 230, 0.7) inset;
  backdrop-filter: blur(8px);
}
.screen { display: flex; flex-direction: column; flex: 1; animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.foot { position: relative; z-index: 1; margin: 18px 0 0; font-size: 14px; font-weight: 800; }
.foot a { color: var(--rose); text-decoration: none; }
.center { text-align: center; }

/* progress */
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.progress i { height: 6px; border-radius: 9px; background: var(--blush2); }
.progress i.on { background: var(--grad); }

.back {
  align-self: flex-start;
  font-size: 14px; font-weight: 800; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--blush); border: 1px solid var(--line);
}
.title {
  font-family: "Comfortaa", "Nunito", sans-serif; font-weight: 600; font-size: 25px; line-height: 1.35;
  text-align: center; margin: 10px 0 20px; color: var(--ink);
}
.title.big { font-size: 26px; margin: 8px 0 12px; }

/* form */
label { display: block; margin: 18px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--rose); }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #c9a9ae; font-weight: 600; }
input:focus, textarea:focus { border-color: #ef9aa8; box-shadow: 0 0 0 4px rgba(228, 92, 120, 0.12); }
textarea { min-height: 96px; resize: vertical; }
.help { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--soft); }
.help.ok { color: var(--green); }
.file { padding: 14px; border-radius: 16px; border: 1.5px dashed #efb7bf; background: var(--blush); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.file input { padding: 0; border: 0; background: none; font-size: 14px; box-shadow: none; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); }
.link { background: none; border: none; color: var(--rose); font-weight: 800; cursor: pointer; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 18px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--rose); box-shadow: none; }
.err { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #ffe1e4; color: #b3304e; font-weight: 800; font-size: 14px; }

/* option rows (create) */
.opt-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; background: var(--blush); border: 1px solid var(--line); margin-bottom: 12px; }
.opt-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.opt-fields input { padding: 11px 14px; font-size: 15px; }
.opt-fields input + input { font-weight: 600; color: var(--muted); }
.x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: none; cursor: pointer; background: var(--card); color: var(--soft); font-size: 18px; font-weight: 800; box-shadow: var(--shadow-sm); }
.add { width: 100%; padding: 15px; border-radius: 20px; border: 1.5px dashed #efb7bf; background: transparent; color: var(--rose); font-weight: 800; font-size: 15px; cursor: pointer; }
.add:hover { background: var(--blush); }

/* buttons */
.actions { margin-top: auto; padding-top: 22px; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 19px 22px; border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: 0.6px; color: #fff;
  background: var(--grad); box-shadow: 0 14px 28px -14px var(--rose);
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: scale(0.97); }
.cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.green, .ghost {
  padding: 17px 12px; border-radius: 999px; font-weight: 900; font-size: 15px; cursor: pointer; text-align: center; text-decoration: none;
}
.green { border: none; background: linear-gradient(135deg, #5cc08f, #3fa97a); color: #fff; box-shadow: 0 12px 24px -14px rgba(63, 169, 122, 0.9); }
.ghost { border: 1.5px solid var(--line); background: var(--card); color: var(--rose); }
.outline { display: inline-block; padding: 12px 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--rose); font-weight: 800; border-radius: 999px; cursor: pointer; text-decoration: none; }

/* hero */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.huggers { width: 210px; height: auto; margin: 6px auto 0; filter: drop-shadow(0 16px 20px rgba(196, 84, 104, 0.25)); }
.huggers.sm { width: 92px; margin: 0; flex: none; filter: none; }
.huggers .beat { transform-origin: center; transform-box: fill-box; animation: beat 1.3s ease-in-out infinite; }
.huggers .d2 { animation-delay: 0.3s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.2); } 40% { transform: scale(1); } }
.photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 6px solid var(--card); box-shadow: var(--shadow), 0 0 0 2px var(--gold); margin-top: 6px; }
.kicker { margin: 4px 0 2px; font-weight: 900; font-size: 15px; color: var(--rose); letter-spacing: 2px; }
.hand { font-family: "Caveat", cursive; font-size: 22px; font-weight: 700; color: var(--hand); margin: 6px 0 0; }
.avatar {
  width: 116px; height: 116px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--avatar-bg); border: 4px solid var(--coral);
  box-shadow: 0 14px 30px -16px var(--rose), 0 0 0 8px rgba(255, 255, 255, 0.6); animation: bob 3s ease-in-out infinite;
}
.avatar svg { width: 80px; height: 80px; }
.avatar.sm { width: 76px; height: 76px; border-width: 3px; margin: 4px auto 0; }
.avatar.sm svg { width: 52px; height: 52px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: var(--rose); background: var(--blush2); padding: 7px 16px; border-radius: 999px; }
.caps { margin: 0; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--soft); }
.caps.pink { color: var(--rose); text-align: center; margin-top: 24px; }
.sub { margin: 4px 0 0; font-weight: 700; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sub.dim { font-size: 13px; min-height: 18px; color: var(--rose); }
.quote {
  position: relative; width: 100%; margin: 6px 0 16px; padding: 18px 20px; border-radius: 20px; background: var(--blush);
  font-family: "Caveat", cursive; font-size: 22px; font-weight: 700; color: var(--hand); white-space: pre-wrap; text-align: center;
}
.price-tag { margin-top: 18px; padding: 10px 20px; border-radius: 999px; background: var(--blush); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.price-tag b { color: var(--rose); }
.big-emoji { font-size: 64px; margin: 30px 0 4px; }

/* yes / no */
.yn { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.yn .yes { width: auto; padding: 18px 34px; position: relative; z-index: 2; transform-origin: left center; }
.no {
  padding: 16px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--soft); font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; z-index: 1;
  transition: left 0.25s ease, top 0.25s ease;
}
.no.flee { position: absolute; }

/* choices (invite) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  position: relative; text-align: left; padding: 16px; border-radius: 20px; cursor: pointer; color: var(--ink);
  border: 1.5px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.choice b { font-size: 16px; font-weight: 900; line-height: 1.25; }
.choice small { font-size: 13.5px; font-weight: 700; color: var(--soft); }
.choice.wide { grid-column: 1 / -1; background: var(--blush); }
.choice:active { transform: scale(0.97); }
.choice.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 16px 28px -14px rgba(228, 92, 120, 0.9); }
.choice.on small { color: rgba(255, 255, 255, 0.85); }
.choice.on::after { content: "♥"; position: absolute; top: 10px; right: 12px; font-size: 14px; }

/* ticket */
.ticket {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 18px;
  border-radius: 22px; background: var(--ticket);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ivory); }
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.t-body { flex: 1; min-width: 0; padding-left: 12px; border-left: 1.5px dashed #ffc6d3; }
.t-head { margin: 0 0 8px; font-size: 12.5px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--rose); }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.t-grid span { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: #c07a86; }
.t-grid b { font-size: 15px; line-height: 1.3; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 12px 0 22px; }
.countdown div { min-width: 60px; padding: 10px 6px; border-radius: 16px; background: var(--card); text-align: center; box-shadow: var(--shadow-sm); }
.countdown b { display: block; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); }
.countdown span { font-size: 11px; font-weight: 800; color: var(--soft); }
.pill-note { display: inline-block; margin-top: 16px; padding: 13px 22px; border-radius: 999px; background: var(--blush); color: var(--rose); font-weight: 900; }

/* pay / manage */
.pay-box { padding: 22px 20px; border-radius: 24px; background: linear-gradient(160deg, var(--card) 0%, var(--blush) 100%); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.pay-box .amount { font-family: "Comfortaa", sans-serif; font-size: 40px; font-weight: 700; margin: 6px 0; color: var(--rose); }
.pay-box .cta { margin-top: 16px; }
.pay-box .ghost { display: block; width: 100%; margin-top: 12px; }
.pay-timer { display: inline-block; margin: 6px 0 2px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 800; font-size: 14px; }
.pay-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-timer.low { border-color: #f3b3b8; background: #fff3f3; }
.pay-timer.low b { color: #d23c4b; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--soft); font-weight: 700; font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--blush2); border-top-color: var(--rose); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbox { width: 100%; padding: 16px; border-radius: 18px; background: var(--blush); border: 1px dashed #efb7bf; font-weight: 800; text-align: center; word-break: break-all; user-select: all; color: #6b3443; }
.answer { margin-top: 18px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #fff1ee, #fde0e3); border: 1px solid var(--line); }
.answer h3 { margin: 0 0 8px; font-family: "Comfortaa", sans-serif; font-size: 18px; color: var(--rose); }
.answer p { margin: 4px 0; font-weight: 700; color: var(--muted); }
.answer p b { color: var(--ink); }

/* dashboard */
.inv { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.inv-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inv-head small { display: block; color: var(--soft); font-weight: 700; }
.chip { font-size: 12px; font-weight: 900; padding: 5px 10px; border-radius: 999px; background: var(--blush); color: var(--muted); white-space: nowrap; }
.chip.ok { background: #dff4e9; color: #2f8a5f; }
.chip.warn { background: #fff0d9; color: #b07a2a; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inv-actions a, .inv-actions button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; border: 1px solid var(--line); background: var(--blush); color: var(--rose); text-decoration: none; cursor: pointer; }
.inv-answer { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.inv-answer b { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stats div { padding: 12px; border-radius: 18px; background: var(--blush); text-align: center; }
.stats b { display: block; font-family: "Comfortaa", sans-serif; font-size: 26px; color: var(--rose); }
.stats span { font-size: 11px; font-weight: 800; color: var(--soft); text-transform: uppercase; }

@media (max-width: 420px) {
  .shell { padding: 12px 10px 24px; }
  .panel { padding: 18px 16px 22px; border-radius: 26px; }
  .title { font-size: 27px; }
  .title.big { font-size: 32px; }
  .choice { padding: 14px; }
  .countdown div { min-width: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  .huggers .beat, .avatar { animation: none; }
}

/* =========================================================
   Загварууд (урилга бүр өөрийн загвартай)
   ========================================================= */
.theme-lavender {
  --ink: #3f2d5c; --muted: #7b6b94; --soft: #a497b8; --blush: #f5f0ff; --blush2: #e7ddff; --rose: #8b6fd6; --coral: #b9a2f0;
  --line: #e6dcfb; --hand: #7a5bb8; --grad: linear-gradient(135deg, #b9a2f0 0%, #8b6fd6 100%);
  --shadow: 0 30px 60px -36px rgba(110, 80, 180, 0.55); --shadow-sm: 0 10px 22px -16px rgba(139, 111, 214, 0.6);
  --panel: rgba(253, 251, 255, 0.94); --panel-line: rgba(225, 214, 250, 0.9);
  --avatar-bg: radial-gradient(circle at 50% 40%, #fff 0%, #f4efff 70%); --ticket: linear-gradient(135deg, #fff 0%, #f3edff 100%);
  --page-base: #f3eeff;
  --page: radial-gradient(520px 420px at 10% 4%, #e8e0ff 0%, transparent 60%), radial-gradient(520px 420px at 92% 12%, #ffe1f0 0%, transparent 60%),
    radial-gradient(620px 520px at 50% 110%, #d9ecff 0%, transparent 60%), linear-gradient(170deg, #faf7ff 0%, #f3eeff 60%, #eef3ff 100%);
}
.theme-night {
  --ink: #f6eeff; --muted: #c9b8e6; --soft: #a593c6; --blush: rgba(255, 255, 255, 0.07); --blush2: rgba(255, 255, 255, 0.14);
  --rose: #ff86b8; --coral: #ffd36e; --gold: #ffd36e; --line: rgba(255, 255, 255, 0.14); --hand: #ffd36e;
  --grad: linear-gradient(135deg, #ff86b8 0%, #a46bff 100%);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); --shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, 0.7);
  --card: rgba(255, 255, 255, 0.07); --panel: rgba(28, 22, 64, 0.72); --panel-line: rgba(255, 255, 255, 0.14);
  --avatar-bg: radial-gradient(circle, #2c2366, #16113a); --ticket: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 134, 184, 0.12));
  --page-base: #0e0b26;
  --page: radial-gradient(700px 500px at 85% -5%, #3b2a7a 0%, transparent 60%), radial-gradient(600px 500px at 0% 100%, #4a1f5c 0%, transparent 60%),
    radial-gradient(1.4px 1.4px at 30px 40px, #fff, transparent) 0 0 / 180px 160px, radial-gradient(1px 1px at 110px 120px, #ffe9a8, transparent) 0 0 / 220px 190px, #0e0b26;
}
.theme-night .title, .theme-night .t-grid b, .theme-night .countdown b, .theme-night .answer p b, .theme-night .inv-answer b { color: #fff; }
.theme-night .avatar { box-shadow: 0 0 36px -6px #ffd36e; }
.theme-night .t-grid span, .theme-night .t-head { color: #ffd36e; }
.theme-night input::placeholder, .theme-night textarea::placeholder { color: #8d80ad; }
.theme-night input[type="date"] { color-scheme: dark; }
.theme-night .err { background: rgba(255, 80, 120, 0.18); color: #ffc2d1; }
.theme-night .ticket::before, .theme-night .ticket::after { background: #1d1748; }
.theme-retro {
  --ink: #3b2a20; --muted: #7d6553; --soft: #9c8370; --blush: #f6ead8; --blush2: #ecd9bd; --rose: #b23a2e; --coral: #c9553f; --gold: #b0843e;
  --line: #dcc6a6; --hand: #b23a2e; --grad: linear-gradient(135deg, #c9553f 0%, #a8352a 100%);
  --shadow: 0 24px 40px -28px rgba(80, 50, 20, 0.6); --shadow-sm: 0 8px 18px -14px rgba(80, 50, 20, 0.6);
  --card: #fffaf0; --panel: rgba(255, 249, 238, 0.96); --panel-line: #dcc6a6;
  --avatar-bg: #f6e3cf; --ticket: #fbf1e1; --page-base: #efe2cc;
  --page: repeating-linear-gradient(0deg, rgba(120, 90, 60, 0.04) 0 2px, transparent 2px 4px), linear-gradient(170deg, #f5ead8 0%, #ecdcc2 100%);
}
.theme-retro .title { font-family: "Lora", Georgia, serif; font-weight: 700; }
.theme-retro .panel::after { content: ""; position: absolute; inset: 10px; border: 1px dashed #d4b893; border-radius: 24px; pointer-events: none; }
.theme-retro .avatar { border-style: dashed; }

/* загвар сонгогч */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.theme-opt { padding: 0; border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; overflow: hidden; font-weight: 800; font-size: 12px; color: var(--ink); }
.theme-opt i { display: block; height: 46px; }
.theme-opt span { display: block; padding: 6px 2px; }
.theme-opt.on { border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush2); }
.theme-opt[data-theme="pink"] i { background: linear-gradient(135deg, #ffe6d6, #ff8fa6); }
.theme-opt[data-theme="lavender"] i { background: linear-gradient(135deg, #e8e0ff, #8b6fd6); }
.theme-opt[data-theme="night"] i { background: radial-gradient(1.5px 1.5px at 10px 12px, #fff, transparent) 0 0 / 22px 18px, linear-gradient(135deg, #3b2a7a, #0e0b26); }
.theme-opt[data-theme="retro"] i { background: linear-gradient(135deg, #f5ead8, #b23a2e); }

/* хөгжим */
.music-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.music-btn .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.music-btn .eq i { width: 3px; background: var(--rose); border-radius: 2px; height: 4px; }
.music-btn.on .eq i { animation: eq 0.9s ease-in-out infinite; }
.music-btn.on .eq i:nth-child(2) { animation-delay: 0.2s; } .music-btn.on .eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.music-frame { position: fixed; right: 10px; top: 10px; z-index: 19; width: 112px; height: 63px; border: 0; border-radius: 12px; box-shadow: var(--shadow-sm); pointer-events: none; opacity: 0.92; }

/* цаг сонгох */
.time-wrap { margin-top: 16px; }
.tods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.tod, .slot { font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 2px; background: var(--card); color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { border-radius: 12px; padding: 10px 2px; font-size: 14px; }
.tod.on, .slot.on { background: var(--grad); border-color: transparent; color: #fff; }
.place-line { margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--muted); }
.place-line a { font-weight: 900; }

/* засах / устгах */
.owner-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.owner-actions button, .owner-actions a { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: none; }
.owner-actions .danger { color: #c93a55; border-color: #f5c2cc; }
body.has-music .shell { padding-bottom: 86px; }

/* төрөл сонгох */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: stretch; margin-top: 16px; }
.kind-opt { text-align: left; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.kind-opt b { font-size: 15px; font-weight: 900; }
.kind-opt small { font-size: 12.5px; font-weight: 700; color: var(--soft); }
.kind-opt.on { border-color: var(--rose); background: var(--blush); box-shadow: 0 0 0 3px var(--blush2); }

/* жишээ */
.demo-link { display: block; margin-top: 14px; text-align: center; font-weight: 900; font-size: 15px; color: var(--rose); text-decoration: none; padding: 12px; border-radius: 999px; border: 1.5px dashed var(--line); }
.demo-bar { position: sticky; top: 0; z-index: 30; text-align: center; padding: 10px 14px; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); }
.demo-bar a { color: #fff; margin-left: 8px; text-decoration: underline; }

/* =========================================================
   Болзооны карт — 3 загвар
   ========================================================= */
/* A: кино тасалбар */
.c-ticket { position: relative; margin: 4px 2px 6px; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); transform: rotate(-1.2deg); animation: pop-in .6s cubic-bezier(.2,1.3,.4,1) both; }
.ct-top { padding: 18px 20px 16px; background: var(--grad); color: #fff; text-align: center; position: relative; }
.ct-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 7px, var(--card) 7.5px) 0 0 / 16px 10px repeat-x; }
.ct-label { display: block; font-size: 11px; font-weight: 900; letter-spacing: 2px; opacity: .9; }
.ct-names { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 26px; margin-top: 4px; }
.ct-names i, .cp-photo p i { font-style: normal; color: #ffe066; }
.ct-body { display: flex; gap: 14px; padding: 18px 18px 14px; align-items: center; }
.ct-date { flex: none; width: 92px; padding: 10px 6px; border-radius: 18px; background: var(--blush); text-align: center; }
.ct-date b { display: block; font-family: "Comfortaa", sans-serif; font-size: 44px; line-height: 1; color: var(--rose); }
.ct-date span { font-size: 12px; font-weight: 800; color: var(--muted); }
.ct-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.ct-grid span { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: var(--soft); }
.ct-grid b { font-size: 14.5px; line-height: 1.25; word-break: break-word; }
.ct-stub { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; border-top: 2px dashed var(--line); position: relative; }
.ct-stub::before, .ct-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); }
.ct-stub::before { left: -10px; } .ct-stub::after { right: -10px; }
.ct-bar { flex: 1; height: 40px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); opacity: .85; border-radius: 3px; }
.ct-no { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 15px; text-align: right; color: var(--ink); }
.ct-no small { font-family: "Nunito", sans-serif; font-size: 10px; color: var(--soft); font-weight: 800; }

/* B: хайрын захидал */
.c-letter { position: relative; margin: 34px 4px 10px; padding: 0 10px 46px; animation: pop-in .7s cubic-bezier(.2,1.2,.4,1) both; }
.cl-flap { position: absolute; left: 0; right: 0; top: 40px; height: 120px; background: linear-gradient(160deg, var(--coral), var(--rose)); clip-path: polygon(0 100%, 50% 0, 100% 100%); filter: brightness(.95); }
.cl-pocket { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; border-radius: 0 0 20px 20px; background: linear-gradient(175deg, var(--coral), var(--rose)); clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 0 100%); box-shadow: var(--shadow); z-index: 2; }
.cl-paper {
  position: relative; z-index: 1; margin: 0 8px; padding: 94px 22px 70px; border-radius: 10px;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(232, 160, 176, .35) 31px 32px) 0 94px / 100% 32px, #fffdf8;
  box-shadow: 0 18px 30px -18px rgba(150, 60, 80, .5); transform: rotate(-1deg);
  font-family: "Caveat", cursive; font-size: 23px; line-height: 32px; color: #4a2a33;
}
.cl-paper p { margin: 0; }
.cl-paper u { text-decoration: none; color: var(--rose); font-weight: 700; }
.cl-to { font-size: 27px; font-weight: 700; color: var(--rose); margin-bottom: 2px !important; }
.cl-sign { text-align: right; font-size: 26px; font-weight: 700; margin-top: 8px !important; }
.cl-stamp { position: absolute; top: 14px; right: 14px; width: 62px; height: 72px; display: grid; place-items: center; background: var(--blush2); border: 3px dotted #fff; outline: 2px solid var(--line); transform: rotate(6deg); }
.cl-stamp svg { width: 44px; height: 44px; }
.cl-post { position: absolute; top: 14px; right: 84px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(228, 92, 120, .45); color: rgba(228, 92, 120, .7); display: grid; place-items: center; align-content: center; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.05; transform: rotate(-14deg); text-align: center; }
.cl-post small { font-size: 8px; letter-spacing: 1.5px; }
.cl-seal { position: absolute; left: 50%; bottom: 52px; z-index: 3; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #ffd6df; background: radial-gradient(circle at 35% 30%, #e8576f, #b8233f 70%); box-shadow: 0 6px 14px -4px rgba(120, 20, 40, .6), inset 0 0 0 4px rgba(255, 255, 255, .12); }

/* C: полароид + хуанли */
.c-polar { position: relative; height: 470px; margin: 6px 0 4px; }
.cp-photo { position: absolute; left: 4px; top: 6px; width: 60%; padding: 12px 12px 16px; background: #fff; box-shadow: 0 18px 32px -16px rgba(90, 40, 60, .55); transform: rotate(-5deg); z-index: 2; animation: pop-in .6s ease both; }
.cp-pic { aspect-ratio: 1; border-radius: 4px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #ffe6d6, #ffd1dc); }
.cp-pic img { width: 100%; height: 100%; object-fit: cover; }
.cp-art { width: 86%; height: auto; }
.cp-photo p { margin: 10px 0 0; text-align: center; font-family: "Caveat", cursive; font-size: 26px; font-weight: 700; color: #4a2a33; }
.cp-photo p i { color: var(--rose); }
.tape { position: absolute; width: 74px; height: 22px; background: rgba(255, 230, 150, .75); box-shadow: 0 2px 4px rgba(0,0,0,.06); }
.tape.t1 { top: -10px; left: 16px; transform: rotate(-12deg); }
.tape.t2 { top: -8px; right: 14px; transform: rotate(10deg); }
.cp-cal { position: absolute; right: 4px; top: 40px; width: 40%; background: #fff; border-radius: 14px; overflow: hidden; text-align: center; box-shadow: 0 18px 30px -16px rgba(90, 40, 60, .5); transform: rotate(5deg); z-index: 1; animation: pop-in .6s .1s ease both; }
.cp-rings { position: absolute; top: 6px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 20%; }
.cp-rings i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.cp-month { padding: 18px 4px 8px; background: var(--grad); color: #fff; font-weight: 900; font-size: 15px; }
.cp-day { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 56px; line-height: 1.1; color: var(--ink); padding-top: 6px; }
.cp-wd { font-size: 13px; font-weight: 800; color: var(--muted); padding: 0 6px 12px; }
.cp-notes { position: absolute; right: 0; top: 300px; width: 60%; display: grid; gap: 8px; z-index: 3; }
.cp-notes div { padding: 10px 12px; font-family: "Caveat", cursive; font-size: 21px; font-weight: 700; color: #4a2a33; box-shadow: 0 8px 14px -10px rgba(90, 40, 60, .5); }
.cp-notes .n1 { background: #fff3a8; transform: rotate(2deg); }
.cp-notes .n2 { background: #ffd1dc; transform: rotate(-2deg); margin-left: 14px; }
.cp-notes .n3 { background: #cfe8ff; transform: rotate(1.5deg); }

@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* =========================================================
   Нээгдэх хөдөлгөөн (opener)
   ========================================================= */
.op { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; perspective: 1200px; }
.op-title { margin: 0; text-align: center; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 25px; line-height: 1.35; color: var(--ink); transition: opacity .4s, transform .4s; }
.op-title span { font-family: "Caveat", cursive; font-size: 34px; color: var(--rose); }
.op-hint { margin: 0; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-weight: 900; font-size: 14px; color: var(--rose); animation: hint 1.6s ease-in-out infinite; transition: opacity .3s; }
@keyframes hint { 50% { transform: scale(1.07); } }
.op.go .op-title, .op.go .op-hint { opacity: 0; transform: translateY(-10px); }

/* дугтуй (1 ба 3) */
.op-env { position: relative; width: 300px; height: 200px; cursor: pointer; transform-style: preserve-3d; }
.op-back, .op-front, .op-flap, .op-letter { position: absolute; left: 0; right: 0; }
.op-back { top: 0; bottom: 0; border-radius: 14px; background: linear-gradient(160deg, #ff8fa6, #f76a8e); box-shadow: 0 26px 50px -24px rgba(200, 60, 100, .7); }
.op-letter { left: 16px; right: 16px; top: 14px; height: 172px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .7s cubic-bezier(.3, .8, .3, 1); }
.op-letter b { font-family: "Caveat", cursive; font-size: 34px; color: var(--rose); }
.op-letter small { font-size: 22px; }
.op-front { top: 0; bottom: 0; border-radius: 14px; background: linear-gradient(175deg, #ff9db1, #f76a8e); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); z-index: 3; }
.op-flap { top: 0; height: 112px; background: linear-gradient(180deg, #f48aa3, #e85c80); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .55s ease-in; z-index: 4; border-radius: 14px 14px 0 0; }
.op-seal { position: absolute; left: 50%; top: 112px; z-index: 5; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #ffd6df; background: radial-gradient(circle at 35% 30%, #e8576f, #b8233f 70%); box-shadow: 0 6px 14px -4px rgba(120, 20, 40, .6); transition: transform .3s, opacity .3s; animation: hint 1.6s ease-in-out infinite; }
.op.s1 .op-seal { transform: scale(1.4); opacity: 0; animation: none; }
.op.s2 .op-flap { transform: rotateX(180deg); z-index: 1; }
.op.s3 .op-letter { transform: translateY(-150px); z-index: 2; }
.op.s4 .op-back, .op.s4 .op-front, .op.s4 .op-flap { transition: transform .5s ease-in, opacity .5s; transform: translateY(140px); opacity: 0; }

/* туузтай нугалсан захидал (2) */
.op-fold { position: relative; width: 270px; height: 130px; cursor: pointer; transform-style: preserve-3d; }
.f-panel { position: absolute; left: 0; width: 270px; height: 130px; background: #fff; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4, .1, .3, 1); box-shadow: inset 0 0 0 1px #f3d9e0; }
.f-mid { top: 0; z-index: 1; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.f-top { bottom: 100%; transform-origin: bottom; transform: rotateX(-180deg); z-index: 3; border-radius: 10px 10px 0 0; }
.f-bot { top: 100%; transform-origin: top; transform: rotateX(180deg); z-index: 2; border-radius: 0 0 10px 10px; }
.f-panel .face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: inherit; }
.f-panel .back { transform: rotateX(180deg); background: linear-gradient(160deg, #ffe3ea, #ffd1dc); box-shadow: 0 10px 24px -14px rgba(200, 60, 100, .6); }
.f-panel .front { background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(232, 160, 176, .3) 25px 26px), #fffdf8; font-family: "Caveat", cursive; color: #4a2a33; font-size: 26px; }
.f-panel .front b { color: var(--rose); font-size: 34px; }
.f-ribbon { position: absolute; left: 50%; top: -14px; bottom: -14px; width: 26px; margin-left: -13px; z-index: 6; background: linear-gradient(90deg, #f76a8e, #ff8fa6, #f76a8e); transition: opacity .3s, transform .4s; }
.f-bow { position: absolute; left: 50%; top: 50%; z-index: 7; font-size: 64px; transform: translate(-50%, -55%); transition: transform .45s cubic-bezier(.5, -0.5, .5, 1.5), opacity .4s; filter: drop-shadow(0 6px 8px rgba(200, 60, 100, .4)); }
.op.s1 .f-bow { transform: translate(-50%, -160%) scale(1.5) rotate(-20deg); opacity: 0; }
.op.s1 .f-ribbon { opacity: 0; transform: scaleY(1.4); }
.op.s2 .f-top { transform: rotateX(0deg); }
.op.s3 .f-bot { transform: rotateX(0deg); }

/* нисэж ирэх (3) */
.op.fly .op-env { animation: fly-in 1.3s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes fly-in {
  0% { transform: translate(-90vw, 70vh) rotate(-40deg) scale(.5); }
  70% { transform: translate(0, 0) rotate(6deg) scale(1.05); }
  85% { transform: rotate(-4deg); }
  100% { transform: none; }
}
.burst { position: fixed; z-index: 61; pointer-events: none; font-size: 26px; animation: burst 1.1s ease-out forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--bx), var(--by)) scale(1.2) rotate(var(--br)); opacity: 0; } }

/* захидал → панел болж томрох */
.morph { position: fixed; z-index: 62; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); transition: all .65s cubic-bezier(.5, 0, .2, 1); }
.panel.hidden-for-op { opacity: 0; }
.panel.reveal { animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* Урилгын нүүрний зураг (art) */
.art-deel { width: min(300px, 86%); height: auto; margin: 0 auto -6px; display: block; filter: drop-shadow(0 18px 24px rgba(120, 40, 70, 0.28)); animation: art-bob 4s ease-in-out infinite; }
.huggers.art-hug { width: 250px; }
@keyframes art-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.art-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 12px; cursor: pointer; }
.art-opt.on { border-color: var(--rose); box-shadow: var(--shadow-sm); }
.art-th { width: 64px; height: 52px; display: grid; place-items: center; }
.art-th svg, .art-th img { max-width: 64px; max-height: 52px; width: auto; height: auto; }
.art-th .huggers { width: 64px; margin: 0; filter: none; }
@media (prefers-reduced-motion: reduce) { .art-deel { animation: none; } }

/* ---------- Фото бүүт ---------- */
.booth { --w: 168px; position: relative; width: calc(var(--w) + 70px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.bt-l-grid { --w: 232px; }
.bt-printer { position: relative; z-index: 2; width: 100%; height: 66px; border-radius: 18px 18px 12px 12px; display: grid; place-items: center; box-shadow: 0 14px 24px -14px rgba(40, 10, 25, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
.bt-p-silver { background: linear-gradient(180deg, #f4f4f6, #c9cbd1 60%, #a9abb3); color: #4a4450; }
.bt-p-black { background: linear-gradient(180deg, #4a4448, #1f1b1e 70%); color: #f0e6ea; }
.bt-p-cream { background: linear-gradient(180deg, #fff8ec, #ead9bd 70%); color: #6a5236; }
.bt-p-pink { background: linear-gradient(180deg, #ffe3ec, #f2b4c7 70%); color: #8a3150; }
.bt-label { font-family: "Caveat", cursive; font-weight: 700; font-size: 24px; margin-top: -10px; }
.bt-slot { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 7px; border-radius: 4px; background: #1a1418; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8); }
.bt-out { position: relative; z-index: 1; margin-top: -12px; width: var(--w); overflow: hidden; padding-bottom: 18px; }
.bt-strip { display: grid; gap: 8px; padding: 12px 10px 8px; background: #fff; box-shadow: 0 16px 26px -14px rgba(40, 10, 25, 0.55); transform-origin: top; }
.bt-l-grid .bt-strip { grid-template-columns: 1fr 1fr; }
.bt-cell { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #f1e6ea, #e3d2d9); display: grid; place-items: center; color: #c79aab; font-size: 22px; }
.bt-l-grid .bt-cell { aspect-ratio: 3 / 4; }
.bt-cell img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.04); }
.bt-foot { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-family: "Caveat", cursive; font-weight: 700; font-size: 18px; color: #6a5560; }
.bt-f-film .bt-strip { background: #111; padding: 12px 18px 8px; background-image: radial-gradient(circle, #eee 0 3px, transparent 3.5px), radial-gradient(circle, #eee 0 3px, transparent 3.5px); background-size: 12px 16px; background-position: 3px 4px, calc(100% - 3px) 4px; background-repeat: repeat-y; }
.bt-f-film .bt-foot { color: #eee; }
.bt-f-vintage .bt-strip { background: #efe2c6; }
.bt-f-vintage .bt-cell img { filter: sepia(0.55) contrast(1.05); }
.bt-f-pink .bt-strip { background: #ffd9e4; }
.bt-f-pink .bt-cell { border-radius: 10px; }
.bt-f-pink .bt-foot { color: #b0486c; }
.booth.printing .bt-strip { animation: bt-print 3.6s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes bt-print { 0% { transform: translateY(-100%); } 15% { transform: translateY(-88%); } 100% { transform: translateY(0); } }
.booth.printing .bt-printer { animation: bt-buzz 0.18s linear 0s 18; }
@keyframes bt-buzz { 50% { transform: translateY(1px); } }
.bt-screen { text-align: center; padding-top: 6px; }
.bt-screen .hand { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .booth.printing .bt-strip, .booth.printing .bt-printer { animation: none; } }

/* Үүсгэх хуудасны фото бүүтийн хэсэг */
.bt-ed { margin-top: 6px; padding: 14px; border-radius: 20px; background: var(--blush); border: 1px solid var(--line); }
.bt-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.bt-thumbs div { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
.bt-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bt-thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 900; cursor: pointer; }
.bt-thumbs b { position: absolute; left: 6px; bottom: 4px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px #000; }
.bt-add { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line) !important; color: var(--rose); font-size: 26px; cursor: pointer; }
.bt-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bt-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bt-opts.two { grid-template-columns: 1fr 1fr; }
.bt-opt { padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font: 800 12px "Nunito", sans-serif; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bt-opt.on { border-color: var(--rose); box-shadow: var(--shadow-sm); }
.bt-opt i { display: block; width: 34px; height: 24px; border-radius: 6px; }
.bt-prev { margin: 14px 0 4px; padding: 16px 0 0; border-radius: 18px; background: linear-gradient(180deg, #5a1730, #3d0f22); }
.bt-prev .booth { transform: scale(0.82); transform-origin: top center; margin-bottom: -40px; }
.bt-mini { display: flex; flex-direction: column; gap: 3px; padding: 4px 5px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); transform: rotate(-6deg); }
.bt-mini i { display: block; width: 22px; height: 13px; background: linear-gradient(135deg, #bbb, #777); }
.bt-btns { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0 6px; }
.bt-pick { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; margin: 0; }
.bt-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bt-ic { display: grid; gap: 2px; padding: 3px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.bt-ic b { display: block; width: 18px; height: 13px; background: linear-gradient(135deg, #c9a0ad, #8f7d8f); }
.bt-ic-grid { grid-template-columns: 1fr 1fr; }
.bt-ic-f-film { background: #111; padding: 3px 6px; }
.bt-ic-f-vintage { background: #efe2c6; } .bt-ic-f-vintage b { filter: sepia(.7); }
.bt-ic-f-pink { background: #ffd9e4; } .bt-ic-f-pink b { border-radius: 3px; }
.bt-ic-pr { position: relative; display: block; width: 46px; height: 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.bt-ic-pr i { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: #1a1418; }
.art-sorry { width: min(190px, 56%); }

.bt-strip { position: relative; }
.bt-st { position: absolute; font-style: normal; font-size: 22px; line-height: 1; color: #e2496f; text-shadow: 0 2px 4px rgba(0,0,0,.2); pointer-events: none; }
.bt-st0 { top: 6px; left: 4px; transform: rotate(-14deg); } .bt-st1 { top: 30%; right: 2px; transform: rotate(12deg); }
.bt-st2 { bottom: 34px; left: 2px; transform: rotate(8deg); } .bt-st3 { top: 54%; left: 6px; transform: rotate(-8deg); }
.bt-st4 { bottom: 8px; right: 6px; transform: rotate(-12deg); } .bt-st5 { top: 4px; right: 8px; transform: rotate(16deg); }
.bt-info { margin: 20px 0 6px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.bt-info p { margin: 6px 0; } .bt-msg { font-family: "Caveat", cursive; font-size: 20px; color: var(--hand); }

/* ---------- Сонгодог дүрүүд ---------- */
.ch-pair { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; width: min(250px, 80%); margin: 0 auto; }
.ch-pair svg { width: 50%; height: auto; filter: drop-shadow(0 12px 14px rgba(120, 40, 70, 0.22)); animation: ch-bob 3s ease-in-out infinite; }
.ch-pair svg + .ch-heart + svg { animation-delay: .4s; margin-left: -10%; }
.ch-pair svg:first-child { margin-right: -10%; }
.ch-heart { position: absolute; top: -6%; left: 50%; transform: translateX(-50%); font-style: normal; color: #ff5c8a; font-size: 26px; animation: beat 1.3s ease-in-out infinite; z-index: 2; }
@keyframes ch-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Хөдөлгөөнтэй арын орчин (html.bg-*) ---------- */
html[class*=" bg-"], html[class^="bg-"] { background-attachment: fixed; }
html.bg-clouds body { background: radial-gradient(600px 300px at 15% 10%, #fff 0%, transparent 60%), radial-gradient(500px 260px at 85% 25%, #fff 0%, transparent 60%), radial-gradient(700px 300px at 50% 90%, #fff 0%, transparent 60%), linear-gradient(170deg, #f1e6f7, #fbeef3 60%, #fff4ec); background-size: 200% 100%, 200% 100%, 100% 100%, 100% 100%; animation: bg-drift 30s ease-in-out infinite alternate; }
html.bg-stars body { background: radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fff 50%, transparent), radial-gradient(1px 1px at 55% 30%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 75% 60%, #fff 50%, transparent), radial-gradient(1px 1px at 90% 15%, #fff 50%, transparent), radial-gradient(1px 1px at 45% 85%, #fff 50%, transparent), linear-gradient(180deg, #1c1638, #2c1f52 60%, #3b2460); background-size: 300px 300px, 260px 260px, 340px 340px, 280px 280px, 320px 320px, 240px 240px, 100% 100%; animation: bg-twinkle 6s ease-in-out infinite alternate; }
html.bg-garden body { background: radial-gradient(circle at 8% 12%, #ffd3e0 0 40px, transparent 41px), radial-gradient(circle at 92% 22%, #ffe7b8 0 30px, transparent 31px), radial-gradient(circle at 12% 88%, #d8f0c8 0 50px, transparent 51px), radial-gradient(circle at 88% 82%, #ffc7d6 0 44px, transparent 45px), linear-gradient(170deg, #fff6f1, #fdeff3 60%, #f3f7ea); animation: bg-drift 24s ease-in-out infinite alternate; background-size: 120% 120%; }
html.bg-y2k body { background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.7) 0 20px, transparent 22px), radial-gradient(circle at 80% 35%, rgba(255,255,255,.6) 0 14px, transparent 16px), radial-gradient(circle at 30% 80%, rgba(255,255,255,.6) 0 26px, transparent 28px), linear-gradient(135deg, #c7b8ff, #ffc6ea 45%, #b8f0ff); background-size: 140% 140%; animation: bg-drift 16s ease-in-out infinite alternate; }
html.bg-sunset body { background: linear-gradient(180deg, #ffd1dc 0%, #ffc7a8 45%, #ffe2b8 70%, #fff4e6 100%); background-size: 100% 160%; animation: bg-sun 18s ease-in-out infinite alternate; }
html.bg-stars .panel { background: rgba(30, 22, 60, 0.82); color: #fff; }
html.bg-stars .title, html.bg-stars .caps, html.bg-stars .hand, html.bg-stars .sub { color: #fff; }
@keyframes bg-drift { 0% { background-position: 0% 0%, 100% 0%, 0% 0%, 0% 0%; } 100% { background-position: 100% 0%, 0% 0%, 0% 0%, 0% 0%; } }
@keyframes bg-twinkle { 0% { filter: brightness(1); } 100% { filter: brightness(1.15); } }
@keyframes bg-sun { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { html[class*="bg-"] body, .ch-pair svg, .ch-heart { animation: none; } }
.ch-photo { width: min(300px, 92%); align-items: flex-end; }
.ch-photo img { width: 50%; height: auto; filter: drop-shadow(0 12px 14px rgba(120, 40, 70, 0.22)); animation: ch-bob 3s ease-in-out infinite; }
.ch-photo img:first-child { margin-right: -6%; } .ch-photo img:last-child { margin-left: -6%; animation-delay: .4s; }
html.bg-wine body { background: radial-gradient(900px 600px at 50% 0%, #6a1f3a 0%, #3e1022 55%, #2a0a17 100%); background-attachment: fixed; }
html.bg-wine .panel, html.bg-black .panel, html.bg-party .panel { background: rgba(40, 10, 22, 0.55); border-color: rgba(255,255,255,.08); color: #fff; }
html.bg-wine .title, html.bg-wine .caps, html.bg-wine .hand, html.bg-wine .sub, html.bg-wine .kicker, html.bg-black .title, html.bg-black .caps, html.bg-black .hand, html.bg-black .sub, html.bg-black .kicker, html.bg-party .title, html.bg-party .caps, html.bg-party .hand, html.bg-party .sub, html.bg-party .kicker { color: #fff; }
html.bg-wine .quote, html.bg-black .quote, html.bg-party .quote { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Хүлээн авагчийн урилга: жижиг, цэгцтэй ---------- */
html.inv-page .panel { padding: 16px 18px 20px; }
html.inv-page .art-deel { width: min(210px, 62%); }
html.inv-page .art-sorry { width: min(150px, 44%); }
html.inv-page .ch-photo { width: min(230px, 70%); }
html.inv-page .photo { width: 140px; height: 140px; }
html.inv-page .avatar { width: 110px; height: 110px; }
html.inv-page .title.big { font-size: clamp(23px, 6.6vw, 28px); margin: 6px 0 8px; line-height: 1.25; }
html.inv-page .quote { margin: 8px 0 4px; padding: 10px 14px; font-size: 18px; }
html.inv-page .hand { font-size: 19px; margin-top: 4px; }
html.inv-page .yn { padding-top: 16px; }
html.inv-page .yn .yes { padding: 14px 26px; font-size: 17px; }
html.inv-page .kicker { margin-top: 4px; }
/* Тасалбар дотор бичиг үргэлж бараан (шөнийн загварт ч) */
.c-ticket { --card: #fffaf7; --blush: #ffe9f0; --ink: #4a2a3e; --muted: #8a6a7a; --soft: #b08a9c; --line: #f1d3de; --rose: #e2457a; color: #4a2a3e; background: #fffaf7; }
.c-ticket .ct-grid b, .theme-night .c-ticket .ct-grid b, html.bg-wine .c-ticket .ct-grid b, html.bg-stars .c-ticket .ct-grid b, html.bg-black .c-ticket .ct-grid b, html.bg-party .c-ticket .ct-grid b { color: #4a2a3e; }
.c-ticket .ct-grid span, .theme-night .c-ticket .ct-grid span { color: #b08a9c; }
/* Фото бүүт: уулзах газрын карт */
.bt-info { margin: 22px 0 6px; padding: 18px 18px 16px; border-radius: 22px; background: #fff8f4; border: 1.5px solid #f6d3de; box-shadow: 0 16px 30px -22px rgba(120, 30, 60, 0.6); text-align: left; color: #4a2a3e; }
.bt-info .bt-k { margin: 0 0 10px; text-align: center; font-size: 11.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #d2617f; }
.bt-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px dashed #f0d7df; }
.bt-row:first-of-type { border-top: 0; }
.bt-row i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #ffe9f0; font-style: normal; font-size: 18px; }
.bt-row span { display: flex; flex-direction: column; min-width: 0; }
.bt-row small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #b08a9c; text-transform: uppercase; }
.bt-row b { font-size: 15.5px; color: #4a2a3e; word-break: break-word; }
.bt-row b a { color: #c2416b; }
.bt-info .bt-msg { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #f0d7df; text-align: center; font-family: "Caveat", cursive; font-size: 21px; color: #a0577a; }

/* Төлбөрийн хуудас: линкийг имэйлээр авах */
.mail-box { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1.5px dashed var(--line); text-align: left; }
.mail-box p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mail-box p b { color: var(--ink); }
.mail-row { display: flex; gap: 8px; }
.mail-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: #33232b; font: 700 15px "Nunito", sans-serif; }
.mail-row input:focus { outline: none; border-color: var(--rose); }
.mail-row button { flex: none; height: 46px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
.mail-box .err { margin: 8px 0 0; }
.mail-ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--muted); text-align: center; }
.mail-ok b { color: var(--ink); word-break: break-all; }

/* ---------- Төрсөн өдрийн мэндчилгээ ---------- */
.bd-cake { position: relative; display: block; margin: 10px auto 0; padding: 22px 10px 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bd-cake-em { display: block; font-size: 74px; line-height: 1; animation: bd-bob 2.4s ease-in-out infinite; }
.bd-candles { position: absolute; left: 50%; top: 4px; display: flex; gap: 12px; transform: translateX(-50%); }
.bd-candles i { width: 10px; height: 18px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff6b0 0 30%, #ffb43b 60%, #ff7a3b 100%); box-shadow: 0 0 12px 4px rgba(255, 190, 80, .55); animation: bd-flick .35s ease-in-out infinite alternate; transform-origin: 50% 100%; transition: opacity .4s, transform .4s; }
.bd-candles i:nth-child(2) { animation-delay: .12s; } .bd-candles i:nth-child(3) { animation-delay: .24s; }
.bd-cake.out .bd-candles i { opacity: 0; transform: scale(.2) translateY(-10px); }
.bd-wish { margin: 6px 0 2px; font-size: 13.5px; font-weight: 800; color: var(--muted); }
.bd-wish small { font-weight: 700; opacity: .8; }
.bd-letter { position: relative; margin: 14px 0 6px; padding: 18px 18px 14px; border-radius: 22px; background: #fffaf3; border: 1.5px solid #f6dcc8; box-shadow: 0 18px 34px -24px rgba(120, 40, 70, .6); color: #4a2a3e; text-align: left; transform: rotate(-.6deg); }

.bd-to { margin: 0 0 6px; font-weight: 900; font-size: 14px; color: #c2457a; }
.bd-msg { margin: 0; font-family: "Caveat", cursive; font-size: 22px; line-height: 1.3; color: #4a2a3e; word-break: break-word; }
.bd-sign { margin: 8px 0 0; text-align: right; font-family: "Caveat", cursive; font-size: 21px; font-weight: 700; color: #c2457a; }
.bd-letter.sm { transform: none; }
.bd-picked { margin: 0 0 10px; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.bd-picked b { color: var(--rose); }
.bd-note { display: block; width: 100%; min-height: 150px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: #fffaf3; color: #4a2a3e; font: 700 22px/1.3 "Caveat", cursive; resize: vertical; }
.bd-note:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(247, 106, 142, .15); }
.bd-count { margin: 6px 4px 0; text-align: right; font-size: 12px; font-weight: 800; color: var(--soft); }
.bd-gift { margin: 14px 0 8px; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, #fff3f7, #ffe6ef); border: 1.5px solid #f8c9d8; text-align: center; color: #4a2a3e; }
.bd-gift small { display: block; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: #b08a9c; }
.bd-gift b { display: block; margin-top: 6px; font-family: "Comfortaa", sans-serif; font-size: 26px; color: #e2457a; }
.bd-gift span { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: #8a6a7a; }
.bd-conf { position: fixed; z-index: 50; pointer-events: none; font-size: 22px; animation: bd-pop 1.4s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes bd-pop { 0% { transform: translate(-50%, 0) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(var(--dy) + 160px)) rotate(var(--r)) scale(1); opacity: 0; } }
@keyframes bd-flick { from { transform: scaleY(1) rotate(-3deg); } to { transform: scaleY(1.15) rotate(3deg); } }
@keyframes bd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html.inv-page .bd-cake-em { font-size: 62px; }

.art-deel.art-bday { width: min(280px, 82%); }
html.inv-page .art-deel.art-bday { width: min(230px, 66%); }

/* Төрсөн өдрийн эзний зургийн хүрээ */
.bd-frame { --s: 250px; position: relative; width: var(--s); height: calc(var(--s) * .9); margin: 0 auto; }
.bf-bunt { position: absolute; left: 4%; right: 4%; top: 0; width: 92%; height: auto; z-index: 3; }
.bf-ring { position: absolute; left: 50%; top: 13%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); padding: 5px; border-radius: 50%; background: conic-gradient(#ff7aa2, #ffd36e, #8fd3ff, #b69cff, #ff7aa2); box-shadow: 0 18px 34px -14px rgba(120, 30, 60, .55); z-index: 1; animation: bf-spin 9s linear infinite; }
.bf-ph { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid #fff; animation: bf-spin 9s linear infinite reverse; background: #fff; }
.bf-e { position: absolute; display: block; height: auto; filter: drop-shadow(0 8px 10px rgba(120, 30, 60, .3)); z-index: 2; }
.bf-e.b1 { width: 22%; left: -3%; top: 14%; transform: rotate(-12deg); animation: bf-float 3.4s ease-in-out infinite; }
.bf-e.b2 { width: 18%; left: 9%; top: 3%; filter: hue-rotate(250deg) drop-shadow(0 8px 10px rgba(120, 30, 60, .3)); animation: bf-float 4s ease-in-out infinite .6s; }
.bf-e.b3 { width: 21%; right: -2%; top: 10%; transform: rotate(10deg); filter: hue-rotate(290deg) brightness(1.1) drop-shadow(0 8px 10px rgba(120, 30, 60, .3)); animation: bf-float 3.7s ease-in-out infinite .3s; }
.bf-e.sp { width: 12%; right: 16%; top: 4%; animation: bf-tw 1.8s ease-in-out infinite; }
.bf-e.cake { width: 30%; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; }
.bf-e.gift { width: 19%; left: 6%; bottom: 0; transform: rotate(-8deg); z-index: 3; }
.bf-e.pop { width: 18%; right: 6%; bottom: 2%; transform: rotate(-14deg); z-index: 3; }
@keyframes bf-spin { to { transform: translateX(-50%) rotate(360deg); } }
.bf-ph { animation-name: bf-unspin; }
@keyframes bf-unspin { to { transform: rotate(-360deg); } }
@keyframes bf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes bf-tw { 0%, 100% { opacity: .5; scale: .85; } 50% { opacity: 1; scale: 1.1; } }
html.inv-page .bd-frame { --s: 230px; }
.pv .bd-frame { --s: 168px; }
@media (prefers-reduced-motion: reduce) { .bf-ring, .bf-ph, .bf-e { animation: none !important; } }

.bd-from { margin: 10px 0 2px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.bd-from b { color: var(--rose); font-weight: 900; }
html.bg-wine .bd-from, html.bg-stars .bd-from, html.bg-black .bd-from, html.bg-party .bd-from { color: rgba(255,255,255,.85); }
html.bg-wine .bd-from b, html.bg-stars .bd-from b, html.bg-black .bd-from b, html.bg-party .bd-from b { color: #ffc2d4; }

/* Хар арын орчин */
html.bg-black body { background: radial-gradient(900px 600px at 50% 0%, #2b2a30 0%, #141317 55%, #070709 100%); background-attachment: fixed; }
html.bg-black .panel { background: rgba(20, 19, 24, 0.72); border-color: rgba(255,255,255,.08); }

/* Төрсөн өдөр: бэлгийн хайрцагтай нээлт */
.og-box { position: relative; width: 190px; height: 190px; cursor: pointer; animation: og-wiggle 1.6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.og-body { position: absolute; left: 12px; right: 12px; bottom: 0; height: 128px; border-radius: 10px 10px 16px 16px; background: linear-gradient(160deg, #ff8fb0, #f0507f); box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .08), 0 22px 34px -16px rgba(150, 30, 70, .7); overflow: hidden; }
.og-lid { position: absolute; left: 0; right: 0; top: 34px; height: 44px; z-index: 2; border-radius: 10px; background: linear-gradient(160deg, #ffa3c0, #f2628c); box-shadow: 0 8px 12px -6px rgba(120, 20, 60, .5); transform-origin: 30% 100%; transition: transform .75s cubic-bezier(.3, 1.4, .5, 1), opacity .6s .3s; }
.og-rib { position: absolute; background: linear-gradient(90deg, #ffd56b, #ffe9a6, #f5bf3c); }
.og-rib.v { left: 50%; top: 0; bottom: 0; width: 26px; transform: translateX(-50%); }
.og-rib.h { left: 0; right: 0; top: 42%; height: 22px; background: linear-gradient(#ffd56b, #ffe9a6, #f5bf3c); }
.og-bow { position: absolute; left: 50%; top: -30px; width: 90px; height: 40px; transform: translateX(-50%); transition: transform .3s, opacity .3s; }
.og-bow i { position: absolute; top: 4px; width: 42px; height: 30px; border: 9px solid #ffd56b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.og-bow i:first-child { left: 0; transform: rotate(-18deg); } .og-bow i:nth-child(2) { right: 0; transform: rotate(18deg); }
.og-bow b { position: absolute; left: 50%; top: 14px; width: 18px; height: 18px; margin-left: -9px; border-radius: 6px; background: #f5bf3c; }
.og-tag { position: absolute; right: 8px; bottom: 10px; max-width: 70%; padding: 3px 8px; border-radius: 8px; background: #fffaf3; color: #c2457a; font: 700 17px/1.2 "Caveat", cursive; transform: rotate(-6deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-glow { position: absolute; left: 50%; top: 60%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #fff7c2 0%, rgba(255, 220, 120, .55) 35%, rgba(255, 200, 120, 0) 70%); opacity: 0; transition: width .6s ease-out, height .6s ease-out, opacity .4s; }
.op.gift.go .og-box { animation: none; }
.op.gift.s1 .og-bow { transform: translateX(-50%) scale(1.25); opacity: 0; }
.op.gift.s2 .og-lid { transform: translate(40px, -170px) rotate(28deg); opacity: 0; }
.op.gift.s2 .og-glow { width: 380px; height: 380px; opacity: 1; }
.op.gift.s3 .og-glow { opacity: 0; }
.op.gift.go .op-hint { opacity: 0; }
@keyframes og-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg) scale(1.03); } 82% { transform: rotate(5deg) scale(1.03); } 89% { transform: rotate(-3deg); } 95% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .og-box { animation: none; } }
.op.gift .op-hint { background: #fff; color: #e2457a; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }

/* Төрсөн өдөр: зүрхний оронд төрсөн өдрийн тэмдэг */
.bday-inv .choice.on::after { content: "🎁"; }
.avatar.bd-av { display: grid; place-items: center; font-size: 46px; line-height: 1; }
.avatar.bd-av { overflow: hidden; }
.avatar.bd-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---------- Төрсөн өдөр: "Баярын шөнө" дэвсгэр ба өөрийн өнгө ---------- */
html.bg-party body {
  background:
    radial-gradient(3px 3px at 12% 18%, #ffd166 60%, transparent), radial-gradient(3px 3px at 82% 12%, #4fd1c5 60%, transparent),
    radial-gradient(2.5px 2.5px at 30% 72%, #f472b6 60%, transparent), radial-gradient(3px 3px at 68% 64%, #a78bfa 60%, transparent),
    radial-gradient(2px 2px at 90% 82%, #ffd166 60%, transparent), radial-gradient(2.5px 2.5px at 6% 52%, #60a5fa 60%, transparent),
    radial-gradient(2px 2px at 48% 8%, #fff 60%, transparent), radial-gradient(2px 2px at 56% 92%, #4fd1c5 60%, transparent),
    radial-gradient(900px 620px at 50% -5%, #3a2d8f 0%, #1d1752 45%, #0d0b26 100%);
  background-attachment: fixed;
}
html.bg-party .panel { background: rgba(22, 18, 58, 0.72); border-color: rgba(255, 255, 255, .1); }
html.bday-inv {
  --rose: #ffc94d; --coral: #ffd98a; --gold: #ffc94d; --hand: #ffe2a8;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #3b82f6 55%, #06b6d4 100%);
  --shadow-sm: 0 12px 24px -14px rgba(59, 130, 246, .8);
  --blush: rgba(255, 201, 77, .14); --blush2: rgba(255, 201, 77, .16);
}
html.bday-inv .progress i { background: rgba(255, 255, 255, .14); }
html.bday-inv .progress i.on { background: linear-gradient(90deg, #8b5cf6, #3b82f6); }
html.bday-inv .cta { background: var(--grad); box-shadow: 0 16px 30px -14px rgba(59, 130, 246, .85); }
html.bday-inv .choice.on { background: var(--grad); box-shadow: 0 16px 28px -14px rgba(99, 102, 241, .9); }
html.bday-inv .badge { color: #ffc94d; background: rgba(255, 201, 77, .15); border: 1px solid rgba(255, 201, 77, .35); }
html.bday-inv .pill-note { color: #ffc94d; background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .3); }
html.bday-inv .avatar.bd-av { border-color: #ffc94d; box-shadow: 0 0 34px -6px rgba(255, 201, 77, .8); background: #1d1752; }
html.bday-inv .bd-from b, html.bday-inv .bd-picked b { color: #ffc94d; }
html.bday-inv .bd-letter { background: #fffaf0; border: 2px solid #f6d58a; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7), inset 0 0 0 5px #fffaf0, inset 0 0 0 6px #f3e2b5; }
html.bday-inv .bd-to, html.bday-inv .bd-sign { color: #b7791f; }
html.bday-inv .bd-gift { background: linear-gradient(135deg, #fff8e6, #ffeec2); border-color: #f6d58a; }
html.bday-inv .bd-gift b { color: #6d28d9; }
html.bday-inv .bd-note { background: #fffaf0; border-color: #f6d58a; }
html.bday-inv .bd-note:focus { border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
html.bday-inv .back { color: #fff; }
/* бэлгийн хайрцаг: хөх-ягаан, алтан тууз */
html.bday-inv .og-body { background: linear-gradient(160deg, #7c6cff, #4f46e5); }
html.bday-inv .og-lid { background: linear-gradient(160deg, #9d8cff, #6366f1); }
html.bday-inv .og-tag { color: #6d28d9; }
html.bday-inv .op.gift .op-hint { color: #6d28d9; }
html.bday-inv .op-title span { color: #ffc94d; }
html.bday-inv .op-title { color: #fff; }

/* ---------- Төлбөрийн хуудас: цэвэрхэн, даруухан ---------- */
html.pay-page { background: #f4f4f6; }
html.pay-page body { background: #f4f4f6; color: #16161a; font-family: "Inter", system-ui, -apple-system, sans-serif; }
html.pay-page .petals { display: none; }
html.pay-page .panel { background: #fff; border: 1px solid #e7e7ec; border-radius: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.18); color: #16161a; backdrop-filter: none; }
html.pay-page .foot a { color: #6b6b76; font-weight: 600; font-size: 14px; text-decoration: none; }
html.pay-page .foot a:hover { color: #16161a; }
.pp-brand { margin: 0 0 14px; text-align: center; }
.pp-brand img { height: auto; }
.pp { padding: 6px 2px; font-family: "Inter", system-ui, sans-serif; color: #16161a; }
.pp-step { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #8a8a94; }
.pp-h { margin: 0 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #16161a; }
.pp-p { margin: -8px 0 16px; font-size: 15px; line-height: 1.5; color: #55555f; }
.pp-card { margin: 0 0 14px; padding: 4px 16px; border: 1px solid #ececf0; border-radius: 14px; background: #fafafb; }
.pp-label { margin: 12px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8a8a94; }
.pp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ececf0; font-size: 14.5px; }
.pp-row:last-child { border-bottom: 0; }
.pp-row span { color: #6b6b76; flex: none; }
.pp-row b { font-weight: 600; text-align: right; word-break: break-word; }
.pp-row.total { padding: 14px 0; }
.pp-row.total span { color: #16161a; font-weight: 600; }
.pp-row.total b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pp-timer { margin: 0 0 14px; font-size: 13.5px; color: #6b6b76; }
.pp-timer b { color: #16161a; font-variant-numeric: tabular-nums; }
.pp-timer.low b { color: #d1343f; }
.pp-btn { display: block; width: 100%; padding: 14px 18px; border: 1px solid #16161a; border-radius: 12px; background: #16161a; color: #fff !important; font: 600 15px "Inter", system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.pp-btn:hover { background: #2c2c33; }
.pp-btn:active { transform: scale(.99); }
.pp-btn:disabled { opacity: .5; cursor: default; }
.pp-btn.line { margin-top: 10px; background: #fff; color: #16161a !important; border-color: #d9d9e0; }
.pp-btn.line:hover { background: #f6f6f8; }
.pp-sub { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #8a8a94; text-align: center; }
.pp-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: #8a8a94; }
.pp .spinner { width: 14px; height: 14px; border-width: 2px; border-color: #e1e1e6; border-top-color: #16161a; }
.pp-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f6f6f8; font-size: 13.5px; line-height: 1.5; color: #55555f; }
.pp-note b { color: #16161a; word-break: break-all; }
.pp-mail { margin: 16px 0 0; padding: 14px; border: 1px solid #ececf0; border-radius: 12px; }
.pp-mail p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: #55555f; }
.pp-mail p b { color: #16161a; }
.pp-mail-row { display: flex; gap: 8px; }
.pp-mail-row input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d9d9e0; border-radius: 10px; font: 500 14.5px "Inter", system-ui, sans-serif; color: #16161a; background: #fff; }
.pp-mail-row input:focus { outline: none; border-color: #16161a; }
.pp-mail-row button { flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: #16161a; color: #fff; font: 600 14px "Inter", system-ui, sans-serif; cursor: pointer; }
.pp .err { margin: 10px 0 0; font-size: 13px; color: #d1343f; }
.pp-links { display: flex; justify-content: center; gap: 22px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #f0f0f3; }
.pp-links a, .pp-links button { padding: 0; border: 0; background: none; font: 500 13.5px "Inter", system-ui, sans-serif; color: #6b6b76; text-decoration: none; cursor: pointer; }
.pp-links a:hover, .pp-links button:hover { color: #16161a; }
.pp-links .danger:hover { color: #d1343f; }
.pp-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 4px 0 16px; border-radius: 50%; background: #e8f6ee; color: #1e8a52; font-size: 24px; font-weight: 700; }
.pp-icon.warn { background: #fdecec; color: #d1343f; }
.pp-link { margin: 0 0 12px; padding: 14px; border: 1px dashed #cfcfd8; border-radius: 12px; background: #fafafb; font: 600 15px "Inter", system-ui, sans-serif; text-align: center; word-break: break-all; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-two .pp-btn.line { margin-top: 0; }
.pp-new { margin: 14px 0 0; text-align: center; font-size: 13.5px; }
.pp-new a { color: #6b6b76; }
html.pay-page .progress { display: none; }
.pp-two + .pp-card, .pp-sub + .pp-card { margin-top: 16px; }
