/* Центральная v156: the street fills the frame; portraits travel through depth. */
#view-login.landing {
  --landing-display: 'Oranienbaum', Georgia, serif;
  --landing-ink: #f4eff6;
  --landing-muted: #c5b7c6;
  --landing-line: #674653;
  --landing-accent: #ff5c6c;
  display: none; position: relative; z-index: 1; padding: 0;
  color: var(--landing-ink); background: transparent; animation: none;
}
#view-login.landing.active { display: block; }
body.on-login { background: #080609; }
body.on-login #scene { visibility: visible; z-index: 0; }
.landing-cinema-bg { display: none; }
body.on-login .landing-cinema-bg { display: block; inset: -4%; }
.landing-cinema-image { position: absolute; inset: 0; background: url('/landing-art/street-cinema-v156.webp') 48% 56% / cover no-repeat; }
.landing-cinema-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #08050b30, #08050b05 35%, #10091245 76%, #08050bec), linear-gradient(90deg, #160c1b30, transparent 65%, #0a061364); }
body.on-login #scene :is(.buildings, .citylight, .street, .reflections, .stars) { display: none; }
body.on-login #scene .bokeh { opacity: .6; }
body.on-login #scene .fog { opacity: .18; }
body.on-login .lantern:nth-child(3) { left: 28%; top: 70px; }
body.on-login .lantern:nth-child(4) { left: 50%; top: 0; --s: .4; }
body.on-login .lantern:nth-child(5) { left: 72%; top: 69px; }
.age-gate .btn.primary { background: #c62649; color: #fff; }
.age-gate .btn.primary:hover { background: #d62e50; }
.age-gate button:focus-visible { outline: 2px solid #ffb36b; outline-offset: 5px; }
.landing button, .landing a { -webkit-tap-highlight-color: transparent; }
.landing a { color: inherit; text-decoration: none; }
.landing :is(button, a, input):focus-visible { outline: 2px solid #ffb36b; outline-offset: 5px; }
.landing ::selection { background: #ff5c6c; color: #180912; }
.landing-opening { width: min(1280px, 100% - 80px); margin-inline: auto; }
.landing-header { padding: 34px 0 6px; text-align: center; }
.landing-kicker { color: #dbced7; font-size: 11px; line-height: 1.7; letter-spacing: .055em; text-shadow: 0 2px 8px #000; }
.landing-kicker span { margin-inline: 7px; color: #d98e96; }
.landing-brand { margin: 7px 0 1px; font-family: var(--landing-display); font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1.15; letter-spacing: .075em; text-transform: uppercase; }
.landing-brand a { display: inline-block; max-width: 100%; }
.landing-brand #loginSiteName { display: inline-block; background: linear-gradient(180deg, #fff9fa 22%, #ffd1d8 65%, #ff5c6c); color: transparent; background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 5px 23px #ff2e4c60); }
@supports not (background-clip: text) { .landing-brand #loginSiteName { color: #ffd1d8; background: none; } }
.landing-nav { display: flex; justify-content: center; align-items: center; gap: 32px; font-size: 13px; }
.landing-nav > * { display: inline-flex; align-items: center; min-height: 44px; color: #dfd1d8; text-shadow: 0 2px 8px #000; transition: color .18s; }
.landing-nav > *:hover { color: #ffb6bf; }
.landing-main { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: 'scene auth' 'action action'; align-items: center; gap: 20px 36px; padding: 0 0 18px; }
.landing-showcase { grid-area: scene; align-self: start; position: sticky; top: 24px; }
.landing-main > .landing-auth { grid-area: auth; }
.landing-cta { grid-area: action; text-align: center; }
.landing-showcase { min-width: 0; text-align: center; }
.landing-gallery { position: relative; height: clamp(420px, 57vh, 535px); perspective: 1100px; perspective-origin: 50% 50%; touch-action: pan-y pinch-zoom; cursor: grab; -webkit-user-select: none; user-select: none; }
.landing-gallery.is-dragging { cursor: grabbing; }
#landingUniverseCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  /* The haze must meet the street at zero opacity, never at a rectangular bitmap edge.
     Mask only the atmosphere: masking the gallery would flatten its 3D portraits. */
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 68%, transparent 100%);
}
.landing-orbit { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; pointer-events: none; }
.landing-portrait { position: absolute; left: 50%; top: 50%; width: clamp(150px, 33%, 265px); aspect-ratio: 3 / 4; padding: 0; border-radius: 14px; background: #1d111a; transform: translate(-50%, -50%); overflow: hidden; pointer-events: auto; touch-action: pan-y pinch-zoom; cursor: inherit; box-shadow: 0 28px 55px -18px #000a, 0 0 28px -10px #ff80642b; }
.landing-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; -webkit-user-drag: none; }
.landing-portrait { -webkit-mask-image: linear-gradient(#000 89%, transparent); mask-image: linear-gradient(#000 89%, transparent); }
.landing-portrait:focus-visible { -webkit-mask-image: none; mask-image: none; }
.landing-portrait::after { content: ''; position: absolute; inset: 0; border: 1px solid #ffe2cf2a; border-radius: inherit; background: linear-gradient(135deg, #ffdac816, transparent 36%, transparent 75%, #230c2040); pointer-events: none; }
.landing-portrait:not(.is-front)::after { background: linear-gradient(135deg, #150c1820, #100c1a28); }
.landing-portrait:nth-child(2) { transform: translate(-140%, -46%) scale(.7); }
.landing-portrait:nth-child(3) { transform: translate(40%, -46%) scale(.7); }
.landing-portrait:nth-child(4) { transform: translate(-50%, -54%) translateZ(-120px) scale(.64); }
.landing-gallery.is-orbit-running .landing-portrait, .landing-gallery.is-orbit-running .landing-orbit { will-change: transform; }
.landing-primary { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 18px; width: min(100%, 290px); min-width: 0; min-height: 56px; padding: 14px 20px; border: 1px solid #da526e; border-radius: 8px; background: #c62649; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .015em; box-shadow: 0 8px 24px #08060945; transition: background .18s, border-color .18s; }
.landing-primary:hover { background: #d62e50; border-color: #e49aaa; }
.landing-primary svg { width: 21px; height: 21px; flex-shrink: 0; }
.landing-image-note { margin: 12px 0 0; color: #d0bdc5; font-size: 10px; line-height: 1.6; text-shadow: 0 2px 6px #000; }
.landing-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.landing-auth { width: 100%; padding: 28px; border-radius: 16px; border: 1px solid var(--landing-line); background: rgba(20, 15, 28, .84); backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); scroll-margin-top: 28px; }
.landing-auth-intro { margin-bottom: 27px; }
.landing-auth-intro h2 { font: 400 32px/1.2 var(--landing-display); margin: 0 0 11px; color: #f6e3e9; }
.landing-auth-intro p { font-size: 13px; line-height: 1.75; color: var(--landing-muted); max-width: 28em; }
.landing-auth-card { width: 100%; text-align: left; }
.landing .fld { margin-bottom: 18px; }
.landing .fld > span { font-size: 12px; text-transform: none; letter-spacing: 0; color: #cbbaca; margin-bottom: 9px; }
.landing .fld input { border: 1px solid #604658; border-radius: 8px; background: #100b17; color: #f4eff6; padding: 13px 14px; min-height: 48px; caret-color: #ffb3bf; box-shadow: none; }
.landing .fld input::placeholder, .landing .cap-input::placeholder { color: #ae9eaf; opacity: 1; }
.landing .fld input:focus { border-color: #ff7b8d; background: #170d1b; box-shadow: 0 0 0 3px #ff5c6c15; }
.landing #phoneInput { text-align: left; letter-spacing: .015em; font-size: 16px; }
.landing .err { color: #ffa7b1; margin: 0 0 12px; min-height: 0; font-size: 13px; line-height: 1.6; }
.landing .err:empty { display: none; }
.landing .btn.primary { min-height: 48px; border-radius: 8px; background: #c62649; color: #fff; box-shadow: none; transition: background .18s; }
.landing .btn.primary:hover { background: #d62e50; transform: none; box-shadow: none; }
.landing .btn.primary:disabled { opacity: .6; cursor: wait; }
.landing .btn.link { min-height: 44px; color: var(--landing-muted); font-size: 13px; }
.landing-form-note { margin-top: 12px; color: var(--landing-muted); text-align: center; font-size: 11px; line-height: 1.6; }
.landing-register-link { display: block; min-height: 44px; margin: 13px auto 0; color: #ded0de; font-size: 12px; text-decoration: underline; text-decoration-color: #765464; text-underline-offset: 5px; }
.landing-register-link:hover { color: #fff; text-decoration-color: #ff7b8d; }
.landing .step-hint { color: var(--landing-muted); font-size: 13px; line-height: 1.7; }
.landing .step { animation: none; }
.landing .reg-gender { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 18px; }
.landing .reg-gender .chip { font-size: 12px; min-height: 44px; border-radius: 8px; padding: 9px 10px; background: transparent; color: #cdbbcb; border-color: #604658; }
.landing .reg-gender .chip.active { background: #592137; border-color: #d8778e; color: #fff0f4; }
.landing .reg-agree { color: #cbbaca; font-size: 12px; line-height: 1.7; align-items: flex-start; }
.landing .reg-agree span { font: inherit; color: inherit; }
.landing .reg-agree input { accent-color: #ff5c6c; flex-shrink: 0; }
.landing .reg-agree-links { margin-block: 10px; }
.landing .reg-agree-links .sl-link { min-height: 36px; color: #d1b9ca; font-size: 12px; }
.landing .cap-row { flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.landing .cap-img { border-radius: 8px; max-width: calc(100% - 58px); }
.landing .cap-input { min-width: 120px; flex: 1; min-height: 44px; border-color: #604658; border-radius: 8px; color: #f4eff6; background: #100b17; }
.landing .cap-reload { width: 44px; height: 44px; color: #f4eff6; }
.landing .adv-reg-warning { color: #e1c7d2; background: #301923; border-color: var(--landing-line); font-size: 13px; }
.landing .reg-photo-field{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px;min-width:0}
.landing .reg-photo-field>span{flex-basis:100%;font-size:12px;color:#cbbaca}
.landing #regPhotoPreview{width:80px;height:100px;border-radius:8px;object-fit:cover}
.landing #regPhotoPreview[hidden]{display:none}
.landing .reg-photo-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;min-height:44px;max-width:100%;font-size:13px;cursor:pointer}
.landing .reg-photo-pick input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px}
.landing .reg-photo-pick:focus-within{outline:2px solid #ffb3bf;outline-offset:3px}
.landing .member-birth{margin:0 0 16px}
.landing .member-birth legend{color:#cbbaca;font-size:12px}
.landing .member-birth-controls .fld{margin:0}
.landing .member-birth-controls .fld>span{margin-bottom:6px}
.landing .member-birth-controls input{padding:11px 8px;min-height:44px;font-size:16px}
.landing #regMemberFields[hidden]{display:none}
.landing-about { margin: 22px auto 30px; padding: 8px 24px 20px; text-align: center; text-shadow: 0 2px 8px #000; }
.landing-street-line { max-width: 760px; margin: 0 auto; font: 400 25px/1.45 var(--landing-display); color: #e7cbd4; text-wrap: balance; }
.landing-street-detail { margin: 10px auto 0; color: var(--landing-muted); font-size: 13px; line-height: 1.7; text-wrap: balance; }
.landing .landing-footer { position: relative; width: min(1120px, 100% - 80px); padding: 18px 0 26px; margin: 0 auto; border-top: 1px solid #61404d; text-align: left; }
.landing-footer .sl-links { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0 20px; padding-right: 115px; }
.landing-footer .sl-link { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.5; min-height: 36px; color: #c4b2c6; }
.landing-footer .sl-link:hover { color: #fff0f3; }
.landing-footer .sl-sep { display: none; }
.landing-footer .sl-copy { font-size: 10px; color: #bba6bc; margin-top: 8px; }
.landing-footer .pay-badge { position: absolute; right: 0; top: 23px; opacity: .85; }
@media (max-width: 1100px) {
  .landing-opening, .landing .landing-footer { width: calc(100% - 48px); }
  .landing-main { grid-template-columns: minmax(0, 1fr) 290px; column-gap: 24px; }
  .landing-auth { padding: 23px; }
  .landing-portrait { width: 38%; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .landing-header { padding-top: 22px; padding-bottom: 0; }
  .landing-brand { font-size: 54px; }
  .landing-gallery { height: 390px; }
  .landing-portrait { width: min(32%, 230px); }
  .landing-about { margin-top: 22px; }
}
@media (max-width: 760px) {
  .landing-opening, .landing .landing-footer { width: calc(100% - 36px); }
  .landing-header { padding: 30px 0 8px; }
  .landing-kicker { font-size: 9px; letter-spacing: .025em; }
  .landing-kicker span { margin-inline: 3px; }
  .landing-brand { font-size: clamp(30px, 8.9vw, 49px); letter-spacing: .045em; margin-top: 9px; }
  .landing-nav { gap: 25px; font-size: 12px; }
  .landing-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'scene' 'action' 'auth'; gap: 28px; padding: 0; }
  .landing-showcase { width: 100%; max-width: 540px; position: static; }
  .landing-gallery { height: 330px; perspective: 850px; }
  .landing-portrait { width: 43%; max-width: 220px; border-radius: 10px; }
  .landing-image-note { font-size: 9px; margin-top: 10px; }
  .landing-auth { max-width: 500px; justify-self: center; padding: 25px; background: #140f1ced; backdrop-filter: none; -webkit-backdrop-filter: none; scroll-margin-top: 18px; }
  .landing-auth-intro { margin-bottom: 23px; }
  .landing-auth-intro h2 { font-size: 30px; }
  .landing-about { max-width: 500px; padding: 8px 14px 16px; margin: 28px auto; }
  .landing-street-line { font-size: 22px; }
  .landing-about br { display: none; }
  .landing-footer .sl-links { padding-right: 0; gap: 0 15px; }
  .landing-footer .sl-link { min-height: 38px; }
  .landing-footer .pay-badge { position: static; display: inline-block; margin-top: 16px; }
  .landing-cinema-image { background-position: 46% 50%; }
  body.on-login .lantern { transform: scale(.7); transform-origin: top center; }
  body.on-login .lantern:nth-child(2), body.on-login .lantern:nth-child(6) { display: none; }
  body.on-login .lantern:nth-child(3) { left: 21%; top: 129px; }
  body.on-login .lantern:nth-child(5) { left: 78%; top: 130px; }
  body.on-login .lantern:nth-child(1) { left: 3%; top: 80px; }
  body.on-login .lantern:nth-child(7) { left: 93%; top: 83px; }
}
/* Mobile browser bars and the keyboard change height while scrolling/focusing.
   Size the portraits by width so that these changes cannot move the form. */
@media (max-width: 350px) {
  .landing-opening, .landing .landing-footer { width: calc(100% - 28px); }
  .landing-header { padding-top: 21px; padding-bottom: 0; }
  .landing-kicker { max-width: 260px; margin-inline: auto; }
  .landing-gallery { height: 275px; }
  .landing-auth { padding: 20px; }
}
.landing-auth #recoverStatus, .landing-auth #resetStatus { min-height: 1.4em; overflow-wrap: anywhere; }
.landing-auth #recoverForm, .landing-auth #resetForm { margin: 0; }
@media (max-width: 650px) {
  .landing-auth #recoverEmail, .landing-auth #resetPassword, .landing-auth #resetRepeat { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { scroll-behavior: auto !important; transition: none !important; }
  body.on-login #scene .parallax { transform: none !important; }
}
