/* ZAEVOR — negru adânc + auriu, premium și rapid pe telefon. */
:root {
  --bg: #060607;
  --panel: rgba(18, 16, 13, 0.72);
  --line: rgba(212, 175, 95, 0.18);
  --line-2: rgba(212, 175, 95, 0.38);
  --text: #f6f1e6;
  --muted: #a39b8b;
  --gold: #d4af5f;
  --gold-hi: #f5e2b0;
  --gold-lo: #9a7634;
  --ok: #7be0a6;
  --bad: #ff8a7a;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Universul din fundal */
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.glow { position: fixed; inset: -20% -20% auto; height: 90vh; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, rgba(212,175,95,0.22), rgba(120,90,40,0.06) 55%, transparent 75%);
  animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(1.08); } }

header.top, main, footer.foot { position: relative; z-index: 1; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 18px) 22px 0; max-width: 560px; margin: 0 auto; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: 0.32em; font-size: 15px; background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang { min-width: 48px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,10,10,0.6); color: var(--gold-hi); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; }

main { max-width: 560px; margin: 0 auto; padding: 0 22px 40px; }

/* Hero */
.hero { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; justify-content: center; padding: 28px 0 10px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; color: var(--gold); margin: 0 0 18px; }
.eyebrow.center { text-align: center; margin-top: 26px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8.6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.shine { background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 30%, #fff8e6 45%, var(--gold) 60%, var(--gold-lo) 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -130% 0; } }
.sub { font-size: 16px; line-height: 1.6; color: #d7cfbf; margin: 20px 0 0; max-width: 32em; }
.invited { margin: 18px 0 0; display: inline-flex; align-self: flex-start; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(212,175,95,0.1); color: var(--gold-hi); font-weight: 600; font-size: 14px; }

/* Formular */
.join { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.handle-box { display: flex; align-items: center; gap: 4px; min-height: 66px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(12,11,9,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 0 rgba(212,175,95,0); transition: box-shadow .25s, border-color .25s; }
.handle-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,95,0.14), 0 20px 50px rgba(212,175,95,0.12); }
.at { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--gold); }
#handle { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; padding: 0; }
#handle::placeholder { color: #5f584b; }
.status { min-height: 22px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.status.ok { color: var(--ok); } .status.ok::before { content: '✓ '; font-weight: 800; }
.status.bad { color: var(--bad); } .status.bad::before { content: '✕ '; font-weight: 800; }
.status.wait { color: var(--muted); }
.more { display: flex; flex-direction: column; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: max-height .5s ease, opacity .35s ease, visibility 0s linear .5s; }
.more.open { max-height: 560px; opacity: 1; visibility: visible; transition: max-height .5s ease, opacity .35s ease, visibility 0s; }
.field-label { font-size: 13px; font-weight: 600; color: #e7dfcf; margin-top: 6px; }
.email, .copy-row input { width: 100%; min-height: 54px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(12,11,9,0.8); padding: 0 16px; font-size: 16px; outline: none; }
.email:focus { border-color: var(--gold); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #ddd4c3; padding: 6px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--gold); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta { margin-top: 8px; min-height: 62px; border: none; border-radius: 20px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 17px; color: #120e05;
  background: linear-gradient(100deg, #b98d3e, var(--gold-hi) 45%, var(--gold) 70%, #b98d3e); background-size: 200% 100%; animation: shine 6s linear infinite;
  box-shadow: 0 14px 40px rgba(212,175,95,0.28), inset 0 1px 0 rgba(255,255,255,0.4); transition: transform .12s ease; }
.cta:active { transform: scale(0.98); }
.cta:disabled { opacity: 0.7; }
.form-error { margin: 0; min-height: 20px; color: var(--bad); font-size: 14px; }

/* Card */
.card-stage { perspective: 1000px; display: flex; justify-content: center; margin: 22px 0 18px; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; position: relative; width: min(100%, 360px); aspect-ratio: 1 / 1.05; border-radius: 28px; padding: 30px 26px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; outline: none;
  background: linear-gradient(140deg, #19150e, #0c0b09 50%, #1c170f); border: 1px solid rgba(245,226,176,0.55);
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 60px rgba(212,175,95,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .15s ease-out; transform-style: preserve-3d; }
.card-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(60% 50% at var(--mx) var(--my), rgba(255,240,200,0.22), transparent 60%),
              linear-gradient(115deg, transparent 30%, rgba(255,220,150,0.10) 45%, rgba(180,140,255,0.08) 52%, transparent 65%); }
.card.reveal { animation: reveal 1.1s cubic-bezier(.2,.9,.2,1) both; }
@keyframes reveal { 0% { transform: rotateY(-180deg) scale(0.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotateY(0) scale(1); } }
.card-label { margin: 0; font-size: 11px; letter-spacing: 0.32em; color: #b89a5c; font-weight: 700; }
.card-handle { margin: 6px 0 18px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 7vw, 34px); word-break: break-all;
  background: linear-gradient(180deg, #fff1c9, #c9a24f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-rank { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 18vw, 84px); line-height: 1;
  background: linear-gradient(180deg, #fff1c9, #c9a24f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-title { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #e8d6a8; font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Panouri */
.panel { margin-top: 16px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.label { margin: 0; font-size: 11px; letter-spacing: 0.24em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.big-rank { margin: 8px 0 4px; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--gold-hi); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 4px 0 12px; }
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 8px; --p: 4%; }
.bar > div { height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); box-shadow: 0 0 18px rgba(212,175,95,0.6); transition: width 1s cubic-bezier(.2,.9,.2,1); }
.next { margin: 10px 0 0; font-size: 14px; color: #e7dfcf; font-weight: 600; }
.btn { min-height: 50px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(14,13,11,0.85); color: var(--gold-hi); font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 16px; }
.btn.gold { border: none; color: #120e05; background: linear-gradient(100deg, #b98d3e, var(--gold-hi) 50%, var(--gold)); box-shadow: 0 10px 30px rgba(212,175,95,0.22); }
.btn.small { min-height: 46px; font-size: 14px; }
.btn.wide { width: 100%; margin-top: 4px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.copy-row { display: flex; gap: 8px; margin: 8px 0 10px; }
.copy-row input { min-height: 48px; font-size: 14px; color: #e9e0cd; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.streak { font-weight: 700; color: #ffb36b; font-size: 14px; }
.tiers { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tiers li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid rgba(212,175,95,0.08); }
.tiers li:last-child { border-bottom: none; }
.tiers b { display: block; font-size: 15px; }
.tiers small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tier-n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.tiers li.done .dot { background: var(--gold); border-color: var(--gold-hi); box-shadow: 0 0 12px rgba(212,175,95,0.7); }
.tiers li.done b { color: var(--gold-hi); }
ol.top { list-style: none; margin: 8px 0 0; padding: 0; }
ol.top li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid rgba(212,175,95,0.08); font-size: 14px; }
ol.top li.me { color: var(--gold-hi); }
ol.top .pos { font-family: var(--display); font-weight: 700; color: var(--gold); }
ol.top .h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.top em { color: var(--muted); font-style: normal; font-size: 12px; }
ol.top .tt { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
ol.top .sc { font-weight: 700; color: var(--gold-hi); min-width: 28px; text-align: right; }

/* Subsol */
footer.foot { max-width: 560px; margin: 0 auto; padding: 20px 22px calc(env(safe-area-inset-bottom) + 28px); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: #7d7567; }
footer.foot a { color: #b8ad97; }
.linklike { background: none; border: none; padding: 0; color: #b8ad97; text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.member-only { display: none; }
body.is-member .member-only { display: inline; }

.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 18px); transform: translate(-50%, -24px); opacity: 0; z-index: 10; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: #1b160c; border: 1px solid var(--gold); color: var(--gold-hi); font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: relative; z-index: 2; padding: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
