:root {
  --card: #1f2c5c;
  --card-2: #172352;
  --card-3: #2a3a74;
  --line: rgba(255,255,255,.1);
  --text: #ffffff;
  --muted: #aab5dc;
  --coral: #ffc94d;
  --coral-dark: #f0b429;
  --on-accent: #2a1d00;
  --green: #4fd18b;
  --gold: #ffc94d;
  --red: #e5484d;
  --radius: 22px;
  --display: "Montserrat Alternates", "Manrope", sans-serif;
  --sky: #0a1843;
  --on-sky: #ffffff;
  --on-sky-muted: rgba(255,255,255,.78);
}
[data-world="village"] { --sky: #5356b2; }
[data-world="day"] { --sky: #8acef9; --on-sky: #0f1d4a; --on-sky-muted: rgba(15,29,74,.78); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--sky); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text);
}

/* Мир на фоне */
.world {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--sky) url("img/night.webp") center bottom / cover no-repeat;
}
[data-world="village"] .world { background-image: url("img/village.webp"); }
[data-world="day"] .world { background-image: url("img/day.webp"); }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* Шапка */
.top, .wrap { position: relative; z-index: 1; }
.top { max-width: 1120px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--on-sky); }
.brand i { color: var(--coral); font-size: 24px; }
.top__link { color: var(--on-sky); font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 4px; border-bottom: 2px solid transparent; }
.top__link:hover { border-bottom-color: var(--coral); }

.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 120px; }

/* Заголовки страниц */
.hero { padding: 36px 0 26px; color: var(--on-sky); }
.hero--sm { padding: 26px 0 20px; }
.hero h1 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lead { margin: 0; font-size: 18px; font-weight: 600; color: var(--on-sky-muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; color: var(--on-sky); font-weight: 700; font-size: 15px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta i { color: var(--gold); font-size: 19px; }
[data-world="day"] .meta i, [data-world="day"] .hero h1 em, [data-world="day"] .home-hero h1 em { color: #a86a00; }
.note { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; white-space: pre-line; font-weight: 600; background: var(--card); color: var(--text); }
.countdown { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 18px 8px 8px; border-radius: 16px; background: var(--card); color: var(--text); font-weight: 700; }
.countdown b { display: grid; place-items: center; min-width: 54px; height: 46px; padding: 0 10px; border-radius: 12px; font-family: var(--display); font-size: 26px; background: var(--coral); color: var(--on-accent); }

/* Карточки со снегом */
.card { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px; margin: 0 0 22px; box-shadow: 0 18px 40px -20px rgba(5,12,40,.7); }
.card::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -8px; height: 22px; pointer-events: none;
  background:
    radial-gradient(18px 10px at 22px 12px, #fff 97%, transparent 100%),
    radial-gradient(26px 12px at 52px 11px, #fff 97%, transparent 100%),
    radial-gradient(14px 8px at 84px 13px, #fff 97%, transparent 100%),
    linear-gradient(#fff, #fff) 14px 12px / 80px 8px no-repeat,
    radial-gradient(16px 9px at calc(100% - 26px) 12px, #fff 97%, transparent 100%),
    radial-gradient(24px 12px at calc(100% - 56px) 11px, #fff 97%, transparent 100%),
    linear-gradient(#fff, #fff) calc(100% - 14px) 12px / 60px 8px no-repeat;
  filter: drop-shadow(0 2px 0 rgba(170,190,240,.6));
}
.card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.card h2.mt { margin-top: 26px; }
.card h3 { margin: 20px 0 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card__head h2 { margin: 0; }
.card--details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.card--details summary::-webkit-details-marker { display: none; }
.card--details summary h2 { margin: 0; }
.card--details summary > i { font-size: 22px; color: var(--muted); transition: transform .25s; }
.card--details[open] summary { margin-bottom: 16px; }
.card--details[open] summary > i { transform: rotate(180deg); }

.head-art { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.head-art h2 { margin: 0; }
.medal { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--card-3); color: var(--gold); font-size: 26px; }
.medal--paper { background: var(--card-3); color: var(--gold); }
.medal--lg { width: 84px; height: 84px; font-size: 44px; border-radius: 22px; margin: 0 auto 16px; }
.art { display: block; margin: 0 auto 10px; width: 150px; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.art--sm { width: 60px; margin: 0; flex: none; }
.art--float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.muted { color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Формы */
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 700; font-size: 14px; color: var(--muted); }
.field em { font-style: normal; font-weight: 500; opacity: .8; margin-left: 4px; }
input, textarea {
  width: 100%; font: inherit; font-weight: 600; color: var(--text); background: var(--card-2);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; transition: border-color .15s, box-shadow .15s;
  color-scheme: dark;
}
textarea { resize: vertical; min-height: 52px; }
input:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,201,77,.25); }
input::placeholder, textarea::placeholder { color: #7883ad; font-weight: 500; }

.drop { position: relative; display: grid; place-items: center; gap: 4px; text-align: center; padding: 22px 16px; border: 1.5px dashed rgba(255,255,255,.25); border-radius: 16px; background: var(--card-2); cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--coral); }
.drop.is-full { opacity: .5; pointer-events: none; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop i { font-size: 30px; color: var(--gold); }
.drop b { font-size: 15px; }
.drop__count { color: var(--green); font-weight: 800; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__x, .thumb form button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 14px; background: rgba(10,18,50,.75); color: #fff; }
.thumb__x:hover, .thumb form button:hover { background: var(--coral); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; padding: 12px 18px; border-radius: 14px; border: 0; background: var(--card-3); color: #fff; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: #34468a; }
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn--main { background: var(--coral); color: var(--on-accent); padding: 15px 26px; font-size: 16px; box-shadow: 0 10px 24px -10px rgba(255,201,77,.7); }
.btn--main:hover { background: var(--coral-dark); }
.btn--main:disabled { background: #4a5584; color: #aab5dc; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--card-2); color: #fff; }
.btn--done { background: rgba(79,209,139,.16); color: var(--green); }
.form > .btn, .card > form > .btn--main { justify-self: start; }
.copy { display: flex; gap: 10px; }
.copy input { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }

.alert { padding: 13px 18px; border-radius: 16px; margin-bottom: 20px; font-weight: 700; background: var(--card); color: #fff; }
.alert a { color: var(--gold); }
.alert--ok { background: #1d5a4a; }
.alert--err { background: #6e2633; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.status--done { color: var(--green); }
.status i { font-size: 18px; }

/* Участники */
.people { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); opacity: 0; animation: popIn .4s cubic-bezier(.3,1.4,.5,1) forwards; animation-delay: calc(var(--i, 0) * 40ms + .1s); }
.people form { margin-left: auto; }
.people__name { font-weight: 800; overflow-wrap: anywhere; }
.people__sub { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: #3d6fd8; }
.people li:nth-child(3n+2) .avatar { background: #e5484d; }
.people li:nth-child(3n) .avatar { background: #2fae74; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; font-size: 18px; display: grid; }
.icon-btn:hover { background: rgba(229,72,77,.18); color: #ff8a8e; }
.people__marks { display: flex; gap: 6px; margin-top: 3px; }
.people__marks span { color: #4a5584; font-size: 15px; }
.people__marks span.on { color: var(--green); }
.progress-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.progress-row div { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--card-2); }
.progress-row i { font-size: 26px; color: var(--gold); }
.progress-row b { font-family: var(--display); font-size: 22px; }
.progress-row span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Главная */
.home .wrap { max-width: none; padding: 0; }
.home .home-hero { padding-left: 16px; padding-right: 16px; }
.home-hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6vh 0 40px; color: var(--on-sky); }
.home-hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 9vw, 92px); line-height: 1; letter-spacing: -0.03em; }
.home-hero h1 em { font-style: normal; color: var(--coral); }
.home-hero .lead { margin: 14px 0 26px; }
.home-hero__cta { display: grid; justify-items: center; gap: 12px; }
.link-sky { color: var(--on-sky); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
[data-world="day"] .link-sky { text-decoration-color: rgba(15,29,74,.35); }
.worlds { margin-top: 34px; display: grid; justify-items: center; gap: 10px; }
.worlds__title { font-weight: 700; font-size: 14px; color: var(--on-sky-muted); }
.worlds__row { display: flex; align-items: center; gap: 14px; }
.worlds__arrow { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.92); color: #0f1d4a; font-size: 16px; }
.worlds__arrow:hover { background: #fff; }
.world-thumb { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); padding: 0; cursor: pointer; overflow: hidden; background: #000; opacity: .75; transition: all .25s; }
.world-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-thumb.is-active { width: 92px; height: 92px; border-color: #fff; opacity: 1; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.worlds__name { min-width: 90px; padding: 4px 12px; border-radius: 10px; background: rgba(10,18,50,.6); color: #fff; font-weight: 700; font-size: 14px; }
.counter { margin-top: auto; padding-top: 40px; }
.counter__box { display: inline-grid; justify-items: center; padding: 14px 26px; border-radius: 18px; background: var(--card); color: #fff; box-shadow: 0 18px 40px -20px rgba(5,12,40,.7); position: relative; }
.counter__box::before { content: ""; position: absolute; left: -3px; right: -3px; top: -8px; height: 20px; background: radial-gradient(14px 10px at 16px 10px, #fff 97%, transparent 100%), radial-gradient(20px 11px at 40px 9px, #fff 97%, transparent 100%), radial-gradient(14px 10px at calc(100% - 20px) 10px, #fff 97%, transparent 100%); }
.counter__box b { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.counter__box span { font-size: 13px; color: var(--muted); font-weight: 700; }

.how { padding: 50px 16px 60px; background: #0d1a4a; position: relative; z-index: 1; }
.how__in { max-width: 1040px; margin: 0 auto; }
.how h2 { text-align: center; margin: 0 0 34px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); color: #fff; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how .card { text-align: center; margin: 0; padding: 24px 20px; }
.how .card h3 { margin: 6px 0 6px; font-family: var(--display); font-size: 18px; font-weight: 800; color: #fff; }
.how .card p { margin: 0; color: var(--muted); font-size: 15px; }
.how__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.how-cta { text-align: center; margin-top: 34px; }

/* Мастер создания */
.wizard { max-width: 640px; margin: 0 auto; }
.wizard__title { text-align: center; color: var(--on-sky); margin: 26px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 36px); }
.wizard__sub { text-align: center; color: var(--on-sky-muted); font-weight: 600; margin: 0 0 18px; }
.wizard__dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.wizard__dots span { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .3s; }
[data-world="day"] .wizard__dots span { background: rgba(15,29,74,.2); }
.wizard__dots span.on { background: var(--coral) !important; }
.wstep { display: none; }
.wstep.is-on { display: block; animation: rise .4s both; }
.chips-group { margin-top: 18px; }
.chips-group__title { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card-2); color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.chip:hover { border-color: rgba(255,255,255,.35); }
.chip.is-on { background: #fff; color: #0f1d4a; border-color: #fff; }
.choice { display: grid; gap: 10px; margin-top: 8px; }
.choice label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card-2); border: 1.5px solid var(--line); cursor: pointer; }
.choice label:hover { border-color: rgba(255,255,255,.3); }
.choice input { width: 20px; height: 20px; accent-color: var(--coral); flex: none; }
.choice b { display: block; }
.choice small { color: var(--muted); font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--coral); background: #2a2d5e; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.wizard__nav .btn--main { width: auto; }

/* Открытие подарка */
.reveal { display: none; text-align: center; padding: 20px 0 30px; color: var(--on-sky); }
.gift-closed .reveal { display: block; }
.gift-closed #target, .gift-closed .after-reveal { display: none; }
.reveal p { margin: 18px 0 0; font-weight: 800; font-size: 18px; }
.gift { position: relative; width: 220px; height: 220px; margin: 10px auto 0; border: 0; padding: 0; background: none; cursor: pointer; display: block; animation: wobble 2.6s ease-in-out infinite; }
.gift img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .5s .2s; }
.gift.is-open { animation: none; cursor: default; }
.gift.is-open img { transform: scale(1.25) translateY(-20px); opacity: 0; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-5deg); } 78% { transform: rotate(5deg); } 82% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } 90% { transform: rotate(0); } }

.card--target { animation: rise .5s cubic-bezier(.2,.9,.3,1.1) both; }
.target-label { margin: 0; color: var(--muted); font-weight: 700; }
.target { font-size: clamp(36px, 8vw, 54px) !important; color: var(--coral); margin: 2px 0 6px !important; }
.wish { margin: 0; white-space: pre-line; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.wish a { color: var(--gold); font-weight: 700; }
.wish--no { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.card--wait { text-align: center; padding: 30px 26px; }
.card--wait .muted { max-width: 460px; margin: 0 auto 8px; }

/* Статусы и чат */
.steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps-line button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px; color: var(--muted); background: var(--card-2); border: 1.5px solid transparent; transition: all .15s; }
.steps-line button i { font-size: 28px; }
.steps-line button.is-done { color: var(--green); background: rgba(79,209,139,.1); }
.steps-line button.is-current { border-color: var(--green); color: #fff; }
.got-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--green); font-weight: 800; }
.got-note i { font-size: 20px; }
.my-gift { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.santa-state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.santa-state i { font-size: 30px; color: var(--gold); }
.santa-state b { color: #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card-2); margin-bottom: 10px; }
.tabs__btn { flex: 1; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px; color: var(--muted); background: transparent; }
.tabs__btn.is-active { background: var(--card-3); color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--coral); color: var(--on-accent); font-size: 12px; }
.chat-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chat { height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--card-2); margin-bottom: 10px; }
.chat__empty { margin: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.msg { max-width: 78%; align-self: flex-start; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--card-3); white-space: pre-wrap; overflow-wrap: anywhere; animation: popIn .25s both; }
.msg--mine { align-self: flex-end; background: var(--coral); color: var(--on-accent); border-radius: 14px 14px 4px 14px; }
.msg__who { display: block; font-size: 11px; font-weight: 800; opacity: .7; margin-bottom: 2px; }
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; min-width: 0; }
.chat-form .btn--main { width: auto; padding: 12px 18px; }

/* Жеребьевка */
.draw-overlay { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; text-align: center; background: rgba(8,16,48,.96); color: #fff; }
.draw-overlay.is-on { display: grid; animation: fadeIn .25s both; }
.draw-overlay .art { width: 200px; margin-bottom: 10px; animation: shake .5s ease-in-out infinite; }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.draw-reel { height: 76px; overflow: hidden; font-family: var(--display); font-size: clamp(40px, 10vw, 64px); font-weight: 800; line-height: 76px; color: var(--gold); }
.draw-reel span { display: block; animation: reelIn .12s ease-out; }
.draw-caption { margin-top: 10px; font-weight: 700; color: var(--muted); }
@keyframes reelIn { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Просмотр фото */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(6,12,36,.92); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; }
.lightbox__close, .lightbox__nav { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.92); color: #0f1d4a; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }

.rise-in { opacity: 0; animation: rise .55s cubic-bezier(.2,.9,.3,1.05) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .how__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card { padding: 22px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .copy { flex-direction: column; }
  .btn--main { width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .world-thumb { width: 52px; height: 52px; }
  .world-thumb.is-active { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise-in, .people li { opacity: 1; }
}

/* Админка и «Ваши игры» */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.top__btn { background: none; border: 0; font: inherit; cursor: pointer; }
.admin-actions { margin-bottom: 26px; }
.game-row__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.game-row__head h2 { margin: 0 0 4px; }
.game-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.game-row__links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.game-row__links form { margin-left: auto; }
.game-row__links .btn--main { width: auto; padding: 12px 18px; font-size: 15px; }
.my-games { width: 100%; max-width: 520px; margin-top: 28px; text-align: left; }
.my-games .card { padding: 20px; margin: 0; }
.my-games h2 { font-size: 18px; margin-bottom: 10px; }
.my-games a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--card-2); color: #fff; text-decoration: none; font-weight: 700; margin-top: 8px; }
.my-games a:hover { background: var(--card-3); }
.my-games a i { color: var(--gold); }

/* Страницы участников для админа */
.as-list { display: grid; gap: 8px; }
.as-row { display: flex; align-items: center; gap: 8px; }
.as-row__open { flex: 0 0 230px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--card-2); color: #fff; text-decoration: none; font-weight: 800; min-width: 0; }
.as-row__open:hover { background: var(--card-3); }
.as-row__open > i { margin-left: auto; color: var(--gold); font-size: 18px; }
.as-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-row__url { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); padding: 10px 12px; }
.as-row__copy { padding: 10px 12px; }
.alert--admin { display: flex; align-items: center; gap: 10px; background: #3b2f6e; }
.alert--admin i { font-size: 20px; color: var(--gold); }
@media (max-width: 600px) {
  .as-row { flex-wrap: wrap; }
  .as-row__open { flex: 1 1 100%; }
}

/* Скретч-карта */
.reveal__gift { width: 120px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.reveal__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 34px); color: var(--on-sky); }
.reveal .reveal__hint { margin: 6px 0 18px; font-weight: 700; font-size: 16px; color: var(--on-sky-muted); }
.scratch { position: relative; max-width: 460px; height: 190px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 18px 40px -16px rgba(5,12,40,.75); touch-action: none; user-select: none; }
.scratch__under { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px; }
.scratch__under span { color: var(--muted); font-weight: 700; }
.scratch__under b { font-family: var(--display); font-size: clamp(34px, 8vw, 50px); line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.scratch__frost { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .6s, transform .6s; }
.scratch__frost:active { cursor: grabbing; }
.scratch.is-done .scratch__frost { opacity: 0; transform: scale(1.08); pointer-events: none; }
.scratch.is-done { animation: glowPop .7s cubic-bezier(.3,1.5,.5,1); }
.scratch.is-done b { animation: namePop .7s cubic-bezier(.3,1.6,.5,1) .15s both; }
@keyframes glowPop { 40% { transform: scale(1.04); } }
@keyframes namePop { from { transform: scale(.6); } to { transform: none; } }
.reveal__skip { margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: rgba(10,18,50,.55); border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
