@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:wght@400;600&family=Merriweather:wght@400;700&display=swap');

/* ===== Reset & bază ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }

/* Controls */
:root{
  --left-shift: 8vw;     /* cât împingem doar coloana stângă spre marginea ecranului */
  --char-lift: 80px;     /* cât ridicăm coloana dreapta */
  --gender-lift: 8px;    /* cât urcăm rândul M/F în card */
}

body {
  font-family: 'Merriweather', serif;
  color: #fff;
  background: #0b0f14;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}
html.a2g-prep body { opacity: 0; }

.hero, .hero .overlay, .hero::after {
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  background: #0b0f14;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 300px 8% 0 8%;
  overflow: hidden;
}

/* video background */
.hero-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* conținut (stânga) — împins spre marginea stângă */
.hero .content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
  margin-left: calc(-1 * var(--left-shift));
}

/* overlay */
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45));
  z-index: 1;
}

/* colțuri întunecate */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 25% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%);
  z-index: 2; pointer-events: none;
}

/* ===== Titlu & Subtitlu ===== */
.title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
}
.title span { color: #eab308; }

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin: 20px 0 32px 0;   /* lipit de stânga */
  opacity: .92;
  max-width: 600px;
  text-align: left;
}

/* ===== Butoane ===== */
.btn i { margin-right: 8px; font-size: 0.95rem; }

.buttons {
  display: flex;
  justify-content: flex-start;  /* la stânga */
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  background: #eab308; color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none; font-weight: 800; font-size: 1rem; letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .3s ease, filter .2s ease;
  box-shadow:
    0 0 8px rgba(234,179,8,.45),
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.25);
}
.btn:nth-child(2) {
  background: #3b82f6; color: #fff;
  box-shadow:
    0 0 8px rgba(59,130,246,.45),
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.25);
}
.btn:hover {
  transform: translateY(-2px); filter: saturate(1.08);
  box-shadow:
    0 0 14px rgba(234,179,8,.75),
    0 0 28px rgba(234,179,8,.45),
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.25);
}
.btn:nth-child(2):hover {
  box-shadow:
    0 0 14px rgba(59,130,246,.75),
    0 0 28px rgba(59,130,246,.45),
    inset 0 2px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.25);
}

/* ===== Footer fix jos ===== */
.footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 10; background: rgba(0, 0, 0, 0.65);
  text-align: center; font-size: 0.85rem; line-height: 1.5;
  padding: 16px 10px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbb;
}
.footer a { color: #90caf9; text-decoration: none; margin: 0 4px; transition: color 0.2s ease; }
.footer a:hover { color: #eab308; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== Work Bar ===== */
.workbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.35));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.workbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 28px;
}
.workbar-inner > * { flex: 0 0 auto; }
.wb-group { display: flex; align-items: center; gap: 20px; }

/* Logo central */
.wb-logo img {
  max-height: 50px;
  filter: drop-shadow(0 0 3px rgba(234,179,8,.35)) drop-shadow(0 0 6px rgba(234,179,8,.25));
  transition: filter .4s ease, transform .25s ease;
}
.wb-logo img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 5px rgba(234,179,8,.5)) drop-shadow(0 0 10px rgba(234,179,8,.35));
}

/* Linkuri */
.wb-link {
  color: #e6e6e6; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 10px 16px; border-radius: 10px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .2s ease;
}
.wb-link:hover {
  color: #fff; background: rgba(255,255,255,.1);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Dropdown Regulament */
.wb-dropdown { position: relative; }
.wb-dd-trigger { background: transparent; border: 0; cursor: pointer; }
.wb-caret { margin-left: 4px; font-size: .85rem; opacity: .9; }
.wb-dd {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  padding: 10px; margin-top: 8px; background: rgba(10,14,20,.95);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.5); display: none;
}
.wb-dropdown:hover .wb-dd { display: block; }

.wb-dd-item {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #e6e6e6; text-decoration: none; font-weight: 600;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.wb-dd-item:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(2px); }

/* CTA Discord */
.wb-cta {
  background: #3b82f6; color: #fff; font-weight: 800;
  box-shadow: 0 0 12px rgba(59,130,246,.5), 0 0 24px rgba(59,130,246,.35);
  transition: transform .2s ease, box-shadow .3s ease, background-color .2s ease;
}
.wb-cta:hover, .wb-cta:focus {
  background: #3b82f6; color: #fff; transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(59,130,246,.8), 0 0 32px rgba(59,130,246,.6);
}

/* Buton special "Înapoi" */
.wb-back {
  background: transparent; border: 1px solid rgba(234,179,8,.6);
  color: #eab308; font-weight: 700; padding: 10px 16px; border-radius: 10px;
  transition: all .3s ease;
}
.wb-back:hover { background: rgba(234,179,8,.15); color: #fff; box-shadow: 0 0 10px rgba(234,179,8,.5); }

/* ===== System Requirements Box — lipit la stânga ===== */
.sys-req {
  margin: 15px 0 0 0;         /* nu mai e centrat, stă la stânga */
  max-width: 800px;
  padding: 14px 18px;
  background: rgba(15, 20, 28, 0.82);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,.35), inset 0 0 4px rgba(234,179,8,.08);
}
.sys-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
  color: #eab308; text-align: left;   /* la stânga */
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Layout pe două coloane */
.sys-flex {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; position: relative;
}
.sys-flex::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(234,179,8,0.35), transparent);
  transform: translateX(-50%);
}
.sys-section { flex: 1; min-width: 260px; }
.sys-section h3 {
  font-size: 0.95rem; font-weight: 700; margin: 0 0 8px 0;
  text-align: left; text-transform: uppercase; letter-spacing: 0.5px;
}
.sys-section:first-child h3 { color: #3b82f6; }
.sys-section:last-child  h3 { color: #10b981; }
.sys-section ul { list-style: none; padding: 0; margin: 0; }
.sys-section li { margin: 2px 0; font-size: 0.82rem; color: #ccc; line-height: 1.4; }
.sys-section li strong { color: #eab308; font-weight: 600; }

/* ===== Petale ===== */
.petals {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 2; /* sub conținut (3) */
}
.petal {
  position: absolute; top: -12vh; width: 14px; height: 10px; opacity: .9;
  background:
    radial-gradient(60% 60% at 60% 40%, #ff6b8a 0 60%, transparent 61%),
    radial-gradient(60% 60% at 40% 60%, #d8335b 0 60%, transparent 61%);
  background-repeat: no-repeat; background-size: 100% 100%;
  border-radius: 70% 10% 70% 10% / 70% 10% 70% 10%;
  filter: drop-shadow(0 0 6px rgba(216,51,91,.45));
  transform: translate3d(0,-12vh,0) rotateZ(0deg) scale(var(--scale,1));
  animation:
    fall var(--dur,12s) linear var(--delay,0s) infinite,
    sway var(--sway,3.5s) ease-in-out var(--delay,0s) infinite alternate,
    spin var(--spin,6s) linear var(--delay,0s) infinite;
}
@keyframes fall { to { transform: translate3d(0,110vh,0) rotateZ(360deg) scale(var(--scale,1)); } }
@keyframes sway { from { margin-left:-36px; } to { margin-left:36px; } }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .petal { animation: none !important; } }

/* ===== Layout 2 coloane în hero ===== */
.hero-inner{
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 36px; width: 100%; padding: 0 8%;
  align-items: start; /* ambele coloane sus */
}

/* responsiv: pe ecrane înguste cade sub titlu */
@media (max-width: 1100px){
  .hero-inner{ grid-template-columns: 1fr; }
}

/* ===== Character Viewer (dreapta) ===== */
.char-viewer{
  display: flex; align-items: flex-start; justify-content: center;
  align-self: start;
  margin-top: calc(var(--char-lift) * -1);  /* ridicăm doar coloana dreapta */
  position: relative; z-index: 3;
}

.char-card{
  width: 100%;
  background: rgba(15, 20, 28, 0.78);
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 0 6px rgba(234,179,8,.08);
  backdrop-filter: blur(2px);
}

.char-header{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.char-header h3{
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem; letter-spacing: .5px; color: #eab308; margin: 0;
}
.char-audio{
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(234,179,8,.14);
  border: 1px solid rgba(234,179,8,.35);
  color: #ffd95a; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  transition: transform .15s ease, box-shadow .25s ease, background-color .2s ease;
}
.char-audio:hover{ transform: translateY(-1px); box-shadow: 0 0 14px rgba(234,179,8,.45); }

/* ușor mai mică scena + ridicăm rândul M/F */
.char-stage{
  position: relative;
  height: 400px;   /* ușor mai mic */
  background: radial-gradient(80% 60% at 50% 40%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;  /* mai puțin spațiu dedesubt */
}
.char-stage img{
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain; filter: drop-shadow(0 8px 22px rgba(0,0,0,.55));
}

/* săgeți */
.char-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  color: #eee; cursor: pointer; z-index: 5;
  display:flex; align-items:center; justify-content:center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .2s ease;
}
.char-nav.prev{ left: 10px; }
.char-nav.next{ right: 10px; }
.char-nav:hover{ transform: translateY(-50%) scale(1.05); background: rgba(0,0,0,.6); box-shadow: 0 0 12px rgba(0,0,0,.4); }

/* gen M/F */
.char-gender{
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 8px;
  transform: translateY(calc(-1 * var(--gender-lift))); /* urcăm rândul */
}
.gender-btn{
  min-width: 56px; padding: 8px 14px; border-radius: 10px;
  background: rgba(59,130,246,.14); color:#cfe4ff; border: 1px solid rgba(59,130,246,.35);
  font-weight: 700; letter-spacing: .5px; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease;
}
.gender-btn[data-g="F"]{ background: rgba(236,72,153,.14); color:#ffd3ea; border-color: rgba(236,72,153,.35); }
.gender-btn:hover{ transform: translateY(-1px); box-shadow: 0 0 12px rgba(0,0,0,.35); }
.gender-btn.active{ background:#eab308; color:#000; border-color:#a07b05; }

.char-story{
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; color: #d9d9d9; line-height: 1.35; text-align: center;
}

/* ===== Responsive fix ===== */
@media (max-width: 1100px){
  .hero .content{ margin-left: 0; }
  .buttons{ justify-content: center; }
  .sys-req{ margin: 35px auto 0 auto; }   /* recentrat */
  .char-viewer{ margin-top: 0; }
  .char-stage{ height: 360px; }
  .char-gender{ transform: none; }
}

.char-stage {
  position: relative;
  height: 400px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.char-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1; /* sub imagine */
}

.char-stage img {
  position: relative;
  z-index: 2; /* peste background */
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.55));
}

.char-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;          /* sub imagine */
  opacity: .9;         /* optional – un pic de transparență */
}
.char-stage img{ z-index: 2; position: relative; } /* deja ai, dar confirmăm ordinea */
