:root {
  --swx-ink: #050302;
  --swx-panel: rgba(14, 8, 6, 0.9);
  --swx-gold: #d8a94b;
  --swx-gold-soft: #f6d98e;
  --swx-red: #b71920;
  --swx-red-deep: #5d080d;
  --swx-border: rgba(230, 181, 90, 0.3);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, #050302 0%, #0b0705 46%, #060302 100%) !important;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 18% 16%, rgba(183,25,32,0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(216,169,75,0.11), transparent 30%);
}

.rounded-xl,
.rounded-2xl,
.rounded-lg,
.rounded-md {
  border-radius: 8px !important;
}

header.fixed {
  background:
    linear-gradient(180deg, rgba(6, 3, 2, 0.98), rgba(6, 3, 2, 0.72)) !important;
  border-bottom: 1px solid var(--swx-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

header.fixed::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 217, 142, 0.72), transparent);
}

header.fixed img[alt="Sweex2"] {
  filter: drop-shadow(0 0 16px rgba(216, 169, 75, 0.58));
}

header.fixed nav a,
header.fixed nav button {
  border-radius: 4px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.flex-1 {
  padding-top: 0 !important;
}

main > section:first-of-type {
  min-height: 96svh;
  border-bottom: 1px solid rgba(216, 169, 75, 0.24);
  background: var(--swx-ink);
  box-shadow: inset 0 -120px 130px rgba(5, 3, 2, 0.98);
}

main > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(5,3,2,0.98) 0%, rgba(5,3,2,0.72) 31%, rgba(5,3,2,0.18) 58%, rgba(5,3,2,0.72) 100%),
    linear-gradient(180deg, rgba(5,3,2,0.58) 0%, rgba(5,3,2,0.08) 34%, rgba(5,3,2,0.94) 100%),
    url("/assets/sweex2-premium-hero.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.015);
  transform-origin: center;
  animation: swxHeroBreath 19s ease-in-out infinite;
}

main > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(183,25,32,0.12) 48%, rgba(5,3,2,0.98) 100%),
    repeating-linear-gradient(90deg, rgba(246,217,142,0.025) 0 1px, transparent 1px 90px);
}

main > section:first-of-type > div[aria-hidden="true"] {
  opacity: 0.38;
  mix-blend-mode: screen;
}

main > section:first-of-type > div[aria-hidden="true"] div[class*="rounded-full"][class*="blur"] {
  display: none;
}

main > section:first-of-type > div.relative.mx-auto.flex {
  min-height: 86svh !important;
  max-width: 1220px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  padding-top: clamp(108px, 13svh, 162px) !important;
  padding-bottom: clamp(76px, 9svh, 120px) !important;
}

main > section:first-of-type > div.relative.mx-auto.flex > .animate-float-slow {
  margin: 0 !important;
  animation: swxLogoFloat 7s ease-in-out infinite;
}

main > section:first-of-type > div.relative.mx-auto.flex > .animate-float-slow img {
  height: clamp(130px, 14vw, 220px) !important;
  margin-left: 0 !important;
  filter:
    drop-shadow(0 0 22px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 34px rgba(216, 169, 75, 0.54));
}

main > section:first-of-type h1 {
  margin-top: 16px !important;
  max-width: 780px;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.72),
    0 0 36px rgba(183,25,32,0.5),
    0 0 54px rgba(216,169,75,0.26);
}

main > section:first-of-type h1 span,
.text-gradient-fire,
.text-gradient-gold {
  background: linear-gradient(180deg, #fff4bd 0%, #d8a94b 38%, #bd2730 74%, #5d080d 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

main > section:first-of-type p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
}

main > section:first-of-type > div.relative.mx-auto.flex > p:nth-of-type(1) {
  color: var(--swx-gold-soft) !important;
}

main > section:first-of-type > div.relative.mx-auto.flex > p:nth-of-type(2) {
  max-width: 560px !important;
  color: rgba(246, 231, 192, 0.88) !important;
}

main > section:first-of-type > div.relative.mx-auto.flex > div.mt-8 {
  justify-content: flex-start !important;
}

main > section:first-of-type a[href="/inregistrare"],
main > section:first-of-type a[href="/descarca"],
main > section:first-of-type a[href="/itemshop/"],
main > section:first-of-type a[href="/itemshop"] {
  min-height: 48px !important;
  padding-inline: 28px !important;
  border: 1px solid rgba(246, 217, 142, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 14px 36px rgba(0,0,0,0.42),
    0 0 0 1px rgba(0,0,0,0.5);
}

main > section:first-of-type a[href="/inregistrare"] {
  background: linear-gradient(180deg, #e94a38 0%, #b71920 48%, #5d080d 100%) !important;
}

main > section:first-of-type a[href="/descarca"],
main > section:first-of-type a[href="/itemshop/"],
main > section:first-of-type a[href="/itemshop"] {
  background: linear-gradient(180deg, rgba(39,24,12,0.94), rgba(8,5,3,0.94)) !important;
  color: var(--swx-gold-soft) !important;
}

main > section:first-of-type > div.relative.mx-auto.flex > div.mt-12 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(680px, 100%);
  gap: 12px !important;
  padding: 12px;
  border: 1px solid rgba(216, 169, 75, 0.24);
  background: linear-gradient(180deg, rgba(12,7,5,0.74), rgba(5,3,2,0.82));
  box-shadow: 0 18px 70px rgba(0,0,0,0.48);
  backdrop-filter: blur(10px);
}

main > section:first-of-type > div.relative.mx-auto.flex > div.mt-12.swx-empty-stats {
  display: none !important;
}

main > section:first-of-type > div.relative.mx-auto.flex > div.mt-12 > div {
  border: 1px solid rgba(216, 169, 75, 0.22);
  background: rgba(0,0,0,0.24);
}

.swx-hero-character {
  position: absolute;
  right: max(2vw, 22px);
  bottom: -38px;
  z-index: -1;
  width: min(38vw, 610px);
  max-height: 88svh;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.96;
  transform-origin: 50% 100%;
  filter:
    drop-shadow(0 34px 46px rgba(0,0,0,0.82))
    drop-shadow(0 0 28px rgba(216,169,75,0.26))
    drop-shadow(0 0 34px rgba(183,25,32,0.22));
  animation: swxCharacterFloat 6.8s ease-in-out infinite;
}

.swx-hero-glow {
  position: absolute;
  right: 4vw;
  bottom: 6vh;
  z-index: -2;
  width: min(36vw, 520px);
  height: min(36vw, 520px);
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 72%, rgba(183,25,32,0.34), transparent 36%),
    radial-gradient(circle at 72% 28%, rgba(46,172,255,0.28), transparent 34%),
    radial-gradient(circle, rgba(216,169,75,0.16), transparent 58%);
  filter: blur(14px);
  animation: swxGlowPulse 3.8s ease-in-out infinite;
}

.swx-ember-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.swx-ember-field span {
  position: absolute;
  bottom: -4vh;
  width: 2px;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(246,217,142,0), rgba(246,217,142,0.9), rgba(183,25,32,0));
  box-shadow: 0 0 14px rgba(216,169,75,0.7);
  opacity: 0;
  animation: swxEmberRise var(--swx-duration, 9s) linear infinite;
  animation-delay: var(--swx-delay, 0s);
}

main > section:not(:first-of-type) {
  position: relative;
}

main > section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: 0 50% auto 50%;
  width: 100vw;
  height: 1px;
  margin-left: -50vw;
  background: linear-gradient(90deg, transparent, rgba(216, 169, 75, 0.24), transparent);
  pointer-events: none;
}

main > section:nth-of-type(2) {
  padding-top: clamp(56px, 7vw, 92px) !important;
}

main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden {
  min-height: 218px;
  padding: 22px !important;
  border-color: rgba(216, 169, 75, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(10,7,5,0.48), rgba(5,3,2,0.95)),
    var(--swx-card-image, url("/assets/sweex2-premium-city.jpg")) !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 22px 60px rgba(0,0,0,0.38);
}

main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(1),
main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(4) {
  --swx-card-image: url("/assets/sweex2-premium-hero.jpg");
}

main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(2),
main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(5) {
  --swx-card-image: url("/assets/sweex2-premium-boss.jpg");
}

main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(3),
main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden:nth-child(6) {
  --swx-card-image: url("/assets/sweex2-premium-city.jpg");
}

main > section:nth-of-type(2) .grid > .group.relative.overflow-hidden > div:first-child {
  display: none;
}

.border,
.border-border,
.border-border\/60,
.border-border\/70 {
  border-color: rgba(216, 169, 75, 0.22) !important;
}

.bg-card,
.bg-card\/40,
.bg-card\/60 {
  background-color: var(--swx-panel) !important;
}

.hover-glow-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(246,217,142,0.5),
    0 16px 44px rgba(0,0,0,0.45),
    0 0 32px rgba(216,169,75,0.28) !important;
}

.swx-world-strip {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 32px));
  margin: -120px auto 24px;
}

.swx-world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.swx-world-card,
.swx-news-card,
.swx-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(216, 169, 75, 0.3);
  background:
    linear-gradient(180deg, rgba(6,4,3,0.06), rgba(6,4,3,0.9)),
    var(--swx-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 62px rgba(0,0,0,0.46);
}

.swx-world-card,
.swx-news-card {
  min-height: 224px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.swx-world-card:hover,
.swx-news-card:hover,
.swx-gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(246,217,142,0.58);
  box-shadow: 0 30px 76px rgba(0,0,0,0.58), 0 0 32px rgba(216,169,75,0.18);
}

.swx-world-card::before,
.swx-news-card::before,
.swx-gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.swx-world-card::after,
.swx-news-card::after,
.swx-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 42%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.swx-world-card:hover::after,
.swx-news-card:hover::after,
.swx-gallery-item:hover::after {
  transform: translateX(120%);
}

.swx-world-card > div,
.swx-news-card > div {
  position: relative;
  z-index: 1;
}

.swx-world-card p,
.swx-news-card p {
  color: rgba(246, 231, 192, 0.84);
}

.swx-kicker {
  color: var(--swx-gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.swx-world-card h3,
.swx-news-card h3 {
  margin-top: 4px;
  color: #fff4c7;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0,0,0,0.9);
}

.swx-gallery-item {
  min-height: 190px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.swx-gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff4c7;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0,0,0,0.92);
}

section .rounded-2xl > .absolute[class*="rounded-full"] {
  display: none;
}

section .rounded-2xl {
  background:
    linear-gradient(110deg, rgba(93,8,13,0.74), rgba(16,10,7,0.94) 48%, rgba(143,98,49,0.28)),
    url("/assets/sweex2-premium-city.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  border-color: rgba(216, 169, 75, 0.38) !important;
}

@keyframes swxHeroBreath {
  0%, 100% { transform: scale(1.015); }
  50% { transform: scale(1.04); }
}

@keyframes swxLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes swxCharacterFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.6deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(0.5deg); }
}

@keyframes swxGlowPulse {
  0%, 100% { opacity: 0.58; transform: scale(0.96); }
  50% { opacity: 0.94; transform: scale(1.06); }
}

@keyframes swxEmberRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(12deg); }
  16% { opacity: 0.78; }
  100% { opacity: 0; transform: translate3d(var(--swx-drift, 28px), -106vh, 0) rotate(34deg); }
}

@media (max-width: 1100px) {
  .swx-hero-character {
    right: -80px;
    width: min(48vw, 520px);
    opacity: 0.68;
  }
}

@media (max-width: 900px) {
  main > section:first-of-type {
    min-height: auto;
  }

  main > section:first-of-type::before {
    background-position: 62% top;
  }

  main > section:first-of-type > div.relative.mx-auto.flex {
    min-height: 86svh !important;
    align-items: center !important;
    text-align: center !important;
    padding-top: 100px !important;
  }

  main > section:first-of-type > div.relative.mx-auto.flex > .animate-float-slow img {
    margin-inline: auto !important;
  }

  main > section:first-of-type > div.relative.mx-auto.flex > div.mt-8 {
    justify-content: center !important;
  }

  main > section:first-of-type > div.relative.mx-auto.flex > div.mt-12 {
    grid-template-columns: 1fr;
  }

  .swx-hero-character {
    right: 50%;
    bottom: -52px;
    width: min(68vw, 380px);
    opacity: 0.32;
    transform: translateX(50%);
    animation: none;
  }

  .swx-hero-glow {
    right: 50%;
    bottom: 8vh;
    width: 360px;
    height: 360px;
    transform: translateX(50%);
  }

  .swx-world-strip {
    margin-top: -72px;
  }

  .swx-world-grid {
    grid-template-columns: 1fr;
  }

  .swx-world-card,
  .swx-news-card,
  .swx-gallery-item {
    min-height: 190px;
  }
}
