/* Foundation: ночная зимняя сцена. Гарнитуры: Unbounded — только крупный заголовок и заголовок диалога,
   Golos Text — всё остальное. Акцент один: красный «подарочный» на главной кнопке. Радиусы: карточка 14px, контролы 10px. */
:root {
  --night: #0b1626;
  --night-2: #13243b;
  --on-night: #f4efe6;
  --on-night-muted: #aab7c9;
  --line-night: rgba(255, 255, 255, .14);
  --paper: #fbf7f0;
  --ink: #1d1814;
  --muted: #6e635a;
  --line: #e3d8c8;
  --soft: #efe5d6;
  --red: #c62f28;
  --red-dark: #a3241e;
  --red-ink: #fff;
  --gold: #f2c45a;
  --ok: #2f7a4a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 36px -18px rgba(0, 0, 0, .65);
  --r-card: 14px;
  --r-ctl: 10px;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --sans: "Golos Text", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip;
  margin: 0; min-height: 100vh; color: var(--on-night); font: 16px/1.55 var(--sans); font-synthesis: none;
  background: radial-gradient(1100px 560px at 78% -8%, #24426c 0%, transparent 62%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%) fixed;
  background-color: var(--night);
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; position: relative; z-index: 1; }
#snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#snowbank { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
footer.wrap { min-height: 60px; }
.icon { width: 18px; height: 18px; flex: none; }

/* гирлянда */
.garland { position: relative; z-index: 2; height: 54px; overflow: hidden; }
.garland svg { width: 100%; height: 54px; display: block; }
.bulb { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px currentColor); } 50% { opacity: .4; filter: none; } }

/* шапка */
.scene img { display: block; width: 100%; height: auto; }
.scene-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene-fx .lights { mix-blend-mode: screen; }
.scene .star { animation: starglow 3s ease-in-out infinite; }
@keyframes starglow { 50% { opacity: .55; } }
.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: end; padding-top: 16px; }
.countdown { font-size: 14px; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; text-wrap: balance; }
.hero p.sub { max-width: 32em; margin: 0 0 8px; color: var(--on-night-muted); font-size: 17px; text-wrap: pretty; }
.scene { position: relative; width: 100%; max-width: 720px; justify-self: end; margin-right: -24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect; }
.scene .smoke circle { animation: smoke 6s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .smoke circle:nth-child(2) { animation-delay: 2s; }
.scene .smoke circle:nth-child(3) { animation-delay: 4s; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: .5; } 100% { transform: translate(18px, -60px) scale(1.7); opacity: 0; } }
.scene .window { animation: flicker 5s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .86; } 53% { opacity: .96; } }
.scene .star { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 6px rgba(255, 211, 110, .7)); }
#treeGlow { opacity: .35; transition: opacity .6s ease; }
.scene.lit #treeGlow { opacity: 1; }
.scene.lit .bulb { animation: blaze .5s ease-in-out 6 alternate; }
.scene.lit .star { animation: starpop 1.2s var(--ease-out); }
@keyframes blaze { from { opacity: .5; filter: none; } to { opacity: 1; filter: drop-shadow(0 0 9px currentColor) brightness(1.25); } }
@keyframes starpop { 40% { transform: scale(1.35) rotate(12deg); filter: drop-shadow(0 0 14px #ffd36e); } }
.gift-new { animation: giftin .5s var(--ease-out); transform-box: fill-box; transform-origin: center bottom; }
@keyframes giftin { from { transform: scale(.6) translateY(-6px); opacity: 0; } }
.garland.lit .bulb { animation: blaze .4s ease-in-out 6 alternate; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line-night); padding: 16px 0; margin-top: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-night); background: rgba(255,255,255,.05); color: var(--on-night); padding: 8px 16px; border-radius: 99px; font-size: 14px; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.count { color: var(--on-night-muted); font-size: 14px; }

/* сетка */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 20px; padding: 16px 0 64px; }
.card { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-card); display: flex; flex-direction: column; box-shadow: var(--shadow); }
/* гирлянда над карточкой */
.card-lights { position: absolute; left: 10px; right: 10px; top: -12px; height: 26px; z-index: 2; pointer-events: none; display: flex; justify-content: space-between; padding: 0 4px; }
.card-lights::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14'%3E%3Cpath d='M0 3 Q18 15 36 3' fill='none' stroke='%232c3644' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 36px 14px; }
.card-lights i { position: relative; top: 7px; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%; background: currentColor; color: var(--c);
  box-shadow: 0 0 8px 2px currentColor; animation: cardbulb 1.8s ease-in-out infinite; animation-delay: var(--d); }
.card-lights i::before { content: ""; position: absolute; left: 1.5px; top: -3px; width: 5px; height: 4px; border-radius: 1px; background: #3a4656; }
@keyframes cardbulb { 0%, 100% { opacity: 1; box-shadow: 0 0 9px 2px currentColor; } 50% { opacity: .35; box-shadow: none; } }
.card:hover .card-lights i { animation-duration: .6s; }
.card.taken .card-lights i { animation: none; opacity: .3; box-shadow: none; }
.media { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media img.cover { object-fit: cover; }
.media .initial { font-family: var(--display); font-size: 56px; color: var(--red); opacity: .35; }
.badge { position: absolute; top: 14px; left: 12px; background: var(--red); color: var(--red-ink); font-size: 12px; padding: 4px 10px; border-radius: 99px; font-weight: 500; }
.body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.title { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0; text-wrap: balance; }
.price { font-weight: 600; font-size: 20px; line-height: 1.3; }
.note { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 0 0; white-space: pre-line; }
.actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }

/* кнопки */
.btn { flex: 1; border-radius: var(--r-ctl); padding: 10px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; text-align: center; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--soft); }
/* главная — как подарочная лента: красная с золотой полосой ленты по центру */
.btn.gift {
  position: relative; overflow: hidden; color: var(--red-ink); border: 0; font-weight: 600;
  background: linear-gradient(90deg, transparent calc(50% - 5px), var(--gold) calc(50% - 5px), var(--gold) calc(50% + 5px), transparent calc(50% + 5px)) 0 0 / 100% 100% no-repeat, var(--red);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn.gift span { position: relative; z-index: 1; background: var(--red); padding: 2px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s ease; }
.btn.gift:hover { background-color: var(--red-dark); }
.btn.gift:hover span { background: var(--red-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.card.taken .media img, .card.taken .media .initial { filter: grayscale(1); opacity: .55; }
.card.taken .title, .card.taken .price { color: var(--muted); }
.status { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card.mine { outline: 2px solid var(--ok); outline-offset: -2px; }
.card.mine .status { color: var(--ok); font-weight: 600; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; font-size: 14px; min-height: 32px; }

.empty { text-align: center; padding: 80px 0; color: var(--on-night-muted); }

/* небо с санями */
.sky { position: absolute; z-index: 3; top: -20px; left: 50%; width: 100vw; transform: translateX(-50%); height: 280px; overflow: hidden; pointer-events: none; }
.sleigh svg { overflow: visible; }
.sleigh { position: absolute; left: 0; top: 70px; width: 280px; height: 210px; will-change: transform; animation: fly 16s linear infinite; }
@keyframes fly {
  0% { transform: translate(-300px, 90px) rotate(-4deg); }
  60% { transform: translate(calc(100vw + 20px), -70px) rotate(-8deg); }
  100% { transform: translate(calc(100vw + 20px), -70px) rotate(-8deg); }
}
footer.wrap { padding-top: 0; padding-bottom: 40px; color: var(--on-night-muted); font-size: 13px; }
footer p { margin: 0 0 6px; max-width: 60em; }

/* диалог */
dialog { border: 0; border-radius: var(--r-card); padding: 28px; max-width: 420px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(5, 10, 20, .6); }
dialog h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 10px; line-height: 1.25; text-wrap: balance; }
dialog p { color: var(--muted); margin: 0 0 20px; }
dialog .actions { padding: 0; }

/* анимация «подарок под ёлку» */
.wrap-stage { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5, 10, 20, .6); }
.wrap-stage .gift-box { width: 180px; height: 180px; }
.wrap-stage .caption { position: absolute; left: 0; right: 0; top: calc(50% + 110px); text-align: center; color: var(--on-night); font-size: 16px; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: var(--r-ctl); opacity: 0; transition: opacity .2s ease, transform .2s var(--ease-out); pointer-events: none; font-size: 15px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* админка */
.panel { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 12px; min-height: 44px; }
.field textarea { min-height: 70px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.btn.primary { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.rows { display: grid; gap: 10px; margin-top: 16px; padding-bottom: 80px; }
.row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 10px; box-shadow: var(--shadow); }
.thumb { width: 56px; height: 56px; border-radius: 8px; background: #fff; object-fit: contain; display: grid; place-items: center; font-family: var(--display); color: var(--red); font-size: 22px; }
.row .meta { min-width: 0; }
.row .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta span { color: var(--muted); font-size: 13px; }
.row .tools { display: flex; gap: 6px; }
.row .tools .btn { flex: none; padding: 8px 12px; min-height: 40px; font-size: 14px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 4px; }
  .scene { justify-self: center; max-width: 100%; margin-right: 0; order: -1; margin-bottom: -4px; }
  .sky { height: 220px; }
  .sleigh { width: 200px; height: 150px; top: 40px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .row { grid-template-columns: 48px 1fr; }
  .row .tools { grid-column: 1 / -1; }
  .row .tools .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb, .scene .smoke circle, .scene .window, .sleigh { animation: none !important; }
  .scene .smoke circle { opacity: 0; }
  .sleigh { transform: translate(60vw, -30px); }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Санта говорит после брони */
.santa-say { position: fixed; z-index: 31; left: 50%; bottom: 24px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(20px); transition: opacity .2s ease, transform .3s var(--ease-out); }
.santa-say.show { opacity: 1; transform: translateX(-50%); }
.santa-face { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); transform-origin: 50% 90%; }
.santa-say.show .santa-face { animation: santanod .9s var(--ease-out) .15s; }
@keyframes santanod { 30% { transform: rotate(-10deg) scale(1.06); } 60% { transform: rotate(6deg); } }
.santa-bubble { position: relative; margin-bottom: 18px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 16px; padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow); white-space: nowrap; }
.santa-bubble::before { content: ""; position: absolute; left: -7px; bottom: 10px; width: 14px; height: 14px; background: var(--paper); transform: rotate(45deg); border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .santa-say, .santa-say.show .santa-face { transition: none; animation: none; } }

/* снеговики внизу */
.snowfield { position: relative; z-index: 1; max-width: 1000px; margin: -90px auto 0; pointer-events: none; padding: 0 16px; }
.snowfield svg { display: block; width: 100%; height: auto; overflow: visible;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); }

/* чужая бронь: содержимое скрыто, вместо него размытая заглушка */
.media.secret { background: linear-gradient(135deg, #e9dccb, #d9cfe0); filter: none; }
.media.secret .blob { position: absolute; border-radius: 50%; filter: blur(22px); opacity: .85; animation: blobmove 9s ease-in-out infinite alternate; }
.media.secret .b1 { width: 55%; height: 60%; left: 8%; top: 12%; background: #c62f28; }
.media.secret .b2 { width: 45%; height: 50%; right: 6%; top: 30%; background: #f2c45a; animation-delay: -3s; }
.media.secret .b3 { width: 40%; height: 40%; left: 30%; bottom: 4%; background: #3e8e5a; animation-delay: -6s; }
@keyframes blobmove { to { transform: translate(12%, -10%) scale(1.15); } }
.media.secret::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255, 250, 243, .18); }
.secret-gift { position: relative; z-index: 1; width: 42%; max-width: 128px; filter: drop-shadow(0 10px 16px rgba(60, 20, 10, .3)); animation: giftbob 3s ease-in-out infinite; }
@keyframes giftbob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.secret-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .75); color: var(--ink); font-weight: 600; font-size: 14px; }
.ghost { display: flex; flex-direction: column; gap: 8px; filter: blur(3px); padding-top: 2px; }
.ghost span { display: block; height: 12px; border-radius: 6px; background: #d9cfc2; }
.ghost .price-g { width: 34%; height: 20px; background: #cbbfae; }
.card.taken .media.secret { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .media.secret .blob, .secret-gift { animation: none; } }

/* чужая бронь — карточка целиком запакована как подарок */
.card.wrapped { min-height: 380px; overflow: visible; border-radius: var(--r-card);
  --rb-d: #c48c2b; --rb-l: #f8d77e; --rb-m: #f2c45a; --rb-k: #b9822a; --hole: #a32019;
  background: var(--paper-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -18px 30px rgba(0, 0, 0, .18), var(--shadow); }
.card.wrapped .ribbon-v, .card.wrapped .ribbon-h { position: absolute; pointer-events: none; overflow: hidden; }
.card.wrapped .ribbon-v { top: 0; bottom: 0; left: 50%; width: 30px; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--rb-d), var(--rb-l) 38%, var(--rb-m) 62%, var(--rb-k)); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 2px 0 6px rgba(0,0,0,.18); }
.card.wrapped .ribbon-h { left: 0; right: 0; top: 44%; height: 30px;
  background: linear-gradient(180deg, var(--rb-d), var(--rb-l) 38%, var(--rb-m) 62%, var(--rb-k)); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.18); }
.card.wrapped .ribbon-v::after, .card.wrapped .ribbon-h::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 300% 300%; animation: ribbonshine 4.5s ease-in-out infinite; }
.card.wrapped .ribbon-h::after { animation-delay: .6s; }
@keyframes ribbonshine { 0% { background-position: 120% 120%; } 60%, 100% { background-position: -20% -20%; } }
.card.wrapped .bow { position: absolute; z-index: 3; top: -46px; left: 50%; width: 160px; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); transform-origin: 50% 60%; }
@media (hover: hover) { .card.wrapped:hover .bow { animation: bowwiggle .7s var(--ease-out); } }
@keyframes bowwiggle { 30% { transform: translateX(-50%) rotate(-6deg) scale(1.05); } 60% { transform: translateX(-50%) rotate(4deg); } }
.card.wrapped .gift-tag { position: absolute; z-index: 2; left: calc(50% + 22px); top: calc(44% + 26px); transform: rotate(-7deg); transform-origin: 0 0;
  background: #fbf6ee; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.3; padding: 10px 14px 10px 24px;
  border-radius: 4px 10px 10px 4px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.card.wrapped .tag-hole { position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hole); }
.card.wrapped:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .card.wrapped .ribbon-v::after, .card.wrapped .ribbon-h::after { animation: none; } }

/* бант в цвет ленты */
.card.wrapped .bw-m { fill: var(--rb-m); } .card.wrapped .bw-s { fill: var(--rb-d); } .card.wrapped .bw-d { fill: var(--rb-k); }
.card.wrapped .bw-d2 { fill: var(--rb-k); filter: brightness(.9); } .card.wrapped .bw-k { fill: var(--rb-d); } .card.wrapped .bw-l { fill: var(--rb-l); }
.card.wrapped .bw-hl { opacity: .55; }
/* шесть видов бумаги — соседние подарки не повторяются */
.card.wrapped.paper-1 { --paper-bg:
    radial-gradient(circle at 25% 25%, rgba(242, 196, 90, .95) 0 3px, transparent 3.6px) 0 0 / 34px 34px,
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, .8) 0 2.4px, transparent 3px) 0 0 / 34px 34px,
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #d8392f, #a32019); }
.card.wrapped.paper-2 { --rb-d: #a8231c; --rb-l: #ff7a6e; --rb-m: #e03a30; --rb-k: #8e1b15; --hole: #1d5a3b;
  --paper-bg:
    radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 2.6px) 0 0 / 28px 28px,
    radial-gradient(circle, rgba(255,255,255,.55) 0 1.4px, transparent 2px) 14px 14px / 28px 28px,
    linear-gradient(160deg, #2f8a5b, #17583a); }
.card.wrapped.paper-3 { --rb-d: #a8231c; --rb-l: #ff7a6e; --rb-m: #e03a30; --rb-k: #8e1b15; --hole: #b0761d;
  --paper-bg:
    repeating-linear-gradient(-45deg, rgba(200, 50, 40, .85) 0 7px, transparent 7px 22px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 9px 11px, transparent 11px 22px),
    linear-gradient(160deg, #f8d77e, #e6aa3a); }
.card.wrapped.paper-4 { --rb-d: #9aa6b4; --rb-l: #ffffff; --rb-m: #dde4ec; --rb-k: #7d8998; --hole: #1d3460;
  --paper-bg:
    radial-gradient(circle, #ffe7a0 0 1.8px, transparent 2.4px) 0 0 / 26px 26px,
    radial-gradient(circle, rgba(255,255,255,.75) 0 1.2px, transparent 1.8px) 13px 9px / 26px 26px,
    radial-gradient(circle, rgba(255,255,255,.4) 0 1px, transparent 1.5px) 6px 19px / 26px 26px,
    linear-gradient(160deg, #2b4f8f, #152b55); }
.card.wrapped.paper-5 { --rb-d: #1f6b45; --rb-l: #7fd6a3; --rb-m: #34a56a; --rb-k: #17583a; --hole: #c62f28;
  --paper-bg:
    repeating-linear-gradient(45deg, #d93b33 0 6px, #fdf7ef 6px 14px, #2f8a5b 14px 18px, #fdf7ef 18px 26px),
    #fdf7ef; }
.card.wrapped.paper-6 { --hole: #4a2470;
  --paper-bg:
    repeating-linear-gradient(0deg, rgba(242, 196, 90, .35) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(90deg, rgba(242, 196, 90, .35) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 9px, transparent 9px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 9px, transparent 9px 26px),
    linear-gradient(160deg, #7b3fa8, #4a2470); }

/* вход через Telegram */
.tg-login { max-width: 440px; }
.tg-login h2 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
.tg-login p { color: var(--muted); margin: 0 0 16px; }
.tg-login .tg-btn { width: 100%; background: #2aabee; border-color: #2aabee; color: #fff; }
.tg-login .tg-btn:hover { background: #1e96d4; border-color: #1e96d4; }
.tg-login .tg-btn .icon { width: 20px; height: 20px; }
.tg-login .link { display: block; margin: 14px auto 0; }
.tg-code { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: .2em; text-align: center; padding: 14px 0; background: var(--soft); border-radius: 14px; color: var(--ink); }
.tg-timer { text-align: center; font-size: 13px; margin: 10px 0 0 !important; }
