@font-face {
  font-family: "Floane";
  src: url("assets/floane-bold-italic.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
  font-style: italic;
}

:root {
  --brand: #26b746;
  --brand-dark: #087d31;
  --brand-deep: #075d2a;
  --brand-light: #c9f8d3;
  --lime: #dfff70;
  --cream: #f4ffb0;
  --ink: #17351f;
  --muted: #809087;
  --paper: #fff;
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #e6eee8;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(38, 183, 70, .35);
  outline-offset: 3px;
}

button:active {
  transform: translateY(1px);
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(219, 255, 126, .44), transparent 22%),
    radial-gradient(circle at 94% 34%, rgba(164, 255, 185, .34), transparent 24%),
    linear-gradient(165deg, #43d66c 0%, #26b746 39%, #17a33d 71%, #079137 100%);
  box-shadow: 0 0 60px rgba(23, 53, 31, .12);
}

.app-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.glow-one {
  width: 190px;
  height: 190px;
  top: 115px;
  right: -110px;
  border: 34px solid rgba(223, 255, 112, .13);
}

.glow-two {
  width: 260px;
  height: 260px;
  left: -190px;
  bottom: 20px;
  border: 48px solid rgba(255, 255, 255, .08);
}

.paper-piece {
  position: absolute;
  width: 28px;
  height: 38px;
  border: 2px solid rgba(244, 255, 176, .55);
  border-radius: 4px;
  transform: rotate(25deg);
}

.paper-piece::before,
.paper-piece::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 14px;
  height: 2px;
  background: rgba(244, 255, 176, .55);
}

.paper-piece::before { top: 11px; }
.paper-piece::after { top: 19px; }
.piece-one { top: 169px; right: 17px; transform: rotate(27deg); }
.piece-two { top: 421px; left: -8px; transform: rotate(-19deg) scale(1.3); }
.piece-three { bottom: 92px; right: 15px; transform: rotate(42deg) scale(.8); }

.confetti {
  position: absolute;
  width: 8px;
  height: 20px;
  border-radius: 6px;
  background: var(--cream);
  opacity: .75;
}

.confetti-one { top: 38px; left: 78px; transform: rotate(-28deg) scale(.65); }
.confetti-two { top: 169px; left: 13px; transform: rotate(52deg); }
.confetti-three { top: 239px; right: 9px; transform: rotate(-33deg) scale(.75); }
.confetti-four { top: 495px; right: 25px; transform: rotate(31deg) scale(.65); }
.confetti-five { bottom: 122px; left: 30px; transform: rotate(-47deg) scale(.65); }

.doodle-loop {
  position: absolute;
  top: 34px;
  left: 125px;
  width: 48px;
  height: 32px;
  border-top: 2px solid rgba(244, 255, 176, .65);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.doodle-loop::after {
  content: "";
  position: absolute;
  right: 1px;
  top: -7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(244, 255, 176, .65);
  border-right: 2px solid rgba(244, 255, 176, .65);
  transform: rotate(24deg);
}

.top-area {
  position: relative;
  padding-top: env(safe-area-inset-top);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 2px 21px 0;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg:first-child { width: 15px; height: 10px; }
.status-icons svg:last-child { width: 22px; height: 11px; }
.network { font-size: 9px; font-weight: 800; }

.navigation {
  position: relative;
  height: 38px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 50%;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button { margin-left: 8px; }

.rules-button {
  position: absolute;
  z-index: 4;
  top: 49px;
  right: 17px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(7, 93, 42, .45);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px 2px 2px 8px;
  box-shadow: 0 3px 8px rgba(7, 93, 42, .12);
  font-size: 10px;
}

.rules-button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  height: 204px;
}

.hero h1 {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  margin: 0;
  transform: rotate(-2deg);
  animation: hero-in .65s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-line {
  display: block;
  color: var(--ink);
  font-size: clamp(35px, 10.7vw, 46px);
  font-weight: 1000;
  line-height: 1.06;
  letter-spacing: -2.5px;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 0 rgba(7, 93, 42, .18));
}

.hero-line strong {
  color: var(--lime);
  font-size: 1.28em;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -4px;
  -webkit-text-stroke-color: var(--ink);
  -webkit-text-stroke-width: 2px;
  filter: drop-shadow(2px 2px 0 #fff);
}

.hero-line:first-child strong {
  margin-right: 3px;
  color: #fff;
  -webkit-text-stroke-color: var(--ink);
}

.second-line {
  margin-top: 3px;
}

.second-line strong {
  display: inline-flex;
  align-items: baseline;
  margin-left: 3px;
  color: var(--lime);
}

.second-line .yuan {
  font-size: .58em;
  letter-spacing: -2px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 9px 4px;
  padding: 4px 9px;
  color: var(--cream);
  background: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 5px;
  box-shadow: 2px 3px 0 rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.slogan-line {
  font-size: clamp(31px, 8.9vw, 38px);
  letter-spacing: -2px;
  -webkit-text-stroke-width: 3px;
}

.second-line.slogan-line strong {
  display: inline;
  margin: 0 2px;
  color: var(--lime);
  font-size: 1.08em;
  letter-spacing: -2px;
  -webkit-text-stroke-width: 2px;
}

.writing-illustration {
  position: absolute;
  z-index: 1;
  top: -13px;
  right: -10px;
  width: 184px;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(7, 93, 42, .15));
  transform: rotate(3deg);
  animation: illustration-in .75s .08s cubic-bezier(.16, 1, .3, 1) both;
}

.audience {
  position: absolute;
  bottom: 17px;
  left: 21px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -.2px;
}

.audience span {
  margin-right: 5px;
  padding: 1px 4px;
  color: var(--brand-deep);
  background: var(--cream);
  border-radius: 3px;
  font-size: 9px;
}

.audience b {
  margin: 0 3px;
  padding: 2px 5px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 4px;
  font-size: 10px;
}

.reward-card {
  position: relative;
  z-index: 3;
  min-height: 310px;
  margin: -7px 16px 0;
  padding: 29px 21px 13px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 25px;
  box-shadow: 0 16px 32px rgba(7, 93, 42, .16), inset 0 1px 0 #fff;
  animation: card-in .7s .12s cubic-bezier(.16, 1, .3, 1) both;
}

.discount-ribbon {
  position: absolute;
  top: -12px;
  left: -1px;
  min-width: 124px;
  padding: 8px 21px 8px 18px;
  color: #fff;
  background: linear-gradient(135deg, #159c3c, #087d31);
  border-radius: 10px 12px 12px 2px;
  box-shadow: 0 5px 10px rgba(8, 125, 49, .2);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
}

.discount-ribbon::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 10px solid #087d31;
}

.reminder-row {
  position: absolute;
  top: 13px;
  right: 19px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #526359;
  font-size: 10px;
  font-weight: 600;
}

.switch {
  position: relative;
  width: 33px;
  height: 19px;
  padding: 0;
  background: #d8ded9;
  border: 1px solid #c9d3cb;
  border-radius: 99px;
  transition: background .2s ease;
}

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 53, 31, .2);
  transition: transform .2s ease;
}

.switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.switch[aria-checked="true"] span { transform: translateX(14px); }

.coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin-top: 6px;
  color: var(--brand);
}

.coupon-value {
  display: flex;
  align-items: baseline;
  font-family: "Floane", Georgia, serif;
  font-style: italic;
  filter: drop-shadow(0 3px 0 rgba(38, 183, 70, .08));
}

.coupon-value span {
  font-size: 88px;
  line-height: .95;
  letter-spacing: -8px;
}

.coupon-value b {
  margin-left: 9px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 29px;
  font-style: normal;
  font-weight: 1000;
}

.license-value {
  align-items: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
}

.license-value span {
  font-size: 60px;
  font-weight: 1000;
  letter-spacing: -5px;
}

.license-value b {
  margin-left: 13px;
  font-size: 24px;
  letter-spacing: -1px;
}

.coupon-tag {
  align-self: center;
  margin: 7px 0 0 12px;
  padding: 4px 7px;
  color: #fff;
  background: var(--brand);
  border-radius: 5px;
  box-shadow: 0 3px 0 #d8f6df;
  font-size: 10px;
  font-weight: 700;
  transform: rotate(4deg);
}

.coupon-condition {
  margin: 4px 0 0;
  color: #89948c;
  font-size: 10px;
  text-align: center;
}

.coupon-condition span { margin-left: 2px; color: #a5afa7; }

.coupon-expiry {
  margin: 5px 0 0;
  color: #adb5af;
  font-size: 9px;
  text-align: center;
  letter-spacing: .4px;
}

.lookup-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 -4px;
  color: var(--brand-dark);
  font-size: 10px;
}

.lookup-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e5f8e9;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 94%;
  height: 55px;
  margin: 17px auto 0;
  color: var(--ink);
  background: linear-gradient(180deg, #d8ffb0 0%, #a9ef91 100%);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink), 0 10px 16px rgba(23, 53, 31, .12);
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: .5px;
  transition: filter .2s ease, box-shadow .1s ease, transform .1s ease;
}

.primary-button:hover { filter: brightness(1.035); }

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink), 0 4px 8px rgba(23, 53, 31, .1);
}

.primary-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-team-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 130px;
  height: 31px;
  margin: 10px auto 0;
  padding: 0 10px;
  color: var(--brand-dark);
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.my-team-button:hover { background: #f0f9f1; }

.my-team-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-section {
  position: relative;
  z-index: 2;
  padding: 17px 30px 0;
  animation: card-in .7s .2s cubic-bezier(.16, 1, .3, 1) both;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
}

.countdown > span { margin-right: 5px; }

.countdown b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 21px;
  padding: 0 4px;
  color: #fff;
  background: rgba(7, 93, 42, .44);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.countdown i {
  font-style: normal;
  font-weight: 700;
}

.countdown .milliseconds {
  min-width: 14px;
  margin-left: 1px;
  color: var(--cream);
  background: rgba(7, 93, 42, .28);
}

.team-members {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 17px;
}

.member {
  position: relative;
  z-index: 2;
  flex: 0 0 76px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 61px;
  height: 61px;
  margin: 0 auto;
  padding: 4px;
  background: rgba(255, 255, 255, .96);
  border: 2px solid var(--brand-deep);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(7, 93, 42, .32), 0 8px 16px rgba(7, 93, 42, .15);
}

.avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.member-badge {
  position: absolute;
  right: -10px;
  bottom: -2px;
  padding: 2px 5px;
  color: var(--brand-deep);
  background: var(--lime);
  border: 1px solid var(--brand-deep);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
}

.member-name {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .94);
  font-size: 11px;
  font-weight: 600;
}

.member-link {
  width: 20px;
  height: 1px;
  margin-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, .4);
}

.team-progress {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  text-align: center;
  letter-spacing: .5px;
}

.brand-footer {
  position: relative;
  z-index: 2;
  margin-top: 17px;
  padding: 0 16px 10px;
  color: #fff;
  text-align: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.brand-lockup img {
  width: 25px;
  height: 25px;
  color: #fff;
}

.brand-word {
  color: #fff;
  font-family: "Floane", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .3px;
}

.brand-word span { color: var(--lime); }

.brand-platform {
  margin-left: 1px;
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
}

.footer-caption {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .52);
  font-size: 8px;
  letter-spacing: 1.6px;
}

.home-indicator {
  width: 112px;
  height: 4px;
  margin: 4px auto max(9px, env(safe-area-inset-bottom));
  background: rgba(7, 53, 27, .7);
  border-radius: 99px;
}

.sheet-dialog {
  position: fixed;
  inset: 0;
  width: min(100%, 430px);
  max-width: 430px;
  max-height: min(86svh, 720px);
  margin: auto auto 0;
  padding: 28px 24px max(25px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background: #fbfdfb;
  border: 0;
  border-radius: 27px 27px 0 0;
  box-shadow: 0 -20px 60px rgba(7, 53, 27, .18);
}

.sheet-dialog[open] {
  animation: sheet-in .32s cubic-bezier(.16, 1, .3, 1) both;
}

.sheet-dialog::backdrop {
  background: rgba(5, 35, 17, .52);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease both;
}

.dialog-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 4px;
  background: #dce6de;
  border-radius: 99px;
  transform: translateX(-50%);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 17px;
  width: 32px;
  height: 32px;
  padding: 0 0 3px;
  color: #6d7f72;
  background: #edf3ee;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.dialog-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-family: "Floane", Georgia, serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 1.2px;
}

.sheet-dialog h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.8px;
}

.dialog-description {
  margin: 10px 0 22px;
  color: #75837a;
  font-size: 13px;
  line-height: 1.7;
}

.rules-list {
  display: grid;
  gap: 18px;
  margin: 23px 0 25px;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-list li {
  position: relative;
  padding-left: 38px;
  counter-increment: rule;
}

.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--brand);
  font-family: "Floane", Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.rules-list b,
.rules-list span {
  display: block;
}

.rules-list b { margin-bottom: 4px; font-size: 14px; }
.rules-list span { color: #75837a; font-size: 12px; line-height: 1.75; }

.dialog-primary {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  color: #fff;
  background: var(--brand);
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(38, 183, 70, .2);
  font-size: 15px;
  font-weight: 800;
}

.dialog-primary:hover { background: #20a93f; }

.field-label {
  display: block;
  margin: 15px 0 8px;
  color: #53665a;
  font-size: 12px;
  font-weight: 700;
}

.email-field,
.code-field {
  display: flex;
  align-items: center;
  min-height: 51px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #dce8df;
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.email-field:focus-within,
.code-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(38, 183, 70, .09);
}

.email-field svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: 15px;
  fill: none;
  stroke: #8a9c90;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-field input,
.code-field input {
  min-width: 0;
  height: 49px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.email-field input { flex: 1; }
.code-field input { flex: 1; width: 100%; }

.email-field input::placeholder,
.code-field input::placeholder { color: #a9b5ac; }

.code-field button {
  flex: 0 0 auto;
  height: 35px;
  margin-right: 7px;
  padding: 0 11px;
  color: var(--brand-dark);
  background: #eaf8ed;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.code-field button:disabled {
  color: #93a198;
  background: #f0f3f0;
  cursor: default;
}

.field-error {
  min-height: 16px;
  margin: 5px 2px 0;
  color: #c54336;
  font-size: 11px;
}

.demo-code {
  margin: 2px 0 0;
  padding: 9px 12px;
  color: #397246;
  background: #eef9ef;
  border-radius: 9px;
  font-size: 11px;
  text-align: center;
}

.demo-code strong { letter-spacing: 2px; }
.confirm-button { margin-top: 18px; }

.privacy-note {
  margin: 12px 0 0;
  color: #a0aca3;
  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 44px);
  padding: 11px 17px;
  color: #fff;
  background: rgba(23, 53, 31, .94);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(7, 53, 27, .22);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px) rotate(-4deg) scale(.96); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

@keyframes illustration-in {
  from { opacity: 0; transform: translate(24px, -10px) rotate(8deg) scale(.9); }
  to { opacity: 1; transform: translate(0, 0) rotate(3deg) scale(1); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 360px) {
  .hero-line { font-size: 35px; -webkit-text-stroke-width: 3px; }
  .writing-illustration { width: 158px; right: -16px; }
  .reward-card { margin-inline: 12px; padding-inline: 16px; }
  .coupon-value span { font-size: 78px; }
  .license-value span { font-size: 44px; letter-spacing: -3px; white-space: nowrap; }
  .license-value b { margin-left: 8px; font-size: 18px; white-space: nowrap; }
  .coupon-tag { margin-left: 8px; padding-inline: 5px; font-size: 8px; white-space: nowrap; }
  .team-section { padding-inline: 19px; }
  .member { flex-basis: 72px; }
  .member-link { width: 13px; }
}

@media (min-width: 431px) {
  body { padding: 20px 0; }
  .app-shell { min-height: calc(100svh - 40px); border-radius: 28px; }
  .sheet-dialog { bottom: 20px; border-radius: 27px; margin-bottom: 20px; }
}

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

.share-dialog {
  max-height: min(92svh, 780px);
}

.share-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 15px;
  padding: 15px 15px 12px;
  background: #eef8ef;
  border: 1px solid #dcecdf;
  border-radius: 20px;
}

.share-qr-wrap canvas {
  display: block;
  width: 190px;
  height: 190px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(7, 93, 42, .08);
}

.share-qr-wrap > span {
  margin-top: 9px;
  color: #718177;
  font-size: 10px;
  letter-spacing: .5px;
}

.share-link-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #dce8df;
  border-radius: 13px;
}

.share-link-field input {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  color: #617067;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  text-overflow: ellipsis;
}

.share-link-field button {
  flex: 0 0 auto;
  height: 32px;
  margin-right: 6px;
  padding: 0 13px;
  color: var(--brand-dark);
  background: #eaf8ed;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.share-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 17px;
}

.share-actions .dialog-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.share-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.save-qr-button {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--brand-dark);
  background: #eaf8ed;
  border: 1px solid #cfe8d4;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 360px) {
  .share-qr-wrap canvas { width: 164px; height: 164px; }
  .share-dialog { padding-inline: 20px; }
}
