/* ===== 设计变量：水彩纸底 + 粉彩颜料 + 墨色文字 ===== */
/* 只做手机版布局：内容固定为一列，大屏上居中显示为手机宽度 */
:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --card: #fffdf9;
  --ink: #2e2a3b;
  --ink-soft: #57526a;
  --ink-muted: #8b8597;
  --line: #e9e0d0;
  /* 颜料色：大面积晕染用 */
  --peach: #f3a888;
  --rose: #ec94b4;
  --lilac: #b3a0e6;
  --sky: #86bce6;
  --sage: #9ccb93;
  --butter: #f4cf7c;
  /* 墨水色：需要可读性的强调文字用 */
  --coral-ink: #cf5a3a;
  --berry-ink: #a8437a;
  --violet-ink: #6552b3;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --blob: url(wash-blob.svg);
  --stroke: url(wash-stroke.svg);
  /* 纸张纤维颗粒 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .55 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --paper-shadow: 0 1px 2px rgb(80 60 40 / 6%), 0 26px 50px -24px rgb(80 60 40 / 30%);
  /* 页面内容列宽：手机宽度 */
  --column: 480px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 320px; min-height: 100svh; margin: 0; overflow-x: clip; background: var(--grain), var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { overflow-wrap: break-word; }
:focus-visible { outline: 2px dashed var(--violet-ink); outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }

/* 四角水彩晕染，固定在视口；竖屏时一张图裁不到四角，改成左上、右下各锚一张 */
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background: url(watercolor.svg) center / cover no-repeat; }
@media (max-aspect-ratio: 1/1) {
  body::before { background: url(watercolor.svg) left top / 1150px auto no-repeat, url(watercolor.svg) right bottom / 1150px auto no-repeat; }
}

/* 水彩色块 / 笔刷：挂在伪元素上做 mask，避免把按钮的焦点框也裁掉 */
.brand-icon::before, .paint-dot, .step-index::before, .form-side::before, .form-side::after, .result-icon::before,
.stat::before, .placeholder-icon::before, .code-chip::before, .winner-reveal::before, .history-number::before {
  -webkit-mask: var(--blob) center / 100% 100% no-repeat; mask: var(--blob) center / 100% 100% no-repeat; }
.primary-button::before, .history-list code::before {
  -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; }

/* ===== 顶栏 / 页脚 ===== */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: var(--column); margin: 0 auto; padding: 14px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.brand-icon { position: relative; isolation: isolate; display: grid; place-items: center; width: 46px; height: 40px; color: var(--berry-ink); font-size: 20px; }
.brand-icon::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(135deg, var(--rose), var(--lilac)); opacity: .6; }
.brand-year { margin-left: 8px; color: var(--ink-muted); font-weight: 600; }
.header-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid rgb(46 42 59 / 16%); border-radius: 999px; background: rgb(255 253 249 / 70%); font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.header-link:hover { border-color: var(--ink); background: var(--card); }
.header-link .icon { color: var(--berry-ink); font-size: 15px; transition: transform .2s; }
.header-link:hover .icon { transform: translate(2px, -2px); }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: var(--column); margin: 0 auto; padding: 20px var(--gutter) 28px; color: var(--ink-muted); font-family: var(--hand); font-size: 20px; line-height: 1.2; text-align: center; }

/* ===== 通用排版 ===== */
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--berry-ink); font-family: var(--hand); font-size: 23px; font-weight: 700; line-height: 1.1; }
.paint-dot { width: 26px; height: 22px; flex: none; background: linear-gradient(135deg, var(--rose), var(--peach)); }
.intro-panel h1, .draw-intro h1 { margin: 14px 0 16px; font-family: var(--display); font-size: clamp(44px, 12.5vw, 56px); font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1; letter-spacing: -.025em; }
/* 斜体一行用颜料渐变上色；clone 让换行后的每段都有完整渐变 */
h1 em { padding-right: .08em; background: linear-gradient(100deg, var(--coral-ink) 0%, var(--berry-ink) 45%, var(--violet-ink) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section-label { margin: 0 0 4px; color: var(--coral-ink); font-family: var(--hand); font-size: 26px; font-weight: 700; line-height: 1.1; }
h2 { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* 和纸胶带：半透明斜纹 + 锯齿撕边 */
.tape { position: absolute; z-index: 3; width: 132px; height: 32px; background: repeating-linear-gradient(135deg, rgb(236 148 180 / 58%) 0 7px, rgb(236 148 180 / 42%) 7px 14px); clip-path: polygon(3% 0, 97% 0, 100% 18%, 97% 36%, 100% 54%, 97% 72%, 100% 90%, 97% 100%, 3% 100%, 0 82%, 3% 64%, 0 46%, 3% 28%, 0 10%); mix-blend-mode: multiply; pointer-events: none; }

/* ===== 报名页 ===== */
/* 两个布局容器都裁掉横向溢出：body 上的 overflow 会被传播给视口、自己不裁剪 */
.registration-layout, .draw-layout { flex: 1; width: 100%; max-width: var(--column); margin: 0 auto; overflow-x: clip; }
.registration-layout { display: flex; flex-direction: column; gap: 64px; padding: 12px var(--gutter) 56px; }
.intro-description { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.how-it-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.how-it-works li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.step-index { position: relative; isolation: isolate; display: grid; place-items: center; width: 50px; height: 44px; flex: none; font-family: var(--hand); font-size: 28px; font-weight: 700; }
.step-index::before { position: absolute; inset: 0; z-index: -1; content: ""; background: var(--peach); opacity: .75; }
.how-it-works li:nth-child(2) .step-index::before { background: var(--lilac); transform: scaleX(-1); }
.how-it-works li:nth-child(3) .step-index::before { background: var(--sky); transform: scaleY(-1); }

.form-side { position: relative; }
/* 卡片后面两团晕开的颜料 */
.form-side::before { position: absolute; top: -44px; right: -14px; z-index: 0; width: 72%; height: 58%; content: ""; background: linear-gradient(140deg, var(--lilac), var(--sky)); opacity: .55; transform: rotate(8deg); pointer-events: none; }
.form-side::after { position: absolute; bottom: -40px; left: -14px; z-index: 0; width: 58%; height: 44%; content: ""; background: linear-gradient(140deg, var(--butter), var(--peach)); opacity: .6; transform: rotate(-10deg); pointer-events: none; }
.form-card { position: relative; z-index: 1; padding: 34px 20px 26px; border-radius: 6px; background: var(--grain), var(--card); box-shadow: var(--paper-shadow); }
.form-card .tape { top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.card-heading { margin-bottom: 28px; }
.card-heading h2, .entry-result h2 { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
.card-heading > p:last-child { margin: 12px 0 0; color: var(--ink-muted); font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 18px; }
.field > span { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.field b { color: var(--coral-ink); }
/* 16px 字号避免 iOS 聚焦时自动放大页面 */
.field input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #fffefb; color: var(--ink); font-size: 16px; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #b0aab8; }
.field input:hover { border-color: #dacdb6; }
.field input:focus { border-color: var(--violet-ink); box-shadow: 0 0 0 4px rgb(179 160 230 / 30%); }
.field input:disabled { opacity: .6; }

/* 主按钮：底色是一笔水彩笔刷 */
.primary-button { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 0 10px 0 26px; border: 0; border-radius: 14px; background: none; color: var(--ink); font-size: 16px; font-weight: 800; white-space: nowrap; transition: transform .2s; }
.primary-button::before { position: absolute; inset: -6px -10px; z-index: -1; content: ""; background: linear-gradient(95deg, var(--peach), var(--rose) 50%, var(--lilac)); background-size: 170% 100%; transition: background-position .6s, filter .3s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px) rotate(-.4deg); }
.primary-button:hover:not(:disabled)::before { background-position: 100% 0; filter: saturate(1.25); }
.button-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 18px; transition: transform .25s; }
.primary-button:hover:not(:disabled) .button-icon { transform: translateX(3px); }
.secondary-button { width: 100%; min-height: 56px; padding: 0 22px; border: 1.5px solid rgb(46 42 59 / 25%); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 800; white-space: nowrap; transition: border-color .2s, background .2s; }
.secondary-button:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .6; }
.privacy-note { margin: 16px 0 0; color: var(--ink-muted); font-size: 12.5px; line-height: 1.6; text-align: center; }
.form-error { margin: 0 0 16px; padding: 10px 14px; border: 1.5px dashed rgb(207 90 58 / 45%); border-radius: 10px; background: rgb(207 90 58 / 8%); color: #b0442a; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* 报名成功：水彩对勾 + 粉彩票根 */
.entry-result { text-align: center; animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.result-icon { position: relative; isolation: isolate; display: grid; place-items: center; width: 92px; height: 80px; margin: 0 auto 14px; font-size: 32px; animation: pop-in .6s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
.result-icon::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(135deg, var(--sage), var(--sky)); opacity: .85; }
.entry-result h2 { font-size: 52px; }
.result-copy { max-width: 360px; margin: 8px auto 26px; color: var(--ink-muted); font-size: 15px; }
/* 票根两侧缺口对齐虚线撕口：距底部 18 + 22 + 14 = 54px */
.ticket { position: relative; padding: 20px 20px 18px; border-radius: 12px; background: url(watercolor.svg) center / cover no-repeat, linear-gradient(120deg, #fde6d9, #fbe0ea 50%, #ebe4fb); text-align: left;
  -webkit-mask: radial-gradient(circle at 0 calc(100% - 54px), transparent 11px, #000 11.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% calc(100% - 54px), transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 calc(100% - 54px), transparent 11px, #000 11.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% calc(100% - 54px), transparent 11px, #000 11.5px) right / 51% 100% no-repeat; }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
/* 抽奖码固定 16 位等宽字，字号跟屏宽走，保证一行放得下 */
.ticket strong { display: block; margin: 20px 0 22px; font-family: var(--mono); font-size: clamp(20px, 5.6vw, 27px); font-weight: 700; line-height: 1.2; letter-spacing: .03em; text-align: center; overflow-wrap: anywhere; }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px dashed rgb(46 42 59 / 22%); color: var(--berry-ink); font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 22px; }
.ticket-bottom .icon { font-size: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 10px 20px; border: 1.5px solid rgb(46 42 59 / 18%); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color .2s, transform .2s; }
.text-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.text-button .icon { color: var(--berry-ink); font-size: 16px; }

/* ===== 抽奖控制台 ===== */
.draw-layout { padding: 20px var(--gutter) 56px; }
.draw-intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 44px; }
.draw-description { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.draw-stats { display: flex; gap: 8px; }
.stat { position: relative; isolation: isolate; flex: 1; min-width: 0; padding: 18px 12px 14px; text-align: center; }
.stat::before { position: absolute; inset: 0; z-index: -1; content: ""; background: var(--peach); opacity: .55; }
.stat:nth-child(2)::before { background: var(--lilac); transform: scaleX(-1); }
.stat strong { display: block; font-family: var(--display); font-size: 52px; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1; }
.stat span { display: block; margin-top: 2px; color: var(--ink-soft); font-family: var(--hand); font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }

.draw-stage { position: relative; border-radius: 8px; background: var(--grain), var(--card); box-shadow: var(--paper-shadow); }
.draw-stage .tape { width: 96px; height: 26px; }
.draw-stage .tape-left { top: -18px; left: 30px; transform: rotate(-4deg); background: repeating-linear-gradient(135deg, rgb(134 188 230 / 55%) 0 7px, rgb(134 188 230 / 40%) 7px 14px); }
.draw-stage .tape-right { top: -18px; right: 30px; transform: rotate(3deg); background: repeating-linear-gradient(135deg, rgb(244 207 124 / 65%) 0 7px, rgb(244 207 124 / 48%) 7px 14px); }
.stage-topline, .stage-bottomline { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.stage-topline { border-bottom: 2px dashed var(--line); }
.stage-live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-size: 23px; font-weight: 700; line-height: 1.1; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral-ink); animation: live-pulse 1.8s ease-out infinite; }
/* 状态做成印章 */
.stage-status { padding: 4px 10px; border: 2px solid currentColor; border-radius: 6px; color: var(--berry-ink); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-align: right; transform: rotate(-2deg); opacity: .85; }
.stage-bottomline { border-top: 2px dashed var(--line); color: var(--ink-soft); font-family: var(--hand); font-size: 20px; font-weight: 700; line-height: 1.2; }

.pool-board { position: relative; display: flex; align-items: center; justify-content: center; height: 320px; overflow: hidden; }
.pool-board::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: url(watercolor.svg) center / cover no-repeat; opacity: .8; }
.pool-placeholder { position: relative; z-index: 1; padding: 20px; text-align: center; }
.placeholder-icon { position: relative; isolation: isolate; display: grid; place-items: center; width: 104px; height: 90px; margin: 0 auto 14px; color: var(--berry-ink); font-size: 34px; animation: float 4s ease-in-out infinite; }
.placeholder-icon::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(135deg, var(--rose), var(--lilac)); opacity: .55; }
.pool-placeholder p { margin: 0 0 6px; font-family: var(--display); font-size: 32px; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.1; }
.pool-placeholder small { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* 号码滚动带：待机时慢速漂移，抽奖时加速；每个号码是一小团颜料 */
.pool-lanes { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; transform: rotate(-3deg) scale(1.06); -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); transition: opacity .4s; }
.pool-lanes:not(.is-spinning) { opacity: .7; }
.pool-lane { width: 100%; overflow: hidden; }
.lane-track { display: flex; width: max-content; will-change: transform; animation: lane-roll calc(var(--lane-duration) * 3) linear infinite; }
.pool-lane:nth-child(2) .lane-track { animation-direction: reverse; }
.pool-lanes.is-spinning .lane-track { animation-duration: calc(var(--lane-duration) / 4); }
.lane-group { display: flex; flex: none; align-items: center; gap: 8px; padding-right: 8px; }
.code-chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-width: 136px; height: 52px; padding: 0 16px; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.code-chip::before { position: absolute; inset: 0; z-index: -1; content: ""; background: var(--peach); opacity: .7; }
.code-chip:nth-child(even)::before { background: var(--rose); transform: scaleX(-1); }
.pool-lane:nth-child(2) .code-chip::before { background: var(--lilac); }
.pool-lane:nth-child(2) .code-chip:nth-child(even)::before { background: var(--sky); }
.pool-lane:nth-child(3) .code-chip::before { background: var(--sage); transform: scaleY(-1); }
.pool-lane:nth-child(3) .code-chip:nth-child(even)::before { background: var(--butter); }

.winner-reveal { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: rgb(255 253 249 / 80%); text-align: center; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: reveal-in .5s ease both; }
/* 揭晓时一大团颜料在号码后面晕开 */
.winner-reveal::before { position: absolute; left: 50%; top: 50%; z-index: -1; width: 100%; height: 88%; content: ""; background: linear-gradient(120deg, var(--peach), var(--rose) 40%, var(--lilac) 75%, var(--sky)); opacity: .7; transform: translate(-50%, -50%); animation: bloom-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.reveal-kicker { margin-bottom: 14px; padding: 4px 12px; border: 2px solid currentColor; border-radius: 6px; color: var(--berry-ink); font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .16em; transform: rotate(-2deg); animation: rise-in .5s .2s both; }
/* 真实抽奖码 16 位（SEM- + 12 位），按屏宽缩放保证不折行 */
.winner-reveal strong { max-width: 100%; font-family: var(--mono); font-size: min(30px, 7.6vw); font-weight: 700; line-height: 1.1; letter-spacing: .02em; overflow-wrap: anywhere; animation: code-in .8s .25s cubic-bezier(.2, 1.3, .4, 1) both; }
.reveal-name { margin-top: 12px; font-family: var(--display); font-size: 30px; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.1; animation: rise-in .6s .4s both; }
.reveal-role { margin-top: 4px; color: var(--ink-soft); font-family: var(--hand); font-size: 24px; font-weight: 700; animation: rise-in .6s .5s both; }

.draw-controls { display: grid; gap: 14px; margin: 22px 0 52px; padding: 16px; border-radius: 8px; background: var(--grain), var(--card); box-shadow: var(--paper-shadow); }
.draw-controls .field { margin: 0; }
.draw-controls .field > span { font-family: var(--hand); font-size: 22px; line-height: 1.1; }
.draw-controls .form-error { margin: 0; }

.history-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.history-heading h2 { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.history-heading > span { padding: 4px 10px; border: 2px solid currentColor; border-radius: 6px; color: var(--violet-ink); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; transform: rotate(2deg); opacity: .85; }
.history-empty { padding: 36px 24px; border: 2px dashed var(--line); border-radius: 10px; color: var(--ink-muted); font-family: var(--hand); font-size: 24px; line-height: 1.3; text-align: center; }
.history-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 12px 14px 12px 12px; border-radius: 8px; background: var(--grain), var(--card); box-shadow: 0 1px 2px rgb(80 60 40 / 6%), 0 12px 26px -18px rgb(80 60 40 / 35%); }
.history-list li:last-child { animation: rise-in .5s both; }
.history-number { position: relative; isolation: isolate; display: grid; grid-row: span 2; place-items: center; width: 48px; height: 42px; font-family: var(--hand); font-size: 23px; font-weight: 700; }
.history-number::before { position: absolute; inset: 0; z-index: -1; content: ""; background: var(--peach); opacity: .7; }
.history-list li:nth-child(4n + 2) .history-number::before { background: var(--lilac); transform: scaleX(-1); }
.history-list li:nth-child(4n + 3) .history-number::before { background: var(--sky); transform: scaleY(-1); }
.history-list li:nth-child(4n) .history-number::before { background: var(--sage); }
.history-identity { display: flex; flex-direction: column; min-width: 0; }
.history-identity strong { font-family: var(--display); font-size: 21px; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.25; }
.history-identity span { color: var(--ink-muted); font-size: 13px; overflow-wrap: anywhere; }
/* 号码下面刷一道荧光笔 */
.history-list code { position: relative; isolation: isolate; grid-column: 2; justify-self: start; margin: 4px 0 2px 4px; padding: 6px 14px; color: var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.history-list code::before { position: absolute; inset: -2px -6px; z-index: -1; content: ""; background: var(--butter); opacity: .85; }

/* 管理员导出名单 */
.export-section { display: grid; gap: 18px; margin-top: 56px; padding: 20px 16px; border: 2px dashed var(--line); border-radius: 10px; }
.export-section h2 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.export-note { margin: 8px 0 0; color: var(--ink-muted); font-size: 14px; }
.export-buttons { display: grid; gap: 10px; }
.export-section .form-error { margin: 0; }

/* ===== 彩带（confetti.js 生成） ===== */
.confetti-layer { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.confetti-layer i { position: absolute; width: 8px; height: 13px; border-radius: 2px; opacity: .92; animation: confetti-burst var(--d) forwards; }
.confetti-layer i:nth-child(3n) { width: 9px; height: 9px; border-radius: 50%; }
.confetti-layer i:nth-child(3n + 1) { width: 5px; height: 16px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes reveal-in { from { opacity: 0; } }
@keyframes bloom-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.25); } }
@keyframes code-in { from { opacity: 0; transform: scale(.7); letter-spacing: .3em; } }
@keyframes lane-roll { to { transform: translateX(-50%); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(207 90 58 / 50%); } 100% { box-shadow: 0 0 0 10px rgb(207 90 58 / 0%); } }
@keyframes float { 50% { transform: translateY(-6px); } }
/* 先快速炸开（减速），再受重力下落淡出 */
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(.4); animation-timing-function: cubic-bezier(.1, .8, .3, 1); }
  55% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--r) * .6)) scale(1); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.15), calc(-50% + var(--y) + 200px)) rotate(var(--r)) scale(1); }
}

/* 小屏手机（iPhone SE 等）再收紧一点 */
@media (max-width: 400px) {
  .brand { gap: 8px; font-size: 12px; letter-spacing: .16em; }
  .how-it-works li { font-size: 12px; }
  .card-heading h2 { font-size: 36px; }
}

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