/* ========== ABOUT 섹션 ========== */
.about {
  position: relative;
  padding: clamp(40px, 5.9vw, 75px) clamp(32px, 9.8vw, 125px) clamp(32px, 9.8vw, 125px);
  background: var(--bg-page);
  /*overflow: hidden;*/
}

/* 배경: bg.png 글로우 원 */
.about__glow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90vw);
  height: auto;
  aspect-ratio: 2 / 1;
  pointer-events: none;
  z-index: 0;
}

.about__glow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.28;
}

/* bg-2.png 배경 (연라벤더 그라데이션) */
/*.about__section-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/game/bg-2.png');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}*/

/* about/bg.png 글로우 프레임 오버레이 */
.about__inner-frame {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95%);
  height: calc(100% - 80px);
  background-image: url("../images/about/bg.png");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.about__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  transform-origin: top center;
}

/* 배지: ★ 중앙 정렬 */
.about__badge {
  margin-bottom: 32px;
  text-align: center;
}

/* 메인 텍스트 */
.about__main-text {
  text-align: center;
  margin-bottom: 60px;
}

.about__quote {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* 앞뒤 따옴표 스타일 */
.about__quote-open {
  color: var(--c-blue-light);
  font-size: 1.3em;
  vertical-align: -0.1em;
  margin-right: 2px;
}

.about__quote-close {
  color: var(--c-blue-light);
  font-size: 1.3em;
  vertical-align: -0.1em;
  margin-left: 2px;
}

.about__jp {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-jp);
  letter-spacing: 0.06em;
}

/* ========== 3열 말풍선 ========== */
.about__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
  /* 세 말풍선이 균등 배치 */
}

.about__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 말풍선 컨테이너 */
.about__bubble {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1.08; /* 원형에 꼬리 붙은 비율 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__bubble-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* 말풍선이 흰색이라 그림자로 테두리 효과 */
  filter: drop-shadow(0 2px 12px rgba(136, 147, 242, 0.18));
}

.about__bubble-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: -18px; /* 꼬리 위로 텍스트 올리기 */
  padding: 0 16px;
}

.about__bubble-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #bbbbcc; /* ★ 너무 연한 흰색 대신 조금 진한 연보라 */
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.about__bubble-subtitle {
  display: block;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 4px;
}

/* 카테고리: 파랑→보라 그라데이션 텍스트 */
.about__bubble-category {
  display: block;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--c-blue-light) 0%,
    var(--c-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 실타래 연결 요소 ========== */
.about__element {
  width: 100%;
  max-width: 700px;
  margin: -8px auto 0;
  display: block;
  /* 세 말풍선 아래쪽 꼬리와 맞닿게 */
}

.about__element img {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* ========== 태그라인 ========== */
.about__tagline {
  text-align: center;
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 400;
  color: var(--c-text-light);
  line-height: 1.8;
  padding: 24px 0 96px; /* ★ 팀 섹션과의 여백 증가 */
}

/* ========== 팀 섹션 ========== */
.about__team {
  position: relative;
  /*overflow: hidden;*/
  padding: clamp(80px, 18vw, 230px) 0 clamp(80px, 18.8vw, 240px);
}

/* 팀 배경: intro-bg-blur.png 글로우 프레임 */
.about__team-section-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/team/intro-bg-blur.png");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0.7;
}

.about__team-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: min(500px, 40vw);
  height: min(500px, 40vw);
  pointer-events: none;
}

.about__team-glow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.2;
}

.about__team-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  /* 화면 너비에 따라 전체 비율 유지 스케일 — JS에서 동적 설정 */
  transform-origin: top center;
}

/* 발레리아 캐릭터 */
.about__team-char {
  position: relative;
  flex-shrink: 0;
  width: 340px;   /* scale은 부모 team-inner 에서 처리 */
  align-self: flex-end;
  margin-right: -20px;
}

.about__team-char img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(136, 147, 242, 0.15));
}

/* 팀 정보 */
.about__team-info {
  flex: 1;
  padding: 0 0 56px 32px;
}

.about__team-headline {
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* "24" 텍스트 + 이미지 합성 */
.about__team-count {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

/* 24 숫자 + 배경 래퍼 */
.about__team-count-24 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about__team-24-bg {
  position: absolute;
  inset: 0;
  width: 80%;
  height: 50%;
  object-fit: fill;
  left: 17px; /* 숫자보다 약간 오른쪽으로 배치 */
  top: 30px; /* 숫자보다 약간 아래로 배치 */
  z-index: 0;
}

.about__team-24-num {
  position: relative;
  z-index: 1;
  height: 44px;
  width: auto;
}

.about__team-count-suffix {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text);
}

/* ========== 역할 테이블 ========== */

/* 바깥 컨테이너: "24명의 인재들이" 문구와 동일 기준점(왼쪽 정렬) */
.about__roles {
  display: flex;
  justify-content: flex-start;
}

/* 역할 그리드 고정 너비 — 부모 team-inner scale이 전체 처리 */
.about__roles-inner {
  width: 300px;
  transform-origin: top left;
}

/* 각 줄 */
.about__roles-row {
  display: grid;
  gap: 8px;
}

/* 1줄: 6개 */
.about__roles-row:nth-child(1) {
  grid-template-columns: repeat(6, 1fr);
}

/* 2줄: 5개 */
.about__roles-row:nth-child(2) {
  grid-template-columns: repeat(5, 1fr);
}

.about__role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 역할명: 필 모양 태그 */
.about__role-tag {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(136, 147, 242, 0.25);
  border-radius: var(--r-full);
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #8094FF;
  white-space: nowrap;
}

.about__role-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
