:root {
    --navy: #0f172a;
    --ocean: #0284c7;
    --gold: #f59e0b;
    --paper: #f1f5f9;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --green: #059669;
    --purple: #9333ea;
    --rose: #e11d48;
    font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.7;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--ocean);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
.button {
    font: inherit;
    cursor: pointer;
    background: var(--ocean);
    color: white;
    padding: 0.65rem 1.2rem;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}
button:hover,
.button:hover {
    filter: brightness(0.93);
    text-decoration: none;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button.outline {
    background: transparent;
    border: 1px solid #a8c0c8;
}
.gold {
    background: linear-gradient(100deg, var(--gold), #d97706);
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 6px 18px #f59e0b33;
}
:focus-visible {
    outline: 3px solid #db941e;
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.3;
    letter-spacing: 0.025em;
}
h2 {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    line-height: 1.4;
}
h3 {
    font-size: 1.14rem;
    line-height: 1.6;
}
small {
    font-size: 0.8rem;
}
input,
select,
textarea {
    font: inherit;
    background: #fff;
    border: 1px solid #c7d3d1;
    border-radius: 7px;
    padding: 10px;
    width: 100%;
    min-width: 0;
    color: var(--ink);
}
label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}
input[type="checkbox"] {
    width: auto;
    min-height: 22px;
}
textarea {
    min-height: 90px;
}
input[type="checkbox"] + span {
    font-weight: 400;
}
.site-header {
    padding: 20px max(5vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
}
.brand b {
    font-weight: 500;
}
.brand img {
    width: 160px;
    height: 52px;
    object-fit: contain;
}
.brand-caption {
    font-size: 0.85rem;
    border-left: 1px solid var(--line);
    padding-left: 16px;
}
.utility > a:last-of-type {
    background: linear-gradient(110deg, #4f46e5, #9333ea);
    color: white;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
}
.brand-mark {
    background: var(--navy);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: var(--gold);
    display: grid;
    place-content: center;
}
.utility,
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.utility {
    font-size: 0.85rem;
}
main {
    max-width: 1240px;
    margin: auto;
    padding: 0 28px;
}
.section-nav {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding: 14px 0;
    white-space: nowrap;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
}
.section-nav a {
    color: var(--ink);
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 700;
}
.section-nav a:hover,
.section-nav a.active {
    background: #e0f2fe;
    text-decoration: none;
}
.section-nav a[data-tab="calendar"] {
    color: #047857;
}
.section-nav a[data-tab="shop"] {
    color: #b45309;
}
.section-nav a[data-tab="stamps"] {
    color: #be123c;
}
.section-nav a[data-tab="member"] {
    color: #7e22ce;
}
section[data-panel] {
    padding: 28px 0 48px;
    scroll-margin-top: 20px;
}
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 65px 55px;
    background: linear-gradient(110deg, #0c4a6e, #0f172a 65%, #022c22);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
}
.eyebrow {
    display: block;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ocean);
    margin-bottom: 12px;
}
.hero .eyebrow {
    color: #fcd34d;
}
#home .hero {
    background:
        linear-gradient(90deg, #0f172aeb, #0f172a88 60%, #0f172a22),
        url("/passport-coast.jpg") center / cover;
    min-height: 400px;
    box-shadow: 0 12px 30px #0f172a1a;
}
#home .hero .eyebrow {
    display: inline-block;
    padding: 5px 13px;
    background: #e11d4840;
    border: 1px solid #fb718566;
    border-radius: 30px;
    color: #fecdd3;
}
.hero p {
    color: #d4e0e2;
}
.hero-note {
    display: block;
    color: #9fbcc6;
    font-size: 0.8rem;
    margin-top: 24px;
}
.passport-cover {
    justify-self: center;
    max-width: 290px;
    width: 100%;
    border: 1px solid #f59e0b99;
    border-radius: 12px 25px 25px 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow:
        14px 14px 0 #081f2c66,
        inset 5px 0 0 #ffffff11;
    transform: rotate(7deg);
    color: #fcd34d;
    background: linear-gradient(160deg, #082f49, #0f172a, #020617);
}
.passport-cover > span {
    font-size: 0.65rem;
    letter-spacing: 3px;
}
.passport-cover h2 {
    font-size: 1.4rem;
}
.passport-cover p {
    font-size: 0.65rem;
    color: #fcd34d;
    letter-spacing: 3px;
}
.compass {
    font-size: 90px;
    font-weight: 100;
    line-height: 1.8;
}
.passport-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 5px #0f172a05;
    margin-bottom: 16px;
}
.traveler-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    font-weight: 800;
}
.traveler-info {
    flex: 1;
    min-width: 0;
}
.passport-summary .eyebrow {
    display: none;
}
.passport-summary button {
    background: linear-gradient(110deg, #10b981, #0d9488);
    font-weight: 700;
}
.passport-summary h2 {
    margin-bottom: 4px;
    font-size: 1.5rem;
}
.passport-summary p {
    margin-bottom: 0;
    color: var(--muted);
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    overflow: hidden;
}
.stats > * {
    padding: 24px;
    border-right: 1px solid var(--line);
    color: var(--ink);
}
.stats > :last-child {
    border-right: 0;
}
.stats span,
.stats em {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--muted);
}
.stats strong {
    display: block;
    font-size: 2.2rem;
    margin: 5px 0;
}
.stats strong small {
    margin-left: 5px;
    font-size: 0.8rem;
    font-weight: 400;
}
.feature-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}
.feature-links a {
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(110deg, #059669, #0f766e);
    color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 16px #05966920;
}
.feature-links a:last-child {
    background: linear-gradient(110deg, #f59e0b, #f97316, #f43f5e);
    box-shadow: 0 6px 16px #f9731620;
}
.feature-links span {
    font-size: 0.65rem;
    letter-spacing: 2px;
}
.feature-links h3 {
    margin: 0 0 5px;
}
.feature-links p {
    font-size: 0.85rem;
    margin: 0;
}
.feature-links .feature-icon {
    font-size: 1.7rem;
    background: #ffffff26;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    letter-spacing: 0;
}
.feature-action {
    margin-left: auto;
    flex-shrink: 0;
    background: #fff;
    color: #065f46;
    font-size: 0.72rem;
    padding: 8px 10px;
    border-radius: 10px;
}
.feature-links a:last-child .feature-action {
    color: #9a3412;
}
.home-store-entry {
    padding: 18px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.home-store-entry h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.home-store-entry > div {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}
.home-store-entry strong {
    font-size: 0.85rem;
}
.home-store-entry p {
    margin: 3px 0 0;
    font-size: 0.72rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.home-store-entry .button {
    font-size: 0.7rem;
    padding: 8px 10px;
    flex-shrink: 0;
}
.home-stamp-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-top: 18px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
}
.home-stamp-entry > span {
    font-size: 2rem;
}
.home-stamp-entry h3 {
    margin: 0 0 4px;
    color: #9f1239;
}
.home-stamp-entry p {
    margin: 0;
    font-size: 0.8rem;
    color: #9f1239;
}
.home-stamp-entry .button {
    margin-left: auto;
    flex-shrink: 0;
    background: linear-gradient(110deg, #e11d48, #db2777);
    font-weight: 700;
}
#home .stats {
    background: transparent;
    border: 0;
    gap: 14px;
    overflow: visible;
}
#home .stats > * {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 2px 5px #0f172a05;
}
#home .stats > :nth-child(1) strong {
    color: #d97706;
}
#home .stats > :nth-child(2) strong {
    color: #0284c7;
}
#home .stats > :nth-child(3) strong {
    color: #059669;
}
#home .stats > :nth-child(4) strong {
    color: #9333ea;
}
#home .stats > *::after {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 8px;
    padding: 1px 7px;
    font-size: 18px;
}
#home .stats > :nth-child(1)::after {
    content: "●";
    color: #d97706;
    background: #fffbeb;
}
#home .stats > :nth-child(2)::after {
    content: "🎟";
    background: #f0f9ff;
}
#home .stats > :nth-child(3)::after {
    content: "⚑";
    color: #059669;
    background: #ecfdf5;
}
#home .stats > :nth-child(4)::after {
    content: "▣";
    color: #9333ea;
    background: #faf5ff;
}
#home .stats strong small {
    color: var(--muted);
}
#home .stats em {
    color: #047857;
}
#home .stats > :nth-child(2) em {
    color: #0369a1;
}
.section-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}
.section-title h2 {
    margin-bottom: 10px;
}
.section-title p {
    color: var(--muted);
    margin: 0;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.offer-card,
.store-card,
.set-card,
.event-card,
.voucher {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    min-width: 0;
    position: relative;
}
.card-grid h3 {
    margin: 12px 0;
}
.card-grid p {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.card-grid small {
    color: var(--muted);
}
.offer-icon {
    font-size: 2.2rem;
    color: var(--ocean);
    margin-bottom: 12px;
}
.offer-card {
    box-shadow: 0 4px 12px #0f172a06;
    border-top: 4px solid var(--gold);
}
.offer-card .offer-icon {
    color: #d97706;
}
.offer-card button,
.offer-card .button {
    background: linear-gradient(100deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
}
.offer-card[data-offer-kind="reward"] {
    border-top-color: #9333ea;
}
.offer-card[data-offer-kind="event"] {
    border-top-color: #e11d48;
}
.pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 20px;
    background: #d1fae5;
    color: #065f46;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 18px 0 5px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}
.filters {
    display: flex;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}
.filters label:first-child {
    flex: 1;
}
.store-art {
    height: 95px;
    background: linear-gradient(120deg, #e0f2fe, #d1fae5);
    display: grid;
    place-content: center;
    font-size: 2.5rem;
    color: #698d7c;
    border-radius: 6px;
}
.store-list-toolbar,
.store-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.store-list-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.store-list-toolbar label,
.store-pagination label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.store-list-toolbar select,
.store-pagination select {
    width: auto;
}
.store-pagination {
    justify-content: center;
    padding: 12px 0;
}
.store-pagination button {
    font-size: 0.85rem;
}
@media (max-width: 480px) {
    .store-pagination {
        gap: 8px;
    }
    .store-pagination button {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    .store-pagination label {
        font-size: 0;
        gap: 0;
    }
    .store-pagination select {
        font-size: 0.8rem;
    }
}
.store-card .actions {
    font-size: 0.85rem;
}
.set-card {
    background: linear-gradient(135deg, #9f1239, #be185d, #7e22ce);
    color: #fff;
}
.checkpoint-card-icon { display: grid; place-items: center; width: 70px; height: 70px; margin-top: 12px; overflow: hidden; border-radius: 50%; background: #ffffffde; color: #a32761; font-size: 1.65rem; }
.checkpoint-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.checkpoint-detail-icon { display: block; width: 104px; height: 104px; margin: 12px 0; border-radius: 50%; object-fit: cover; }
.stamp-activity { display: grid; gap: 30px; }
.stamp-activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e4eaf2; padding: 8px 8px 18px; }
.stamp-activity-heading h2 { margin: 0; color: #14233d; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.stamp-activity-heading h2 span { display: inline-block; vertical-align: middle; border-radius: 30px; background: #ffe8ed; color: #ce2449; padding: 4px 12px; font-size: .78rem; white-space: nowrap; }
.stamp-activity-heading p { margin: 0; color: #50627e; font-size: .85rem; }
.stamp-task { border: 1px solid #dbe4f3; border-radius: 30px; padding: 30px; background: linear-gradient(120deg, #fafcff, #fffafc); }
.stamp-task-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.stamp-task-intro p { margin: 4px 0; color: #415169; font-size: .9rem; }
.stamp-task-description { white-space: pre-line; }
.stamp-task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stamp-task-title h3 { margin: 0; color: #17233b; font-size: 1.18rem; }
.stamp-task-pill { border-radius: 20px; background: #ef3d63; color: #fff; padding: 4px 12px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.stamp-task-bonus { color: #bf2951 !important; font-weight: 700; }
.stamp-task-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; min-width: 190px; padding: 12px 16px; border: 1px solid #d8e3f2; border-radius: 20px; background: #fff; }
.stamp-task-progress span { color: #8998b0; font-size: .72rem; font-weight: 700; }
.stamp-task-progress strong, .stamp-task-progress button { color: #d72348; font-size: 1.12rem; font-weight: 800; }
.stamp-task-progress form { margin: 0; }
.stamp-task-progress button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.stamp-task-progress b { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #ffe4e7; color: #d51f45; font-size: 1.18rem; }
.stamp-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stamp-task-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stamp-task-place { position: relative; min-width: 0; min-height: 178px; border: 2px dashed #c8d6ec; border-radius: 20px; background: #fff; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; }
.stamp-task-place.is-collected { border-style: solid; border-color: #13cc8a; }
.stamp-task-tag { position: absolute; top: 6px; right: 6px; border-radius: 10px; background: #00aa7a; color: #fff; padding: 2px 9px; font-size: .7rem; font-weight: 700; }
.stamp-task-logo { display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border-radius: 50%; background: #f1f5fb; color: #94a4bc; font-size: 1.6rem; }
.stamp-task-place.is-collected .stamp-task-logo { border: 2px dashed #13cc8a; color: #008e62; background: #f6fffb; }
.stamp-task-logo img { width: 100%; height: 100%; object-fit: contain; }
.stamp-task-place strong { color: #17233b; font-size: .88rem; overflow-wrap: anywhere; }
.stamp-task-place small { color: #008f63; font-weight: 700; }
.stamp-task-scan { border-radius: 12px; padding: 6px 13px; background: #ef3d63; color: #fff; font-size: .75rem; font-weight: 700; }
.stamp-task-scan:hover { color: #fff; background: #cf284c; }
@media (max-width: 760px) { .stamp-activity-heading, .stamp-task-intro { align-items: flex-start; flex-direction: column; } .stamp-task-grid, .stamp-task-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stamp-task { padding: 18px; border-radius: 22px; } }
@media (max-width: 420px) { .stamp-task-grid, .stamp-task-grid-three { gap: 8px; } .stamp-task-place { padding: 16px 5px; } }
.set-card p,
.set-card small {
    color: #fce7f3;
}
.set-card .pill {
    background: #ffffff18;
    color: #fef08a;
}
.stamp-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
}
.stamp {
    text-align: center;
    border: 1px dashed #65838e;
    border-radius: 8px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}
.stamp > span {
    font-size: 1.8rem;
    color: #fcd34d;
}
.stamp strong {
    font-size: 0.7rem;
}
.stamp small {
    font-size: 0.6rem;
}
.stamp.collected {
    border-style: solid;
    background: #05966988;
    border-color: #6ee7b7;
}
.event-date {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--ocean);
}
.seasonal-calendar {
    padding: 32px;
    border-radius: 26px;
    background: linear-gradient(110deg, #103f35, #0c272d 72%);
    color: #fff;
}
.marketing-activities { margin-top: 24px; padding: 32px; border-radius: 26px; background: linear-gradient(115deg, #173766, #102b3d 76%); color: #fff; }
.marketing-activities-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #ffffff30; }
.marketing-activities-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 30px; background: #ffffff2b; color: #ffe5a5; font-size: .8rem; font-weight: 800; }
.marketing-activities-heading h2 { margin: 9px 0 5px; color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.marketing-activities-heading p { margin: 0; color: #dce8f5; }
.marketing-activities-heading > a { color: #fff; font-weight: 800; text-decoration: underline; }
.marketing-activities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.marketing-activity-card { min-width: 0; overflow: hidden; border: 1px solid #ffffff35; border-radius: 18px; background: #ffffff15; }
.marketing-activity-photo { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.marketing-activity-photo img { width: 100%; height: 100%; object-fit: cover; }
.marketing-activity-body { display: flex; flex-direction: column; min-height: 180px; padding: 18px; }
.marketing-activity-date { color: #ffd68e; font-size: .8rem; font-weight: 800; }
.marketing-activity-body h3 { margin: 8px 0; font-size: 1.13rem; line-height: 1.4; overflow-wrap: anywhere; }
.marketing-activity-body h3 a, .marketing-activity-action { color: #fff; }
.marketing-activity-body p { margin: 0 0 16px; color: #e0eaf1; line-height: 1.55; overflow-wrap: anywhere; }
.marketing-activity-action { display: block; margin-top: auto; padding: 10px 12px; border-radius: 10px; background: #fff; color: #143957; text-align: center; font-weight: 800; }
.marketing-activity-action:hover { background: #ffe4a1; color: #143957; text-decoration: none; }
.marketing-activities-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: #e0eaf1; }
@media (max-width: 1100px) { .marketing-activities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .marketing-activities { padding: 20px 16px; border-radius: 20px; } .marketing-activities-grid { grid-template-columns: 1fr; } .marketing-activity-body { min-height: 0; } }
.seasonal-calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ffffff24;
}
.seasonal-calendar-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    background: #0a765c;
    color: #a8ffe0;
    font-size: .78rem;
    font-weight: 800;
}
.seasonal-calendar-heading h2 { margin: 8px 0 0; color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.3; }
.seasonal-calendar-heading p { margin: 0; color: #d9e8e8; font-size: .9rem; }
.seasonal-calendar-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #ffffff20; border-radius: 17px; background: #061d22; }
.seasonal-calendar-tabs a { padding: 8px 13px; border-radius: 11px; color: #f5ffff; white-space: nowrap; font-size: .8rem; font-weight: 800; }
.seasonal-calendar-tabs a:hover, .seasonal-calendar-tabs a.is-active { color: #fff; background: #10ae84; text-decoration: none; }
.seasonal-calendar-tabs small { font-size: .75rem; }
.seasonal-calendar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.seasonal-event { display: flex; flex-direction: column; min-width: 0; min-height: 260px; padding: 20px; border: 1px solid #ffffff2a; border-radius: 16px; background: #ffffff16; }
.seasonal-event-icon { flex: 0 0 70px; width: 70px; height: 70px; max-width: 70px; max-height: 70px; margin-top: 14px; overflow: hidden; }
.seasonal-event-icon img { display: block; width: 70px; height: 70px; max-width: 100%; max-height: 100%; object-fit: cover; }
.seasonal-event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.seasonal-event-date { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #ef426b; color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.seasonal-event-2 .seasonal-event-date { background: #169dd9; }
.seasonal-event-3 .seasonal-event-date { background: #994be2; }
.seasonal-event-4 .seasonal-event-date { background: #0aaa77; }
.seasonal-event-season { color: #ffc682; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.seasonal-event-1 .seasonal-event-season { color: #ff9cb9; }
.seasonal-event-2 .seasonal-event-season { color: #9edfff; }
.seasonal-event-3 .seasonal-event-season { color: #e2b2ff; }
.seasonal-event-4 .seasonal-event-season { color: #a4f2ce; }
.seasonal-event-status { margin-top: 11px; color: #b7e9db; font-size: .72rem; font-weight: 700; }
.seasonal-event[data-status="past"] .seasonal-event-status { color: #b8c5ca; }
.seasonal-event h3 { margin: 4px 0 5px; line-height: 1.45; font-size: 1.08rem; }
.seasonal-event h3 a { color: #fff; }
.seasonal-event-description { margin: 0 0 16px; color: #d5e1e7; font-size: .78rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.seasonal-event-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid #ffffff24; }
.seasonal-event-actions a, .seasonal-event-bonus { display: block; width: 100%; padding: 7px 9px; border-radius: 11px; text-align: center; font-size: .78rem; font-weight: 800; line-height: 1.4; }
.seasonal-event-calendar { background: #ffffff36; color: #fff; }
.seasonal-event-bonus { background: linear-gradient(90deg, #ffad1c, #e97b06); color: #101a1d; }
.seasonal-event-detail { color: #d3fff0; }
.seasonal-event-actions a:hover { color: #fff; background: #078d70; text-decoration: none; }
.seasonal-calendar-empty { grid-column: 1 / -1; margin: 0; padding: 28px; text-align: center; color: #fff; }
.seasonal-calendar-empty a { color: #b3ffe4; text-decoration: underline; }
.seasonal-calendar-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.seasonal-calendar-pagination a, .seasonal-calendar-pagination span { min-width: 40px; padding: 7px 12px; border: 1px solid #ffffff4a; border-radius: 10px; color: #fff; text-align: center; }
.seasonal-calendar-pagination a:hover, .seasonal-calendar-pagination a[aria-current="page"] { background: #0dad83; text-decoration: none; }
.seasonal-calendar-pagination span { opacity: .5; }
@media (max-width: 1100px) { .seasonal-calendar-heading { align-items: flex-start; flex-direction: column; } .seasonal-calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .seasonal-calendar { padding: 20px 16px; border-radius: 20px; } .seasonal-calendar-tabs { width: 100%; } .seasonal-calendar-tabs a { flex: 1 1 auto; text-align: center; } .seasonal-calendar-grid { grid-template-columns: 1fr; } .seasonal-event { min-height: 230px; } }
.voucher {
    border-top: 5px solid var(--ocean);
}
.voucher.used {
    opacity: 0.7;
    border-top-color: var(--muted);
}
.voucher-qr {
    margin: 18px auto;
    width: 180px;
}
.voucher-qr img,
.voucher-qr canvas {
    max-width: 100%;
}
.corner {
    font-size: 0.8rem;
    float: right;
}
.member-card {
    background: linear-gradient(120deg, #4f46e5, #7e22ce);
    color: #fff;
    padding: 35px;
    border-radius: 14px;
    margin-bottom: 25px;
}
.member-card h3 {
    margin-top: 15px;
    overflow-wrap: anywhere;
}
.member-card .button {
    background: var(--gold);
    color: var(--navy);
}
progress {
    accent-color: var(--gold);
    width: 100%;
    height: 12px;
}
.empty {
    padding: 30px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 8px;
    grid-column: 1/-1;
}
.site-footer {
    background: var(--navy);
    color: #d4e0e2;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px max(5vw, 20px);
    margin-top: 40px;
    font-size: 0.85rem;
}
.site-footer a {
    color: #d4e0e2;
}
.site-footer nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer p {
    margin: 10px 0 0;
}
.mobile-nav {
    display: none;
}
.notice {
    padding: 16px 20px;
    background: #dfede3;
    border-radius: 8px;
    margin: 20px 0;
}
.notice.error {
    background: #fde4df;
    color: #8a2c1c;
}
.skip-link {
    position: absolute;
    top: -100px;
    z-index: 20;
    background: white;
    padding: 10px;
}
.skip-link:focus {
    top: 0;
}
.table-scroll {
    overflow: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    font-size: 0.85rem;
}
th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
th {
    background: #e0f2fe;
}
dialog {
    border: 0;
    border-radius: 15px;
    max-width: 530px;
    width: calc(100% - 32px);
    padding: 25px;
    color: var(--ink);
}
dialog::backdrop {
    background: #071e2bd9;
}
.dialog-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}
.dialog-heading h2 {
    font-size: 1.3rem;
}
video {
    width: 100%;
    background: #142b37;
    border-radius: 8px;
    max-height: 45vh;
}
#scanner-open {
    margin-top: 15px;
}
#toast {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--navy);
    color: #fff;
    padding: 16px 24px;
    box-shadow: 0 5px 30px #0003;
    border-radius: 10px;
    max-width: 90%;
    width: max-content;
}
.admin-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}
.admin-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px;
    min-width: 0;
}
.marketing-event-detail { grid-column: 1 / -1; }
.marketing-event-copy { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 16px; line-height: 1.7; }
.marketing-event-detail .button { display: inline-block; max-width: 100%; white-space: normal; text-align: center; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-grid .wide {
    grid-column: 1/-1;
}
.admin-box form > button {
    margin-top: 18px;
}
.checklist {
    max-height: 230px;
    overflow: auto;
}
.checklist label {
    flex-direction: row;
    align-items: center;
    padding: 6px;
}
.admin-heading {
    padding-top: 30px;
}
.admin-heading .eyebrow {
    margin-bottom: 5px;
}
.list-row {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.list-row small {
    display: block;
    color: var(--muted);
}
.list-row button {
    font-size: 0.75rem;
    padding: 6px 12px;
}
.scan-page {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 35px;
}
.placard {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    border: 3px solid var(--navy);
    padding: 40px;
    background: #fff;
}
.placard-qr {
    width: 280px;
    margin: 30px auto;
}
.placard-qr img,
.placard-qr canvas {
    max-width: 100%;
}
.print-only {
    display: none;
}
@media (min-width: 769px) {
    .section-nav a.active {
        color: var(--ocean);
        font-weight: 800;
    }
    #shop,
    #stamps,
    #calendar,
    #wallet,
    #member {
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero {
        padding: 40px 30px;
    }
    .hero .passport-cover {
        max-width: 230px;
    }
    .stats > * {
        padding: 20px 15px;
    }
    .utility {
        gap: 12px;
    }
    .brand {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    #home.current {
        display: flex;
        flex-direction: column;
    }
    #home .passport-summary {
        order: -3;
        margin-top: 0;
    }
    #home .stats {
        order: -2;
    }
    #home .hero {
        order: -1;
        margin-top: 24px;
    }
    main {
        padding: 0 18px;
    }
    .site-header {
        padding: 16px 18px;
    }
    .utility > a:not(:last-of-type) {
        display: none;
    }
    .utility {
        font-size: 0.75rem;
    }
    .brand small {
        font-size: 7px;
    }
    .brand-mark {
        width: 36px;
        height: 36px;
    }
    .section-nav {
        gap: 20px;
        font-size: 0.8rem;
        padding: 14px 0;
    }
    .hero {
        padding: 32px 25px;
        display: block;
        border-radius: 12px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.85rem;
    }
    .passport-cover {
        display: none;
    }
    .hero .actions {
        gap: 10px;
        font-size: 0.8rem;
    }
    .hero-note {
        font-size: 0.65rem;
    }
    .passport-summary {
        margin-top: 25px;
    }
    .passport-summary h2 {
        font-size: 1.1rem;
    }
    .passport-summary p {
        font-size: 0.8rem;
    }
    .passport-summary button {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .stats > :nth-child(2) {
        border-right: 0;
    }
    .stats > :nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
    .stats strong {
        font-size: 1.9rem;
    }
    .stats em {
        font-size: 0.7rem;
    }
    .feature-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feature-links a {
        padding: 22px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .filters {
        flex-wrap: wrap;
        align-items: stretch;
    }
    .filters label {
        flex: 1;
        min-width: 120px;
    }
    .filters label:first-child {
        flex-basis: 100%;
    }
    .section-title {
        display: block;
    }
    .section-title > button,
    .section-title > label {
        margin-top: 15px;
    }
    .section-title h2 {
        font-size: 1.45rem;
    }
    .section-title p {
        font-size: 0.85rem;
    }
    section[data-panel] {
        padding: 22px 0 35px;
    }
    body.js-ready section[data-panel]:not(.current) {
        display: none;
    }
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 10;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 20px #102e4310;
        border-top: 1px solid var(--line);
    }
    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.65rem;
        color: var(--muted);
        padding: 4px;
        min-height: 48px;
    }
    .mobile-nav span {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    .mobile-nav a.active {
        color: var(--ocean);
        font-weight: 800;
    }
    .site-footer {
        padding: 25px 20px 105px;
        display: block;
        margin-top: 15px;
    }
    .site-footer nav {
        margin-top: 15px;
        font-size: 0.75rem;
        gap: 15px;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .admin-box {
        padding: 20px;
    }
    .form-grid .wide {
        grid-column: auto;
    }
    .member-card {
        padding: 25px;
    }
    .scan-page {
        padding: 25px;
        margin: 25px 0;
    }
    .placard {
        padding: 22px;
        margin: 25px 0;
    }
    .placard-qr {
        width: 240px;
    }
}
/* Match the guide's mobile dashboard: user card, assets, calendar, coupon entry. */
@media (max-width: 768px) {
    .brand img {
        width: 108px;
        height: 38px;
    }
    .brand-caption {
        display: none;
    }
    .site-header {
        padding: 10px 16px;
    }
    .utility > a:last-of-type {
        padding: 7px 12px;
    }
    .section-nav {
        display: none;
    }
    main {
        padding: 0 16px;
    }
    section[data-panel] {
        padding-top: 16px;
    }
    #home .hero {
        display: none;
    }
    #home .passport-summary {
        padding: 14px 12px;
        gap: 9px;
        margin-bottom: 14px;
    }
    .traveler-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .passport-summary h2 {
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .passport-summary p {
        font-size: 0.68rem;
        color: #92400e;
    }
    .passport-summary button {
        padding: 7px 9px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    #home .stats {
        gap: 12px;
    }
    #home .stats > * {
        padding: 14px;
    }
    #home .stats > *::after {
        top: 11px;
        right: 10px;
        font-size: 16px;
    }
    #home .stats span {
        padding-right: 25px;
        color: #334155;
        font-size: 0.78rem;
        font-weight: 700;
    }
    #home .stats strong {
        font-size: 1.65rem;
        line-height: 1.5;
    }
    #home .stats em {
        font-size: 0.65rem;
    }
    .feature-links {
        margin-top: 16px;
        gap: 14px;
    }
    .feature-links a {
        padding: 16px 12px;
        gap: 10px;
        border-radius: 16px;
    }
    .feature-links .feature-icon {
        width: 36px;
        height: 40px;
        font-size: 1.4rem;
    }
    .feature-links h3 {
        font-size: 0.86rem;
        line-height: 1.5;
    }
    .feature-links p {
        font-size: 0.67rem;
    }
    .feature-action {
        padding: 7px;
        font-size: 0.62rem;
    }
    .home-stamp-entry {
        flex-wrap: wrap;
        padding: 16px;
        gap: 10px;
    }
    .home-stamp-entry h3 {
        font-size: 0.92rem;
    }
    .home-stamp-entry .button {
        font-size: 0.75rem;
    }
    #shop > .section-title:first-child {
        background: linear-gradient(110deg, #f59e0b, #d97706);
    }
    #calendar > .section-title:first-child {
        background: linear-gradient(110deg, #059669, #0f766e);
    }
    #stamps > .section-title:first-child {
        background: linear-gradient(110deg, #e11d48, #db2777);
    }
    #wallet > .section-title:first-child {
        background: linear-gradient(110deg, #0284c7, #4f46e5);
    }
    #shop > .section-title:first-child,
    #calendar > .section-title:first-child,
    #stamps > .section-title:first-child,
    #wallet > .section-title:first-child {
        padding: 20px;
        border-radius: 16px;
        color: white;
        box-shadow: 0 4px 12px #0f172a12;
    }
    #shop > .section-title:first-child h2,
    #calendar > .section-title:first-child h2,
    #stamps > .section-title:first-child h2,
    #wallet > .section-title:first-child h2 {
        font-size: 1.2rem;
    }
    #shop > .section-title:first-child p,
    #shop > .section-title:first-child a,
    #shop > .section-title:first-child .eyebrow,
    #calendar > .section-title:first-child p,
    #calendar > .section-title:first-child .eyebrow,
    #stamps > .section-title:first-child p,
    #stamps > .section-title:first-child .eyebrow,
    #wallet > .section-title:first-child p,
    #wallet > .section-title:first-child .eyebrow {
        color: white;
    }
    .mobile-nav {
        padding-top: 9px;
    }
    .mobile-nav a[data-tab="shop"] span {
        background: linear-gradient(135deg, #f59e0b, #ea580c);
        color: #fff;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border: 4px solid #fff;
        border-radius: 50%;
        margin-top: -27px;
        margin-bottom: 4px;
        box-shadow: 0 5px 12px #f59e0b55;
    }
    .mobile-nav a[data-tab="shop"] {
        color: #b45309;
        font-weight: 800;
    }
    .mobile-nav a[data-tab="calendar"].active {
        color: #059669;
    }
    .mobile-nav a[data-tab="member"].active {
        color: #9333ea;
    }
}
@media (max-width: 360px) {
    .feature-action {
        display: none;
    }
    .passport-summary .traveler-avatar {
        display: none;
    }
}
/* Mobile reading size: body and form text start at 16px (1rem). */
@media screen and (max-width: 768px) {
    #content
        :is(
            p,
            small,
            label,
            input,
            select,
            textarea,
            button,
            .button,
            .card-bottom,
            .corner,
            .store-card .actions,
            .feature-action,
            .stats span,
            .stats em,
            .stamp,
            .stamp strong,
            .stamp small,
            .store-list-toolbar p,
            .store-pagination select,
            table
        ) {
        font-size: 1rem;
        line-height: 1.65;
    }
    #content
        :is(
            .passport-summary h2,
            .feature-links h3,
            .home-store-entry h3,
            .home-store-entry strong,
            .home-stamp-entry h3,
            .card-grid h3
        ) {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    #content .eyebrow,
    #content .pill {
        font-size: 0.875rem;
    }
    #content :is(.section-title h2, .admin-box h2) {
        font-size: 1.5rem;
    }
    #content :is(p, h2, h3, strong, small, .stamp) {
        overflow-wrap: anywhere;
    }
    #home .stats > * {
        min-width: 0;
    }
    #home .stats strong {
        font-size: 2rem;
    }
    #home .stats span {
        padding-right: 0;
    }
    #home .stats > *::after {
        position: static;
        display: none;
    }
    .feature-links a {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
    }
    .feature-links .feature-action {
        grid-column: 2;
        justify-self: start;
        margin-left: 0;
        display: block;
    }
    .home-store-entry > div {
        flex-wrap: wrap;
    }
    .home-store-entry > div > div {
        min-width: 0;
        flex: 1 1 180px;
    }
    .passport-summary {
        flex-wrap: wrap;
    }
    .passport-summary .traveler-info {
        flex-basis: 160px;
    }
    .passport-summary button {
        margin-left: auto;
    }
    .stamp-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .card-bottom {
        flex-wrap: wrap;
    }
    .mobile-nav a {
        font-size: 0.875rem;
        padding-inline: 1px;
    }
    .site-header .utility,
    .site-footer,
    .site-footer nav {
        font-size: 1rem;
    }
    .site-footer {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    .store-pagination {
        flex-wrap: wrap;
    }
    #content .store-pagination label {
        font-size: 1rem;
        gap: 8px;
    }
    #content .store-pagination select {
        max-width: 100%;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .feature-links a,
    .offer-card,
    .store-card {
        transition:
            transform 180ms ease,
            box-shadow 180ms ease;
    }
    .feature-links a:hover,
    .offer-card:hover,
    .store-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px #0f172a14;
    }
    html {
        scroll-behavior: smooth;
    }
}
@media print {
    .site-header,
    .site-footer,
    .mobile-nav,
    .section-nav,
    button,
    .no-print {
        display: none !important;
    }
    body,
    main {
        background: white;
        color: #000;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .placard {
        page-break-inside: avoid;
        margin: 0 auto;
    }
    .print-only {
        display: block;
    }
    table {
        font-size: 10pt;
    }
    td,
    th {
        white-space: normal;
    }
    .table-scroll {
        overflow: visible;
    }
}
