:root {
  --stadium-night: #061a14;
  --stadium-deep: #0b2f24;
  --pitch: #124a38;
  --pitch-raised: #185743;
  --pitch-inset: #0e3d2f;
  --champion-gold: #d9b75b;
  --champion-gold-bright: #f1d77d;
  --paper: #edf1e9;
  --paper-raised: #f7f8f3;
  --paper-line: #c8d1ca;
  --silver: #aeb6b2;
  --ink: #10251d;
  --ink-soft: #53675e;
  --text-primary: #f7f7f0;
  --text-secondary: #d3ded7;
  --text-tertiary: #9fb2a8;
  --text-muted: #6f887b;
  --line-soft: rgba(236, 240, 232, 0.14);
  --line-standard: rgba(236, 240, 232, 0.24);
  --line-emphasis: rgba(217, 183, 91, 0.72);
  --focus: #f1d77d;
  --shadow-ticket: 0 24px 64px rgba(0, 10, 7, 0.44);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--stadium-night);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--stadium-night);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}

body.chat-mode {
  background-color: #dde5ef;
  background-image: none;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

button:disabled {
  cursor: not-allowed;
}

.chat-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #18212d;
}

.wecom-window {
  width: min(420px, 100%);
  min-height: min(812px, calc(100vh - 32px));
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(24, 33, 45, 0.1);
  border-radius: 24px;
  background: #f3f5f8;
  box-shadow: 0 20px 48px rgba(42, 57, 76, 0.16);
}

.chat-header {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px 18px;
  border-bottom: 1px solid #dfe3e8;
  background: #ffffff;
}

.chat-back {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #3779f4;
  background: #eef4ff;
  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.chat-header h1 {
  margin: 0;
  color: #18212d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.chat-header p {
  margin: 4px 0 0;
  color: #7a8491;
  font-size: 12px;
  font-weight: 600;
}

.online-status {
  width: 12px;
  height: 12px;
  justify-self: center;
  border: 5px solid #e9f7ef;
  border-radius: 50%;
  background: #45b875;
  box-sizing: content-box;
}

.chat-thread {
  flex: 1;
  padding: 18px 14px 32px;
}

.chat-thread > time {
  display: table;
  margin: 0 auto 18px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #7a8491;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 600;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.chat-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.customer-avatar {
  background: #96a1b1;
}

.advisor-avatar {
  background: #61bdb5;
}

.message-row > p {
  max-width: 72%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #18212d;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.55;
}

.message-row.outgoing > p {
  background: #dceaff;
}

.activity-row {
  align-items: flex-start;
}

.activity-card {
  display: grid;
  width: min(312px, calc(100% - 46px));
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #c9dcff;
  border-radius: 8px;
  color: #18212d;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(48, 77, 117, 0.1);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.activity-card:hover {
  border-color: #4b7ff1;
  transform: translateY(-1px);
}

.activity-card:active {
  transform: translateY(1px);
}

.activity-card:disabled,
.activity-card:disabled:hover {
  border-color: #c9dcff;
  opacity: 1;
  cursor: default;
  transform: none;
}

.activity-card:focus-visible {
  outline: 3px solid #4b7ff1;
  outline-offset: 3px;
}

.activity-thumb {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 6px;
  background: #0f4435;
}

.mini-ticket {
  display: grid;
  width: 52px;
  height: 62px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 7px;
  border: 1px solid #f1d77d;
  border-radius: 3px;
  background: #e8ece7;
  font-style: normal;
  transform: rotate(-4deg);
}

.mini-ticket b {
  display: grid;
  place-items: center;
  border: 1px solid #c5cec7;
  color: #124a38;
  background: #f7f8f3;
  font-family: Consolas, monospace;
  font-size: 8px;
}

.activity-copy {
  min-width: 0;
}

.activity-copy > small,
.activity-copy > strong,
.activity-copy > em {
  display: block;
}

.activity-copy > small {
  color: #4b7ff1;
  font-size: 10px;
  font-weight: 800;
}

.activity-copy > strong {
  margin-top: 4px;
  color: #18212d;
  font-size: 15px;
  line-height: 1.3;
}

.activity-copy > em {
  margin-top: 5px;
  color: #a53d2e;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.activity-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 9px;
  color: #4b7ff1;
  font-size: 11px;
  font-weight: 800;
}

.chat-composer {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe3e8;
  background: #ffffff;
}

.chat-composer > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #536172;
  background: #f0f2f5;
  font-size: 22px;
}

.chat-composer > div {
  height: 38px;
  padding: 9px 12px;
  border: 1px solid #e0e4e9;
  border-radius: 6px;
  color: #a5adb8;
  background: #ffffff;
  font-size: 13px;
}

.share-tray {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe3e8;
  background: #ffffff;
}

.share-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-summary > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #4b7ff1;
  font-size: 19px;
  font-weight: 800;
}

.share-summary strong,
.share-summary small {
  display: block;
}

.share-summary strong {
  color: #18212d;
  font-size: 13px;
}

.share-summary small {
  margin-top: 3px;
  color: #7a8491;
  font-size: 10px;
}

.share-actions {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  margin-top: 12px;
}

.share-actions button {
  min-height: 40px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cancel-share {
  border: 1px solid #d7dce3;
  color: #536172;
  background: #ffffff;
}

.confirm-share {
  border: 1px solid #3e72e5;
  color: #ffffff;
  background: #4b7ff1;
}

.share-actions button:hover {
  filter: brightness(0.97);
}

.share-actions button:focus-visible {
  outline: 3px solid #4b7ff1;
  outline-offset: 3px;
}

.ticket-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.game-screen {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 420px);
  align-content: start;
  justify-content: center;
  justify-items: center;
  perspective: 1400px;
}

.stadium-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.86;
}

.celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scratch-debris-canvas {
  position: fixed;
  inset: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-back {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px 4px;
  border: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.game-back span {
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 0.7;
}

.lottery-ticket {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-standard);
  border-radius: 8px;
  background-color: var(--stadium-deep);
  box-shadow: var(--shadow-ticket);
  transform-style: preserve-3d;
  transform-origin: center 12%;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
}

.lottery-ticket.is-tilting {
  will-change: transform;
  box-shadow: 0 30px 72px rgba(0, 10, 7, 0.52);
}

.lottery-ticket.ticket-enter {
  animation: ticket-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lottery-ticket::after {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 240, 188, 0.06) 44%,
    rgba(255, 240, 188, 0.24) 50%,
    rgba(255, 240, 188, 0.06) 56%,
    transparent 64%
  );
  transform: translateX(-72%) rotate(4deg);
}

.lottery-ticket.ticket-light::after {
  animation: ticket-light-sweep 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ticket-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-emphasis);
  border-radius: 50%;
  color: var(--champion-gold-bright);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-lockup strong,
.brand-lockup small,
.ticket-meta span,
.ticket-meta strong {
  display: block;
}

.brand-lockup strong {
  font-size: 14px;
}

.brand-lockup small,
.ticket-meta span {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-family: "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.ticket-meta {
  flex: 0 0 auto;
  text-align: right;
}

.ticket-meta strong {
  margin-top: 3px;
  color: var(--champion-gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ticket-hero {
  position: relative;
  padding: 24px;
  text-align: center;
}

.ticket-hero::before,
.ticket-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 84px;
  border: 1px solid var(--line-soft);
}

.ticket-hero::before {
  left: -22px;
  border-radius: 0 44px 44px 0;
}

.ticket-hero::after {
  right: -22px;
  border-radius: 44px 0 0 44px;
}

.edition {
  margin: 0 0 8px;
  color: var(--champion-gold);
  font-size: 11px;
  font-weight: 700;
}

.ticket-hero h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.08;
}

.ticket-hero h1:focus {
  outline: none;
}

.match-rule {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  gap: 8px;
  width: 176px;
  margin: 14px auto 10px;
}

.match-rule span {
  height: 1px;
  background: var(--line-emphasis);
}

.match-rule i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--champion-gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--stadium-deep);
  background: var(--champion-gold);
}

.ticket-promise {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.earnings {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-standard);
  border-bottom: 1px solid var(--line-standard);
}

.earnings span,
.earnings small {
  display: block;
}

.earnings > div:first-child > span {
  font-size: 13px;
  font-weight: 700;
}

.earnings small {
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 10px;
}

.earnings .interest-note {
  margin-top: 2px;
  color: var(--champion-gold);
}

.earnings-action {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 8px;
}

.earnings-action strong {
  color: var(--champion-gold-bright);
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.withdraw-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line-emphasis);
  border-radius: 3px;
  color: var(--champion-gold-bright);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.withdraw-link:hover {
  color: var(--stadium-deep);
  background: var(--champion-gold-bright);
}

.withdraw-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.scratch-card {
  padding: 22px 24px 20px;
}

.scratch-heading,
.scratch-heading > div,
.scratch-support,
.ticket-footnote {
  display: flex;
  align-items: center;
}

.scratch-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.scratch-heading > div {
  gap: 10px;
  min-width: 0;
}

.section-index {
  color: var(--champion-gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

h2 {
  margin: 0;
  font-size: 14px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line-standard);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
}

.lottery-ticket.ticket-active .status-pill {
  border-color: var(--line-emphasis);
  color: var(--champion-gold-bright);
}

.game-board {
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
}

.number-zone {
  padding: 14px;
}

.zone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.zone-heading h3 {
  margin: 0;
  color: var(--pitch);
  font-size: 13px;
}

.zone-heading span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.scratch-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  background: var(--paper-raised);
  touch-action: none;
}

.winning-surface {
  height: 86px;
}

.mine-surface {
  height: 286px;
}

.winning-numbers,
.my-numbers {
  position: absolute;
  inset: 8px;
  display: grid;
}

.winning-numbers {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.winning-number {
  display: grid;
  place-items: center;
  border: 1px solid var(--champion-gold);
  border-radius: 50%;
  color: var(--pitch);
  background: #f4e6b4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lottery-ticket.numbers-revealed .winning-number {
  animation: number-reveal 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lottery-ticket.numbers-revealed .winning-number:nth-child(2) {
  animation-delay: 55ms;
}

.lottery-ticket.numbers-revealed .winning-number:nth-child(3) {
  animation-delay: 110ms;
}

.lottery-ticket.numbers-revealed .winning-number:nth-child(4) {
  animation-delay: 165ms;
}

.my-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(5, 1fr);
  gap: 6px;
}

.number-cell {
  position: relative;
  display: grid;
  min-width: 0;
  place-content: center;
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.number-cell strong,
.number-cell small {
  display: block;
}

.number-cell strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.number-cell small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.lottery-ticket.ticket-done .number-cell.match {
  border-color: var(--champion-gold);
  color: var(--paper-raised);
  background: var(--pitch);
  box-shadow: inset 0 0 0 2px var(--champion-gold);
  animation: match-hit 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lottery-ticket.ticket-done .number-cell.match small {
  color: var(--champion-gold-bright);
}

.scratch-surface::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -38%;
  z-index: 3;
  width: 20%;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(0) skewX(-16deg);
}

.lottery-ticket.ticket-light .scratch-surface::after {
  animation: scratch-glint 820ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#winning-canvas,
#numbers-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.match-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-family: "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 800;
}

.match-divider::before,
.match-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper-line);
}

.scratch-support {
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-top: 10px;
}

.scratch-support p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.45;
}

.reveal-button {
  flex: 0 0 auto;
  padding: 6px 0 6px 12px;
  border: 0;
  color: var(--champion-gold-bright);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.reveal-button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.perforation {
  height: 1px;
  margin: 0 16px;
  background-image: linear-gradient(90deg, var(--line-standard) 50%, transparent 50%);
  background-size: 10px 1px;
}

.ticket-footer {
  padding: 22px 24px 20px;
  background: var(--pitch-inset);
}

.invite-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--champion-gold);
  border-radius: 4px;
  color: var(--stadium-deep);
  background: var(--champion-gold-bright);
  box-shadow: 0 3px 0 #967a35;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.invite-button::after {
  content: "→";
  flex: 0 0 auto;
  font-size: 22px;
}

.invite-button span,
.invite-button small {
  display: block;
  text-align: left;
}

.invite-button span {
  font-size: 16px;
  font-weight: 800;
}

.invite-button small {
  color: #4f472d;
  font-size: 10px;
  font-weight: 700;
}

.invite-button:hover:not(:disabled) {
  background: #f6df8b;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #967a35;
}

.invite-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #967a35;
}

.invite-button:disabled {
  border-color: var(--line-standard);
  color: var(--text-tertiary);
  background: var(--pitch-raised);
  box-shadow: none;
}

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

.ticket-footnote {
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--text-tertiary);
  font-size: 10px;
}

.barcode {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
}

.barcode span {
  height: 24px;
  opacity: 0.48;
  background-image: repeating-linear-gradient(
    90deg,
    var(--text-secondary) 0 1px,
    transparent 1px 3px,
    var(--text-secondary) 3px 5px,
    transparent 5px 8px
  );
}

.barcode b {
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
}

@media (max-width: 420px) {
  .chat-screen {
    padding: 0;
  }

  .wecom-window {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chat-thread {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ticket-shell {
    place-items: start center;
    padding: 8px;
  }

  .ticket-masthead,
  .ticket-hero,
  .scratch-card,
  .ticket-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .earnings {
    margin-right: 18px;
    margin-left: 18px;
  }

  .earnings-action strong {
    font-size: 32px;
  }

  .ticket-hero h1 {
    font-size: 44px;
  }

  .number-zone {
    padding: 12px;
  }

  .mine-surface {
    height: 274px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-button,
  .activity-card {
    transition: none;
  }

  .lottery-ticket,
  .lottery-ticket.ticket-enter,
  .lottery-ticket.ticket-light::after,
  .lottery-ticket.ticket-light .scratch-surface::after,
  .lottery-ticket.numbers-revealed .winning-number,
  .lottery-ticket.ticket-done .number-cell.match {
    animation: none;
    transition: none;
  }
}

@keyframes ticket-enter {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(5deg) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes ticket-light-sweep {
  0% {
    opacity: 0;
    transform: translateX(-72%) rotate(4deg);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateX(72%) rotate(4deg);
  }
}

@keyframes scratch-glint {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-16deg);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(700%) skewX(-16deg);
  }
}

@keyframes number-reveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes match-hit {
  0% {
    transform: scale(0.82);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
