/* 운영자 소개 (카지노인 casinoin.kr 소개 페이지 디자인을 포켓몬허브 토큰으로 옮긴 것). 원문 설명은 그대로 둔다. */
/* 소개 페이지.

   위쪽은 반대 방향으로 흐르는 릴 사이에 초상 하나를 세워 둔 형태다. 참고한
   컴포넌트는 여러 사람을 넘겨보는 캐러셀이지만 여기 실리는 사람은 하나뿐이라,
   가운데를 움직이는 대신 고정하고 양옆만 서로 반대로 흐르게 했다 - 넘길 것이
   없는 캐러셀에 이전/다음 버튼을 두면 눌러도 아무 일이 없는 버튼이 된다.

   아래쪽 경력은 가로 타임라인이다. 네 칸이라 한 줄에 들어가고, 좁아지면
   세로로 접힌다. */

.about-page { display: grid; gap: 48px; padding-bottom: 48px; }

/* ---------- 상단 ---------- */

.about-hero {
  /* 릴 높이와 타일 크기를 한 곳에 둔다 - 아래 버튼이 초상 바로 밑에
     붙으려면 두 값을 같이 알아야 한다. */
  --reel-height: 340px;
  --tile: 121.33px;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.about-reel {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--reel-height);
  overflow: hidden;
  /* 위아래·좌우로 흐려지며 사라지게 해서 릴이 잘린 상자가 아니라 계속
     이어지는 것처럼 보이게 한다. */
  -webkit-mask:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.about-reel-track { display: grid; gap: 8px; }
/* 같은 열을 두 벌 쌓고 정확히 한 벌만큼 움직여 끊김 없이 반복한다. */
.about-reel-track.is-rising { animation: about-reel-up 26s linear infinite; }
.about-reel-track.is-falling { animation: about-reel-down 26s linear infinite; }
.about-reel-column { display: grid; gap: 8px; }

@keyframes about-reel-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes about-reel-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.about-reel-cell {
  display: block;
  /* 원본과 같은 치수. 세 칸(121.33 × 3 + 8 × 2)이 정확히 380px 이다. */
  width: 121.33px;
  height: 121.33px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
  filter: blur(1px);
}

.about-reel-portrait {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  /* 초상도 칸과 같은 크기, 같은 모서리다 - 원본에서 이건 릴의 한 칸이지
     따로 얹은 액자가 아니다. */
  width: var(--tile);
  height: var(--tile);
  overflow: hidden;
  /* 상단 방문자 배지와 같은 테두리 - 같은 화면에서 액자 두께가 서로 다르면
     한쪽이 잘못 그려진 것처럼 보인다. */
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
}
/* 가운데 첫 장은 흐리게 두지 않는다 - 이 화면에서 얼굴이 보여야 하는
   사진은 이것 하나다. 흐려지는 것은 그 아래 버튼뿐이다. */
.about-reel-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* 그림은 사진처럼 꽉 채워 자르지 않는다 - 가장자리 여백째로 넣는다. */
.about-reel-portrait.is-drawing { background: #fff; }  /* 49차: 그림 칸은 흰 바탕 (다크 모드에서도) */
.about-reel-portrait.is-drawing img { object-fit: contain; object-position: center; }

.about-reel-wrap { display: grid; justify-items: center; gap: 12px; min-width: 0; }

/* 사진 아래 붙는 식구 버튼. 가운데가 아니라 좌우 칸 쪽 물건이다 -
   그림자도 광택도 없고, 아래로 갈수록 흐려진다. */
.about-buddy {
  display: grid;
  justify-items: center;
  gap: 8px;
  /* 초상은 릴 한가운데 서 있으므로 그 아래에는 빈 릴이 절반쯤 남는다.
     그만큼 끌어올려야 두 타일이 붙어 보인다. */
  margin-top: calc(14px - (var(--reel-height) - var(--tile)) / 2);
  color: inherit;
  text-decoration: none;
}
.about-buddy:hover { text-decoration: none; }
.about-buddy-tile {
  width: var(--tile);
  height: var(--tile);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
}
.about-buddy-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .55;
  /* 아래로 갈수록 사라진다 - 릴 전체에 걸린 마스크와 같은 결이다. */
  -webkit-mask: linear-gradient(to bottom, #000 25%, transparent 100%);
  mask: linear-gradient(to bottom, #000 25%, transparent 100%);
}
.about-buddy:hover .about-buddy-tile { border-color: var(--border-strong); }
.about-buddy:hover .about-buddy-tile img { opacity: .75; }
.about-buddy-copy { display: grid; justify-items: center; gap: 1px; }
.about-buddy strong { font-size: var(--text-sm); }
.about-buddy small { color: var(--text-3); font-size: var(--text-xs); }

.about-hero-copy { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.about-quote-mark { width: 40px; height: 40px; color: var(--border-strong); }
.about-name {
  margin: 0;
  font-family: var(--font-cute);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: var(--cute-weight);
  letter-spacing: -.01em;
  line-height: 1.05;
}
.about-tagline {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
}
.about-intro { margin: 0; color: var(--text-3); line-height: 1.75; }
.about-hero-copy .btn { margin-top: 8px; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.about-links .btn { margin-top: 0; }

/* 글자 하나씩 올라온다. 지연은 서버가 style 로 박아 준다. */
.about-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  animation: about-char-rise .5s cubic-bezier(.2, .8, .25, 1) forwards;
}
@keyframes about-char-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* 움직임을 원치 않는 사람에게도 글은 보여야 한다 - 애니메이션만 끄고
   최종 상태로 둔다. */
/* 사이트의 '애니메이션 끄기' 는 이 릴에 적용하지 않는다 - 이 화면에서
   릴은 장식이 아니라 화면의 뼈대라, 멈추면 빈 상자 두 개만 남는다.
   163차: 운영체제의 '동작 줄이기'도 따르지 않는다(사용자 결정 — 사이트 애니메이션은 늘 나옴). */


/* ---------- 구획 ---------- */

/* align-content 를 두지 않으면 두 칸의 높이가 같아질 때 남는 공간이 줄 사이로
   퍼져 배지와 목록이 서로 멀어진다. */
.about-section { display: grid; align-content: start; justify-items: start; gap: 12px; }
.about-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.about-section h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }

/* ---------- 지나온 길: 세로 단계 ---------- */

/* 가로로 늘어놓는다. 아이콘 상자에서 오른쪽으로 선이 뻗어 다음 칸으로
   이어지고, 글은 그 아래에 붙는다. */
.about-steps {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 0 16px;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.about-steps > li { display: grid; align-content: start; gap: 8px; min-width: 0; }
.about-step-rail { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.about-step-box {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}
.about-step-icon { width: 17px; height: 17px; color: var(--text); }
/* 아이콘 상자에서 다음 상자까지 이어지는 선.  마지막 칸에는 없다 -
   이어질 다음 칸이 없다. */
.about-step-line { width: 100%; height: 1px; background: var(--border); }
.about-step-copy { display: grid; gap: 3px; }
.about-step-copy strong { font-size: var(--text-base); }
.about-step-sub { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--text-sm); font-weight: 600; }  /* 48차: 줄바꿈 */
/* 링크가 걸린 칸. 색은 그대로 두고 밑줄만 그어 눌러진다는 것을 알린다. */
.about-step-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.about-step-copy time { color: var(--text-3); font-family: var(--font-numeric); font-size: var(--text-xs); }

/* ---------- 목록 ---------- */

/* 도구는 아이콘 · 이름 · 게이지 · 숫자 네 칸이다. 이름 칸의 폭을 고정해
   게이지가 줄마다 같은 자리에서 시작하게 하고, 남는 자리는 오른쪽에 둔다 -
   이름 칸을 늘리면 게이지가 화면 끝으로 밀려 이름과 따로 놀게 된다. */
.about-tools { display: grid; gap: 12px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.about-tools > li {
  display: grid;
  grid-template-columns: auto minmax(0, 340px) minmax(120px, 200px) auto;
  justify-content: start;
  /* 아래 딸린 글은 주석이라 줄 높이를 바꾼다. 가운데 정렬로 두면 그 줄만
     게이지가 내려앉아 다른 줄과 어긋난다 - 전부 이름 줄에 맞춘다. */
  align-items: start;
  gap: 12px;
  width: 100%;
}
.about-tool-icon { width: 26px; height: 26px; color: var(--text-2); }
.about-tool-copy { display: grid; gap: 2px; min-width: 0; }
.about-tool-copy strong { font-size: var(--text-base); }
.about-tool-copy span { color: var(--text-3); font-size: var(--text-xs); line-height: 1.5; }
.about-tool-gauge { height: 6px; margin-top: 9px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.about-tool-gauge > span { display: block; height: 100%; border-radius: 999px; background: var(--text); }
.about-tool-level {
  min-width: 4ch;
  margin-top: 4px;
  color: var(--text-3);
  font-family: var(--font-numeric);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 620px) {
  /* 좁아지면 게이지를 이름 아래로 내린다 - 네 칸을 유지하면 이름이 두세
     글자씩 잘린다. */
  .about-tools > li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .about-tool-gauge { grid-column: 2 / -1; }
}

@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; padding: 20px; }
  .about-hero { --reel-height: 260px; }
  /* 좁아지면 한 줄에 넷을 넣을 수 없다. 세로로 접고 선은 감춘다 -
     아래로 내려가는데 선만 오른쪽으로 뻗을 이유가 없다. */
  .about-steps { grid-template-columns: 1fr; gap: 20px; }
  .about-step-line { display: none; }
}

/* ---------- 두 칸: 잘하는 것 · 추억 ---------- */

/* 도구 칸을 1fr 로 두면 남는 폭을 전부 먹어 추억이 화면 끝으로 밀린다.
   도구 목록이 실제로 쓰는 만큼만 주고, 남는 자리는 오른쪽에 둔다. */
.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 340px);
  justify-content: start;
  gap: 32px;
  align-items: start;
}

/* ---------- 테이프로 붙인 카드 ---------- */

.about-taped {
  position: relative;
  padding: 32px 24px 24px;
  border-radius: 24px;
  background: var(--surface);
}
.about-tape {
  position: absolute;
  top: -14px;
  width: 76px;
  height: 34px;
  /* 테이프는 종이 위에 얹힌 물건이라 카드보다 진하다. */
  color: var(--text);
  opacity: .88;
  pointer-events: none;
}
.about-tape:first-of-type { left: -18px; transform: rotate(-4deg); }
.about-tape:nth-of-type(2) { right: -18px; left: auto; transform: rotate(94deg); }
html[data-theme="dark"] .about-tape { opacity: .7; }

/* ---------- 추억: 겹쳐 세운 사진 ---------- */

.about-photo-pile {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 190px;
  margin-top: 8px;
  text-decoration: none;
}
.about-photo {
  position: absolute;
  /* 왼쪽 끝을 기준으로 오른쪽으로 펼친다. 겹치는 폭이 사진 폭보다 좁아야
     부채처럼 보인다. */
  left: 0;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border: 5px solid var(--surface);
  border-radius: 16px;
  background: var(--surface-muted);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .3);
  transform: translateX(calc(var(--i) * 50px)) rotate(var(--tilt));
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 맨 위 사진이 가장 앞에 오도록 - 뒤 사진이 앞 사진을 덮으면 부채가 뒤집힌다. */
.about-photo:nth-child(1) { z-index: 5; }
.about-photo:nth-child(2) { z-index: 4; }
.about-photo:nth-child(3) { z-index: 3; }
.about-photo:nth-child(4) { z-index: 2; }
.about-photo:nth-child(5) { z-index: 1; }
.about-photo-pile:hover .about-photo,
.about-photo-pile:focus-visible .about-photo {
  transform: translateX(calc(var(--i) * 56px)) rotate(calc(var(--tilt) * 1.4)) translateY(-6px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .38);
}
.about-memories-more {
  align-self: flex-start;
  color: var(--text-3);
  font-size: var(--text-sm);
  text-decoration: none;
}
.about-memories-more:hover,
.about-memories-more:focus-visible { color: var(--text); text-decoration: underline; }

@media (max-width: 980px) {
  .about-columns { grid-template-columns: 1fr; }
  .about-photo { width: 104px; height: 104px; }
  .about-photo-pile { height: 160px; }
}

/* 44차: 사진 위 식구 칸(place above) — 릴 위쪽 빈 칸만큼 끌어내린다 (146차 호준 페이지 삭제 뒤로 지금은 안 씀) */
.about-buddy.is-above { grid-template-rows: auto auto; margin-top: 0; margin-bottom: calc(14px - (var(--reel-height) - var(--tile)) / 2); position: relative; z-index: 1; }
.about-buddy.is-above .about-buddy-copy { order: -1; }
.about-buddy.is-above .about-buddy-tile img { -webkit-mask: linear-gradient(to top, #000 25%, transparent 100%); mask: linear-gradient(to top, #000 25%, transparent 100%); }
.about-buddy-tile.is-drawing { background: #fff; }
.about-buddy-tile.is-drawing img { object-fit: contain; object-position: center; padding: 4px; }
/* 잘하는 것 · 이런 사람이에요 나란히 */
.about-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 72px; align-items: start; }  /* 48차: '잘하는 것' ↔ '이런 사람이에요' 가로 간격 넓게 (세로 · 모바일은 그대로) */
.about-duo > .about-section { margin: 0; min-width: 0; }
@media (max-width: 900px) { .about-duo { grid-template-columns: 1fr; gap: 24px; } }
.about-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* 플레이 스타일 (_play.html) */
.about-play { display: grid; gap: 18px; }
.about-play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.about-play-row > .about-mains, .about-play-row > .about-chips { flex: 1; min-width: 0; }
.about-play-label { min-width: 88px; color: var(--text-3); font-size: var(--text-xs); font-weight: 800; letter-spacing: .06em; }
.about-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: var(--text-sm); }
.about-mains { display: flex; flex-wrap: wrap; gap: 14px; }
.about-main { display: grid; justify-items: center; gap: 6px; width: 104px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, var(--surface-muted), var(--surface)); text-decoration: none; color: inherit; transition: transform .25s var(--ease-bounce, ease-out); }
.about-main:hover { transform: translateY(-3px); text-decoration: none; }
.about-main img { width: 72px; height: 72px; object-fit: contain; }
.about-main b { font-size: var(--text-sm); }
.about-me { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.about-me li { position: relative; padding-left: 18px; color: var(--text-2); line-height: 1.7; }
.about-me li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--poke-yellow); }
@media (max-width: 640px) { .about-play-label { flex-basis: 100%; } .about-main { width: 92px; } }
/* 87차: 가운데가 아닌 위 · 아래 사진(비활성 칸)은 바탕(흰 그림 칸 포함)째 더 어둡게 — 올리면 조금 밝아짐 */
.about-buddy-tile { filter: brightness(.72) saturate(.7); transition: filter .2s ease, border-color .15s ease; }
html[data-theme="dark"] .about-buddy-tile { filter: brightness(.42) saturate(.6); }
.about-buddy:hover .about-buddy-tile, .about-buddy:focus-visible .about-buddy-tile { filter: brightness(.9) saturate(.9); }
html[data-theme="dark"] .about-buddy:hover .about-buddy-tile, html[data-theme="dark"] .about-buddy:focus-visible .about-buddy-tile { filter: brightness(.7) saturate(.85); }
/* 141차(사용자 요청): 위 · 아래 비활성 사진이 어두운 회색 상자로 보이던 것 → 칸째(흰 그림 바탕 · 테두리까지) 바깥쪽으로
   그라데이션으로 사라지게. 옆의 흐르는 빈 칸들처럼 잘 안 보이고, 가운데 초상 쪽만 살짝 남는다. 올리면 또렷해짐 */
.about-buddy-tile, html[data-theme="dark"] .about-buddy-tile {
  filter: saturate(.55);
  opacity: .5;
  transition: opacity .2s ease, filter .2s ease, border-color .15s ease;
}
html[data-theme="dark"] .about-buddy-tile { opacity: .2; }
.about-buddy.is-below .about-buddy-tile { -webkit-mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); }
.about-buddy.is-above .about-buddy-tile { -webkit-mask: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); mask: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); }
.about-buddy .about-buddy-tile img, .about-buddy.is-above .about-buddy-tile img { opacity: 1; -webkit-mask: none; mask: none; }
.about-buddy:hover .about-buddy-tile, .about-buddy:focus-visible .about-buddy-tile,
html[data-theme="dark"] .about-buddy:hover .about-buddy-tile, html[data-theme="dark"] .about-buddy:focus-visible .about-buddy-tile { filter: none; opacity: .9; }
