/* SVG positioning */
.svg-container {
  position: absolute;
}

/* Card container */
.card-container {
  padding: 2px;
  border-radius: 1.5em;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background: linear-gradient(-30deg,
      var(--gradient-color),
      transparent,
      var(--gradient-color)),
    linear-gradient(to bottom,
      var(--color-neutral-900),
      var(--color-neutral-900));

  &[↖️] {
    --f: url(#🌀↖️);
    --electric-border-color: #a0976e;
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
  }
}

/* Inner container */
.inner-container {
  position: relative;
}

/* Border layers */
.border-outer {
  border: 1px solid rgba(160, 151, 110, 0.3);
  border-radius: 1.5em;
  padding-right: .15em;
  padding-bottom: .15em;
}

.main-card {
  width: 16rem;
  aspect-ratio: 7 / 10;
  border-radius: 1.5em;
  margin-top: -4px;
  margin-left: -4px;
  filter: var(--f);
}

/* Glow effects */
.glow-layer-1 {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(1px);
}

.glow-layer-2 {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(4px);
}

/* Overlay effects */
.overlay-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  opacity: 0.6;
  mix-blend-mode: overlay;
  transform: scale(1.1);
  filter: blur(16px);
  background: linear-gradient(-30deg,
      white,
      transparent 30%,
      transparent 70%,
      white);
}

.overlay-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  opacity: 0.3;
  mix-blend-mode: overlay;
  transform: scale(1.1);
  filter: blur(16px);
  background: linear-gradient(-30deg,
      white,
      transparent 30%,
      transparent 70%,
      white);
}

/* Background glow */
.background-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  filter: blur(32px);
  transform: scale(1.1);
  opacity: 0.2;
  z-index: -1;
  background: linear-gradient(-30deg,
      var(--electric-light-color),
      transparent,
      var(--electric-border-color));
}

/* Content container */
.content-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Content sections */
.content-top {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 16px;
  height: 100%;
}

/* Scrollbar glass component — role badge */
.scrollbar-glass {
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.3s ease;
  border-radius: 10px;
  width: fit-content;
  height: fit-content;
  padding: .35em .85em;
  text-transform: uppercase;
  font-family: "Exo", sans-serif;
  font-weight: 700;
  font-size: .7em;
  letter-spacing: 2px;
  color: rgba(183, 168, 106, 0.9);
}

.scrollbar-glass:hover {
  background: radial-gradient(47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.08);
}

.scrollbar-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(150deg,
      rgba(183, 168, 106, 0.4) 16.73%,
      rgba(255, 255, 255, 0.06) 30.2%,
      rgba(255, 255, 255, 0.06) 68.2%,
      rgba(183, 168, 106, 0.5) 81.89%);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Typography */
.soldier-type .title {
  font-family: "Antonio", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: auto;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.description {
  opacity: 0.5;
}