:root {
  color-scheme: dark;
  --page: #111114;
  --page-soft: #18181d;
  --paper: #f2efe9;
  --ink: #f5f2eb;
  --ink-dark: #17171a;
  --muted: #9d9aa3;
  --line: rgba(245, 242, 235, 0.16);
  --line-strong: rgba(245, 242, 235, 0.28);
  --accent: #d44b68;
  --accent-soft: #f1a0b2;
  --accent-deep: #7e1932;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff8fa;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--page);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--page);
  border-radius: 999px;
  background: #45434a;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

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

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 88% 28%, rgba(212, 75, 104, 0.08), transparent 24%),
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.012) 50%, transparent 52% 100%);
}

.lottery {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 17%, rgba(212, 75, 104, 0.12), transparent 24rem),
    radial-gradient(circle at 9% 88%, rgba(128, 126, 156, 0.08), transparent 28rem),
    linear-gradient(135deg, #121216 0%, #17171c 52%, #101013 100%);
}

.lottery::before {
  content: "";
  position: absolute;
  inset: 72px 0 152px;
  z-index: -1;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  background: linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.025) 48% 48.08%, transparent 48.08%);
}

.site-header {
  width: min(100% - 56px, 1460px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: header-in 900ms var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
  transition: transform 240ms var(--ease-out), filter 240ms var(--ease-out);
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateY(-1px) scale(1.035);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(212, 75, 104, 0.34);
  animation: status-pulse 2.4s ease-out infinite;
}

.hero {
  width: min(100% - 56px, 1460px);
  min-height: calc(100dvh - 72px - 152px);
  margin: 0 auto;
  padding: clamp(34px, 4.5vh, 62px) 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(52px, 7vw, 116px);
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero-copy > * {
  animation: copy-in 900ms var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 230ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 300ms;
}

h1 {
  margin: 0;
  display: grid;
  color: var(--ink);
  font-size: clamp(64px, 7.4vw, 108px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.91;
}

.title-accent {
  color: var(--accent-soft);
}

.intro {
  max-width: 24em;
  margin: 28px 0 0;
  color: #b7b3bc;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}

.countdown-panel {
  width: min(100%, 490px);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
}

.countdown-unit {
  position: relative;
  min-width: 0;
  padding: 17px 14px 15px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  border-inline-end: 1px solid var(--line);
}

.countdown-unit:last-child {
  border-inline-end: 0;
}

.countdown-unit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(212, 75, 104, 0.18), transparent 65%);
}

.countdown-unit.is-ticking::after {
  animation: digit-wash 560ms var(--ease-out);
}

.countdown-unit strong {
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(30px, 3vw, 45px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  transform-origin: 50% 70%;
}

.countdown-unit.is-ticking strong {
  animation: digit-flip 520ms var(--ease-out);
}

.countdown-unit span {
  color: var(--muted);
  font-size: 11px;
}

.schedule-row {
  width: min(100%, 490px);
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.draw-time {
  color: #d1ced5;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.sync-label {
  margin-left: auto;
  color: #aaa6af;
}

.event-facts {
  width: min(100%, 490px);
  margin: 30px 0 0;
  padding-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.number-rule {
  width: min(100%, 490px);
  margin: 13px 0 0;
  color: #c6c2ca;
  font-size: 11px;
  line-height: 1.6;
}

.event-facts div {
  display: grid;
  gap: 5px;
}

.event-facts dt {
  color: #98949d;
  font-size: 11px;
}

.event-facts dd {
  margin: 0;
  color: #c8c4cc;
  font-size: 12px;
}

.reveal-stage {
  position: relative;
  min-width: 0;
  min-height: clamp(440px, 54vh, 590px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.light-leak {
  position: absolute;
  inset: 4% 2% 2% 8%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(24px);
  background:
    radial-gradient(circle at 82% 16%, rgba(212, 75, 104, 0.26), transparent 27%),
    radial-gradient(circle at 20% 86%, rgba(245, 212, 182, 0.11), transparent 30%);
  animation: light-breathe 8s ease-in-out infinite alternate;
}

.photo-stack {
  position: relative;
  width: min(88%, 680px);
  aspect-ratio: 1280 / 785;
  transform: translateX(-3%);
  animation: stack-in 1.15s var(--ease-out) both;
}

.photo-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9e5df;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  transition:
    transform 900ms var(--ease-out),
    filter 700ms var(--ease-out),
    opacity 700ms ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-card-back {
  opacity: 0.78;
  filter: saturate(0.54) brightness(0.72);
}

.photo-card-back-one {
  transform: translate(-12%, 4%) rotate(-7deg) scale(0.9);
}

.photo-card-back-two {
  transform: translate(13%, -2%) rotate(6deg) scale(0.92);
}

.photo-card-back-two img {
  object-position: center 14%;
}

.photo-frame {
  z-index: 3;
  transform: rotate(-1.5deg);
}

.hero-photo {
  transition: transform 1.2s var(--ease-out), filter 700ms ease;
}

.hero-contact {
  position: absolute;
  left: 1%;
  bottom: 3%;
  z-index: 9;
  min-height: 58px;
  padding: 11px 17px 12px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink-dark);
  box-shadow: 0 18px 50px rgba(212, 75, 104, 0.38);
  text-decoration: none;
  transform: rotate(-1.5deg);
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.hero-contact:hover {
  background: #ffc2cf;
  transform: translateY(-2px) rotate(-1.5deg);
}

.hero-contact:active {
  transform: translateY(1px) rotate(-1.5deg) scale(0.985);
}

.hero-contact span {
  color: #6d2b3a;
  font-size: 10px;
  font-weight: 700;
}

.hero-contact strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.hero-group {
  position: absolute;
  left: 1%;
  bottom: calc(3% + 68px);
  z-index: 9;
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-dark);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transform: rotate(0.8deg);
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

.hero-group:hover {
  background: #fff8f9;
  transform: translateY(-2px) rotate(0.8deg);
}

.hero-group:active {
  transform: translateY(1px) rotate(0.8deg) scale(0.985);
}

.focus-corners {
  position: absolute;
  inset: 18px;
  z-index: 3;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 11px;
  transition: opacity 300ms ease;
}

.focus-corners::before,
.focus-corners::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #fff;
}

.focus-corners::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.focus-corners::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.frame-flash {
  position: absolute;
  inset: -40%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-70%) rotate(18deg);
  background: linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.7) 50%, transparent 62%);
}

.ticket-readout {
  position: absolute;
  right: 0;
  bottom: 2%;
  z-index: 8;
  width: clamp(210px, 19vw, 278px);
  padding: 18px 20px 20px;
  color: var(--ink-dark);
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(1.5deg);
  animation: ticket-in 1s 260ms var(--ease-out) both;
}

.ticket-readout::before,
.ticket-readout::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--page-soft);
  transform: translateY(-50%);
}

.ticket-readout::before {
  left: -7px;
}

.ticket-readout::after {
  right: -7px;
}

.ticket-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 23, 26, 0.18);
  color: #59555d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.status-text {
  margin: 18px 0 10px;
  color: #706b73;
  font-size: 12px;
}

.ticket-number {
  margin: 0;
  color: var(--ink-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(42px, 4.7vw, 70px);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.ticket-caption {
  display: block;
  margin-top: 14px;
  color: #625d65;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.winner-stamp {
  position: absolute;
  right: 4%;
  bottom: 18%;
  z-index: 12;
  width: 184px;
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.93);
  color: var(--accent-soft);
  opacity: 0;
  transform: rotate(-16deg) scale(1.4);
  pointer-events: none;
}

.winner-stamp span,
.winner-stamp small {
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.winner-stamp strong {
  margin: 8px 0 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.winner-stamp small {
  color: #bc6478;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.contact-sheet {
  position: relative;
  width: 100%;
  height: 152px;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  background: #09090b;
}

.contact-sheet::before,
.contact-sheet::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 3;
  width: 9vw;
  pointer-events: none;
}

.contact-sheet::before {
  left: 0;
  background: linear-gradient(90deg, #09090b, transparent);
}

.contact-sheet::after {
  right: 0;
  background: linear-gradient(-90deg, #09090b, transparent);
}

.film-track {
  width: max-content;
  height: 100%;
  display: flex;
  padding: 13px 0;
  animation: film-drift 68s linear infinite;
  will-change: transform;
}

.film-strip-set {
  flex: none;
  display: flex;
  gap: 10px;
  padding-right: 10px;
}

.film-strip-set figure {
  position: relative;
  width: clamp(146px, 12vw, 186px);
  height: 126px;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #222226;
  filter: saturate(0.58) contrast(1.07) brightness(0.78);
}

.film-strip-set figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.film-strip-set img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-collection {
  width: min(100% - 56px, 1460px);
  margin: 0 auto;
  padding: clamp(84px, 10vw, 150px) 0 clamp(96px, 12vw, 176px);
}

.collection-heading {
  max-width: 720px;
  margin-bottom: clamp(48px, 7vw, 92px);
}

.collection-heading h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.collection-heading p {
  max-width: 34em;
  margin: 22px 0 0;
  color: #b7b3bd;
  font-size: 16px;
  line-height: 1.7;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.collection-item,
.campaign-block {
  min-width: 0;
  margin: 0;
}

.collection-black {
  grid-column: 1 / span 7;
}

.collection-jk {
  grid-column: 8 / -1;
  margin-top: 132px;
}

.collection-maid {
  grid-column: 1 / span 4;
  margin-top: 34px;
}

.campaign-block {
  grid-column: 5 / -1;
  margin-top: 126px;
}

.card-pair {
  position: relative;
  aspect-ratio: 1.34;
}

.physical-card {
  position: absolute;
  width: 82%;
  aspect-ratio: 1280 / 785;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #202026;
  box-shadow: 0 30px 72px rgba(5, 5, 8, 0.44);
  transition: transform 800ms var(--ease-out), filter 600ms ease;
}

.physical-card img,
.single-card-visual img,
.campaign-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.physical-card-front {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-2.5deg);
}

.physical-card-back {
  right: 0;
  bottom: 0;
  filter: brightness(0.78) saturate(0.72);
  transform: rotate(3deg);
}

.collection-item:hover .physical-card-front {
  transform: translate(-10px, -8px) rotate(-3.5deg);
}

.collection-item:hover .physical-card-back {
  filter: brightness(0.92) saturate(0.9);
  transform: translate(10px, 8px) rotate(4deg);
}

.single-card-visual,
.campaign-visual {
  overflow: hidden;
  border-radius: var(--radius);
  background: #202026;
  box-shadow: 0 34px 86px rgba(5, 5, 8, 0.38);
}

.single-card-visual {
  aspect-ratio: 4 / 5;
  margin: 0;
}

.single-card-visual img {
  transition: transform 900ms var(--ease-out);
}

.collection-maid:hover .single-card-visual img {
  transform: scale(1.025);
}

.campaign-visual {
  aspect-ratio: 4 / 3;
  margin: 0;
}

.campaign-caption {
  margin: 17px 0 0;
  color: #aaa6af;
  font-size: 12px;
  line-height: 1.65;
}

.collection-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.78fr);
  gap: 22px;
  align-items: end;
  margin-top: 24px;
}

.collection-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.collection-copy p {
  margin: 0;
  color: #aaa6af;
  font-size: 13px;
  line-height: 1.7;
}

.lottery[data-state="syncing"] .countdown-panel {
  opacity: 0.58;
}

.lottery[data-state="drawing"] .countdown-panel,
.lottery[data-state="drawing"] .schedule-row,
.lottery[data-state="won"] .countdown-panel,
.lottery[data-state="won"] .schedule-row {
  display: none;
}

.lottery[data-state="drawing"] .photo-card-back-one {
  transform: translate(-17%, 2%) rotate(-11deg) scale(0.88);
}

.lottery[data-state="drawing"] .photo-card-back-two {
  transform: translate(18%, -4%) rotate(9deg) scale(0.9);
}

.lottery[data-state="drawing"] .photo-frame {
  filter: saturate(0.16) contrast(1.14);
  transform: rotate(1deg) scale(0.985);
}

.lottery[data-state="drawing"] .hero-photo {
  transform: scale(1.07);
}

.lottery[data-state="drawing"] .focus-corners {
  opacity: 1;
}

.lottery[data-state="drawing"] .frame-flash {
  animation: develop-flash 1.05s var(--ease-in-out) 2;
}

.lottery[data-state="drawing"] .film-track {
  animation-duration: 2.8s;
}

.lottery[data-state="drawing"] .ticket-readout {
  animation: ticket-rattle 180ms ease-in-out infinite alternate;
}

.lottery[data-state="won"] .photo-frame {
  filter: saturate(0.95) contrast(1.03);
  transform: rotate(0deg) scale(1.01);
}

.lottery[data-state="won"] .photo-card-back-one {
  transform: translate(-14%, 5%) rotate(-5deg) scale(0.9);
}

.lottery[data-state="won"] .photo-card-back-two {
  transform: translate(14%, -3%) rotate(4deg) scale(0.92);
}

.lottery[data-state="won"] .ticket-number {
  color: var(--accent-deep);
}

.lottery[data-state="won"] .winner-stamp {
  animation: stamp-in 760ms var(--ease-out) both;
}

.lottery[data-state="won"] .live-pulse {
  animation: none;
  box-shadow: 0 0 0 3px rgba(212, 75, 104, 0.16);
}

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

@keyframes copy-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes stack-in {
  from { opacity: 0; transform: translateX(3%) scale(0.92) rotate(2deg); }
  to { opacity: 1; transform: translateX(-3%) scale(1) rotate(0deg); }
}

@keyframes ticket-in {
  from { opacity: 0; transform: translate(28px, 20px) rotate(6deg); }
  to { opacity: 1; transform: translate(0, 0) rotate(1.5deg); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 75, 104, 0.36); }
  60%, 100% { box-shadow: 0 0 0 9px rgba(212, 75, 104, 0); }
}

@keyframes light-breathe {
  from { opacity: 0.5; transform: translate3d(-1%, 1%, 0) scale(0.96); }
  to { opacity: 0.88; transform: translate3d(2%, -1%, 0) scale(1.04); }
}

@keyframes digit-flip {
  0% { opacity: 0.25; transform: translateY(-9px) scaleY(0.78); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

@keyframes digit-wash {
  0% { opacity: 0.85; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(100%); }
}

@keyframes film-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes develop-flash {
  0% { opacity: 0; transform: translateX(-70%) rotate(18deg); }
  28% { opacity: 0.34; }
  70%, 100% { opacity: 0; transform: translateX(70%) rotate(18deg); }
}

@keyframes ticket-rattle {
  from { transform: rotate(1deg) translateX(-1px); }
  to { transform: rotate(2deg) translateX(1px); }
}

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.45); filter: blur(5px); }
  58% { opacity: 1; transform: rotate(-9deg) scale(0.94); filter: blur(0); }
  100% { opacity: 1; transform: rotate(-11deg) scale(1); filter: blur(0); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.15fr);
    gap: 40px;
  }

  .photo-stack {
    width: 90%;
  }

  .ticket-readout {
    width: 220px;
  }
}

@media (max-width: 820px) {
  .lottery::before {
    inset: 64px 0 116px;
    background: none;
  }

  .site-header,
  .hero,
  .card-collection {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    height: 64px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 34px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: clamp(56px, 12vw, 76px);
  }

  .intro {
    max-width: 30em;
    margin-top: 20px;
  }

  .countdown-panel,
  .schedule-row,
  .event-facts,
  .number-rule {
    width: 100%;
    max-width: none;
  }

  .countdown-panel {
    margin-top: 24px;
  }

  .event-facts {
    margin-top: 22px;
  }

  .reveal-stage {
    min-height: 440px;
  }

  .photo-stack {
    width: min(88vw, 620px);
  }

  .ticket-readout {
    right: 5%;
  }

  .contact-sheet {
    height: 116px;
  }

  .film-strip-set figure {
    width: 132px;
    height: 88px;
  }

  .card-collection {
    padding: 82px 0 110px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .collection-black,
  .collection-jk,
  .collection-maid,
  .campaign-block {
    grid-column: 1;
    margin-top: 0;
  }

  .collection-maid {
    width: min(72%, 420px);
  }

}

@media (max-width: 620px) {
  .film-grain {
    opacity: 0.18;
  }

  .site-header,
  .hero,
  .card-collection {
    width: calc(100% - 28px);
  }

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

  .header-status {
    font-size: 11px;
  }

  .hero {
    padding: 24px 0 28px;
    gap: 22px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 62px);
    line-height: 0.92;
  }

  .intro {
    max-width: 24em;
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.58;
  }

  .countdown-panel {
    margin-top: 20px;
  }

  .countdown-unit {
    padding: 13px 10px 12px;
    gap: 6px;
  }

  .countdown-unit strong {
    font-size: clamp(27px, 8.2vw, 34px);
  }

  .schedule-row {
    margin-top: 10px;
    gap: 7px;
    font-size: 9px;
  }

  .number-rule {
    margin-top: 8px;
    font-size: 10px;
  }

  .sync-label {
    font-size: 0;
  }

  .sync-label::after {
    content: "已校时";
    font-size: 9px;
  }

  .event-facts {
    display: none;
  }

  .reveal-stage {
    min-height: 318px;
  }

  .photo-stack {
    width: min(92vw, 390px);
    transform: translateX(-4%);
  }

  .photo-card-back-one {
    transform: translate(-8%, 3%) rotate(-5deg) scale(0.92);
  }

  .photo-card-back-two {
    transform: translate(9%, -1%) rotate(5deg) scale(0.93);
  }

  .hero-contact {
    left: 0;
    bottom: 1%;
    min-height: 52px;
    padding: 9px 12px 10px;
  }

  .hero-contact strong {
    font-size: 13px;
  }

  .hero-group {
    left: 0;
    bottom: calc(1% + 62px);
    min-height: 42px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .ticket-readout {
    right: 0;
    bottom: 0;
    width: 166px;
    padding: 13px 15px 15px;
  }

  .ticket-topline {
    padding-bottom: 8px;
    font-size: 8px;
  }

  .status-text {
    margin: 11px 0 7px;
    font-size: 10px;
  }

  .ticket-number {
    font-size: 41px;
  }

  .ticket-caption {
    margin-top: 8px;
    font-size: 8px;
  }

  .winner-stamp {
    right: 4%;
    bottom: 23%;
    width: 126px;
  }

  .card-collection {
    padding: 64px 0 84px;
  }

  .collection-heading {
    margin-bottom: 42px;
  }

  .collection-heading h2 {
    font-size: 44px;
  }

  .collection-heading p {
    margin-top: 16px;
    font-size: 14px;
  }

  .collection-grid {
    gap: 52px;
  }

  .card-pair {
    aspect-ratio: 1.2;
  }

  .physical-card {
    width: 88%;
  }

  .collection-copy {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 19px;
  }

  .collection-copy h3 {
    font-size: 30px;
  }

  .collection-maid {
    width: 88%;
  }

  .winner-stamp strong {
    margin: 6px 0 3px;
    font-size: 24px;
  }

  .winner-stamp span {
    font-size: 9px;
  }

  .contact-sheet {
    height: 110px;
  }

  .film-track {
    padding-block: 11px;
  }

  .film-strip-set figure {
    width: 126px;
    height: 88px;
  }

  .lottery[data-state="won"] .intro {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-header,
  .hero,
  .card-collection {
    width: calc(100% - 24px);
  }

  .site-header {
    height: 58px;
  }

  .hero {
    padding-top: 18px;
    gap: 16px;
  }

  h1 {
    font-size: 46px;
  }

  .intro {
    margin-top: 13px;
    font-size: 13px;
  }

  .countdown-panel {
    margin-top: 14px;
  }

  .countdown-unit {
    padding: 10px 8px;
  }

  .reveal-stage {
    min-height: 278px;
  }

  .photo-stack {
    width: min(88vw, 300px);
  }

  .ticket-readout {
    width: 148px;
  }

  .ticket-number {
    font-size: 36px;
  }

  .winner-stamp {
    width: 108px;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .hero {
    padding-block: 15px 20px;
    gap: 12px;
  }

  h1 {
    font-size: 41px;
  }

  .intro {
    margin-top: 10px;
    line-height: 1.45;
  }

  .countdown-panel {
    margin-top: 12px;
  }

  .schedule-row {
    margin-top: 7px;
  }

  .reveal-stage {
    min-height: 220px;
  }

  .photo-stack {
    width: min(68vw, 230px);
  }

  .ticket-readout {
    width: 132px;
    padding: 10px 12px 12px;
  }

  .ticket-topline {
    padding-bottom: 6px;
  }

  .status-text {
    margin: 8px 0 5px;
    font-size: 9px;
  }

  .ticket-number {
    font-size: 32px;
  }

  .ticket-caption {
    margin-top: 6px;
  }

  .lottery[data-state="won"] h1 {
    font-size: 37px;
  }

  .winner-stamp {
    width: 92px;
    bottom: 44%;
  }

  .winner-stamp strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
