:root {
  --ink: #2d1a13;
  --ink-soft: #5d493f;
  --red: #b51e23;
  --red-deep: #861317;
  --red-bright: #d33832;
  --coral: #e56a58;
  --orange: #f0a33a;
  --gold: #e8bb6d;
  --cream: #fff8e9;
  --cream-deep: #f5e8d0;
  --paper: #fbf1dc;
  --white: #fffdf8;
  --green: #2f8f65;
  --shadow: 0 26px 70px rgba(95, 44, 30, 0.14);
  --shadow-small: 0 14px 34px rgba(95, 44, 30, 0.1);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 3%, rgba(237, 180, 101, 0.11), transparent 24%),
    radial-gradient(circle at 95% 9%, rgba(204, 74, 57, 0.08), transparent 20%),
    var(--cream);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

::selection {
  color: var(--white);
  background: var(--red);
}

:focus-visible {
  outline: 3px solid rgba(181, 30, 35, 0.35);
  outline-offset: 4px;
}

.paper-grain {
  position: fixed;
  z-index: 1000;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: white;
  background: var(--red);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease,
    border-color 220ms ease;
}

.site-header.scrolled {
  padding: 9px 0;
  border-color: rgba(94, 50, 30, 0.08);
  background: rgba(255, 248, 233, 0.9);
  box-shadow: 0 10px 30px rgba(74, 31, 18, 0.07);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-eyebrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-copy strong {
  margin-top: 4px;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(166, 27, 31, 0.24);
}

.button-primary:hover {
  background: var(--red-deep);
  box-shadow: 0 18px 38px rgba(166, 27, 31, 0.3);
}

.button-small {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 13px;
}

.nav-cta {
  color: var(--red);
  border-color: rgba(181, 30, 35, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.nav-cta span {
  font-size: 16px;
}

.button-ghost {
  color: var(--ink);
  border-color: rgba(45, 26, 19, 0.18);
  background: rgba(255, 255, 255, 0.28);
}

.button-ghost:hover {
  border-color: rgba(45, 26, 19, 0.3);
  background: rgba(255, 255, 255, 0.62);
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-cream {
  color: var(--red-deep);
  background: var(--white);
}

.button-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

.button-wechat {
  color: #fff;
  background: #1aad19;
  box-shadow: 0 14px 26px rgba(26, 173, 25, 0.22);
}

.button-wide,
.button-full {
  width: 100%;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.button-icon {
  display: inline-grid;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 13px;
  place-items: center;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding: clamp(56px, 8vw, 110px) 0 92px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: -140px;
  left: -200px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(172, 82, 53, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  top: -60px;
  left: -120px;
  width: 470px;
  height: 470px;
  border: 1px dashed rgba(172, 82, 53, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}

.hero-copy {
  max-width: 680px;
}

.co-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(91, 53, 34, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 20px rgba(89, 46, 28, 0.04);
}

.co-brand-mark {
  width: 43px;
  height: 43px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.co-brand-cross {
  color: var(--red);
  font-size: 17px;
  font-weight: 900;
}

.huatu-mark {
  display: grid;
  width: 84px;
  height: 30px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  place-items: center;
}

.huatu-mark img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.co-brand-label {
  padding-left: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(181, 30, 35, 0.08);
}

.eyebrow-light {
  color: #ffd6b1;
}

.hero h1 {
  margin-bottom: 26px;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(60px, 7vw, 106px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-title-accent {
  position: relative;
  color: var(--red);
  white-space: nowrap;
}

.hero-title-accent::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 4px;
  z-index: -1;
  height: 18%;
  background: rgba(238, 179, 87, 0.33);
  content: "";
  transform: rotate(-1.8deg);
}

.hero-lead {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 42px;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-fact strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.hero-fact span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.fact-divider {
  width: 1px;
  height: 30px;
  background: rgba(45, 26, 19, 0.14);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-note {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 32px 32px 28px;
  border: 1px solid rgba(112, 40, 29, 0.1);
  border-radius: 28px;
  background: var(--red);
  box-shadow:
    0 44px 90px rgba(110, 32, 27, 0.26),
    inset 0 0 0 9px rgba(255, 255, 255, 0.035);
  color: #fff9ea;
  transform: rotate(2.5deg);
  transition: transform 350ms ease;
}

.hero-note:hover {
  transform: rotate(0.8deg) translateY(-5px);
}

.hero-note::before,
.hero-note::after {
  position: absolute;
  top: 52%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  content: "";
  transform: translateY(-50%);
}

.hero-note::before {
  left: -15px;
}

.hero-note::after {
  right: -15px;
}

.tape {
  position: absolute;
  top: -17px;
  width: 92px;
  height: 34px;
  background: rgba(246, 207, 137, 0.72);
  box-shadow: 0 4px 12px rgba(69, 31, 18, 0.08);
}

.tape-left {
  left: 34px;
  transform: rotate(-6deg);
}

.tape-right {
  right: 34px;
  transform: rotate(5deg);
}

.hero-note-index {
  display: block;
  margin-bottom: 8px;
  color: #ffd8a6;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-note-copy {
  margin-bottom: 22px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(31px, 3.4vw, 45px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-note-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.32) 0,
    rgba(255, 255, 255, 0.32) 4px,
    transparent 4px,
    transparent 9px
  );
}

.qr-panel {
  position: relative;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 18px;
  background: #fff;
}

.qr-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.qr-panel-hero {
  width: min(100%, 292px);
  margin: 0 auto;
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--red);
  border-style: solid;
}

.scan-corner-tl {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.scan-corner-tr {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
}

.scan-corner-bl {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 2px 2px;
}

.scan-corner-br {
  right: 6px;
  bottom: 6px;
  border-width: 0 2px 2px 0;
}

.hero-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.hero-note-footer div {
  display: flex;
  flex-direction: column;
}

.hero-note-footer span {
  color: #ffd4ad;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-note-footer strong {
  margin-top: 2px;
  font-size: 20px;
}

.round-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 20px !important;
  place-items: center;
}

.floating-stamp {
  position: absolute;
  z-index: 3;
  display: grid;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  place-items: center;
}

.floating-stamp span {
  display: block;
  font-size: 14px;
}

.floating-stamp-top {
  top: 1%;
  right: 2%;
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(12deg);
}

.floating-stamp-bottom {
  bottom: 7%;
  left: 0;
  width: 62px;
  height: 62px;
  color: white;
  background: var(--ink);
  transform: rotate(-10deg);
}

.hero-hand-note {
  position: absolute;
  right: -20px;
  bottom: -18px;
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.hero-hand-note span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 30px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-orb-one {
  top: 13%;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(238, 179, 89, 0.18), transparent 66%);
}

.hero-orb-two {
  bottom: -260px;
  left: 17%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(218, 78, 59, 0.08), transparent 67%);
}

.ginkgo {
  position: absolute;
  width: 60px;
  height: 70px;
  border: 2px solid rgba(167, 74, 48, 0.2);
  border-radius: 70% 12% 70% 12%;
  pointer-events: none;
}

.ginkgo::after {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 2px;
  height: 34px;
  background: rgba(167, 74, 48, 0.2);
  content: "";
  transform: rotate(8deg);
  transform-origin: top;
}

.ginkgo-one {
  top: 13%;
  left: 45%;
  transform: rotate(44deg);
}

.ginkgo-two {
  right: 3%;
  bottom: 9%;
  width: 42px;
  height: 50px;
  transform: rotate(-30deg);
}

.ginkgo-three {
  bottom: 5%;
  left: 6%;
  width: 38px;
  height: 46px;
  transform: rotate(63deg);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(45, 26, 19, 0.45);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 34px;
  height: 1px;
  overflow: hidden;
  background: rgba(45, 26, 19, 0.18);
}

.scroll-cue span::after {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 1px;
  background: var(--red);
  content: "";
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  50%,
  100% {
    left: 110%;
  }
}

.marquee {
  position: relative;
  z-index: 5;
  padding: 16px 0;
  overflow: hidden;
  color: #ffe6b9;
  background: var(--red);
  transform: rotate(-0.7deg) scale(1.01);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: marqueeMove 30s linear infinite;
}

.marquee-track i {
  color: #ffc75e;
  font-family: serif;
  font-style: normal;
}

@keyframes marqueeMove {
  to {
    transform: translateX(-50%);
  }
}

.section {
  position: relative;
  padding: clamp(82px, 10vw, 136px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 52px;
}

.section-heading h2,
.about-heading h2,
.teacher-copy h2,
.closing-card h2 {
  margin-bottom: 0;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 15px;
}

.steps-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%),
    var(--cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(81, 46, 29, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-small);
  transform: translateY(-6px);
}

.step-card-highlight {
  background: #f0dfc1;
}

.step-card-highlight:hover {
  background: #f4e6ce;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 50px;
}

.step-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step-icon {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card h3 {
  margin-bottom: 14px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 900;
}

.step-card p {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link-center {
  display: flex;
  margin: 16px auto 0;
}

.teacher-section {
  padding-top: 35px;
}

.teacher-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: center;
  min-height: 600px;
  padding: clamp(38px, 6vw, 78px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 199, 102, 0.18), transparent 30%),
    var(--red);
  box-shadow: var(--shadow);
  color: #fff7e5;
}

.teacher-card::after {
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.teacher-pattern {
  position: absolute;
  top: -50px;
  left: 45%;
  width: 450px;
  height: 450px;
  opacity: 0.13;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.teacher-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.teacher-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 76px);
}

.teacher-copy h2 span {
  color: #ffd681;
}

.teacher-lead {
  max-width: 570px;
  margin-bottom: 32px;
  color: rgba(255, 249, 234, 0.8);
  line-height: 1.85;
}

.benefit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-list li > span {
  color: #ffd681;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.benefit-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.benefit-list p {
  margin: 0;
  color: rgba(255, 249, 234, 0.67);
  font-size: 12px;
}

.teacher-qr-wrap {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: min(100%, 340px);
}

.teacher-qr-card {
  padding: 17px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 18px 24px 0 rgba(79, 9, 13, 0.18);
  color: var(--ink);
  transform: rotate(2.5deg);
}

.teacher-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px 13px;
}

.teacher-qr-head img {
  width: 112px;
  height: auto;
  mix-blend-mode: multiply;
}

.teacher-qr-head span {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.qr-panel-teacher {
  padding: 2px;
  border-width: 1px;
  border-radius: 14px;
  background: #fff;
}

.teacher-qr-card > p {
  margin: 12px 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.qr-sticker {
  position: absolute;
  z-index: 4;
  top: -36px;
  right: -38px;
  display: flex;
  width: 96px;
  height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  transform: rotate(11deg);
}

.qr-sticker span {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.teacher-qr-tail {
  position: absolute;
  bottom: -55px;
  left: -85px;
  color: #ffe0a5;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  transform: rotate(-7deg);
}

.lottery-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(238, 178, 91, 0.18), transparent 25%),
    linear-gradient(180deg, #f1dfbd, #f7ebd4 70%, #fbf3e1);
}

.lottery-sun {
  position: absolute;
  border: 1px solid rgba(167, 77, 47, 0.11);
  border-radius: 50%;
}

.lottery-sun-one {
  top: 45px;
  right: -160px;
  width: 410px;
  height: 410px;
}

.lottery-sun-two {
  bottom: 40px;
  left: -210px;
  width: 480px;
  height: 480px;
}

.section-heading-center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading-center .eyebrow {
  justify-content: center;
}

.section-heading-center h2 {
  margin-bottom: 18px;
}

.section-heading-center .section-intro {
  max-width: none;
}

.red-text {
  color: var(--red);
}

.lottery-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 68px);
  border: 1px solid rgba(91, 46, 28, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 244, 0.76);
  box-shadow: var(--shadow);
}

.lottery-copy {
  padding-left: clamp(0px, 2vw, 24px);
}

.lottery-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.lottery-copy h3 {
  margin-bottom: 22px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lottery-copy > p {
  max-width: 420px;
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 14px;
}

.prize-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.prize-chips span {
  padding: 7px 12px;
  border: 1px solid rgba(181, 30, 35, 0.18);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.rules-link {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rules-link span {
  color: var(--red);
}

.machine-wrap {
  width: min(100%, 470px);
  margin-inline: auto;
}

.machine {
  position: relative;
  padding: 22px 22px 18px;
  border: 3px solid var(--ink);
  border-radius: 42px;
  background: #f7d797;
  box-shadow:
    12px 14px 0 rgba(45, 26, 19, 0.9),
    0 30px 60px rgba(91, 42, 25, 0.16);
}

.machine-lightbar {
  display: flex;
  justify-content: space-between;
  padding: 0 7px 16px;
}

.machine-lightbar span {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff4bf;
  box-shadow: 0 0 7px rgba(255, 235, 140, 0.8);
  animation: machineBlink 1.8s ease-in-out infinite alternate;
}

.machine-lightbar span:nth-child(2n) {
  animation-delay: 180ms;
}

.machine-lightbar span:nth-child(3n) {
  animation-delay: 360ms;
}

@keyframes machineBlink {
  to {
    background: #e85b48;
    box-shadow: 0 0 11px rgba(232, 91, 72, 0.65);
  }
}

.machine-screen {
  position: relative;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), transparent),
    var(--cream);
}

.pointer {
  position: absolute;
  z-index: 15;
  top: 22px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0;
  border-right: 17px solid transparent;
  border-bottom: 31px solid var(--ink);
  border-left: 17px solid transparent;
  filter: drop-shadow(0 4px 1px rgba(255, 255, 255, 0.9));
  transform: translateX(-50%);
}

.pointer::after {
  position: absolute;
  top: 0;
  left: -10px;
  width: 20px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.wheel-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    inset 0 0 0 5px #f0c470,
    inset 0 0 0 8px var(--ink);
}

.wheel-ring::before {
  position: absolute;
  z-index: 13;
  inset: -10px;
  border: 4px dotted var(--gold);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.wheel-ring::after {
  position: absolute;
  z-index: 14;
  inset: -16px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 231, 171, 0.98) 0deg 2.4deg,
    rgba(255, 221, 141, 0.12) 2.4deg 15deg
  );
  content: "";
  opacity: 0.42;
  pointer-events: none;
  transform: rotate(0deg);
  animation: wheelChase 10s linear infinite;
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 8px),
    #000 calc(100% - 7px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 8px),
    #000 calc(100% - 7px)
  );
}

.machine-screen.spinning .wheel-ring::after {
  opacity: 1;
  animation-duration: 0.58s;
  filter: drop-shadow(0 0 6px rgba(255, 215, 127, 0.75));
}

.machine-screen.decelerating .wheel-ring::after {
  animation-duration: 1.2s;
}

.machine-screen.settling .wheel-ring::after {
  animation-duration: 2.15s;
}

@keyframes wheelChase {
  to {
    transform: rotate(360deg);
  }
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(
    #fff1ca 0deg 45deg,
    #e86650 45deg 90deg,
    #f7d373 90deg 135deg,
    #bf322d 135deg 180deg,
    #f0b35d 180deg 225deg,
    #d84639 225deg 270deg,
    #ffe6a9 270deg 315deg,
    #a7191d 315deg 360deg
  );
  box-shadow: inset 0 0 24px rgba(85, 30, 19, 0.2);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel::after {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.wheel-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: 70px;
  min-height: 47px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -23px 0 0 -35px;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(12px, 2.1vw, 17px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1))
    rotate(calc(var(--angle) * -1));
}

.wheel-label.light-text {
  color: #fff8e9;
}

.wheel-label small {
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.wheel-hub {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  display: flex;
  width: 100px;
  height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    6px 7px 0 var(--ink),
    0 0 0 7px var(--gold);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
  animation: hubGlow 3.2s ease-in-out infinite;
}

.wheel-hub:hover {
  box-shadow:
    4px 5px 0 var(--ink),
    0 0 0 7px var(--gold);
  transform: translate(-50%, -50%) scale(0.97);
}

.wheel-hub span {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.wheel-hub small {
  margin-top: 4px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.wheel-hub:disabled {
  cursor: not-allowed;
  animation: none;
}

@keyframes hubGlow {
  0%,
  100% {
    box-shadow:
      6px 7px 0 var(--ink),
      0 0 0 7px var(--gold),
      0 0 0 rgba(240, 179, 93, 0);
  }

  50% {
    box-shadow:
      6px 7px 0 var(--ink),
      0 0 0 7px var(--gold),
      0 0 34px rgba(240, 179, 93, 0.45);
  }
}

.machine-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-top: 17px;
  color: rgba(45, 26, 19, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.machine-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.machine-caption {
  min-height: 26px;
  margin: 21px 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: rgba(45, 26, 19, 0.5);
  font-size: 10px;
  text-align: center;
}

.secure-note svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.about-section {
  background: var(--cream);
}

.about-heading {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 55px;
}

.about-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
}

.about-heading p:last-child {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.about-main {
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid rgba(90, 46, 30, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 90% 6%, rgba(229, 165, 74, 0.28), transparent 32%),
    #f5e5c8;
}

.about-main > img {
  width: 150px;
  height: auto;
  margin-bottom: 48px;
  mix-blend-mode: multiply;
}

.about-quote {
  margin-bottom: 26px;
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.35;
}

.about-main > p:not(.about-quote) {
  max-width: 580px;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.about-source {
  display: inline-flex;
  gap: 7px;
  margin-top: 17px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.about-side {
  display: grid;
  gap: 20px;
}

.about-card {
  position: relative;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-card-index {
  display: block;
  margin-bottom: 38px;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 27px;
  font-weight: 900;
}

.about-card p {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.8;
}

.about-card-red {
  color: white;
  background: var(--red);
}

.about-card-red p {
  color: rgba(255, 248, 233, 0.72);
}

.about-line-art {
  position: absolute;
  right: -30px;
  bottom: -18px;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 130px;
  opacity: 0.18;
}

.about-line-art span {
  display: block;
  width: 16px;
  border: 1px solid white;
  border-radius: 20px;
}

.about-line-art span:nth-child(1) {
  height: 45px;
}

.about-line-art span:nth-child(2) {
  height: 78px;
}

.about-line-art span:nth-child(3) {
  height: 110px;
}

.about-line-art span:nth-child(4) {
  height: 65px;
}

.about-card-paper {
  border: 1px solid rgba(90, 46, 30, 0.13);
  background: #ece0c8;
}

.about-card-paper p {
  color: var(--ink-soft);
}

.mini-ticket {
  position: absolute;
  right: 22px;
  bottom: 17px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed rgba(45, 26, 19, 0.2);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-ticket b {
  color: var(--ink);
}

.mini-ticket i {
  position: absolute;
  right: 0;
  bottom: -7px;
  color: rgba(45, 26, 19, 0.38);
  font-size: 7px;
  font-style: normal;
}

.closing-section {
  padding: 25px 0 110px;
  background: var(--cream);
}

.closing-card {
  position: relative;
  padding: clamp(50px, 8vw, 90px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 213, 123, 0.15), transparent 27%),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.closing-card > p {
  margin-bottom: 20px;
  color: #e5b86c;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.closing-card h2 {
  max-width: 840px;
  margin: 0 auto 34px;
  font-size: clamp(37px, 5vw, 65px);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.closing-spark {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--gold);
  clip-path: polygon(
    50% 0,
    61% 38%,
    100% 50%,
    61% 61%,
    50% 100%,
    39% 61%,
    0 50%,
    39% 38%
  );
}

.closing-spark-one {
  top: 24%;
  left: 8%;
  transform: rotate(9deg) scale(1.4);
}

.closing-spark-two {
  right: 9%;
  bottom: 21%;
  opacity: 0.55;
  transform: rotate(-13deg) scale(0.8);
}

.site-footer {
  padding: 60px 0 36px;
  background: #f1e5d0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 50px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(45, 26, 19, 0.13);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logos img:first-child {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.footer-logos img:last-child {
  width: 120px;
  height: auto;
  mix-blend-mode: multiply;
}

.footer-logos > span {
  color: var(--red);
  font-weight: 800;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.demo-reset {
  padding: 8px 14px;
  border: 1px solid rgba(45, 26, 19, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  color: rgba(45, 26, 19, 0.48);
  font-size: 9px;
}

.footer-bottom p {
  margin: 0;
}

.mobile-dock {
  display: none;
  transition:
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.22, 0.75, 0.25, 1);
}

.modal {
  width: min(calc(100% - 28px), 440px);
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(32, 16, 11, 0.64);
  backdrop-filter: blur(7px);
}

.modal[open] {
  animation: modalIn 220ms ease-out both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.modal-card {
  position: relative;
  max-height: calc(100svh - 32px);
  padding: 34px 30px 30px;
  overflow-y: auto;
  border: 1px solid rgba(88, 44, 28, 0.12);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(35, 14, 8, 0.28);
  text-align: center;
}

.modal-close {
  position: absolute;
  z-index: 10;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 26, 19, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.modal-title-wrap {
  margin-bottom: 22px;
}

.modal-title-wrap h2,
.redemption-head h2 {
  margin-bottom: 7px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.modal-title-wrap p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.modal-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.modal-qr {
  width: min(100%, 290px);
  margin-inline: auto;
  border-width: 8px;
  box-shadow: 0 15px 35px rgba(70, 35, 24, 0.1);
}

.modal-tip {
  margin: 21px auto 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.wx-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 2px auto 19px;
  border-radius: 24px;
  background: #1aad19;
  box-shadow: 0 12px 26px rgba(26, 173, 25, 0.2);
  place-items: center;
}

.wx-mark svg {
  width: 48px;
  fill: white;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 17px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.inline-link {
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: inherit;
  cursor: pointer;
}

.login-demo-note {
  margin: 15px 0 0;
  color: rgba(45, 26, 19, 0.42);
  font-size: 9px;
  line-height: 1.6;
}

.modal-rules-card {
  text-align: left;
}

.modal-title-left {
  text-align: left;
}

.rules-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.rules-list li::marker {
  color: var(--red);
  font-family: Georgia, serif;
  font-weight: 800;
}

.rules-note {
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f2e2c8;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.result-card {
  perspective: 1100px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 212, 122, 0.22), transparent 35%),
    var(--red);
}

.result-card::before {
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid rgba(255, 228, 169, 0.14);
  border-radius: 21px;
  content: "";
  pointer-events: none;
}

.result-card::after {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.result-card > * {
  position: relative;
  z-index: 2;
}

.result-card .modal-close {
  z-index: 60;
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.result-card .modal-kicker {
  color: #ffd780;
}

.result-envelope-cover {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 218, 142, 0.14), transparent 31%),
    linear-gradient(145deg, #ce2b27, #9c1418);
  box-shadow:
    inset 0 0 0 10px rgba(255, 242, 205, 0.04),
    inset 0 -80px 110px rgba(80, 5, 9, 0.2);
  pointer-events: none;
  transform-origin: 50% 100%;
}

.result-envelope-cover::before,
.result-envelope-cover::after {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 239, 203, 0.12);
  border-radius: 50%;
  content: "";
}

.result-envelope-cover::before {
  top: -245px;
  left: 50%;
  transform: translateX(-50%);
}

.result-envelope-cover::after {
  right: -250px;
  bottom: -240px;
}

.result-envelope-flap {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    #af181d;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: rotateX(0deg);
  transform-origin: 50% 0;
  backface-visibility: hidden;
}

.result-envelope-kicker,
.result-envelope-copy,
.result-envelope-seal,
.result-envelope-cover small {
  position: relative;
  z-index: 2;
}

.result-envelope-kicker {
  margin-bottom: 16px;
  color: #f4ca83;
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.result-envelope-copy {
  color: #fff5df;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 35px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.result-envelope-seal {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 28px 0 23px;
  border: 2px solid rgba(255, 244, 209, 0.7);
  border-radius: 50%;
  background: #d4a14f;
  box-shadow:
    0 0 0 7px rgba(212, 161, 79, 0.15),
    0 8px 20px rgba(74, 5, 8, 0.2);
  color: #8b171a;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 900;
  place-items: center;
  transform: rotate(-4deg);
}

.result-envelope-cover small {
  color: rgba(255, 240, 207, 0.52);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

#resultDialog[open] .result-envelope-cover {
  animation: envelopeOpen 1.02s cubic-bezier(0.58, 0.02, 0.21, 1) 220ms both;
}

#resultDialog[open] .result-envelope-flap {
  animation: envelopeFlap 620ms cubic-bezier(0.2, 0.7, 0.24, 1) 300ms both;
}

#resultDialog[open] .result-envelope-seal {
  animation: envelopeSeal 480ms ease-in-out 120ms both;
}

@keyframes envelopeOpen {
  0%,
  18% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-7px) rotate(-0.7deg);
  }

  100% {
    visibility: hidden;
    opacity: 0;
    transform: translateY(106%) rotate(1.4deg);
  }
}

@keyframes envelopeFlap {
  to {
    opacity: 0.18;
    transform: rotateX(178deg);
  }
}

@keyframes envelopeSeal {
  30% {
    transform: rotate(-4deg) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: rotate(10deg) scale(0.65);
  }
}

.result-card h2 {
  margin-bottom: 20px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 35px;
  font-weight: 900;
}

.result-badge {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  place-items: center;
}

#resultDialog[open] .result-badge {
  animation: resultContentIn 420ms ease-out 760ms both;
}

#resultDialog[open] .result-card > .modal-kicker,
#resultDialog[open] .result-card > h2 {
  animation: resultContentIn 420ms ease-out 820ms both;
}

#resultDialog[open] .result-desc {
  animation: resultContentIn 420ms ease-out 1060ms both;
}

@keyframes resultContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.result-badge span {
  color: #ffd780;
  font-size: 24px;
}

.result-rays {
  position: absolute;
  z-index: 1;
  top: -120px;
  left: 50%;
  width: 400px;
  height: 400px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 221, 148, 0.1) 0deg 7deg,
    transparent 7deg 24deg
  );
  transform: translateX(-50%);
}

.result-prize {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 18px;
}

#resultDialog[open] .result-prize {
  animation: prizeReveal 620ms cubic-bezier(0.16, 0.86, 0.3, 1.16) 920ms both;
}

#resultDialog[open] .ticket-code {
  animation: ticketRise 480ms ease-out 1140ms both;
}

#resultDialog[open] .result-card > .button {
  animation: ticketRise 480ms ease-out 1220ms both;
}

@keyframes prizeReveal {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(15px);
  }

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

@keyframes ticketRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.result-currency {
  margin-right: 3px;
  color: #ffd780;
  font-family: Georgia, serif;
  font-size: 31px;
}

.result-prize strong {
  color: #ffe2a1;
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.result-unit {
  margin-left: 7px;
  color: #ffd780;
  font-size: 14px;
  font-weight: 700;
}

.result-desc {
  margin-bottom: 19px;
  color: rgba(255, 248, 233, 0.74);
  font-size: 12px;
  line-height: 1.8;
}

.ticket-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(70, 7, 10, 0.18);
  font-size: 9px;
}

.ticket-code span {
  color: rgba(255, 248, 233, 0.56);
}

.ticket-code strong {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.result-card .button-primary {
  color: var(--red-deep);
  background: #ffe3ac;
  box-shadow: none;
}

.result-card .text-link {
  color: rgba(255, 248, 233, 0.8);
}

.redemption-card {
  padding-top: 29px;
  text-align: left;
}

.redemption-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding-right: 35px;
}

.redemption-head img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.redemption-head h2 {
  margin-bottom: 0;
  font-size: 27px;
}

.redemption-steps {
  display: grid;
  gap: 4px;
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 10px;
}

.qr-panel-redemption {
  width: min(100%, 270px);
  margin-inline: auto;
  border-width: 7px;
}

.redemption-card .modal-tip {
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 10000;
  bottom: 30px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 12px 35px rgba(30, 13, 8, 0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.confetti {
  position: fixed;
  z-index: 9999;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall 1.8s linear forwards;
}

@keyframes confettiFall {
  to {
    opacity: 0;
    transform: translate3d(var(--x), 105vh, 0) rotate(var(--r));
  }
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: 40px;
  }

  .floating-stamp-top {
    right: -1%;
  }

  .teacher-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  }

  .teacher-qr-wrap {
    width: 290px;
  }

  .qr-sticker {
    right: -20px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: min(calc(100% - 34px), var(--container));
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    margin-bottom: 30px;
  }

  .hero-hand-note {
    right: 7%;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading,
  .about-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .about-heading .eyebrow {
    margin-bottom: -25px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 280px;
  }

  .step-top {
    margin-bottom: 32px;
  }

  .teacher-card {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-bottom: 100px;
  }

  .teacher-qr-wrap {
    justify-self: center;
  }

  .teacher-qr-tail {
    right: -90px;
    bottom: -50px;
    left: auto;
  }

  .lottery-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 620px;
  }

  .lottery-copy {
    text-align: center;
  }

  .lottery-copy > p {
    margin-inline: auto;
  }

  .prize-chips {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-main > img {
    margin-bottom: 35px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .demo-reset {
    width: fit-content;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    padding: 9px 0;
    background: rgba(255, 248, 233, 0.88);
    backdrop-filter: blur(16px);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-eyebrow {
    font-size: 8px;
  }

  .brand-copy strong {
    margin-top: 1px;
    font-size: 17px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 72px;
  }

  .co-brand {
    max-width: 100%;
    margin-bottom: 22px;
    padding-right: 8px;
  }

  .co-brand-mark {
    width: 36px;
    height: 36px;
  }

  .huatu-mark {
    width: 70px;
    height: 25px;
  }

  .co-brand-label {
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(51px, 15vw, 74px);
    line-height: 1;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    justify-content: space-between;
    gap: 10px;
    margin-top: 31px;
  }

  .hero-fact strong {
    font-size: 18px;
  }

  .hero-fact span {
    font-size: 9px;
  }

  .fact-divider {
    height: 25px;
  }

  .hero-note {
    width: calc(100% - 18px);
    padding: 25px 23px 22px;
    border-radius: 24px;
    transform: rotate(1.4deg);
  }

  .hero-note-copy {
    font-size: 34px;
  }

  .qr-panel-hero {
    width: min(100%, 268px);
  }

  .floating-stamp-top {
    top: -22px;
    right: -2px;
    width: 68px;
    height: 68px;
  }

  .floating-stamp-bottom {
    bottom: 14%;
    left: -2px;
    width: 56px;
    height: 56px;
  }

  .hero-hand-note {
    right: 2%;
    bottom: -26px;
    font-size: 17px;
  }

  .ginkgo-one {
    top: 5%;
    right: 2%;
    left: auto;
  }

  .ginkgo-three {
    display: none;
  }

  .marquee {
    padding: 13px 0;
  }

  .marquee-track {
    gap: 22px;
    font-size: 16px;
  }

  .section {
    padding: 74px 0;
  }

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

  .section-heading h2,
  .about-heading h2,
  .closing-card h2 {
    font-size: 39px;
  }

  .section-intro {
    font-size: 13px;
  }

  .step-card {
    min-height: 0;
    padding: 25px;
  }

  .teacher-section {
    padding-top: 20px;
  }

  .teacher-card {
    gap: 74px;
    padding: 38px 22px 84px;
    border-radius: 28px;
  }

  .teacher-copy {
    padding-inline: 5px;
  }

  .teacher-copy h2 {
    font-size: 49px;
  }

  .teacher-lead {
    font-size: 13px;
  }

  .benefit-list strong {
    font-size: 14px;
  }

  .teacher-qr-wrap {
    width: min(calc(100% - 34px), 310px);
  }

  .teacher-qr-card {
    box-shadow: 10px 13px 0 rgba(79, 9, 13, 0.2);
  }

  .qr-sticker {
    top: -30px;
    right: -22px;
    width: 84px;
    height: 84px;
    font-size: 12px;
  }

  .teacher-qr-tail {
    display: none;
  }

  .lottery-shell {
    gap: 32px;
    padding: 35px 15px 29px;
    border-radius: 27px;
  }

  .lottery-copy {
    padding-inline: 8px;
  }

  .lottery-copy h3 {
    font-size: 43px;
  }

  .lottery-copy > p {
    font-size: 12px;
  }

  .machine-wrap {
    width: min(100%, 390px);
  }

  .machine {
    padding: 17px 15px 14px;
    border-radius: 32px;
    box-shadow:
      8px 10px 0 rgba(45, 26, 19, 0.9),
      0 24px 50px rgba(91, 42, 25, 0.14);
  }

  .machine-screen {
    padding: 17px;
    border-radius: 23px;
  }

  .pointer {
    top: 17px;
  }

  .wheel-ring {
    padding: 9px;
  }

  .wheel-label {
    --radius: 106px !important;
    width: 58px;
    margin: -22px 0 0 -29px;
    font-size: 12px;
  }

  .wheel-label small {
    font-size: 7px;
  }

  .wheel-hub {
    width: 80px;
    height: 80px;
    box-shadow:
      4px 5px 0 var(--ink),
      0 0 0 5px var(--gold);
  }

  .wheel-hub span {
    font-size: 22px;
  }

  .machine-caption {
    margin-top: 18px;
  }

  .about-heading {
    margin-bottom: 33px;
  }

  .about-heading p:last-child {
    font-size: 13px;
  }

  .about-main,
  .about-card {
    padding: 27px 24px;
  }

  .about-main > img {
    width: 125px;
    margin-bottom: 30px;
  }

  .about-quote {
    font-size: 31px;
  }

  .about-main > p:not(.about-quote) {
    font-size: 13px;
  }

  .about-card h3 {
    font-size: 26px;
  }

  .mini-ticket {
    right: 19px;
    bottom: 18px;
    left: 24px;
    font-size: 7px;
  }

  .closing-section {
    padding: 10px 0 72px;
  }

  .closing-card {
    padding: 55px 22px;
    border-radius: 27px;
  }

  .closing-card h2 {
    font-size: 38px;
  }

  .closing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 45px;
  }

  .footer-logos img:last-child {
    width: 108px;
  }

  .footer-links {
    gap: 15px 20px;
  }

  .mobile-dock {
    position: fixed;
    z-index: 90;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(74, 34, 21, 0.12);
    border-radius: 17px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: 0 12px 36px rgba(62, 28, 17, 0.18);
    backdrop-filter: blur(16px);
  }

  body.lottery-active .mobile-dock,
  body.modal-open .mobile-dock {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 28px));
  }

  .mobile-dock button,
  .mobile-dock a {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-dock button {
    background: #f0dfc3;
  }

  .mobile-dock a {
    color: white;
    background: var(--red);
  }

  .mobile-dock svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

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

  .modal-card {
    padding: 30px 21px 24px;
    border-radius: 24px;
  }

  .modal-title-wrap h2 {
    font-size: 31px;
  }

  .modal-qr {
    width: min(100%, 260px);
  }

  .result-prize strong {
    font-size: 70px;
  }

  .redemption-head img {
    width: 52px;
    height: 52px;
  }

  .redemption-head h2 {
    font-size: 24px;
  }

  .toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .co-brand-label {
    display: none;
  }

  .nav-cta span {
    display: none;
  }

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

  .hero-fact strong {
    font-size: 16px;
  }

  .hero-fact span {
    font-size: 8px;
  }

  .wheel-label {
    --radius: 94px !important;
  }

  .wheel-hub {
    width: 72px;
    height: 72px;
  }

  .machine-caption {
    font-size: 11px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
