.landing {
  position: relative;
  overflow: hidden;
  background: #020711 url('/assets/landing/perekopy_landing_bg_v3.jpg') center / cover no-repeat;
}
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 211, 116, .13), transparent 26rem),
    linear-gradient(90deg, rgba(2, 7, 12, .30), transparent 32%, transparent 70%, rgba(2, 7, 12, .26)),
    linear-gradient(180deg, rgba(2, 7, 12, .12), rgba(2, 7, 12, .18) 52%, rgba(2, 7, 12, .38));
  pointer-events: none;
}
.landing-logo {
  position: absolute;
  top: clamp(18px, 3vh, 34px);
  left: 50%;
  z-index: 2;
  width: min(690px, 54vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .48));
}
.landing-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.landing-logo span {
  display: block;
  margin-top: -18px;
  color: #fff0c8;
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 900;
  text-shadow: 0 7px 18px rgba(0, 0, 0, .55);
}
.landing-card {
  position: absolute;
  right: 12vw;
  bottom: 18vh;
  z-index: 3;
  width: min(670px, calc(100vw - 44px));
  padding: clamp(30px, 2.7vw, 42px);
  border: 1px solid rgba(255, 212, 111, .46);
  border-radius: 32px;
  background: radial-gradient(circle at 82% 8%, rgba(255, 213, 118, .18), transparent 13rem), linear-gradient(145deg, rgba(13, 24, 31, .91), rgba(3, 10, 17, .95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(-10vh);
}
.landing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.landing-actions .button { min-height: 62px; font-size: 19px; }

@media (max-width: 1180px) {
  .landing-logo { width: min(620px, 74vw); }
  .landing-card { right: 6vw; bottom: 14vh; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .landing { min-height: 100svh; }
  .landing-logo { width: min(520px, 88vw); top: 22px; }
  .landing-logo span { margin-top: -10px; }
  .landing-card {
    left: 16px;
    right: 16px;
    bottom: 8vh;
    width: auto;
    transform: none;
    padding: 24px;
  }
  .landing-fields, .landing-actions { grid-template-columns: 1fr; }
}

/* === Панель входа со скифской рамой — компакт, ниже и меньше (2026-06-12) === */
.landing-card {
  position: absolute;
  right: 9vw; bottom: 6vh; transform: none;
  width: min(420px, calc(100vw - 44px));
  border: none; border-radius: 0; box-shadow: none;
  background: url('/assets/ui_set/ui_login_panel.png') center / 100% 100% no-repeat;
  padding: 48px 64px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.55));
}
.landing-fields { grid-template-columns: 1fr; gap: 6px; }
.landing-fields label { font-size: 10px; letter-spacing: .08em; color: #d4c49a; }
.landing-fields input {
  padding: 10px 40px; font-size: 13px; color: #ffffff; text-align: center;
  border: none; border-radius: 0;
  background: url('/assets/ui_set/ui5_input.png?v=3') center / 100% 100% no-repeat !important;
}
.landing-fields input::placeholder { color: #8fa3b8; }

/* Состояния полей: наведение, фокус, автозаполнение */
.landing-fields input { transition: filter .15s ease, transform .15s ease; caret-color: #ffd46f; }
.landing-fields input:hover { filter: drop-shadow(0 0 7px rgba(255,212,111,.3)) brightness(1.06); }
.landing-fields input:focus {
  outline: none;
  filter: drop-shadow(0 0 12px rgba(255,212,111,.55)) brightness(1.1);
}
.landing-fields input {
  clip-path: polygon(0% 50%, 8.5% 3%, 91.5% 3%, 100% 50%, 91.5% 97%, 8.5% 97%);
}
.landing-fields input:-webkit-autofill,
.landing-fields input:-webkit-autofill:hover,
.landing-fields input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #131f36 inset;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffd46f;
  transition: background-color 99999s ease-in-out 0s;
  border-radius: 0;
}

/* Кнопки: наведение и нажатие */
.landing-actions .button, .about-btn { transition: transform .12s ease, filter .15s ease; }
.landing-actions .button-gold:hover { transform: translateY(-1px); filter: brightness(1.08) drop-shadow(0 0 16px rgba(255,212,111,.55)); }
.landing-actions .button-ghost:hover { transform: translateY(-1px); filter: saturate(.7) brightness(1.02) drop-shadow(0 0 14px rgba(255,212,111,.4)); }
.landing-actions .button:active, .about-btn:active { transform: translateY(1px) scale(.97); filter: brightness(.9); }
.landing-actions { margin-top: 8px; gap: 9px; }
.landing-actions .button {
  min-height: 44px; font-size: 14.5px;
  border: none; border-radius: 0;
  font-family: var(--font-title, 'Alegreya SC', Georgia, serif); font-weight: 700; letter-spacing: .05em;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.landing-actions .button-gold {
  background: url('/assets/ui_set/ui5_btn_small.png?v=3') center / 100% 100% no-repeat !important;
  color: #2e2008; box-shadow: none;
}
.landing-actions .button-ghost {
  background: url('/assets/ui_set/ui5_btn_small.png?v=3') center / 100% 100% no-repeat !important;
  color: #3a2a10; box-shadow: none; border: none;
  filter: saturate(.45) brightness(.92) drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.landing-actions .button { min-height: 48px; }
.landing-actions .button:hover { transform: translateY(-1px); filter: drop-shadow(0 0 14px rgba(255,212,111,.4)); }
@media (max-width: 1180px) {
  .landing-card { right: 5vw; bottom: 5vh; }
}

/* Лого: только слово, без подписи и разделителя */
.landing-logo span { display: none; }
.landing-logo::after { display: none; }
.landing-logo { width: min(560px, 46vw); pointer-events: auto; }

/* Кнопка и окно «Об игре» */
.about-btn {
  position: fixed; top: 16px; right: 24px; z-index: 40;
  margin: 0; display: block; padding: 12px 32px 14px;
  border: none; border-radius: 0;
  background: url('/assets/ui_set/ui5_btn_small.png?v=3') center / 100% 100% no-repeat;
  color: #3a2a10; font-family: var(--font-title, 'Alegreya SC', Georgia, serif);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; cursor: pointer;
  filter: saturate(.45) brightness(.92) drop-shadow(0 4px 10px rgba(0,0,0,.45));
  transition: transform .12s ease, filter .12s ease;
}
.about-btn:hover { transform: translateY(-1px); filter: saturate(.7) brightness(1) drop-shadow(0 0 14px rgba(255,212,111,.4)); }
.about-panel {
  position: fixed; inset: 0; z-index: 50; display: none;
  place-items: center; padding: 20px;
  background: rgba(2, 7, 17, .7); backdrop-filter: blur(6px);
}
body.about-open .about-panel { display: grid; }
.about-card {
  position: relative; width: min(520px, 94vw);
  border: 1.5px solid rgba(214, 168, 84, .75); border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 28, 48, .98), rgba(6, 14, 26, .97));
  padding: 26px 30px 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.about-card h2 { margin: 0 0 10px; color: #ffd46f; font-family: var(--font-title, Georgia, serif); font-size: 24px; letter-spacing: .04em; }
.about-card p { margin: 0 0 10px; color: #e2d6b8; font-size: 13.5px; line-height: 1.5; }
.about-card .about-note { color: #9fb2c8; font-size: 11.5px; }
.about-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px;
  border: 1px solid rgba(214,168,84,.5); border-radius: 50%;
  background: rgba(5,12,22,.6); color: #ffe9b0; font-size: 15px; cursor: pointer;
}
.landing-logo::after {
  content: ""; display: block; height: 30px; margin: 2px auto 0; width: 72%;
  background: url('/assets/ui_set/ui_divider_gold.png') center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}

/* ============================================================
   ЗОЛОТО-ПЕСОЧНЫЙ КОМПЛЕКТ ui6 на лендинге (12.06)
   ============================================================ */
.landing-card label, .landing-card input, .about-card p {
  font-family: var(--font-body, 'Alegreya', Georgia, serif);
}
.landing-actions .button, .about-btn {
  font-family: var(--font-title, 'Alegreya SC', Georgia, serif);
}
/* Поля — тёплое поле ввода с ромбами */
.landing-fields input {
  background: url('/assets/ui_set/ui6_input.png?v=3') center / 100% 100% no-repeat !important;
  color: #ffeec9; padding: 10px 44px;
  clip-path: polygon(0% 50%, 6% 4%, 94% 4%, 100% 50%, 94% 96%, 6% 96%);
}
.landing-fields input::placeholder { color: #b59a6b; }
.landing-fields input:-webkit-autofill,
.landing-fields input:-webkit-autofill:hover,
.landing-fields input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #4a3a22 inset;
  -webkit-text-fill-color: #ffeec9;
}
/* Войти — золотая; Регистрация — песочная (без обесцвечивания) */
.landing-actions .button-gold {
  background: url('/assets/ui_set/ui6_btn_gold.png?v=3') center / 100% 100% no-repeat !important;
  color: #2e2008; text-shadow: 0 1px 0 rgba(255,240,190,.45); font-weight: 700;
}
.landing-actions .button-ghost {
  background: url('/assets/ui_set/ui6_btn_sand.png?v=3') center / 100% 100% no-repeat !important;
  color: #3a2a10; text-shadow: 0 1px 0 rgba(255,244,210,.5); font-weight: 700;
  font-size: 13px; letter-spacing: .01em; padding-left: 30px; padding-right: 30px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.landing-actions .button-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.05) drop-shadow(0 0 14px rgba(255,212,111,.4));
}
/* Об игре — малая золотая */
.about-btn {
  background: url('/assets/ui_set/ui6_btn_small.png?v=3') center / 100% 100% no-repeat;
  color: #2e2008; padding: 13px 36px 15px;
  font-family: var(--font-title, Georgia, serif);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
}
.about-btn:hover { transform: translateY(-1px); filter: brightness(1.06) drop-shadow(0 0 14px rgba(255,212,111,.45)); }

/* ============================================================
   ИЗУМРУДНЫЙ КИТ ui8 на лендинге (13.06)
   ============================================================ */
.landing-card {
  background: url('/assets/ui_set/ui8_login_panel.png') center / 100% 100% no-repeat;
  width: min(520px, calc(100vw - 44px));
  padding: 52px 66px 46px;
}
.landing-fields label { color: #cfe3cf; }
.landing-fields input {
  background: url('/assets/ui_set/ui8_input.png?v=3') center / 100% 100% no-repeat !important;
  color: #ffeec9;
  clip-path: polygon(0% 50%, 5% 6%, 95% 6%, 100% 50%, 95% 94%, 5% 94%);
}
.landing-fields input::placeholder { color: #9dbfa6; }
.landing-fields input:-webkit-autofill,
.landing-fields input:-webkit-autofill:hover,
.landing-fields input:-webkit-autofill:focus,
.landing-fields input:-webkit-autofill:active {
  /* поле с картинкой-фоном: не затираем её плоским цветом, а откладываем перекраску автозаполнения «навсегда» */
  -webkit-text-fill-color: #ffeec9 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
  caret-color: #ffd46f;
}
.landing-actions .button-gold {
  background: url('/assets/ui_set/ui8_btn_gold.png?v=3') center / 100% 100% no-repeat !important;
}
.landing-actions .button-ghost {
  background: url('/assets/ui_set/ui8_btn_sand.png?v=3') center / 100% 100% no-repeat !important;
}
.about-btn {
  background: url('/assets/ui_set/ui8_btn_small.png?v=3') center / 100% 100% no-repeat;
}

/* === Фикс входа: «Email» заезжал под верхнюю рамку панели — опускаем контент внутрь рамки === */
.landing-card { padding-top: 74px !important; padding-bottom: 52px !important; }

/* === Поле ввода округлое (убрать ромб) + автозаполнение не съедает рамку (2026-06-20) === */
.landing-fields input { clip-path: none !important; border-radius: 18px !important; }
.landing-fields input:-webkit-autofill,
.landing-fields input:-webkit-autofill:hover,
.landing-fields input:-webkit-autofill:focus,
.landing-fields input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffeec9 !important;
  -webkit-box-shadow: none !important; box-shadow: none !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
  caret-color: #ffd46f !important;
}

/* === Поле ввода: 9-slice (концы не растягиваются) + мягкий фокус без призрака (2026-06-20) === */
.landing-fields input {
  background: url('/assets/ui_set/ui8_input.png?v=3') center / 100% 100% no-repeat !important;
  border: none !important; border-image: none !important; border-radius: 0 !important; clip-path: none !important;
  text-align: center !important; padding: 12px 44px !important; color: #ffeec9 !important;
}
.landing-fields input:hover, .landing-fields input:focus { filter: none !important; box-shadow: none !important; outline: none !important; }

/* Кнопка «Об игре» — новый кит, скруглённая (без ромба) */
.about-btn { clip-path: none !important; border-radius: 16px !important; }

/* === Поля логина: текстура-обёртка .field-skin (Chrome не autofill-ит обёртку) + чистое ровное поле === */
.landing-fields .field-skin {
  display: block; width: 100%; max-width: 430px; margin: 4px auto 0; box-sizing: border-box;
  background: linear-gradient(180deg, #2c6a5a 0%, #1d5044 100%) !important;
  border: 2px solid #c9a24c !important; border-radius: 11px !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.4), 0 1px 0 rgba(255,236,180,.15) !important;
  overflow: hidden; clip-path: none !important;
}
.landing-fields .field-skin:focus-within {
  border-color: #ffd46f !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.4), 0 0 10px rgba(255,212,111,.35) !important;
}
.landing-fields .field-skin input {
  width: 100% !important; box-sizing: border-box !important;
  background: transparent !important; background-color: transparent !important;
  border: none !important; border-radius: 0 !important; box-shadow: none !important;
  clip-path: none !important; outline: none !important;
  text-align: center !important; padding: 8px 18px !important; font-size: 15px !important;
  color: #ffeec9 !important; caret-color: #ffd46f !important;
}
.landing-fields .field-skin input::placeholder { color: #bcd6cb !important; opacity: .85; }
.landing-fields .field-skin input:hover, .landing-fields .field-skin input:focus { filter: none !important; }
.landing-fields .field-skin input:-webkit-autofill,
.landing-fields .field-skin input:-webkit-autofill:hover,
.landing-fields .field-skin input:-webkit-autofill:focus,
.landing-fields .field-skin input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffeec9 !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: none !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
  background: transparent !important; background-color: transparent !important;
}

/* === Вход: чистая иерархия кнопок (2026-07-14) === */
.landing-actions { grid-template-columns: 1fr; gap: 12px; }
.landing-actions > .button { width: 100%; }
.landing-links {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 6px; flex-wrap: wrap;
}
.landing-links .linkbtn {
  background: none !important; border: 0; padding: 5px 2px; min-height: 0;
  color: #cfe3cf; font-family: var(--font-body, 'Alegreya', Georgia, serif);
  font-size: 14px; font-weight: 700; letter-spacing: .01em; cursor: pointer; opacity: .8;
  text-decoration: underline; text-decoration-color: rgba(207,227,207,.32);
  text-underline-offset: 3px; transition: color .15s ease, opacity .15s ease;
}
.landing-links .linkbtn:hover { color: #ffe29a; opacity: 1; text-decoration-color: rgba(255,226,154,.7); transform: none; box-shadow: none; }
.landing-links .linkdot { color: rgba(207,227,207,.38); font-size: 11px; }

/* Подпись «Email или имя» подрезалась верхней рамкой панели (карточка стала ниже -> фон сжался) — опускаем контент ниже */
.landing-card { padding-top: 94px !important; }
