/* =========================
   GLOBAL
========================= */
:root{
  --bg: #0b0b0b;
  --text: rgba(255,255,255,.9);
}

body{
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  cursor: none;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--text);
}

.hidden{ display:none !important; }


/* =========================
   CUSTOM CURSOR
========================= */
#cursor{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-track{
  width: 36px;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  overflow: hidden;
}

.cursor-bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(
    110deg,
    #bfc3c7 0%,
    #f5f7f8 20%,
    #9ea3a8 40%,
    #ffffff 55%,
    #a7acb1 70%,
    #e6e8ea 85%,
    #9b9fa4 100%
  );
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,255,255,.35);
  animation: cursorLoad 1.2s ease-in-out infinite, chromeShine 2.4s linear infinite;
}

@keyframes cursorLoad{
  0%{ width: 0%; }
  60%{ width: 100%; }
  100%{ width: 0%; }
}

/* =========================
   LOGO
========================= */
.roadmap-title{
  display:flex;
  justify-content:center;
  margin-top: 36px;
  margin-bottom: 14px;
}

.roadmap-logo{
  width: clamp(260px, 46vw, 520px);
  height:auto;
  opacity: .95;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.35));
}

/* =========================
   ROADMAP
========================= */
.roadmap{
  --lineY: 38px;
  position: relative;
  width: min(980px, 92vw);
  margin: 0 auto 10px;
  padding-top: calc(var(--lineY) + 22px);
}

.roadmap-track{
  position:absolute;
  left:0; right:0;
  top: var(--lineY);
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  z-index: 1;
}

.roadmap-fill{
  position:absolute;
  left:0;
  top: var(--lineY);
  height: 10px;
  width: 0%;
  border-radius: 999px;

  background: linear-gradient(
    110deg,
    #bfc3c7 0%,
    #f5f7f8 20%,
    #9ea3a8 40%,
    #ffffff 55%,
    #a7acb1 70%,
    #e6e8ea 85%,
    #9b9fa4 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 10px rgba(255,255,255,.30),
    inset 0 0 6px rgba(255,255,255,.55);

  animation: chromeShine 2.4s linear infinite;
  z-index: 2;
}

.roadmap-dot{
  position:absolute;
  left: 33.333%;
  top: calc(var(--lineY) + 6px);
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;

  background: linear-gradient(
    110deg,
    #bfc3c7 0%,
    #f5f7f8 20%,
    #9ea3a8 40%,
    #ffffff 55%,
    #a7acb1 70%,
    #e6e8ea 85%,
    #9b9fa4 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 14px rgba(255,255,255,.6),
    0 0 28px rgba(255,255,255,.35),
    inset 0 0 6px rgba(255,255,255,.65);

  animation: chromeShine 2.4s linear infinite;
  opacity: 0;
  pointer-events:none;
  z-index: 3;
}

.roadmap-dot.show{ opacity: 1; }
.roadmap-dot.blink{
  animation: chromeShine 2.4s linear infinite, dotBlink 0.45s ease-in-out 3;
}

@keyframes dotBlink{
  0%{ opacity: 1; }
  50%{ opacity: .25; }
  100%{ opacity: 1; }
}

@keyframes chromeShine{
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.rm-step{
  position:absolute;
  top: calc(var(--lineY) - 26px);
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: .2px;
  opacity: .35;
  white-space: nowrap;
  transition: opacity .25s ease, text-shadow .25s ease, font-size .25s ease;
}

.rm-step.s1{ left:0%; transform: translateX(0); }
.rm-step.s2{ left:33.333%; }
.rm-step.s3{ left:66.666%; }
.rm-step.s4{ left:100%; transform: translateX(-100%); }

.rm-step.active{
  opacity: .9;
  text-shadow: 0 0 10px rgba(255,255,255,.45);
}

.rm-step.is-current{
  opacity: 1;
  font-size: 16px;
  text-shadow: 0 0 14px rgba(255,255,255,.75);
}

.rm-step.blink{ animation: blink 0.45s ease-in-out 3; }

@keyframes blink{
  0%{ opacity: 1; }
  50%{ opacity: .25; }
  100%{ opacity: 1; }
}

/* =========================
   CTA
========================= */
.cta{
  width: min(980px, 92vw);
  margin: 24px auto 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.cta-main{
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint{
  opacity: .55;
  font-size: 13px;
  text-align: center;
}

.hint-keys{
  display: flex;
  gap: 18px;
  justify-content: center;
}

.btn-primary{
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
}

.btn-primary:hover{ background: rgba(255,255,255,.18); }

.btn-primary.loading{
  pointer-events: none;
}

.btn-label{
  position: relative;
  z-index: 1;
}

.btn-fill{
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    #bfc3c7 0%,
    #f5f7f8 20%,
    #9ea3a8 40%,
    #ffffff 55%,
    #a7acb1 70%,
    #e6e8ea 85%,
    #9b9fa4 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 10px rgba(255,255,255,.35),
    inset 0 0 6px rgba(255,255,255,.55);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.85;
}

.btn-primary.loading .btn-fill{
  animation: btnFill 0.9s ease forwards, chromeShine 2.4s linear infinite;
}

.btn-primary.loading .btn-label{
  opacity: .7;
}

.btn-primary.completed{
  background: rgba(255,255,255,.08);
}

.btn-primary.completed .btn-fill{
  display: none;
}

.btn-primary.reversing .btn-fill{
  animation: btnUnfill 0.5s ease forwards;
}

@keyframes btnFill{
  from{
    transform: scaleX(0);
    opacity: .6;
  }
  to{
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes btnUnfill{
  from{
    transform: scaleX(1);
    opacity: 1;
  }
  to{
    transform: scaleX(0);
    opacity: .6;
  }
}

/* =========================
   CURATION UI (normal)
========================= */
.curation{
  width: min(980px, 92vw);
  margin: 0 auto 70px;
}

.card{
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.card.completed .image-wrap,
.card.completed .key-hint,
.card.completed .key-or-actions,
.card.completed .progress-wrap{
  display: none;
}

/* =========================
   FOOTER LOGOS
========================= */
.footer-logos{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 6000;
}

.logo-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .1px;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.logo-pill:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.95);
}

.pill-icon{
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.pill-icon svg{
  width: 100%;
  height: 100%;
  fill: rgba(255,255,255,.9);
}

.pill-text{
  opacity: .9;
}

.btn-ghost{
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn-ghost:hover{ background: rgba(255,255,255,.06); }

.image-wrap{
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.08);
}

.image-wrap img{
  display:block;
  width: 100%;
  height: auto;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.btn-yes, .btn-no{
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.btn-yes{
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

.btn-no{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
}

.btn-yes:hover{ background: rgba(255,255,255,.18); }
.btn-no:hover{ background: rgba(255,255,255,.10); }

.meta{
  margin-top: 10px;
  opacity: .55;
  font-size: 12px;
}

/* =========================
   CURATION FOCUS MODE (ONLY IMAGE)
========================= */
.curation.focus{
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curation.focus .card{
  background: transparent;
  border: none;
  padding: 0;
  width: min(980px, 92vw);
}

.curation.focus .card-header,
.curation.focus .actions,
.curation.focus .meta{
  display: none;
}

.curation.focus .image-wrap{
  border: none;
  background: transparent;
}

.curation.focus .image-wrap img{
  display: block;
  width: auto;
  max-width: 92vw;
  max-height: 78vh;
  margin: 0 auto;
}

.key-hint{
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  opacity: .45;
  letter-spacing: .3px;
}

.key-or-actions{
  margin-top: 12px;
  text-align: center;
  display: grid;
  gap: 8px;
}

.or-divider{
  font-size: 11px;
  letter-spacing: .6px;
  opacity: .5;
}

.or-buttons{
  display: flex;
  gap: 8px;
  justify-content: center;
}

.or-buttons .btn-yes,
.or-buttons .btn-no,
.or-buttons .btn-ghost{
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.progress-wrap{
  margin-top: 12px;
  padding: 0 8px;
}

.progress-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.progress-fill{
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    #bfc3c7 0%,
    #f5f7f8 20%,
    #9ea3a8 40%,
    #ffffff 55%,
    #a7acb1 70%,
    #e6e8ea 85%,
    #9b9fa4 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 8px rgba(255,255,255,.30),
    inset 0 0 4px rgba(255,255,255,.45);
  animation: chromeShine 2.4s linear infinite;
  transition: width .45s ease-in-out;
}

.completion{
  margin-top: 14px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.completion.hidden{
  display: none;
}

.completion-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.completion-sub{
  font-size: 13px;
  opacity: .7;
}

.completion-input{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.completion-input input{
  width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
}

.completion-input input:focus{
  outline: 1px solid rgba(255,255,255,.35);
}

.btn-primary.small{
  padding: 10px 14px;
  font-size: 13px;
}

.btn-circle{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.btn-circle:hover{
  background: rgba(255,255,255,.12);
}

/* =========================
   ADMIN STATS
========================= */
.admin{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 320px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 12px;
  backdrop-filter: blur(10px);
  z-index: 5000;
}

.admin-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.admin-sub{
  margin-top: 4px;
  opacity: .6;
  font-size: 12px;
}

.leaderboard{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow:auto;
}

.lb-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .85;
}

.lb-left{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}

.admin-actions{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
@keyframes softPulse {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.btn-circle.animate-in{
  animation: softPulse .35s ease-out;
}
.toast{
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  letter-spacing: .2px;
  backdrop-filter: blur(10px);
  z-index: 7000;
}

.toast.show{
  animation: toastIn .18s ease-out;
}

@keyframes toastIn{
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.is-disabled,
button:disabled{
  opacity: .45;
  pointer-events: none;
}
.image-wrap{
  position: relative; /* pentru overlay */
}

.image-wrap.is-loading img{
  filter: blur(10px);
  opacity: .55;
  transform: scale(1.01);
}

.image-wrap.is-loading::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* chrome shimmer */
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.14) 20%,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.18) 55%,
    rgba(255,255,255,0.06) 70%,
    rgba(255,255,255,0.10) 85%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: chromeShine 1.4s linear infinite;
  opacity: .9;
}
