/* Eternity Bridge Games — stilul site-ului (aceleași culori și același font ca în Fur4Doku) */
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --cream: #fff7ec;
  --cream2: #fbead4;
  --ink: #3b2418;
  --mute: #86685a;
  --accent: #f2733f;
  --accent2: #ffb347;
  --leaf: #5dae6a;
  --sky: #6fa8dc;
  --card: #ffffff;
  --line: rgba(59, 36, 24, 0.12);
  --shadow: 0 18px 40px rgba(110, 60, 30, 0.16);
  --r: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 5% -5%, rgba(255, 179, 71, 0.28), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(242, 115, 63, 0.16), transparent 60%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); font-weight: 800; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- bara de sus ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 247, 236, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.nav .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.nav .links a { color: var(--ink); font-weight: 800; font-size: 15px; opacity: 0.8; }
.nav .links a:hover, .nav .links a.on { opacity: 1; color: var(--accent); text-decoration: none; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 900; font-size: 17px; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #ff9b6e, var(--accent));
  box-shadow: 0 6px 0 #b9532a, 0 14px 26px rgba(242, 115, 63, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #b9532a, 0 8px 16px rgba(242, 115, 63, 0.3); }
.btn.ghost { color: var(--ink); background: #fff; box-shadow: 0 6px 0 #e2cdb3, 0 12px 22px rgba(110, 60, 30, 0.12); }
.btn svg { width: 22px; height: 22px; }

/* ---------- prima secțiune ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(18px, 4vw, 48px) 60px;
}
.hero .logo { width: min(560px, 100%); filter: drop-shadow(0 12px 18px rgba(110, 60, 30, 0.22)); animation: bob 5s ease-in-out infinite; }
.hero h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 18px 0 10px; }
.hero p.lead { font-size: 18px; color: var(--mute); max-width: 520px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stage { position: relative; aspect-ratio: 1 / 1; }
.stage .disc {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cream2) 70%);
  box-shadow: inset 0 -14px 30px rgba(210, 150, 90, 0.25), var(--shadow);
}
.stage img { position: absolute; width: 34%; filter: drop-shadow(0 12px 14px rgba(80, 40, 20, 0.25)); }
.stage .c1 { left: 6%; top: 10%; animation: float 4.2s ease-in-out infinite; }
.stage .c2 { right: 4%; top: 8%; animation: float 4.8s ease-in-out -1.2s infinite; }
.stage .c3 { left: 10%; bottom: 6%; animation: float 5.1s ease-in-out -2.1s infinite; }
.stage .c4 { right: 8%; bottom: 8%; animation: float 4.5s ease-in-out -0.6s infinite; }
.stage .star { width: 13%; left: 44%; top: 42%; animation: spin 9s linear infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }

/* ---------- secțiuni ---------- */
section.block { max-width: 1180px; margin: 0 auto; padding: 50px clamp(18px, 4vw, 48px); }
.block h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; margin: 0 0 8px; }
.block .sub { color: var(--mute); font-size: 17px; margin: 0 0 30px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--r); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.18s;
}
.card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.card h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 900; }
.card p { margin: 0; color: var(--mute); }
.pair { display: flex; align-items: center; gap: 4px; height: 76px; }
.pair img { width: 70px; height: 70px; }
.pair .tag { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; margin-left: -14px; margin-top: 34px; border: 3px solid #fff; }
.pair .yes { background: var(--leaf); }
.pair .no { background: #e2574c; }
.rowdemo { display: flex; gap: 6px; height: 76px; align-items: center; }
.rowdemo span { width: 46px; height: 46px; border-radius: 10px; background: var(--cream2); display: grid; place-items: center; }
.rowdemo img { width: 44px; height: 44px; }

.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat .card { padding: 22px; }
.feat .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.feat h3 { font-size: 18px; }

.studio {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, #ffe2c4, #fff3e3); border-radius: 34px; padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
}
.studio img { width: 140px; height: 140px; border-radius: 34px; box-shadow: 0 14px 30px rgba(110, 60, 30, 0.25); }

/* ---------- paginile cu text (Privacy, Terms, Support) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 50px clamp(18px, 4vw, 40px) 70px; }
.doc .paper { background: #fff; border-radius: 30px; padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; margin: 0 0 4px; }
.doc .date { color: var(--mute); margin: 0 0 26px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 900; margin: 32px 0 8px; }
.doc p, .doc li { color: #5b4336; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--cream); border-left: 5px solid var(--accent2); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.faq details { background: var(--cream); border-radius: 18px; padding: 16px 20px; margin: 12px 0; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 900; font-size: 17px; list-style: none; }
.faq summary::before { content: "＋ "; color: var(--accent); }
.faq details[open] summary::before { content: "－ "; }
.mail { font-size: 22px; font-weight: 900; }

/* ---------- subsol ---------- */
footer {
  margin-top: 30px; padding: 34px clamp(18px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line); color: var(--mute); font-size: 15px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center; max-width: 1180px; margin-left: auto; margin-right: auto;
}
footer .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--mute); }

/* intrare lină la derulare */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .stage { max-width: 420px; margin: 0 auto; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1fr; text-align: center; }
  .studio img { margin: 0 auto; }
}
@media (max-width: 560px) {
  .brand .bt { display: none; }
  .nav .links { gap: 12px; }
  .nav .links a { font-size: 14px; }
  .feat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= site-ul studioului: noapte senină, un pod luminat ================= */
body.night {
  color: #f4efff;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(255, 179, 71, 0.18), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(111, 168, 220, 0.16), transparent 60%),
    linear-gradient(180deg, #1d1940 0%, #14112b 60%, #100e22 100%);
  min-height: 100vh;
}
.night .nav { background: rgba(20, 17, 43, 0.75); border-bottom-color: rgba(255, 255, 255, 0.08); }
.night .brand { color: #fff; }
.night .nav .links a { color: #e9e3ff; }
.night .nav .links a:hover, .night .nav .links a.on { color: #ffcf6e; }
.night a { color: #ffcf6e; }
.night footer { border-top-color: rgba(255, 255, 255, 0.08); color: #a79fca; }
.night footer a { color: #a79fca; }
.night .block .sub { color: #b8b0db; }
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.6; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.2); } }

.shero { max-width: 1180px; margin: 0 auto; padding: clamp(50px, 9vw, 120px) clamp(18px, 4vw, 48px) 40px; text-align: center; }
.shero .mark { width: 128px; height: 128px; margin: 0 auto 22px; border-radius: 34px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 179, 71, 0.18); animation: bob 6s ease-in-out infinite; }
.shero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 900; line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.5px; }
.shero h1 span { background: linear-gradient(90deg, #ffcf6e, #f2733f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shero p { font-size: clamp(17px, 2vw, 20px); color: #c9c1ea; max-width: 640px; margin: 0 auto 30px; }
.arc { display: block; width: min(900px, 100%); margin: 10px auto 0; opacity: 0.9; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.game {
  font-weight: 400;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 30px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); color: #f4efff; transition: transform 0.2s, box-shadow 0.2s;
}
.game:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45); text-decoration: none; }
.game .art { height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, #ffe2c4, #fff3e3); position: relative; }
.game .art img.lg { width: 78%; filter: drop-shadow(0 10px 14px rgba(110, 60, 30, 0.25)); }
.game .art .pet { position: absolute; width: 62px; bottom: 8px; filter: drop-shadow(0 6px 8px rgba(80, 40, 20, 0.25)); }
.game .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { margin: 0; font-size: 24px; font-weight: 900; }
.game p { margin: 0; color: #c9c1ea; }
.game .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.pill { font-size: 13px; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f4efff; }
.pill.live { background: #5dae6a; color: #fff; }
.game.soon { border-style: dashed; background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.game.soon .art { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 14px, rgba(255,255,255,0.07) 14px 28px); font-size: 64px; }
.game.soon:hover { transform: none; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 24px; }
.value .ic { font-size: 30px; }
.value h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 900; }
.value p { margin: 0; color: #c9c1ea; }

.night .doc .paper { background: rgba(255, 255, 255, 0.96); color: var(--ink); }
.night .doc .paper h1, .night .doc .paper h2 { color: var(--ink); }
.night .doc .paper a { color: var(--accent); }
.gamelist { display: grid; gap: 12px; margin: 14px 0; }
.gamelist a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.gamelist a:hover { text-decoration: none; transform: translateY(-2px); }
.gamelist img { width: 48px; height: 48px; border-radius: 12px; }
.gamelist small { display: block; color: var(--mute); font-weight: 400; }

@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }
.night .btn { color: #fff; }
.night .btn.ghost { color: var(--ink); }
