/* Vitrina · QR landing page (mobile-first; framed as a phone on desktop). */
:root { --adv: #7B5CFF; --adv-bg: #0B0D17; --adv-on: #fff; }

.phone-screen { background: var(--bg); }
.lp { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--bg); scrollbar-width: none; }
.lp::-webkit-scrollbar { display: none; }

.lp-boot { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 40px 28px; text-align: center; color: var(--fg-muted); font-weight: 600; }
.lp-boot.is-error svg { color: var(--fg-subtle); }
.lp-boot.is-error b { color: var(--fg); font-family: var(--font-display); font-size: 19px; }
.lp-boot.is-error .btn { margin-top: 8px; }

/* Hero: the ad's own photo, fading into the advertiser colour */
.lp-hero { position: relative; height: 312px; flex: none; color: #fff; background: var(--adv-bg); overflow: hidden; }
.lp-hero > .lp-art { position: absolute; inset: 0; }
.lp-hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, color-mix(in srgb, var(--adv-bg) 96%, transparent) 0%, color-mix(in srgb, var(--adv-bg) 70%, transparent) 26%, transparent 62%); }
.lp-hero-top { position: absolute; z-index: 2; top: calc(var(--safe-top) + 6px); left: 20px; right: 20px; display: flex; justify-content: flex-end; align-items: center; }
.lp-tag { height: 26px; padding: 0 11px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0, 0, 0, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.lp-hero.is-brand .lp-hero-top { justify-content: flex-start; }
.lp-hero-logo { height: 26px; width: auto; }
.lp-adv { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 46px; display: flex; align-items: center; gap: 12px; animation: rise-in .5s var(--ease-out) both; }
.lp-logo { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.lp-adv-text { display: grid; gap: 1px; min-width: 0; }
.lp-adv-text b { font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.lp-adv-text small { font-size: 13px; font-weight: 600; opacity: .8; }

/* Body sheet */
.lp-body { position: relative; z-index: 3; margin-top: -26px; padding: 26px 20px 6px; border-radius: 26px 26px 0 0; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lp-thanks { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 5px; border-radius: 99px;
  font-size: 13.5px; font-weight: 700; color: var(--green-ink); background: var(--green-soft); }
.lp-thanks-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); animation: pop-in .5s var(--ease-spring) .15s both; }
.lp-thanks.is-muted { padding-left: 12px; color: var(--fg-muted); background: var(--surface-3); }
@keyframes pop-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-title { font-family: var(--font-display); font-size: 27px; font-weight: 650; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; margin-top: 2px; }
.lp-sub { font-size: 15.5px; line-height: 1.5; color: var(--fg-muted); text-wrap: pretty; margin-top: -4px; }

/* Coupon ticket */
.ticket { position: relative; margin-top: 6px; border-radius: 22px; color: #fff; background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--adv) 26%, transparent), transparent 60%), var(--adv-bg);
  box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--adv-bg) 90%, transparent), 0 2px 6px rgba(0, 0, 0, .08); }
.ticket-top { display: grid; gap: 6px; padding: 20px 20px 14px; }
.ticket-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--adv); }
.ticket-perk { font-family: var(--font-display); font-size: 24px; font-weight: 650; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.ticket-note { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.ticket-cut { position: relative; height: 22px; }
.ticket-cut::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed rgba(255, 255, 255, .2); }
.ticket-cut::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(circle at 0 50%, var(--bg) 0 11px, transparent 11.5px),
    radial-gradient(circle at 100% 50%, var(--bg) 0 11px, transparent 11.5px); }
.ticket-bottom { display: grid; gap: 10px; padding: 8px 20px 20px; }
.ticket-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.ticket-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 66px; padding: 0 10px 0 18px; border-radius: 16px;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px dashed rgba(255, 255, 255, .34); transition: background var(--dur-fast), border-color var(--dur-fast); }
.ticket-code:hover { background: rgba(255, 255, 255, .12); }
.ticket-code:active { transform: scale(.99); }
.ticket-code .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-code.is-long .mono { font-size: 19px; letter-spacing: .05em; }
.ticket-copy { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 11px; flex: none;
  font-size: 13.5px; font-weight: 700; color: var(--adv-on); background: var(--adv); transition: background var(--dur-fast), color var(--dur-fast); }
.ticket-code.is-copied { border-color: rgba(74, 222, 128, .7); }
.ticket-code.is-copied .ticket-copy { background: #22C55E; color: #fff; }
.ticket-how, .ticket-valid { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.ticket-how svg, .ticket-valid svg { flex: none; margin-top: 2px; color: var(--adv); }
.ticket-valid { color: rgba(255, 255, 255, .66); }
.ticket.is-ended .ticket-code { opacity: .45; pointer-events: none; }

/* Place */
.lp-place { margin-top: 4px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.lp-map { position: relative; height: 168px; background: var(--surface-3); }
.lp-map.is-static { display: grid; place-items: center; color: var(--fg-muted); font-weight: 650; font-size: 13px; }
.lp-map.is-static span { display: grid; justify-items: center; gap: 6px; }
.lp-map .leaflet-control-attribution { font-size: 8.5px !important; }
.lp-place-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 14px; }
.lp-place-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--adv-bg); background: color-mix(in srgb, var(--adv-bg) 10%, var(--surface)); }
.lp-place-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.lp-place-text b { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-place-text small { font-size: 13px; color: var(--fg-muted); }
.lp-map-btn { --btn-bg: var(--adv-bg); --btn-fg: #fff; --btn-h: 40px; padding: 0 13px; flex: none; }
.lp-map-btn:hover { background: color-mix(in srgb, var(--adv-bg) 85%, #fff); }

.lp-cta { --btn-bg: var(--adv-bg); --btn-fg: #fff; margin-top: 4px; }
.lp-cta:hover { background: color-mix(in srgb, var(--adv-bg) 85%, #fff); }
.lp-fine { font-size: 13px; line-height: 1.5; color: var(--fg-muted); text-align: center; margin-top: -4px; padding: 0 6px; }
.lp-share { margin-top: 2px; }
.lp-share .btn { --btn-h: 48px; font-size: 14.5px; background: var(--surface); }

/* Unknown code: other offers */
.lp-list { display: grid; gap: 10px; margin-top: 4px; }
.lp-mini { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.lp-mini:active { transform: scale(.99); }
.lp-mini > svg { flex: none; color: var(--fg-subtle); }
.lp-mini-art { position: relative; width: 84px; aspect-ratio: 16 / 10; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.lp-mini-art .art { position: absolute; inset: 0; }
.lp-mini-text { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.3; }
.lp-mini-text small { font-size: 12px; font-weight: 600; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mini-text b { font-size: 14.5px; font-weight: 700; }

/* Footer */
.lp-foot { display: grid; justify-items: center; gap: 6px; padding: 26px 28px calc(var(--safe-bottom) + 30px); text-align: center; }
.lp-foot-logo { height: 22px; width: auto; margin-bottom: 4px; opacity: .9; }
.lp-foot b { font-size: 13px; font-weight: 700; color: var(--fg); }
.lp-foot span { font-size: 12px; line-height: 1.5; color: var(--fg-subtle); max-width: 34ch; }

/* Toast */
.lp-toast { position: absolute; z-index: 50; left: 50%; bottom: calc(var(--safe-bottom) + 18px); transform: translate(-50%, 12px); max-width: calc(100% - 40px);
  padding: 11px 16px; border-radius: 99px; font-size: 14px; font-weight: 650; color: #fff; background: rgba(11, 13, 23, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.lp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .lp-body { padding-left: 16px; padding-right: 16px; }
  .ticket-code .mono { font-size: 21px; }
  .lp-title { font-size: 24px; }
}
