:root {
  --bg: #070908;
  --card: #121614;
  --ink: #f5f7f6;
  --muted: #8e9892;
  --dim: #6c756f;
  --line: rgba(45, 255, 176, 0.28);
  --mint: #2dffb0;
  --mint-deep: #14f0a0;
  --btn-ink: #042117;
  --danger: #ff8d9a;
  --shadow: 0 0 0 1px rgba(45, 255, 176, 0.05), 0 0 28px rgba(45, 255, 176, 0.1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -8%, rgba(45, 255, 176, 0.18), transparent 46%),
    radial-gradient(ellipse at 80% 100%, rgba(45, 255, 176, 0.06), transparent 42%),
    var(--bg);
}

.app {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 18px 110px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1b221e;
  box-shadow: inset 0 0 0 2px #2a3330;
}

.steps li.is-done,
.steps li.is-current {
  color: var(--ink);
}

.steps li.is-done .pip,
.steps li.is-current .pip {
  background: var(--mint);
  box-shadow: 0 0 12px rgba(45, 255, 176, 0.85);
}

.steps li.is-current .pip {
  outline: 4px solid rgba(45, 255, 176, 0.16);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lede {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.section-label {
  margin: 18px 4px 10px;
  color: #8b938e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notice {
  padding: 14px 14px 12px;
  border: 1px solid rgba(45, 255, 176, 0.38);
  border-radius: 16px;
  background: rgba(18, 28, 24, 0.72);
  box-shadow: inset 0 0 24px rgba(45, 255, 176, 0.04);
}

.notice p {
  margin: 0;
  color: #d5ddd8;
  font-size: 14px;
  line-height: 1.45;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px !important;
  color: #e9f7f1 !important;
  font-weight: 500;
}

.check svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--mint);
}

.card {
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    var(--card);
  box-shadow: var(--shadow);
}

section[data-screen="enter"] .card {
  margin-top: 0;
  padding: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0c100e;
  color: var(--ink);
  font: 500 16px/1 Outfit, "Segoe UI", sans-serif;
  outline: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #66706b;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: rgba(45, 255, 176, 0.7);
  box-shadow: 0 0 0 4px rgba(45, 255, 176, 0.12);
}

.form-fine {
  margin-top: 10px;
  text-align: left;
}

.error {
  margin: 8px 2px 0;
  color: var(--danger);
  font-size: 13px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #63ffc8 0%, #1dffb0 100%);
  color: var(--btn-ink);
  font: 800 15px/1 Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(29, 255, 176, 0.22);
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:focus-visible,
.text-btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.4) brightness(0.7);
  box-shadow: none;
}

.btn-wrap {
  height: auto;
  min-height: 54px;
  padding: 14px 12px;
  line-height: 1.25;
  text-align: center;
}

.btn-hero {
  min-height: 76px;
  margin-top: 22px;
  padding: 22px 16px;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn.is-prompted {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(45, 255, 176, 0.16), 0 8px 24px rgba(29, 255, 176, 0.22);
}

.card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--mint);
  background: #10241c;
  box-shadow: inset 0 0 0 1px rgba(45, 255, 176, 0.28), 0 0 16px rgba(45, 255, 176, 0.16);
}

.mark svg {
  width: 22px;
  height: 22px;
}

.reward h1 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  margin: 0;
  text-align: right;
}

.status strong {
  display: block;
  color: var(--mint);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(45, 255, 176, 0.35);
}

.status span {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #a7b0ab;
  font-size: 13px;
}

.meta span:last-child {
  color: var(--ink);
  font-weight: 700;
}

.bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1a221e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14f0a0, #8dffd6);
  box-shadow: 0 0 14px rgba(45, 255, 176, 0.85);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar > span[data-fill="pending"].is-on {
  width: 18%;
}

.bar > span[data-fill="ready"].is-on {
  width: 72%;
}

.bar > span[data-fill="done"].is-on {
  width: 100%;
}

.fine {
  margin: 10px 2px 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.text-btn {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px/1.3 Outfit, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.text-btn.inline {
  margin-top: 12px;
}

.confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--mint-deep);
}

.done-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  margin: 16px 0 0;
  border-radius: 14px;
  background: rgba(45, 255, 176, 0.12);
  color: var(--mint);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(45, 255, 176, 0.35);
}

.reward.claimed {
  box-shadow: 0 0 0 1px rgba(45, 255, 176, 0.18), 0 0 36px rgba(45, 255, 176, 0.16);
}

.noscript {
  width: min(440px, calc(100% - 36px));
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
}

.wallet {
  margin-bottom: 8px;
}

.wallet-card {
  text-align: center;
  padding: 22px 16px 18px;
}

.wallet-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-amount {
  margin: 6px 0 0;
  color: var(--mint);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 0 28px rgba(45, 255, 176, 0.35);
}

.wallet-amount.is-pop {
  animation: amount-pop 0.45s ease;
}

.wallet-tag {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.wallet-spins {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.double-wrap {
  margin-top: 18px;
}

.double-wrap .btn-ghost {
  margin-top: 0;
}

.wallet-card .btn-hero {
  margin-top: 18px;
}

.double-wrap:not([hidden]) + .btn-hero {
  margin-top: 12px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(45, 255, 176, 0.38);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(45, 255, 176, 0.08);
  filter: none;
}

@keyframes amount-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.wheel-card {
  text-align: center;
}

.wheel-stage {
  position: relative;
  width: min(260px, 72vw);
  height: min(260px, 72vw);
  margin: 18px auto 0;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--mint);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(45, 255, 176, 0.35));
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from -22.5deg,
    #1dffb0 0 45deg,
    #141a17 45deg 90deg,
    #63ffc8 90deg 135deg,
    #141a17 135deg 180deg,
    #1dffb0 180deg 225deg,
    #141a17 225deg 270deg,
    #63ffc8 270deg 315deg,
    #141a17 315deg 360deg
  );
  box-shadow:
    0 0 0 8px #0c100e,
    0 0 0 10px rgba(45, 255, 176, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel.is-spinning {
  filter: blur(0.6px);
}

.wedge {
  position: absolute;
  inset: 16px;
  display: flex;
  justify-content: center;
  transform: rotate(calc(var(--i) * 45deg));
  pointer-events: none;
}

.wedge span {
  color: #042117;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wedge:nth-child(even) span {
  color: #d7e4dd;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #63ffc8, #14f0a0 55%, #042117);
  box-shadow: 0 0 0 6px #0c100e, 0 0 18px rgba(45, 255, 176, 0.45);
  transform: translate(-50%, -50%);
}

.wheel-result {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--mint);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.method-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 80px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    #f4f7f5;
  box-shadow: var(--shadow);
}

.method img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.method-cards img {
  height: auto;
  width: 92%;
  max-height: 36px;
}

.method-cashapp img,
.method-paypal img {
  height: 58px;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(400px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 255, 176, 0.32);
  border-radius: 16px;
  background: rgba(12, 18, 15, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(45, 255, 176, 0.08);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  animation: toast-in 0.35s ease forwards, toast-out 0.35s ease 3.6s forwards;
}

.toast img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f7f5;
  padding: 5px;
}

.toast img[src*="cards"] {
  flex: 0 0 52px;
  width: 52px;
}

.toast p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.toast strong {
  color: var(--ink);
  font-weight: 700;
}

.toast span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.jobs {
  margin-top: 8px;
}

.jobs-lede {
  margin: -2px 4px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.job-list {
  display: grid;
  gap: 10px;
}

.job {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    var(--card);
  box-shadow: var(--shadow);
}

.job-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.job.is-locked .job-row {
  filter: grayscale(1) brightness(0.72);
  opacity: 0.72;
}

.job-unlock {
  margin-top: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 22px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--card);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.modal-card p {
  margin: 10px 0 0;
  color: #d7e4dd;
  font-size: 15px;
  line-height: 1.45;
}

.job-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f7f5;
}

.job-icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.job-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.job-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.job-copy span {
  color: var(--muted);
  font-size: 12px;
}

.job-pay {
  color: var(--mint);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: nowrap;
}

.job-pay span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html.is-inapp .app,
html.is-inapp .toasts,
html.is-inapp .modal {
  visibility: hidden;
  pointer-events: none;
}

.browser-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-content: end;
  padding: 0 20px 36px;
  background:
    radial-gradient(ellipse at 88% 6%, rgba(45, 255, 176, 0.18), transparent 32%),
    var(--bg);
}

html.is-inapp .browser-gate {
  display: grid;
}

.gate-arrow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 180px;
  height: 48px;
  margin-left: -90px;
  color: var(--mint);
  transform: rotate(-35deg);
  transform-origin: center;
  pointer-events: none;
}

.gate-arrow svg {
  display: block;
  width: 180px;
  height: 48px;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin: 0 auto;
}

.gate-kicker {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-card h1 {
  margin: 0 0 18px;
  font-size: 30px;
}

.gate-steps {
  margin: 0;
  padding: 0 0 0 22px;
  color: #e9f7f1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.gate-steps li + li {
  margin-top: 12px;
}

.gate-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1b221e;
  vertical-align: middle;
}

.gate-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.gate-or {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.gate-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 36px;
  margin: 18px auto 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: #3a403d;
  color: #b7beb9;
  font: 600 13px/1 Outfit, "Segoe UI", sans-serif;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .bar > span {
    transition: none;
  }

  .wallet-amount.is-pop {
    animation: none;
  }

  .toast {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .gate-arrow {
    transform: rotate(-35deg);
  }
}
