/**
 * [RS] Rogue Soldiers - Components
 * Reusable site-wide components. Add cards, forms, badges, tables, modals, etc. here.
 */

/* =====================================================
       BUTTONS
    ====================================================== */

    .btn-rs-primary,
    .btn-rs-secondary {

      border-radius: 0;

      padding:
        13px
        22px;

      font-size: .68rem;

      font-weight: 800;

      letter-spacing: .15em;

      text-transform: uppercase;

    }


    .btn-rs-primary {

      border:
        1px solid
        var(--red);

      background:
        var(--red);

      color: #fff;

    }


    .btn-rs-primary:hover {

      border-color:
        var(--red-bright);

      background:
        var(--red-bright);

      color: #fff;

    }


    .btn-rs-secondary {

      border:
        1px solid
        rgba(255,255,255,.18);

      color:
        rgba(255,255,255,.80);

      background:
        rgba(0,0,0,.16);

    }


    .btn-rs-secondary:hover {

      border-color:
        var(--red-border);

      color: #fff;

      background:
        rgba(189,0,0,.09);

    }

/* =====================================================
   HERO
   Canonical site-wide hero. Game pages use this exact structure.
===================================================== */
.hero {
  position: relative;
  min-height: var(--hero-min-height, 88vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080808;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width:100%; height:100%; object-fit:cover;
  object-position:var(--hero-image-position, center);
  filter:brightness(var(--hero-image-brightness,.53)) saturate(var(--hero-image-saturation,.72)) contrast(var(--hero-image-contrast,1.08));
  transform:scale(var(--hero-image-scale,1));
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(to bottom,rgba(5,5,5,.12) 0%,rgba(5,5,5,.18) 38%,rgba(5,5,5,.82) 79%,var(--bg) 100%),
    linear-gradient(to right,rgba(0,0,0,.82),rgba(0,0,0,.27) 56%,rgba(0,0,0,.48));
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(circle at var(--hero-accent-x,28%) var(--hero-accent-y,58%),rgba(189,0,0,var(--hero-accent-alpha,.17)),transparent 43%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--hero-grid-opacity, .075);
  background-image:
    linear-gradient(rgba(255,255,255,var(--hero-grid-line-alpha,.05)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,var(--hero-grid-line-alpha,.05)) 1px, transparent 1px);
  background-size:
    var(--hero-grid-size, 72px)
    var(--hero-grid-size, 72px);
}
.hero-container {
  position:relative; z-index:3; width:min(calc(100% - 32px),var(--container-max)); margin-inline:auto;
  padding-top:165px; padding-bottom:76px;
}
.hero-eyebrow {
  display:flex; align-items:center; gap:10px; margin-bottom:20px; color:var(--red-bright);
  font-size:.67rem; font-weight:800; letter-spacing:.30em; text-transform:uppercase;
}
.hero-eyebrow-dot {
  width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--red-bright);
  box-shadow:0 0 12px rgba(224,0,0,.72);
}
.hero-title {
  max-width: var(--hero-title-max, 1100px);
  margin: 0;
  color: #fff;
  font-size: var(--hero-title-size, clamp(4rem,8.1vw,7.8rem));
  font-weight: 900;
  line-height: var(--hero-title-line-height, .84);
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.hero-title span { display:block; color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.40); }
.hero-copy {
  max-width: var(--hero-copy-max, 720px);
  margin-top: var(--hero-copy-margin, 29px);
  color: var(--hero-copy-color, rgba(255,255,255,.57));
  font-size: var(--hero-copy-size, .98rem);
  line-height: var(--hero-copy-line-height, 1.84);
}
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.hero-actions .site-btn { gap:8px; }
@media (max-width:767.98px) {
  .hero { min-height:auto; }
  .hero-container { padding-top:150px; padding-bottom:65px; }
  .hero-title {
    font-size: var(--hero-title-mobile-size, clamp(3.4rem,16vw,5.2rem));
  }
  .hero-copy {
    font-size: var(--hero-copy-mobile-size, .92rem);
  }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-actions .site-btn { width:100%; }
}

/* =====================================================
   SITE BUTTON ALIAS
   Lets older pages migrate without keeping a second design.
===================================================== */

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.16);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.site-btn:hover {
  border-color: var(--red-border);
  color: #fff;
  background: rgba(189,0,0,.09);
}
.site-btn.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.site-btn.primary:hover {
  border-color: var(--red-bright);
  background: var(--red-bright);
}


/* =====================================================
       ABOUT
    ====================================================== */

    .about-panel {

      height: 100%;

      padding: 36px;

      border:
        1px solid
        var(--border);

      background:

        linear-gradient(
          145deg,
          rgba(255,255,255,.018),
          rgba(255,255,255,.003)
        );

    }


    .about-icon {

      width: 44px;
      height: 44px;

      display: flex;

      align-items: center;
      justify-content: center;

      margin-bottom: 25px;

      border:
        1px solid
        var(--red-border);

      color:
        var(--red-bright);

      background:
        rgba(189,0,0,.07);

      font-size: 1.1rem;

    }


    .about-title {

      color: #fff;

      font-size: 1.2rem;

      font-weight: 700;

    }


    .about-copy {

      margin-top: 12px;

      color:
        rgba(255,255,255,.40);

      font-size: .88rem;

      line-height: 1.75;

    }


/* =====================================================
       ACTIVITY
    ====================================================== */

    .activity-card {

      height: 100%;

      padding: 30px;

      border:
        1px solid
        var(--border);

      background:
        #0e0e0e;

    }


    .activity-value {

      color: #fff;

      font-size: 2.25rem;

      font-weight: 800;

    }


    .activity-title {

      margin-top: 5px;

      color:
        rgba(255,255,255,.28);

      font-size: .62rem;

      font-weight: 700;

      letter-spacing: .18em;

      text-transform:
        uppercase;

    }


/* =====================================================
       JOIN
    ====================================================== */

    .join-card {

      height: 100%;

      padding: 32px;

      border:
        1px solid
        var(--border);

      background:

        linear-gradient(
          145deg,
          rgba(189,0,0,.05),
          rgba(255,255,255,.01)
        );

    }


    .join-number {

      color:
        var(--red-bright);

      font-size: .62rem;

      font-weight: 800;

      letter-spacing: .20em;

    }


    .join-title {

      margin-top: 18px;

      color: #fff;

      font-size: 1.08rem;

      font-weight: 700;

    }


    .join-copy {

      margin-top: 11px;

      color:
        rgba(255,255,255,.38);

      font-size: .83rem;

      line-height: 1.7;

    }


/* =====================================================
   QUICK INFO
===================================================== */

.quick-info-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 1px;

    margin-top: 45px;

    border:
        1px solid
        var(--border-soft);

    background:
        var(--border-soft);

}


.quick-info-item {

    min-height: 155px;

    padding: 25px;

    background:
        #0d0d0d;

}


.quick-info-icon {

    color:
        var(--red-bright);

    font-size: 1rem;

}


.quick-info-label {

    margin-top: 19px;

    color:
        rgba(255,255,255,.25);

    font-size: .55rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

}


.quick-info-value {

    margin-top: 7px;

    color: #fff;

    font-size: .88rem;

    font-weight: 700;

}


/* =====================================================
   FEATURES
===================================================== */

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 17px;

    margin-top: 48px;

}


.feature-card {

    min-height: 245px;

    padding: 29px;

    border:
        1px solid
        var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.014),
            rgba(255,255,255,.003)
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;

}


.feature-card:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--red-border);

    background:
        linear-gradient(
            145deg,
            rgba(189,0,0,.055),
            rgba(255,255,255,.004)
        );

}


.feature-card-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

}


.feature-card-title {

    margin-top: 23px;

    color: #fff;

    font-size: .96rem;

    font-weight: 800;

}


.feature-card-copy {

    margin-top: 10px;

    color:
        rgba(255,255,255,.36);

    font-size: .76rem;

    line-height: 1.68;

}


/* =====================================================
   RULES
===================================================== */

.rule-list {

    margin-top: 45px;

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

}


.rule-row {

    display: grid;

    grid-template-columns:
        44px
        minmax(0,1fr);

    gap: 16px;

    padding:
        22px
        24px;

    border-bottom:
        1px solid
        var(--border-soft);

}


.rule-row:last-child {
    border-bottom: 0;
}


.rule-number {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

    font-size: .58rem;

    font-weight: 800;

}


.rule-title {

    color: #fff;

    font-size: .82rem;

    font-weight: 700;

}


.rule-copy {

    margin-top: 6px;

    color:
        rgba(255,255,255,.35);

    font-size: .72rem;

    line-height: 1.62;

}


/* =====================================================
   DISCORD TOOLS
===================================================== */

.community-tool-grid {

    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 1px;

    margin-top: 47px;

    border:
        1px solid
        var(--border-soft);

    background:
        var(--border-soft);

}


.community-tool {

    min-height: 205px;

    padding: 27px;

    background:
        #0d0d0d;

}


.community-tool i {

    color:
        var(--red-bright);

    font-size: 1rem;

}


.community-tool-title {

    margin-top: 21px;

    color: #fff;

    font-size: .89rem;

    font-weight: 700;

}


.community-tool-copy {

    margin-top: 8px;

    color:
        rgba(255,255,255,.33);

    font-size: .72rem;

    line-height: 1.62;

}


/* =====================================================
   FINAL CTA
===================================================== */

.final-cta {

    position: relative;

    overflow: hidden;

    padding:
        90px
        0;

    border-top:
        1px solid
        var(--border);

    background:

        radial-gradient(
            circle at 78% 50%,
            rgba(189,0,0,.16),
            transparent 32%
        ),

        #090909;

}


.final-cta-grid {

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: 50px;

    align-items: center;

}


.final-cta-title {

    margin: 0;

    color: #fff;

    font-size:
        clamp(
            2.2rem,
            4vw,
            4.2rem
        );

    font-weight: 900;

    line-height: .95;

    letter-spacing: -.045em;

    text-transform: uppercase;

}


.final-cta-copy {

    max-width: 720px;

    margin-top: 15px;

    color:
        rgba(255,255,255,.39);

    font-size: .79rem;

    line-height: 1.7;

}


.final-cta-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}


/* =====================================================
   HERO DECORATIVE LAYERS
===================================================== */

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--hero-lines-opacity, .30);
  pointer-events: none;
  background:
    repeating-linear-gradient(
      var(--hero-lines-angle, 115deg),
      transparent 0,
      transparent var(--hero-lines-gap, 94px),
      rgba(255,255,255,var(--hero-lines-alpha,.022)) var(--hero-lines-start, 95px),
      rgba(255,255,255,var(--hero-lines-alpha,.022)) var(--hero-lines-end, 96px)
    );
}

.hero-mark {
  position: absolute;
  right: var(--hero-mark-right, -2vw);
  bottom: var(--hero-mark-bottom, 2vh);
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,var(--hero-mark-opacity,.045));
  font-size: var(--hero-mark-size, clamp(13rem,26vw,30rem));
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.09em;
  pointer-events: none;
  user-select: none;
}


/* =====================================================
   SERVER DIRECTORY
   Shared by Ardem, BattleBit and HLL: Vietnam.
===================================================== */

.server-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--border);
  background: var(--border);
}

.server-tab {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 20px 22px;
  border: 0;
  color: inherit;
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.server-tab:hover {
  background: rgba(255,255,255,.025);
}

.server-tab:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: -2px;
}

.server-tab.active {
  background: linear-gradient(120deg, rgba(189,0,0,.12), var(--surface) 50%);
}

.server-tab-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: rgba(255,255,255,.38);
  background: var(--surface-soft);
}

.server-tab.active .server-tab-icon {
  border-color: var(--red-border);
  color: var(--red-bright);
  background: var(--red-soft);
}

.server-tab-label {
  color: rgba(255,255,255,.25);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.server-tab-title {
  margin-top: 5px;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.server-tab-arrow {
  color: rgba(255,255,255,.18);
}

.server-tab.active .server-tab-arrow {
  color: var(--red-bright);
}

.server-panel {
  display: none;
  padding-top: 55px;
}

.server-panel.active {
  display: block;
}

.server-heading {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 65px;
  align-items: start;
}

.server-heading > * {
  min-width: 0;
}

.server-heading-label {
  color: var(--red-bright);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.server-heading-title {
  margin-top: 11px;
  color: #fff;
  font-size: clamp(2rem,4vw,4.1rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.server-heading-copy {
  max-width: 780px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.75;
}

.server-style-panel {
  padding-left: 28px;
  border-left: 1px solid var(--red-border);
}

.server-style-label {
  color: rgba(255,255,255,.28);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.server-style-title {
  margin-top: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.server-style-copy {
  margin-top: 10px;
  color: rgba(255,255,255,.37);
  font-size: .74rem;
  line-height: 1.65;
}

.server-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}


/* =====================================================
   CONNECT PANEL
   Shared connection/server-browser callout.
===================================================== */

.connect-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 50px;
  align-items: center;
  min-width: 0;
  margin-top: 48px;
  padding: 36px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(189,0,0,.06), var(--surface) 42%);
}

.connect-panel > * {
  min-width: 0;
}

.connect-label {
  color: var(--red-bright);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.connect-title {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(1.7rem,3vw,3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.connect-copy {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255,255,255,.39);
  font-size: .76rem;
  line-height: 1.7;
}


/* =====================================================
   VIDEO GRID
   Shared responsive video presentation.
===================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--component-gap);
  margin-top: 48px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =====================================================
   BENEFIT GRID
   Shared grid shell; card internals remain page-specific.
===================================================== */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--border-soft);
  background: var(--border-soft);
}


/* =====================================================
   SHARED BUTTON EXTENSIONS
===================================================== */

.btn-rs-danger,
.btn-rs-small {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.btn-rs-danger {
  min-height: 44px;
  padding: 0 18px;
  color: #ff9b9b;
  border: 1px solid rgba(224,0,0,.34);
  background: rgba(189,0,0,.06);
  font-size: .64rem;
}

.btn-rs-danger:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.btn-rs-small {
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255,255,255,.67);
  border: 1px solid rgba(255,255,255,.13);
  background: transparent;
  font-size: .52rem;
}

.btn-rs-small:hover {
  color: #fff;
  border-color: var(--red-border);
  background: var(--red-soft);
}

.site-btn:focus-visible,
.btn-rs-primary:focus-visible,
.btn-rs-secondary:focus-visible,
.btn-rs-danger:focus-visible,
.btn-rs-small:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}


/* =====================================================
   SHARED COMPONENT RESPONSIVE RULES
===================================================== */

@media (max-width: 1199.98px) {
  .quick-info-grid,
  .community-tool-grid,
  .benefit-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 991.98px) {
  .final-cta-grid,
  .server-heading,
  .connect-panel {
    grid-template-columns: minmax(0,1fr);
  }

  .server-style-panel {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--red-border);
  }

  .connect-panel {
    gap: 30px;
  }
}

@media (max-width: 767.98px) {
  .quick-info-grid,
  .feature-grid,
  .community-tool-grid,
  .benefit-grid,
  .video-grid,
  .server-tabs {
    grid-template-columns: minmax(0,1fr);
  }

  .final-cta-actions,
  .hero-actions {
    width: 100%;
  }

  .final-cta-actions {
    flex-direction: column;
  }

  .server-tab {
    min-width: 0;
    grid-template-columns: 44px minmax(0,1fr) auto;
    padding: 18px 16px;
  }

  .server-tab-title {
    overflow-wrap: anywhere;
  }

  .server-heading-title {
    font-size: clamp(1.75rem,8.75vw,2.7rem);
  }

  .connect-panel {
    margin-top: 35px;
    padding: 26px 22px;
  }

  .connect-title {
    font-size: clamp(1.7rem,9vw,2.4rem);
  }

  .connect-copy {
    max-width: none;
    font-size: .74rem;
  }

  .hero-mark {
    right: var(--hero-mark-mobile-right, -40px);
    bottom: var(--hero-mark-mobile-bottom, 2vh);
    font-size: var(--hero-mark-mobile-size, 15rem);
  }
}

@media (max-width: 480px) {
  .server-panel {
    padding-top: 40px;
  }

  .server-tab {
    grid-template-columns: 40px minmax(0,1fr);
    gap: 12px;
    padding: 17px 14px;
  }

  .server-tab-arrow {
    display: none;
  }

  .server-tab-icon {
    width: 40px;
    height: 40px;
  }

  .connect-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  .connect-panel {
    padding: 20px 14px;
  }

  .connect-title {
    font-size: 1.65rem;
  }
}
