:root {
  --v5-bg: #f3f4ef;
  --v5-paper: #ffffff;
  --v5-ink: #101210;
  --v5-muted: #666b65;
  --v5-line: #d6d9d2;
  --v5-soft: #e8ebe4;
  --v5-accent: #d9ff43;
  --v5-cobalt: #3154c6;
  --v5-cobalt-soft: #e5eafd;
  --v5-coral: #e85f48;
  --v5-error-soft: #ffebe7;
}

.v5-consent a {
  color: inherit;
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--v5-bg);
  color: var(--v5-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang HK", "Noto Sans TC", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--v5-cobalt); outline-offset: 3px; }

.customer-shell { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 0 0 128px; }
.customer-shell.narrow { width: min(100% - 40px, 1020px); }
.customer-shell.event-shell { width: min(100% - 40px, 1180px); }
.customer-shell.auth-shell { width: min(100% - 40px, 1120px); min-height: 100vh; padding-bottom: 0; }

.v5-wordmark { display: inline-block; font-size: 16px; font-weight: 950; line-height: .82; text-decoration: none; text-transform: uppercase; }
.v5-appbar, .v5-auth-appbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--v5-line); }
.v5-appbar-tools, .v5-account-link, .v5-location, .v5-back-link { display: flex; align-items: center; }
.v5-appbar-tools { gap: 14px; }
.v5-account-link, .v5-location, .v5-back-link { min-height: 44px; gap: 7px; font-size: 12px; font-weight: 800; text-decoration: none; }
.v5-location, .v5-back-link { color: var(--v5-muted); }
.v5-account-link svg, .v5-location svg, .v5-back-link svg { width: 18px; height: 18px; }
.v5-member-name { max-width: 180px; overflow: hidden; color: var(--v5-muted); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.v5-icon-button { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--v5-line); border-radius: 6px; background: var(--v5-paper); color: var(--v5-ink); cursor: pointer; text-decoration: none; }
.v5-icon-button:hover { border-color: var(--v5-ink); }
.v5-icon-button svg { width: 18px; height: 18px; }

.v5-kicker, .v5-step { margin: 0 0 7px; color: var(--v5-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.v5-button { min-height: 48px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 6px; background: var(--v5-ink); color: white; font-weight: 850; text-decoration: none; cursor: pointer; }
.v5-button.accent { background: var(--v5-accent); color: var(--v5-ink); }
.v5-button.dark { background: var(--v5-ink); color: white; }
.v5-button.muted-button { background: var(--v5-soft); color: var(--v5-muted); cursor: default; }
.v5-button.full { width: 100%; }
.v5-button:disabled { opacity: .58; cursor: wait; }
.v5-button svg { width: 18px; height: 18px; }
.v5-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; text-decoration: none; }
.v5-text-link svg { width: 16px; height: 16px; }
.v5-actions { margin-top: 25px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.v5-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

.v5-home-lead { margin-top: 28px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.v5-member-command { min-height: 478px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: var(--v5-ink); color: white; }
.v5-member-command .v5-kicker { color: #aeb2ac; }
.v5-member-command h1 { max-width: 13ch; margin: 0; font-size: 43px; line-height: 1.02; }
.v5-lead-copy { max-width: 39ch; margin: 16px 0 0; color: #c3c7c0; font-size: 15px; }
.v5-stamp-status { padding-top: 19px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 7px 18px; border-top: 1px solid #414541; }
.v5-stamp-status > div:first-child { display: flex; align-items: baseline; gap: 4px; }
.v5-stamp-status > div:first-child strong { font-size: 40px; line-height: .9; }
.v5-stamp-status > div:first-child span { color: #9ca19a; font-size: 11px; }
.v5-stamp-status > div:nth-child(2) span, .v5-stamp-status > div:nth-child(2) strong { display: block; }
.v5-stamp-status > div:nth-child(2) span { color: #9ca19a; font-size: 10px; text-transform: uppercase; }
.v5-stamp-status > div:nth-child(2) strong { margin-top: 2px; font-size: 14px; }
.v5-progress { grid-column: 1 / -1; height: 4px; margin-top: 5px; background: #3a3e3a; }
.v5-progress span { height: 100%; display: block; background: var(--v5-accent); }

.v5-next-event { min-height: 478px; display: grid; grid-template-rows: 252px minmax(0, 1fr); overflow: hidden; background: var(--v5-paper); color: var(--v5-ink); text-decoration: none; }
.v5-next-event-media { min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; overflow: hidden; background: var(--v5-ink); }
.v5-next-event-media img { width: 100%; height: 100%; min-width: 0; display: block; object-fit: cover; object-position: center 48%; }
.v5-next-event-media img:first-child { object-position: 46% 52%; }
.v5-next-event-copy { padding: 20px 23px; }
.v5-next-event-copy > div:first-child, .v5-next-event-copy footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v5-next-event-copy time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 850; }
.v5-next-event-copy h2 { margin: 3px 0 10px; font-size: 31px; line-height: 1.05; }
.v5-next-event-copy p { margin: 0; display: flex; flex-wrap: wrap; gap: 11px; color: var(--v5-muted); font-size: 12px; }
.v5-next-event-copy p span { display: inline-flex; align-items: center; gap: 5px; }
.v5-next-event-copy p svg { width: 15px; height: 15px; }
.v5-next-event-copy footer { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--v5-line); font-size: 11px; font-weight: 800; }
.v5-next-event-copy footer span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.v5-next-event-copy footer svg { width: 15px; height: 15px; }

.v5-section { margin-top: 72px; }
.v5-section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.v5-section-heading h2 { margin: 0; font-size: 28px; line-height: 1.08; }
.v5-section-heading > span { display: inline-flex; align-items: center; gap: 5px; color: var(--v5-muted); font-size: 11px; }
.v5-section-heading > span svg { width: 15px; height: 15px; }
.v5-event-list { border-top: 1px solid var(--v5-ink); }
.v5-event-row { min-height: 112px; padding: 18px 4px; display: grid; grid-template-columns: 62px minmax(0, 1fr) 32px; align-items: center; gap: 18px; border-bottom: 1px solid var(--v5-line); color: var(--v5-ink); text-decoration: none; }
.v5-event-row time { display: flex; align-items: baseline; gap: 4px; }
.v5-event-row time strong { font-size: 28px; line-height: 1; }
.v5-event-row time span { color: var(--v5-muted); font-size: 10px; }
.v5-event-type { color: var(--v5-cobalt); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.v5-event-row h3 { margin: 4px 0 3px; font-size: 18px; }
.v5-event-row p { margin: 0; color: var(--v5-muted); font-size: 12px; }
.v5-event-row > svg { width: 20px; height: 20px; }
.v5-empty { padding: 28px 0; color: var(--v5-muted); }

.v5-station-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: #e7e9e3; }
.v5-station-story > div { padding: 44px; align-self: center; }
.v5-station-story h2 { max-width: 12ch; margin: 0; font-size: 38px; line-height: 1.03; }
.v5-station-story > div > p:not(.v5-kicker) { max-width: 44ch; color: var(--v5-muted); }
.v5-station-story figure { position: relative; min-height: 420px; margin: 0; overflow: hidden; background: #dce3e5; }
.v5-station-story figure img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.v5-station-story figcaption { position: absolute; right: 16px; bottom: 16px; padding: 13px 15px; background: var(--v5-ink); color: white; }
.v5-station-story figcaption span, .v5-station-story figcaption strong { display: block; }
.v5-station-story figcaption span { color: #aeb2ac; font-size: 9px; text-transform: uppercase; }
.v5-station-story figcaption strong { margin-top: 3px; font-size: 14px; }
.v5-benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--v5-ink); }
.v5-benefit-list article { min-height: 205px; padding: 22px 22px 18px 0; display: grid; grid-template-columns: 31px 34px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid var(--v5-line); }
.v5-benefit-list article + article { padding-left: 22px; border-left: 1px solid var(--v5-line); }
.v5-benefit-list article > span { color: var(--v5-muted); font-size: 10px; }
.v5-benefit-list article > svg { width: 22px; height: 22px; }
.v5-benefit-list article > div { grid-column: 2 / -1; }
.v5-benefit-list h3 { margin: 17px 0 6px; font-size: 18px; }
.v5-benefit-list p { margin: 0; color: var(--v5-muted); font-size: 13px; }
.v5-visit { margin-top: 72px; padding: 42px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 60px; background: var(--v5-ink); color: white; }
.v5-visit .v5-kicker { color: #aeb2ac; }
.v5-visit h2 { margin: 0; font-size: 34px; line-height: 1.04; }
.v5-visit p:not(.v5-kicker) { max-width: 58ch; color: #b9bdb7; }
.v5-visit dl { margin: 0; align-self: center; }
.v5-visit dl div { padding: 15px 0; border-top: 1px solid #414441; }
.v5-visit dt { color: #9da19b; font-size: 10px; text-transform: uppercase; }
.v5-visit dd { margin: 5px 0 0; font-weight: 800; }

.customer-nav { position: fixed; top: 9px; left: 50%; z-index: 80; width: min(440px, 42vw); min-height: 58px; padding: 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(16, 18, 16, .16); border-radius: 7px; background: rgba(255, 255, 255, .98); transform: translateX(-50%); }
.customer-nav > a { min-width: 0; min-height: 48px; padding: 6px 3px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; color: #747973; font-size: 10px; font-weight: 800; text-decoration: none; }
.customer-nav > a svg { width: 17px; height: 17px; }
.customer-nav > a.active { background: #eceee9; color: var(--v5-ink); }
.customer-nav > a.customer-nav-scan { color: var(--v5-ink); }
.customer-nav-scan-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; background: var(--v5-accent); }
.customer-nav > a.customer-nav-scan svg { width: 16px; height: 16px; }

.v5-auth-page { background: var(--v5-paper); }
.v5-auth-appbar { position: relative; z-index: 2; }
.v5-auth-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); background: var(--v5-paper); }
.v5-auth-layout.reverse .v5-auth-story { order: 2; }
.v5-auth-layout.reverse .v5-auth-form { order: 1; }
.v5-auth-story { position: relative; min-height: 690px; overflow: hidden; background: var(--v5-ink); }
.v5-auth-story::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 8, .27); }
.v5-auth-story img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }
.v5-auth-story > div { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 34px; color: white; }
.v5-auth-story .v5-kicker { color: rgba(255,255,255,.72); }
.v5-auth-story h2 { max-width: 13ch; margin: 0; font-size: 41px; line-height: 1.02; }
.v5-auth-form { width: min(100%, 590px); min-height: 690px; padding: 52px 54px 34px; display: flex; flex-direction: column; justify-content: center; }
.v5-auth-form.login { padding-top: 80px; padding-bottom: 80px; }
.v5-auth-intro h1 { max-width: 12ch; margin: 0; font-size: 38px; line-height: 1.04; }
.v5-auth-intro > p:last-child { max-width: 48ch; margin: 12px 0 0; color: var(--v5-muted); }
.v5-auth-proof { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-auth-proof span { min-height: 67px; padding: 11px 4px; display: flex; flex-direction: column; justify-content: center; gap: 5px; font-size: 10px; font-weight: 800; }
.v5-auth-proof span + span { padding-left: 12px; border-left: 1px solid var(--v5-line); }
.v5-auth-proof svg { width: 17px; height: 17px; color: var(--v5-cobalt); }
.v5-form { margin-top: 27px; }
.v5-field + .v5-field { margin-top: 16px; }
.v5-field label { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #3f443f; font-size: 11px; font-weight: 800; }
.v5-field label small { color: var(--v5-muted); font-size: 10px; font-weight: 600; }
.v5-field > input, .v5-phone-field { width: 100%; min-height: 52px; border: 1px solid #bfc3bc; border-radius: 5px; background: var(--v5-paper); color: var(--v5-ink); }
.v5-field > input { padding: 12px 14px; }
.v5-phone-field { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; }
.v5-phone-field > span { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--v5-line); color: var(--v5-muted); font-size: 12px; font-weight: 700; }
.v5-phone-field input { min-width: 0; height: 50px; padding: 12px 14px; border: 0; outline: 0; background: transparent; }
.v5-field > input:focus, .v5-phone-field:focus-within { border-color: var(--v5-cobalt); box-shadow: 0 0 0 1px var(--v5-cobalt); outline: 0; }
.v5-consent { margin: 18px 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--v5-muted); font-size: 11px; line-height: 1.45; cursor: pointer; }
.v5-consent input { width: 19px; height: 19px; margin: 0; accent-color: var(--v5-ink); }
.v5-auth-switch { margin: 24px 0 0; color: var(--v5-muted); font-size: 12px; text-align: center; }
.v5-auth-switch a { color: var(--v5-ink); font-weight: 850; }
.v5-error { margin-top: 18px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border-left: 3px solid var(--v5-coral); background: var(--v5-error-soft); color: #83362b; font-size: 12px; }
.v5-error svg { width: 18px; height: 18px; flex: 0 0 auto; }

.v5-card-title { padding: 36px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--v5-line); }
.v5-card-title h1 { margin: 0; font-size: 38px; line-height: 1.05; }
.v5-card-title > p { max-width: 36ch; margin: 0; color: var(--v5-muted); font-size: 13px; }
.v5-section-tabs { margin-top: 16px; display: flex; gap: 4px; }
.v5-section-tabs a { min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; color: var(--v5-muted); font-size: 10px; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.v5-section-tabs a.active { background: var(--v5-ink); color: white; }
.v5-section-tabs svg { width: 16px; height: 16px; }
.v5-card-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 14px; align-items: start; }
.v5-member-pass { position: sticky; top: 82px; min-height: 440px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: var(--v5-ink); color: white; }
.v5-member-pass-top { display: flex; justify-content: space-between; align-items: start; }
.v5-member-pass-top > span { font-size: 15px; font-weight: 950; line-height: .82; text-transform: uppercase; }
.v5-member-pass-top svg { width: 23px; height: 23px; color: var(--v5-accent); }
.v5-member-pass p { margin: 0 0 5px; color: #aeb2ac; font-size: 10px; text-transform: uppercase; }
.v5-member-pass h2 { max-width: 13ch; margin: 0 0 10px; font-size: 29px; line-height: 1.05; overflow-wrap: anywhere; }
.v5-member-pass .v5-code { color: #bfc3bd; font-size: 12px; }
.v5-card-content { min-width: 0; }
.v5-card-content > section { padding: 28px; background: var(--v5-paper); }
.v5-card-content > section + section { margin-top: 14px; }
.v5-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.v5-panel-heading h2 { margin: 0; font-size: 28px; line-height: 1.05; }
.v5-stamps-panel { background: var(--v5-accent) !important; }
.v5-stamps-panel .v5-kicker { color: #4c561d; }
.v5-stamp-reward { max-width: 22ch; text-align: right; }
.v5-stamp-reward span, .v5-stamp-reward strong { display: block; }
.v5-stamp-reward span { color: #4c561d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.v5-stamp-reward strong { margin-top: 3px; font-size: 13px; }
.v5-stamp-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 7px; }
.v5-stamp-grid > span { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border: 1px solid rgba(16,18,16,.42); border-radius: 50%; color: rgba(16,18,16,.65); font-size: 10px; font-weight: 900; }
.v5-stamp-grid > span.earned { background: var(--v5-ink); color: white; }
.v5-stamp-grid svg { width: 15px; height: 15px; }
.v5-panel-note { margin: 17px 0 0; color: #4c561d; font-size: 11px; }
.v5-points-number { font-size: 43px; line-height: 1; }
.v5-status { min-height: 31px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; background: var(--v5-soft); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.v5-status.ready { background: var(--v5-cobalt-soft); color: #263f9e; }
.v5-status svg { width: 15px; height: 15px; }
.v5-reward-summary { margin-top: 24px; padding: 16px 0; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-reward-summary div span, .v5-reward-summary div strong { display: block; }
.v5-reward-summary span { color: var(--v5-muted); font-size: 11px; }
.v5-reward-summary strong { margin-top: 3px; }
.v5-reward-track { position: relative; height: 4px; margin: 28px 10px 23px; background: var(--v5-line); }
.v5-reward-track > span { position: absolute; inset: 0 auto 0 0; background: var(--v5-cobalt); }
.v5-reward-track > i { position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid var(--v5-paper); border-radius: 50%; background: #aeb2ac; box-shadow: 0 0 0 1px #aeb2ac; transform: translate(-50%, -50%); }
.v5-reward-track > i.ready { background: var(--v5-cobalt); box-shadow: 0 0 0 1px var(--v5-cobalt); }
.v5-reward-list > div { min-height: 65px; padding: 11px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--v5-line); }
.v5-reward-list p { margin: 2px 0 0; color: var(--v5-muted); font-size: 11px; }
.v5-reward-list .v5-code { color: var(--v5-muted); font-size: 11px; }
.v5-reward-state { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--v5-soft); color: var(--v5-muted); }
.v5-reward-state.ready { background: var(--v5-accent); color: var(--v5-ink); }
.v5-reward-state svg { width: 16px; height: 16px; }
.v5-empty-state { margin-top: 22px; padding: 18px 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-empty-state > svg { width: 22px; height: 22px; color: var(--v5-cobalt); }
.v5-empty-state p { margin: 3px 0 0; color: var(--v5-muted); font-size: 12px; }
.v5-empty-state.compact { margin-top: 0; }
.v5-pass-panel { background: var(--v5-cobalt-soft) !important; }
.v5-pass-panel .v5-panel-heading > svg { width: 24px; height: 24px; color: var(--v5-cobalt); }
.v5-pass-panel > p { max-width: 62ch; margin: 16px 0 0; color: #465071; font-size: 13px; }
.v5-credit { margin-top: 20px; }
.v5-credit strong, .v5-credit span { display: block; }
.v5-credit strong { font-size: 40px; line-height: 1; }
.v5-credit span { margin-top: 7px; color: #465071; font-size: 11px; }
.v5-credit-track { height: 5px; margin: 17px 0 11px; background: rgba(49,84,198,.18); }
.v5-credit-track span { height: 100%; display: block; background: var(--v5-cobalt); }
.v5-pass-facts { display: flex; justify-content: space-between; gap: 12px; color: #465071; font-size: 10px; font-weight: 800; }
.v5-activity-row { min-height: 62px; padding: 11px 0; display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--v5-line); }
.v5-activity-row > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--v5-soft); }
.v5-activity-row svg { width: 16px; height: 16px; }
.v5-activity-row p { margin: 2px 0 0; color: var(--v5-muted); font-size: 11px; }
.v5-activity-row time { color: var(--v5-muted); font-size: 10px; }
.v5-qr-dialog { width: min(100% - 28px, 440px); padding: 0; border: 0; border-radius: 7px; background: var(--v5-paper); color: var(--v5-ink); box-shadow: 0 22px 70px rgba(0,0,0,.32); }
.v5-qr-dialog::backdrop { background: rgba(8,10,8,.72); }
.v5-qr-dialog header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--v5-line); }
.v5-qr-dialog header span, .v5-qr-dialog header strong { display: block; }
.v5-qr-dialog header span { color: var(--v5-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.v5-qr-dialog header strong { margin-top: 2px; }
.v5-qr-dialog > div { padding: 24px; text-align: center; }
.v5-qr-image { width: 260px; height: 260px; margin: 0 auto 14px; padding: 10px; border: 1px solid var(--v5-line); background: white; }
.v5-qr-image img { width: 240px; height: 240px; display: block; image-rendering: pixelated; }
.v5-qr-dialog > div > .v5-code { font-size: 18px; }
.v5-qr-dialog > div > p { margin: 4px 0 0; color: var(--v5-muted); font-size: 12px; }

.v5-appbar.event { border-bottom: 0; }
.v5-event-hero { position: relative; aspect-ratio: 16 / 7.2; min-height: 310px; overflow: hidden; background: var(--v5-ink); }
.v5-event-hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.v5-event-hero-media img { width: 100%; height: 100%; min-width: 0; display: block; object-fit: cover; object-position: center 48%; }
.v5-event-hero-media img:first-child { object-position: 46% 52%; }
.v5-event-meta { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 7px; }
.v5-event-meta span { min-height: 29px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; background: var(--v5-accent); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.v5-event-meta span + span { background: var(--v5-paper); }
.v5-event-meta svg { width: 14px; height: 14px; }
.v5-event-layout { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 64px; align-items: start; }
.v5-event-title { padding-bottom: 30px; border-bottom: 1px solid var(--v5-line); }
.v5-event-title h1 { max-width: 16ch; margin: 0; font-size: 46px; line-height: 1.02; }
.v5-event-title > p:last-child { max-width: 62ch; margin: 18px 0 0; font-size: 16px; }
.v5-event-section { margin-top: 48px; }
.v5-member-ticket { padding: 25px; border-top: 4px solid var(--v5-accent); background: var(--v5-paper); }
.v5-member-ticket .v5-section-heading > span { padding: 7px 9px; border-radius: 4px; background: var(--v5-accent); font-size: 10px; font-weight: 900; }
.v5-member-ticket > p { max-width: 61ch; color: var(--v5-muted); font-size: 12px; }
.v5-member-ticket > .v5-button { margin-top: 18px; }
.v5-ticket-prices { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--v5-line); border-left: 1px solid var(--v5-line); }
.v5-ticket-prices > span { min-height: 78px; padding: 13px; border-right: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); }
.v5-ticket-prices > span.member { background: var(--v5-accent); }
.v5-ticket-prices small, .v5-ticket-prices strong { display: block; }
.v5-ticket-prices small { color: var(--v5-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.v5-ticket-prices strong { margin-top: 7px; font-size: 17px; }
.v5-event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--v5-ink); border-left: 1px solid var(--v5-line); }
.v5-event-facts div { min-height: 94px; padding: 15px; border-right: 1px solid var(--v5-line); border-bottom: 1px solid var(--v5-line); background: var(--v5-paper); }
.v5-event-facts dt { display: flex; align-items: center; gap: 6px; color: var(--v5-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.v5-event-facts dt svg { width: 15px; height: 15px; }
.v5-event-facts dd { margin: 7px 0 0; font-weight: 800; }
.v5-info-rows { border-top: 1px solid var(--v5-ink); }
.v5-info-rows > div { min-height: 69px; padding: 13px 0; display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--v5-line); }
.v5-info-rows > div > svg { width: 21px; height: 21px; color: var(--v5-cobalt); }
.v5-info-rows small, .v5-info-rows strong { display: block; }
.v5-info-rows small { color: var(--v5-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.v5-info-rows strong { margin-top: 3px; font-size: 13px; }
.v5-more-events { border-top: 1px solid var(--v5-ink); }
.v5-more-events a { min-height: 68px; padding: 12px 0; display: grid; grid-template-columns: 57px minmax(0, 1fr) 22px; align-items: center; gap: 11px; border-bottom: 1px solid var(--v5-line); text-decoration: none; }
.v5-more-events time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 850; }
.v5-more-events span strong, .v5-more-events span small { display: block; }
.v5-more-events span small { margin-top: 2px; color: var(--v5-muted); }
.v5-more-events svg { width: 18px; height: 18px; }
.v5-source-note { margin: 20px 0 0; color: var(--v5-muted); font-size: 11px; }
.v5-event-decision { position: sticky; top: 84px; padding: 25px; background: var(--v5-paper); border-top: 4px solid var(--v5-accent); }
.v5-date-block { padding-bottom: 19px; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 16px; border-bottom: 1px solid var(--v5-line); }
.v5-date-block time { display: flex; align-items: baseline; gap: 4px; }
.v5-date-block time strong { font-size: 37px; line-height: 1; }
.v5-date-block time span { color: var(--v5-muted); font-size: 10px; }
.v5-date-block div span, .v5-date-block div strong { display: block; }
.v5-date-block div span { color: var(--v5-muted); font-size: 10px; }
.v5-date-block div strong { margin-top: 3px; }
.v5-decision-row { min-height: 70px; padding: 13px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--v5-line); }
.v5-decision-row > svg { width: 18px; height: 18px; margin-top: 2px; color: var(--v5-cobalt); }
.v5-decision-row small, .v5-decision-row strong { display: block; }
.v5-decision-row small { color: var(--v5-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.v5-decision-row strong { margin-top: 3px; font-size: 12px; }
.v5-event-decision .v5-button { margin-top: 19px; }
.v5-event-decision > p { margin: 12px 0 0; color: var(--v5-muted); font-size: 10px; }

@media (max-width: 980px) and (min-width: 761px) {
  .customer-nav { width: 370px; }
  .customer-nav > a { gap: 4px; font-size: 9px; }
  .v5-location { display: none; }
  .v5-event-layout { gap: 28px; }
}

@media (max-width: 760px) {
  .customer-shell, .customer-shell.narrow, .customer-shell.event-shell { width: min(100% - 28px, 560px); padding-bottom: 104px; }
  .customer-shell.auth-shell { width: 100%; padding-bottom: 0; }
  .v5-appbar, .v5-auth-appbar { min-height: 62px; }
  .v5-appbar-tools { gap: 9px; }
  .v5-account-link span, .v5-member-name { max-width: 92px; }
  .v5-location span, .v5-back-link span { display: none; }
  .v5-location { width: 42px; justify-content: center; }

  .customer-nav { top: auto; bottom: 0; left: 0; width: 100%; min-height: 72px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; box-shadow: 0 -5px 24px rgba(16,18,16,.10); transform: none; }
  .customer-nav > a { min-height: 59px; padding: 6px 2px 4px; flex-direction: column; gap: 4px; font-size: 9px; }
  .customer-nav > a svg { width: 20px; height: 20px; }
  .customer-nav-scan-icon { width: 34px; height: 34px; }
  .customer-nav > a.customer-nav-scan svg { width: 19px; height: 19px; }

  .v5-home-lead { margin-top: 14px; grid-template-columns: 1fr; gap: 10px; }
  .v5-member-command { min-height: 310px; padding: 23px 20px 20px; }
  .v5-member-command h1 { max-width: 15ch; font-size: 32px; }
  .v5-lead-copy { margin-top: 11px; font-size: 13px; }
  .v5-actions { margin-top: 18px; gap: 11px; }
  .v5-stamp-status { padding-top: 16px; }
  .v5-stamp-status > div:first-child strong { font-size: 33px; }
  .v5-next-event { min-height: 350px; grid-template-rows: 169px minmax(0, 1fr); }
  .v5-next-event-copy { padding: 17px 18px 16px; }
  .v5-next-event-copy h2 { font-size: 24px; }
  .v5-next-event-copy footer { margin-top: 11px; padding-top: 9px; }
  .v5-section { margin-top: 54px; }
  .v5-section-heading h2 { font-size: 24px; }
  .v5-event-row { grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 11px; }
  .v5-event-row p { line-height: 1.35; }
  .v5-station-story { margin-right: -14px; margin-left: -14px; grid-template-columns: 1fr; }
  .v5-station-story > div { padding: 30px 22px; }
  .v5-station-story h2 { font-size: 31px; }
  .v5-station-story figure { min-height: 360px; }
  .v5-benefit-list { grid-template-columns: 1fr; }
  .v5-benefit-list article { min-height: 126px; padding: 18px 0; }
  .v5-benefit-list article + article { padding-left: 0; border-left: 0; }
  .v5-benefit-list h3 { margin-top: 5px; }
  .v5-visit { margin-right: -14px; margin-left: -14px; padding: 30px 22px; grid-template-columns: 1fr; gap: 28px; }

  .v5-auth-appbar { width: calc(100% - 40px); margin: 0 auto; }
  .v5-auth-layout, .v5-auth-layout.reverse { min-height: 0; display: flex; flex-direction: column; }
  .v5-auth-layout.reverse .v5-auth-story, .v5-auth-layout.reverse .v5-auth-form { order: initial; }
  .v5-auth-story { min-height: 178px; height: 178px; }
  .v5-auth-story img { object-position: center 30%; }
  .v5-auth-story > div { left: 20px; right: 20px; bottom: 17px; }
  .v5-auth-story h2 { max-width: 15ch; font-size: 26px; }
  .v5-auth-form, .v5-auth-form.login { width: 100%; min-height: 0; padding: 28px 20px 38px; }
  .v5-auth-intro h1 { max-width: 14ch; font-size: 31px; }
  .v5-auth-intro > p:last-child { font-size: 13px; }
  .v5-auth-proof { margin-top: 21px; }
  .v5-auth-proof span { min-height: 61px; }
  .v5-form { margin-top: 23px; }

  .v5-card-title { padding: 25px 0 17px; display: block; }
  .v5-card-title h1 { font-size: 32px; }
  .v5-card-title > p { margin-top: 8px; }
  .v5-section-tabs { position: sticky; top: 0; z-index: 25; margin-right: -14px; margin-left: -14px; padding: 6px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(243,244,239,.98); border-bottom: 1px solid var(--v5-line); }
  .v5-section-tabs a { min-width: 0; min-height: 43px; padding: 5px 2px; flex-direction: column; gap: 2px; font-size: 8px; }
  .v5-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .v5-member-pass { position: static; min-height: 310px; margin-right: -14px; margin-left: -14px; padding: 22px 20px; }
  .v5-member-pass h2 { font-size: 26px; }
  .v5-card-content { margin-right: -14px; margin-left: -14px; }
  .v5-card-content > section { padding: 24px 20px; }
  .v5-card-content > section + section { margin-top: 10px; }
  .v5-panel-heading h2 { font-size: 25px; }
  .v5-stamp-grid { gap: 5px; }
  .v5-stamp-grid > span { font-size: 9px; }
  .v5-points-number { font-size: 38px; }
  .v5-reward-summary { align-items: start; flex-direction: column; gap: 7px; }
  .v5-reward-list > div { grid-template-columns: 35px minmax(0, 1fr) auto; }
  .v5-qr-image { width: 240px; height: 240px; }
  .v5-qr-image img { width: 220px; height: 220px; }

  .v5-appbar.event { min-height: 58px; }
  .v5-event-hero { min-height: 0; margin-right: -14px; margin-left: -14px; aspect-ratio: 16 / 10; }
  .v5-event-meta { left: 14px; right: 14px; bottom: 13px; }
  .v5-event-layout { margin-top: 23px; grid-template-columns: 1fr; gap: 25px; }
  .v5-event-title { padding-bottom: 24px; }
  .v5-event-title h1 { font-size: 36px; }
  .v5-event-title > p:last-child { font-size: 14px; }
  .v5-event-decision { position: static; order: -1; margin-right: -14px; margin-left: -14px; padding: 19px 20px; border-top-width: 5px; }
  .v5-decision-row { min-height: 62px; padding: 10px 0; }
  .v5-event-section { margin-top: 43px; }
  .v5-event-facts { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .v5-member-command { min-height: 320px; }
  .v5-member-command h1 { font-size: 30px; }
  .v5-next-event { min-height: 360px; }
  .v5-auth-story { min-height: 180px; height: 180px; }
  .v5-auth-story h2 { font-size: 24px; }
  .v5-auth-story > div { bottom: 13px; }
  .v5-auth-form, .v5-auth-form.login { padding-top: 20px; padding-bottom: 26px; }
  .v5-auth-intro h1 { font-size: 29px; }
  .v5-auth-intro > p:last-child { margin-top: 8px; }
  .v5-auth-proof { margin-top: 16px; }
  .v5-auth-proof span { min-height: 54px; }
  .v5-form { margin-top: 17px; }
  .v5-field + .v5-field { margin-top: 12px; }
  .v5-field > input, .v5-phone-field { min-height: 49px; }
  .v5-phone-field input { height: 47px; }
  .v5-consent { margin: 14px 0; }
  .v5-auth-switch { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
