@font-face {
  font-family: "CampaignRoundedHeavy";
  src: url("./fonts/gensen-rounded-heavy-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  --blue-primary: #007aff;
  --pink-primary: #ff6b9d;
  --pink-strong: #e82570;
  --yellow-primary: #ffd54f;
  --mint-secondary: #5ed9b5;
  --orange-secondary: #ff8a3d;
  --bg-pink-soft: #fff4f8;
  --bg-yellow-soft: #fff8d9;
  --bg-blue-soft: #eef7ff;
  --bg-mint-soft: #effff6;
  --ink-strong: #1f1f1f;
  --ink-body: #2c2c2c;
  --surface-white: #ffffff;
  --brand-description-size: 0.835rem;
  --brand-note-size: calc(var(--brand-description-size) - 1.333px);
  --border: 4px solid var(--ink-strong);
  --radius-panel: 24px;
  --radius-small: 16px;
  --font-display: "CampaignRoundedHeavy", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --font-body: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-blue-soft);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  background: var(--bg-blue-soft);
  color: var(--ink-body);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body::before,
body::after {
  content: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

a {
  color: inherit;
}

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 128px;
  overflow: visible;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 8px 24px;
  border-bottom: var(--border);
  background: var(--blue-primary);
}

.logo-link {
  display: inline-flex;
  width: 112px;
  transition: transform 120ms ease;
}

.logo-link img {
  width: 100%;
  height: auto;
}

.logo-link:hover,
.logo-link:focus-visible {
  transform: translate(2px, 2px);
}

.side-nav {
  position: fixed;
  top: 94px;
  left: 24px;
  z-index: 25;
  width: 190px;
}

.side-nav nav {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface-white);
}

.side-nav a,
.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 3px solid var(--ink-strong);
  border-radius: 999px;
  background: #bde1ff;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a[aria-current="true"],
.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav a[aria-current="true"] {
  background: #ffc7e7;
  transform: translate(2px, 2px);
}

.side-nav-art {
  width: 128px;
  height: auto;
  margin: 12px auto 0;
  animation: soft-bob 4.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
  min-height: clamp(360px, 52vh, 460px);
  padding: 16px 20px 4px;
  border: 0;
  overflow: visible;
  animation: panel-rise 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy,
.section-content,
.brand-panel,
.compact-copy,
.social-section > * {
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  width: min(100%, 680px);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--pink-primary);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.section-subtitle {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 0;
  color: var(--pink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1,
h2,
h3,
h4 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  max-width: 6em;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h4 {
  font-size: 1.45rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  justify-content: center;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  isolation: isolate;
}

.hero-art img {
  width: min(108%, 520px);
  height: auto;
  aspect-ratio: auto;
  border-radius: 26px;
  transform: translate3d(0, 0, 0) rotate(var(--art-rotate, 0deg));
  transform-origin: center;
  animation: hero-float 5.6s ease-in-out infinite;
  --art-rotate: 5deg;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 54px;
  padding: 12px 24px;
  border: var(--border);
  border-radius: 999px;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px) scale(1.02);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-small {
  min-height: 44px;
  padding: 9px 16px;
  border-width: 3px;
  font-size: 0.96rem;
}

.button-app-download {
  position: relative;
  min-height: 66px;
  padding: 16px 34px;
  overflow: hidden;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  background: var(--pink-strong);
  color: var(--surface-white);
  animation: cta-ring 1.9s ease-in-out infinite;
}

.button-app-download::after {
  position: absolute;
  inset: -40% auto -40% -50%;
  width: 42%;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  transform: rotate(18deg);
  animation: cta-shine 2.4s ease-in-out infinite;
}

.button-blue {
  background: var(--blue-primary);
  color: var(--surface-white);
}

.button-pink {
  background: var(--pink-primary);
  color: var(--surface-white);
}

.button-yellow {
  background: var(--yellow-primary);
}

.button-mint {
  background: var(--mint-secondary);
}

.button-orange {
  background: var(--orange-secondary);
  color: var(--surface-white);
}

.button.button-app-download {
  background: var(--pink-strong);
  color: var(--surface-white);
}

.button-disabled {
  background: #e7e7e7;
  color: #666666;
  cursor: not-allowed;
}

.hero-action-button {
  opacity: 0;
  animation: button-pop-in 420ms ease-out both, cta-ring-soft 2.8s ease-in-out 520ms infinite;
}

.hero-action-button:nth-child(2) {
  animation-delay: 120ms, 640ms;
}

.hero-action-button:nth-child(3) {
  animation-delay: 240ms, 760ms;
}

.campaign-section {
  position: relative;
  margin-top: 28px;
  padding: 46px;
  overflow: visible;
  border: var(--border);
  border-radius: 32px;
  scroll-margin-top: 104px;
}

.section-pink {
  background: var(--bg-pink-soft);
}

.section-yellow {
  background: var(--bg-yellow-soft);
}

.section-blue {
  background: var(--bg-blue-soft);
}

.section-mint {
  background: var(--bg-mint-soft);
}

.section-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  justify-items: center;
  width: min(100%, 900px);
  margin: 0 auto;
}

.hero > *,
.section-layout > *,
.brand-heading > *,
.brand-controls > *,
.compact-section > *,
.hero-actions > *,
.button-row > * {
  min-width: 0;
}

.section-layout-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.62fr);
}

.section-layout-reverse .section-media {
  order: 2;
}

.section-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(100%, 700px);
  text-align: center;
}

.section-media img {
  width: min(78%, 246px);
  height: auto;
  aspect-ratio: auto;
  margin: 0 auto;
  transform: translateX(var(--media-x, 0)) rotate(var(--media-rotate, 0deg));
  transform-origin: center;
  animation: media-bob 5.4s ease-in-out infinite;
}

#onefree .section-media img {
  margin-left: auto;
  --media-x: -24px;
  --media-rotate: -8deg;
}

[id="40off"] .section-media img {
  margin-right: auto;
  --media-x: 24px;
  --media-rotate: 9deg;
}

#game .section-media img {
  margin-left: auto;
  --media-x: -20px;
  --media-rotate: -7deg;
}

#game-title {
  font-size: clamp(2.7rem, 5vw, 4.55rem);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.bubble-list {
  display: grid;
  gap: 12px;
  width: fit-content;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  justify-self: center;
  text-align: left;
}

.bubble-list li {
  position: relative;
  min-height: auto;
  padding: 0 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bubble-list li::before {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-strong);
  content: "";
}

.bubble-list a {
  font-weight: 900;
}

.activity-link {
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-code-box {
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(80vw, 416px);
  margin-top: 16px;
  padding: 12px;
  border: 3px dashed var(--ink-strong);
  border-radius: 24px;
  background: var(--surface-white);
}

.promo-code-value {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px 10px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pink-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.promo-code-copy {
  flex: 0 0 auto;
  min-width: 88px;
  width: auto;
  padding: 0 18px;
}

.promo-code-copy.is-copied {
  background: var(--mint-secondary);
}

.promo-code-copy.is-error {
  background: var(--orange-secondary);
  color: var(--surface-white);
}

.brand-panel {
  margin-top: 34px;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.8);
}

.brand-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand-controls {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.brand-heading-label {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
}

.brand-status {
  margin: 12px 0;
  padding: 14px 16px;
  border: 3px solid var(--ink-strong);
  border-radius: var(--radius-small);
  background: var(--bg-blue-soft);
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-status[hidden] {
  display: none;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.brand-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-content: stretch;
  height: 100%;
  min-height: 100%;
  padding: 18px;
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-mint-soft);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-card-link {
  cursor: pointer;
}

.brand-card h4 {
  font-family: var(--font-body);
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.brand-card:hover,
.brand-card:focus-within,
.brand-card:focus-visible {
  box-shadow: 6px 6px 0 var(--ink-strong);
  transform: translate(-3px, -3px);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 108px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface-white);
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-logo-fallback {
  padding: 6px;
  background: var(--yellow-primary);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.brand-card p {
  align-self: start;
  margin: 0;
  color: #5e5e5e;
  font-size: var(--brand-description-size);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.locate-button-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
}

.locate-button-wrap-right {
  justify-content: flex-end;
}

.locate-button-wrap-center {
  justify-content: center;
}

.sorting-note {
  --sorting-note-x: 0;
  --sorting-note-y: -4px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 4;
  width: min(320px, calc(100vw - 48px));
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(31, 37, 39, 0.14);
  color: #787878;
  font-size: var(--brand-note-size);
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--sorting-note-x), var(--sorting-note-y));
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.locate-button-wrap-right .sorting-note {
  right: 0;
  left: auto;
}

.locate-button-wrap-center .sorting-note {
  --sorting-note-x: -50%;
  right: auto;
  left: 50%;
}

.sorting-note.is-visible {
  --sorting-note-y: 0;
  opacity: 1;
  visibility: visible;
}

.brand-card .button {
  align-self: end;
  font-family: var(--font-body);
  margin-top: auto;
}

.locate-button {
  gap: 8px;
}

.locate-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.locate-button.is-active {
  background: var(--blue-primary);
  color: var(--surface-white);
}

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.filter-label {
  font-weight: 900;
}

.city-select {
  min-height: 42px;
  min-width: 220px;
  padding: 7px 12px;
  border: 3px solid var(--ink-strong);
  border-radius: 12px;
  background: var(--surface-white);
  color: var(--ink-body);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.city-select:hover,
.city-select:focus-visible {
  border-color: var(--pink-strong);
  box-shadow: 0 0 0 3px rgba(232, 37, 112, 0.15);
  outline: none;
}

.compact-section {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.compact-copy {
  width: 100%;
  overflow: hidden;
}

.compact-section .button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.full-section-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.full-section-link:hover .button,
.full-section-link:focus-visible .button {
  transform: translate(2px, 2px) scale(1.02);
}

.social-section {
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 18px;
  width: min(720px, 100%);
  margin: 28px auto 0;
}

.social-grid a {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--surface-white);
  transition: transform 120ms ease, background-color 120ms ease;
}

.social-grid a:hover,
.social-grid a:focus-visible {
  background: var(--bg-yellow-soft);
  transform: translate(2px, 2px);
}

.social-grid img {
  width: min(100%, 108px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.app-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: 84px;
  z-index: 35;
  width: 118px;
  border-radius: 30px;
  animation: app-pulse 2.8s ease-in-out infinite;
  transition: transform 120ms ease;
}

.app-float img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.app-float:hover,
.app-float:focus-visible {
  animation-play-state: paused;
  transform: translate(2px, 2px) scale(1.04);
}

.quick-jump {
  position: fixed;
  right: max(48px, calc(env(safe-area-inset-right) + 48px));
  bottom: 24px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--pink-strong);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 120ms ease, background-color 120ms ease;
}

.quick-jump:hover,
.quick-jump:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
}

.quick-jump svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--art-rotate, 0deg));
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(var(--art-rotate, 0deg));
  }
}

@keyframes soft-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes media-bob {
  0%,
  100% {
    transform: translateX(var(--media-x, 0)) translateY(0) rotate(var(--media-rotate, 0deg));
  }

  50% {
    transform: translateX(var(--media-x, 0)) translateY(-8px) rotate(var(--media-rotate, 0deg));
  }
}

@keyframes app-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes cta-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 37, 112, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(232, 37, 112, 0.22);
  }
}

@keyframes cta-shine {
  0%,
  45% {
    left: -55%;
  }

  70%,
  100% {
    left: 115%;
  }
}

@keyframes cta-ring-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 31, 31, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.12);
  }
}

@keyframes button-pop-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.bottom-nav {
  display: none;
}

@media (min-width: 1381px) {
  main {
    width: min(1040px, calc(100% - 320px));
    margin-right: 40px;
    margin-left: 260px;
  }
}

@media (max-width: 1380px) {
  main {
    padding-bottom: 154px;
  }

  .side-nav {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    z-index: 40;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 6px 8px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-overflow-scrolling: touch;
  }

  .bottom-nav.bottom-nav-centered {
    justify-content: center;
  }

  .bottom-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .app-float {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(122px + env(safe-area-inset-bottom));
    width: 92px;
  }

  .quick-jump {
    right: max(36px, calc(env(safe-area-inset-right) + 36px));
    bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 920px) {
  main {
    width: min(100% - 28px, 760px);
    padding-top: 78px;
    padding-bottom: 142px;
  }

  .site-header {
    justify-content: center;
    height: 62px;
    padding: 6px 16px;
  }

  .logo-link {
    width: 92px;
  }

  .hero,
  .section-layout,
  .section-layout-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 18px 18px 8px;
  }

  .hero-copy,
  .section-content {
    width: 100%;
    max-width: none;
  }

  .hero-copy {
    justify-items: stretch;
  }

  .section-content {
    justify-items: center;
  }

  #hero-title,
  #game-title {
    width: 100%;
    max-width: none;
    justify-self: center;
  }

  #onefree-title,
  #off-title {
    width: 80%;
    max-width: none;
    justify-self: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 1.05rem;
  }

  .hero-actions .button:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 52px;
  }

  .hero-art img {
    width: min(82%, 310px);
  }

  .section-media img {
    width: min(68%, 220px);
  }

  #onefree .section-media img,
  #game .section-media img {
    margin-left: auto;
  }

  [id="40off"] .section-media img {
    margin-right: auto;
  }

  .campaign-section {
    padding: 32px 20px;
    scroll-margin-top: 78px;
  }

  .promo-code-box {
    width: min(80vw, 416px);
  }

  .section-layout-reverse .section-media {
    order: 0;
  }

  .brand-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 60%;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .brand-heading,
  .compact-section {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .brand-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    width: 100%;
  }

  .locate-button-wrap {
    width: 100%;
  }

  #onefree .locate-button-wrap {
    justify-content: center;
  }

  .sorting-note {
    --sorting-note-x: 0;
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    margin-inline: auto;
  }

  #onefree .locate-button-wrap .sorting-note {
    --sorting-note-x: -50%;
    right: auto;
    left: 50%;
  }

  .brand-controls .button {
    width: 100%;
  }

  .brand-card {
    scroll-snap-align: start;
    min-height: 300px;
  }

  .city-select {
    min-width: 100%;
    width: 100%;
  }

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

  .bottom-nav a {
    min-height: 34px;
    padding: 5px 11px;
    font-size: 0.84rem;
  }

  .app-float {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(122px + env(safe-area-inset-bottom));
    width: 82px;
  }

  .quick-jump {
    right: max(28px, calc(env(safe-area-inset-right) + 28px));
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) {
  html,
  body,
  button,
  input,
  select,
  textarea {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body::before,
  body::after {
    display: none;
  }

  main {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 14px 14px 6px;
    border-radius: 26px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(44px, 12.6vw, 57px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  h2 {
    font-size: clamp(32px, 8.9vw, 44px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  #game-title {
    font-size: clamp(27px, 7.15vw, 35px);
  }

  .compact-section h2 {
    font-size: clamp(1.42rem, 9vw, 1.92rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .section-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .bubble-list {
    max-width: 100%;
  }

  .bubble-list li {
    font-size: 0.95rem;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 8px 8px;
    font-size: clamp(0.98rem, 4.35vw, 1.12rem);
    line-height: 1.08;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-actions .button:nth-child(3) {
    padding-inline: 6px;
    font-size: clamp(0.8rem, 3.3vw, 0.94rem);
  }

  .promo-code-box {
    width: 100%;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button-row .button {
    width: 100%;
  }

  #game .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #game .button-row .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: clamp(0.82rem, 4.4vw, 1rem);
    line-height: 1.08;
  }

  html.is-android-line,
  html.is-android-line body,
  html.is-android-line button,
  html.is-android-line input,
  html.is-android-line select,
  html.is-android-line textarea {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  html.is-android-line h1 {
    font-size: clamp(40px, 11vw, 50px);
  }

  html.is-android-line h2 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  html.is-android-line #game-title {
    font-size: clamp(22px, 6.2vw, 29px);
  }

  html.is-android-line .section-subtitle {
    font-size: clamp(0.92rem, 3.9vw, 1.08rem);
  }

  html.is-android-line .bubble-list li {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  html.is-android-line .hero-actions .button {
    font-size: clamp(0.92rem, 3.95vw, 1.04rem);
  }

  html.is-android-line .hero-actions .button:nth-child(3) {
    font-size: clamp(0.74rem, 3vw, 0.86rem);
  }

  html.is-android-line #game .button-row .button {
    font-size: clamp(0.78rem, 3.7vw, 0.92rem);
  }

  .hero-art {
    min-height: 236px;
  }

  .hero-art img {
    width: min(82%, 280px);
  }

  .campaign-section {
    padding: 26px 14px;
    border-radius: 26px;
  }

  .brand-panel {
    padding: 14px;
  }

  :root {
    --brand-description-size: 0.71rem;
  }

  .brand-grid {
    grid-auto-columns: 60%;
    gap: 10px;
  }

  .brand-card {
    gap: 9px;
    min-height: 258px;
    padding: 10px;
    border-radius: 18px;
  }

  .brand-logo {
    min-height: 76px;
    border-radius: 14px;
  }

  .brand-card h4 {
    font-size: 1rem;
  }

  .brand-card .button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .social-grid {
    gap: 10px;
  }

  .social-grid a {
    min-height: 118px;
    padding: 14px;
  }

  .social-grid img {
    width: 82px;
  }

  .site-header {
    height: 56px;
  }

  .logo-link {
    width: 82px;
  }

  .bottom-nav {
    gap: 6px;
    padding: 5px 5px 7px;
    border-radius: 16px;
  }

  .bottom-nav a {
    min-height: 32px;
    font-size: 0.8rem;
  }

  .app-float {
    bottom: calc(114px + env(safe-area-inset-bottom));
    width: 76px;
  }

  .quick-jump {
    bottom: calc(60px + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
