:root {
  --light-blue-black: #053d58;
  --gradient-blend: #021e2c;
  --dashboard-surface-radius: 34px;
  --panel: rgba(255, 255, 255, 0.14);
  --action: #288691;
  --metric-earnings-color: #11d483;
  --noise-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 12 -5'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: var(--gradient-blend);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { overflow-x: clip; overflow-y: auto; }
html, body { overscroll-behavior: none; }
html[data-ready="false"] .panel { visibility: hidden; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 20px;
  background: transparent;
}

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 20% 25%, rgba(0, 0, 0, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 95% 75% at 80% 80%, rgba(5, 61, 88, 0.7) 0%, transparent 70%),
    linear-gradient(to bottom right, #000, var(--light-blue-black));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.backdrop::after {
  position: absolute;
  inset: 0;
  background-image: var(--noise-image);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

body > *:not(.backdrop) { position: relative; z-index: 1; }
.page-content { display: flex; align-items: center; justify-content: center; flex: 1; width: 100%; min-width: 0; pointer-events: none; }
body > .site-footer {
  position: fixed;
  z-index: 0;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: #9aa0a6;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.site-footer a { color: inherit; white-space: nowrap; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.panel {
  pointer-events: auto;
  width: min(100%, 440px);
  container-type: inline-size;
  padding: 16px;
  text-align: start;
}

.dashboard-surface {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dashboard-surface-radius);
  background: var(--panel);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.14);
}
.panel-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-header:has(.edit-code:not([hidden])) { padding-right: 48px; min-height: 36px; }
.panel-header:has(.edit-code-hover:hover, .edit-code:focus-visible) { padding-right: max(88px, calc(56px + var(--edit-label-width, 32px))); }
.logo-link { display: block; width: min(100%, 240px); min-width: 0; }
.logo { display: block; width: 100%; height: auto; margin: 0; }
.edit-code-hover {
  position: absolute;
  top: -25px;
  right: -25px;
  padding: 25px;
  display: flex;
}
.edit-code-hover:has(.edit-code[hidden]) { display: none; }
.edit-code {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  overflow: hidden;
  transition: width 200ms ease, background 200ms ease;
}
.edit-code-hover:hover .edit-code { background: rgba(255, 255, 255, 0.2); }
.edit-code-hover:hover .edit-code, .edit-code:focus-visible { width: max(76px, calc(44px + var(--edit-label-width, 32px))); }
.edit-code-label { max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 600; transition: max-width 200ms ease, margin-left 200ms ease, opacity 150ms ease; }
.edit-code-hover:hover .edit-code-label, .edit-code:focus-visible .edit-code-label { max-width: var(--edit-label-width, 32px); margin-left: 6px; opacity: 1; }
.edit-code:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.edit-code svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .edit-code, .edit-code-label { transition: none; } }
p { font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
#heading { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; text-wrap: balance; }
#description { margin-bottom: 3px; font-size: 15px; }
html:is([data-view="redirect"], [data-view="qr"]) #description { white-space: pre-line; }
html:is([data-view="redirect"], [data-view="qr"]) #description:has(.offer-point) { white-space: normal; }
.offer-point { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.offer-point > span:first-child { white-space: pre; }
.offer-point > span:last-child { white-space: normal; }
#heading, #description { padding-inline: 8px; }
#heading, #description { text-align: start; }
html[data-view="android"] :is(#heading, #description) { text-align: center; }
.panel:has(#code-form[hidden]) #description { margin-bottom: 25px; }
html:is([data-view="redirect"], [data-view="qr"]) .main-copy {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
html:is([data-view="redirect"], [data-view="qr"]) .main-copy :is(#heading, #description) {
  text-align: start;
}
html:is([data-view="redirect"], [data-view="qr"]) #heading { font-size: 22px; text-wrap: wrap; }
html:is([data-view="redirect"], [data-view="qr"]) #description { font-size: 18px; }
html[data-view="qr"] #heading { font-size: 28px; }
html[data-view="qr"] #description { font-size: 20px; }
.offer-loading {
  width: 270px;
  max-width: 100%;
  padding-inline: 8px;
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 1.6;
}
.offer-loading-row { display: flex; align-items: center; gap: 6px; height: 28.8px; }
.offer-loading-bar {
  position: relative;
  width: 100%;
  height: 17px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.offer-loading-row:first-child .offer-loading-bar { width: 55%; }
.offer-loading-row:last-child .offer-loading-bar { width: 85%; }
html[data-view="qr"] .offer-loading { font-size: 20px; }
html[data-view="qr"] .offer-loading-row { height: 32px; }
html[data-view="qr"] .offer-loading-bar { height: 19px; }
.offer-loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  animation: qr-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .offer-loading-bar::after { animation: none; } }
#qr-heading { margin: 0 0 15px; padding-inline: 8px; font-size: 32px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
#qr-description { margin-bottom: 36px; padding-inline: 8px; font-size: 15px; }
#qr-heading, #qr-description { text-align: center; }
input, button { font: inherit; }
input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 18, 28, .38);
  text-transform: uppercase;
}
input::placeholder { color: #cbd5e1; text-transform: none; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 18px;
  white-space: normal;
  text-align: center;
  --bento-color: var(--action);
  background-color: var(--bento-color);
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--bento-color) 88%, #000 12%), var(--bento-color));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 8px 16px rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease, background 0.15s ease;
}
.action:hover { filter: brightness(1.15); }
.action:active { transform: translateY(1px); }
.action:disabled { cursor: wait; filter: saturate(0.5); opacity: 0.65; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }
input:focus {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 13px 15px;
  outline: none;
}
.error {
  margin: -18px 0 0;
  padding: 30px 14px 12px;
  border: 1px solid rgba(255, 155, 155, 0.28);
  border-radius: 0 0 18px 18px;
  color: #fff;
  background: rgba(113, 36, 44, 0.3);
  font-size: 14px;
  line-height: 1.6;
  -webkit-mask:
    radial-gradient(circle at top right, transparent 17.5px, #000 18px) top left / 18px 18px no-repeat,
    radial-gradient(circle at top left, transparent 17.5px, #000 18px) top right / 18px 18px no-repeat,
    linear-gradient(#000, #000) bottom / 100% calc(100% - 18px) no-repeat;
  mask:
    radial-gradient(circle at top right, transparent 17.5px, #000 18px) top left / 18px 18px no-repeat,
    radial-gradient(circle at top left, transparent 17.5px, #000 18px) top right / 18px 18px no-repeat,
    linear-gradient(#000, #000) bottom / 100% calc(100% - 18px) no-repeat;
}
.error-heading { display: block; font-size: 16px; font-weight: 700; text-wrap: balance; text-align: center; }
.error-message { display: block; margin-top: 0; text-wrap: balance; text-align: center; }
.qr-card {
  --qr-padding: 12px;
  --qr-size: min(256px, calc(100cqw - 2 * var(--qr-padding) - 2px));
  --qr-radius: calc(var(--qr-size) * 140 / 1200);
  width: calc(var(--qr-size) + 2 * var(--qr-padding) + 2px);
  margin: 0 auto 36px;
  padding: var(--qr-padding) var(--qr-padding) 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--qr-radius) + var(--qr-padding));
  background: #021e2c;
}
#qr { position: relative; width: 100%; aspect-ratio: 1; border-radius: 11.666667%; overflow: hidden; background: #fff; }
.qr-loading { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.qr-loading::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgba(2, 30, 44, 0.16) 50%, transparent 80%);
  animation: qr-shimmer 1.4s ease-in-out infinite;
}
@keyframes qr-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) { .qr-loading::after { animation: none; } }
.qr-caption { margin: 0; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 42px; font-weight: 700; text-align: center; max-width: 100%; white-space: nowrap; }
.qr-install-caption { margin: 0; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; text-align: center; }
.qr-caption, .qr-install-caption {
  width: fit-content;
  margin-inline: auto;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
#qr canvas, #qr svg { display: block; max-width: 100%; height: auto; }
.qr-captions { padding-block: 12px; }
.qr-caption { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); }
.qr-install-caption { margin-top: 8px; padding-inline: 15px; max-width: 100%; white-space: nowrap; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px 12px; }
.store-divider { display: flex; align-items: center; justify-content: center; gap: 12px; flex-basis: 100%; margin: 0; font-size: 15px; text-align: center; }
.store-divider::before, .store-divider::after { content: ""; width: 72px; height: 1.5px; border-radius: 999px; background: #fff; }
.store-divider-text { display: block; font-size: 17px; font-weight: 600; line-height: 1; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.store-badge { position: relative; display: block; flex: 119.66407; min-width: 0; aspect-ratio: 119.66407 / 40; transition: opacity 150ms ease; }
.store-badge:hover { opacity: 0.7; }
.store-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
#app-store-link, .store-badge-google { border-radius: 18px; overflow: hidden; }
#app-store-link::after, .store-badge-google::after { position: absolute; inset: 0; content: ""; border-radius: inherit; box-shadow: inset 0 0 0 1px #a6a6a6; pointer-events: none; }
.store-badge-google { flex: 134.873713; aspect-ratio: 238.96 / 70.87; }
#status:empty, .error:empty { display: none; }
#status { font-size: 15px; }
form .action { margin-top: 12px; }
[hidden] { display: none !important; }
