/* ZAEVOR GAMES — portalul de jocuri: negru-violet adânc, accente aurii, carduri luminoase. Doar temă întunecată. */
:root {
  --bg: #07060d;
  --bg2: #0f0b1c;
  --card: rgba(22, 16, 40, 0.78);
  --card-hi: rgba(34, 24, 62, 0.9);
  --line: rgba(160, 120, 255, 0.18);
  --line-2: rgba(160, 120, 255, 0.42);
  --text: #f4f0ff;
  --muted: #a99fc4;
  --violet: #7c3aed;
  --violet-hi: #a78bfa;
  --gold: #e3b85c;
  --gold-hi: #f8e2a8;
  --gold-lo: #a0772f;
  --ok: #7be0a6;
  --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; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--gold-hi); text-decoration: none; }
button { font: inherit; color: inherit; }
: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); }
.center { text-align: center; justify-content: center; }

#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aura { position: fixed; inset: -10% -30% auto; height: 80vh; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 45% at 50% 35%, rgba(124, 58, 237, 0.32), rgba(80, 30, 160, 0.08) 60%, transparent 78%); }

/* Bara de sus */
.bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.95), rgba(7, 6, 13, 0.7)); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand img { filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.55)); flex: none; }
.wm { display: flex; flex-direction: column; min-width: 0; }
.wm b { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.wm small { color: var(--muted); font-size: 12px; }
.bar-r { display: flex; align-items: center; gap: 10px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer; min-height: 40px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 30%, #4c2a99, #1c1238); box-shadow: 0 0 0 2px var(--violet-hi), 0 0 18px rgba(167, 139, 250, 0.5); }

main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.view { display: flex; flex-direction: column; gap: 16px; }
.title { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; margin: 0; line-height: 1.02; text-wrap: balance; }
.gold { background: linear-gradient(180deg, #fff3cf, var(--gold) 50%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-h { padding-top: 6px; }
.page-h .title { font-size: clamp(30px, 8vw, 42px); }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.sec-h h2 { font-family: var(--display); font-size: 18px; margin: 0; letter-spacing: 0.02em; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 22px rgba(109, 40, 217, 0.45), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Erou: jocul principal */
.hero { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); min-height: 380px; display: flex; align-items: flex-end;
  background: radial-gradient(80% 90% at 85% 20%, rgba(124, 58, 237, 0.55), transparent 60%), radial-gradient(60% 70% at 10% 100%, rgba(227, 184, 92, 0.18), transparent 70%), linear-gradient(160deg, #1d1236, #0b0816 70%);
  box-shadow: 0 20px 60px rgba(40, 10, 90, 0.5); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; animation: drift 18s ease-in-out infinite alternate; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 13, 0.92) 0%, rgba(7, 6, 13, 0.55) 45%, rgba(7, 6, 13, 0.05) 75%), linear-gradient(0deg, rgba(7, 6, 13, 0.9) 0%, transparent 55%); }
@keyframes drift { to { transform: scale(1.06) translateX(-1.5%); } }
.hero-txt { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.hero .title { font-size: clamp(36px, 11vw, 60px); }
.eyebrow { margin: 0; color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.lead { margin: 0; font-size: 17px; color: #e7e0ff; max-width: 26ch; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Card cu imagine mare (DARVAL) */
.feature { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); color: #fff; aspect-ratio: 16 / 9; max-width: 100%; }
.feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 6, 13, 0.92)); }
.feature-txt { position: absolute; left: 16px; bottom: 14px; right: 140px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.feature-txt b { font-family: var(--display); font-size: 28px; letter-spacing: 0.02em; }
.feature-txt small { color: #ddd5f5; font-size: 13px; line-height: 1.35; }
.feature .btn { position: absolute; right: 14px; bottom: 14px; z-index: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 5px 10px; border-radius: 8px; background: #ec4899; color: #fff; }
.badge.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1206; }

/* Carduri */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(8px); }
.kicker { margin: 0; color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.num { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.days span.on { background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: none; }
.days span.chest { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1206; }
.war { display: flex; flex-direction: column; gap: 8px; }
.war-row { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.war-row .bar-t { height: 10px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; }
.war-row .bar-t i { display: block; height: 100%; border-radius: 5px; }
.war-row span:first-child { display: flex; align-items: center; gap: 6px; }

/* Jocuri */
.games { display: flex; flex-direction: column; gap: 16px; }
.game { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.game-art { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #110b22; }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tron-art { display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 40%, rgba(124, 58, 237, 0.6), transparent 70%), linear-gradient(160deg, #24143f, #0b0816); }
.tron-art img { width: 46%; height: auto; object-fit: contain; filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.8)); }
.game-body { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.game-body .badge { position: static; align-self: flex-start; }
.game-body h2 { margin: 0; font-family: var(--display); font-size: 24px; }
.game-body p { margin: 0; line-height: 1.5; color: #ddd5f5; }
.game-body .meta { color: var(--muted); font-size: 13px; }
.game-body .btn { align-self: flex-start; margin-top: 4px; }
.live { color: var(--ok) !important; font-weight: 700; font-size: 13px; }
.soon { text-align: center; color: var(--muted); padding: 18px; border: 1px dashed var(--line-2); border-radius: 18px; }

/* Clasament */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tab { border: 0; border-radius: 12px; padding: 10px 6px; min-height: 44px; font-weight: 800; font-size: 14px; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tab[aria-selected="true"] { background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: none; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.board li.me { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 20px rgba(227, 184, 92, 0.25); }
.board .pos { font-family: var(--display); font-weight: 800; text-align: center; color: var(--muted); }
.board li:nth-child(1) .pos { color: var(--gold-hi); }
.board .who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.board .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .val { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; }

/* Profil */
.me { flex-direction: row; align-items: center; gap: 14px; }
.me-ava { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #4c2a99, #1c1238); box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(227, 184, 92, 0.35); }
.me-txt { min-width: 0; }
.me-txt h2 { margin: 0; font-family: var(--display); font-size: 22px; overflow: hidden; text-overflow: ellipsis; }
.fac { margin: 4px 0; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { gap: 4px; padding: 14px; }
.soon-card p { margin: 0; line-height: 1.55; }

/* Meniu jos */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: rgba(10, 8, 20, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; min-height: 52px; color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 12px; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a[aria-current="page"] { color: #fff; background: rgba(124, 58, 237, 0.22); }
.tabbar a[aria-current="page"] svg { color: var(--violet-hi); filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.8)); }

.foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 12px; padding: 8px 16px 18px; }
.foot a { color: var(--muted); text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9; background: var(--card-hi); border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; max-width: 90vw; text-align: center; }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@media (min-width: 640px) { .hero-art img { object-position: 85% 30%; } }
@media (max-width: 639px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-art { position: relative; inset: auto; aspect-ratio: 3 / 2; }
  .hero-art img { object-position: 50% 40%; }
  .hero-art::after { background: linear-gradient(0deg, rgba(14, 10, 26, 1) 0%, rgba(14, 10, 26, 0.4) 30%, transparent 55%); }
  .hero-txt { margin-top: -54px; padding-top: 0; }
}

/* Jocuri în curând (fără cifre: nu există încă) */
.more { font-size: 13px; font-weight: 700; color: var(--violet-hi); }
.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.soon-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.soon-g { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.soon-g img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; transform: scale(1.04); filter: saturate(0.9); }
.soon-g b { padding: 10px 12px 0; font-size: 14px; line-height: 1.25; }
.soon-g small { padding: 2px 12px 12px; color: var(--muted); font-size: 12px; }
.badge.soonb { background: rgba(7, 6, 13, 0.8); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); top: 8px; left: 8px; font-size: 10px; }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; }
.soon-t { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.soon-t b { font-size: 13px; } .soon-t small { color: var(--muted); font-size: 11px; }

/* Apăsare premium: comprimare, strălucire și puls */
.btn, .tab, .tabbar a, .chip, .soon-g, .feature { transition: transform .12s ease, filter .2s ease, box-shadow .2s ease; }
.btn:active, .tab:active, .chip:active, .soon-g:active, .feature:active { transform: scale(.96); filter: brightness(1.15); }
.tabbar a:active { transform: scale(.9); }
.pulse { animation: pulse .45s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .65); } 100% { box-shadow: 0 0 0 16px rgba(167, 139, 250, 0); } }
.hero .btn:not(.ghost)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 250% 100%; animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
.hero .btn { position: relative; overflow: hidden; }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pulse, .hero .btn::before { animation: none; } }
