/*
VOICE: hushed, theatrical, intimate — a reading by candlelight.
IDEA: an astrologer's brass astrolabe and a velvet reading table; the page turns like an instrument.
PICTURE: Morgana in motion, smoke drifting through the page, a slowly turning astrolabe.
COLOUR and TYPE: abyss green-black, velvet emerald, brass gold, candle amber, wax wine; Playfair Display italic + Manrope.
LAYOUT: full-bleed cinematic hero, then alternating altars, a running incantation, arched spread doors, a gilded pact.
*/
:root {
  --ink: #050b09; --velvet: #0c231c; --emerald: #1d5844; --gold: #cfae63; --gold-hi: #f0dca6;
  --candle: #ffad4d; --parch: #ece2cb; --wine: #7a2030; --muted: #93a59b;
  --display: 'Playfair Display', 'Noto Serif Georgian', Georgia, serif;
  --ui: 'Manrope', 'Noto Sans Georgian', system-ui, sans-serif;
  --mx: 50vw; --my: 40vh;
}
html:lang(ka) { --display: 'Noto Serif Georgian', 'Playfair Display', serif; --ui: 'Noto Sans Georgian', 'Manrope', sans-serif; }
* { box-sizing: border-box; min-width: 0; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--parch); font: 17px/1.65 var(--ui); background: var(--ink); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0 0 .35em; color: var(--gold-hi); text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; font-style: italic; letter-spacing: -.01em; }
html:lang(ka) h2 { font-style: normal; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 4px; }
main, .foot { position: relative; z-index: 2; }

/* Дым, зерно, свет */
#smoke { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .55; mix-blend-mode: screen; }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.candle-light { position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: radial-gradient(circle 380px at var(--mx) var(--my), rgba(255, 173, 77, .09), rgba(5, 11, 9, 0) 42%, rgba(2, 6, 5, .5) 100%); }

/* Порог */
.threshold { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #0b1d17 0, #020605 72%); transition: opacity 1.6s ease, visibility 1.6s, transform 1.6s; }
.threshold.gone { opacity: 0; visibility: hidden; transform: scale(1.06); }
.th-astro { position: absolute; width: min(120vh, 120vw); color: var(--gold); opacity: .16; animation: spin 140s linear infinite; }
.th-inner { position: relative; text-align: center; max-width: 520px; }
.flame-btn { position: relative; width: 156px; height: 156px; border: 0; background: radial-gradient(circle, rgba(255, 173, 77, .06), transparent 70%); cursor: pointer; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.flame-btn:disabled { cursor: not-allowed; opacity: .45; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(207, 174, 99, .28); stroke-width: 1; }
.ring-fg { fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; filter: drop-shadow(0 0 6px var(--candle)); }
.candle { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 22px; height: 44px; }
.wax-body { position: absolute; bottom: 0; left: 0; right: 0; height: 30px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #cdbf9f, #f3ead3 45%, #bfae88); }
.flame { position: absolute; left: 50%; bottom: 28px; width: 16px; height: 30px; margin-left: -8px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe8 0, #ffd57d 28%, var(--candle) 55%, rgba(255, 110, 40, 0) 76%);
  transform-origin: 50% 100%; transform: scale(.12); opacity: .5; transition: transform .7s, opacity .7s; }
.lit .flame { transform: scale(1); opacity: 1; animation: flicker 2.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255, 173, 77, .9)); }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-1deg); } 30% { transform: scale(1.07, .95) rotate(1.6deg); } 60% { transform: scale(.96, 1.05) rotate(-2deg); } }
.th-title { font: italic 32px/1.2 var(--display); color: var(--gold-hi); margin: 22px auto 6px; }
.th-sub { color: var(--muted); margin: 0 auto 28px; }
.consent { display: flex; gap: 12px; text-align: left; font-size: 14px; color: var(--muted); align-items: flex-start; cursor: pointer; margin: 0 auto; }
.consent input { accent-color: var(--gold); width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* Шапка */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 55; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px); transition: background .4s; }
.top.solid { background: rgba(5, 11, 9, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(207, 174, 99, .12); }
.mark { display: flex; align-items: center; gap: 10px; font: italic 26px var(--display); color: var(--gold-hi); text-decoration: none; }
.mark svg { width: 22px; height: 22px; fill: var(--gold-hi); }
.top-nav { display: flex; gap: 6px; align-items: center; }
.top-nav > a { color: var(--parch); text-decoration: none; font-size: 14px; padding: 8px 12px; opacity: .8; }
.top-nav > a:hover { opacity: 1; color: var(--gold-hi); }
.chip, select { font: 500 14px var(--ui); color: var(--parch); background: rgba(12, 35, 28, .5); border: 1px solid rgba(207, 174, 99, .3); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 38px; }
select { appearance: none; -webkit-appearance: none; }
.chip-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Кнопки */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font: 600 15px var(--ui); letter-spacing: .01em; color: #1a1206; text-decoration: none;
  background: linear-gradient(180deg, #f3e1ac, #cfae63 55%, #a8843e); border: 0; border-radius: 999px; padding: 15px 30px; min-height: 48px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .35) inset, 0 10px 30px rgba(255, 173, 77, .18); transition: transform .3s, box-shadow .3s; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 16px 44px rgba(255, 173, 77, .32); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-big { font-size: 17px; padding: 18px 44px; }
.link-arrow { color: var(--parch); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 12px; }
.link-arrow::after { content: ''; width: 34px; height: 1px; background: var(--gold); transition: width .3s; }
.link-arrow:hover::after { width: 54px; }

/* Герой */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px clamp(18px, 6vw, 96px) 80px; overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: min(62vw, 980px); z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 98%); mask-image: linear-gradient(to left, #000 50%, transparent 98%); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.92) contrast(1.06) brightness(.9); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0, transparent 30%), radial-gradient(ellipse at 60% 35%, transparent 35%, rgba(5, 11, 9, .55) 100%); }
.astro { position: absolute; left: -12vw; top: 50%; width: min(110vh, 900px); translate: 0 -50%; color: var(--gold); opacity: .22; animation: spin 180s linear infinite; z-index: 0; }
@keyframes spin { to { rotate: 360deg; } }
.ring-text { font: 500 13px var(--ui); letter-spacing: .5em; }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gold-hi); background: rgba(12, 35, 28, .55); border: 1px solid rgba(207, 174, 99, .25); padding: 6px 14px 6px 8px; border-radius: 999px; backdrop-filter: blur(6px); margin: 0; }
.hero-kicker svg { width: 22px; height: 22px; flex: none; }
.hero h1 { font-size: clamp(52px, 8.4vw, 128px); line-height: .95; font-style: italic; letter-spacing: -.025em; margin: 22px 0 26px; }
html:lang(ka) .hero h1 { font-style: normal; font-size: clamp(38px, 5.4vw, 78px); line-height: 1.12; letter-spacing: 0; }
.split .w { display: inline-block; white-space: pre; }
.split.go .w { animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(10px); } }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; color: var(--parch); }
.hero-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 60px; background: linear-gradient(rgba(207, 174, 99, 0), rgba(207, 174, 99, .7)); overflow: hidden; z-index: 2; }
.scroll-cue span { position: absolute; left: -1px; width: 3px; height: 14px; background: var(--gold-hi); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { from { top: -14px; } to { top: 60px; } }

/* Полосы */
.band { position: relative; padding: clamp(80px, 11vw, 160px) clamp(18px, 6vw, 96px); max-width: 1320px; margin: 0 auto; }
.sec-head { max-width: 640px; margin-bottom: 48px; }

/* Карта дня — алтарь с сигилом */
.altar-day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.sigil-wrap { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.sigil { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .45; animation: spin 90s linear infinite reverse; }
.sigil-wrap::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 173, 77, .2), transparent 65%); filter: blur(10px); }
.altar-day .card { width: clamp(170px, 20vw, 250px); }
.day-text .reading { margin: 10px 0 26px; }

/* Да / нет */
.oracle { text-align: center; }
.oracle-head { max-width: 640px; margin: 0 auto 30px; }
.oracle-head p { margin-inline: auto; }
.ask-line { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; padding: 6px 6px 6px 22px; border-radius: 999px; background: rgba(12, 35, 28, .55); border: 1px solid rgba(207, 174, 99, .3); backdrop-filter: blur(8px); }
.ask-line input { flex: 1; font: 16px var(--ui); color: var(--parch); background: none; border: 0; outline: none; min-width: 0; }
.ask-line input::placeholder { color: rgba(147, 165, 155, .8); }
.yn-stage { margin-top: 40px; display: grid; justify-items: center; gap: 20px; }
.yn-stage .reading { text-align: center; }
.yn-stage .reading p { margin-inline: auto; }

/* Бегущая строка */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid rgba(207, 174, 99, .18); padding: 18px 0; }
.mq-track { display: flex; width: max-content; animation: mq 50s linear infinite; }
.mq-track span { font: italic clamp(34px, 5vw, 66px)/1.1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(207, 174, 99, .55); padding: 0 .55em; white-space: nowrap; display: inline-flex; align-items: center; gap: 1.1em; }
.mq-track span::after { content: ''; width: .32em; height: .32em; background: var(--candle); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Расклады — арочные двери */
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.sp { position: relative; aspect-ratio: 3 / 4.4; border: 1px solid rgba(207, 174, 99, .35); border-radius: 999px 999px 16px 16px; overflow: hidden; cursor: pointer; text-align: center;
  color: var(--parch); font: inherit; padding: 0; background: linear-gradient(180deg, rgba(29, 88, 68, .45), rgba(12, 35, 28, .85) 60%), var(--velvet); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .4s; }
.sp:hover, .sp:focus-visible { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 173, 77, .15); }
.sp .sp-art { position: absolute; left: 16%; right: 16%; top: 12%; color: var(--gold); opacity: .5; transition: opacity .4s; }
.sp .sp-art svg { width: 100%; height: auto; display: block; }
.sp:hover .sp-art { opacity: .9; }
.sp .sp-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 24px; background: linear-gradient(transparent, rgba(5, 11, 9, .9) 40%); }
.sp strong { display: block; font: italic 400 clamp(22px, 2.2vw, 30px)/1.1 var(--display); color: var(--gold-hi); margin-bottom: 6px; }
html:lang(ka) .sp strong { font-style: normal; font-size: clamp(18px, 1.8vw, 24px); }
.sp .sp-d { font-size: 13px; color: var(--muted); display: block; }
.sp .wax { position: absolute; top: 9%; left: 50%; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: italic 20px var(--display); color: rgba(240, 220, 166, .85);
  background: radial-gradient(circle at 35% 30%, #b0465a, var(--wine) 55%, #320910); box-shadow: 0 4px 14px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(0, 0, 0, .15); z-index: 2; }
.sp .free-tag { position: absolute; top: 9%; left: 50%; translate: -50% 0; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--candle); border-radius: 999px; padding: 4px 12px; z-index: 2; white-space: nowrap; }
.table { margin-top: 70px; overflow: hidden; }
.pick-hint { text-align: center; margin: 0 auto 10px; color: var(--muted); }
.fan { position: relative; height: 300px; margin: 0 auto 30px; max-width: 980px; }
.fan .fc { position: absolute; left: 50%; bottom: 20px; width: 96px; aspect-ratio: 3 / 5; margin-left: -48px; transform-origin: 50% 270%; cursor: pointer; transition: transform .35s ease, opacity .5s; color: var(--gold); border: 0; padding: 0; background: none; }
.fan .fc svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.fan .fc:hover, .fan .fc:focus-visible { --lift: -22px; }
.fan .fc.taken { opacity: 0; pointer-events: none; }
.spread-slots .card { width: 140px; }

/* Карты */
.slot-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.slot-label { font: italic 16px var(--display); color: var(--muted); }
.card { width: 180px; aspect-ratio: 3 / 5; perspective: 1100px; position: relative; color: var(--gold); --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; }
.card .tilt { position: absolute; inset: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.card.flipped .inner { transform: rotateY(180deg); }
.card .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .65)); }
.card .face { transform: rotateY(180deg); }
.card .face::after { content: ''; position: absolute; inset: 5px; border-radius: 10px; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--px) var(--py), rgba(255, 240, 200, .5), transparent 42%), linear-gradient(115deg, transparent 30%, rgba(255, 173, 77, .32) 45%, rgba(120, 220, 190, .22) 55%, transparent 70%); background-size: 100% 100%, 240% 240%; background-position: 0 0, var(--px) var(--py); }
.card.flipped:hover .face::after { opacity: 1; }
.card.reversed .face svg { transform: rotate(180deg); }
.card svg { width: 100%; height: 100%; display: block; }
.card.flipped .side.face { filter: drop-shadow(0 0 30px rgba(255, 173, 77, .3)) drop-shadow(0 22px 30px rgba(0, 0, 0, .65)); }
.c-num { font: 500 22px var(--display); }
.c-name { font-family: var(--display); }
.card.arrive { animation: arrive 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes arrive { from { transform: translateY(-50px) scale(.9); opacity: 0; } }

/* Чтение */
.reading:empty { display: none; }
.reading.wide { max-width: 760px; margin: 40px auto 0; }
.r-card { margin: 0 0 20px; }
.r-card h3 { font-size: 26px; font-style: italic; margin: 0 0 4px; }
html:lang(ka) .r-card h3 { font-style: normal; font-size: 21px; }
.r-card .ori { color: var(--candle); font-size: 13px; font-weight: 600; margin-right: 6px; }
.verdict { font: italic clamp(46px, 6vw, 84px)/1 var(--display); color: var(--candle); margin: 0 0 14px; text-shadow: 0 0 40px rgba(255, 173, 77, .4); }
html:lang(ka) .verdict { font-style: normal; font-size: clamp(34px, 4vw, 56px); }
@keyframes reveal { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }

/* Спросить */
.ask { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.ask-media { margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; border: 1px solid rgba(207, 174, 99, .35); box-shadow: 0 0 0 14px rgba(12, 35, 28, .5), 0 0 0 15px rgba(207, 174, 99, .18), 0 0 120px rgba(120, 220, 190, .12); }
.ask-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.ask-form textarea { display: block; width: 100%; font: 16px/1.6 var(--ui); color: var(--parch); background: rgba(12, 35, 28, .5); border: 1px solid rgba(207, 174, 99, .3); border-radius: 18px; padding: 18px 20px; margin: 6px 0 16px; resize: vertical; backdrop-filter: blur(8px); }
.ask-form textarea::placeholder { color: rgba(147, 165, 155, .8); }

/* Договор */
.pact { display: grid; place-items: center; }
.pact-card { position: relative; max-width: 640px; text-align: center; padding: 70px clamp(24px, 5vw, 64px) 50px; border-radius: 28px; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 173, 77, .1), transparent 60%), linear-gradient(180deg, #0f2a22, #071511); }
.foil { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), rgba(207, 174, 99, .15), var(--gold-hi), rgba(207, 174, 99, .15) 30%, rgba(207, 174, 99, .15) 60%, var(--candle), rgba(207, 174, 99, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: foil 8s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes foil { to { --a: 360deg; } }
.pact-card p { margin-inline: auto; }
.seal { width: 76px; height: 76px; margin: -108px auto 26px; border-radius: 50%; display: grid; place-items: center; font: italic 34px var(--display); color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #b0465a, var(--wine) 55%, #2b070d); box-shadow: 0 10px 30px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(0, 0, 0, .18); }
.pact-card ul { list-style: none; padding: 0; margin: 10px auto 30px; text-align: left; max-width: 460px; }
.pact-card li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid rgba(207, 174, 99, .14); }
.pact-card li::before { content: ''; position: absolute; left: 6px; top: 18px; width: 12px; height: 12px; background: var(--candle); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.price { margin-bottom: 22px; color: var(--muted); }
.price strong { font: 400 64px/1 var(--display); color: var(--gold-hi); margin-right: 6px; }

.foot { text-align: center; padding: 50px 20px 60px; color: var(--muted); font-size: 13px; border-top: 1px solid rgba(207, 174, 99, .14); }
.foot p { margin: 0 auto 10px; }
.foot-links { display: flex; gap: 22px; justify-content: center; }

@media (max-width: 980px) {
  .top-nav > a { display: none; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { align-items: end; padding-bottom: 90px; }
  .hero-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-media::after { background: linear-gradient(to top, var(--ink) 8%, rgba(5, 11, 9, .6) 45%, rgba(5, 11, 9, .1) 75%); }
  .astro { left: 50%; top: 32%; translate: -50% -50%; width: 140vw; opacity: .16; }
  .altar-day, .ask { grid-template-columns: 1fr; }
  .ask-media { max-width: 320px; margin: 0 auto; }
  .card { width: 150px; }
  .spread-slots { gap: 10px; }
  .spread-slots .card { width: 96px; }
  .fan { height: 220px; }
  .fan .fc { width: 68px; margin-left: -34px; }
  #soundBtn { display: none; }
  .candle-light { background: radial-gradient(circle 260px at var(--mx) var(--my), rgba(255, 173, 77, .07), rgba(5, 11, 9, 0) 42%, rgba(2, 6, 5, .35) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #smoke { display: none; }
}
.slot-label { text-align: center; }
.spread-slots .slot { width: 140px; }
@media (max-width: 760px) {
  .spread-slots .slot { width: 96px; }
  .slot-label { font-size: 13px; line-height: 1.25; }
  .sp .free-tag, .sp .wax { top: 16%; }
  .sp .free-tag { font-size: 11px; padding: 3px 9px; white-space: normal; width: max-content; max-width: 80%; line-height: 1.3; }
  .sp .sp-art { top: 30%; left: 26%; right: 26%; }
  .sp .sp-d { font-size: 12px; }
}
/* Окно входа и кабинета */
.auth { border: 0; padding: 0; background: none; color: var(--parch); max-width: 440px; width: calc(100% - 32px); }
.auth::backdrop { background: rgba(2, 6, 5, .75); backdrop-filter: blur(6px); }
.auth-form, .acct { position: relative; display: grid; gap: 14px; padding: 40px 32px 30px; border-radius: 22px; border: 1px solid rgba(207, 174, 99, .4); background: linear-gradient(180deg, #0f2a22, #071511); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.auth h2 { font-size: 38px; margin: 0; }
.auth label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.auth input { font: 16px var(--ui); color: var(--parch); background: rgba(5, 11, 9, .6); border: 1px solid rgba(207, 174, 99, .3); border-radius: 12px; padding: 12px 14px; min-height: 46px; }
.auth input:focus { outline: 2px solid var(--candle); outline-offset: 1px; }
.auth .x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.link-btn { background: none; border: 0; color: var(--gold); font: 14px var(--ui); cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.err { color: #f08a7a; margin: 0; min-height: 1em; }
.auth.mode-in .name-row { display: none; }
.answer { white-space: pre-wrap; font-size: 17px; line-height: 1.75; }
.answer::first-letter { font: italic 3.2em/0.8 var(--display); color: var(--gold-hi); float: left; margin: 6px 8px 0 0; }
.thinking { font: italic 20px var(--display); color: var(--gold-hi); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.notice { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; max-width: min(560px, calc(100% - 32px)); padding: 14px 20px; border-radius: 14px; background: rgba(12, 35, 28, .95); border: 1px solid var(--gold); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
