@font-face {
  font-family: "Kode Mono";
  src: url("assets/fonts/KodeMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kode Mono";
  src: url("assets/fonts/KodeMono-SemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}

@property --percent {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --percent-temp {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --percent-whole {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

@property --percent-decimal {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --bg: #041719;
  --panel: #0b2326;
  --green: #00fb38;
  --green-soft: #9cc3a4;
  --green-dim: rgb(0 251 56 / 24%);
  --title: #c3e8cb;
  --border: #0e3c3a;
  --danger: #ff5c35;
  --warning: #f6d241;
  --container: 448px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--title);
  background: var(--bg);
  font-family: "Kode Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

button {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: var(--container);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: 92px;
}

.hero {
  position: relative;
  height: 330px;
  transition: height 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art {
  position: absolute;
  inset: 0;
  height: 330px;
  background-image:
    linear-gradient(to bottom, transparent 0 68%, var(--bg) 100%),
    url("assets/main-cover.webp");
  background-repeat: no-repeat;
  background-position: center top, -180px top;
  background-size: 100% 100%, 766px auto;
  transition: height 700ms cubic-bezier(0.16, 1, 0.3, 1), background-position 700ms cubic-bezier(0.16, 1, 0.3, 1), background-size 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 76px 24px 0;
  transition: padding 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  transition: height 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-link {
  display: block;
  width: fit-content;
  line-height: 0;
}

.brand-logo-link[href],
.ai-icon-link[href] {
  cursor: pointer;
}

.app-shell.results-mode .hero,
.app-shell.results-mode .hero-art {
  height: 176px;
}

.app-shell.results-mode .hero-art {
  background-position: center top, center top;
  background-size: 100% 100%, 478px auto;
}

.app-shell.results-mode .brand-lockup {
  padding-top: 32px;
}

.app-shell.results-mode .brand-logo {
  height: 32px;
}

.ai-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-icon-link {
  display: block;
  flex: 0 0 40px;
  line-height: 0;
}

.ai-lockup img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ai-lockup h1 {
  margin: 0;
  color: var(--title);
  font-size: 21px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -1px;
  text-shadow: 4px 8px 8px rgb(0 0 0 / 50%);
  white-space: nowrap;
}

.ai-lockup h1 span {
  color: var(--green);
}

.version {
  display: inline-flex;
  height: 22px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 6px;
  border: 1px solid var(--title);
  color: var(--title);
  font-size: 13px;
  line-height: 1;
}

.scanner {
  position: relative;
  z-index: 2;
  margin-top: -100px;
  padding: 8px 40px 12px;
  color: var(--green);
  text-shadow: 0 0 8px rgb(0 251 56 / 45%);
}

.scanner::before,
.scanner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 13px;
  border: 2px solid var(--green);
}

.scanner::before {
  left: 24px;
  border-right: 0;
}

.scanner::after {
  right: 24px;
  border-left: 0;
}

.scanner-title {
  display: flex;
  height: 22px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 17px;
  line-height: 22px;
  white-space: nowrap;
}

.scanner-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevrons {
  width: 32px;
  flex: 0 0 32px;
  letter-spacing: 0;
  animation: chevrons 1.35s steps(3) infinite;
}

.segments {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.segment {
  height: 22px;
  background: rgb(183 255 199 / 22%);
}

.segment.active {
  background: var(--green);
  box-shadow: 0 0 8px rgb(0 251 56 / 24%);
}

.scan-details {
  height: 82px;
  margin-top: 8px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}

.detail-row i {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background-image: radial-gradient(circle, var(--green) 1.2px, transparent 1.3px);
  background-position: center;
  background-size: 12px 2px;
  opacity: 0.9;
}

.detail-row b {
  font-weight: 600;
}

.card-stage {
  width: 100%;
  margin-top: 10px;
}

.card-grid {
  display: grid;
  width: 423px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 125px);
  gap: 0 24px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-card {
  position: relative;
  width: 125px;
  height: 125px;
  margin-bottom: -26px;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: #071b1c;
  box-shadow: 0 0 8px rgb(0 251 56 / 78%);
  opacity: 0;
  transform: translateY(45px);
  animation: card-enter 660ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.game-card:nth-child(3n + 1),
.game-card:nth-child(3n + 3) {
  margin-top: 50px;
}

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

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-105%);
  background: linear-gradient(180deg, transparent, rgb(0 251 56 / 24%));
  border-bottom: 2px solid var(--green);
}

.game-card.scanning::after {
  animation: scan-card 2.2s ease-out forwards;
}

.rate {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 2;
  transform: translateX(-50%);
  min-width: 74px;
  padding: 2px 7px;
  border: 1px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  background: rgb(4 23 25 / 92%);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 240ms ease;
}

.results-ready .game-card img {
  opacity: 0.72;
}

.results-ready .rate {
  opacity: 1;
}

.game-card.medium {
  border-color: var(--warning);
  box-shadow: 0 0 8px rgb(246 210 65 / 50%);
}

.game-card.medium .rate {
  border-color: var(--warning);
  color: var(--warning);
}

.game-card.low {
  border-color: var(--danger);
  box-shadow: 0 0 8px rgb(255 92 53 / 45%);
}

.game-card.low .rate {
  border-color: var(--danger);
  color: var(--danger);
}

.results-view {
  position: relative;
  margin-top: -36px;
  animation: results-enter 520ms ease-out both;
}

.provider-tabs {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  width: 100%;
  height: 72px;
  gap: 4px;
  align-items: center;
  padding: 10px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.provider-tabs::-webkit-scrollbar {
  display: none;
}

.provider-tab {
  position: relative;
  display: grid;
  min-width: 80px;
  height: 52px;
  place-items: center;
  flex: 0 0 80px;
  overflow: visible;
  border: 2px solid rgb(0 251 56 / 36%);
  border-radius: 24px;
  color: var(--green);
  background: radial-gradient(50% 65% at 50% 100%, rgb(0 251 56 / 8%), transparent), var(--bg);
  cursor: pointer;
}

.provider-tab.active {
  border-color: var(--green);
  box-shadow: inset 0 -12px 20px rgb(0 251 56 / 12%);
}

.provider-tab:active {
  transform: scale(0.98);
}

.provider-tab:focus-visible {
  outline: 3px solid var(--title);
  outline-offset: 2px;
}

.provider-tab span {
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.provider-tab img {
  width: 54px;
  max-height: 34px;
  object-fit: contain;
}

.provider-tab small {
  position: absolute;
  z-index: 1;
  top: -9px;
  left: 50%;
  padding: 1px 4px;
  transform: translateX(-50%);
  border-radius: 8px;
  color: #ff9943;
  background: #102224;
  box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 0 24px 32px;
}

.result-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgb(0 251 56 / 24%);
  border-radius: 8px;
  padding: 0;
  color: var(--title);
  background: radial-gradient(50% 34% at 50% 100%, rgb(0 251 56 / 20%), transparent), var(--bg);
  box-shadow: 0 8px 8px rgb(0 0 0 / 10%);
  cursor: pointer;
  animation: result-card-enter 420ms ease-out both;
}

.result-card.medium {
  border-color: rgb(246 210 65 / 30%);
  background: radial-gradient(50% 34% at 50% 100%, rgb(246 210 65 / 16%), transparent), var(--bg);
}

.result-card.low {
  border-color: rgb(255 92 53 / 30%);
  background: radial-gradient(50% 34% at 50% 100%, rgb(255 92 53 / 14%), transparent), var(--bg);
}

.result-card:active {
  transform: scale(0.98);
}

.result-card:focus-visible {
  outline: 3px solid var(--title);
  outline-offset: 3px;
}

.result-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 7px;
}

.result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card::before {
  --orbit-angle: 0deg;
  position: absolute;
  z-index: 3;
  inset: -6px;
  border-radius: 10px;
  padding: 2px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(from var(--orbit-angle), transparent 0 72%, rgb(0 251 56 / 18%) 80%, #00fb38 88%, #d9ffe1 91%, #00fb38 94%, transparent 100%);
  filter: drop-shadow(0 0 4px rgb(0 251 56 / 85%));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.result-card::after {
  position: absolute;
  z-index: 4;
  bottom: -10px;
  left: -5px;
  width: 33px;
  height: 33px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #84ff9f 0 14%, rgb(132 255 159 / 72%) 30%, transparent 72%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 5px rgb(0 251 56 / 75%));
}

.result-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: translateY(-105%);
  background: linear-gradient(to bottom, transparent 0 55%, rgb(0 251 56 / 18%) 86%, rgb(0 251 56 / 48%) 100%);
  border-bottom: 1px solid rgb(0 251 56 / 88%);
}

.result-card.is-updating .result-image::after {
  animation: result-scan 1800ms ease-out;
}

.result-card.is-complete {
  border-color: var(--green);
  box-shadow: 0 8px 18px rgb(0 251 56 / 24%);
}

.result-card.is-complete::before {
  opacity: 1;
  animation: complete-orbit 7500ms linear infinite;
}

.result-card.is-complete::after {
  animation: complete-star 8000ms linear both;
}

.result-card.is-complete .result-image img {
  will-change: transform;
  animation: complete-pulse 8000ms linear both;
}

.result-card.medium .result-image img {
  opacity: 0.62;
}

.result-card.low .result-image img {
  opacity: 0.34;
}

.top-badge {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: -1px;
  padding: 3px 5px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 6px;
  color: var(--title);
  background: rgb(4 23 25 / 92%);
  font-size: 9px;
  font-weight: 700;
}

.result-footer {
  position: relative;
  min-height: 34px;
  padding: 20px 7px 7px;
}

.result-rate {
  --percent: 0;
  --percent-temp: calc(var(--percent) * 100);
  --percent-whole: max(var(--percent-temp) - 0.5, 0);
  --percent-decimal: max((var(--percent-temp) - var(--percent-whole)) * 100 - 0.5, 0);
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  min-width: 72px;
  padding: 1px 6px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  background: #0c130d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  counter-reset: percent-whole var(--percent-whole) percent-decimal var(--percent-decimal);
  transition: --percent 500ms ease;
}

.result-rate::before {
  content: counter(percent-whole) "." counter(percent-decimal, decimal-leading-zero) "%";
}

.result-card.medium .result-rate {
  border-color: var(--warning);
  color: var(--warning);
  background: #151006;
}

.result-card.low .result-rate {
  border-color: var(--danger);
  color: var(--danger);
  background: #090503;
}

.result-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%);
}

.result-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.05);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #80ff9c);
  box-shadow: 0 0 6px rgb(0 251 56 / 50%);
  transition: transform 500ms ease-in-out, background 240ms ease;
}

.result-card.is-resetting .result-rate,
.result-card.is-resetting .result-progress i {
  transition: none;
}

.result-card.medium .result-progress i {
  background: linear-gradient(90deg, #4b3825, #fbd100);
}

.result-card.low .result-progress i {
  background: linear-gradient(90deg, #4b2525, #fb3c00);
}

.empty-results {
  margin: 40px 24px;
  color: var(--green-soft);
  text-align: center;
}

.bottom-bar {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
}

.bottom-bar-inner {
  display: flex;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgb(4 23 25 / 97%);
}

.bottom-bar span {
  color: var(--title);
  font-size: 14px;
  line-height: 24px;
  opacity: 0.5;
}

.bottom-bar button,
.dialog-action {
  border: 0;
  border-radius: 0;
  padding: 4px 10px;
  color: var(--bg);
  background: var(--green);
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

.bottom-bar button:hover {
  background: #80ff9c;
}

.bottom-bar button:active,
.dialog-action:active {
  transform: translateY(1px);
}

.bottom-bar button:focus-visible,
.dialog-action:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--title);
  outline-offset: 3px;
}

.game-dialog {
  --dialog-rate-color: var(--green);
  width: min(448px, 100vw);
  max-height: calc(100dvh - 100px);
  margin: auto auto 0;
  overflow: visible;
  border: 0;
  border-radius: 16px 16px 0 0;
  padding: 126px 32px 48px;
  color: var(--title);
  background: var(--panel);
  text-align: center;
}

.game-dialog[open] {
  animation: dialog-enter 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.game-dialog[open]::backdrop {
  animation: dialog-backdrop-enter 300ms ease-out both;
}

.game-dialog.dialog-opening .dialog-cover {
  animation: dialog-cover-enter 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.game-dialog.medium {
  --dialog-rate-color: var(--warning);
}

.game-dialog.low {
  --dialog-rate-color: var(--danger);
}

.game-dialog::backdrop {
  background: rgb(0 8 9 / 42%);
  backdrop-filter: blur(5px);
}

.dialog-cover {
  position: absolute;
  isolation: isolate;
  top: -84px;
  left: 50%;
  width: 142px;
  transform: translateX(-50%);
}

.dialog-cover::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 450px;
  height: 450px;
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  background: repeating-conic-gradient(from 0deg, rgb(255 226 125 / 24%) 0deg 5deg, transparent 5deg 15deg);
  filter: drop-shadow(0 12px 24px rgb(246 210 65 / 16%));
  mask: radial-gradient(circle, transparent 0 22%, #000 35%, transparent 76%);
  transition: opacity 500ms ease-in-out;
}

.game-dialog.is-complete .dialog-cover::before {
  opacity: 0.48;
  animation: dialog-complete-rays 7500ms linear infinite;
}

.dialog-cover img {
  display: block;
  width: 142px;
  height: 142px;
  border: 1px solid rgb(0 251 56 / 32%);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 8px rgb(0 251 56 / 20%);
}

.dialog-cover strong {
  --percent: 0;
  --percent-temp: calc(var(--percent) * 100);
  --percent-whole: max(var(--percent-temp) - 0.5, 0);
  --percent-decimal: max((var(--percent-temp) - var(--percent-whole)) * 100 - 0.5, 0);
  position: absolute;
  bottom: -12px;
  left: 50%;
  min-width: 72px;
  padding: 1px 7px;
  transform: translateX(-50%);
  border: 1px solid var(--dialog-rate-color);
  border-radius: 12px;
  color: var(--dialog-rate-color);
  background: #0c130d;
  font-size: 13px;
  white-space: nowrap;
  counter-reset: percent-whole var(--percent-whole) percent-decimal var(--percent-decimal);
  transition: --percent 500ms ease, border-color 240ms ease, color 240ms ease;
}

.dialog-cover strong::before,
.dialog-stats b::before {
  content: counter(percent-whole) "." counter(percent-decimal, decimal-leading-zero) "%";
}

.game-dialog h3 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 20px;
  line-height: 24px;
}

.dialog-kicker {
  margin: 0 0 10px;
  color: var(--green-soft);
  font-size: 12px;
  line-height: 18px;
}

.dialog-kicker span {
  color: var(--green);
}

.result-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0 24px;
  color: var(--green-soft);
  font-size: 11px;
  opacity: 0.9;
}

.result-chart svg {
  grid-column: 1 / -1;
  width: 100%;
  height: 105px;
}

.result-chart polyline,
.result-chart line {
  fill: none;
  stroke-width: 1.4;
}

.chart-grid-line {
  stroke: rgb(246 210 65 / 22%);
  stroke-dasharray: 4 4;
}

.chart-rate-line {
  stroke: url("#chart-rate-gradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgb(0 251 56 / 24%));
}

#dialog-chart-dot {
  fill: var(--dialog-rate-color);
  stroke: var(--panel);
  stroke-width: 1.5;
  transition: cy 450ms linear, fill 240ms ease;
}

.result-chart span:first-of-type {
  text-align: left;
}

.result-chart span:last-of-type {
  text-align: right;
}

.dialog-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.dialog-stats > div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.dialog-stats i {
  flex: 1;
  height: 2px;
  background-image: radial-gradient(circle, var(--green) 1px, transparent 1.1px);
  background-size: 10px 2px;
}

.dialog-stats b {
  --percent: 0;
  --percent-temp: calc(var(--percent) * 100);
  --percent-whole: max(var(--percent-temp) - 0.5, 0);
  --percent-decimal: max((var(--percent-temp) - var(--percent-whole)) * 100 - 0.5, 0);
  font-weight: 600;
  counter-reset: percent-whole var(--percent-whole) percent-decimal var(--percent-decimal);
  transition: --percent 500ms ease;
}

.dialog-note {
  margin: -10px 0 16px;
  color: var(--green-soft);
  font-size: 10px;
  line-height: 16px;
}

.dialog-action {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--green);
  padding: 8px 16px;
  color: var(--green);
  background: rgb(0 251 56 / 8%);
  font-size: 18px;
}

.dialog-action::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  content: "";
  pointer-events: none;
  opacity: 0;
  transform: translateX(-60px);
  background: var(--green);
  filter: blur(22px);
}

.game-dialog.is-complete .dialog-action {
  animation: dialog-button-glow 3750ms linear infinite;
}

.game-dialog.is-complete .dialog-action::before {
  animation: dialog-button-sweep 3000ms linear infinite;
}

.dialog-action span,
.dialog-action img {
  position: relative;
  z-index: 1;
}

.dialog-action img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 2px solid #43685d;
  border-radius: 50%;
  color: #43685d;
  background: transparent;
  font-size: 25px;
  line-height: 28px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan-card {
  0% {
    opacity: 0;
    transform: translateY(-105%);
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(105%);
  }
}

@keyframes chevrons {
  0% {
    opacity: 0.35;
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes results-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-scan {
  0% {
    opacity: 0;
    transform: translateY(-105%);
  }
  18%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(105%);
  }
}

@keyframes complete-orbit {
  to {
    --orbit-angle: 360deg;
  }
}

@keyframes complete-star {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.2) rotate(20deg);
  }
  50%,
  80% {
    opacity: 1;
    transform: scale(1) rotate(-60deg);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
}

@keyframes complete-pulse {
  0%,
  30% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.19) rotate(5deg);
  }
  41% {
    transform: scale(1.14) rotate(5deg);
  }
  46% {
    transform: scale(1.195) rotate(5deg);
  }
  50%,
  80% {
    transform: scale(1.19) rotate(5deg);
  }
  86% {
    transform: scale(1);
  }
  91% {
    transform: scale(1.05);
  }
  96% {
    transform: scale(0.99);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-cover-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(52px) scale(0.72);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dialog-complete-rays {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes dialog-button-glow {
  0%,
  20%,
  100% {
    box-shadow: none;
  }
  50%,
  75% {
    box-shadow: 0 8px 18px rgb(0 251 56 / 34%);
  }
}

@keyframes dialog-button-sweep {
  0%,
  30% {
    opacity: 1;
    transform: translateX(-60px);
  }
  80% {
    opacity: 1;
    transform: translateX(390px);
  }
  81%,
  100% {
    opacity: 0;
    transform: translateX(390px);
  }
}

@keyframes dialog-backdrop-enter {
  from {
    background: rgb(0 8 9 / 0%);
    backdrop-filter: blur(0);
  }
  to {
    background: rgb(0 8 9 / 42%);
    backdrop-filter: blur(5px);
  }
}

@media (min-width: 449px) {
  .app-shell {
    box-shadow: 0 0 80px rgb(0 0 0 / 16%);
  }
}

@media (max-width: 390px) {
  .ai-lockup h1 {
    font-size: 20px;
  }

  .scanner-title {
    font-size: 16px;
  }

  .detail-row {
    font-size: 13px;
  }
}

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