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

/* 기본 가이드 목록에서 이어지는 상세 페이지입니다. */
.sf-basic-detail {
  width: var(--guide-shell);
  margin: 0 auto;
  padding: 0 0 110px;
}

.sf-basic-detail__panel {
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-top: 5px solid #f1bb1d;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 19, 26, 0.1);
}

.sf-basic-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 32px;
  padding: 46px 52px 38px;
  border-bottom: 1px solid #e3e4e7;
}

.sf-basic-detail__header h2 {
  margin: 0;
  color: #10131a;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.sf-basic-detail__lead {
  align-self: end;
  margin: 0;
  color: #5d6069;
  font-size: 16px;
  line-height: 1.75;
}

.sf-basic-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  min-height: 560px;
}

.sf-basic-detail__gallery {
  padding: 38px;
  border-right: 1px solid #e3e4e7;
  background: #11151d;
}

.sf-basic-detail__main-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 1px solid rgba(241, 187, 29, 0.72);
  background: #05070a;
}

.sf-basic-detail__main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-basic-detail__main-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 22px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.sf-basic-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sf-basic-detail__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  background: #05070a;
  cursor: pointer;
}

.sf-basic-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

.sf-basic-detail__thumb.is-active {
  border-color: #f1bb1d;
}

.sf-basic-detail__thumb.is-active img {
  opacity: 1;
}

.sf-basic-detail__copy {
  padding: 42px 44px;
}

.sf-basic-detail__copy h3 {
  margin: 0 0 14px;
  color: #10131a;
  font-size: 24px;
  font-weight: 900;
}

.sf-basic-detail__summary {
  margin: 0 0 30px;
  color: #565a63;
  font-size: 15px;
  line-height: 1.8;
}

.sf-basic-detail__steps {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.sf-basic-detail__steps li {
  position: relative;
  min-height: 38px;
  padding: 8px 0 8px 54px;
  color: #353943;
  font-size: 15px;
  line-height: 1.6;
  counter-increment: guide-step;
}

.sf-basic-detail__steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #f1bb1d;
  color: #10131a;
  content: counter(guide-step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 900;
}

.sf-basic-detail__tip {
  margin-top: 34px;
  padding: 22px 24px;
  border-left: 4px solid #f1bb1d;
  background: #f5f5f6;
}

.sf-basic-detail__tip strong {
  display: block;
  margin-bottom: 8px;
  color: #9e7500;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.sf-basic-detail__tip p {
  margin: 0;
  color: #41454e;
  font-size: 14px;
  line-height: 1.7;
}

.sf-basic-detail__actions {
  display: flex;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid #e3e4e7;
}

.sf-basic-detail__back {
  display: inline-grid;
  min-width: 180px;
  min-height: 48px;
  place-items: center;
  background: #f1bb1d;
  color: #10131a;
  font-size: 15px;
  font-weight: 900;
}

.sf-basic-detail__panel--simple {
  min-height: 570px;
  display: flex;
  flex-direction: column;
}

.sf-basic-detail__panel--simple[hidden] {
  display: none;
}

.sf-basic-detail__simple-body {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: 86px 52px 72px;
}

.sf-basic-detail__simple-kicker {
  margin: 0 0 14px;
  color: #a77d0e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sf-basic-detail__simple-body h2 {
  margin: 0;
  color: #10131a;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.sf-basic-detail__simple-content {
  display: grid;
  gap: 20px;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #e3e4e7;
  color: #454952;
  font-size: 16px;
  line-height: 1.9;
}

.sf-basic-detail__simple-content p {
  margin: 0;
}

.sf-basic-detail__actions--simple {
  margin-top: auto;
}

@media (max-width: 899px) {
  .sf-basic-detail {
    padding: 0 0 72px;
  }

  .sf-basic-detail__header,
  .sf-basic-detail__layout {
    grid-template-columns: 1fr;
  }

  .sf-basic-detail__header {
    padding: 30px 24px;
  }

  .sf-basic-detail__gallery {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #e3e4e7;
  }

  .sf-basic-detail__copy {
    padding: 30px 24px;
  }

  .sf-basic-detail__simple-body {
    padding: 56px 30px 52px;
  }
}

.sf-guide-header,
.sf-guide-footer,
.sf-guide-hero,
.sf-guide-primary-tabs,
.sf-basic-guide,
.sf-basic-detail {
  --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-basic-guide,
.sf-basic-detail {
  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: 28px;
  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-basic-guide__phase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 680px);
  margin: 42px auto 74px;
  padding: 5px;
  border-radius: 10px;
  background: #f5f5f7;
}

.sf-basic-guide__phase-tab {
  min-height: 54px;
  border-radius: 7px;
  color: #777981;
  font-size: 17px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sf-basic-guide__phase-tab[aria-pressed="true"] {
  background: #ffffff;
  color: #26282f;
  box-shadow: 0 3px 9px rgba(17, 17, 17, 0.08);
}

.sf-basic-guide__grid-wrap {
  width: 100%;
  margin: 0 auto;
}

.sf-basic-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.sf-basic-guide__card {
  position: relative;
  aspect-ratio: 400 / 482;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #000000;
  color: #ffffff;
  isolation: isolate;
}

.sf-basic-guide__card:hover,
.sf-basic-guide__card:focus-visible {
  outline: none;
}

.sf-basic-guide__card::before {
  display: none;
}

.sf-basic-guide__card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0 solid #f1bb1d;
  background: transparent;
  content: "";
  pointer-events: none;
  transition: border-width 160ms ease, background-color 160ms ease;
}

/* 선택 상태는 상세 정보만 갱신하고, 피그마처럼 강조는 호버·키보드 포커스에서만 표시합니다. */
.sf-basic-guide__card:hover::after,
.sf-basic-guide__card:focus-visible::after {
  border-width: 7px;
  background: rgba(241, 187, 29, 0.12);
}

.sf-basic-guide__card-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #000000;
}

.sf-basic-guide__card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.88) 100%);
  
}

.sf-basic-guide__card-figure {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

.sf-basic-guide__card:hover .sf-basic-guide__card-figure,
.sf-basic-guide__card:focus-visible .sf-basic-guide__card-figure {
  filter: none;
  transform: none;
}

.sf-basic-guide__card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  box-sizing: border-box;
  padding: 0;
  pointer-events: none;
}

.sf-basic-guide__card-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 28%;
  height: 10%;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: #050505;
  color: #ffffff;
  font-size: clamp(13px, 1.1vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: background-color 180ms ease, color 180ms ease;
}

.sf-basic-guide__card:hover .sf-basic-guide__card-tag,
.sf-basic-guide__card:focus-visible .sf-basic-guide__card-tag {
  background: #f1bb1d;
  color: #111111;
}

.sf-basic-guide__card-footer {
  position: absolute;
  right: 7.25%;
  bottom: 6.6%;
  left: 7.25%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  transition: color 180ms ease;
  background-color:#000;
  padding:4px 10px;
}

.sf-basic-guide__card-title {
  font-size: clamp(20px, 1.65vw, 32px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.sf-basic-guide__card-arrow {
  font-size: clamp(30px, 2.35vw, 48px);
  font-weight: 300;
  line-height: 0.8;
  transition: transform 180ms ease;
}

.sf-basic-guide__card:hover .sf-basic-guide__card-arrow,
.sf-basic-guide__card:focus-visible .sf-basic-guide__card-arrow {
  transform: translateX(6px);
}

@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-basic-guide__grid {
    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-basic-guide,
  .sf-basic-detail {
    --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-basic-guide__phase-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 28px auto 42px;
  }

  .sf-basic-guide__grid {
    grid-template-columns: 1fr;
  }

  .sf-basic-guide__card {
    min-height: 0;
  }
}

/* guide-navigation.css의 모바일 탭 여백과 상세 본문 기준선을 동일하게 맞춥니다. */
@media (max-width: 899px) {
  .sf-basic-detail {
    --guide-shell: calc(100vw - 32px);
  }
}
