/* ==========================================================
   Dorado — объявление об открытии
   Подключается на всех страницах: assets/launch-notice.css + assets/launch-notice.js
   ========================================================== */

.ln-root {
  --ln-accent: var(--accent, #e8b45e);
  --ln-accent-rgb: var(--accent-rgb, 232, 180, 94);
  --ln-ink: var(--accent-ink, #1a1408);
  --ln-text: var(--text, #f3f0e9);
  --ln-muted: var(--muted, #9a968d);
  --ln-line: rgba(255, 255, 255, .09);
  --ln-ease: cubic-bezier(.22, 1, .36, 1);
  --ln-body: var(--font-body, "Manrope", "Segoe UI", system-ui, sans-serif);
  --ln-mono: var(--font-mono, ui-monospace, Consolas, monospace);
}

html.ln-lock, html.ln-lock body { overflow: hidden; }

/* ---------- Оверлей ---------- */
.ln-root {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 32px);
  font-family: var(--ln-body); color: var(--ln-text);
  visibility: hidden; pointer-events: none;
}
.ln-root.is-open { visibility: visible; pointer-events: auto; }
.ln-root [hidden] { display: none; }

.ln-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 5, .78);
  backdrop-filter: blur(10px) saturate(.8); -webkit-backdrop-filter: blur(10px) saturate(.8);
  opacity: 0; transition: opacity .6s var(--ln-var(--ease));
}
.ln-root.is-open .ln-backdrop { opacity: 1; }

/* ---------- Карточка ---------- */
.ln-card {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  width: min(1180px, 100%); max-height: min(640px, calc(100dvh - 24px));
  border-radius: 24px; overflow: hidden;
  background: #131209;
  border: 1px solid var(--ln-line);
  box-shadow: none;
  opacity: 0; transform: translateY(28px) scale(.96);
  transition: opacity .7s var(--ln-var(--ease)), transform .9s var(--ln-var(--ease));
}
.ln-root.is-open .ln-card { opacity: 1; transform: none; }
.ln-root.is-closing .ln-card { opacity: 0; transform: translateY(14px) scale(.98); transition-duration: .35s; }
.ln-root.is-closing .ln-backdrop { opacity: 0; transition-duration: .4s; }

/* золотая рамка-обводка, которая «бежит» по краю */
.ln-card::before { content: none; }
@property --ln-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ln-spin { to { --ln-angle: 360deg; } }

/* ---------- Медиа (слайдшоу из двух кадров) ---------- */
.ln-media { position: relative; min-height: 100%; overflow: hidden; background: #131209; }
.ln-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s var(--ln-var(--ease));
}
.ln-slide.is-active { opacity: 1; }
.ln-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); transform-origin: var(--ln-origin, 50% 50%);
}
.ln-slide[data-focus="squad"] img { --ln-origin: 50% 40%; object-position: 46% 30%; }
.ln-slide[data-focus="bunker"] img { --ln-origin: 45% 55%; object-position: 42% 50%; }
.ln-slide.is-active img { animation: ln-kenburns 9s linear forwards; }
@keyframes ln-kenburns { from { transform: scale(1.08) translate3d(1%, .6%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }

.ln-media::after { /* виньетка + переход в правую колонку */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0,0,0,.24);
}
.ln-grain {
  position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .09;
  background-image: url("noise.svg"); background-size: 180px;
  animation: ln-grain 1.2s steps(6) infinite;
}
@keyframes ln-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* полоски-индикаторы как в «историях» */
.ln-stories { position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px; display: flex; gap: 8px; }
.ln-story {
  position: relative; flex: 1; height: 3px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, .22); overflow: hidden;
}
.ln-story::before { content: ""; position: absolute; inset: -10px 0; } /* увеличенная зона клика */
.ln-story span { position: absolute; inset: 0; background: var(--ln-text); transform: scaleX(0); transform-origin: 0 50%; }
.ln-story.is-done span { transform: scaleX(1); }
.ln-story.is-active span { animation: ln-fill var(--ln-slide-ms, 6500ms) linear forwards; }
.ln-root.is-paused .ln-story.is-active span { animation-play-state: paused; }
@keyframes ln-fill { to { transform: scaleX(1); } }

.ln-caption {
  position: absolute; z-index: 3; left: 22px; bottom: 20px; right: 22px;
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1.333 var(--ln-mono); letter-spacing: 0; color: rgba(255,255,255,.75);
}
.ln-caption__rec { width: 8px; height: 8px; border-radius: 50%; background: #e2725b; box-shadow: 0 0 10px #e2725b; animation: ln-blink 1.6s steps(2) infinite; }
@keyframes ln-blink { 50% { opacity: .15; } }
.ln-caption__text { transition: opacity .4s var(--ease); }

/* ---------- Контент ---------- */
.ln-body {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(24px, 3.5vw, 48px) clamp(24px, 2.5vw, 32px);
  overflow-y: auto;
}

.ln-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 8px 16px 8px 12px; border-radius: 9999px;
  border: 1px solid rgba(var(--ln-accent-rgb), .35); background: rgba(var(--ln-accent-rgb), .08);
  color: var(--ln-accent); font: 600 12px/1.333 var(--ln-body); letter-spacing: .02em;
}
.ln-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ln-accent); }
.ln-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ln-ping 1.8s var(--ln-ease) infinite; }
@keyframes ln-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

.ln-title {
  margin: 0; font: 700 clamp(30px, 4.4vw, 48px)/1 var(--ln-body); letter-spacing: -.035em; text-wrap: balance;
}
.ln-title em { font-style: normal; color: var(--ln-accent); }
@keyframes ln-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.ln-text { margin: -8px 0 0; color: #bdb8ad; font-size: 14px; line-height: 1.429; line-height: 1.6; max-width: 44ch; }

/* дата */
.ln-date {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px;
  padding: 16px 16px; border-radius: 16px;
  background: #181818;
  border: 1px solid var(--ln-line);
}
.ln-date__cal {
  grid-row: span 2; display: grid; place-items: center; width: 58px; height: 62px; border-radius: 12px; overflow: hidden;
  background: #171713; border: 1px solid rgba(var(--ln-accent-rgb), .35);
  text-align: center;
}
.ln-date__cal b { display: block; width: 100%; padding: 4px 0; background: var(--ln-accent); color: var(--ln-ink); font: 700 12px/1.333 var(--ln-mono); letter-spacing: .12em; }
.ln-date__cal span { display: block; font: 700 24px/1.333 var(--ln-body); letter-spacing: -.03em; padding-bottom: 8px; }
.ln-date__label { font: 500 12px/1.333 var(--ln-mono); letter-spacing: 0; color: var(--ln-muted); }
.ln-date__value { font: 700 clamp(18px, 2vw, 20px)/1.4 var(--ln-body); letter-spacing: -.01em; }
.ln-date__value small { font-weight: 500; font-size: .7em; color: var(--ln-muted); margin-left: 8px; }

/* обратный отсчёт */
.ln-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ln-cell {
  position: relative; padding: 12px 8px 12px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid var(--ln-line);
}
.ln-cell__num {
  display: block; font: 600 clamp(24px, 2.6vw, 30px)/1.2 var(--ln-mono); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ln-text);
}
.ln-cell__num.is-tick { animation: ln-tick .5s var(--ln-ease); }
@keyframes ln-tick { from { transform: translateY(-30%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
.ln-cell__lbl { display: block; margin-top: 8px; font: 500 12px/1.333 var(--ln-mono); letter-spacing: 0; color: var(--ln-muted); }
.ln-cell--sec .ln-cell__num { color: var(--ln-accent); }

/* Подарок к открытию */
.ln-promo {
  display: grid; gap: 8px; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(var(--ln-accent-rgb), .35); background: rgba(var(--ln-accent-rgb), .08);
}
.ln-promo h3 { margin: 0; font: 700 16px/1.4 var(--ln-body); }
.ln-promo p { margin: 0; color: var(--ln-text); font: 500 14px/1.6 var(--ln-body); }
.ln-promo code { margin-left: 4px; color: var(--ln-accent); font: 700 16px/1.4 var(--ln-mono); }
.ln-promo kbd {
  padding: 1px 5px; border: 1px solid rgba(var(--ln-accent-rgb), .35); border-radius: 4px;
  font: 700 12px/1.4 var(--ln-mono);
}

/* кнопки */
.ln-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-actions .ln-btn--primary { flex: 1 1 auto; }
.ln-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border-radius: 9999px; cursor: pointer;
  font: 700 14px/1.429 var(--ln-body); text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--ln-text);
  transition: background 0.3s var(--ln-var(--ease)), border-color 0.3s var(--ease), transform 0.5s var(--ln-var(--ease)), box-shadow .3s var(--ln-var(--ease));
}
.ln-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.ln-btn svg { width: 18px; height: 18px; flex: none; }
.ln-btn--primary {
  position: relative; overflow: hidden;
  background: var(--ln-accent); color: var(--ln-ink); border-color: transparent;
  box-shadow: none;
}
.ln-btn--primary:hover { background: #f2c372; border-color: transparent; box-shadow: none; }
.ln-btn--primary::after { content: none; }
@keyframes ln-sweep { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.ln-btn:focus-visible, .ln-close:focus-visible, .ln-story:focus-visible, .ln-pill:focus-visible { outline: 2px solid var(--ln-accent); outline-offset: 3px; }

/* закрыть */
.ln-close {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15,15,13,.7); border: 1px solid rgba(255,255,255,.14); color: var(--ln-text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ln-var(--ease)), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ln-close:hover { transform: rotate(90deg); background: rgba(40,40,36,.9); border-color: rgba(255,255,255,.3); }
.ln-close svg { width: 16px; height: 16px; }

/* поэтапное появление контента */
.ln-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ln-var(--ease)), transform .8s var(--ln-var(--ease)); transition-delay: calc(var(--i, 0) * 70ms + 220ms); }
.ln-root.is-open .ln-reveal { opacity: 1; transform: none; }
.ln-reveal:nth-child(1) { --i: 0; } .ln-reveal:nth-child(2) { --i: 1; } .ln-reveal:nth-child(3) { --i: 2; }
.ln-reveal:nth-child(4) { --i: 3; } .ln-reveal:nth-child(5) { --i: 4; } .ln-reveal:nth-child(6) { --i: 5; } .ln-reveal:nth-child(7) { --i: 6; }

/* ---------- Плашка после закрытия ---------- */
.ln-pill {
  position: fixed; z-index: 1900; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 9999px; cursor: pointer;
  background: rgba(18,18,16,.86); border: 1px solid rgba(var(--accent-rgb, 232, 180, 94), .35);
  color: var(--text, #f3f0e9); font: 600 12px/1.333 var(--font-body, "Manrope", system-ui, sans-serif);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none;
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1), border-color 0.3s var(--ease);
}
.ln-pill.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.ln-pill:hover { border-color: rgba(var(--accent-rgb, 232, 180, 94), .7); }
.ln-pill b { color: var(--accent, #e8b45e); font-family: var(--font-mono, monospace); font-weight: 600; }
.ln-pill .ln-pulse { flex: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .ln-root { padding: 12px; align-items: end; }
  .ln-card {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 24px;
  }
  .ln-media { height: clamp(180px, 30vh, 280px); min-height: 0; }
  .ln-media::after { background: rgba(0,0,0,.24); }
  .ln-body { margin-top: -40px; padding: 0 24px 24px; gap: 16px; overflow: visible; }
  .ln-caption { bottom: 46px; }
  .ln-text { max-width: none; }
}
@media (max-width: 420px) {
  .ln-actions .ln-btn { flex: 1 1 100%; }
  .ln-count { gap: 8px; }
  .ln-cell { padding: 12px 4px 8px; }
  .ln-cell__lbl { font-size: 12px; line-height: 1.333; letter-spacing: .06em; }
  .ln-pill { left: auto; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .ln-body { gap: 16px; padding-block: 24px; }
  .ln-title { font-size: 36px; line-height: 1.111; }
}

@media (prefers-reduced-motion: reduce) {
  .ln-root *, .ln-root *::before, .ln-root *::after, .ln-pill { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ln-slide img { transform: none; }
}

.ln-card:focus { outline: none; }
.ln-root svg.ph, .dz .steam-login svg.ph { fill: currentColor; stroke: none; }
