/*
 * Страница входа - «видоискатель»: боке, проявляющиеся полароиды, диафрагма при открытии
 * и затвор при входе. Всё украшение - aria-hidden; без JS и при prefers-reduced-motion
 * страница остаётся обычной формой.
 */

:root {
    --lv-bg: #070709;
    --lv-text: #f6f3ee;
    --lv-muted: rgba(246, 243, 238, .62);
    --lv-subtle: rgba(246, 243, 238, .4);
    --lv-line: rgba(255, 255, 255, .14);
    --lv-line-strong: rgba(255, 255, 255, .28);
    --lv-glass: rgba(14, 13, 18, .62);
    --lv-field: rgba(255, 255, 255, .055);
    --lv-ok: #5ef2a0;
    --lv-err: #ff5d6c;
    --lv-warm: #ffb36b;
    --lv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --lv-hand: "Caveat", "Segoe Print", cursive;
    --lv-ease: cubic-bezier(.2, .8, .2, 1);
    --lv-gutter: 28px;
    /* Сдвиг сцены за указателем, задаёт login.js: -1..1 */
    --px: 0;
    --py: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.lv-auth {
    min-height: 100%;
}

body.lv-auth {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--lv-bg);
    color: var(--lv-text);
    font-family: "Montserrat", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Сцена ---------- */

.lv-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, #1a1226 0%, rgba(26, 18, 38, 0) 70%),
        radial-gradient(ellipse 120% 90% at 50% 50%, #0d0b12 0%, #050507 100%);
}

.lv-bokeh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Засветка плёнки - тёплое пятно, медленно гуляет по углу */
.lv-leak {
    position: absolute;
    top: -30vmax;
    left: -25vmax;
    width: 80vmax;
    height: 80vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 80, .32) 0%, rgba(255, 70, 120, .14) 35%, transparent 65%);
    mix-blend-mode: screen;
    filter: blur(20px);
    animation: lv-leak 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes lv-leak {
    0% { transform: translate(0, 0) scale(1); opacity: .55; }
    50% { transform: translate(8vmax, 6vmax) scale(1.12); opacity: .9; }
    100% { transform: translate(2vmax, 12vmax) scale(.95); opacity: .5; }
}

/* Зерно плёнки */
.lv-grain {
    position: absolute;
    inset: -50%;
    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)' opacity='.55'/%3E%3C/svg%3E");
    opacity: .07;
    animation: lv-grain 1.2s steps(6) infinite;
    pointer-events: none;
}

@keyframes lv-grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -4%); }
    60% { transform: translate(-4%, -2%); }
    80% { transform: translate(3%, 4%); }
    100% { transform: translate(0, 0); }
}

/* ---------- Видоискатель ---------- */

.lv-viewfinder {
    position: absolute;
    inset: var(--lv-gutter);
    pointer-events: none;
    animation: lv-fade 1.2s .9s both;
}

.lv-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 0 solid rgba(255, 255, 255, .6);
}

.lv-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.lv-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.lv-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.lv-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* Сетка третей */
.lv-thirds {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .05) calc(33.333% - .5px), rgba(255, 255, 255, .05) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
        linear-gradient(90deg, transparent calc(66.666% - .5px), rgba(255, 255, 255, .05) calc(66.666% - .5px), rgba(255, 255, 255, .05) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
        linear-gradient(0deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .05) calc(33.333% - .5px), rgba(255, 255, 255, .05) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
        linear-gradient(0deg, transparent calc(66.666% - .5px), rgba(255, 255, 255, .05) calc(66.666% - .5px), rgba(255, 255, 255, .05) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}

/* Рамка слежения автофокуса за указателем (только мышь) */
.lv-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    opacity: 0;
    transition: opacity .3s, width .25s var(--lv-ease), height .25s var(--lv-ease), margin .25s var(--lv-ease);
    pointer-events: none;
    will-change: transform;
}

.lv-track.is-visible {
    opacity: .85;
}

.lv-track.is-locked {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
}

.lv-track i,
.lv-af i {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 0 solid currentColor;
}

.lv-track {
    color: rgba(255, 255, 255, .8);
}

.lv-track.is-locked {
    color: var(--lv-ok);
}

.lv-track i:nth-child(1), .lv-af i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.lv-track i:nth-child(2), .lv-af i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.lv-track i:nth-child(3), .lv-af i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.lv-track i:nth-child(4), .lv-af i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Полароиды ---------- */

.lv-polaroids {
    position: absolute;
    inset: 0;
}

.lv-pol {
    --w: 150px;
    --r: 0deg;
    --d: 0s;
    --depth: 1;
    position: absolute;
    width: var(--w);
    transform: translate3d(calc(var(--px) * var(--depth) * -18px), calc(var(--py) * var(--depth) * -14px), 0);
    pointer-events: auto;
}

/* Падение на «стену» и парение - на обёртке, наклон и подъём при наведении - на самом снимке */
.lv-pol__float {
    animation:
        lv-drop 1.1s var(--lv-ease) calc(1s + var(--d)) both,
        lv-float 9s ease-in-out calc(2.2s + var(--d)) infinite;
}

.lv-pol__inner {
    margin: 0;
    padding: 7% 7% 0;
    border-radius: 3px;
    background: #f7f4ee;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
    transform: rotate(var(--r));
    transition: transform .45s var(--lv-ease), box-shadow .45s;
    cursor: default;
}

.lv-pol:hover .lv-pol__inner {
    transform: rotate(0deg) scale(1.08) translateY(-6px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .35);
}

.lv-pol__photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}

.lv-pol__photo svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: lv-develop 4.5s ease-out calc(1.3s + var(--d)) both;
}

/* Блик на глянце */
.lv-pol__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
}

.lv-pol figcaption {
    padding: .35em 0 .45em;
    color: #2b2530;
    font: 600 calc(var(--w) * .13) / 1.1 var(--lv-hand);
    text-align: center;
    white-space: nowrap;
}

@keyframes lv-drop {
    0% { opacity: 0; transform: translateY(-40px) rotate(-14deg) scale(1.12); }
    100% { opacity: 1; transform: none; }
}

@keyframes lv-float {
    0%, 100% { transform: none; }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Проявка: от тёмного сепийного пятна к цвету */
@keyframes lv-develop {
    0% { filter: brightness(.12) saturate(0) sepia(.8) blur(3px); }
    45% { filter: brightness(.55) saturate(.4) sepia(.5) blur(1px); }
    100% { filter: none; }
}

.lv-pol--1 { --w: 164px; --r: -8deg; --d: 0s; --depth: .7; top: 13vh; left: 5vw; }
.lv-pol--2 { --w: 138px; --r: 7deg; --d: .35s; --depth: 1.2; top: 41vh; left: 16vw; }
.lv-pol--3 { --w: 152px; --r: -4deg; --d: .7s; --depth: .9; top: 64vh; left: 6vw; }
.lv-pol--4 { --w: 148px; --r: 9deg; --d: .2s; --depth: .8; top: 12vh; right: 6vw; }
.lv-pol--5 { --w: 166px; --r: -6deg; --d: .55s; --depth: 1.3; top: 42vh; right: 15vw; }
.lv-pol--6 { --w: 136px; --r: 5deg; --d: .9s; --depth: .6; top: 66vh; right: 5vw; }

/* ---------- Верхняя и нижняя строки камеры ---------- */

.lv-top,
.lv-hud {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: calc(var(--lv-gutter) + 14px) calc(var(--lv-gutter) + 22px) 0;
    animation: lv-fade .8s 1s both;
}

.lv-hud {
    padding: 0 calc(var(--lv-gutter) + 22px) calc(var(--lv-gutter) + 14px);
    color: var(--lv-muted);
    font: 500 .75rem/1 var(--lv-mono);
    letter-spacing: .06em;
}

.lv-brand {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
}

.lv-brand__logo {
    height: 18px;
    width: auto;
    filter: invert(1);
}

.lv-brand__kids {
    color: var(--lv-warm);
    font: 600 1.35rem/1 var(--lv-hand);
    transform: rotate(-6deg) translateY(2px);
}

.lv-top__hud {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 auto;
    color: var(--lv-subtle);
    font: 500 .72rem/1 var(--lv-mono);
    letter-spacing: .08em;
}

.lv-battery {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.lv-battery::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 3px;
    width: 2px;
    height: 5px;
    border-radius: 0 1px 1px 0;
    background: currentColor;
}

.lv-battery i {
    width: 5px;
    height: 7px;
    border-radius: 1px;
    background: var(--lv-ok);
    opacity: .85;
}

.lv-report {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    margin-left: auto;
    padding: 0 1.1rem;
    border: 1px solid var(--lv-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--lv-text);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, transform .2s;
}

@media (min-width: 992px) {
    .lv-top__hud + .lv-report {
        margin-left: 0;
    }
}

.lv-report svg {
    width: 18px;
    height: 18px;
}

.lv-report:hover,
.lv-report:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .45);
    color: var(--lv-text);
    transform: translateY(-1px);
}

.lv-report:focus-visible,
.lv-eye:focus-visible,
.lv-shutter:focus-visible {
    outline: 2px solid var(--lv-text);
    outline-offset: 3px;
}

.lv-hud__status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 9.5rem;
    color: var(--lv-text);
}

.lv-hud__status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lv-ok);
    box-shadow: 0 0 10px var(--lv-ok);
}

.lv-hud__status[data-state="focus"] i {
    background: var(--lv-warm);
    box-shadow: 0 0 10px var(--lv-warm);
    animation: lv-blink .5s steps(2) infinite;
}

.lv-hud__status[data-state="error"] {
    color: var(--lv-err);
}

.lv-hud__status[data-state="error"] i {
    background: var(--lv-err);
    box-shadow: 0 0 10px var(--lv-err);
    animation: lv-blink .7s steps(2) infinite;
}

.lv-hud__exp {
    display: inline-flex;
    gap: 1.1rem;
    color: var(--lv-text);
}

.lv-meter {
    position: relative;
    margin: 0 auto;
    color: var(--lv-subtle);
    white-space: nowrap;
}

.lv-meter__needle {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-bottom: 5px solid var(--lv-warm);
    transform: translateX(calc(-50% + var(--meter, 0) * 1px));
    transition: transform .4s var(--lv-ease);
}

.lv-hud__clock {
    font-variant-numeric: tabular-nums;
}

.lv-hud__shots {
    color: var(--lv-text);
}

@keyframes lv-blink {
    50% { opacity: .25; }
}

@keyframes lv-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Карточка входа ---------- */

.lv-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 32px;
    pointer-events: none;
}

.lv-card {
    --mx: 50%;
    --my: 0%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 64px 36px 28px;
    border: 1px solid var(--lv-line);
    border-radius: 28px;
    background: var(--lv-glass);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform .5s var(--lv-ease);
    animation: lv-card-in 1s var(--lv-ease) .75s both;
    pointer-events: auto;
}

@keyframes lv-card-in {
    from { opacity: 0; transform: perspective(1200px) translateY(36px) scale(.96); }
    to { opacity: 1; transform: perspective(1200px); }
}

/* Подсветка края карточки там, где указатель */
.lv-card__spot {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.lv-card.is-hover .lv-card__spot {
    opacity: 1;
}

/* После появления анимация снимается - иначе её последний кадр перекрывает наклон карточки */
.lv-card.is-ready {
    animation: none;
}

.lv-card.is-shake {
    animation: lv-shake .55s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes lv-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}

/* Объектив-талисман: следит за указателем, закрывает диафрагму, пока вводят пароль */
.lv-lens {
    position: absolute;
    top: -48px;
    left: 50%;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 6px rgba(7, 7, 9, .6);
    transition: box-shadow .4s;
    animation: lv-lens-in 1s var(--lv-ease) 1.1s both;
}

.lv-lens svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lv-lens.is-error {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 93, 108, .35), 0 0 30px rgba(255, 93, 108, .45);
}

.lv-lens.is-ok {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 6px rgba(94, 242, 160, .3), 0 0 30px rgba(94, 242, 160, .35);
}

.lv-lens__text {
    fill: rgba(255, 255, 255, .5);
    font: 600 5.2px var(--lv-mono);
    letter-spacing: .6px;
}

.lv-lens__iris {
    fill: #0a0a0d;
}

.lv-lens__edges path {
    stroke: rgba(255, 255, 255, .1);
    stroke-width: .6;
    fill: none;
}

@keyframes lv-lens-in {
    from { opacity: 0; transform: translateY(16px) rotate(-90deg) scale(.6); }
    to { opacity: 1; transform: none; }
}

.lv-card__eyebrow {
    margin: 0 0 .5rem;
    color: var(--lv-warm);
    font: 500 .75rem/1.2 var(--lv-mono);
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}

.lv-card__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    text-align: center;
}

.lv-card__lead {
    display: flex;
    justify-content: center;
    gap: .35em;
    margin: .5rem 0 1.75rem;
    color: var(--lv-muted);
    font-size: .9375rem;
}

/* Сменяющееся слово: «улыбки», «первые шаги»... */
.lv-words {
    position: relative;
    display: inline-grid;
    color: var(--lv-text);
    font-weight: 600;
}

.lv-words span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(70%);
    filter: blur(4px);
    transition: opacity .5s, transform .5s var(--lv-ease), filter .5s;
    white-space: nowrap;
}

.lv-words span.is-active {
    opacity: 1;
    transform: none;
    filter: none;
}

.lv-words span.is-leaving {
    opacity: 0;
    transform: translateY(-70%);
    filter: blur(4px);
}

/* ---------- Форма ---------- */

.lv-form {
    position: relative;
}

.lv-field {
    position: relative;
    margin-bottom: 1rem;
}

.lv-input {
    display: block;
    width: 100%;
    height: 60px;
    padding: 24px 18px 8px;
    border: 1px solid var(--lv-line);
    border-radius: 16px;
    background: var(--lv-field);
    color: var(--lv-text);
    font: 500 1rem/1.2 "Montserrat", system-ui, sans-serif;
    caret-color: var(--lv-warm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.lv-input:hover {
    border-color: var(--lv-line-strong);
}

.lv-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .085);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

/* Автозаполнение браузера не должно красить поле в жёлтый */
.lv-input:-webkit-autofill,
.lv-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lv-text);
    -webkit-box-shadow: 0 0 0 100px #1b1a20 inset;
    transition: background-color 9999s;
}

.lv-field__label {
    position: absolute;
    top: 19px;
    left: 19px;
    margin: 0;
    color: var(--lv-muted);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .2s var(--lv-ease), color .2s;
}

.lv-input:focus + .lv-field__label,
.lv-input:not(:placeholder-shown) + .lv-field__label,
.lv-input:-webkit-autofill + .lv-field__label {
    transform: translateY(-11px) scale(.75);
    color: var(--lv-subtle);
    letter-spacing: .04em;
}

.lv-field--password .lv-input {
    padding-right: 56px;
}

.lv-eye {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--lv-muted);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.lv-eye:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--lv-text);
}

.lv-eye svg {
    width: 20px;
    height: 20px;
}

.lv-eye .lv-eye__shut,
.lv-eye[aria-pressed="true"] .lv-eye__open {
    display: none;
}

.lv-eye[aria-pressed="true"] .lv-eye__shut {
    display: block;
}

.lv-caps {
    margin: .4rem 0 0 .25rem;
    color: var(--lv-warm);
    font-size: .8125rem;
    font-weight: 600;
}

.lv-field__error {
    display: none;
    margin: .4rem 0 0 .25rem;
    color: var(--lv-err);
    font-size: .8125rem;
    font-weight: 600;
}

.lv-field__error:not(:empty) {
    display: block;
    animation: lv-error-in .3s var(--lv-ease);
}

@keyframes lv-error-in {
    from { opacity: 0; transform: translateY(-4px); }
}

.lv-input.is-invalid {
    border-color: rgba(255, 93, 108, .7);
    background: rgba(255, 93, 108, .07);
}

/* Рамка автофокуса: переезжает к полю, в фокусе «защёлкивается» */
.lv-af {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    color: rgba(255, 255, 255, .9);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: transform .35s var(--lv-ease), width .35s var(--lv-ease), height .35s var(--lv-ease), opacity .25s, color .2s;
}

.lv-af.is-visible {
    opacity: 1;
}

.lv-af.is-hunting {
    animation: lv-hunt .35s var(--lv-ease);
}

.lv-af.is-locked {
    color: var(--lv-ok);
}

.lv-af.is-error {
    color: var(--lv-err);
}

@keyframes lv-hunt {
    0% { scale: 1.08; }
    50% { scale: .97; }
    100% { scale: 1; }
}

/* Переключатель «Запомнить меня» */
.lv-remember {
    margin: .25rem 0 1.25rem;
}

.lv-switch {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    color: var(--lv-muted);
    font-size: .9375rem;
    cursor: pointer;
    user-select: none;
}

.lv-switch__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lv-switch__track {
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    transition: background-color .25s;
}

.lv-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    transition: transform .3s var(--lv-ease);
}

.lv-switch__input:checked + .lv-switch__track {
    background: var(--lv-ok);
}

.lv-switch__input:checked + .lv-switch__track::after {
    transform: translateX(18px);
}

.lv-switch__input:focus-visible + .lv-switch__track {
    outline: 2px solid var(--lv-text);
    outline-offset: 3px;
}

/* Кнопка-затвор */
.lv-shutter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 18px;
    background: #f6f3ee;
    color: #0b0b0e;
    font: 700 1.0625rem/1 "Montserrat", system-ui, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(255, 255, 255, .12);
    transition: transform .2s var(--lv-ease), box-shadow .3s, background-color .3s;
}

.lv-shutter::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 179, 107, .55), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--lv-ease);
}

.lv-shutter:hover {
    box-shadow: 0 16px 40px rgba(255, 179, 107, .3);
    transform: translateY(-2px);
}

.lv-shutter:hover::before {
    left: 120%;
}

.lv-shutter:active {
    transform: translateY(0) scale(.985);
}

.lv-shutter__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    transition: transform .6s var(--lv-ease);
}

.lv-shutter__icon svg {
    width: 26px;
    height: 26px;
}

.lv-shutter:hover .lv-shutter__icon {
    transform: rotate(60deg);
}

.lv-shutter.is-busy {
    pointer-events: none;
}

.lv-shutter.is-busy .lv-shutter__icon {
    animation: lv-spin .8s linear infinite;
}

@keyframes lv-spin {
    to { transform: rotate(360deg); }
}

.lv-card__hint {
    margin: 1.1rem 0 0;
    color: var(--lv-subtle);
    font-size: .8125rem;
    text-align: center;
}

/* ---------- Диафрагма на весь экран и вспышка ---------- */

.lv-iris {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    /* Страховка: если скрипт не запустился, шторка уходит сама */
    animation: lv-iris-fallback 0s 3s forwards;
}

.lv-iris svg {
    width: 100%;
    height: 100%;
}

.lv-iris__body {
    fill: #060608;
}

.lv-iris__edges path {
    stroke: rgba(255, 255, 255, .08);
    stroke-width: .5;
    fill: none;
}

.lv-iris.is-done {
    display: none;
}

.lv-iris.is-js {
    animation: none;
}

@keyframes lv-iris-fallback {
    to { visibility: hidden; }
}

.lv-flash {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.lv-flash.is-on {
    animation: lv-flash .6s ease-out;
}

@keyframes lv-flash {
    0% { opacity: 0; }
    12% { opacity: .95; }
    100% { opacity: 0; }
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1199.98px) {
    .lv-pol--2,
    .lv-pol--5 {
        display: none;
    }

    .lv-meter {
        display: none;
    }

    .lv-hud__clock {
        margin-left: auto;
    }
}

@media (max-width: 991.98px) {
    .lv-top__hud {
        display: none;
    }

    .lv-pol { --w: 120px; }
    .lv-pol--1 { top: 12vh; left: 3vw; }
    .lv-pol--3 { top: auto; bottom: 11vh; left: 4vw; }
    .lv-pol--4 { top: 14vh; right: 3vw; }
    .lv-pol--6 { top: auto; bottom: 12vh; right: 4vw; }
}

@media (max-width: 767.98px) {
    :root {
        --lv-gutter: 10px;
    }

    .lv-corner {
        width: 22px;
        height: 22px;
    }

    .lv-thirds {
        display: none;
    }

    .lv-top {
        padding: calc(var(--lv-gutter) + 12px + env(safe-area-inset-top)) 22px 0;
    }

    .lv-brand__logo {
        height: 15px;
    }

    .lv-report {
        padding: 0 .9rem;
        font-size: .8125rem;
    }

    .lv-hud {
        gap: .75rem;
        padding: 0 22px calc(var(--lv-gutter) + 12px + env(safe-area-inset-bottom));
        font-size: .6875rem;
    }

    .lv-hud__status {
        min-width: 0;
    }

    .lv-hud__exp {
        gap: .6rem;
    }

    .lv-hud__exp > span:last-child,
    .lv-hud__shots {
        display: none;
    }

    .lv-main {
        padding: 72px 16px 24px;
    }

    .lv-card {
        padding: 56px 20px 22px;
        border-radius: 24px;
    }

    .lv-lens {
        top: -42px;
        width: 84px;
        height: 84px;
        margin-left: -42px;
    }

    .lv-card__title {
        font-size: 1.5rem;
    }

    .lv-card__lead {
        margin-bottom: 1.5rem;
        font-size: .875rem;
    }

    /* На телефоне - два маленьких снимка по краям, остальные убираем */
    .lv-pol { --w: 84px; }
    .lv-pol--3,
    .lv-pol--4 {
        display: none;
    }

    .lv-pol--1 { top: calc(104px + env(safe-area-inset-top)); left: 12px; --r: -10deg; }
    .lv-pol--6 { top: auto; bottom: calc(52px + env(safe-area-inset-bottom)); right: 14px; --r: 8deg; }
}

@media (max-width: 359.98px) {
    .lv-hud__exp {
        display: none;
    }

    .lv-report span {
        display: none;
    }
}

/* Низкие экраны (телефон боком): без снимков, карточка прокручивается */
@media (max-height: 560px) {
    .lv-pol {
        display: none;
    }

    .lv-main {
        padding-top: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-leak,
    .lv-grain,
    .lv-pol__float,
    .lv-pol__photo svg,
    .lv-card,
    .lv-lens,
    .lv-top,
    .lv-hud,
    .lv-viewfinder {
        animation: none !important;
    }

    .lv-iris {
        display: none;
    }

    .lv-card,
    .lv-words span,
    .lv-af {
        transition: none;
    }
}
