/* The sign page (docs/1-specs/43-sign-page.md): the look of the public «Мирные огоньки» site. Tokens are the team dashboard pack's
   (design/team-dashboard-pack/tokens.css): warm lamp light on a near-black violet night, cream text, glass cards with an inset ring.
   Glow replaces shadow. A ring is always an inset box-shadow or a full border, never one side of a rounded box. */

@font-face {
  font-family: "MO2027";
  src: url("/fonts/MirnieOgonki2027-Regular-1.11.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #0B0614;
  --night: radial-gradient(120% 90% at 78% 30%, #261D3D 0%, #1B1032 38%, #12112C 62%, #0B0614 100%);
  --cream: #FCF5DC;
  --cream-2: rgba(252, 245, 220, .72);
  --cream-3: rgba(252, 245, 220, .5);
  --amber: #FFC466;
  --lamp: #FFE6B3;
  --lamp-core: #FFF8E6;
  --lamp-warm: #FFD08A;
  --focus: #FFF1D2;
  --glass: rgba(16, 8, 24, .5);
  --glass-hover: rgba(36, 20, 44, .62);
  --glass-dense: rgba(18, 10, 26, .78);
  --ring: rgba(255, 228, 185, .16);
  --wine: #4A0C1C;
  --f-sans: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-lamp: "MO2027", "Onest", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --text-glow: 0 0 1px #FFF8E6, 0 0 6px rgba(255, 196, 102, .9), 0 0 16px rgba(255, 150, 70, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--ink); color: var(--cream);
  font: 400 16px/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

.sky { position: fixed; inset: 0; z-index: -1; background: var(--night); }
/* A few sparks in the night: dots of light, no images. */
.sky::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(255, 226, 176, .9) 0 1px, transparent 1.6px) 12% 24% / 240px 260px,
    radial-gradient(circle, rgba(255, 208, 138, .7) 0 1px, transparent 1.6px) 63% 41% / 310px 280px,
    radial-gradient(circle, rgba(255, 241, 210, .6) 0 1.2px, transparent 1.8px) 38% 72% / 380px 340px,
    radial-gradient(circle, rgba(255, 196, 102, .55) 0 1px, transparent 1.6px) 86% 88% / 290px 320px;
  opacity: .55; animation: spark 6s ease-in-out infinite;
}
@keyframes spark { 50% { opacity: .25; } }

.garland { position: absolute; top: 0; left: 0; width: 100%; height: 90px; pointer-events: none; overflow: hidden; }
.gl { animation: tw 3.2s ease-in-out infinite; }
.gl:nth-child(3n + 2) { animation-delay: -1.1s; }
.gl:nth-child(3n) { animation-delay: -2.2s; }
@keyframes tw { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }

.wrap { position: relative; max-width: 1040px; margin: 0 auto; padding: 78px max(16px, 5vw) 120px; }

.brand { margin: 0 0 28px; }
.lamp { font-family: var(--f-lamp); font-weight: 400; color: var(--lamp); text-shadow: var(--text-glow); font-size: 26px; line-height: 1.2; word-spacing: .2em; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { margin: 0 0 12px; font: 500 clamp(32px, 7.4vw, 60px)/1.02 var(--f-sans); letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 0 0 36px; max-width: 34em; color: var(--cream-2); font-size: clamp(16px, 2vw, 19px); text-wrap: balance; }

.cards { margin: 0; padding: 0; border: 0; min-width: 0; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0;
  font: 500 12px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3);
}
.kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lamp-warm); box-shadow: 0 0 8px 2px rgba(255, 190, 100, .55); }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; gap: 18px; } }

.card {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; align-items: start;
  min-height: 132px; padding: 22px 56px 22px 22px; border-radius: 22px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--ring);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  cursor: pointer; transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { background: var(--glass-hover); }
.card:has(.pick:checked) {
  background: rgba(44, 24, 48, .66);
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 150, .8), 0 0 0 1px rgba(255, 200, 120, .22), 0 0 44px rgba(255, 170, 90, .26);
}
.card:has(.pick:focus-visible) { outline: 2px solid var(--focus); outline-offset: 5px; }
.pick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }

.num { grid-row: 1 / span 2; font: 400 52px/.9 var(--f-lamp); color: var(--lamp); text-shadow: var(--text-glow); text-align: center; padding-top: 4px; }
.body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t { font: 600 18px/1.25 var(--f-sans); color: var(--cream); text-wrap: balance; }
.h { font: 400 15px/1.45 var(--f-sans); color: var(--cream-2); }

/* The radio is a lamp: dark glass when unlit, a lit bulb when picked. */
.bulb { position: absolute; top: 24px; right: 22px; width: 16px; height: 16px; border-radius: 50%; background: rgba(252, 245, 220, .08); box-shadow: inset 0 0 0 1.5px rgba(252, 245, 220, .38); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.card:has(.pick:checked) .bulb { background: radial-gradient(circle, var(--lamp-core) 0 30%, var(--lamp) 60%, var(--amber) 100%); box-shadow: 0 0 0 4px rgba(255, 190, 110, .25), 0 0 18px rgba(255, 170, 90, .85); }

.card.soon { cursor: default; opacity: .62; }
.card.soon:hover { background: var(--glass); }
.card.soon .num { color: var(--cream-3); text-shadow: none; }
.tag {
  position: absolute; top: 20px; right: 18px; padding: 5px 11px; border-radius: 999px;
  font: 500 11px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2);
  background: rgba(252, 245, 220, .08); box-shadow: inset 0 0 0 1px var(--ring);
}

.note { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; max-width: 46em; color: var(--cream-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.note .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--lamp-warm); }

/* Once a card is picked the panel with the button stays at the bottom of the screen, so the button is never below the fold on a phone. */
.go {
  position: relative; z-index: 2; margin: 28px auto 0; max-width: 560px; padding: 18px 20px 16px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--glass-dense); box-shadow: inset 0 0 0 1px var(--ring);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.go.live { position: sticky; bottom: 14px; }
.sel { margin: 0; font: 500 13px/1.4 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); text-wrap: balance; }
.sel.on { color: var(--lamp); }
.next { margin: 0; font-size: 14px; color: var(--cream-3); text-wrap: balance; }

.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; height: 60px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 13.5px/1 var(--f-sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--wine); background: linear-gradient(180deg, #FFF1D3, #F6D6A0);
  box-shadow: 0 0 0 1px rgba(255, 240, 210, .9), 0 0 32px 4px rgba(255, 186, 100, .5), 0 0 90px 18px rgba(255, 150, 70, .2);
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-main .ic { width: 20px; height: 20px; flex: none; }
.btn-main:hover { transform: translateY(-1px); }
.btn-main:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.btn-main[aria-disabled="true"] { opacity: .38; box-shadow: 0 0 0 1px rgba(255, 240, 210, .5); cursor: not-allowed; transform: none; }

.empty { margin: 0; color: var(--cream-2); font-size: 18px; }
.plain { margin: 24px 0 0; padding-left: 20px; }
.plain a { color: var(--lamp); }

@media (max-width: 719px) {
  .wrap { padding-top: 70px; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
