:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #272b27;
    background: white;
    --green: #264c3c;
    --muted: #6c716b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; background: white; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b47b2b; outline-offset: 4px; }
a { color: var(--green); text-underline-offset: 3px; }
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; }
.canvas { flex: 0 0 auto; transform-origin: center; }
.page { width: min(1200px, calc(var(--viewport-width, 100vw) - 32px)); text-align: center; }
.page h1 { font-size: 42px; line-height: 1.15; margin: 0 0 28px; }
.ratings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rating { display: flex; flex-direction: column; align-items: center; border: 0; background: white; padding: 0; color: #272b27; }
.rating:active { opacity: .7; }
.rating img { display: block; width: 100%; height: min(420px, calc((var(--viewport-width, 100vw) - 80px) * .4), calc(var(--viewport-height, 100vh) - 220px)); min-height: 100px; object-fit: contain; margin: 0 auto; }
.rating-status { min-height: 28px; font-size: 22px; margin: 12px 0; color: #9a3927; }
.campaign { width: 100%; border: 2px solid var(--green); border-radius: 14px; padding: 22px; background: white; color: var(--green); display: flex; align-items: center; gap: 20px; text-align: left; }
.campaign-copy { flex: 1; }
.campaign-title { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.campaign-description { display: block; font-size: 24px; line-height: 1.3; }
.campaign-cta { background: var(--green); color: white; border-radius: 10px; padding: 18px; font-size: 24px; font-weight: 700; white-space: nowrap; }
.campaign-cta span { margin-left: 12px; }
.overlay { z-index: 10; background: #13271dd1; backdrop-filter: blur(7px); }
.modal { width: min(980px, calc(var(--viewport-width, 100vw) - 32px)); background: white; border-radius: 20px; padding: 24px; position: relative; box-shadow: 0 24px 100px #0003; }
.close { position: absolute; right: 18px; top: 16px; width: 48px; height: 48px; background: #eeeee7; border: 0; border-radius: 50%; font-size: 34px; line-height: 1; color: #52584e; }
.modal-header { padding-right: 40px; }
h2 { font-size: 33px; line-height: 1.15; letter-spacing: -.7px; margin: 0 0 12px; }
.modal-header > p:last-child { font-size: 22px; color: var(--muted); margin: 0 0 20px; }
.signup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.field { display: block; font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.field input { display: block; margin-top: 8px; height: 60px; padding: 0 16px; width: 100%; border: 1px solid #c9cec3; border-radius: 11px; color: #272b27; background: #fff; font-size: 24px; font-weight: 400; }
.field input::placeholder { color: #858a80; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 20px; line-height: 1.3; cursor: pointer; }
.consent input { flex: 0 0 32px; width: 32px; height: 32px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.form-status { color: #a03624; font-size: 20px; line-height: 1.3; min-height: 26px; margin: 10px 0; }
.primary { display: block; width: 100%; min-height: 60px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 700; font-size: 22px; }
.primary span { margin-left: 8px; }
.qr-panel { background: white; padding: 12px 0; display: flex; flex-direction: column; justify-content: center; }
.qr-intro { text-align: center; color: #272b27; font-size: 20px; line-height: 1.4; margin: 0 0 20px; }
.qr-intro strong { color: var(--green); }
.qr-list { display: flex; gap: 8px; justify-content: center; }
.qr-card { text-align: center; text-decoration: none; font-size: 18px; font-weight: 700; }
.qr-card img { display: block; width: 136px; height: 136px; background: white; border-radius: 5px; }
.qr-card span { display: block; margin-top: 12px; }
.thanks { width: 700px; padding: 44px; background: white; border-radius: 28px; text-align: center; }
.success-icon { display: inline-flex; justify-content: center; align-items: center; width: 76px; height: 76px; border-radius: 50%; background: #e6eddd; color: var(--green); font-size: 42px; margin-bottom: 24px; }
.thanks p { color: var(--muted); font-size: 23px; line-height: 1.5; margin: 18px 0 28px; }
.thanks .primary { width: 220px; margin: 0 auto; }
/* A JavaScript a ténylegesen látható területhez igazít, a képernyőbillentyűzettel is. */
.portrait .campaign { flex-wrap: wrap; }
.portrait .campaign-copy { flex-basis: 100%; }
.portrait .campaign-cta { width: 100%; text-align: center; }
.portrait .modal { max-width: 720px; }
.portrait .signup-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.portrait .qr-panel { flex-direction: row; align-items: center; gap: 16px; padding: 0; }
.portrait .qr-intro { margin: 0; }
.portrait .qr-card img { width: 144px; height: 144px; }
.portrait .qr-card span { margin-top: 6px; }
/* Nyitott képernyőbillentyűzetnél a mezők egymás mellé kerülnek. */
.compact .modal { width: 980px; padding: 22px; }
.compact .modal-header h2 { font-size: 26px; margin-bottom: 8px; }
.compact .modal-header > p:last-child { font-size: 17px; margin-bottom: 14px; }
.compact .close { width: 40px; height: 40px; top: 12px; right: 12px; }
.compact .signup-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.compact #signup-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.compact .field { margin: 0; }
.compact .field input { height: 50px; margin-top: 6px; font-weight: 400; }
.compact .consent, .compact .form-status, .compact #signup-submit { grid-column: 1 / -1; }
.compact .form-status { margin: 0; }
.compact .primary { min-height: 50px; padding: 12px; }
.compact .qr-panel { padding: 12px 8px; }
.compact .qr-intro { font-size: 14px; margin-bottom: 12px; }
.compact .qr-card { font-size: 13px; }
.compact .qr-card img { width: 112px; height: 112px; }
.compact .qr-card span { margin-top: 6px; }
@media (max-width: 540px) {
    .portrait .qr-panel { flex-direction: column; gap: 12px; }
    .portrait .qr-list { width: 100%; }
    .portrait .qr-card { flex: 1; min-width: 0; overflow-wrap: anywhere; }
    .portrait .qr-card img { width: 100%; height: auto; }
}
