:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-strong: #f2f3f4;
  --ink: #17191d;
  --muted: #5f6269;
  --line: #e8e8e8;
  --teal: #f0b90b;
  --teal-dark: #111318;
  --teal-soft: #fff4cc;
  --gold: #f0b90b;
  --gold-soft: #fff7d9;
  --coral: #db6372;
  --shadow: 0 20px 50px rgba(17, 19, 24, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 56px);
  color: var(--ink);
}

.brand,
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.brand-logo {
  display: block;
  width: 44px;
  max-width: 44px;
  height: auto;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 420px;
  height: clamp(420px, 50vh, 470px);
  overflow: hidden;
  background: #ffffff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.32) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%, rgba(240, 185, 11, 0.12) 100%);
}

.hero-image {
  opacity: 0.76;
  filter: grayscale(0.72) sepia(0.22) saturate(1.18) contrast(1.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 102px clamp(22px, 5vw, 56px) 40px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #9b7600;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-cta h2,
.admin-shell-header h1 {
  margin: 0;
  color: var(--teal-dark);
  line-height: 1.12;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.hero-subtitle {
  max-width: 580px;
  margin: 14px 0 0;
  color: #383a3e;
  font-size: 19px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  color: #383a3e;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn svg,
.icon-button svg,
.process-item svg {
  width: 18px;
  height: 18px;
}

.btn:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #111318;
  box-shadow: 0 12px 28px rgba(240, 185, 11, 0.28);
}

.btn-primary:hover {
  background: #dba800;
}

.btn-ghost {
  border-color: rgba(17, 19, 24, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.btn-subtle {
  min-height: 38px;
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--teal-dark);
  padding: 8px 12px;
  font-size: 13px;
}

.btn-small {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.section {
  padding: 72px clamp(18px, 5vw, 56px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.section-copy p,
.section-heading p {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
}

.section h2,
.final-cta h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.voucher-section {
  background: var(--surface);
  padding-top: 30px;
  padding-bottom: 34px;
}

.voucher-section .two-column {
  grid-template-columns: minmax(280px, 0.72fr) minmax(460px, 1.28fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.voucher-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 185, 11, 0.46);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 247, 217, 0.98), rgba(255, 255, 255, 0.98) 46%, rgba(242, 243, 244, 0.98)),
    var(--surface);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow);
}

.voucher-card::before,
.voucher-card::after {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
  transform: translateY(-50%);
}

.voucher-card::before {
  left: -17px;
}

.voucher-card::after {
  right: -17px;
}

.voucher-name {
  margin: 0 0 6px;
  color: #8c6b00;
  font-size: 14px;
  font-weight: 800;
}

.voucher-headline {
  display: block;
  color: #111318;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
}

.voucher-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.voucher-details div {
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 12px;
}

.voucher-details div:last-child {
  grid-column: 1 / -1;
}

.voucher-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.voucher-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.process-section {
  background: #f8f9fa;
  padding-top: 50px;
  padding-bottom: 44px;
}

.section-heading {
  margin-bottom: 22px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-item {
  position: relative;
  display: grid;
  min-height: 116px;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  grid-template-areas:
    "index title icon"
    ". text text";
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
}

.process-index {
  grid-area: index;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #815b08;
  font-size: 14px;
  font-weight: 900;
}

.process-item svg {
  grid-area: icon;
  margin-top: 7px;
  color: #a37e00;
}

.process-item h3 {
  grid-area: title;
  margin: 2px 0 0;
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.25;
}

.process-item p {
  grid-area: text;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rules-section {
  background: var(--surface);
  padding-top: 44px;
  padding-bottom: 50px;
}

.rules-layout {
  grid-template-columns: minmax(260px, 0.64fr) minmax(560px, 1.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rule-item {
  display: grid;
  min-height: 84px;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}

.rule-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.rule-item p {
  margin: 0;
  color: #383a3e;
  line-height: 1.55;
}

.faq-section {
  background: #f7f5ee;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(240, 185, 11, 0.24);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 17px 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
}

.h5-page {
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(240, 185, 11, 0.2), transparent 34%),
    #111318;
}

.h5-shell {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f6f7f5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.36);
}

.h5-page .site-header {
  position: absolute;
  right: auto;
  left: 50%;
  width: min(430px, 100%);
  padding: max(12px, env(safe-area-inset-top)) 14px 0;
  transform: translateX(-50%);
}

.h5-page .brand,
.h5-page .header-link {
  gap: 7px;
  padding: 7px 10px;
  border-color: rgba(17, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1;
}

.h5-page .brand-logo {
  width: 36px;
  max-width: 36px;
}

.h5-page .header-link {
  display: inline-flex;
}

.h5-hero {
  min-height: 560px;
  height: 560px;
  border-bottom: 1px solid rgba(240, 185, 11, 0.3);
}

.h5-page .hero-image {
  opacity: 0.88;
  object-position: 66% center;
  filter: grayscale(0.5) sepia(0.18) saturate(1.12) contrast(1.08);
}

.h5-page .hero-scrim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 47%, rgba(255, 255, 255, 0.3) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 62%, rgba(255, 255, 255, 0.1) 100%);
}

.h5-page .hero-content {
  width: 100%;
  padding: 86px 18px 28px;
}

.h5-page .eyebrow,
.h5-page .section-kicker {
  margin-bottom: 8px;
  font-size: 12px;
}

.h5-page .hero h1 {
  max-width: 350px;
  font-size: 40px;
  line-height: 1.05;
}

.h5-page .hero-subtitle {
  max-width: 320px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.h5-page .hero-meta {
  margin-top: 16px;
}

.h5-page .hero-meta span {
  padding: 7px 11px;
  font-size: 12px;
}

.h5-page .hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
  max-width: 100%;
  margin-top: 20px;
}

.h5-page .btn {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14px;
}

.h5-main {
  position: relative;
  z-index: 2;
  margin-top: -86px;
  padding-bottom: 88px;
}

.h5-section {
  padding: 20px 16px;
}

.h5-voucher-section {
  padding-top: 0;
}

.h5-page .section-copy p,
.h5-page .section-heading p {
  max-width: none;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.h5-page .section h2,
.h5-page .h5-section h2,
.h5-page .final-cta h2 {
  font-size: 26px;
  line-height: 1.15;
}

.h5-page .h5-voucher-section .section-copy {
  margin-bottom: 12px;
  padding: 16px 16px 0;
}

.h5-voucher-card {
  padding: 18px;
}

.h5-page .voucher-name {
  font-size: 12px;
}

.h5-page .voucher-headline {
  font-size: 34px;
}

.h5-page .voucher-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.h5-page .voucher-details div {
  min-width: 0;
  padding: 9px 10px;
}

.h5-page .voucher-details dt {
  font-size: 11px;
}

.h5-page .voucher-details dd {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.h5-process-section,
.h5-faq-section {
  background: #f6f7f5;
}

.h5-rules-section {
  background: #fff;
}

.h5-page .section-heading {
  margin-bottom: 12px;
}

.h5-page .process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.h5-page .process-item {
  min-height: auto;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  column-gap: 10px;
  row-gap: 4px;
  padding: 13px 14px;
}

.h5-page .process-index,
.h5-page .rule-number {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.h5-page .process-item h3 {
  margin-top: 2px;
  font-size: 16px;
}

.h5-page .process-item p {
  font-size: 13px;
}

.h5-page .rule-list {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.h5-page .rule-item {
  min-height: auto;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 12px 13px;
}

.h5-page .rule-item p {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.h5-page .faq-list {
  gap: 10px;
}

.h5-page .faq-item {
  padding: 0 14px;
}

.h5-page .faq-item summary {
  padding: 14px 0;
  font-size: 14px;
}

.h5-page .faq-item p {
  padding-bottom: 14px;
  font-size: 13px;
}

.h5-final-cta {
  padding: 26px 16px max(106px, calc(82px + env(safe-area-inset-bottom)));
}

.h5-page .final-cta-inner {
  display: grid;
  gap: 16px;
}

.h5-page .sticky-cta {
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  max-width: 410px;
  padding: 9px 9px 9px 14px;
}

.h5-page .sticky-cta strong {
  max-width: 168px;
}

.final-cta {
  padding: 54px clamp(18px, 5vw, 56px) 112px;
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 185, 11, 0.22), transparent 30%),
    #111318;
  color: #fff;
}

.final-cta .section-kicker,
.final-cta h2 {
  color: #fff;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 30;
  display: flex;
  max-width: 680px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 10px 10px 18px;
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.18);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta span,
.sticky-cta strong {
  display: block;
}

.sticky-cta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sticky-cta strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.admin-page {
  background: #f2f3f4;
}

.admin-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.admin-title-group {
  display: grid;
  gap: 6px;
}

.admin-logo {
  display: block;
  width: 58px;
  max-width: 58px;
  height: auto;
}

.admin-shell-header h1 {
  font-size: 30px;
}

.admin-shell-header .admin-actions {
  margin: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 42px) 56px;
}

.metrics-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.07);
}

.metrics-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 18px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.metric-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 14px;
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-tile strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.event-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.event-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.event-row strong {
  color: var(--teal-dark);
}

.empty-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.config-form {
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #405654;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(240, 185, 11, 0.86);
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.18);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.editor-list {
  display: grid;
  gap: 12px;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  align-items: start;
}

.faq-editor-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) 42px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 12px;
}

.process-heading-editor {
  margin-bottom: 16px;
}

.rules-intro-editor {
  margin-bottom: 16px;
}

.process-editor-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr) 42px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 12px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.icon-button:hover {
  border-color: rgba(240, 185, 11, 0.6);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 44px));
  border-radius: var(--radius);
  background: var(--teal-dark);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #9f2f22;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 185, 11, 0.28), transparent 28%),
    linear-gradient(135deg, #111318 0%, #202328 48%, #f8f9fa 48%, #f8f9fa 100%);
  padding: 22px;
}

.login-shell {
  width: min(420px, 100%);
}

.login-card {
  border: 1px solid rgba(240, 185, 11, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-logo {
  display: block;
  width: 70px;
  max-width: 70px;
  height: auto;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1.18;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form .btn {
  width: 100%;
}

.login-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: #9f2f22;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .two-column,
  .admin-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rule-list {
    grid-template-columns: 1fr;
  }

  .metrics-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 56%, rgba(255, 255, 255, 0.2) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.08));
  }

  .hero-content {
    padding: 94px 18px 48px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .section {
    padding: 52px 18px;
  }

  .voucher-details,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    min-height: auto;
  }

  .rules-section,
  .process-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .final-cta {
    padding: 44px 18px 116px;
  }

  .final-cta-inner,
  .admin-shell-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-cta {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .sticky-cta strong {
    max-width: 164px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-actions {
    flex-direction: column;
  }

  .faq-editor-row {
    grid-template-columns: 1fr 42px;
  }

  .faq-editor-row label,
  .process-editor-row label {
    grid-column: 1 / -1;
  }

  .faq-editor-row .icon-button,
  .process-editor-row .icon-button {
    grid-column: 2;
  }

  .process-editor-row {
    grid-template-columns: 1fr 42px;
  }
}

#navLabel,
#campaignEyebrow,
#campaignTitle,
#campaignSubtitle,
#campaignDates,
#benefitKicker,
#voucherTitle,
#benefitDescription,
#voucherName,
#voucherHeadline,
#voucherScenarioLabel,
#voucherScenario,
#voucherThresholdLabel,
#voucherThreshold,
#voucherValidityLabel,
#voucherValidity,
#voucherLimitLabel,
#voucherLimit,
#voucherDeliveryLabel,
#voucherDelivery,
#contactText,
#processKicker,
#processTitle,
#rulesKicker,
#rulesTitle,
#rulesDescription,
#finalCtaKicker,
#finalCtaTitle,
#finalCtaButtonText,
#stickyCtaKicker,
#stickyVoucher,
#stickyCtaButtonText,
.process-item h3,
.process-item p,
.rule-item p,
.faq-item summary,
.faq-item p {
  white-space: pre-wrap;
}

.h5-page .h5-hero {
  min-height: 520px;
  height: 520px;
}

.h5-page .hero-content {
  padding: 84px 18px 24px;
}

.h5-page .hero h1 {
  max-width: 360px;
  font-size: 36px;
}

.h5-main {
  margin-top: -68px;
}

@media (max-width: 360px) {
  .h5-page .hero h1 {
    font-size: 33px;
  }
}

@media (max-width: 920px) {
  body.activity-page {
    background: #f6f7f5;
  }

  .activity-page .site-header {
    position: absolute;
    padding: max(12px, env(safe-area-inset-top)) 14px 0;
  }

  .activity-page .brand,
  .activity-page .header-link {
    gap: 7px;
    padding: 7px 10px;
    border-color: rgba(17, 19, 24, 0.08);
    background: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1;
  }

  .activity-page .brand-logo {
    width: 36px;
    max-width: 36px;
  }

  .activity-page .header-link {
    display: inline-flex;
  }

  .activity-page .hero {
    min-height: 520px;
    height: 520px;
    border-bottom: 1px solid rgba(240, 185, 11, 0.3);
  }

  .activity-page .hero-image {
    opacity: 0.88;
    object-position: 66% center;
    filter: grayscale(0.5) sepia(0.18) saturate(1.12) contrast(1.08);
  }

  .activity-page .hero-scrim {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 47%, rgba(255, 255, 255, 0.3) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 62%, rgba(255, 255, 255, 0.1) 100%);
  }

  .activity-page .hero-content {
    width: 100%;
    padding: 84px 18px 24px;
  }

  .activity-page .eyebrow,
  .activity-page .section-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .activity-page .hero h1 {
    max-width: 360px;
    font-size: 36px;
    line-height: 1.05;
  }

  .activity-page .hero-subtitle {
    max-width: 320px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.45;
  }

  .activity-page .hero-meta {
    margin-top: 16px;
  }

  .activity-page .hero-meta span {
    padding: 7px 11px;
    font-size: 12px;
  }

  .activity-page .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 10px;
    max-width: 100%;
    margin-top: 20px;
  }

  .activity-page .btn {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 14px;
  }

  .activity-page .section-inner {
    width: 100%;
  }

  .activity-page .two-column,
  .activity-page .voucher-section .two-column,
  .activity-page .rules-layout {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
  }

  .activity-page main {
    position: relative;
    z-index: 2;
    margin-top: -68px;
    padding-bottom: 88px;
  }

  .activity-page .section {
    padding: 20px 16px;
  }

  .activity-page .voucher-section {
    padding-top: 0;
    background: #f6f7f5;
  }

  .activity-page .voucher-section .section-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-page .voucher-section .section-copy {
    margin-bottom: 12px;
    padding: 16px 16px 0;
  }

  .activity-page .section-copy p,
  .activity-page .section-heading p {
    max-width: none;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .activity-page .section h2,
  .activity-page .final-cta h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .activity-page .voucher-card {
    padding: 18px;
  }

  .activity-page .voucher-name {
    font-size: 12px;
  }

  .activity-page .voucher-headline {
    font-size: 34px;
  }

  .activity-page .voucher-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .activity-page .voucher-details div {
    min-width: 0;
    padding: 9px 10px;
  }

  .activity-page .voucher-details dt {
    font-size: 11px;
  }

  .activity-page .voucher-details dd {
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.45;
  }

  .activity-page .process-section,
  .activity-page .faq-section {
    background: #f6f7f5;
  }

  .activity-page .rules-section {
    background: #fff;
  }

  .activity-page .section-heading {
    margin-bottom: 12px;
  }

  .activity-page .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .activity-page .process-item {
    min-height: auto;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    column-gap: 10px;
    row-gap: 4px;
    padding: 13px 14px;
  }

  .activity-page .process-index,
  .activity-page .rule-number {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .activity-page .process-item h3 {
    margin-top: 2px;
    font-size: 16px;
  }

  .activity-page .process-item p {
    font-size: 13px;
  }

  .activity-page .rule-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .activity-page .rule-item {
    min-height: auto;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .activity-page .rule-item p {
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .activity-page .faq-list {
    gap: 10px;
  }

  .activity-page .faq-item {
    padding: 0 14px;
  }

  .activity-page .faq-item summary {
    padding: 14px 0;
    font-size: 14px;
  }

  .activity-page .faq-item p {
    padding-bottom: 14px;
    font-size: 13px;
  }

  .activity-page .final-cta {
    padding: 26px 16px max(106px, calc(82px + env(safe-area-inset-bottom)));
  }

  .activity-page .final-cta-inner {
    display: grid;
    gap: 16px;
  }

  .activity-page .sticky-cta {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    max-width: 410px;
    padding: 9px 9px 9px 14px;
  }

  .activity-page .sticky-cta strong {
    max-width: 168px;
  }
}

@media (max-width: 360px) {
  .activity-page .hero h1 {
    font-size: 33px;
  }
}
