/*
 * Filmlet: a vendeg-oldalak stilusa. Nincs build, nincs keretrendszer, nincs kulso betutipus.
 * Vizualis referencia: 1x1-dokumentumok/terv/2026-10-14-cross-director-vendegkamera-vazlatok/metszet.html
 * (1. belepes, 2. kamera, 3. elfogyott). A partner szine a --partner valtozo, amit a
 * /e/{token}/brand.css ir felul (szerveroldalon validalt hex), igy inline stilus nincs (CSP).
 */

:root {
    --paper: #F6F1EA;
    --paper-ink: #2B2520;
    --line: #D9D1C7;
    --mute: #6F665C;
    --mute-soft: #8A8075;
    --danger: #B3402A;
    --sans: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-paper {
    background: var(--paper);
    color: var(--paper-ink);
}

.page-dark {
    background: #000;
    color: #fff;
}

/* ---------- Kozos oldalvaz ---------- */

.screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
    padding:
        calc(var(--safe-top) + 32px)
        calc(var(--safe-right) + 28px)
        calc(var(--safe-bottom) + 28px)
        calc(var(--safe-left) + 28px);
}

/* ---------- 1. Belepes (B): a kartya folytatasa ---------- */

.card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 28px 22px;
    text-align: center;
    border-radius: 4px;
    font-family: var(--serif);
}

.card__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 100%);
    max-height: 72px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.card__partner {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute-soft);
}

.card__title {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    margin-top: 14px;
    overflow-wrap: anywhere;
}

.card__title .accent {
    color: var(--partner, #C4603A);
}

.card__rule {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.card__lead {
    font-size: 20px;
    line-height: 1.3;
}

.card__note {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.45;
    color: var(--mute);
    margin-top: 12px;
}

.join {
    margin-top: auto;
    padding-top: 28px;
}

.field {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    font: inherit;
    font-size: 17px; /* 16 px alatt az iOS ranagyit a mezore */
    background: #fff;
    border: 1px solid var(--line);
    color: var(--paper-ink);
    -webkit-appearance: none;
    appearance: none;
}

.field::placeholder {
    color: #A39889;
}

.field:focus-visible {
    outline: 2px solid var(--partner, #C4603A);
    outline-offset: 1px;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 2px 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mute);
}

.consent a {
    color: inherit;
    text-decoration: underline;
}

.consent input {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid #B5AA9C;
    border-radius: 3px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.consent input:checked {
    background: var(--partner, #C4603A);
    border-color: var(--partner, #C4603A);
}

.consent input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent input:focus-visible {
    outline: 2px solid var(--partner, #C4603A);
    outline-offset: 2px;
}

.msg {
    margin: 8px 2px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--danger);
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    background: var(--paper-ink);
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    opacity: 0.85;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn:focus-visible {
    outline: 2px solid var(--partner, #C4603A);
    outline-offset: 2px;
}

/* ---------- Hozzajarulas-oldal (B stilus) ---------- */

.doc {
    padding-bottom: calc(var(--safe-bottom) + 40px);
}

.doc__title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 12px;
}

.doc__intro {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 16px;
}

.doc__point {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.doc__point h2 {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--mute-soft);
}

.doc__point p {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 8px;
}

.doc__summary {
    list-style: none;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.doc__summary li {
    font-size: 16px;
    line-height: 1.5;
}

.doc__summary li + li {
    margin-top: 8px;
}

.doc__list {
    list-style: none;
}

.doc__list li {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
}

.doc__list b {
    font-weight: 600;
}

/* Halk lablec-link a vendeg-oldalakon (belepes, varakozas, galeria): a jogi informaciora visz. */
.legal-link {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
}

.legal-link a {
    color: var(--mute-soft);
}

.page-dark .legal-link a {
    color: #777;
}

/* A Filmlet halk logoja a vendeg-oldalak laben (a partner markaja elol marad). */
.powered {
    margin-top: 10px;
    text-align: center;
    opacity: 0.45;
}

.powered__logo {
    display: inline-block;
    width: auto;
    height: 12px;
}

.doc__version {
    margin-top: 22px;
    font-size: 12px;
    color: var(--mute-soft);
}

.doc__back {
    margin-top: 28px;
}

/* ---------- Sotet oldalak (C): lezart, 404 ---------- */

.screen--dark {
    color: #fff;
}

.mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mark__dot {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--partner, #C4603A);
}

.mark__logo {
    max-height: 28px;
    max-width: 140px;
    object-fit: contain;
}

.closed {
    margin: auto 0;
    padding: 24px 0;
    text-align: center;
}

.closed__event {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.closed__title {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
}

.closed__text {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.35;
    color: #ddd;
}

.closed__text--small {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #bbb;
    margin-top: 10px;
}

/* ---------- 2. Kamera (C) es 3. Elfogyott ---------- */

.cam {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    --cam-bottom: calc(var(--safe-bottom) + 40px);
}

.cam__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.cam__video.is-front {
    transform: scaleX(-1); /* az elonezet tukor, a feltoltott kep nem */
}

.cam__flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 60ms linear;
}

.cam__flash.on {
    opacity: 1;
    transition: none;
}

.cam__num {
    position: absolute;
    top: calc(var(--safe-top) + 24px);
    left: 0;
    right: 0;
    text-align: center;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Feltoltetlen kep van a sorban: apro, halvany pont a szam alatt. Csak ket masodperc utan
   jelenik meg, hogy a gyors, jo halozaton ne villogjon minden exponalasnal. */
.cam__pending {
    position: absolute;
    top: calc(var(--safe-top) + 24px + 54px);
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cam.has-pending .cam__pending {
    opacity: 0.55;
    transition: opacity 0.3s ease 2s;
}

.cam__ring {
    position: absolute;
    bottom: var(--cam-bottom);
    left: 50%;
    width: 92px;
    height: 92px;
    margin-left: -46px;
    padding: 0;
    border-radius: 50%;
    border: 6px solid var(--partner, #C4603A);
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.cam__ring i {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
    display: block;
    transition: transform 80ms ease-out;
}

.cam__ring:active i {
    transform: scale(0.88);
}

.cam__flip {
    position: absolute;
    bottom: calc(var(--cam-bottom) + 24px);
    right: calc(var(--safe-right) + 36px);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.cam__flip::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
}

.cam__ring:focus-visible,
.cam__flip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cam__file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Kamera nem elerheto: egy mondat, a gyuru a telefon sajat kamera-alkalmazasat nyitja meg. */
.cam__denied {
    display: none;
    position: absolute;
    left: calc(var(--safe-left) + 28px);
    right: calc(var(--safe-right) + 28px);
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 17px;
    line-height: 1.45;
    color: #ddd;
}

.cam.no-camera .cam__denied {
    display: block;
}

.cam.no-camera .cam__flip {
    display: none;
}

/* Elfogytak a kepek: fekete hatter, nagy nulla, egy mondat. Nincs gomb. */
.cam__spent {
    display: none;
    position: absolute;
    left: calc(var(--safe-left) + 28px);
    right: calc(var(--safe-right) + 28px);
    bottom: calc(var(--safe-bottom) + 120px);
    text-align: center;
}

.cam__spent-title {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
}

.cam__spent-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #bbb;
}

.cam.is-spent .cam__spent {
    display: block;
}

.cam.is-spent .cam__video,
.cam.is-spent .cam__ring,
.cam.is-spent .cam__flip,
.cam.is-spent .cam__denied {
    display: none;
}

/* A vendeget letiltottak: ugyanaz a nyugodt, gombnelkuli kep, mint az elfogyott kepeknel, mas mondattal. */
.cam__blocked {
    display: none;
    position: absolute;
    left: calc(var(--safe-left) + 28px);
    right: calc(var(--safe-right) + 28px);
    bottom: calc(var(--safe-bottom) + 120px);
    text-align: center;
}

.cam.is-blocked .cam__blocked {
    display: block;
}

.cam.is-blocked .cam__video,
.cam.is-blocked .cam__ring,
.cam.is-blocked .cam__flip,
.cam.is-blocked .cam__denied,
.cam.is-blocked .cam__spent,
.cam.is-blocked .cam__num,
.cam.is-blocked .cam__pending {
    display: none;
}
