@import "tailwindcss";

@theme {
  --color-ink: #0a0a0b;
  --color-ink-2: #111114;
  --color-bone: #f5f2ec;
  --color-blood: #ff1744;
  --color-blood-deep: #c4102f;
  --color-ember: #ff4d6d;
  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

html, body { background: #0a0a0b; color: #f5f2ec; }
html { scroll-behavior: auto; }
body { font-family: "Space Grotesk", system-ui, sans-serif; overflow-x: hidden; }
::selection { background: #ff1744; color: #fff; }

.font-display { font-family: "Anton", "Archivo Black", sans-serif; letter-spacing: -0.01em; }
.font-mono { font-family: "JetBrains Mono", monospace; }

/* ============ TYPOGRAPHY SCALE ============ */
.t-hero      { font-size: clamp(2.75rem, 10vw, 8rem);  line-height: .88; letter-spacing: -0.01em; }
.t-page      { font-size: clamp(2.5rem, 7.5vw, 6.5rem); line-height: .88; letter-spacing: -0.01em; }
.t-section   { font-size: clamp(2rem, 6vw, 5rem);      line-height: .9;  letter-spacing: -0.01em; }
.t-manifesto { font-size: clamp(2rem, 5.5vw, 4.5rem);  line-height: .92; letter-spacing: -0.01em; }
.t-card-hero { font-size: clamp(2.25rem, 6vw, 5rem);   line-height: .88; letter-spacing: -0.01em; }

.wordmark    { font-family: "Anton", "Archivo Black", sans-serif; font-size: clamp(6rem, 18vw, 16rem); line-height: .85; letter-spacing: -0.03em; }
.footer-word { font-family: "Anton", "Archivo Black", sans-serif; font-size: clamp(3rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -0.05em; }

/* Grain */
.grain::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.12; mix-blend-mode: overlay;
  animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-5%,-10%)} 20%{transform:translate(-15%,5%)}
  30%{transform:translate(7%,-25%)} 40%{transform:translate(-5%,25%)} 50%{transform:translate(-15%,10%)}
  60%{transform:translate(15%,0)} 70%{transform:translate(0,15%)} 80%{transform:translate(3%,35%)} 90%{transform:translate(-10%,10%)}
}

/* Custom cursor (desktop only) */
@media (hover:hover) and (pointer: fine) {
  * { cursor: none !important; }
  .cursor-dot, .cursor-ring { position: fixed; top:0; left:0; pointer-events: none; z-index: 9999; border-radius: 9999px; mix-blend-mode: difference; }
  .cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%,-50%); }
  .cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.6); transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s, border-color .25s; }
  .cursor-ring.is-hover { width: 70px; height: 70px; background: rgba(255,23,68,.15); border-color: #ff1744; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 200; background: #0a0a0b; display: grid; place-items: center; }
.preloader__bar { position: absolute; bottom: 0; left: 0; height: 2px; width: 0%; background: #ff1744; box-shadow: 0 0 20px #ff1744; }

/* Marquee */
.marquee { display: flex; overflow: hidden; gap: 3rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 3rem; white-space: nowrap; flex-shrink: 0; min-width: 100%; animation: marquee 40s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Kinetic title letter */
.kinetic { display: inline-block; overflow: hidden; vertical-align: bottom; }
.kinetic > span { display: inline-block; transform: translateY(110%); }

/* Section label */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "JetBrains Mono", monospace; font-size: .75rem; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(245,242,236,.6);
}
.label::before { content:""; width: 32px; height: 1px; background: #ff1744; }

/* Tilt card */
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out; }
.tilt__inner { transform: translateZ(30px); }

/* Blood gradient text */
.text-blood-grad {
  background: linear-gradient(180deg, #ff1744 0%, #ff4d6d 40%, #c4102f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Corner brackets */
.bracket { position: absolute; width: 24px; height: 24px; border: 2px solid #ff1744; }
.bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Magnetic btn */
.magnetic { display: inline-flex; will-change: transform; }

/* Noise orbs */
.orb { position: absolute; border-radius: 9999px; filter: blur(80px); opacity: .55; pointer-events: none; }

/* Button */
.btn-hero {
  position: relative; display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 1.75rem; font-family: "JetBrains Mono", monospace; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255,255,255,.2); overflow: hidden; transition: color .3s;
  isolation: isolate;
}
.btn-hero::before {
  content: ""; position: absolute; inset: 0; background: #ff1744;
  transform: translateY(101%); transition: transform .5s cubic-bezier(.7,0,.3,1); z-index: -1;
}
.btn-hero:hover::before { transform: translateY(0); }
.btn-hero:hover { border-color: #ff1744; }
.btn-hero.solid { background: #ff1744; border-color: #ff1744; }
.btn-hero.solid::before { background: #fff; }
.btn-hero.solid:hover { color: #0a0a0b; }

/* ============ CAROUSEL (mobile: native scroll, desktop: buttons) ============ */
.carousel {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding-bottom: 4rem;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
  gap: 1.5rem;
}

.carousel-card {
  flex: 0 0 82vw;
  max-width: 700px;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .carousel {
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: auto;
  }
  .carousel-track {
    gap: 2rem;
    transform: translate3d(0, 0, 0);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  .carousel-card {
    flex: 0 0 calc((100% - 2rem) / 2);
    max-width: none;
    scroll-snap-align: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  }
  .carousel-card.is-out {
    opacity: 0.35;
    transform: scale(0.94);
    filter: saturate(0.6);
  }
}

@media (min-width: 1280px) {
  .carousel-card { flex: 0 0 calc((100% - 4rem) / 3); }
}

/* Hide carousel buttons on mobile */
@media (max-width: 767px) {
  [data-carousel-prev], [data-carousel-next] { display: none; }
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.carousel-btn:hover {
  background: var(--blood, #ff1744);
  border-color: var(--blood, #ff1744);
  color: #fff;
  transform: translateY(-2px);
}
.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}

/* Scroll indicator */
.scroll-hint {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: "JetBrains Mono", monospace; font-size: .7rem;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(245,242,236,.5);
}
.scroll-hint__arrow { width: 24px; height: 1px; background: #ff1744; position: relative; animation: hintSlide 1.6s ease-in-out infinite; }
.scroll-hint__arrow::after { content:""; position:absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #ff1744; border-right: 1px solid #ff1744; transform: rotate(45deg); }
@keyframes hintSlide { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* Ticker badge spin */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.badge-spin { animation: spin-slow 18s linear infinite; }

/* Sweeping line underline */
.link-sweep { position: relative; overflow: hidden; display: inline-block; }
.link-sweep::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.7,0,.3,1);
}
.link-sweep:hover::after, .link-sweep.active::after { transform: scaleX(1); transform-origin: left; }
.link-sweep.active { color: #ff1744; }

/* ============================================================
   MOBILE MENU — 2026 esports redesign
   Full-screen overlay, layered, staggered, modern
   ============================================================ */
.mmenu {
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top right, rgba(255,23,68,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at bottom left,  rgba(196,16,47,0.14) 0%, transparent 60%),
              #0a0a0b;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2%);
  transition: opacity .5s cubic-bezier(.7,0,.3,1),
              transform .6s cubic-bezier(.7,0,.3,1),
              visibility 0s linear .55s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mmenu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .5s cubic-bezier(.7,0,.3,1),
              transform .6s cubic-bezier(.7,0,.3,1),
              visibility 0s;
}

/* decorative grid backdrop */
.mmenu::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .04;
  pointer-events: none;
}

/* giant faded wordmark */
.mmenu__wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Anton", "Archivo Black", sans-serif;
  font-size: clamp(12rem, 60vw, 24rem);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* top bar */
.mmenu__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mmenu__brand { display: flex; align-items: center; gap: .75rem; }
.mmenu__brand img { width: 2.25rem; height: 2.25rem; }
.mmenu__brand span {
  font-family: "Anton", "Archivo Black", sans-serif;
  font-size: 1.125rem;
  letter-spacing: .15em;
}
.mmenu__close {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #f5f2ec;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
  cursor: pointer;
}
.mmenu__close:hover,
.mmenu__close:active { background: #ff1744; border-color: #ff1744; }
.mmenu__close svg { width: 14px; height: 14px; }

/* status strip */
.mmenu__status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .625rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mmenu__status .live { color: #ff1744; }
.mmenu__status .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 9999px;
  background: #ff1744;
  margin-right: .5rem;
  box-shadow: 0 0 8px #ff1744;
  animation: pulseDot 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.75); }
}

/* link list */
.mmenu__list {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: .25rem;
  list-style: none;
  margin: 0;
}
.mmenu__list li {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity .5s cubic-bezier(.7,0,.3,1), transform .5s cubic-bezier(.7,0,.3,1);
}
.mmenu.open .mmenu__list li { opacity: 1; transform: translateX(0); }
.mmenu.open .mmenu__list li:nth-child(1) { transition-delay: .12s; }
.mmenu.open .mmenu__list li:nth-child(2) { transition-delay: .18s; }
.mmenu.open .mmenu__list li:nth-child(3) { transition-delay: .24s; }
.mmenu.open .mmenu__list li:nth-child(4) { transition-delay: .30s; }
.mmenu.open .mmenu__list li:nth-child(5) { transition-delay: .36s; }

.mlink {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  font-family: "Anton", "Archivo Black", sans-serif;
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: #f5f2ec;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .3s, padding-left .4s cubic-bezier(.7,0,.3,1);
}
.mlink::before {
  content: attr(data-num);
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem;
  letter-spacing: .25em;
  color: rgba(245,242,236,0.35);
  transform: translateY(-.35em);
  transition: color .3s;
}
.mlink::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 14px; height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg) translateX(-6px);
  opacity: 0;
  transition: opacity .35s, transform .4s cubic-bezier(.7,0,.3,1);
}
.mlink:hover,
.mlink:active,
.mlink.active {
  color: #ff1744;
  padding-left: .5rem;
}
.mlink:hover::after,
.mlink:active::after,
.mlink.active::after {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg) translateX(0);
}
.mlink:hover::before,
.mlink.active::before { color: #ff1744; }

/* footer zone: CTA + contact + lang */
.mmenu__foot {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mmenu__cta {
  width: 100%;
  justify-content: center;
  padding: 1.1rem 1.25rem;
  font-size: .75rem;
  letter-spacing: .18em;
  white-space: nowrap;
}
.mmenu__cta span { display: inline-block; }
.mmenu__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.mmenu__channels a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(245,242,236,0.65);
  transition: border-color .3s, background .3s, color .3s;
}
.mmenu__channels a:hover,
.mmenu__channels a:active {
  border-color: rgba(255,23,68,0.6);
  background: rgba(255,23,68,0.06);
  color: #f5f2ec;
}
.mmenu__channels .label-sm {
  color: rgba(245,242,236,0.35);
  font-size: .55rem;
}
.mmenu__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .55rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.3);
}
.mmenu__lang {
  display: flex;
  justify-content: center;
  padding-top: .25rem;
}

/* lock body scroll when open */
body.menu-open { overflow: hidden; }

/* btn-hero safety: handle long translations */
.btn-hero { white-space: nowrap; }
@media (max-width: 380px) {
  .btn-hero { letter-spacing: .14em; padding: .9rem 1.35rem; font-size: .72rem; }
  .mmenu__cta { letter-spacing: .12em; padding: 1rem 1rem; font-size: .7rem; }
}

/* Form field */
.field { position: relative; border-bottom: 1px solid rgba(245,242,236,.2); padding-top: 1.75rem; padding-bottom: .5rem; transition: border-color .3s; }
.field:focus-within { border-color: #ff1744; }
.field label { position: absolute; top: 1.75rem; left: 0; color: rgba(245,242,236,.6); transition: all .3s; pointer-events: none; font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; background: transparent; outline: none; color: #f5f2ec; font-size: 1.1rem; padding-top: .25rem; padding-bottom: .25rem; border: 0; }
.field select option { background: #0a0a0b; color: #f5f2ec; }
.field.filled label, .field:focus-within label { top: .25rem; color: #ff1744; }

/* Reveal base */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Scanlines */
.scanlines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: .5;
}

/* Game card hover */
.game-card { position: relative; overflow: hidden; }
.game-card__title { transition: transform .7s cubic-bezier(.7,0,.3,1); }
.game-card:hover .game-card__title { transform: translateY(-10px); }
.game-card__cta { transform: translateY(100%); transition: transform .5s cubic-bezier(.7,0,.3,1); }
.game-card:hover .game-card__cta { transform: translateY(0); }

/* News card */
.news-img { transition: transform 1.2s cubic-bezier(.7,0,.3,1), filter .6s; filter: grayscale(1) contrast(1.1); }
.news-card:hover .news-img { transform: scale(1.08); filter: grayscale(0) contrast(1); }

/* Nav scrolled */
.nav-scrolled {
  background: rgba(10,10,11,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Page hero (sub-pages) */
.page-hero { position: relative; padding-top: 10rem; padding-bottom: 5rem; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .04; pointer-events: none;
}

/* =========================================================
   Language Switcher (EN / RO) — animated pill toggle
   ========================================================= */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 72px;
  height: 32px;
  padding: 0;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(245,242,236,0.55);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.45s cubic-bezier(.7,0,.3,1),
    background   0.45s cubic-bezier(.7,0,.3,1),
    box-shadow   0.45s cubic-bezier(.7,0,.3,1),
    transform    0.35s cubic-bezier(.7,0,.3,1);
}
.lang-switch:hover {
  border-color: rgba(255,23,68,0.55);
  background: rgba(255,23,68,0.04);
  box-shadow: 0 0 24px -6px rgba(255,23,68,0.45);
}
.lang-switch:active { transform: scale(0.96); }
.lang-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,23,68,0.4), 0 0 24px -6px rgba(255,23,68,0.55);
}

/* ambient rotating conic-gradient glow */
.lang-switch::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255,23,68,0.75) 60deg,
    rgba(255,77,109,0.4) 120deg,
    transparent 200deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  animation: lsSpin 4s linear infinite;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.lang-switch:hover::before { opacity: 1; }
@keyframes lsSpin { to { transform: rotate(360deg); } }

/* static text labels (the ones NOT covered by the thumb) */
.lang-switch__label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  transition: color 0.45s cubic-bezier(.7,0,.3,1), opacity 0.3s ease;
  user-select: none;
  pointer-events: none;
}
.lang-switch__label--en { color: rgba(245,242,236,0.35); opacity: 0; }
.lang-switch__label--ro { color: rgba(245,242,236,0.55); opacity: 1; }

.lang-switch.is-ro .lang-switch__label--en { opacity: 1; color: rgba(245,242,236,0.55); }
.lang-switch.is-ro .lang-switch__label--ro { opacity: 0; }

/* The sliding thumb */
.lang-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: linear-gradient(135deg, #ff1744 0%, #c4102f 100%);
  border-radius: 9999px;
  box-shadow:
    0 2px 10px rgba(255,23,68,0.45),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.55s cubic-bezier(.7,0,.3,1);
  z-index: 2;
  overflow: hidden;
}
.lang-switch.is-ro .lang-switch__thumb {
  transform: translateX(calc(100% + 0px));
}

/* subtle inner sheen on the thumb */
.lang-switch__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(.7,0,.3,1);
}
.lang-switch:hover .lang-switch__thumb::after { transform: translateX(120%); }

/* Text inside the thumb — slides vertically when language changes */
.lang-switch__thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.lang-switch__thumb-text {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: transform 0.55s cubic-bezier(.7,0,.3,1);
}
.lang-switch__thumb-text--en { transform: translateY(0%); }
.lang-switch__thumb-text--ro { transform: translateY(0%); }

.lang-switch.is-ro .lang-switch__thumb-text--en { transform: translateY(-100%); }
.lang-switch.is-ro .lang-switch__thumb-text--ro { transform: translateY(-100%); }

/* small entrance animation on load */
@keyframes lsFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-switch { animation: lsFadeIn 0.6s cubic-bezier(.7,0,.3,1) both; }

/* Mobile menu variant — a touch larger */
#mmenu .lang-switch { width: 88px; height: 38px; font-size: 11px; }
#mmenu .lang-switch__thumb-text { font-size: 11px; }

