/* ============================================
   Hisense Experience Center - Static CSS
   ============================================ */

@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-MediumItalic.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-BoldItalic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hisense Alfabet';
  src: url('../fonts/HisenseAlfabet-LightItalic.otf') format('opentype');
  font-weight: 300; font-style: italic; font-display: swap;
}

:root {
  --color-primary: #00aaa6;
  --color-primary-dark: #025b5d;
  --color-black: #000000;
  --color-grey: #b3b3b3;
  --color-cyan-glow: #00e5df;
  --color-bg-dark: #0a3d3d;
  --color-bg-mid: #0e6e6e;
  --color-yellow: #e6f520;
  --color-lime: #c8f520;
  --color-mint: #7dfcd2;
  --color-white: #ffffff;
  --font-hisense: 'Hisense Alfabet', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mobile-max-width: 430px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-hisense);
  background-color: var(--color-bg-dark);
  color: var(--color-black);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: inherit; }

/* App Container */
.app {
  max-width: var(--mobile-max-width);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow: clip;
  container-type: inline-size;
}

/* Shared */
.page-wrapper { position: relative; min-height: 100dvh; width: 100%; padding-bottom: 24px; box-sizing: border-box; }

.page-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.page-content { position: relative; z-index: 1; }

.btn-image {
  display: block; margin: 0 auto;
  transition: transform 0.15s; cursor: pointer;
  -webkit-touch-callout: none;
}
.btn-image:active { transform: scale(0.95); }
.btn-image img { -webkit-touch-callout: none; pointer-events: none; }

.icon-inline { display: inline-block; height: 1.25rem; vertical-align: middle; }

/* Text styles */
.text-heading { font-family: var(--font-hisense); font-weight: 700; font-style: italic; color: var(--color-black); }
.text-heading-primary { font-family: var(--font-hisense); font-weight: 700; font-style: italic; color: var(--color-primary); }
.text-body { font-family: var(--font-hisense); font-weight: 500; color: var(--color-black); }
.text-body-primary { font-family: var(--font-hisense); font-weight: 500; color: var(--color-primary); }
.text-caption { font-family: var(--font-hisense); font-weight: 400; color: var(--color-primary); }

/* Header */
.app-header { padding: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-header .header-logo { height: 48px; width: auto; }
.app-header .header-title { width: 80%; }

/* ============================================
   Landing Page
   ============================================ */
.landing-page { position: relative; overflow: hidden; }
.landing-page .page-bg { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); height: 100%; object-fit: cover; z-index: 0; }
.landing-header { position: relative; z-index: 2; text-align: center; padding: 11cqw 4.5cqw 0px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.landing-logo-combo { height: 48px; width: auto; }
.landing-title { width: 80%; display: block; margin: 0 auto; }
.landing-deco {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: var(--mobile-max-width); max-width: 100%; height: auto;
  z-index: 3; pointer-events: none;
}
.landing-card { position: relative; margin: 8px 11cqw 0; z-index: 2; }

.card-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill; z-index: 0;
}

.card-content {
  position: relative; z-index: 1;
  padding: 2cqw 6cqw 0 11cqw; text-align: left;
}

.ready-text-wrapper { position: relative; z-index: 1; text-align: center; padding: 6cqw 6cqw 0; }
.ready-text { width: 100%; margin-top: 10%; }

.info-row { display: flex; align-items: center; gap: 1.5cqw; margin-top: 4cqw; margin-bottom: 1.5cqw; }
.icon-inline { width: 3cqw; height: auto; flex-shrink: 0; }
.info-value { font-size: 3.5cqw; margin: 0 0 2cqw; line-height: 1.6; }

.notes-list { list-style: none; margin: 0; padding-left: 4cqw; }
.notes-list li { font-size: 2.7cqw; line-height: 1.6; padding-left: 1.2em; position: relative; margin-bottom: 0.3em; }
.notes-list li::before { content: '•'; position: absolute; left: 0; top: 0; }

/* Landing Please note row — gray styling */
.note-row .icon-inline { opacity: 0.5; }
.note-row .text-heading { color: #6b6b6b; }
.note-row-list li { color: #6b6b6b; }
.note-row-list li::before { color: #6b6b6b; }

.start-section { position: relative; z-index: 1; padding: 0 14cqw 0; }
.start-btn { width: 100%; margin: 0 auto; }

.bottom-products { position: relative; z-index: 2; margin-top: -30px; }
.bottom-img { width: 100%; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); z-index: 100;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-card { position: relative; margin: 0 10cqw; }
.modal-content { position: relative; z-index: 1; padding: 28px 24px 20px; }
.card-title { font-size: 5.6cqw; margin-bottom: 20px; text-align: center; }

.instruction-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.step-number { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.instruction-item p { font-size: 3.3cqw; line-height: 1.5; }

.warning-text { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 24px; padding-left: 4px; }
.warning-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.warning-text p { font-size: 3cqw; line-height: 1.5; }

.continue-btn { width: 80%; margin: 0 auto; }

/* ============================================
   Center Map Page
   ============================================ */
.card-wrapper {
  margin: 0 5cqw;
  border: 2px solid var(--color-primary);
  border-radius: 14px; overflow: hidden;
}

.tab-bar { display: flex; background: white; }
.tab-item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px;
  font-family: var(--font-hisense); font-weight: 500; font-size: 3.3cqw;
  color: var(--color-grey); border-bottom: 3px solid #e0e0e0;
  transition: all 0.2s ease; cursor: pointer;
}
.tab-item.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-icon { width: 20px; height: 20px; }

.tab-panels { display: grid; }
.tab-panels > .tab-content { grid-area: 1 / 1; background: white; padding: 4% 6% 0% 6%; }
.tab-panels > .tab-content.hidden { visibility: hidden; display: block !important; pointer-events: none; z-index: 0; }
.tab-panels > .tab-content:not(.hidden) { z-index: 1; }

.event-info { margin-bottom: 20px; margin-left: 9%; }
/* Center Map: fixed background */
.center-map-page .page-bg { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); height: 100%; object-fit: cover; z-index: 0; }

.center-map-page .info-row { margin-top: 10px; margin-bottom: 2px; gap: 6px; }
.center-map-page .info-value { font-size: 3.5cqw; padding-left: 0px; }

/* Zone Map */
.zone-map {
  position: relative; width: auto;
  margin: 16px -5% 0;
  aspect-ratio: 1050 / 622;
  line-height: 0; overflow: hidden; cursor: pointer;
}
.zone-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: scale(1.05); pointer-events: none;
}
.zone-layer img { width: 100%; height: 100%; object-fit: fill; display: block; }

/* Mascot CTA */
.mascot-cta { position: relative; text-align: center; margin: 9% -7.5% 0; }
.mascot-img { width: 100%; display: block; margin: 0 auto; }
.cta-buttons { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; width: 70%; }
.view-rewards-wrapper, .rules-wrapper { flex: 1; }
.view-rewards-btn { width: 100%; }

/* Stamps Tab */
.stamps-content { padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.stamps-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.stamps-title-img { width: 45%; }
.stamps-count { font-family: var(--font-hisense); font-size: 2.2em; font-weight: 700; font-style: italic; color: #0a5e5e; }

.stamps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 0 8px; margin-bottom: 16px; }
.stamp-cell { text-align: center; }
.stamp-circle { position: relative; width: 80%; margin: 0 auto 6px; aspect-ratio: 1; border-radius: 50%; border: 3px solid #ccc; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f5f5f5; }
.stamp-circle.completed { border-color: #0a5e5e; background: #fff; }
.stamp-completed { width: 90%; height: 90%; object-fit: contain; }
.stamp-zone-num { font-family: var(--font-hisense); font-size: 1.1em; font-weight: 700; font-style: italic; color: #bbb; text-align: center; line-height: 1.2; }
.stamp-zone-num span { display: block; font-size: 1.8em; }
.stamp-label { font-family: var(--font-hisense); font-size: 0.75em; font-weight: 500; color: #0a5e5e; }

.stamps-claim { display: flex; justify-content: center; margin-bottom: 12px; }
.stamps-claim .btn-image { display: flex; justify-content: center; width: 100%; }
.claim-reward-btn { width: 70%; }

.stamps-mascot { margin-top: auto; }
.stamps-mascot-img { width: 100%; display: block; }

/* Zone Detail Modal */
.zone-modal-overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); z-index: 100;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
}
.zone-modal-overlay.active { display: flex; }

.zone-modal { position: relative; width: 100%; margin: 0 10cqw; }
.zone-modal-frame { width: 100%; display: block; }

.zone-modal-body {
  position: absolute; top: 26%; left: 0; right: 0; bottom: 0;
  padding: 0 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  overflow: visible;
}

/* Pre-loaded layers: hidden by default, shown when active */
.zone-layer-item { display: none !important; }
.zone-layer-item.active { display: block !important; }
.zone-modal-results.zone-layer-item.active { display: block !important; }
.zone-modal-warning.zone-layer-item.active { display: flex !important; }

/* Frame images: grid stack, all occupy space, only active visible */
.zone-frame-stack { display: grid; position: relative; z-index: 0; }
.zone-frame-layer { grid-area: 1 / 1; width: 100%; display: block; visibility: hidden; }
.zone-frame-layer.active { visibility: visible; z-index: 1; }


/* Hero icon - absolute positioned, doesn't affect flow */
.zone-modal-hero {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  z-index: 2;
}

/* Per-zone hero sizes */
.zone-hero-1 { width: 51%; top: -2%; }
.zone-hero-2 { width: 46%; top: -3%; }
.zone-hero-3 { width: 54%; top: -2%; }
.zone-hero-4 { width: 65%; top: 3%; }
.zone-hero-5 { width: 70%; top: 2%; }

.zone-modal-icon { width: 100%; height: auto; display: block; }
.zone-modal-icon--grey { position: relative; }
.zone-modal-icon--color { position: absolute; top: 0; left: 0; width: 100%; height: auto; }

.zone-modal-check { position: absolute; top: 6%; right: 0%; width: 22%; z-index: 2; }

.zone-modal-desc { margin-top: auto; margin-bottom: -46%; font-size: 3.3cqw; line-height: 1.2; width: 100%; }
.zone-modal-desc--bottom { margin-top: auto; margin-bottom: 4%; }
.zone-modal-desc--bottom ~ .zone-modal-warning { margin-bottom: 41%; }
.desc-highlight { font-family: var(--font-hisense); font-weight: 700; font-style: italic; color: var(--color-primary); }
.desc-body { font-family: var(--font-hisense); font-weight: 500; color: var(--color-black); }

.zone-modal-enter { text-align: center; margin-top: 47%; margin-bottom: 19%; }
.zone-modal-enter-btn { width: 85%; margin: 0 auto; }

.zone-modal-share { text-align: center; margin-bottom: 5%; }
.zone-modal-share-btn { width: 45%; margin: 0 auto; }

.zone-modal-results { position: relative; text-align: center; margin-top: auto; margin-bottom: 30%; }
.zone-modal-results-btn { margin: 0 auto; }
.zone-modal-results-btn--grey { position: relative; width: 75%; }
.zone-modal-results-btn--color { position: absolute; top: -26%; left: 53%; transform: translateX(-50%); width: 91%; }

.zone-modal-actions {
  display: flex; margin-top: 3cqw;
  justify-content: flex-start;
  position: relative; z-index: 5;
}
.zone-modal-actions .btn-image { width: 50%; margin: 0; }
.zone-modal-action-btn { width: 100%; height: auto; display: block; margin: 0; }

/* Zone 5 Warning */
.zone-modal-warning { display: flex; align-items: flex-start; gap: 6px; margin-top: 0; }
.warning-icon-small { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.warning-text-small { font-family: var(--font-hisense); font-weight: 500; font-size: 2.8cqw; line-height: 1.4; color: var(--color-primary); }

/* Results Notice */
.notice-icon { width: 25%; margin-bottom: 12px; }
.notice-text { font-family: var(--font-hisense); font-weight: 700; font-size: 3.3cqw; line-height: 1.5; color: var(--color-black); text-align: center; margin-bottom: 16px; }
.notice-close-btn { width: 91%; margin: 0 auto; }

/* Zone 3 Confirmation Popup */
.zone3-confirm-card { position: relative; width: 100%; margin: 0 10cqw; }
.zone3-header-clip { overflow: hidden; }
.zone3-confirm-header { width: 100%; display: block; }
.zone3-confirm-body {
  position: absolute; top: 31%; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  overflow: visible;
}
.zone3-confirm-map {
  position: absolute; top: 0%; left: 50%; transform: translateX(-50%);
  width: 71%; border-radius: 8px; z-index: 2;
}
.zone3-confirm-text { font-family: var(--font-hisense); font-size: 3.5cqw; color: var(--color-black); line-height: 1.5; text-align: center; margin-top: auto; margin-bottom: 10%; }
.zone3-confirm-highlight { color: var(--color-primary); font-weight: 700; }
.zone3-confirm-btn { display: block; width: 85%; padding: 12px; background: var(--color-bg-dark); color: white; font-family: var(--font-hisense); font-size: 4cqw; border-radius: 30px; cursor: pointer; border: none; margin-bottom: 11%; }

/* ============================================
   Zone Detail Page
   ============================================ */
.zone-detail-card { margin: 8px 16px; border-radius: 16px; overflow: hidden; }
.zone-header-img { width: 100%; height: auto; display: block; }
.zone-body-card { background: white; padding: 0 20px 24px; border-radius: 0 0 16px 16px; margin-top: -2px; }
.zone-hero { display: flex; justify-content: center; padding: 16px 0; }
.zone-hero-img { width: 75%; max-width: 260px; height: auto; border-radius: 12px; }
.zone-desc { margin-bottom: 16px; }
.zone-desc-text { font-size: 3.3cqw; line-height: 1.7; }
.zone-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.zone-warning .warning-text-zone { font-family: var(--font-hisense); font-weight: 400; font-size: 3cqw; line-height: 1.5; color: var(--color-primary); }

.zone-actions { padding: 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.action-btn { width: 70%; margin: 0 auto; }
.action-btn-secondary { width: 60%; margin: 0 auto; }

/* Zone 3 Overlay (zone detail page) */
.zone3-overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); z-index: 200;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
}
.zone3-overlay.active { display: flex; }
.zone3-popup { background: white; border-radius: 16px; padding: 20px; margin: 0 16px; width: 100%; }
.zone3-map { width: 100%; border-radius: 12px; margin-bottom: 16px; }
.zone3-popup-actions { display: flex; flex-direction: column; gap: 12px; }
.zone3-action-btn { width: 70%; margin: 0 auto; }
.zone3-action-btn-secondary { width: 55%; margin: 0 auto; }

/* ============================================
   Rewards Page
   ============================================ */
.rewards-card, .special-rewards-card {
  background: white; margin: 12px 16px;
  border-radius: 16px; padding: 20px;
}
.section-title { width: 55%; margin-bottom: 12px; }
.notes-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.notes-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.text-caption-dark { font-family: var(--font-hisense); font-weight: 400; font-size: 2.8cqw; color: var(--color-black); line-height: 1.5; }
.rewards-table-img { width: 100%; border-radius: 8px; }
.special-desc { font-size: 3cqw; line-height: 1.6; margin-bottom: 16px; }
.phone-cases-img { width: 80%; margin: 0 auto 16px; }
.special-note { font-size: 2.8cqw; line-height: 1.5; color: var(--color-black); opacity: 0.7; }
.back-section { padding: 0px 16px; }
.back-btn { width: 60%; margin: 0 auto; }

/* ============================================
   Congrats Page
   ============================================ */
.congrats-page { display: flex; flex-direction: column; }
.congrats-page .page-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 40px 24px;
}
.congrats-message { margin-bottom: 24px; }
.congrats-bubble { width: 100%; max-width: 340px; }
.mascot-section { margin-bottom: 32px; }
.congrats-page .mascot-img { width: 65%; height: auto; }
.continue-section { width: 100%; }
.congrats-page .continue-btn { width: 70%; margin: 0 auto; }

/* ============================================
   Results Page
   ============================================ */
.results-page .page-content {
  padding: 24px 16px 40px;
  display: flex; flex-direction: column; align-items: center;
}
.results-header { margin-bottom: 20px; }
.results-logo { width: 99%; height: auto; }
.results-congrats { margin-bottom: 5%; margin-top: 8%; text-align: center; }
.congrats-text { width: 70%; height: auto; display: block; margin: 0 auto; }
.results-frame { position: relative; width: 100%; max-width: 320px; margin-bottom: 24px; }
.result-content { display: flex; align-items: center; justify-content: center; }
.result-card { width: 82%; height: auto; border-radius: 8px; }
.results-actions { width: 100%; display: flex; flex-direction: column; align-items: center; }
.results-actions .action-btn { width: 70%; }
.results-share-btn { margin-top: 4px; }
.action-btn-share { width: 40%; margin: 0 auto; }

/* ============================================
   Transitions
   ============================================ */
.modal-overlay, .zone-modal-overlay, .zone3-overlay {
  transition: opacity 0.25s ease;
}

/* Congrats Popup */
.congrats-popup-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 24px;
  width: 100%;
}
.congrats-popup-message { }
.congrats-popup-bubble { width: 100%; max-width: 340px; }
.congrats-popup-mascot { }
.congrats-popup-mascot-img { width: 89%; height: auto; margin: 0 auto; }
.congrats-popup-action { width: 100%; }
.congrats-popup-btn { width: 70%; margin: 0 auto; }

/* Redemption Popup */
.redemption-card { position: relative; width: 95%; max-width: 420px; }
.redemption-bg { width: 100%; display: block; }
.redemption-body {
  position: absolute; top: 12%; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 8% 3%;
}
.redemption-input-wrap { position: relative; width: 100%; margin-bottom: 10px; }
.redemption-input-bg { width: 100%; display: block; }
.redemption-code {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 1.1em; font-weight: 600; color: #999; letter-spacing: 2px;
  white-space: nowrap;
}
.redemption-code.has-value { color: #0a3d3d; font-size: 1.6em; letter-spacing: 5px; }
.redemption-numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px;
  width: 80%; margin-bottom: 10px;
}
.numpad-btn {
  width: 100%; border: none; background: transparent; padding: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.numpad-btn img { width: 100%; height: auto; display: block; }
.numpad-btn:active { opacity: 0.7; }
.numpad-empty { width: 100%; }
.redemption-actions { width: 110%; }
.redemption-actions-row { display: flex; width: 100%; }
.redemption-action-btn { width: 100%; }
.redemption-note { font-size: 3.5cqi; color: rgba(255,255,255,0.8); text-align: center; margin: 8px 0 0; white-space: nowrap; }

/* Redemption Success */
.redemption-success-card { display: flex; flex-direction: column; align-items: center; padding: 20px; }
.redemption-success-img { width: 85%; max-width: 340px; }
.redemption-success-btn { margin-top: 12px; }

/* Stamp Summary Page */
.stamp-summary-page {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: url('../images/1-map-stamps/資產 94.webp') center top / cover no-repeat fixed;
}
.stamp-summary-bg { display: none; }
.stamp-summary-body {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  padding: 16px 20px 40px; min-height: 100%; width: 100%; max-width: var(--mobile-max-width); margin: 0 auto;
}
.stamp-summary-header { padding: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stamp-summary-header .header-logo { height: 48px; width: auto; }
.stamp-summary-header .header-title { width: 80%; }
.stamp-summary-card {
  background: rgba(255,255,255,0.95); border-radius: 16px; padding: 24px 24px 20px;
  width: 100%; max-width: 380px; text-align: center;
  border: 2.5px solid #00aaa6;
}
.stamp-summary-congrats { width: 98%; margin-bottom: 4px; }
.stamp-summary-collected { font-family: var(--font-hisense); font-size: 1.15em; color: #025b5d; font-weight: 500; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.stamp-summary-collected strong { font-family: var(--font-hisense); font-size: 2.5em; color: #00aaa6; font-weight: 500; font-style: italic; line-height: 1; }
.stamp-summary-note { font-family: var(--font-hisense); font-size: 0.82em; color: #000; margin: 0 0 14px; line-height: 1.5; font-weight: 400; text-align: center; }
.stamp-summary-note-list { list-style: none; padding: 0; margin: 0 auto 14px; font-family: var(--font-hisense); font-size: 0.82em; color: #000; line-height: 1.8; font-weight: 400; display: inline-block; text-align: left; }
.stamp-summary-note-list li::before { content: '* '; }
.stamp-summary-section-title { width: 55%; margin-bottom: 8px; display: block; margin-left: 0; }
.stamp-summary-list {
  text-align: left; list-style: none; padding: 0; margin: 0 0 14px;
  font-family: var(--font-hisense); font-size: 0.9em; color: #000; line-height: 1.5; font-weight: 400;
}
.stamp-summary-list li { padding: 0; }
.stamp-summary-list li::before { content: '• '; color: #00aaa6; font-weight: 700; }
.stamp-summary-list li strong { color: #025b5d; font-weight: 700; }
.stamp-summary-special { font-family: var(--font-hisense); font-size: 0.88em; color: #4d4d4d; margin: 0 0 16px; line-height: 1.5; text-align: left; padding: 0; font-weight: 400; }
.stamp-summary-special strong { color: #025b5d; font-weight: 700; }
.stamp-summary-details { color: #4d4d4d; font-size: 0.85em; font-weight: 400; }
.stamp-summary-redeem-btn { width: 70%; display: block; margin: 0 auto; }
.stamp-summary-visit { font-family: var(--font-hisense); font-size: 2.6cqw; color: #db0008; font-weight: 500; margin: 10px 0 0; white-space: nowrap; }

/* Rewards page (rewards.html) — Stamp Rewards section */
.stamp-rewards-heading-img {
  width: 55%;
  max-width: 220px;
  display: block;
  margin: 8px auto 4px;
}
.rewards-intro {
  font-family: var(--font-hisense), sans-serif;
  font-weight: 700;
  font-size: 3cqw;
  color: #000;
  text-align: center;
  margin: 12px 0 14px;
}
.rewards-table-img {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 0 auto 14px;
}
.chance-callout {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 6px auto 14px;
}
.please-note-row {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 6px auto 8px;
}

/* Stamp summary popup — Stamp Rewards section (new design) */
.ss-collected-intro {
  font-family: var(--font-hisense), sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  color: #6b6b6b;
  text-align: center;
  line-height: 1.5;
  margin: 6px 0 10px;
}
.ss-rewards-heading-img {
  width: 55%;
  max-width: 200px;
  display: block;
  margin: 8px auto 8px;
}
.ss-rewards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #b4ecea;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #ecfbf9;
}
.ss-rewards-table tr + tr td {
  border-top: 1px solid #b4ecea;
}
.ss-rewards-table td {
  padding: 8px 6px;
  vertical-align: middle;
  font-family: var(--font-hisense), sans-serif;
}
.ss-stamp-num {
  width: 30%;
  text-align: center;
  border-right: 1px solid #b4ecea;
  color: #025b5d;
}
.ss-stamp-num strong {
  font-size: 1.3em;
  font-weight: 700;
  font-style: italic;
}
.ss-stamp-num span {
  font-size: 0.75em;
  font-weight: 500;
  margin-left: 2px;
}
.ss-reward-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.88em;
  color: #025b5d;
  line-height: 1.3;
}
.ss-reward-name small {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  color: #2cbcb6;
  margin-top: 2px;
}
.ss-chance-callout {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 4px auto 8px;
}
.ss-please-note {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 4px auto 8px;
}
.ss-text-note {
  margin: 4px 0 10px;
  text-align: left;
}
.ss-text-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ss-text-note-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ss-text-note-title {
  font-family: var(--font-hisense), sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #4d4d4d;
  font-size: 0.88em;
}
.ss-text-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-hisense), sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.5;
  color: #6b6b6b;
}
.ss-text-note-list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 3px;
}
.ss-text-note-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #6b6b6b;
}
.stamp-summary-back-btn { margin-top: 7px; width: 42%; }
.stamp-summary-back-img { width: 100%; }

/* Activity Rules */
.rules-page { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 5dvh; box-sizing: border-box; }
.rules-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.rules-body { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: var(--mobile-max-width); max-height: 87dvh; padding: 0 16px; box-sizing: border-box; }
.rules-header { padding: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 100%; }
.rules-header .header-logo { height: 48px; width: auto; }
.rules-header .header-title { width: 80%; }
.rules-card {
  background: rgba(255,255,255,0.95); border-radius: 16px; padding: 16px 18px 16px;
  width: 100%; border: 2.5px solid #00aaa6;
  display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0;
}
.rules-main-title-img {
  width: 55%; display: block; margin: 0 auto 8px; flex-shrink: 0;
}
.rules-scroll {
  overflow-y: auto; flex: 1; padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.rules-scroll::-webkit-scrollbar { width: 6px; }
.rules-scroll::-webkit-scrollbar-track { background: transparent; }
.rules-scroll::-webkit-scrollbar-thumb { background: #00aaa6; border-radius: 3px; }
.rules-section-title {
  font-family: var(--font-hisense); font-size: 0.85em; font-weight: 700; font-style: italic; color: #000; margin: 10px 0 4px;
}
.rules-hashtag { color: #000; }
.rules-text {
  font-family: var(--font-hisense); font-size: 0.75em; font-weight: 400; color: #000; line-height: 1.6; margin: 0 0 6px;
}
.rules-promoter {
  font-family: var(--font-hisense); font-size: 0.75em; font-weight: 500; color: #000; margin: 6px 0 4px;
}
.rules-list {
  font-family: var(--font-hisense); font-size: 0.75em; font-weight: 400; color: #000; line-height: 1.6;
  padding-left: 20px; margin: 0 0 6px; list-style-type: decimal;
}
.rules-list li::marker { color: #b3b3b3; }
.rules-list-alpha { list-style-type: lower-alpha; }
.rules-list li { margin-bottom: 4px; }
.rules-close-btn { margin-top: 10px; flex-shrink: 0; width: 55%; }
.rules-back-img { width: 100%; }

/* Background music toggle */
.bg-music-toggle {
  position: fixed; top: 12px; z-index: 200;
  left: calc(50% - var(--mobile-max-width) / 2 + 12px);
  width: 38px; height: 38px;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
@media (max-width: 430px) {
  .bg-music-toggle { left: 12px; }
}
.bg-music-toggle:active { opacity: 0.7; }
.bg-music-toggle img { width: 100%; height: 100%; object-fit: contain; }


/* Hidden helper */
.hidden { display: none !important; }
