:root {
  --bg: #07080d; --text: #eef0f6; --muted: #8b91a8; --gold: #f5c542; --gold-2: #d99a1e;
  --panel: rgba(18, 21, 34, 0.7); --border: rgba(255,255,255,0.08);
  --font: "Inter", system-ui, sans-serif; --display: "Cinzel", "Inter", serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* fundal animat */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.bg-nebula { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: 0.55;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(60,120,255,0.35), transparent 70%),
    radial-gradient(35% 30% at 80% 25%, rgba(245,197,66,0.22), transparent 70%),
    radial-gradient(45% 40% at 55% 85%, rgba(224,67,63,0.22), transparent 70%);
  animation: nebula 28s ease-in-out infinite alternate; }
@keyframes nebula { 0% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(3%,-2%) rotate(3deg) scale(1.06); } 100% { transform: translate(-3%,2%) rotate(-2deg) scale(1.02); } }
.bg-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%); }
@media (prefers-reduced-motion: reduce) { .bg-nebula { animation: none; } }

/* hero */
.hero { position: relative; z-index: 1; text-align: center; padding: max(48px, env(safe-area-inset-top) + 40px) 20px 24px; }
.hero-logo { position: relative; width: 180px; height: 180px; margin: 0 auto 8px; animation: float 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 30px rgba(90,170,255,0.55)) drop-shadow(0 10px 20px rgba(0,0,0,0.6)); position: relative; z-index: 1; }
.hero-logo-ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(245,197,66,0.25);
  box-shadow: 0 0 40px rgba(245,197,66,0.15), inset 0 0 40px rgba(90,170,255,0.12); animation: spin 40s linear infinite; }
.hero-logo-ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); transform: translateX(-50%); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 7vw, 64px); margin: 8px 0 6px; letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.hero-title span { color: var(--gold); background: linear-gradient(180deg, #ffe08a, #f5c542 50%, #c8891a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: #b9bfd3; font-size: clamp(15px, 2vw, 18px); max-width: 560px; margin: 0 auto 22px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 16px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px rgba(88,101,242,0.45); }
.btn-discord:hover { background: #6a75f5; box-shadow: 0 14px 36px rgba(88,101,242,0.6); }

/* jocuri */
.games { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1100px; margin: 24px auto 0; padding: 0 20px; }
@media (min-width: 700px) { .games { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; } }

#gameReminder .game-art { background: radial-gradient(ellipse at 50% 120%, rgba(255,140,40,0.18), transparent 60%), linear-gradient(180deg, #1a1210, #0e0b0a); }
.game { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.35s; }
.game:hover { transform: translateY(-8px); border-color: rgba(245,197,66,0.45); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,197,66,0.25), 0 0 60px rgba(245,197,66,0.12); }
.game::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.9s ease; }
.game:hover::after { transform: translateX(100%); }
.game-art { position: relative; height: 260px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(245,197,66,0.18), transparent 60%), linear-gradient(180deg, #131727, #0c0f19); }
#gameRegele .game-art { background: radial-gradient(ellipse at 50% 120%, rgba(74,222,128,0.16), transparent 60%), linear-gradient(180deg, #0f1a1a, #0b0f14); }
.art-fan { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 0; }
.art-fan img { width: 120px; height: auto; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.6); position: absolute; bottom: -20px; transform-origin: 50% 120%;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.art-fan img:nth-child(1) { transform: rotate(-22deg) translateX(-90px); }
.art-fan img:nth-child(2) { transform: rotate(0deg) translateY(-12px); z-index: 2; }
.art-fan img:nth-child(3) { transform: rotate(22deg) translateX(90px); }
.art-fan img.art-back { transform: rotate(-40deg) translateX(-170px) translateY(30px); opacity: 0.6; filter: brightness(0.7); }
.art-fan img.art-back2 { transform: rotate(40deg) translateX(170px) translateY(30px); opacity: 0.6; filter: brightness(0.7); }
.game:hover .art-fan img:nth-child(1) { transform: rotate(-28deg) translateX(-110px) translateY(-6px); }
.game:hover .art-fan img:nth-child(2) { transform: rotate(0deg) translateY(-26px) scale(1.05); }
.game:hover .art-fan img:nth-child(3) { transform: rotate(28deg) translateX(110px) translateY(-6px); }
.art-custom { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 3; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.game:hover .art-custom { transform: scale(1.05); }
.game-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 4; background: linear-gradient(to top, rgba(12,15,25,0.95), rgba(12,15,25,0)); pointer-events: none; }
.game-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.game-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.game h2 { font-family: var(--display); font-size: 26px; margin: 0; font-weight: 800; }
.game p { margin: 0; color: #b9bfd3; line-height: 1.55; font-size: 14.5px; }
.game-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.game-stats span { font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.game-stats b { color: var(--text); }
.game-go { margin-top: 10px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.game-go span { transition: transform 0.2s; }
.game:hover .game-go span { transform: translateX(6px); }

/* despre */
.about { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1100px; margin: 28px auto 0; padding: 0 20px; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 1fr; gap: 28px; } }
.about-card { padding: 20px 22px; border-radius: 18px; background: rgba(18,21,34,0.5); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.about-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 18px; }
.about-card p { margin: 0; color: #b9bfd3; line-height: 1.6; font-size: 14.5px; }

/* footer */
.footer { position: relative; z-index: 1; text-align: center; padding: 40px 20px calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.footer-brand { margin-bottom: 8px; font-weight: 600; }
.disclaimer { font-size: 11.5px; line-height: 1.6; max-width: 780px; margin: 0 auto; color: rgba(139,145,168,0.75); }

/* limba */
.lang-switch { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(18,21,34,0.75); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.lang-switch button { padding: 7px 12px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--gold); color: #1a1300; }
.game-stats i, .game-go i { font-style: normal; }

#gameLogo .game-art { background: radial-gradient(ellipse at 50% 120%, rgba(245,197,66,0.2), transparent 60%), linear-gradient(180deg, #151a2a, #0c0f19); }
.art-pixels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 34px); gap: 6px; place-content: center; transform: rotate(-8deg); }
.art-pixels i { width: 34px; height: 34px; border-radius: 6px; background: var(--c); box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.35); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.game:hover .art-pixels i:nth-child(odd) { transform: translateY(-6px); }
.game:hover .art-pixels i:nth-child(even) { transform: translateY(6px); }

/* card evenimente: chip-uri cu ore */
.art-clock { position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; padding: 30px; transform: rotate(-6deg); }
.art-clock span { font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 30%, #0b0d14); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 8px 18px rgba(0,0,0,0.5); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); font-variant-numeric: tabular-nums; }
.game:hover .art-clock span:nth-child(odd) { transform: translateY(-5px); }
.game:hover .art-clock span:nth-child(even) { transform: translateY(5px); }
.art-clock span { display: inline-flex; align-items: center; gap: 8px; }
.art-clock img { width: 28px; height: 28px; border-radius: 6px; }

/* anunt sus: Program zilnic */
.announce { position: relative; z-index: 4; pointer-events: none; display: flex; justify-content: center; padding: max(58px, env(safe-area-inset-top) + 50px) 16px 0; animation: annIn 0.5s cubic-bezier(.2,.9,.3,1.1) both; }
.announce.out { animation: annOut 0.25s ease both; }
@keyframes annIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes annOut { to { opacity: 0; transform: translateY(-10px); } }
.announce-card { pointer-events: auto; display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center; width: 100%; max-width: 860px; padding: 10px 12px 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,197,66,0.16), rgba(109,124,255,0.14)), rgba(12,14,22,0.85); border: 1px solid rgba(245,197,66,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(245,197,66,0.15); backdrop-filter: blur(12px); }
.announce-ico { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 16px rgba(245,197,66,0.4); }
.announce-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.announce-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.announce-text b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.announce-text span:not(.announce-new) { font-size: 13px; color: var(--muted); }
.announce-new { font-size: 10px; font-weight: 900; letter-spacing: 0.14em; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #1a1300; animation: annPulse 1.8s infinite; }
@keyframes annPulse { 50% { box-shadow: 0 0 0 6px rgba(245,197,66,0); } 0% { box-shadow: 0 0 0 0 rgba(245,197,66,0.6); } }
.btn-ann { padding: 10px 16px; font-size: 14px; white-space: nowrap; background: linear-gradient(135deg, #f5c542, #d99a1e); color: #1a1300; box-shadow: 0 8px 24px rgba(245,197,66,0.35); border-radius: 12px; }
.btn-ann:hover { filter: brightness(1.06); }
.announce-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--panel-border); background: rgba(255,255,255,0.05); color: var(--muted); font: inherit; cursor: pointer; }
.announce-x:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.announce ~ .hero { padding-top: 28px; }
@media (max-width: 640px) {
  .announce { padding-top: max(60px, env(safe-area-inset-top) + 52px); }
  .announce-card { grid-template-columns: 40px 1fr auto; }
  .announce-ico { width: 40px; height: 40px; }
  .btn-ann { grid-column: 1 / -1; justify-content: center; }
  .announce-x { grid-row: 1; grid-column: 3; }
}

/* credit */
.site-by { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.site-by span { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
  background: linear-gradient(90deg, #f5c542, #ffe38a 45%, #d99a1e); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 8px rgba(245,197,66,0.35)); }

.footer-links { margin-top: 10px; font-size: 12.5px; }
.footer-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gold); }

/* nota stocare locala */
.cookie { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; margin: 0 auto; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px;
  background: rgba(12,14,22,0.92); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 14px 40px rgba(0,0,0,0.55); backdrop-filter: blur(12px); font-size: 13px; color: #d9dcea; animation: annIn 0.4s ease both; }
.cookie.out { animation: annOut 0.25s ease both; }
.cookie span { flex: 1 1 320px; line-height: 1.45; }
.cookie a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie button { padding: 9px 14px; border-radius: 10px; border: none; background: var(--gold); color: #1a1300; font: inherit; font-weight: 700; cursor: pointer; }

.cookie[hidden], .announce[hidden] { display: none !important; }

/* ===== widget Discord ===== */
.dwidget { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 250px; z-index: 4; display: flex; flex-direction: column; max-height: min(480px, calc(100vh - 32px)); background: rgba(12,14,22,0.85); border: 1px solid rgba(88,101,242,0.45); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px rgba(88,101,242,0.15); backdrop-filter: blur(12px); overflow: hidden; }
.dwidget[hidden] { display: none !important; }
@media (max-width: 1100px) { .dwidget { display: none !important; } }
.dw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #5865f2; color: #fff; }
.dw-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dw-title b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-title > span { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 5px; } .dw-title em { font-style: normal; }
.dw-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55c; box-shadow: 0 0 8px #3ba55c; display: inline-block; }
.dw-list { padding: 8px 8px; display: grid; gap: 2px; overflow-y: auto; max-height: 360px; }

.dw-m { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "av nm" "av gm"; column-gap: 9px; align-items: center; padding: 5px 6px; border-radius: 9px; position: relative; }
.dw-m:hover { background: rgba(255,255,255,0.05); }
.dw-m img { grid-area: av; width: 30px; height: 30px; border-radius: 50%; background: #23272a; }
.dw-m .st { position: absolute; left: 26px; top: 25px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #0c0e16; background: #747f8d; }
.dw-m .st.online { background: #3ba55c; } .dw-m .st.idle { background: #faa61a; } .dw-m .st.dnd { background: #ed4245; }
.dw-m .nm { grid-area: nm; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-m .gm { grid-area: gm; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-m:not(:has(.gm)) { grid-template-areas: "av nm"; }
.dw-more { font-size: 12px; color: var(--muted); padding: 6px 8px; }
.dw-join { display: block; margin: 6px 10px 10px; padding: 10px; text-align: center; border-radius: 10px; background: #3ba55c; color: #fff; font-weight: 700; font-size: 14px; }
.dw-join:hover { filter: brightness(1.08); }

.dw-sep { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,0.45); margin: 0 6px; }
.dw-title > span.no-total .dw-sep, .dw-title > span.no-total #dwTotal, .dw-title > span.no-total em:last-child { display: none; }
.dw-list { max-height: 300px; }
/* anuntul sa nu intre sub widget pe ecrane medii */
@media (min-width: 1101px) { .cookie { right: 290px; } }
