/* Ads reward — toxic glass */
:root {
  --bg: #050705;
  --fg: #dde4d8;
  --muted: #9aa895;
  --primary: #a8ff00;
  --primary-dim: #43d000;
  --danger: #ff5c5c;
  --ok: #4ade80;
  --warn: #fbbf24;
  --card: rgba(8, 14, 8, 0.78);
  --border: rgba(168, 255, 0, 0.18);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168,255,0,.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(67,208,0,.08), transparent 50%),
    linear-gradient(180deg, #050705, #0a0e09 50%, #050705);
}
#bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
}

.brand-bar {
  position: relative; z-index: 2;
  padding: 10px 14px 4px;
  flex-shrink: 0;
}
.brand-inner {
  max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(5,7,5,.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #050705; font-weight: 800; font-size: 18px;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
}
.brand-logo.has-img {
  background: transparent;
  padding: 0;
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--muted); margin-top: 1px; }

.wrap {
  position: relative; z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px 16px;
  overflow: hidden;
}
.card {
  width: 100%; max-width: 440px;
  max-height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 32px rgba(168,255,0,.05);
}

.badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: rgba(168,255,0,.1);
  border: 1px solid rgba(168,255,0,.25);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

.steps {
  list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px;
}
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(168,255,0,.04);
  border: 1px solid rgba(168,255,0,.1);
}
.steps .n {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: rgba(168,255,0,.15); color: var(--primary);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.steps strong { display: block; font-size: 13px; font-weight: 700; }
.steps em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

.warn {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,92,92,.08);
  border: 1px solid rgba(255,92,92,.28);
}
.warn-title { font-size: 12px; font-weight: 800; color: #ff8a8a; margin-bottom: 4px; }
.warn p { font-size: 12px; color: #e8b4b4; line-height: 1.45; }
.warn strong { color: #ffd0d0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .12s, opacity .12s, box-shadow .12s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  color: #050705;
  background: linear-gradient(135deg, #a8ff00, #c9ff3d);
  box-shadow: 0 8px 28px rgba(168,255,0,.28);
}
.btn-ok {
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 8px 24px rgba(34,197,94,.28);
  text-decoration: none;
}
.btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-danger-outline {
  margin-top: 12px;
  background: transparent;
  color: #ff8a8a;
  border: 1px solid rgba(255,92,92,.35);
}

.status {
  margin-top: 14px; font-size: .86rem; color: var(--muted);
  min-height: 1.3em; text-align: center;
}
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }

.foot {
  margin-top: 16px; font-size: .72rem; color: var(--muted);
  text-align: center; line-height: 1.4;
}

.coins {
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 6px 0 4px; text-align: center;
}
.confetti {
  font-size: 2.2rem; text-align: center; margin-bottom: 6px;
  animation: pop .55s ease;
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* Checking spinner */
.check-box {
  text-align: center; padding: 12px 0 4px;
}
.spinner {
  width: 36px; height: 36px; margin: 0 auto 14px;
  border: 3px solid rgba(168,255,0,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.anomaly-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255,92,92,.12);
  border: 1px solid rgba(255,92,92,.3);
  display: grid; place-items: center;
  font-size: 26px;
}
.anomaly-title { color: #ff8a8a; text-align: center; }
