/* ==========================================================================
   Viva Melhor — portal de vouchers (QR Code dos times)
   Usado em Qrcode/TimeVerde e Qrcode/TimeAzul. Tema automático pelo time.
   ========================================================================== */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/oswald-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, .team-verde {
    --team: #1c8a4a;
    --team-soft: #27a55c;
    --team-deep: #0c2418;
    --team-ink: #07170f;
    --team-glow: rgba(39, 165, 92, .35);
    --accent: #c6f24e;
    --accent-2: #a8d93a;
    --accent-ink: #0c2418;
    --paper: #fbfdf7;
    --ink: #0f1f16;
    --muted: #5d6d62;
    --line: #e2e8e0;
    --radius: 18px;
    --radius-lg: 26px;
    --pill: 999px;
    --display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.team-azul {
    --team: #2459e0;
    --team-soft: #3a74f2;
    --team-deep: #0b1a44;
    --team-ink: #060f2b;
    --team-glow: rgba(58, 116, 242, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.qp-body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--team-ink); color: #fff; font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.qp-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.qp-body main { overflow-x: hidden; }
.qp-muted { color: rgba(255, 255, 255, .6); }
.qp-center { display: flex; justify-content: center; margin-top: 32px; }

/* ----- Botões ----- */
.qp-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 28px; overflow: hidden; border: 2px solid transparent; border-radius: var(--pill); cursor: pointer; font-family: var(--display); font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.qp-button:active { transform: translateY(1px) scale(.99); }
.qp-button:disabled { opacity: .6; cursor: wait; }
.qp-button-main { background: var(--accent); color: var(--accent-ink); animation: qp-glow 2.6s ease-in-out infinite; }
.qp-button-main::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: qp-shine 3.4s ease-in-out infinite; }
.qp-button-main:hover { transform: translateY(-2px); background: #d4f76e; }
.qp-button-ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.qp-button-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.qp-button-block { width: 100%; }
.qp-link-button { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--pill); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.qp-link-button:hover { background: rgba(255, 255, 255, .1); }

/* ----- Topo ----- */
.qp-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.qp-brand { width: 76px; margin-right: auto; }
.qp-team-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); background: var(--team); color: #fff; font-family: var(--display); font-size: .95rem; font-weight: 600; font-style: italic; text-transform: uppercase; }
.qp-team-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(198, 242, 78, .3); }
.qp-topbar form { margin: 0; }

.qp-toast { display: flex; flex-wrap: wrap; gap: 4px 10px; width: min(640px, 100% - 32px); margin: 14px auto 0; padding: 14px 18px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); animation: qp-drop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.qp-toast-error { background: #ffe4e1; color: #7d1f16; }

/* ----- Tipografia esportiva ----- */
.qp-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.qp-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #ff4d42; }
.qp-live::after { content: ""; position: absolute; inset: -5px; border: 2px solid #ff4d42; border-radius: 50%; animation: qp-ping 1.6s ease-out infinite; }
.qp-title { margin: 18px 0 20px; color: #fff; font-family: var(--display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; font-style: italic; line-height: .92; text-transform: uppercase; }
.qp-title-sm { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.qp-line { display: block; overflow: hidden; margin-top: -.14em; padding: .14em .08em .04em 0; }
.qp-line > span { display: inline-block; }
.qp-line-accent { margin-top: .08em; overflow: visible; line-height: 1.3; white-space: nowrap; }
.qp-line-accent em { padding: .02em .14em 0 .06em; color: var(--accent); font-style: italic; background: linear-gradient(var(--accent), var(--accent)) left center / 0% 100% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: qp-swipe .7s cubic-bezier(.7, 0, .2, 1) 1s forwards; }
.qp-lead { max-width: 520px; color: rgba(255, 255, 255, .88); font-size: 1.12rem; }
.qp-lead strong { color: var(--accent); }
.qp-sub { max-width: 520px; margin-top: 10px; color: rgba(255, 255, 255, .7); }
.qp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.qp-note { margin-top: 16px; color: rgba(255, 255, 255, .55); font-size: .84rem; }

/* ----- Hero ----- */
.qp-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); background:
    radial-gradient(ellipse 60% 70% at 12% 15%, var(--team-glow), transparent 60%),
    radial-gradient(ellipse 45% 55% at 92% 85%, rgba(198, 242, 78, .12), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px),
    linear-gradient(160deg, var(--team-deep), var(--team-ink)); }
.qp-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.qp-speed { position: absolute; left: -40%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; transform: rotate(-12deg); animation: qp-speed 3.6s linear infinite; }
.qp-speed-1 { top: 20%; width: 36%; }
.qp-speed-2 { top: 60%; width: 24%; animation-delay: 1.2s; animation-duration: 2.8s; opacity: .35; }
.qp-speed-3 { top: 85%; width: 44%; animation-delay: 2.2s; animation-duration: 4.4s; background: linear-gradient(90deg, transparent, var(--team-soft), transparent); }
.qp-watermark { position: absolute; bottom: -3vw; left: 0; color: transparent; font-family: var(--display); font-size: clamp(6rem, 19vw, 17rem); font-weight: 700; font-style: italic; line-height: 1; white-space: nowrap; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); animation: qp-drift 26s linear infinite alternate; }
.qp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(28px, 5vw, 64px); }

/* Tickets bloqueados */
.qp-locked { position: relative; display: grid; gap: 16px; }
.qp-locked-ticket { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; overflow: hidden; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); animation: qp-float 5s ease-in-out infinite; }
.qp-locked-ticket::before, .qp-locked-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--team-deep); }
.qp-locked-ticket::before { left: -11px; }
.qp-locked-ticket::after { right: -11px; }
.qp-tilt-1 { transform: rotate(-3deg); margin-right: 18px; }
.qp-tilt-2 { margin-left: 26px; animation-delay: -1.6s; }
.qp-tilt-3 { transform: rotate(2.5deg); margin-right: 8px; animation-delay: -3.2s; }
.qp-locked-value { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px; background: var(--team); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.qp-locked-ticket div { display: grid; flex: 1; filter: blur(.4px); }
.qp-locked-ticket small { color: var(--team); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qp-locked-ticket strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; font-style: italic; text-transform: uppercase; }
.qp-lock { font-size: 1.5rem; animation: qp-shake 3.6s ease-in-out infinite; }
.qp-tilt-2 .qp-lock { animation-delay: .4s; }
.qp-tilt-3 .qp-lock { animation-delay: .8s; }
.qp-locked-ticket > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-100%); animation: qp-sweep 4s ease-in-out infinite; }

/* Faixa */
.qp-ribbon { position: relative; z-index: 2; width: 120%; margin: -26px -10% 0; overflow: hidden; padding: 14px 0; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; font-style: italic; text-transform: uppercase; white-space: nowrap; transform: rotate(-2deg); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.qp-ribbon > div { display: flex; width: max-content; animation: qp-marquee 90s linear infinite; }
.qp-ribbon span { flex: 0 0 auto; padding-right: .5em; }

/* Seções */
.qp-section { padding: clamp(60px, 9vw, 110px) 0; }
.qp-section-head { max-width: 640px; margin-bottom: 36px; }
.qp-section-head h2 { margin: 12px 0 8px; font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; font-style: italic; line-height: .95; text-transform: uppercase; }
.qp-section-head p { color: rgba(255, 255, 255, .65); }
.qp-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 22px 0 0; list-style: none; }
.qp-steps::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--team-soft)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.7, 0, .2, 1) .2s; }
.qp-steps.is-visible::before, html:not(.qp-js) .qp-steps::before { transform: scaleX(1); }
.qp-steps li { position: relative; display: grid; gap: 6px; padding: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); transition: transform .3s, border-color .3s; }
.qp-steps li:hover { transform: translateY(-6px); border-color: var(--accent); }
.qp-step-no { position: absolute; top: -8px; right: 12px; color: transparent; font-family: var(--display); font-size: 4.6rem; font-weight: 700; font-style: italic; line-height: 1; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); }
.qp-step-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--accent); font-size: 1.5rem; transform: rotate(-6deg); }
.qp-steps strong { font-size: 1.1rem; }
.qp-steps small { color: rgba(255, 255, 255, .65); font-size: .92rem; }
.qp-js .qp-steps li { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.qp-js .qp-steps.is-visible li { opacity: 1; transform: none; }
.qp-steps.is-visible li:nth-child(2) { transition-delay: .15s; }
.qp-steps.is-visible li:nth-child(3) { transition-delay: .3s; }

/* Parceiros em carrossel infinito */
.qp-partners { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .03)); }
.qp-partner-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.qp-partner-track { display: flex; gap: 16px; width: max-content; padding: 8px 0 16px; animation: qp-marquee 50s linear infinite; }
.qp-partner-marquee:hover .qp-partner-track { animation-play-state: paused; }
.qp-partner { display: grid; justify-items: center; gap: 10px; width: 190px; flex: 0 0 auto; padding: 18px; border-radius: 20px; background: var(--paper); color: var(--ink); text-align: center; text-decoration: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.qp-partner:hover { transform: translateY(-6px) rotate(-1.5deg); }
.qp-partner-logo { display: grid; place-items: center; width: 100%; height: 86px; }
.qp-partner-logo img { max-height: 86px; object-fit: contain; }
.qp-partner-logo strong { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--team); color: #fff; font-family: var(--display); font-size: 1.5rem; }
.qp-partner-name { font-weight: 800; font-size: .9rem; }
.qp-partner-logo img { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .15)); }
.qp-partner.is-light-logo { background: linear-gradient(160deg, var(--team), var(--team-deep)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.qp-partner.is-light-logo .qp-partner-logo img { filter: none; }

/* ----- Diálogos ----- */
.qp-sheet { width: min(460px, calc(100vw - 24px)); max-height: 92vh; padding: 30px 26px 26px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.qp-sheet[open] { animation: qp-pop .45s cubic-bezier(.3, 1.4, .5, 1); }
.qp-sheet::backdrop { background: rgba(3, 10, 6, .7); backdrop-filter: blur(4px); }
.qp-sheet .qp-kicker { color: var(--team); }
.qp-sheet h2 { margin: 8px 0 6px; font-family: var(--display); font-size: 2rem; font-weight: 700; font-style: italic; line-height: 1; text-transform: uppercase; }
.qp-sheet > p { color: var(--muted); }
.qp-sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef2ec; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.qp-form { display: grid; gap: 14px; margin-top: 20px; }
.qp-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
.qp-form input:not([type="checkbox"]) { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 1.1rem; letter-spacing: .02em; }
.qp-form input:focus { outline: none; border-color: var(--team); box-shadow: 0 0 0 4px var(--team-glow); }
.qp-consent { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f1f5ef; font-weight: 500 !important; line-height: 1.45; }
.qp-consent input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--team); }
.qp-sheet .qp-button-main { background: var(--team); color: #fff; }
.qp-sheet .qp-button-main:hover { background: var(--team-soft); }

/* ----- Área do cliente ----- */
.qp-member-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background:
    radial-gradient(ellipse 60% 80% at 10% 10%, var(--team-glow), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px),
    linear-gradient(160deg, var(--team-deep), var(--team-ink)); }
.qp-member-hero .qp-title { margin-bottom: 12px; }
.qp-discovery { padding: 28px 0 70px; scroll-margin-top: 70px; }

.qp-gate { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 30px; border-radius: 28px; background: var(--paper); color: var(--ink); animation: qp-pop .7s cubic-bezier(.3, 1.3, .5, 1) .3s both; }
.qp-gate small, .qp-list-head small { color: var(--team); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.qp-gate h2 { margin: 4px 0 6px; font-family: var(--display); font-size: 2.2rem; font-weight: 700; font-style: italic; line-height: 1; text-transform: uppercase; }
.qp-gate p { color: var(--muted); }
.qp-gate .qp-button { margin-top: 18px; background: var(--team); color: #fff; }
.qp-status { min-height: 1.4em; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--team) !important; }
.qp-radar { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.qp-radar span { position: absolute; inset: 0; border: 3px solid var(--team); border-radius: 50%; opacity: 0; animation: qp-radar 2.7s ease-out infinite; }
.qp-radar span:nth-child(2) { animation-delay: .9s; }
.qp-radar span:nth-child(3) { animation-delay: 1.8s; }
.qp-radar b { position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--team); font-size: 2rem; box-shadow: 0 12px 30px -10px var(--team-glow); animation: qp-bounce 1.8s ease-in-out infinite; }

.qp-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qp-list-head small { color: var(--accent); }
.qp-list-head h2, .qp-panel-head h2 { font-family: var(--display); font-size: 2.2rem; font-weight: 700; font-style: italic; line-height: 1; text-transform: uppercase; }
.qp-count { padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.qp-store-list { display: grid; gap: 12px; }
.qp-store { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border: 2px solid transparent; border-radius: 22px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .2s; animation: qp-rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.qp-store:hover { transform: translateX(6px); border-color: var(--team); }
.qp-store:nth-child(2) { animation-delay: .07s; } .qp-store:nth-child(3) { animation-delay: .14s; } .qp-store:nth-child(4) { animation-delay: .21s; }
.qp-store:nth-child(5) { animation-delay: .28s; } .qp-store:nth-child(6) { animation-delay: .35s; } .qp-store:nth-child(n+7) { animation-delay: .42s; }
.qp-store-mark { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 16px; background: var(--team); color: #fff; font-family: var(--display); font-size: 1.3rem; font-weight: 700; font-style: italic; }
.qp-store-copy { display: grid; flex: 1; min-width: 0; }
.qp-store-copy small { color: var(--team); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qp-store-copy strong { font-size: 1.08rem; }
.qp-store-copy span { overflow: hidden; color: var(--muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.qp-store-meta { display: grid; justify-items: end; gap: 2px; text-align: right; }
.qp-store-meta b { padding: 4px 10px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-size: .8rem; white-space: nowrap; }
.qp-store-meta small { color: var(--muted); font-size: .78rem; }
.qp-store-go { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--team-deep); color: #fff; font-weight: 800; transition: transform .2s; }
.qp-store:hover .qp-store-go { transform: translateX(4px); }

.qp-panel { animation: qp-rise .5s cubic-bezier(.2, .8, .2, 1) both; scroll-margin-top: 70px; }
.qp-back { margin-bottom: 14px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--pill); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.qp-back:hover { background: rgba(255, 255, 255, .1); }
.qp-panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .06); }
.qp-panel-head > div { flex: 1; min-width: 200px; }
.qp-panel-head small { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.qp-panel-head p { color: rgba(255, 255, 255, .65); font-size: .9rem; }

/* Tickets de voucher */
.qp-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 18px; }
.qp-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; border-radius: 24px; background: var(--paper); color: var(--ink); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35)); animation: qp-rise .6s cubic-bezier(.2, .8, .2, 1) both; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.qp-ticket:hover { transform: translateY(-4px) rotate(-.5deg); }
.qp-ticket:nth-child(2) { animation-delay: .1s; } .qp-ticket:nth-child(3) { animation-delay: .2s; } .qp-ticket:nth-child(n+4) { animation-delay: .3s; }
.qp-ticket-main { display: grid; align-content: start; gap: 6px; padding: 22px 22px 20px; }
.qp-ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qp-ticket-value { color: var(--team); font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; font-style: italic; line-height: 1; text-transform: uppercase; }
.qp-ticket-thumb { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 16px; object-fit: cover; }
.qp-ticket-thumb-empty { display: grid; place-items: center; background: #eef4e6; font-size: 1.8rem; }
.qp-ticket h3 { font-size: 1.12rem; }
.qp-ticket-product { color: var(--muted); font-size: .92rem; }
.qp-ticket-valid { display: inline-flex; justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: var(--pill); background: #eef2ec; color: var(--muted); font-size: .76rem; font-weight: 700; }
.qp-ticket-details summary { margin-top: 6px; color: var(--team); font-size: .86rem; font-weight: 700; cursor: pointer; }
.qp-ticket-details p { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.qp-ticket-stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 20px 16px; border-left: 2px dashed #cfd8cc; border-radius: 0 24px 24px 0; background: linear-gradient(160deg, #f3f8ea, #e6f2d4); text-align: center; }
.qp-ticket-stub::before, .qp-ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--team-ink); }
.qp-ticket-stub::before { top: -12px; }
.qp-ticket-stub::after { bottom: -12px; }
.qp-ticket-stub small { color: var(--team); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qp-ticket-stub form { width: 100%; margin: 0; }
.qp-ticket-stub .qp-button { min-height: 50px; padding: 10px 14px; font-size: 1rem; }
.qp-barcode { display: block; width: 100%; padding: 8px 6px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.qp-barcode-svg { display: block; width: 100%; height: 72px; }
.qp-ticket.is-claimed, .qp-ticket.is-used { grid-template-columns: minmax(0, 1fr) 260px; }
.qp-ticket.is-claimed .qp-code { color: #000; }
.qp-code { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; }
.qp-ticket.is-claimed .qp-ticket-stub { background: linear-gradient(160deg, var(--accent), var(--accent-2)); }
.qp-ticket.is-claimed .qp-ticket-stub small { color: var(--accent-ink); }
.qp-ticket.is-claimed .qp-code { animation: qp-stamp .6s cubic-bezier(.3, 1.6, .5, 1) .4s both; }
.qp-ticket.is-used { filter: grayscale(.85) drop-shadow(0 10px 20px rgba(0, 0, 0, .3)); opacity: .8; }
.qp-stamp { position: absolute; top: 50%; left: 50%; padding: 4px 14px; border: 3px solid #c43434; border-radius: 10px; color: #c43434; font-family: var(--display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; transform: translate(-50%, -50%) rotate(-14deg); animation: qp-stamp-in .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; background: rgba(255, 255, 255, .7); }

.qp-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border-radius: 28px; background: var(--paper); color: var(--ink); text-align: center; }
.qp-empty > span { font-size: 3rem; animation: qp-float 3s ease-in-out infinite; }
.qp-empty strong { font-family: var(--display); font-size: 1.8rem; font-style: italic; text-transform: uppercase; }
.qp-empty p { color: var(--muted); }

.qp-footer { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px 16px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); font-size: .86rem; }
.qp-footer img { width: 64px; opacity: .7; }

/* ----- Entradas e revelação ----- */
.qp-enter { animation: qp-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.qp-line .qp-enter { animation-name: qp-line-up; }
.qp-enter-1 { animation-delay: .05s; } .qp-enter-2 { animation-delay: .15s; } .qp-enter-3 { animation-delay: .3s; }
.qp-enter-4 { animation-delay: .45s; } .qp-enter-5 { animation-delay: .65s; } .qp-enter-6 { animation-delay: .8s; } .qp-enter-7 { animation-delay: .95s; }
.qp-locked.qp-enter { animation-name: qp-pop; animation-duration: 1s; }
.qp-js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.qp-js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes qp-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes qp-line-up { from { opacity: 0; transform: translateY(105%) skewY(6deg); } }
@keyframes qp-pop { from { opacity: 0; transform: translateY(30px) scale(.92); } }
@keyframes qp-drop { from { opacity: 0; transform: translateY(-24px) scale(.95); } }
@keyframes qp-swipe { to { color: var(--accent-ink); background-size: 100% 100%; } }
@keyframes qp-speed { from { transform: translateX(0) rotate(-12deg); } to { transform: translateX(380%) rotate(-12deg); } }
@keyframes qp-drift { to { transform: translateX(-30%); } }
@keyframes qp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes qp-shake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
@keyframes qp-sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes qp-ping { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }
@keyframes qp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, .45); } 50% { box-shadow: 0 0 0 10px rgba(198, 242, 78, 0); } }
@keyframes qp-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes qp-marquee { to { transform: translateX(-50%); } }
@keyframes qp-radar { 0% { opacity: .8; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes qp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes qp-stamp { from { opacity: 0; transform: scale(2.2) rotate(-8deg); } }
@keyframes qp-stamp-in { from { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); } }

/* ----- Responsivo ----- */
@media (max-width: 860px) {
    .qp-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .qp-locked { max-width: 440px; }
    .qp-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .qp-topbar { padding: 8px 12px; }
    .qp-brand { width: 60px; }
    .qp-team-chip { font-size: .82rem; padding: 5px 10px; }
    .qp-link-button { padding: 8px 12px; font-size: .86rem; }
    .qp-title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
    .qp-title-sm { font-size: clamp(2.3rem, 12vw, 3.2rem); }
    .qp-actions .qp-button { flex: 1 1 100%; }
    .qp-locked-ticket { padding: 16px; }
    .qp-tilt-1, .qp-tilt-2, .qp-tilt-3 { margin: 0; }
    .qp-gate { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 24px 20px; text-align: center; }
    .qp-radar { width: 120px; height: 120px; }
    .qp-gate .qp-button { width: 100%; }
    .qp-store { padding: 14px; gap: 12px; }
    .qp-store-mark { width: 46px; height: 46px; }
    .qp-store-go { display: none; }
    .qp-store-meta b { font-size: .72rem; }
    .qp-ticket, .qp-ticket.is-claimed, .qp-ticket.is-used { grid-template-columns: minmax(0, 1fr); }
    .qp-ticket-stub { border-top: 2px dashed #cfd8cc; border-left: 0; border-radius: 0 0 24px 24px; }
    .qp-ticket-stub::before, .qp-ticket-stub::after { top: -13px; bottom: auto; left: auto; }
    .qp-ticket-stub::before { left: -12px; }
    .qp-ticket-stub::after { right: -12px; }
    .qp-list-head h2, .qp-panel-head h2 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .qp-js [data-reveal], .qp-js .qp-steps li { opacity: 1; transform: none; }
    .qp-steps::before { transform: none; }
    .qp-line-accent em { color: var(--accent-ink); background-size: 100% 100%; }
}
