:root {
  color-scheme: dark;
  --bg: #11100d;
  --surface: #1c1914;
  --ink: #f5f0e6;
  --muted: #b2a998;
  --gold: #d8b66d;
  --gold-light: #e6cc93;
  --red: #e98178;
  --border: #42392b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 16px;
}
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d8b66d06 1px, transparent 1px),
    linear-gradient(90deg, #d8b66d06 1px, transparent 1px);
  background-size: 44px 44px;
}
.pt {
  position: absolute;
  border-radius: 50%;
  background: rgba(216, 182, 109, .55);
  filter: blur(1.4px);
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .85; }
  100% { transform: translateY(-560px); opacity: 0; }
}
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  padding: 34px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 22px 60px #0006;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid #5c4b2e;
  border-radius: 999px;
  background: #282217;
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: indicator-pulse 2.2s ease-in-out infinite; }
@keyframes indicator-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.chip {
  position: absolute;
  top: -16px;
  right: 18px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--gold);
  color: #241b0b;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.5px;
}
h1 { margin: 20px 0 6px; font-size: 25px; font-weight: 750; letter-spacing: .2px; }
h1 .grad { color: var(--gold-light); }
p.lead { margin: 0 0 4px; color: #d4ccbe; font-size: 14.5px; line-height: 1.55; }
.legal { display: flex; gap: 22px; justify-content: center; margin: 16px 0 22px; }
.legal a { color: #bcb09a; font-size: 12.5px; text-decoration: none; border-bottom: 1px dashed #75664d; }
.legal a:hover { color: var(--gold-light); border-color: var(--gold); }
.btn {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 14px 8px;
  border: 0;
  border-radius: 13px;
  font: 700 15.5px "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
:is(.btn, .legal a, .direct) { -webkit-tap-highlight-color: transparent; }
:is(.btn, .legal a, .direct):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #241b0b; }
.btn-primary .arr { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:active { background: #c5a25c; }
.btn-primary:disabled { cursor: wait; opacity: .75; }
.btn-ghost { margin-top: 10px; border: 1.5px solid #625644; background: transparent; color: #e6dfd3; }
.btn-ghost:hover { border-color: #a88f61; background: #272117; }
#btnMinor { padding: 14px 0; border-color: rgba(255, 255, 255, .22); background: transparent; color: #e6dfd3; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .16s ease, box-shadow .2s ease, background .2s ease; -webkit-tap-highlight-color: rgba(211, 75, 68, .16); }
#btnMinor:hover { border-color: rgba(233, 129, 120, .55); color: var(--red); background: rgba(233, 129, 120, .06); }
#btnMinor:active { transform: scale(.975); }
#btnMinor:focus-visible { outline: 3px solid rgba(216, 182, 109, .65); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #42392b; }
.direct { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0; color: #b7ad9c; font-size: 13px; text-decoration: none; border-bottom: 1px dashed #504534; }
.direct:hover { color: var(--gold-light); }
.direct svg { width: 13px; height: 13px; flex: 0 0 auto; }
.trust { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.trust span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #3c3428; border-radius: 999px; background: #242017; color: var(--muted); font-size: 11.5px; }
.trust svg { width: 12px; height: 12px; }
footer { margin-top: 12px; color: #b2a591; font-size: 11.5px; line-height: 1.5; text-align: center; }
.overlay { position: fixed; inset: 0; z-index: 10; display: none; padding: 20px; background: rgba(11, 9, 6, .38); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.overlay .panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow-y: auto; padding: 30px 26px; border: 1px solid rgba(216, 182, 109, .2); border-radius: 20px; background: rgba(28, 25, 20, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: center; }
.ov-title { color: var(--ink); font-size: 19px; font-weight: 700; }
.ov-sub { max-width: 300px; margin: 8px auto 0; color: #d0c6b5; font-size: 13.5px; line-height: 1.55; }
.ov-actions { margin-top: 18px; }
.okmark, .minmark { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; }
.okmark { background: var(--gold); color: #241b0b; }
.minmark { border: 1px solid rgba(233, 129, 120, .4); background: rgba(211, 75, 68, .12); color: var(--red); animation: lock-arrive .6s cubic-bezier(.22, 1, .36, 1) both; }
.okmark svg, .minmark svg { width: 25px; height: 25px; }
.minmark .lock-shackle { animation: lock-close .75s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes lock-arrive { from { opacity: 0; transform: translateY(5px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lock-close { from { transform: translateY(-3px); } to { transform: translateY(0); } }
.spinner { width: 28px; height: 28px; margin: 20px auto 0; border: 3px solid #50432b; border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
::selection { background: #735c2f; color: #fff5df; }
@media (max-width: 380px) { .card { padding: 28px 22px 22px; } h1 { font-size: 22px; } .legal { gap: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
