/* 전술장비 페이지 전용 스타일입니다. */
.sf-guide-page {
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sf-guide-header,
.sf-guide-footer,
.sf-guide-hero,
.sf-guide-primary-tabs,
.sf-tactical {
  --guide-shell: min(1720px, calc(100vw - 80px));
}

.sf-guide-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #10131a;
}

.sf-guide-header__inner,
.sf-guide-footer__inner,
.sf-guide-primary-tabs,
.sf-guide-hero,
.sf-tactical {
  width: var(--guide-shell);
  margin: 0 auto;
}

.sf-guide-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 92px;
}

.sf-guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf-guide-header #site-navigation {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}

.sf-guide-header #site-navigation a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.sf-guide-header #site-navigation a[aria-current="page"] {
  color: #f1bb1d;
}

.sf-guide-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  background: linear-gradient(110deg, #ffc000 0%, #ffa600 100%);
  box-shadow: inset 0 4px 2px rgba(255, 255, 255, 0.4);
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.sf-guide-header .site-menu-button {
  display: none;
  justify-self: end;
  background: transparent;
  color: #ffffff;
}

.sf-guide-main {
  padding: 40px 0 120px;
}

.sf-guide-hero {
  position: relative;
  min-height: 400px;
  margin-bottom: 68px;
  overflow: visible;
  border-radius: 30px;
  background: #111111;
}

.sf-guide-hero__media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.sf-guide-hero__bg,
.sf-guide-hero__vehicle,
.sf-guide-hero__bottom {
  position: absolute;
  pointer-events: none;
}

.sf-guide-hero__bg--base,
.sf-guide-hero__bg--overlay {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.sf-guide-hero__bg--overlay {
  mix-blend-mode: screen;
  opacity: 0.68;
}

.sf-guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.75) 100%);
}

.sf-guide-hero__vehicle--truck {
  top: -320px;
  right: 195px;
  z-index: 3;
  width: min(80vw, 1350px);
  transform: rotate(9deg);
}

.sf-guide-hero__vehicle--heli {
  right: 110px;
  top: -35px;
  z-index: 2;
  width: min(46vw, 720px);
  transform: rotate(-11deg);
}

.sf-guide-hero__bottom {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  border-radius: inherit;
}

.sf-guide-hero__copy {
  position: absolute;
  top: 205px;
  left: 65px;
  z-index: 4;
  max-width: 540px;
  color: #ffffff;
}

.sf-guide-hero h1 {
  margin: 0 0 26px;
  font-size: 40px;
  line-height: 1.2;
}

.sf-guide-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.5;
}

.sf-guide-primary-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid #eeeff3;
  background: #f6f6f6;
}

.sf-guide-primary-tabs a {
  display: grid;
  min-height: 68px;
  place-items: center;
  color: #3b3d45;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.sf-guide-primary-tabs a[aria-current="page"] {
  background: #f1bb1d;
  color: #000000;
  font-weight: 800;
  /* 게임정보 탭의 선택 표시와 같은 하단 강조선을 사용합니다. */
  box-shadow: inset 0 -2px #30333d;
}

.sf-tactical__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.sf-tactical__category-button {
  min-width: 118px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #dbdce0;
  border-radius: 999px;
  color: #666a75;
  font-size: 14px;
  font-weight: 800;
}

.sf-tactical__category-button[aria-pressed="true"] {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

.sf-tactical__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 620px);
  gap: 24px 34px;
  padding: 38px 38px 34px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 74% 18%, rgba(241, 187, 29, 0.18), transparent 22%),
    linear-gradient(140deg, #0f1117 0%, #0a0c12 54%, #090b10 100%);
  color: #ffffff;
}

.sf-tactical__panel-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.sf-tactical__eyebrow {
  margin: 0 0 12px;
  color: #f1bb1d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sf-tactical__panel-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.08;
}

.sf-tactical__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.sf-tactical__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.sf-tactical__stat {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.sf-tactical__stat dt {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.sf-tactical__stat dd {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.sf-tactical__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.sf-tactical__watermark {
  position: absolute;
  top: 12px;
  right: 20px;
  color: rgba(241, 187, 29, 0.28);
  font-size: clamp(120px, 13vw, 220px);
  font-weight: 900;
  line-height: 0.8;
}

.sf-tactical__hero img {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.42));
}

.sf-tactical__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sf-tactical__card {
  position: relative;
  padding: 18px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-align: left;
  transition: border-color 180ms ease;
}

.sf-tactical__card:hover {
  transform: none;
}

.sf-tactical__card[aria-pressed="true"] {
  border-color: rgba(241, 187, 29, 0.92);
  background: linear-gradient(180deg, rgba(241, 187, 29, 0.16), rgba(255, 255, 255, 0.05));
}

.sf-tactical__card[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 12px solid rgba(241, 187, 29, 0.92);
  border-left: 10px solid transparent;
  transform: translateX(-50%);
}

.sf-tactical__card-visual {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.sf-tactical__card-visual img {
  width: min(100%, 110px);
  max-height: 92px;
  object-fit: contain;
}

.sf-tactical__card-mark {
  display: inline-flex;
  margin-bottom: 10px;
  color: #f1bb1d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sf-tactical__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.sf-tactical__card span:last-child {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .sf-guide-main {
    padding-bottom: 88px;
  }

  .sf-guide-header__inner {
    grid-template-columns: auto auto;
    gap: 14px;
    min-height: 82px;
  }

  .sf-guide-header #site-navigation {
    display: none;
  }

  .sf-guide-header .site-menu-button {
    display: inline-flex;
  }

  .sf-guide-start {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sf-guide-hero {
    min-height: 300px;
    margin-bottom: 34px;
  }

  .sf-guide-hero__copy {
    top: auto;
    bottom: 34px;
    left: 30px;
    right: 30px;
    max-width: none;
  }

  .sf-guide-hero__vehicle--truck {
    top: -120px;
    right: 24px;
    width: min(108vw, 780px);
  }

  .sf-guide-hero__vehicle--heli {
    top: 10px;
    right: -20px;
    width: min(56vw, 420px);
  }

  .sf-guide-primary-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 3열로 접히는 시점부터 게임정보 탭과 같은 항목 높이·글자 크기를 씁니다. */
  .sf-guide-primary-tabs a {
    min-height: 56px;
    font-size: 15px;
  }

  .sf-tactical__panel {
    grid-template-columns: 1fr;
    padding: 30px 22px 24px;
  }

  .sf-tactical__hero {
    min-height: 260px;
  }

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

@media (max-width: 720px) {
  .sf-guide-header,
  .sf-guide-footer,
  .sf-guide-hero,
  .sf-guide-primary-tabs,
  .sf-tactical {
    --guide-shell: min(100vw - 24px, 100%);
  }

  .sf-guide-hero__copy {
    left: 22px;
    right: 22px;
  }

  .sf-guide-hero__copy p:last-child {
    font-size: 16px;
  }

  .sf-tactical__categories {
    gap: 10px;
  }

  .sf-tactical__category-button {
    flex: 1 1 calc(50% - 5px);
  }

  .sf-tactical__stats,
  .sf-tactical__cards {
    grid-template-columns: 1fr;
  }

  .sf-tactical__panel-copy h2 {
    font-size: 30px;
  }

  .sf-tactical__summary {
    font-size: 16px;
  }
}

/* 제공된 원본 이미지 비율을 기준으로 전술장비 패널을 구성합니다. */
.sf-tactical__mode-tabs {
  display: grid;
  width: min(600px, calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 56px;
  padding: 5px;
  border-radius: 7px;
  background: #f5f5f8;
}

.sf-tactical__mode-tabs button {
  min-height: 42px;
  border-radius: 5px;
  background: transparent;
  color: #8b8d95;
  font-size: 14px;
}

.sf-tactical__mode-tabs button[aria-pressed="true"] {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 19, 26, 0.08);
  color: #2c2f38;
  font-weight: 700;
}

.sf-tactical {
  width: min(86%, 1540px);
  margin-top: 0;
  margin-inline: auto;
}

.sf-tactical__panel {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1720 / 1084;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #05080d url("/Content/img/tactical/bg.png") center / 100% 100% no-repeat;
  color: #ffffff;
}

.sf-tactical__panel::before {
  display: none;
}

.sf-tactical__panel-copy {
  position: absolute;
  z-index: 2;
  top: 34.5%;
  left: 5.4%;
  width: 38%;
  max-width: 620px;
}

.sf-tactical__panel-copy h2 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(32px, 3.3vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.sf-tactical__summary {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.25vw, 22px);
  font-weight: 600;
  line-height: 1.7;
  white-space: pre-line;
}

.sf-tactical__eyebrow,
.sf-tactical__stats,
.sf-tactical__categories,
.sf-tactical__watermark {
  display: none;
}

.sf-tactical__hero {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: 6%;
  display: grid;
  width: 50%;
  height: 46%;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 0;
  background: transparent;
}

.sf-tactical__hero img {
  display: block;
  width: 68%;
  height: 70%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.6));
  transform: none;
}

.sf-tactical__hero img[data-item-id="flash-grenade"] {
  width: 52%;
}

.sf-tactical__hero img[data-item-id="tactical-axe"] {
  width: 64%;
}

.sf-tactical__hero img[data-item-id="desert-eagle"] {
  width: 72%;
}

.sf-tactical__hero img[data-item-id="ied"] {
  width: 54%;
}

.sf-tactical__hero img[data-item-id="recon-drone"] {
  width: 62%;
}

.sf-tactical__carousel {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  border: 0;
  background: #000000;
}

.sf-tactical__carousel-viewport {
  overflow: hidden;
}

.sf-tactical__cards {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.sf-tactical__card {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 355 / 273;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
}

.sf-tactical__card::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  content: "";
  pointer-events: none;
}

.sf-tactical__card:hover::after,
.sf-tactical__card:focus-visible::after {
  border: 3px solid rgba(241, 187, 29, 0.78);
}

.sf-tactical__card[aria-pressed="true"]::after,
.sf-tactical__card.is-selected::after {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 7px solid #f1bb1d;
  content: "";
  transform: none;
}

.sf-tactical__card[aria-pressed="true"],
.sf-tactical__card.is-selected {
  z-index: 4;
  box-shadow: inset 0 0 0 7px #f1bb1d;
}

.sf-tactical__card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -9px;
}

.sf-tactical__card-visual {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 0;
  background: #000000;
}

.sf-tactical__card-visual img {
  display: block;
  width: 78%;
  height: 78%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.sf-tactical__card[data-item-id="flash-grenade"] .sf-tactical__card-visual img {
  width: 58%;
  height: 78%;
}

.sf-tactical__card[data-item-id="tactical-axe"] .sf-tactical__card-visual img {
  width: 82%;
  height: 72%;
}

.sf-tactical__card[data-item-id="desert-eagle"] .sf-tactical__card-visual img {
  width: 82%;
  height: 62%;
}

.sf-tactical__card[data-item-id="ied"] .sf-tactical__card-visual img {
  width: 64%;
  height: 78%;
}

.sf-tactical__card[data-item-id="recon-drone"] .sf-tactical__card-visual img {
  width: 72%;
  height: 78%;
}

.sf-tactical__card strong,
.sf-tactical__card-mark,
.sf-tactical__card span:last-child {
  display: none;
}

.sf-tactical__selection-arrow {
  position: relative;
  height: clamp(48px, 6.4vw, 110px);
  overflow: hidden;
  border-bottom: 7px solid #f1bb1d;
  background: #000000;
}

.sf-tactical__selection-arrow img {
  display: none;
}

.sf-tactical__selection-arrow::after {
  position: absolute;
  bottom: -1px;
  left: calc((var(--active-index, 2) + 0.5) * 20%);
  width: 0;
  height: 0;
  border-right: clamp(36px, 4.4vw, 76px) solid transparent;
  border-bottom: clamp(46px, 5.8vw, 100px) solid #f1bb1d;
  border-left: clamp(36px, 4.4vw, 76px) solid transparent;
  content: "";
  transform: translateX(-50%);
  transition: left 220ms ease;
}

@media (max-width: 1023px) {
  .sf-tactical__mode-tabs {
    margin-bottom: 36px;
  }

  .sf-tactical__panel-copy h2 {
    margin-bottom: 18px;
  }

  .sf-tactical__summary {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .sf-tactical {
    width: 100%;
  }

  .sf-tactical__mode-tabs {
    width: min(100vw - 24px, 100%);
    margin-bottom: 28px;
  }

  .sf-tactical__panel {
    min-height: 720px;
    aspect-ratio: auto;
    background-size: cover;
  }

  .sf-tactical__panel-copy {
    top: 7%;
    right: 24px;
    left: 24px;
    width: auto;
    max-width: none;
  }

  .sf-tactical__panel-copy h2 {
    margin-bottom: 14px;
    font-size: 36px;
  }

  .sf-tactical__summary {
    font-size: 14px;
    line-height: 1.55;
  }

  .sf-tactical__hero {
    top: 27%;
    right: 4%;
    width: 92%;
    height: 33%;
  }

  .sf-tactical__hero img {
    width: 90%;
    height: 90%;
  }

  .sf-tactical__carousel-viewport {
    overflow: hidden;
  }

  .sf-tactical__cards {
    width: max-content;
    display: flex;
    flex-wrap: nowrap;
  }

  .sf-tactical__selection-arrow {
    display: block;
  }
}

/* 설명은 문장별 한 줄을 유지해 반응형에서도 중간에서 꺾이지 않습니다. */
.sf-tactical__summary {
  max-width: none;
  white-space: pre;
}

/* 중앙 노란 삼각형은 고정하고 장비 카드 트랙만 이동합니다. */
.sf-tactical__carousel-viewport {
  overflow: hidden;
}

.sf-tactical__cards {
  display: flex;
  width: 300%;
  flex-wrap: nowrap;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.sf-tactical__cards.is-animating {
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sf-tactical__card {
  flex: 0 0 calc(100% / 15);
}

.sf-tactical__selection-arrow::after {
  left: 50%;
}

@media (max-width: 720px) {
  .sf-tactical__cards {
    width: max-content;
  }

  .sf-tactical__card {
    flex: 0 0 190px;
  }
}

/* 투명 여백이 큰 원본 캔버스의 시각적 중심을 카드 중앙에 맞춥니다. */
.sf-tactical__hero img[data-item-id="flash-grenade"] {
  transform: translateX(15%);
}

.sf-tactical__hero img[data-item-id="recon-drone"] {
  transform: translateX(-19%);
}

.sf-tactical__card[data-item-id="flash-grenade"] .sf-tactical__card-visual img {
  transform: translateX(14%);
}

.sf-tactical__card[data-item-id="recon-drone"] .sf-tactical__card-visual img {
  transform: translateX(-19%);
}

@media (max-width: 1023px) {
  .sf-tactical__panel-copy {
    width: 47%;
    max-width: none;
  }

  .sf-tactical__summary {
    font-size: clamp(11px, 1.35vw, 14px);
  }
}

@media (max-width: 720px) {
  .sf-tactical__panel-copy {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .sf-tactical__summary {
    overflow: hidden;
    font-size: clamp(9px, 2.7vw, 12px);
  }
}
