@font-face {
  font-family: "Rubik Snow";
  src: url("/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: only light;
  --background: #741e32;
  --paper: #fff7e9;
  --cream: #fbe9db;
  --ink: #401c2b;
  --muted: #69434d;
  --line: #e1b6b4;
  --edge: #b97581;
  --red: #92233c;
  --green: #246047;
  --heading: "PT Serif", Georgia, "Noto Serif", serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--background); }
button, input { font: inherit; min-width: 0; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
#winter { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shell { position: relative; max-width: 985px; padding: 46px 22px max(128px, 52vh); margin: auto; }

.hero, .panel {
  border: 1px solid var(--edge);
  position: relative;
  min-width: 0;
  box-shadow: 0 6px 0 #49182984, 0 14px 32px #3b132b40;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 23px;
  padding: 23px 37px;
  min-height: 300px;
  border-radius: 28px 12px 28px 12px;
  background: radial-gradient(ellipse at 82% 38%, #f8ded4, transparent 56%), var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed #d5939c;
  border-radius: 21px 7px 21px 7px;
  pointer-events: none;
}
.hero-copy { min-width: 0; padding: 12px 0 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand-icon {
  width: 12px;
  height: 10px;
  position: relative;
  display: inline-block;
  background: #ad3b51;
  border-top: 3px solid #bb5266;
  box-shadow: 0 2px 0 #7e2036;
}
.brand-icon::before { content: ""; position: absolute; inset: -3px 5px 0; background: #ffe7e0; }
.brand-icon::after { content: ""; position: absolute; inset: -7px 3px auto; height: 2px; border-inline: 2px solid #ad3b51; }
h1, h2 { font-family: var(--heading); overflow-wrap: anywhere; }
h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 6vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -.064em;
  line-height: .92;
  margin: 15px 0 16px;
}
h1 em { color: var(--red); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.34rem); line-height: 1.04; margin: 0 0 16px; letter-spacing: -.045em; }
p { line-height: 1.55; margin: 0 0 16px; }
.hero p { max-width: 41ch; color: var(--muted); margin-bottom: 0; font-size: 1rem; }
canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.content { display: grid; grid-template-columns: 1.14fr .86fr; align-items: start; gap: 20px; margin-top: 22px; }
.panel {
  border-radius: 21px 9px 21px 9px;
  background: var(--paper);
  padding: clamp(24px, 4vw, 33px);
}
.panel.accent { background: var(--cream); }
.panel.result { background: #fbe6db; border-color: #bd7480; }
.panel.result > p:first-child { color: var(--red); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .11em; }
.panel > p, .quiet { color: var(--muted); }
.field, .wish-field { display: grid; gap: 7px; }
.field + .field, .field + .buttons { margin-top: 14px; }
label, legend, .small, .chip, summary { font-size: .83rem; line-height: 1.5; font-weight: 700; }
input {
  width: 100%;
  padding: 10px 13px;
  background: #fffcf4;
  border: 1px solid var(--edge);
  border-radius: 8px 4px 8px 4px;
  color: var(--ink);
  box-shadow: inset 0 2px 0 #f5e6df;
}
input::placeholder { color: #79545b; }
input[readonly] { color: var(--muted); font-size: .83rem; }
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff8ec;
  background: #92233c;
  border: 1px solid #862136;
  border-radius: 9px 5px 9px 5px;
  box-shadow: 0 3px 0 #64192d, inset 0 1px 0 #bd5a6b;
  padding: 10px 15px;
  min-height: 43px;
  font-size: .88rem;
  line-height: 1.25;
  font-weight: 750;
}
.action.secondary { color: #7b253a; background: #fff2e7; border-color: var(--edge); box-shadow: 0 3px 0 #e4b8b7; }
.action:hover:not(:disabled) { filter: brightness(1.09); }
.action:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.steps, .roster, .wishes { list-style: none; padding: 0; margin: 0; }
.steps li, .roster li, .wishes li { padding: 12px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.steps li:first-child, .roster li:first-child, .wishes li:first-child { padding-top: 2px; }
.steps li:last-child, .roster li:last-child, .wishes li:last-child { border: none; padding-bottom: 0; }
.steps li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); line-height: 1.45; }
.steps li span { color: var(--red); }
.roster li { display: flex; justify-content: space-between; gap: 8px; }
.chip { color: var(--muted); flex-shrink: 0; font-size: .73rem; }
.chip.ready { color: var(--green); }
.wishes a { color: var(--red); text-underline-offset: 4px; }
.wish-field { border: 1px dashed var(--edge); border-radius: 9px 5px 9px 5px; margin: 8px 0 12px; padding: 10px 12px 13px; min-width: 0; }
.wish-field legend { padding: 0 5px; color: var(--red); }
.wish-field button { justify-self: start; min-height: 32px; padding: 5px 10px; }
.invite, .personal { margin-top: 22px; }
.personal { border-top: 1px dashed var(--line); padding-top: 16px; }
.personal summary { cursor: pointer; }
.personal p { margin: 12px 0 8px; }
#notice { margin-top: 16px; border: 1px solid var(--edge); border-radius: 8px 4px 8px 4px; background: var(--paper); padding: 12px 16px; font-size: .9rem; line-height: 1.45; }
#notice.error { color: #811b35; background: #ffe3e7; }
#draw-confirm p { margin-top: 18px; }
@media (max-width: 680px) {
  .shell { padding: 16px 12px max(152px, 44vh); }
  .hero { min-height: 0; gap: 5px; padding: 20px 17px; }
  .hero-copy { padding: 8px 2px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3.65rem); }
  .content { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
}
@media (max-width: 420px) {
  .hero { grid-template-columns: 1fr; }
}

.editable-wishes { margin-bottom: 20px; }
.editable-wishes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.wish-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wish-actions .action { min-height: 32px; padding: 5px 9px; font-size: .76rem; }
#santa-flight {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #santa-flight { display: none; }
}

.wish-progress {
  display: block;
  appearance: none;
  width: min(240px, 75%);
  height: 9px;
  overflow: hidden;
  border: 1px solid #dc8796;
  border-radius: 5px;
  margin: 12px auto 0;
  background: #43192b;
}
.wish-progress::-webkit-progress-bar { background: #43192b; }
.wish-progress::-webkit-progress-value { background: repeating-linear-gradient(-45deg, #fdd1b3 0 5px, #db778c 5px 10px); }
.wish-progress::-moz-progress-bar { background: repeating-linear-gradient(-45deg, #fdd1b3 0 5px, #db778c 5px 10px); }


.snow-title {
  display: flex;
  flex-wrap: wrap;
  gap: .14em .21em;
  max-width: 12ch;
  color: #ba142b;
  font-family: "Rubik Snow", "Arial Black", system-ui, sans-serif;
  font-weight: 900;
  font-size: .96em;
  line-height: .94;
  letter-spacing: -.07em;
  text-shadow: 0 2px 0 #920d28, 2px 3px 0 #eeb7b9;
}
.snow-word { display: inline-flex; white-space: nowrap; }
.snow-letter { position: relative; }
.snow-letter::after {
  content: attr(data-letter);
  color: #fffefa;
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 24%, 86% 23%, 78% 30%, 65% 24%, 54% 28%, 42% 20%, 31% 28%, 19% 23%, 10% 31%, 0 25%);
  text-shadow: 0 1px 0 #f7c1bc;
}
.snow-letter:nth-child(2n)::after {
  clip-path: polygon(0 0, 100% 0, 100% 28%, 88% 22%, 76% 30%, 65% 30%, 53% 22%, 39% 24%, 30% 34%, 18% 25%, 0 29%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.festive-letter {
  display: inline-block;
  font-size: 1.24em;
  padding-right: .025em;
  line-height: .85;
}
.festive-letter.candy {
  color: #b1263e;
  background: repeating-linear-gradient(-42deg, #b1263e 0 4px, #ffe5d3 4px 8px);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .025em #9d2940;
  filter: drop-shadow(0 1px 0 #d99a9c);
}
.festive-letter.cookie {
  color: #a86735;
  background: radial-gradient(circle, #fff3d9 0 1px, transparent 1.2px) 1px 1px / 5px 5px, #a86735;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .021em #77452e;
  filter: drop-shadow(0 1px 0 #d0a282);
}
.card-mistletoe {
  position: absolute;
  top: -13px;
  right: 18px;
  width: 51px;
  pointer-events: none;
}
@media (max-width: 680px) {
  .card-mistletoe { right: 12px; width: 43px; }
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-latin-display.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-cyrillic-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: only light;
  --paper: #fffefa;
  --cream: #fffdf8;
  --ink: #401c2b;
  --muted: #67464e;
  --line: #e5b8b8;
  --edge: #c3818a;
  --heading: "Cormorant Garamond", Georgia, serif;
}
.hero { background: radial-gradient(ellipse at 78% 40%, #f8e4e0, transparent 65%), var(--paper); }
.hero::before { border-color: #d4a0a6; }
.hero .brand {
  font-family: var(--heading);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}
.hero .brand .brand-icon { scale: 1.2; }
.panel h2 { text-align: center; font-size: clamp(1.9rem, 3vw, 2.45rem); }
.panel.result { background: #fff9f5; }
@media (max-width: 680px) {
}
@media (max-width: 420px) {
}
.panel[data-motif="candy"] { padding: clamp(20px, 3vw, 27px); }
.panel[data-motif="candy"] h2 { margin-bottom: 11px; }
#create-form .field { gap: 4px; }
#create-form .field + .field { margin-top: 10px; }
#create-form .buttons { justify-content: center; margin-top: 11px; }
.panel[data-motif="candy"] .personal { margin-top: 12px; padding-top: 10px; }
#create-form .gingerbread-action {
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 100%;
}
.cookie-person {
  position: relative;
  flex: 0 0 48px;
  height: 55px;
  isolation: isolate;
  filter: drop-shadow(0 2px 0 #733c29);
}
.cookie-person::before, .cookie-person::after {
  position: absolute;
  content: "";
  inset: 0;
  background: #894923;
  clip-path: polygon(36% 0,64% 0,72% 10%,72% 28%,94% 32%,100% 40%,97% 52%,72% 55%,71% 69%,83% 91%,76% 100%,60% 98%,51% 83%,48% 83%,40% 98%,22% 100%,16% 91%,29% 68%,27% 55%,3% 52%,0 41%,7% 31%,30% 27%,30% 11%);
}
.cookie-person::after {
  inset: 2px;
  background: #dd9a59;
}
.cookie-person span {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 43% 17%, #713b27 0 1.35px, transparent 1.9px),
    radial-gradient(circle at 58% 17%, #713b27 0 1.35px, transparent 1.9px),
    radial-gradient(ellipse at 50% 24%, #fff0d6 0 3px, transparent 3.4px),
    radial-gradient(circle at 51% 43%, #a32e48 0 2px, transparent 2.4px),
    radial-gradient(circle at 51% 57%, #fff0d6 0 2px, transparent 2.4px),
    radial-gradient(circle at 49% 69%, #4b815b 0 2px, transparent 2.4px);
}
.cookie-label {
  position: relative;
  margin-left: -6px;
  padding: 9px 11px;
  color: #4d291d;
  border: 2px solid #a25b36;
  border-radius: 10px 6px 10px 6px;
  background: #f1bf86;
  box-shadow: 0 3px 0 #84503c, inset 0 1px 0 #ffe7ba;
  text-wrap: balance;
}
@media (min-width: 681px) {
  .content:has(#create-form) { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
}

.hero::after, .panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 41px;
  height: 41px;
  color: #bd344b;
  opacity: .55;
  background:
    linear-gradient(currentColor,currentColor) 50% 50% / 21px 2px,
    linear-gradient(currentColor,currentColor) 50% 50% / 2px 21px,
    linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%) 50% 50% / 16px 16px,
    linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%) 50% 50% / 16px 16px,
    radial-gradient(circle, currentColor 0 1.3px, transparent 1.8px) 100% 38% / 5px 5px,
    radial-gradient(circle, currentColor 0 1.2px, transparent 1.7px) 77% 0% / 5px 5px,
    radial-gradient(circle, currentColor 0 1.2px, transparent 1.7px) 0% 66% / 5px 5px;
  background-repeat: no-repeat;
}
.hero::after { right: 14px; top: 12px; }
.panel::after { right: 4px; bottom: 2px; transform: scale(.78); transform-origin: bottom right; }

.paper-snow {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  color: #ae2342;
  user-select: none;
}
.paper-snow i {
  position: absolute;
  width: 1em;
  height: 1em;
  font-size: 21px;
  opacity: .42;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100%,
    linear-gradient(30deg, transparent 45%, currentColor 47% 53%, transparent 55%) center / 95% 75%,
    linear-gradient(-30deg, transparent 45%, currentColor 47% 53%, transparent 55%) center / 95% 75%,
    radial-gradient(circle, currentColor 0 1px, transparent 1.5px) center / 100% 100%;
  background-repeat: no-repeat;
}
.paper-snow i:nth-child(1) { left: 9px; top: 9px; font-size: 15px; }
.paper-snow i:nth-child(2) { left: 11px; bottom: 14px; font-size: 20px; }
.paper-snow i:nth-child(3) { right: 11px; top: 35px; font-size: 14px; }
.paper-snow i:nth-child(4) { right: 12px; bottom: 41px; font-size: 11px; }
.paper-snow i:nth-child(5) { right: 32px; bottom: 13px; font-size: 14px; }
.paper-snow i:nth-child(6) { left: 30px; bottom: 8px; font-size: 10px; }
.paper-snow i:nth-child(7) { left: 9px; top: 55%; font-size: 10px; }
.paper-snow i:nth-child(8) { right: 12px; top: 58%; font-size: 12px; }
.paper-snow i:nth-child(9) { right: 32px; top: 11px; font-size: 12px; }
.hero .paper-snow i { opacity: .48; }
.hero .paper-snow i:nth-child(3) { top: 25%; right: 12%; font-size: 17px; }
.hero .paper-snow i:nth-child(4) { bottom: 16%; right: 9%; font-size: 19px; }
.hero .paper-snow i:nth-child(5) { bottom: 11%; right: 29%; font-size: 14px; }
.hero .paper-snow i:nth-child(9) { top: 13%; right: 23%; font-size: 12px; }

.gift-scene { width: clamp(225px, 30vw, 340px); }
@media (max-width: 680px) {
  .gift-scene { width: clamp(130px, 32vw, 205px); }
}
@media (max-width: 420px) {
  .gift-scene { width: min(220px, 86%); justify-self: center; }
}

.card-sprig {
  position: absolute;
  z-index: 2;
  width: clamp(74px, 12vw, 128px);
  pointer-events: none;
}
.sprig-top-right { top: -22px; right: -10px; transform: rotate(13deg); }
.sprig-bottom-left { bottom: -39px; left: -13px; transform: rotate(-19deg); }
.sprig-top-left { top: -24px; left: -13px; transform: scaleX(-1) rotate(8deg); }
.sprig-bottom-right { bottom: -35px; right: -10px; transform: scaleX(-1) rotate(-22deg); }
.hero .sprig-top-right { top: -28px; right: -13px; width: clamp(90px, 16vw, 158px); }
.hero .sprig-bottom-left { bottom: -39px; }
@media (max-width: 680px) {
  .card-sprig { width: clamp(58px, 14vw, 90px); }
  .sprig-top-right, .sprig-top-left, .hero .sprig-top-right { top: -15px; }
  .hero .sprig-top-right { width: clamp(70px, 21vw, 100px); }
  .sprig-bottom-left, .sprig-bottom-right, .hero .sprig-bottom-left { bottom: -25px; }
}

.paper-snow i:nth-child(10) { left: 37px; top: 16px; font-size: 10px; }
.paper-snow i:nth-child(11) { left: 11px; top: 35%; font-size: 12px; }
.paper-snow i:nth-child(12) { right: 15px; top: 42%; font-size: 9px; }
.paper-snow i:nth-child(13) { right: 49px; bottom: 6px; font-size: 12px; }
.paper-snow i:nth-child(14) { left: 28%; bottom: 6px; font-size: 11px; }
.paper-snow i:nth-child(15) { left: 27%; top: 7px; font-size: 14px; }
.paper-snow i:nth-child(16) { right: 25%; top: 9px; font-size: 11px; }
.paper-snow i:nth-child(17) { left: 15px; bottom: 27%; font-size: 9px; }
.paper-snow i:nth-child(18) { right: 11px; bottom: 23%; font-size: 13px; }
.hero .paper-snow i:nth-child(10) { left: 38%; top: 13px; font-size: 14px; }
.hero .paper-snow i:nth-child(12) { right: 7%; top: 45%; font-size: 15px; }
.hero .paper-snow i:nth-child(15) { left: 53%; top: 8%; font-size: 16px; }
.hero .paper-snow i:nth-child(16) { right: 15%; top: 20%; font-size: 13px; }

.paper-snow i:nth-child(19) { left: 13%; top: 11px; font-size: 10px; }
.paper-snow i:nth-child(20) { left: 16%; bottom: 6px; font-size: 9px; }
.paper-snow i:nth-child(21) { right: 41%; top: 7px; font-size: 11px; }
.paper-snow i:nth-child(22) { left: 9px; top: 69%; font-size: 11px; }
.paper-snow i:nth-child(23) { right: 16px; top: 17%; font-size: 11px; }
.paper-snow i:nth-child(24) { right: 22%; bottom: 10px; font-size: 10px; }
.paper-snow i:nth-child(25) { right: 10px; bottom: 32%; font-size: 9px; }
.paper-snow i:nth-child(26) { left: 9%; bottom: 8px; font-size: 8px; }
.hero .paper-snow i:nth-child(19) { left: 54%; top: 24%; font-size: 12px; }
.hero .paper-snow i:nth-child(20) { left: 50%; bottom: 16%; font-size: 14px; }
.hero .paper-snow i:nth-child(21) { right: 23%; top: 7%; font-size: 10px; }
.hero .paper-snow i:nth-child(24) { right: 30%; bottom: 8%; font-size: 13px; }

.audio-hint {
  width: fit-content;
  margin: 6px auto 12px;
  padding: .3rem .7rem;
  border: 1px solid #d99aa5;
  border-radius: .4rem;
  background: #fff5ec;
  color: #752335;
  font-size: .8rem;
  text-align: center;
}

.hero-copy { text-align: center; }
.hero h1, .hero p { margin-inline: auto; }
.hero .snow-title { justify-content: center; }
@font-face {
  font-family: "Cormorant Holiday";
  src: url("/fonts/cormorant-latin-display.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
.hero-copy { container-type: inline-size; }
.hero p:has([lang="en"]) { max-width: none; }
#intro [lang="en"] {
  display: inline-block;
  font-family: "Cormorant Holiday", Georgia, serif;
  font-size: clamp(.5rem, 4.05cqw, 1.55rem);
  font-weight: 700;
  line-height: 1.22;
  color: #92233c;
  letter-spacing: .065em;
  text-transform: uppercase;
  white-space: nowrap;
}
@supports (background-clip: text) {
  #intro [lang="en"] {
    background: repeating-linear-gradient(142deg, #8b2334 0 .22em, #b13c4a .22em .31em, #ffede1 .31em .49em, #983140 .49em .66em);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .019em #92233c;
  }
}


.paper-snow i:nth-child(3n + 2) {
  color: #bf2950;
  transform: rotate(30deg);
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100%,
    linear-gradient(currentColor, currentColor) center / 100% 1px,
    linear-gradient(45deg, transparent 46%, currentColor 48% 52%, transparent 54%) center / 72% 72%,
    linear-gradient(-45deg, transparent 46%, currentColor 48% 52%, transparent 54%) center / 72% 72%;
  background-repeat: no-repeat;
}
.paper-snow i:nth-child(3n + 3) {
  color: #9f233c;
  transform: rotate(14deg);
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100%,
    linear-gradient(30deg, transparent 45%, currentColor 47% 53%, transparent 55%) center / 95% 80%,
    linear-gradient(-30deg, transparent 45%, currentColor 47% 53%, transparent 55%) center / 95% 80%,
    radial-gradient(circle, currentColor 0 1px, transparent 1.5px) 50% 0% / 4px 4px,
    radial-gradient(circle, currentColor 0 1px, transparent 1.5px) 50% 100% / 4px 4px;
  background-repeat: no-repeat;
}
.paper-snow i:nth-child(27) { left: 19%; top: 9px; font-size: 12px; }
.paper-snow i:nth-child(28) { left: 5px; top: 22%; font-size: 11px; }
.paper-snow i:nth-child(29) { right: 7px; top: 70%; font-size: 12px; }
.paper-snow i:nth-child(30) { right: 18%; top: 7px; font-size: 9px; }
.paper-snow i:nth-child(31) { left: 44%; bottom: 5px; font-size: 9px; }
.paper-snow i:nth-child(32) { left: 7px; top: 48%; font-size: 13px; }
.paper-snow i:nth-child(33) { right: 7px; top: 29%; font-size: 10px; }
.paper-snow i:nth-child(34) { right: 35%; bottom: 5px; font-size: 10px; }
.paper-snow i:nth-child(35) { left: 6px; top: 83%; font-size: 10px; }
.paper-snow i:nth-child(36) { right: 6px; top: 9%; font-size: 9px; }
.hero .paper-snow i:nth-child(27) { left: 45%; top: 31%; }
.hero .paper-snow i:nth-child(28) { left: 57%; top: 37%; font-size: 13px; }
.hero .paper-snow i:nth-child(31) { left: 58%; bottom: 18%; font-size: 14px; }
.hero .paper-snow i:nth-child(34) { right: 21%; bottom: 8%; font-size: 12px; }

.wish-card {
  background: radial-gradient(ellipse at 65% 0, #f6ddd9 0, transparent 54%), #fff9ed;
  border-color: #ba6b77;
}
.wish-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed #cb8f94;
  border-radius: inherit;
  pointer-events: none;
}
.wish-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--red);
}
.panel .wish-heading h2 { margin: 0; color: var(--ink); }
.wish-heading-mark { font-size: 1.4rem; line-height: 1; }
.wish-card .wish-count {
  margin: 8px 0 18px;
  text-align: center;
  color: #8d4050;
  font-size: .82rem;
  font-weight: 750;
}
.wish-card .wish-empty {
  margin: 0 0 16px;
  padding: 17px 12px;
  border: 1px dashed #d19ca3;
  border-radius: 11px;
  color: #754950;
  text-align: center;
}
.wish-card .editable-wishes {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.wish-card .editable-wishes li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #e3babb;
  border-radius: 10px;
  background: #fff9f3;
}
.wish-stamp {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #a13d58;
  background: #f5dcde;
  font-size: .85rem;
}
.wish-text { overflow-wrap: anywhere; }
.wish-add { display: flex; justify-content: center; }
.wish-card .wish-field { border: 1px solid #d59ca6; background: #fff6ec; }


/* Вишлисты: красивый шрифт и всё по центру */
.wishes li {
  text-align: center;
  font-family: var(--heading);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
}
.wishes a { text-decoration-thickness: 1px; }
.wish-card .editable-wishes li {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 8px;
  padding: 12px 10px 10px;
}
.wish-card .editable-wishes .wish-stamp { display: none; }
.wish-card .wish-actions { justify-content: center; font-family: "DM Sans", system-ui, sans-serif; }
.wish-card .personal { text-align: center; }
.wish-card .personal .field { text-align: left; }
.panel.result > p:first-child, .panel.result h2 { text-align: center; }

/* Удаление участников и комнаты */
.roster li { align-items: center; }
.roster-name { overflow-wrap: anywhere; }
.roster-side { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.roster-remove {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid #e3babb;
  border-radius: 8px 4px 8px 4px;
  color: #8d4050;
  background: #fff6ee;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
}
.roster-remove:hover { color: #fff8ec; background: #b8324d; border-color: #92233c; }
.roster-remove.confirm { color: #fff8ec; background: #92233c; border-color: #862136; }
.danger-zone { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.danger-zone > .action { min-height: 34px; padding: 6px 12px; font-size: .78rem; color: #8d4050; }
.danger-zone .buttons { justify-content: center; }
.danger-zone p { margin: 12px 0 8px; color: var(--muted); }
#delete-room { background: #7a1830; }

.roster-link { font-size: .8rem; }
.roster-link.wide { padding: 0 10px; }
.roster-link:hover { color: #fff8ec; background: #2e735a; border-color: #246047; }
.roster-link.confirm { background: #246047; border-color: #1c4d39; }
.reissued { margin-top: 14px; padding: 12px; border: 1px dashed #8bb89a; border-radius: 10px; background: #f3faf3; text-align: left; }
.reissued p { margin: 8px 0 0; }
.reissue { text-align: center; }
.reissue .roster { text-align: left; }

/* Бюджет */
.budget-badge {
  width: fit-content;
  margin: 12px auto 0 !important;
  padding: 4px 12px;
  border: 1px dashed #d5939c;
  border-radius: 9px 5px 9px 5px;
  background: #fff3ea;
  color: #7b253a !important;
  font-family: var(--heading);
  font-size: 1.12rem !important;
  font-weight: 700;
  max-width: none !important;
}
.budget-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.budget-fields select {
  padding: 9px 10px;
  border: 1px solid var(--edge);
  border-radius: 8px 4px 8px 4px;
  background: #fffcf4;
  color: var(--ink);
  font: inherit;
}
.budget-form { display: grid; gap: 7px; text-align: left; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.budget-form p { margin: 0; }
.budget-form .buttons { margin-top: 4px; }

/* Дата обмена */
#edit-date, #create-date { min-height: 42px; }

/* Отправить приглашение и QR-код */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-row .action { min-height: 36px; padding: 6px 12px; font-size: .8rem; }
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #3d0f1fe6;
}
.qr-card {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: 28px 12px 28px 12px;
  background: var(--paper);
  box-shadow: 0 18px 44px #2a0a1880;
}
.qr-card .brand { justify-content: center; }
.qr-card h2 { margin: 6px 0 12px; }
.qr-slot { width: min(70vh, 100%); margin: 0 auto 12px; padding: 8px; border: 1px dashed #d5939c; border-radius: 12px; background: #fff; }
.qr-code { width: 100%; height: auto; image-rendering: pixelated; }
.qr-details { color: #7b253a; }

/* Кто кому не дарит */
.exclusions { text-align: left; }
.exclusion-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 8px; }
.exclusion-form select {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--edge);
  border-radius: 8px 4px 8px 4px;
  background: #fffcf4;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
}
.exclusion-form .action { grid-column: 1 / -1; justify-self: center; min-height: 34px; padding: 6px 14px; font-size: .8rem; }

/* Анонимная переписка */
.chat-box { margin-top: 18px; padding: 14px; border: 1px dashed #d5939c; border-radius: 12px; background: #fff6ee; text-align: left; }
.chat-box h3 { margin: 0 0 6px; font-family: var(--heading); font-size: 1.25rem; color: var(--ink); }
.chat-box > p { margin: 0 0 10px; }
.chat { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.chat li { max-width: 85%; padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid #ecc6c6; line-height: 1.35; overflow-wrap: anywhere; }
.chat li.mine { justify-self: end; border-radius: 12px 12px 4px 12px; background: #fbe3e6; border-color: #e3b3bb; }
.chat-who { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #8d4050; text-transform: uppercase; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.chat-form .action { min-height: 40px; padding: 6px 12px; font-size: .82rem; }
.panel.result .chat-box { margin-top: 20px; }

/* Аккаунт: плашка в правом верхнем углу, над всеми блоками */
@media (max-width: 680px) {
  .account-bar { gap: 6px 10px; margin-bottom: 10px; }
  .account-who small { display: none; }
}
.account-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px auto;
  padding: 7px 10px 7px 7px;
  border: 1px solid #d99aa5;
  border-radius: 999px;
  background: linear-gradient(#fffaf4, #fbeee6);
  box-shadow: 0 3px 0 #49182955, 0 8px 18px #3b132b30;
  color: #752335;
}
.avatar { display: block; image-rendering: pixelated; border-radius: 50%; flex-shrink: 0; }
.avatar-sm { width: 24px; height: 24px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 88px; height: 88px; }
.avatar-button { position: relative; padding: 0; border: 2px solid #fff; border-radius: 50%; background: none; box-shadow: 0 0 0 1px #d99aa5; }
.avatar-button:hover { box-shadow: 0 0 0 2px #b8324d; }
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #92233c;
  color: #fff8ec;
  font-size: .62rem;
}
.account-who { display: grid; line-height: 1.15; text-align: left; }
.account-who b { color: var(--ink); font-family: var(--heading); font-size: 1.12rem; }
.account-who small { color: #8d4050; font-size: .72rem; }
.account-links { display: flex; gap: 6px; }
.account-link {
  padding: 5px 11px;
  border: 1px solid #e3babb;
  border-radius: 999px;
  background: #fff;
  color: #7b253a;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.account-link:hover { color: #fff8ec; background: #92233c; border-color: #862136; }
.avatar-card { width: min(520px, 100%); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.avatar-choice {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid #ecc6c6;
  border-radius: 12px;
  background: #fffaf4;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}
.avatar-choice:hover { border-color: #b8324d; background: #fff1ec; }
.avatar-choice.current { border: 2px solid #2e735a; background: #eef8f0; }
.roster-name { display: inline-flex; align-items: center; gap: 8px; }
.recipient-avatar { display: grid; justify-items: center; margin: 4px 0 6px; }
.link-button { padding: 0; border: 0; background: none; color: #92233c; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.auth-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.auth-tab {
  padding: 7px 12px;
  border: 1px solid #e3babb;
  border-radius: 999px;
  background: #fff6ee;
  color: #7b253a;
  font-size: .82rem;
  font-weight: 750;
}
.auth-tab.active { color: #fff8ec; background: #92233c; border-color: #862136; }
.auth-form .field + .field { margin-top: 12px; }
.auth-form .buttons { justify-content: center; }
.auth-form .field p { margin: 0; }
.auth-panel > p { text-align: center; }
.recovery-panel { text-align: center; }
.recovery-code {
  display: inline-block;
  margin: 6px auto 4px !important;
  padding: 12px 18px;
  border: 2px dashed #b8324d;
  border-radius: 12px;
  background: #fff;
  color: #2b0d18 !important;
  font: 700 clamp(1.15rem, 5vw, 1.6rem)/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .08em;
  user-select: all;
}
.recovery-panel .buttons { justify-content: center; }
.check { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 700; }
.check input { width: 18px; height: 18px; }
.my-rooms li { align-items: center; }
.my-rooms a { font-family: var(--heading); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.my-rooms a:hover { color: var(--red); text-decoration: underline; }
.account-settings { margin-top: 18px; }

/* Таймер до обмена — крупные цифры */
.countdown { margin: 14px auto 4px; text-align: center; }
.countdown-title { margin: 0 0 8px !important; color: #8d4050 !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; max-width: none !important; }
.countdown-tiles { display: flex; justify-content: center; gap: clamp(6px, 2vw, 12px); }
.countdown-tile {
  display: grid;
  justify-items: center;
  min-width: clamp(58px, 15vw, 84px);
  padding: 8px 6px 6px;
  border: 1px solid #d5939c;
  border-radius: 14px 6px 14px 6px;
  background: linear-gradient(#fffefa, #fbe9e6);
  box-shadow: 0 3px 0 #e4b8b7;
}
.countdown-tile b {
  color: #ba142b;
  font-family: var(--heading);
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 2px 0 #f2c6c3;
}
.countdown-tile small { margin-top: 3px; color: #8d4050; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.countdown-done { margin: 0 !important; color: #ba142b !important; font-family: var(--heading); font-size: clamp(1.5rem, 5vw, 2rem) !important; font-weight: 700; max-width: none !important; }

/* Бюджет — подарочная бирка */
.budget-tag {
  position: relative;
  display: grid;
  justify-items: center;
  width: fit-content;
  margin: 16px auto 4px;
  padding: 10px 26px 9px;
  border: 1px solid #b8324d;
  border-radius: 10px 4px 10px 4px;
  background: repeating-linear-gradient(-45deg, #fff7ef 0 8px, #fdeee7 8px 16px);
  box-shadow: 0 3px 0 #e4b8b7;
}
.budget-tag::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed #d5939c;
  border-radius: 7px 3px 7px 3px;
  pointer-events: none;
}
.budget-bow {
  position: absolute;
  top: -9px;
  width: 22px;
  height: 12px;
  background:
    radial-gradient(circle at 25% 50%, #c23a52 0 4px, transparent 4.5px),
    radial-gradient(circle at 75% 50%, #c23a52 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 50%, #f4c25a 0 3px, transparent 3.5px);
}
.budget-label { color: #8d4050; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.budget-amount { color: #2e735a; font-variant-numeric: lining-nums; font-family: var(--heading); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; line-height: 1.1; }

/* Приветственный экран с подарком */
.welcome-open, .welcome-open body { overflow: hidden; }
.welcome {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 45%, #741e3260, #3d0f1fd9 70%);
  cursor: pointer;
  transition: background .6s ease, opacity .6s ease;
}
.welcome-card {
  position: relative;
  width: min(360px, 100%);
  padding: 30px 28px 24px;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: 28px 12px 28px 12px;
  background: radial-gradient(ellipse at 50% 30%, #f8ded4, transparent 62%), var(--paper);
  box-shadow: 0 6px 0 #49182984, 0 18px 44px #2a0a1880;
  animation: welcome-in .7s cubic-bezier(.2, 1.4, .4, 1) both;
  transition: transform .6s cubic-bezier(.5, 0, .7, .4), opacity .45s ease;
}
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed #d5939c;
  border-radius: 21px 7px 21px 7px;
  pointer-events: none;
}
.welcome-card .brand { justify-content: center; margin-bottom: 4px; }
.welcome-gift { width: min(200px, 62%); margin: 0 auto 6px; }
.welcome-card h2 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 0 0 18px; }
.welcome-card .snow-title { justify-content: center; max-width: none; }
.welcome-card .action { position: relative; z-index: 1; min-width: 190px; font-size: 1rem; animation: welcome-pulse 2.6s ease-in-out 1s infinite; }
.welcome-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; letter-spacing: .08em; }
.welcome-card.opening .action { animation: none; }
.welcome.leaving { background: transparent; pointer-events: none; }
.welcome.leaving .welcome-card { transform: translateY(-14px) scale(.9); opacity: 0; }
.welcome-burst { position: fixed; inset: 0; z-index: 21; width: 100%; height: 100%; pointer-events: none; }
@keyframes welcome-in {
  from { transform: translateY(26px) scale(.92); opacity: 0; }
}
@keyframes welcome-pulse {
  0%, 100% { transform: none; }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-card, .welcome-card .action { animation: none; }
  .welcome, .welcome-card { transition-duration: .2s; }
}
