/* Xmas Card — shared page look (make-a-card page + open-a-card page) */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Itim', 'Mali', system-ui, sans-serif; color: #fff; background: linear-gradient(160deg, var(--bg1, #2a8fa0), var(--bg2, #11505f)) fixed; transition: --bg1 .6s, --bg2 .6s;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@property --bg1 { syntax: '<color>'; inherits: true; initial-value: #2a8fa0; }
@property --bg2 { syntax: '<color>'; inherits: true; initial-value: #11505f; }
button, input, textarea { font: inherit; color: inherit; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 14px 16px 34px; }

.btn { appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 22px; font-size: 18px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #7c1820; box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(0, 0, 0, .16); transition: transform .12s, box-shadow .12s, opacity .2s; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .16); }
.btn.red { background: #e23b3b; color: #fff; }
.btn.gold { background: #f6c453; color: #5a3a08; }
.btn.line { background: #06c755; color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 0; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: rgba(20, 24, 32, .92); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 16px; opacity: 0;
  transition: opacity .25s, transform .25s; z-index: 50; pointer-events: none; max-width: 88vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sound { position: fixed; right: 12px; top: 12px; z-index: 20; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); display: grid; place-items: center; cursor: pointer; }
.sound svg { width: 22px; height: 22px; }
.sound.off { opacity: .55; }
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
