:root {
  color-scheme: light dark;
  --page: #f4f5f8;
  --page-gradient-start: #edf4ff;
  --page-gradient-middle: #f8f3ff;
  --page-gradient-end: #fff8e2;
  --surface: #fffefb;
  --surface-muted: #f7f6f2;
  --surface-accent: #fff9dc;
  --ink: #28251f;
  --muted: #676259;
  --subtle: #918b81;
  --line: rgba(54, 48, 35, 0.11);
  --line-strong: rgba(54, 48, 35, 0.18);
  --brand: #ffd100;
  --brand-strong: #6b4b00;
  --brand-soft: #fff4b8;
  --brand-faint: #fffbed;
  --button-text: #2b2515;
  --coupon: #f04444;
  --coupon-strong: #bd2d34;
  --coupon-soft: #fff0f0;
  --ip-blue: #4f7fdd;
  --ip-blue-soft: #edf3ff;
  --success: #18764d;
  --success-soft: #ecf7f1;
  --danger: #b82032;
  --danger-soft: #fff0f2;
  --map-blue: #3379ec;
  --shadow-card: 0 14px 34px rgba(61, 69, 102, 0.07);
  --shadow-float: 0 18px 54px rgba(55, 59, 86, 0.18);
  --radius-card: 8px;
  --radius-control: 8px;
  --pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(
        135deg,
        var(--page-gradient-start) 0%,
        var(--page-gradient-middle) 46%,
        var(--page-gradient-end) 100%
      )
      top / 100% 640px no-repeat,
    var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

.wechat-share-thumbnail {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 300px;
  height: 300px;
  object-fit: cover;
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button[data-loading="true"] {
  cursor: wait;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

::selection {
  background: rgba(255, 209, 0, 0.32);
}

.app-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 14px 18px calc(38px + env(safe-area-inset-bottom));
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 126px;
  gap: 20px;
  padding: 8px 2px 12px;
}

.brand-lockup {
  display: grid;
  width: min(272px, 58vw);
  min-width: 0;
  gap: 3px;
  text-decoration: none;
}

.brand-identity {
  position: relative;
  display: block;
  width: 100%;
  min-height: 74px;
}

.brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-text-fallback {
  display: block;
  color: var(--ip-blue);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.brand-positioning {
  position: relative;
  z-index: 0;
  justify-self: end;
  margin-right: 8%;
  color: #3474dc;
  font-size: 14px;
  font-weight: 920;
  line-height: 1.3;
  transform: translateY(7px);
  white-space: nowrap;
}

.brand-positioning::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: -1px;
  left: -2px;
  height: 5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 58%, transparent);
  transform: skewX(-10deg);
}

.brand-highlight {
  min-height: 16px;
  padding-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  transition: opacity 240ms ease, transform 240ms ease;
}

.brand-highlight.is-leaving {
  opacity: 0;
  transform: translateY(3px);
}

.header-trust {
  flex: 0 0 auto;
  margin-top: 18px;
  border: 1px solid rgba(116, 83, 0, 0.12);
  border-radius: var(--pill);
  padding: 8px 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}

.app-view {
  animation: viewEnter 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.surface-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-card);
}

.merchant-module {
  padding: 0 0 20px;
  overflow: hidden;
}

.merchant-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 31%, 280px);
  grid-template-rows: auto auto;
  min-height: 310px;
  background: var(--brand);
}

.merchant-intro-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 28px 12px 12px 28px;
}

.merchant-intro-copy h1 {
  max-width: 11em;
  color: #28251f;
  font-size: 30px;
  font-weight: 920;
  line-height: 1.18;
}

.merchant-intro .merchant-intro-copy p {
  max-width: 29em;
  margin-top: 10px;
  color: rgba(40, 37, 31, 0.7);
  font-weight: 620;
  line-height: 1.6;
}

.merchant-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.merchant-intro .feature-label {
  margin: 0;
  border: 1px solid rgba(40, 37, 31, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: #28251f;
}

.merchant-intro .help-link {
  min-height: 32px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #28251f;
  font-size: 11px;
}

.mascot-actions {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: min(310px, 100%);
  padding: 0 16px 24px 28px;
}

.mascot-actions img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 8px rgba(65, 48, 7, 0.1));
}

.mascot-action-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 2px;
  padding: 0 2px;
  color: rgba(40, 37, 31, 0.68);
  text-align: center;
}

.mascot-action-labels b {
  font-size: 11px;
  font-weight: 850;
}

.mascot-stage {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  overflow: visible;
  pointer-events: none;
}

.mascot-main {
  position: absolute;
  top: 5%;
  right: 3%;
  width: 94%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 16px rgba(77, 56, 0, 0.13));
  transform-origin: 50% 70%;
  animation: mascotHello 3.4s ease-in-out infinite;
}

.mascot-stage.has-no-image::after {
  content: "饭卷卷";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 950;
}

.merchant-module > .claim-route,
.merchant-module > .merchant-link-guide,
.merchant-module > .field-block,
.merchant-module > .favorite-shelf,
.merchant-module > .result-area {
  margin-right: 20px;
  margin-left: 20px;
}

.merchant-module > .claim-route {
  margin-top: 18px;
}

.merchant-link-guide {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-strong) 16%, var(--line));
  border-radius: var(--radius-control);
  padding: 10px 11px;
  background: color-mix(in srgb, var(--brand-soft) 52%, var(--surface));
}

.merchant-link-guide-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #28251f;
  font-size: 15px;
  font-weight: 950;
}

.merchant-link-guide-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.merchant-link-guide-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.merchant-link-guide-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-link-guide-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: #28251f;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.merchant-link-guide-action > span {
  font-size: 17px;
  line-height: 1;
}

.merchant-link-guide-action:hover,
.merchant-link-guide-action:focus-visible {
  background: #000;
}

.module-head,
.nearby-head,
.flow-header,
.flow-action-copy,
.location-summary,
.field-heading,
.field-tools,
.token-primary-actions,
.filter-row,
.shop-meta,
.claim-footer,
.modal-head,
.map-caption {
  display: flex;
}

.module-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.module-head.stacked {
  display: block;
}

.module-title-copy {
  min-width: 0;
}

.module-title-copy h1,
.module-title-copy h2,
.flow-header h1,
.flow-action-copy h2,
.result-head h3,
.shop-card h3,
.modal-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.module-title-copy h1,
.flow-header h1 {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}

.module-title-copy h2,
.flow-action-copy h2 {
  font-size: 21px;
  font-weight: 860;
  line-height: 1.3;
}

.module-title-copy p,
.flow-action-copy p {
  max-width: 45em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.feature-label {
  display: inline-flex;
  margin-bottom: 9px;
  border-radius: var(--pill);
  padding: 5px 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.help-link,
.text-button,
.paste-button,
.tutorial-button,
.back-button,
.retry-location,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.help-link,
.tutorial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 7px;
  border-radius: var(--radius-control);
  padding: 0 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.help-link > span,
.tutorial-button > span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}

.claim-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  border: 1px solid rgba(138, 103, 0, 0.12);
  border-radius: var(--radius-control);
  padding: 11px 13px;
  background: var(--brand-faint);
}

.claim-route > span {
  display: grid;
  gap: 2px;
  text-align: center;
}

.claim-route b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.claim-route small {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 750;
}

.claim-route i,
.handoff-route i {
  color: var(--subtle);
  font-size: 19px;
  font-style: normal;
}

.field-block {
  display: grid;
  gap: 8px;
}

.input-shell {
  position: relative;
  display: block;
  min-width: 0;
}

.input-shell textarea {
  padding-right: 48px;
}

.clear-input-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  box-shadow: 0 3px 10px rgba(40, 35, 25, 0.08);
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease;
}

.field-block.has-value .clear-input-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.clear-input-button:hover,
.clear-input-button:focus-visible {
  color: var(--danger);
}

.field-heading {
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 12px;
}

.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.field-tools {
  align-items: center;
  gap: 5px;
}

.text-button,
.paste-button {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.text-button {
  color: var(--muted);
}

.paste-button {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--surface-muted);
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.6;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea::placeholder,
input::placeholder {
  color: var(--subtle);
  opacity: 1;
}

textarea:hover,
input:hover {
  border-color: var(--line-strong);
}

textarea:focus,
input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.24);
}

.field-block.has-value textarea,
.field-block.has-value input {
  border-color: rgba(24, 118, 77, 0.3);
  background: color-mix(in srgb, var(--success-soft) 45%, var(--surface));
}

.field-hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-hint.is-success {
  color: var(--success);
}

.field-hint.is-error {
  color: var(--danger);
}

.favorite-shelf {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0 2px;
}

.favorite-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.favorite-shelf-head > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.favorite-shelf-head strong {
  font-size: 14px;
  font-weight: 900;
}

.favorite-shelf-head small {
  color: var(--muted);
  font-size: 11px;
}

.favorite-shelf-head > b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

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

.favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.favorite-use {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.favorite-use > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.favorite-use strong,
.favorite-use small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-use strong {
  font-size: 13px;
  font-weight: 850;
}

.favorite-use small {
  color: var(--muted);
  font-size: 10px;
}

.favorite-use > b {
  color: var(--subtle);
  font-size: 18px;
}

.favorite-star {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
}

.favorite-remove {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--subtle);
  font-size: 18px;
}

.favorite-use:hover strong,
.favorite-use:focus-visible strong {
  color: var(--brand-strong);
}

.favorite-remove:hover,
.favorite-remove:focus-visible {
  color: var(--danger);
}

.primary-button,
.login-button,
.claim-link,
.disabled-link,
.promo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

button.claim-link,
button.mini-program-bridge-button,
button.order-choice-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  min-height: 50px;
  border: 0;
  padding: 0 20px;
  background: var(--brand);
  color: var(--button-text);
  box-shadow: 0 9px 20px rgba(121, 94, 0, 0.18);
}

.primary-button-wide {
  width: 100%;
}

.merchant-module > .primary-button {
  width: calc(100% - 40px);
  margin: 14px 20px 0;
}

.primary-button:disabled {
  background: color-mix(in srgb, var(--ink) 14%, var(--surface));
  color: var(--subtle);
  box-shadow: none;
}

.primary-button[data-loading="true"] {
  background: var(--brand);
  color: var(--button-text);
  opacity: 0.76;
}

.primary-button:not(:disabled):hover,
.login-button:hover,
.claim-link:hover {
  filter: brightness(0.97);
  box-shadow: 0 11px 24px rgba(121, 94, 0, 0.22);
}

.primary-button:not(:disabled):active,
.login-button:active,
.claim-link:active,
.promo-entry:active,
.map-card:active,
.back-button:active,
.help-link:active,
.tutorial-button:active,
.paste-button:active,
.bottom-nav button:active {
  transform: scale(0.985);
}

.mini-program-launch {
  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 98px;
}

.mini-program-open-tag {
  display: none;
  width: 100%;
  min-width: 98px;
  height: 42px;
}

.mini-program-launch .mini-program-fallback {
  width: 100%;
}

.mini-program-preparing,
.mini-fallback-failed {
  display: none;
}

body.wechat-open-tag-loading .mini-program-fallback {
  display: none;
}

body.wechat-open-tag-loading .mini-program-preparing {
  display: inline-flex;
  width: 100%;
}

body.wechat-open-tag-ready .mini-program-open-tag {
  display: block;
}

body.wechat-open-tag-ready .mini-program-fallback {
  display: none;
}

body.wechat-open-tag-ready .mini-program-launch.is-failed .mini-program-open-tag {
  display: none;
}

body.wechat-open-tag-ready .mini-program-launch.is-failed .mini-program-fallback {
  display: inline-flex;
}

body.wechat-open-tag-failed .mini-fallback-default,
body.wechat-open-tag-ready .mini-program-launch.is-failed .mini-fallback-default {
  display: none;
}

body.wechat-open-tag-failed .mini-fallback-failed,
body.wechat-open-tag-ready .mini-program-launch.is-failed .mini-fallback-failed {
  display: inline;
}

.mini-program-bridge-button {
  width: 100%;
}

.mini-program-bridge-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-strong) 42%, transparent);
  outline-offset: 2px;
}

body.mini-program-webview .mini-program-bridge-button {
  display: inline-flex;
}

.subsidy-promo {
  padding: 0;
  overflow: hidden;
  border-color: rgba(93, 73, 8, 0.13);
  background: var(--surface);
}

.promo-entry {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 0;
  padding: 19px 20px;
  background: var(--brand-faint);
  color: var(--ink);
  text-align: left;
}

.promo-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(91, 70, 0, 0.09);
  border-radius: 50%;
  background: var(--brand);
  font-size: 30px;
  box-shadow: 0 8px 18px rgba(121, 94, 0, 0.15);
}

.promo-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.promo-copy > small {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}

.promo-copy > strong {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.25;
}

.promo-copy > strong b {
  color: var(--coupon);
  font-size: 27px;
  font-weight: 950;
}

.promo-copy > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 11px;
  color: var(--muted);
  font-size: 12px;
}

.promo-copy em,
.promo-copy i {
  font-style: normal;
}

.promo-action {
  min-height: 42px;
  gap: 6px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--brand);
  font-size: 13px;
}

.promo-action i {
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
}

.nearby-head {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.nearby-head h2 span {
  color: var(--coupon);
}

.brand-orbit {
  display: flex;
  flex: 0 0 auto;
  padding-left: 14px;
}

.brand-orbit img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  padding: 7px;
  object-fit: contain;
  box-shadow: 0 6px 15px rgba(61, 43, 47, 0.13);
}

.brand-orbit img:nth-child(1) {
  background: #c8102e;
}

.brand-orbit img:nth-child(2) {
  background: #ffbc0d;
}

.brand-orbit img:nth-child(3) {
  background: #00754a;
}

.map-card {
  display: grid;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
  background: #e9f0f2;
  color: #272324;
  text-align: left;
}

.map-card:focus-visible,
.promo-entry:focus-visible,
.bottom-nav button:focus-visible {
  outline: 3px solid rgba(255, 209, 0, 0.3);
  outline-offset: 3px;
}

.map-schematic {
  position: relative;
  display: block;
  min-height: 248px;
  overflow: hidden;
  background:
    linear-gradient(113deg, transparent 0 42%, rgba(119, 187, 141, 0.42) 42% 53%, transparent 53%),
    linear-gradient(15deg, transparent 0 58%, rgba(89, 179, 218, 0.31) 58% 63%, transparent 63%),
    #e8eff2;
}

.map-schematic::before,
.map-schematic::after,
.map-road {
  content: "";
  position: absolute;
  border-radius: var(--pill);
  background: #fffefd;
  box-shadow: 0 0 0 1px rgba(146, 163, 171, 0.19);
}

.map-schematic::before {
  left: -8%;
  top: 18%;
  width: 118%;
  height: 20px;
  transform: rotate(-14deg);
}

.map-schematic::after {
  left: 50%;
  top: -12%;
  width: 18px;
  height: 116%;
  transform: rotate(30deg);
}

.road-main {
  left: -8%;
  bottom: 27%;
  width: 120%;
  height: 18px;
  transform: rotate(13deg);
}

.road-cross {
  right: 18%;
  top: -10%;
  width: 15px;
  height: 112%;
  transform: rotate(-8deg);
}

.road-soft {
  height: 9px;
  background: rgba(255, 255, 255, 0.8);
}

.road-a {
  left: 10%;
  top: 48%;
  width: 45%;
  transform: rotate(-34deg);
}

.road-b {
  right: 2%;
  top: 45%;
  width: 42%;
  transform: rotate(24deg);
}

.road-c {
  left: 3%;
  bottom: 15%;
  width: 52%;
  transform: rotate(-6deg);
}

.map-block {
  position: absolute;
  border: 1px solid rgba(132, 151, 160, 0.13);
  border-radius: 5px;
  background: rgba(208, 220, 224, 0.68);
}

.block-a {
  left: 4%;
  top: 5%;
  width: 22%;
  height: 20%;
  transform: rotate(-8deg);
}

.block-b {
  right: 4%;
  top: 11%;
  width: 21%;
  height: 24%;
  transform: rotate(5deg);
}

.block-c {
  right: 25%;
  bottom: 8%;
  width: 19%;
  height: 18%;
  transform: rotate(-6deg);
}

.map-label {
  position: absolute;
  z-index: 1;
  border-radius: 5px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.88);
  color: #647278;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(71, 91, 99, 0.07);
}

.map-label-primary {
  left: 43%;
  top: 47%;
}

.map-label-secondary {
  right: 9%;
  top: 17%;
}

.user-pin {
  position: absolute;
  z-index: 3;
  left: 52%;
  top: 44%;
  width: 22px;
  height: 22px;
  border: 4px solid #fffafa;
  border-radius: 50%;
  background: var(--map-blue);
  box-shadow: 0 4px 14px rgba(51, 121, 236, 0.42);
}

.user-pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(51, 121, 236, 0.23);
  border-radius: 50%;
  animation: locationPulse 1.8s ease-out infinite;
}

.packet-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.packet-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fffafa;
  border-radius: 50%;
  background: var(--coupon);
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(190, 45, 52, 0.24);
  animation: packetFloat 2.8s ease-in-out infinite;
}

.map-caption {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px 16px;
  background: #fffefd;
}

.map-caption > span {
  display: grid;
  gap: 4px;
}

.map-caption strong {
  font-size: 16px;
  font-weight: 850;
}

.map-caption small {
  color: #687479;
  font-size: 12px;
}

.map-caption > i {
  color: var(--brand-strong);
  font-size: 27px;
  font-style: normal;
}

.flow-header {
  align-items: center;
  gap: 13px;
  min-height: 73px;
  padding: 3px 0 7px;
}

.flow-header > div {
  display: grid;
  gap: 3px;
}

.flow-header span {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.back-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(70, 47, 51, 0.07);
}

.back-arrow {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: var(--pill);
  background: currentColor;
  transform: translateX(1px);
}

.back-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.token-guide {
  margin-top: 7px;
}

.token-head {
  align-items: center;
}

.privacy-badge {
  flex: 0 0 auto;
  border-radius: var(--pill);
  padding: 7px 10px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.token-primary-actions {
  align-items: stretch;
  gap: 9px;
}

.login-button {
  flex: 1;
  min-height: 50px;
  background: var(--ink);
  color: var(--surface);
}

.tutorial-button {
  min-width: 142px;
}

.handoff-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  border-radius: var(--radius-control);
  padding: 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.token-field {
  margin-top: 16px;
}

.flow-action-card {
  display: grid;
  gap: 17px;
}

.flow-action-copy {
  align-items: center;
  gap: 13px;
}

.flow-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 28px;
}

.location-summary {
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  border: 1px solid rgba(24, 118, 77, 0.21);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  background: color-mix(in srgb, var(--success-soft) 86%, var(--surface));
}

.location-summary > div {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.location-summary strong {
  font-size: 14px;
}

.location-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.location-summary.has-error {
  border-color: rgba(184, 32, 50, 0.22);
  background: var(--danger-soft);
}

.location-pulse {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(24, 118, 77, 0.1);
}

.location-summary.has-error .location-pulse {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(184, 32, 50, 0.1);
}

.retry-location {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.finder-module {
  display: grid;
  gap: 16px;
}

.finder-module .module-head {
  margin-bottom: 0;
}

.filter-row {
  align-items: end;
  gap: 14px;
}

.compact-field {
  flex: 1;
}

.switch-field {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: var(--pill);
  background: #d3ced0;
  transition: background 150ms ease;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 5px rgba(52, 38, 41, 0.2);
  transition: transform 150ms ease;
}

.switch-field input:checked + .switch-control {
  background: var(--brand);
}

.switch-field input:checked + .switch-control::after {
  transform: translateX(16px);
}

.switch-field input:focus-visible + .switch-control {
  outline: 3px solid rgba(255, 209, 0, 0.28);
  outline-offset: 2px;
}

.result-area:empty {
  display: none;
}

.result-area:not(:empty) {
  margin-top: 18px;
}

.result-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px 12px;
  margin-bottom: 13px;
}

.result-kicker {
  grid-column: 1 / -1;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.result-head h3 {
  font-size: 21px;
  font-weight: 880;
  line-height: 1.3;
}

.result-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.merchant-favorite-button {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 0 9px;
  background: var(--surface);
  color: var(--muted);
}

.merchant-favorite-button span {
  font-size: 13px;
}

.merchant-favorite-button b {
  font-size: 11px;
  font-weight: 850;
}

.merchant-favorite-button.is-favorite {
  border-color: rgba(138, 103, 0, 0.2);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.merchant-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-control);
  padding: 0 10px;
  background: var(--brand);
  color: var(--button-text);
  box-shadow: 0 5px 12px rgba(121, 94, 0, 0.16);
}

.merchant-order-button b {
  font-size: 11px;
  font-weight: 900;
}

.merchant-order-button span {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.merchant-order-button:disabled {
  background: var(--surface-muted);
  color: var(--subtle);
  box-shadow: none;
}

.merchant-order-button:not(:disabled):hover,
.merchant-order-button:not(:disabled):focus-visible {
  filter: brightness(0.97);
  box-shadow: 0 7px 16px rgba(121, 94, 0, 0.22);
}

.coupon-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border-radius: var(--pill);
  padding: 0 10px;
  background: var(--coupon-soft);
  color: var(--coupon-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.coupon-chip.is-empty {
  background: var(--surface-muted);
  color: var(--muted);
}

.coupon-mantra {
  margin-bottom: 10px;
  border-radius: var(--radius-control);
  padding: 11px 12px;
  background: var(--brand);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.claim-stack {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.claim-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px 13px;
}

.claim-card + .claim-card {
  border-top: 1px solid var(--line);
}

.claim-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 950;
}

.claim-order {
  position: absolute;
  left: -5px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 9px;
  font-weight: 900;
}

.claim-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.claim-copy strong {
  font-size: 16px;
  font-weight: 880;
  line-height: 1.3;
}

.claim-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.claim-card.is-coupon .claim-copy small {
  color: var(--coupon-strong);
  font-size: 14px;
  font-weight: 900;
}

.claim-card.is-coupon .claim-icon {
  background: var(--coupon-soft);
  color: var(--coupon-strong);
}

.claim-card.is-cashback .claim-icon {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.claim-card.is-cashback {
  grid-template-columns: 50px minmax(0, 1fr) 126px;
  min-height: 136px;
}

.cashback-offer {
  display: grid;
  gap: 5px;
  margin-top: 3px;
}

.cashback-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.cashback-rate,
.cashback-cap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
}

.cashback-rate small,
.cashback-cap small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cashback-rate b {
  color: var(--coupon-strong);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.cashback-cap {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.cashback-cap b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.cashback-review {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.cashback-review b {
  color: var(--coupon-strong);
  font-size: 13px;
  font-weight: 900;
}

.cashback-rule {
  display: grid;
  gap: 5px;
  margin: 2px 0;
  border-left: 3px solid var(--brand);
  padding: 7px 9px;
  background: var(--brand-faint);
}

.cashback-rule > small {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 900;
}

.cashback-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cashback-steps > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cashback-steps b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--button-text);
  font-size: 9px;
  font-weight: 950;
}

.cashback-steps em {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.cashback-steps > i {
  color: var(--subtle);
  font-size: 15px;
  font-style: normal;
}

.cashback-quota {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.cashback-quota i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--success);
}

.cashback-quota b {
  color: var(--ink);
  font-weight: 900;
}

.claim-card.is-unavailable {
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface));
}

.claim-card.is-unavailable .claim-icon {
  background: var(--surface-muted);
  color: var(--subtle);
}

.claim-card.is-unavailable .claim-copy strong,
.claim-card.is-unavailable .claim-copy small {
  color: var(--muted);
}

.claim-link,
.disabled-link {
  min-width: 98px;
  min-height: 42px;
  gap: 6px;
  padding: 0 11px;
  font-size: 13px;
}

.claim-link {
  background: var(--brand);
  color: var(--button-text);
}

.claim-card.is-cashback > .claim-link,
.claim-card.is-cashback > .mini-program-launch {
  min-width: 124px;
}

.claim-action-arrow {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(40, 35, 25, 0.09);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.disabled-link {
  background: var(--surface-muted);
  color: var(--subtle);
}

.status-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.status-box.success {
  border-color: rgba(24, 118, 77, 0.22);
  background: var(--success-soft);
  color: #176641;
}

.status-box.error {
  border-color: rgba(184, 32, 50, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.subsidy-result {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.subsidy-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.subsidy-result-head > span {
  display: grid;
  gap: 4px;
}

.subsidy-result-head small,
.subsidy-result-kicker {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.subsidy-result-head strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.subsidy-result-head > b {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
}

.subsidy-ticket-list {
  display: grid;
  gap: 10px;
}

.subsidy-ticket {
  --ticket-ink: #28251f;
  --ticket-muted: #676259;
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(190, 45, 52, 0.16);
  border-radius: var(--radius-card);
  background: linear-gradient(100deg, #fff3a8 0 92px, #fffdf5 92px 100%);
  box-shadow: 0 9px 24px rgba(136, 94, 0, 0.08);
}

.subsidy-ticket::before,
.subsidy-ticket::after {
  content: "";
  position: absolute;
  left: 84px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(190, 45, 52, 0.14);
  border-radius: 50%;
  background: var(--surface);
}

.subsidy-ticket::before {
  top: -9px;
}

.subsidy-ticket::after {
  bottom: -9px;
}

.subsidy-ticket-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  color: var(--coupon-strong);
}

.subsidy-ticket-value small {
  margin-right: 2px;
  font-size: 15px;
  font-weight: 900;
}

.subsidy-ticket-value strong {
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.subsidy-ticket-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  border-left: 1px dashed rgba(154, 103, 0, 0.2);
  padding: 15px 12px 15px 16px;
}

.subsidy-ticket-copy > strong {
  color: var(--ticket-ink);
  font-size: 16px;
  font-weight: 900;
}

.subsidy-ticket-copy > b {
  color: var(--coupon-strong);
  font-size: 13px;
  font-weight: 850;
}

.subsidy-ticket-copy > small {
  overflow: hidden;
  color: var(--ticket-muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subsidy-ticket-status {
  align-self: start;
  margin: 12px 12px 0 0;
  border-radius: var(--pill);
  padding: 5px 8px;
  background: var(--coupon-soft);
  color: var(--coupon-strong);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.subsidy-result-note {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.subsidy-result-empty {
  border: 1px dashed rgba(138, 103, 0, 0.25);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--brand-faint);
  text-align: center;
}

.subsidy-result-empty h3 {
  margin: 6px 0;
  font-size: 18px;
}

.subsidy-result-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.subsidy-result-empty.is-failed {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  background: var(--danger-soft);
}

.subsidy-result-empty.is-failed .subsidy-result-kicker,
.subsidy-result-empty.is-failed h3 {
  color: var(--danger);
}

.subsidy-result-empty.is-unpriced {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.loading-state {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--surface);
}

.loading-assistant {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-assistant > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.loading-assistant strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 880;
}

.loading-assistant small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mascot-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(91, 70, 0, 0.1);
  border-radius: 50%;
  background: var(--brand);
}

.mascot-avatar img {
  position: absolute;
  left: -235%;
  top: -68%;
  width: 420%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
}

.skeleton-row {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
}

.skeleton-row:nth-child(3) {
  width: 78%;
}

.skeleton-row:nth-child(4) {
  width: 58%;
}

.skeleton-row::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.22), transparent);
  animation: shimmer 1.15s linear infinite;
}

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

.shop-card {
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 15px;
  background: var(--surface);
}

.shop-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.shop-title-row {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 7px;
}

.shop-title-row h3 {
  flex: 1;
  min-width: 0;
}

.shop-favorite-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--subtle);
  font-size: 14px;
}

.shop-favorite-button.is-favorite {
  border-color: rgba(138, 103, 0, 0.2);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.shop-card h3 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.42;
}

.shop-coupon {
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--coupon-soft);
  color: var(--coupon-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.shop-meta {
  flex-wrap: wrap;
  gap: 6px;
}

.shop-meta span {
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
}

.claim-footer {
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.claim-footer .claim-link,
.claim-footer .disabled-link,
.claim-footer .mini-program-launch {
  flex: 1;
}

.empty-shop-state {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  padding: 22px 16px;
  background: var(--surface-muted);
  text-align: center;
}

.empty-shop-state strong {
  font-size: 15px;
  font-weight: 850;
}

.empty-shop-state small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.load-more-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  background: var(--surface-muted);
}

.load-more-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.load-more-copy strong {
  font-size: 13px;
  font-weight: 850;
}

.load-more-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.load-more-button {
  flex: 0 0 auto;
  min-height: 39px;
  border: 0;
  border-radius: var(--radius-control);
  padding: 0 14px;
  background: var(--brand);
  color: var(--button-text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.load-more-button:disabled {
  background: color-mix(in srgb, var(--ink) 14%, var(--surface));
  color: var(--subtle);
}

.load-more-button:not(:disabled):active {
  transform: scale(0.985);
}

.load-more-panel.has-error {
  border-color: rgba(184, 32, 50, 0.2);
  background: var(--danger-soft);
}

.load-more-panel.has-error .load-more-copy strong,
.load-more-panel.has-error .load-more-copy small {
  color: var(--danger);
}

.load-more-panel.is-stale {
  border-color: rgba(138, 103, 0, 0.16);
  background: var(--brand-soft);
}

.load-more-panel.is-complete {
  justify-content: center;
  text-align: center;
}

.bottom-note {
  padding: 22px 8px 3px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.bottom-nav {
  display: none;
}

.fan-group-float {
  position: fixed;
  z-index: 22;
  right: max(18px, calc((100vw - 860px) / 2 - 76px));
  bottom: calc(28px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: visible;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  padding: 0;
  background: var(--brand);
  color: var(--button-text);
  box-shadow: 0 13px 30px rgba(63, 55, 25, 0.24);
  animation: fanGroupPulse 2.8s ease-in-out infinite;
}

.fan-group-float:hover {
  box-shadow: 0 15px 34px rgba(63, 55, 25, 0.3);
}

.fan-group-float:active {
  transform: scale(0.96);
}

.fan-group-float:focus-visible {
  outline: 3px solid rgba(79, 127, 221, 0.34);
  outline-offset: 3px;
}

.fan-group-float img,
.fan-group-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.fan-group-float img {
  object-fit: cover;
}

.fan-group-fallback {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--button-text);
  font-size: 25px;
  font-weight: 950;
}

.fan-group-tag {
  position: absolute;
  right: -5px;
  bottom: -8px;
  min-width: 38px;
  border: 2px solid #fff;
  border-radius: var(--pill);
  padding: 3px 7px;
  background: var(--ip-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 23, 25, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.location-backdrop {
  z-index: 40;
}

.order-confirm-backdrop {
  z-index: 45;
}

.modal-panel {
  width: min(100%, 560px);
  max-height: min(88dvh, 780px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.modal-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
}

.modal-panel h2 {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.34;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 24px;
}

.tutorial-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.tutorial-empty {
  border: 1px dashed rgba(138, 103, 0, 0.28);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  background: var(--brand-soft);
  color: var(--ink);
}

.tutorial-empty > strong {
  display: block;
  margin-bottom: 15px;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.tutorial-empty ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tutorial-step;
}

.tutorial-empty li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  counter-increment: tutorial-step;
}

.tutorial-empty li::before {
  content: counter(tutorial-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--button-text);
  font-size: 12px;
  font-weight: 950;
}

.fan-group-panel {
  width: min(100%, 420px);
}

.order-confirm-panel {
  width: min(100%, 510px);
}

.order-confirm-head {
  margin-bottom: 12px;
}

.order-merchant-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
}

.order-merchant-line span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-merchant-line strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-confirm-description {
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.order-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(138, 103, 0, 0.18);
  border-radius: var(--radius-control);
  padding: 12px 10px;
  background: var(--brand-soft);
}

.order-stack > span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.order-stack b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--button-text);
  font-size: 10px;
  font-weight: 950;
}

.order-stack em {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.order-stack > i {
  color: var(--brand-strong);
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
}

.order-cashback-extra {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border-left: 3px solid var(--coupon);
  padding: 6px 0 6px 11px;
}

.order-cashback-extra b {
  color: var(--coupon-strong);
  font-size: 12px;
  font-weight: 900;
}

.order-cashback-extra span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.order-saving-note {
  display: grid;
  gap: 4px;
  margin-top: 13px;
  border-radius: var(--radius-control);
  padding: 11px 12px;
  background: var(--surface-muted);
}

.order-saving-note strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.order-saving-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.order-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.order-choice-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.order-choice-button.is-app {
  border-color: transparent;
  background: var(--brand);
  color: var(--button-text);
}

.order-choice-button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.order-choice-button b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-choice-button small {
  overflow: hidden;
  color: currentColor;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0.68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-choice-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: rgba(40, 35, 25, 0.1);
  font-size: 9px;
  font-weight: 950;
}

.order-choice-button.is-mini .order-choice-mark {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.order-choice-button:not(:disabled):hover,
.order-choice-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.order-choice-button:not(:disabled):active {
  transform: scale(0.985);
}

.order-choice-button:disabled {
  color: var(--subtle);
  cursor: not-allowed;
}

.order-mini-program-launch {
  width: 100%;
  min-width: 0;
}

.order-mini-program-launch .mini-program-open-tag {
  width: 100%;
  min-width: 0;
  height: 62px;
}

.order-mini-program-launch .mini-program-preparing {
  display: none;
  min-height: 62px;
}

body.wechat-open-tag-loading .order-mini-program-launch .mini-program-preparing {
  display: flex;
}

.order-fallback-tip {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.order-launch-status {
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.order-launch-status[data-type="success"] {
  color: var(--success);
}

.order-launch-status[data-type="error"] {
  color: var(--danger);
}

.fan-group-image {
  display: block;
  width: 100%;
  max-height: 62dvh;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  object-fit: contain;
}

.fan-group-tip {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.fan-group-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  padding: 28px 18px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.location-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 480px;
  padding: 28px 24px 24px;
  text-align: center;
}

.location-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.location-cancel {
  min-height: 38px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.location-cancel:hover,
.location-cancel:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-panel .modal-kicker {
  margin: 0;
}

.location-panel h2 {
  max-width: 17em;
}

.location-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.location-hero-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid var(--brand-soft);
  background: var(--brand);
}

.location-hero-icon i {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(138, 103, 0, 0.2);
  border-radius: 50%;
  animation: consentPulse 2s ease-out infinite;
}

.location-privacy {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.location-privacy span {
  border-radius: var(--radius-control);
  padding: 10px 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.system-permission-tip {
  color: var(--muted);
  font-size: 12px;
}

.permission-result {
  min-height: 20px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes packetFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes fanGroupPulse {
  0%,
  100% {
    box-shadow: 0 13px 30px rgba(63, 55, 25, 0.24);
  }
  50% {
    box-shadow: 0 15px 36px rgba(79, 127, 221, 0.32);
  }
}

@keyframes locationPulse {
  from {
    opacity: 0.75;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes consentPulse {
  from {
    opacity: 0.6;
    transform: scale(0.84);
  }
  to {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes mascotHello {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  48% {
    transform: translateY(-4px) rotate(-0.8deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 11px 12px calc(102px + env(safe-area-inset-bottom));
  }

  .app-header {
    min-height: 112px;
    padding: 5px 2px 9px;
  }

  .header-trust {
    display: none;
  }

  .brand-lockup {
    width: min(236px, 66vw);
  }

  .brand-identity {
    min-height: 66px;
  }

  .brand-positioning {
    font-size: 12px;
  }

  .brand-highlight {
    font-size: 12px;
  }

  .surface-card {
    margin-top: 12px;
    padding: 16px;
  }

  .merchant-module {
    padding: 0 0 16px;
  }

  .merchant-intro {
    grid-template-columns: minmax(0, 1fr) 44%;
    min-height: 296px;
  }

  .merchant-intro-copy {
    padding: 20px 2px 10px 18px;
  }

  .merchant-intro-copy h1 {
    font-size: 26px;
  }

  .mascot-actions {
    width: min(235px, 100%);
    padding: 0 10px 20px 18px;
  }

  .mascot-main {
    right: 0;
    width: 110%;
    height: 90%;
  }

  .merchant-module > .claim-route,
  .merchant-module > .merchant-link-guide,
  .merchant-module > .field-block,
  .merchant-module > .favorite-shelf,
  .merchant-module > .result-area {
    margin-right: 16px;
    margin-left: 16px;
  }

  .merchant-module > .primary-button {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .module-title-copy h1,
  .flow-header h1 {
    font-size: 23px;
  }

  .module-title-copy h2,
  .flow-action-copy h2 {
    font-size: 19px;
  }

  .module-title-copy p,
  .flow-action-copy p {
    font-size: 13px;
  }

  .promo-entry {
    padding: 17px 16px;
  }

  .promo-copy > strong {
    font-size: 19px;
  }

  .promo-copy > strong b {
    font-size: 24px;
  }

  .map-schematic {
    min-height: 220px;
  }

  .flow-header {
    min-height: 67px;
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .switch-field {
    min-height: 42px;
  }

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

  .bottom-nav {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100% - 24px), 520px);
    min-height: 66px;
    margin: auto;
    border: 1px solid rgba(55, 39, 43, 0.12);
    border-radius: 14px;
    padding: 5px;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    box-shadow: 0 14px 38px rgba(59, 38, 43, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .fan-group-float {
    display: grid;
    right: -6px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .fan-group-float .fan-group-tag {
    right: 2px;
    bottom: -7px;
  }

  .bottom-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    padding: 6px 4px;
    background: transparent;
    color: var(--muted);
  }

  .bottom-nav button > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 23px;
    color: currentColor;
    font-size: 17px;
    font-weight: 950;
    line-height: 1;
  }

  .bottom-nav button > strong {
    font-size: 11px;
    font-weight: 800;
  }

  .bottom-nav button.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
  }
}

@media (max-width: 520px) {
  .favorite-list {
    grid-template-columns: 1fr;
  }

  .claim-card.is-cashback {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .claim-card.is-cashback .claim-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 2px;
  }

  .claim-card.is-cashback .claim-copy,
  .claim-card.is-cashback > .claim-link,
  .claim-card.is-cashback > .disabled-link,
  .claim-card.is-cashback > .mini-program-launch {
    grid-column: 2;
  }

  .claim-card.is-cashback > .claim-link,
  .claim-card.is-cashback > .disabled-link,
  .claim-card.is-cashback > .mini-program-launch {
    width: 100%;
    margin-top: 3px;
  }

  .claim-card.is-cashback .cashback-main {
    gap: 5px 9px;
  }

  .subsidy-ticket {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 112px;
    background: linear-gradient(100deg, #fff3a8 0 78px, #fffdf5 78px 100%);
  }

  .subsidy-ticket::before,
  .subsidy-ticket::after {
    left: 70px;
  }

  .subsidy-ticket-value strong {
    font-size: 29px;
  }

  .subsidy-ticket-copy {
    padding-right: 12px;
    padding-left: 13px;
  }

  .subsidy-ticket-status {
    position: absolute;
    right: 9px;
    top: 8px;
    margin: 0;
  }

  .subsidy-ticket-copy > strong {
    padding-right: 52px;
    font-size: 15px;
  }

  .subsidy-result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .token-head {
    display: grid;
    gap: 11px;
  }

  .merchant-intro {
    grid-template-columns: minmax(0, 1fr) 46%;
    min-height: 300px;
  }

  .merchant-intro-copy {
    padding: 17px 0 10px 16px;
  }

  .merchant-intro-copy h1 {
    font-size: 24px;
  }

  .merchant-intro .merchant-intro-copy p {
    width: calc(100% - 26px);
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
  }

  .merchant-topline {
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .merchant-intro .feature-label {
    display: none;
  }

  .merchant-intro .help-link {
    min-height: 29px;
    font-size: 10px;
  }

  .mascot-actions {
    width: min(205px, 100%);
    padding: 0 6px 18px 16px;
  }

  .mascot-action-labels b {
    font-size: 9px;
  }

  .mascot-main {
    top: 5%;
    right: 0;
    width: 114%;
    height: 90%;
  }

  .feature-label {
    margin-bottom: 7px;
  }

  .claim-route {
    gap: 3px;
    padding: 9px 7px;
  }

  .claim-route b {
    font-size: 12px;
  }

  .claim-route small {
    font-size: 9px;
  }

  .promo-entry {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .promo-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .promo-action {
    min-height: 38px;
    padding: 0 10px;
  }

  .nearby-head {
    align-items: flex-start;
  }

  .brand-orbit {
    padding-top: 3px;
  }

  .brand-orbit img {
    width: 29px;
    height: 29px;
    padding: 6px;
  }

  .privacy-badge {
    justify-self: start;
  }

  .token-primary-actions {
    display: grid;
  }

  .tutorial-button {
    width: 100%;
  }

  .claim-card {
    grid-template-columns: 46px minmax(0, 1fr) 98px;
    gap: 10px;
    padding: 11px;
  }

  .claim-icon {
    width: 44px;
    height: 44px;
  }

  .claim-link,
  .disabled-link {
    min-height: 42px;
    padding: 0 9px;
  }

  .load-more-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .load-more-button {
    width: 100%;
  }

  .modal-panel {
    padding: 17px;
  }

  .order-confirm-panel {
    padding: 17px;
  }

  .order-choice-grid {
    grid-template-columns: 1fr;
  }

  .order-stack {
    gap: 5px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .order-stack em {
    font-size: 10px;
  }

  .location-panel {
    padding: 24px 18px 20px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-lockup {
    width: min(222px, 69vw);
  }

  .brand-identity {
    min-height: 62px;
  }

  .surface-card {
    padding: 14px;
  }

  .merchant-module {
    padding: 0 0 14px;
  }

  .merchant-intro {
    grid-template-columns: minmax(0, 1fr) 46%;
  }

  .merchant-intro-copy {
    padding-left: 14px;
  }

  .merchant-module > .claim-route,
  .merchant-module > .merchant-link-guide,
  .merchant-module > .field-block,
  .merchant-module > .favorite-shelf,
  .merchant-module > .result-area {
    margin-right: 14px;
    margin-left: 14px;
  }

  .merchant-module > .primary-button {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .field-tools {
    gap: 2px;
  }

  .merchant-link-guide {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .merchant-link-guide-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .merchant-link-guide-copy strong {
    font-size: 12px;
  }

  .merchant-link-guide-copy small {
    display: none;
  }

  .merchant-link-guide-action {
    min-height: 32px;
    padding: 0 8px;
  }

  .text-button,
  .paste-button {
    padding: 0 7px;
  }

  .promo-entry {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .promo-icon {
    width: 46px;
    height: 46px;
  }

  .promo-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .brand-orbit img {
    width: 27px;
    height: 27px;
  }

  .result-head {
    grid-template-columns: 1fr;
  }

  .result-head-actions {
    justify-content: flex-start;
  }

  .claim-card {
    grid-template-columns: 44px minmax(0, 1fr) 98px;
  }

  .location-summary {
    align-items: flex-start;
  }

  .retry-location {
    padding: 0 6px;
  }
}

@media (max-width: 340px) {
  .merchant-intro {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .merchant-intro-copy {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 16px;
  }

  .merchant-intro-copy h1 {
    font-size: 22px;
  }

  .merchant-intro .merchant-intro-copy p {
    width: auto;
    font-size: 11px;
  }

  .mascot-stage {
    grid-column: 2;
    grid-row: 1;
    min-height: 230px;
  }

  .mascot-main {
    top: 6%;
    right: 0;
    width: 112%;
    height: 88%;
  }

  .mascot-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(250px, 100%);
    padding: 2px 14px 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121314;
    --page-gradient-start: #171b22;
    --page-gradient-middle: #18171b;
    --page-gradient-end: #1d1b13;
    --surface: #1d1e1f;
    --surface-muted: #262729;
    --surface-accent: #2b2818;
    --ink: #f4f5f6;
    --muted: #b9bdc2;
    --subtle: #898e95;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --brand: #ffd100;
    --brand-strong: #ffe275;
    --brand-soft: #373117;
    --brand-faint: #25241d;
    --button-text: #2b2515;
    --coupon: #ff6264;
    --coupon-strong: #ff8f92;
    --coupon-soft: #382124;
    --success: #63ba8f;
    --success-soft: #1a2c23;
    --danger: #ff9da6;
    --danger-soft: #351e22;
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.22);
    --shadow-float: 0 18px 54px rgba(0, 0, 0, 0.42);
  }

  html {
    color-scheme: dark;
  }

  .brand-positioning {
    color: #78a6f2;
  }

  textarea,
  input {
    color-scheme: dark;
  }

  .login-button {
    background: #f3f4f4;
    color: #171819;
  }

  .promo-action {
    background: #151617;
    color: #ffd100;
  }

  .subsidy-promo {
    border-color: var(--line-strong);
  }

  .map-card,
  .map-schematic,
  .map-caption {
    color-scheme: light;
  }

  .brand-orbit img {
    border-color: #fffafa;
  }

  .subsidy-ticket {
    color-scheme: light;
  }

  .switch-control {
    background: #565a60;
  }

  .modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
  }

  .bottom-nav {
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.46);
  }

  .fan-group-float {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.42);
  }

  .status-box.success {
    color: #9fd5b9;
  }

  .status-box.error {
    color: #ff9da6;
  }

  .claim-order {
    background: #f4eeee;
    color: #211d1f;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .bottom-nav,
  .modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bottom-nav {
    background: var(--surface);
  }
}

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

.coupon-float {
  position: fixed;
  z-index: 21;
  right: max(18px, calc((100vw - 860px) / 2 - 266px));
  bottom: calc(108px + env(safe-area-inset-bottom));
  width: 226px;
  height: 94px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(55, 59, 86, 0.2);
  isolation: isolate;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease;
  will-change: transform;
}

.coupon-float[data-mode="compact"] {
  transform: translateX(calc(100% - 54px));
}

.coupon-float-link {
  display: grid;
  grid-template-columns: 52px 46px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.coupon-float-memory {
  align-self: stretch;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  background: var(--coupon);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.coupon-float-memory b {
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.coupon-float-memory i {
  margin: 2px 0;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.coupon-float-link img {
  width: 48px;
  height: 72px;
  object-fit: contain;
  object-position: center bottom;
  transition: opacity 160ms ease;
}

.coupon-float-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 24px 8px 12px 4px;
  transition: opacity 160ms ease;
}

.coupon-float-copy strong,
.coupon-float-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-float-copy strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
}

.coupon-float-copy em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.coupon-float-controls {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 2px;
  display: flex;
  transition: opacity 120ms ease;
}

.coupon-float-control {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.pause-symbol {
  width: 11px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.coupon-float-control[aria-pressed="true"] .pause-symbol {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-right: 0;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.close-symbol {
  position: relative;
  width: 14px;
  height: 14px;
}

.close-symbol::before,
.close-symbol::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.close-symbol::before { transform: rotate(45deg); }
.close-symbol::after { transform: rotate(-45deg); }

.coupon-float[data-mode="compact"] .coupon-float-link img,
.coupon-float[data-mode="compact"] .coupon-float-copy,
.coupon-float[data-mode="compact"] .coupon-float-controls {
  opacity: 0;
  pointer-events: none;
}

.coupon-float:focus-within {
  outline: 3px solid rgba(79, 127, 221, 0.34);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .coupon-float:hover { box-shadow: 0 18px 42px rgba(55, 59, 86, 0.26); }
  .coupon-float-control:hover { background: var(--surface-muted); color: var(--ink); }
}

@media (max-width: 680px) {
  .coupon-float {
    right: -4px;
    bottom: calc(154px + env(safe-area-inset-bottom));
    width: 220px;
    height: 92px;
  }

  .coupon-float-link {
    grid-template-columns: 52px 42px minmax(0, 1fr);
  }

  .coupon-float-link img {
    width: 44px;
    height: 66px;
  }

  .coupon-float-copy {
    padding: 26px 7px 7px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coupon-float,
  .coupon-float-link img,
  .coupon-float-copy,
  .coupon-float-controls {
    transition: none !important;
  }
}
