@charset "utf-8";
/* =========================================================
 * 게임소개 (theme/intro 내용 스킨) — 월드 / 클래스 한 페이지, 화면 단위 섹션
 * 레퍼런스 동작 재현 (코드 복사 아님)
 *  - 섹션 전환 : 휠·스와이프·키 한 번에 한 화면, 0.8초 ease (intro.js)
 *  - 슬라이드 : Swiper 페이드 0.6초, 마우스 드래그·스와이프
 *  - 월드 등장 : 0.3초 뒤 스크린샷 위로 30px + 두루마리 가로로 펼침(0.9초) → 제목 밝게 번쩍이며 20px 올라옴(1.2초) → 설명 30px 올라옴
 *                 이후 지역 스크린샷 2초마다 교차(0.6초)
 *  - 클래스 등장 : 캐릭터 오른쪽 100px 에서 밀려 들어옴(0.8초) + 설명 틀 0.4초 뒤 나타남(0.6초)
 *  - 좌측 섹션 표시 이동 0.4초, 아래 스크롤 안내 1.5초 반복, 첫 진입 어둠 걷힘
 * 1920 기준, 1023px 이하 모바일 배치. 색은 tokens.css 변수만.
 * ========================================================= */

/* 헤더 뒤로 비주얼이 들어가도록 #sub_wrap 여백 제거, 기본 '내용 수정' 버튼은 섹션별 버튼으로 대체 */
#sub_wrap:has(.gi-page) { position: relative; padding: 0; min-height: 0; background: var(--c-bg-black); }
#sub_wrap:has(.gi-page) > .ctt_admin { display: none; }
body:has(.gi-page) { background: var(--c-bg-black); }
body:has(.gi-page) #btn_top { display: none; } /* 화면 단위 이동 페이지라 '맨 위로' 대신 좌측 섹션 이동·스크롤 안내 사용 (레퍼런스와 같음) */

.gi-page {
    --gi-head: calc(var(--gh-top-h, 57px) + var(--gh-bar-h, 58px));
    --gi-line: color-mix(in srgb, var(--c-gold) 35%, transparent);
    --gi-panel: color-mix(in srgb, var(--c-bg-black) 86%, transparent);
    --gi-out: cubic-bezier(.25, .46, .45, .94);   /* 부드럽게 멈춤 */
    --gi-out2: cubic-bezier(.215, .61, .355, 1);  /* 조금 더 강하게 멈춤 */
    position: relative;
    color: var(--c-text);
    font-family: var(--font-base);
    letter-spacing: -.01em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.gi-page *, .gi-page *::before, .gi-page *::after { box-sizing: border-box; }
:where(.gi-page) ul { margin: 0; padding: 0; list-style: none; }
:where(.gi-page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.gi-page) a { color: inherit; text-decoration: none; }

/* ---------- 섹션 (한 화면) ---------- */
.gi-sec { position: relative; height: 100vh; min-height: 940px; background: var(--c-bg-section); overflow: hidden; }
.gi-bg { position: absolute; inset: 0; z-index: 0; }
.gi-bg .gi-bg-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.gi-bg::after { /* 글자가 읽히도록 어둡게 + 위아래 그라데이션 */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--c-bg-black) 35%, transparent) 0, color-mix(in srgb, var(--c-bg-black) 72%, transparent) 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--c-bg-black) 75%, transparent) 0, transparent 20%, transparent 72%, var(--c-bg-black) 100%);
}
/* 2026-11-07 로테이션 배경은 올린 그림 그대로 (글이 종이 두루마리에 있어 어둡게 할 필요 없음). 이전: filter: saturate(.5) brightness(.5) */
.gi-world .gi-bg .gi-bg-slot img { filter: none; }
/* 2026-11-07 로테이션 배경 위 덮개 : 가운데 어둡게 하던 것 빼고 위·아래 끝만 살짝 (공식처럼 배경 그림이 보이게) */
.gi-world .gi-bg::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg-black) 55%, transparent) 0, transparent 16%, transparent 82%, color-mix(in srgb, var(--c-bg-black) 70%, transparent) 100%); }

/* 첫 진입 : 어둠이 걷히며 시작 */
.gi-veil { position: absolute; inset: 0; z-index: 5; background: var(--c-bg-black); opacity: 0; pointer-events: none; }
.gi-anim .gi-veil { animation: gi-veil 1.2s ease .1s both; }
@keyframes gi-veil { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* ---------- Swiper (페이드) 최소 코어 ---------- */
.gi-sw { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.gi-sw .swiper-wrapper { position: relative; display: flex; width: 100%; height: 100%; z-index: 1; box-sizing: content-box; transition-property: transform; }
.gi-sw .gi-slide { position: relative; flex-shrink: 0; width: 100%; height: 100%; }
.gi-sw.swiper-fade .gi-slide { pointer-events: none; transition-property: opacity; }
.gi-sw.swiper-fade .gi-slide.swiper-slide-active { pointer-events: auto; }
.gi-sw.swiper-initialized { cursor: auto; } /* 2026-11-07 끌기 없앰 → 일반 커서 */
/* .gi-sw.swiper-initialized:active { cursor: grabbing; } 끌기 없앰 */
.gi-sw .swiper-notification { position: absolute; top: 0; left: 0; z-index: -1000; opacity: 0; pointer-events: none; }
/* Swiper 를 못 불러온 경우 : 한 장만 보이고 intro.js 가 is-on 으로 바꿔 줌 */
.gi-sw:not(.swiper-initialized) .gi-slide:not(.is-on) { display: none; }

/* ---------- 공통 글자 ---------- */
.gi-title { margin: 0; font-size: 34px; line-height: 1.25; font-weight: var(--fw-bold); color: var(--c-text-title); letter-spacing: .02em; text-shadow: var(--shadow-text); }
.gi-sub { margin: 6px 0 0; font-size: var(--fs-md); color: var(--c-gold-text); letter-spacing: .04em; }
.gi-desc { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--c-text); }
.gi-desc p { margin: 0; }
.gi-desc p + p { margin-top: .5em; }
.gi-desc img { max-width: 100%; height: auto; }
.gi-desc a { color: var(--c-link); text-decoration: underline; }
.gi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gi-tags li { padding: 3px 12px; border: 1px solid var(--gi-line); border-radius: 999px; font-size: var(--fs-sm); line-height: 20px; color: var(--c-gold-text); background: color-mix(in srgb, var(--c-gold) 8%, transparent); }

/* ---------- 월드 : 스크린샷(가운데 위) + 두루마리(아래) ---------- */
.gi-screen { position: absolute; inset: 0; }
.gi-shot {
    position: absolute; left: 50%; top: calc(50% - 302px);
    width: 800px; height: 450px; margin-left: -400px;
    border: 1px solid var(--gi-line);
    background:
        repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--c-gold) 4%, transparent) 14px 15px),
        color-mix(in srgb, var(--c-bg-section) 92%, transparent);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.gi-shot-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: var(--fw-bold); letter-spacing: .12em; color: color-mix(in srgb, var(--c-gold) 22%, transparent); }
.gi-shot-track { position: absolute; inset: 0; display: block; overflow: hidden; }
/* 2026-11-07 사진 테두리(액자) : PC 만. 그림 안쪽 투명 구멍이 사진 상자와 딱 맞게 % 로 바깥에 펼침
   2026-11-08 그림 교체(800x452, 구멍 6,6 ~ 794,446 = 788x440) : 값은 content.skin.php 가 그림에서 재서 #ctt 에 --gi-frame-l/t/w/h 로 넣음.
              아래 괄호 안 숫자는 그 값이 없을 때 쓰는 지금 그림 기준 값 (-6/788, -6/440, 800/788, 452/440) */
@media (min-width: 1024px) {
    .gi-frame-img .gi-world .gi-shot { overflow: visible; border-color: transparent; box-shadow: none; }
    .gi-frame-img .gi-world .gi-shot::after {
        content: ""; position: absolute; z-index: 3; pointer-events: none;
        left: var(--gi-frame-l, -0.7614%); top: var(--gi-frame-t, -1.3636%); width: var(--gi-frame-w, 101.5228%); height: var(--gi-frame-h, 102.7273%);
        background: var(--gi-shot-frame) center / 100% 100% no-repeat;
    }
}
.gi-shot-item { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--gi-out2); }
.gi-shot-item.is-on { opacity: 1; z-index: 2; }
/* 2026-11-07 이전 그림은 새 그림이 다 나타날 때까지 아래에 그대로 (두 장이 같이 흐려지며 뒤 배경이 비치던 것 방지) */
.gi-shot-item.is-prev { opacity: 1; z-index: 1; transition: none; }
/* 2026-11-07 사진끼리의 앞뒤(z-index)는 사진 상자 안에서만 → 아래 두루마리(글 상자)가 항상 사진보다 앞 */
.gi-shot { isolation: isolate; }
.gi-shot-item .gi-shot-slot { width: 100%; height: 100%; }
.gi-roll {
    position: absolute; left: 50%; top: calc(50% + 109px);
    display: flex; align-items: center; justify-content: center;
    width: 986px; height: 308px; margin-left: -493px;
    text-align: center;
}
.gi-roll-bg { /* 두루마리 : 가운데서 가로로 펼쳐짐 */
    position: absolute; inset: 0 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg-brown) 95%, transparent), var(--gi-panel));
    border-top: 1px solid var(--gi-line);
    border-bottom: 1px solid var(--gi-line);
    box-shadow: var(--shadow-card);
}
.gi-roll-bg::before, .gi-roll-bg::after { /* 양 끝 막대 */
    content: ""; position: absolute; top: -8px; bottom: -8px; width: 12px; border-radius: 6px;
    background: linear-gradient(90deg, var(--c-gold-dark), var(--c-gold) 45%, var(--c-gold-dark));
    box-shadow: var(--shadow-md);
}
.gi-roll-bg::before { left: -6px; }
.gi-roll-bg::after { right: -6px; }
.gi-roll-in { position: relative; width: 100%; padding: 0 84px; }
/* 2026-11-07 종이 두루마리 그림 (.gi-roll-img) : PC · 기본 배치만. 그림 안 종이(위 덩굴 아래~아래 띠 위)에 글이 들어가도록 상자보다 크게 깔고 글은 20px 내림 */
@media (min-width: 1024px) {
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll-bg {
        inset: -40px -40px; background: var(--gi-roll-img) center / 100% 100% no-repeat;
        border: 0; box-shadow: none;
    }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll-bg::before,
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll-bg::after { display: none; }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll-in { padding-top: 20px; }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-title { color: #3a2414; text-shadow: none; }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-sub { color: #8a4b1c; }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-desc { color: #3f2e1f; }
    /* 2026-11-07 두루마리 종이 구간에 맞춤 : 제목·본문만 14px 위로 (태그 버튼 자리는 그대로) */
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-title,
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-desc { position: relative; top: -14px; }
    .gi-roll-img .gi-screen:not(.gi-lay-left):not(.gi-lay-right) .gi-roll .gi-tags li { color: #6b3f17; border-color: rgba(107, 63, 23, .45); background: rgba(255, 255, 255, .2); }
}
.gi-world .gi-tags { justify-content: center; }
.gi-world .gi-roll .gi-tags { margin-top: 6px; } /* 2026-11-07 16 → 6 : 태그 조금 위로 */

/* [intro2] 2026-11-07 로테이션 정렬 (관리자 > 메뉴 > 게임 소개 [로테이션] 항목마다, content.skin.php 가 .gi-screen 에 붙임)
 *   기본(클래스 없음) = 위 배치 그대로 : 스크린샷 가운데 위 + 두루마리 아래, 글 가운데
 *   .gi-lay-left  = 스크린샷 왼쪽 · 두루마리 오른쪽 / .gi-lay-right = 반대 (1024px 이상만, 좁은 화면은 기본처럼 위·아래)
 *     세로 기준은 기본 배치와 같은 화면 가운데 + 57px (헤더 아래 공간의 가운데), 폭 = min(1400, 화면 - 좌우 120) 를 800 : 40 : 560 으로 나눔
 *   .gi-ta-left / .gi-ta-right = 두루마리 안 글 정렬 (모든 폭) */
.gi-screen.gi-ta-left .gi-roll { text-align: left; }
.gi-screen.gi-ta-right .gi-roll { text-align: right; }
.gi-world .gi-screen.gi-ta-left .gi-tags { justify-content: flex-start; }
.gi-world .gi-screen.gi-ta-right .gi-tags { justify-content: flex-end; }
@media (min-width: 1024px) {
    .gi-screen.gi-lay-left, .gi-screen.gi-lay-right {
        --gi-av: min(1400px, calc(100vw - 240px));
        --gi-sw: calc(var(--gi-av) * .5714);
        --gi-gap: calc(var(--gi-av) * .0286);
        --gi-rw: calc(var(--gi-av) * .4);
        --gi-sh: calc(var(--gi-sw) * 9 / 16);
        --gi-x0: calc(50% - var(--gi-av) / 2);
        --gi-y0: calc(50% + 57px - var(--gi-sh) / 2);
    }
    .gi-screen.gi-lay-left .gi-shot, .gi-screen.gi-lay-right .gi-shot { top: var(--gi-y0); width: var(--gi-sw); height: var(--gi-sh); margin-left: 0; }
    .gi-screen.gi-lay-left .gi-roll, .gi-screen.gi-lay-right .gi-roll { top: var(--gi-y0); right: auto; width: var(--gi-rw); height: auto; min-height: var(--gi-sh); margin-left: 0; padding: 30px 0; }
    .gi-screen.gi-lay-left .gi-roll-in, .gi-screen.gi-lay-right .gi-roll-in { padding: 0 clamp(28px, 3.4vw, 56px); }
    .gi-screen.gi-lay-left .gi-shot { left: var(--gi-x0); }
    .gi-screen.gi-lay-left .gi-roll { left: calc(var(--gi-x0) + var(--gi-sw) + var(--gi-gap)); }
    .gi-screen.gi-lay-right .gi-roll { left: var(--gi-x0); }
    .gi-screen.gi-lay-right .gi-shot { left: calc(var(--gi-x0) + var(--gi-rw) + var(--gi-gap)); }
}

/* ---------- 클래스 : 캐릭터(오른쪽) + 설명 틀(가운데) ---------- */
.gi-char { position: absolute; inset: 0; pointer-events: none; }
.gi-char-in {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: auto; height: 100%; aspect-ratio: 1000 / 1080; margin-left: -10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.gi-char-in .gi-char-slot { width: 100%; height: 100%; }
.gi-char-in .gi-char-slot img { object-position: center bottom; }
/* 2026-11-07 좌측 이미지 (선택, intro_class_leftNN_pc.webp) : 캐릭터와 화면 가운데 기준 좌우 대칭 (같은 높이·비율·아래 맞춤·가장자리 흐림)
 *   DOM 순서 = 좌측 이미지 → 캐릭터 → 설명 틀 : 설명 틀(.gi-card)이 위에 덮여 글씨는 그대로 읽힘 (캐릭터와 같은 관계) */
.gi-lchar { position: absolute; inset: 0; pointer-events: none; }
.gi-lchar-in {
    position: absolute; top: 0; bottom: 0; right: 50%;
    width: auto; height: 100%; aspect-ratio: 1000 / 1080; margin-right: -10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.gi-lchar-in .gi-lchar-slot { width: 100%; height: 100%; }
.gi-lchar-in .gi-lchar-slot img { object-position: center bottom; }
.gi-card {
    position: absolute; left: 50%; top: 50%;
    display: flex; flex-direction: column; justify-content: center;
    width: 1020px; height: 440px; margin: -340px 0 0 -510px; /* 2026-11-07 -280 → -340 : 60px 위로 (마법사 왼쪽 그림과 겹치지 않게) */
    padding: 0 52px;
    border-left: 2px solid var(--c-gold);
    background: linear-gradient(90deg, var(--gi-panel) 0, color-mix(in srgb, var(--c-bg-black) 72%, transparent) 55%, transparent 100%);
}
.gi-card::before, .gi-card::after { content: ""; position: absolute; left: 0; width: 70%; height: 1px; background: linear-gradient(90deg, var(--gi-line), transparent); }
.gi-card::before { top: 0; }
.gi-card::after { bottom: 0; }
.gi-card .gi-title { font-size: 44px; }
.gi-card .gi-desc, .gi-card .gi-sub, .gi-card .gi-tags { max-width: 560px; }
.gi-class .gi-desc { color: var(--c-text-cream); }

/* ---------- 등장 효과 (intro.js 가 .gi-anim / .is-play 를 붙일 때만) ---------- */
.gi-anim .gi-shot { opacity: 0; transform: translateY(30px); }
.gi-anim .gi-roll-bg { opacity: 0; transform: scaleX(0); }
.gi-anim .gi-title { opacity: 0; transform: translateY(20px); filter: brightness(2); }
.gi-anim .gi-sub, .gi-anim .gi-desc { opacity: 0; transform: translateY(30px); }
.gi-anim .gi-tags { opacity: 0; transform: translateY(10px); }
.gi-anim .gi-char-in { opacity: 0; transform: translateX(100px); }
.gi-anim .gi-lchar-in { opacity: 0; transform: translateX(-100px); } /* 좌측 이미지 : 왼쪽에서 오른쪽으로 (캐릭터의 거울) */
.gi-anim .gi-card { opacity: 0; }

/* 2026-11-07 같은 섹션 안 슬라이드 바꿈(.is-swap) : 틀·바탕은 제자리에서 슬라이드 페이드만 → 앞뒤 바탕이 어긋나지 않음 */
/* (2026-11-07 공식 사이트와 같은 넘김 효과로 바꾸며 .is-swap 즉시 표시 규칙 제거) */

.gi-anim .is-play .gi-shot, .gi-anim .is-play .gi-roll-bg, .gi-anim .is-play .gi-title, .gi-anim .is-play .gi-sub,
.gi-anim .is-play .gi-desc, .gi-anim .is-play .gi-tags, .gi-anim .is-play .gi-char-in, .gi-anim .is-play .gi-lchar-in, .gi-anim .is-play .gi-card { opacity: 1; transform: none; filter: none; }

/* 월드 순서 : 0.3 스크린샷·두루마리 → 1.1 제목 → 1.3 설명 → 1.7 태그 */
.gi-anim .is-play .gi-shot { transition: opacity .9s var(--gi-out) .3s, transform .9s var(--gi-out) .3s; }
.gi-anim .is-play .gi-roll-bg { transition: opacity .9s var(--gi-out) .3s, transform .9s var(--gi-out) .3s; }
.gi-anim .is-play .gi-screen .gi-title { transition: opacity .4s var(--gi-out) 1.1s, transform 1.2s var(--gi-out) 1.1s, filter 1.2s var(--gi-out) 1.1s; }
.gi-anim .is-play .gi-screen .gi-sub { transition: opacity .4s var(--gi-out) 1.2s, transform 1.2s var(--gi-out) 1.2s; }
.gi-anim .is-play .gi-screen .gi-desc { transition: opacity .4s var(--gi-out) 1.3s, transform 1.2s var(--gi-out) 1.3s; }
.gi-anim .is-play .gi-screen .gi-tags { transition: opacity .4s var(--gi-out) 1.7s, transform 1.2s var(--gi-out) 1.7s; }
/* 클래스 순서 : 0 캐릭터(+좌측 이미지 동시) → 0.4 틀 → 0.8 제목 → 1.0 설명 → 1.4 태그 */
.gi-anim .is-play .gi-char-in, .gi-anim .is-play .gi-lchar-in { transition: opacity .8s ease-out, transform .8s ease-out; }
.gi-anim .is-play .gi-card { transition: opacity .6s ease-out .4s; }
.gi-anim .is-play .gi-card .gi-title { transition: opacity .4s var(--gi-out) .8s, transform 1.2s var(--gi-out) .8s, filter 1.2s var(--gi-out) .8s; }
.gi-anim .is-play .gi-card .gi-sub { transition: opacity .4s var(--gi-out) .9s, transform 1.2s var(--gi-out) .9s; }
.gi-anim .is-play .gi-card .gi-desc { transition: opacity .4s var(--gi-out) 1s, transform 1.2s var(--gi-out) 1s; }
.gi-anim .is-play .gi-card .gi-tags { transition: opacity .4s var(--gi-out) 1.4s, transform 1.2s var(--gi-out) 1.4s; }

/* ---------- 하단 이동 (선 + 화살표 + 점/아이콘) ---------- */
.gi-util { position: absolute; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 50px; }
.gi-world .gi-util { top: max(calc(100% - 115px), calc(50% + 414px)); height: 34px; }
.gi-class .gi-util { bottom: 130px; height: 116px; } /* 2026-11-07 70→130 : 설명 박스를 올린 만큼(60px) 같이 올림 */
/* 2026-11-07 마우스 끌기 없앰 : 바탕은 일반 커서, 아이콘·화살표(버튼)만 손가락 */
.gi-sw, .gi-sw .swiper-slide { cursor: auto; }
/* 2026-11-07 PC : 인물(좌측 이미지·캐릭터)이 설명 틀보다 앞 (공식 사이트와 같음) */
@media (min-width: 1024px) {
    .gi-class .gi-card { z-index: 1; }
    .gi-class .gi-lchar, .gi-class .gi-char { z-index: 2; pointer-events: none; }
} /* 2026-11-07 20→70 : 아래 가운데 스크롤 화살표(.gi-scroll)에 아이콘이 가리지 않게 */
.gi-util::before, .gi-util::after { content: ""; flex: 1 1 0; height: 1px; }
.gi-util::before { background: linear-gradient(90deg, transparent, var(--gi-line)); }
.gi-util::after { background: linear-gradient(90deg, var(--gi-line), transparent); }
.gi-move { position: relative; flex: none; width: 34px; height: 34px; opacity: .4; transition: opacity .3s ease; }
.gi-move::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -4px; border-left: 2px solid var(--c-gold-text); border-bottom: 2px solid var(--c-gold-text); transform: rotate(45deg); }
.gi-next::before { margin-left: -10px; transform: rotate(-135deg); }
.gi-move:hover, .gi-move:focus-visible { opacity: 1; }
.gi-move:disabled { opacity: .15; cursor: default; }
.gi-dots { display: flex; align-items: center; justify-content: center; gap: 20px; }
.gi-dot { position: relative; width: 20px; height: 20px; }
.gi-dot:focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 3px; }
/* 월드 점 : 꺼짐/켜짐 두 겹을 0.3초 교차 */
.gi-world .gi-dot::before, .gi-world .gi-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; transition: opacity .3s ease; }
.gi-world .gi-dot::before { background: radial-gradient(circle at 35% 30%, var(--c-text-sub), var(--c-gold-dark) 70%); opacity: .5; }
.gi-world .gi-dot::after { background: radial-gradient(circle at 35% 30%, var(--c-gold-pale), var(--c-gold-deep) 70%); box-shadow: 0 0 10px color-mix(in srgb, var(--c-gold-light) 70%, transparent); opacity: 0; }
.gi-world .gi-dot:hover::after { opacity: .6; }
.gi-world .gi-dot.is-on::after { opacity: 1; }
/* 클래스 아이콘 */
.gi-class .gi-dots { gap: 20px; }
.gi-class .gi-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; height: auto; }
.gi-ico { position: relative; display: block; width: 80px; height: 80px; border: 1px solid var(--gi-line); border-radius: 50%; background: color-mix(in srgb, var(--c-bg-black) 70%, transparent); overflow: hidden; }
.gi-ico em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 28px; font-weight: var(--fw-bold); color: var(--c-gold-muted); }
.gi-ico .gi-ico-slot { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(.85) brightness(.65); transition: filter .3s ease; }
.gi-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-gold-light), 0 0 14px color-mix(in srgb, var(--c-gold-light) 50%, transparent); opacity: 0; transition: opacity .3s ease; }
.gi-dot-label { font-size: var(--fs-md); line-height: 18px; color: var(--c-text-ref-sub); transition: color .3s ease; white-space: nowrap; }
.gi-class .gi-dot:hover .gi-ico-slot, .gi-class .gi-dot.is-on .gi-ico-slot { filter: none; }
.gi-class .gi-dot:hover .gi-ico::after { opacity: .5; }
.gi-class .gi-dot.is-on .gi-ico::after { opacity: 1; }
.gi-class .gi-dot.is-on .gi-ico em { color: var(--c-gold-light); }
.gi-class .gi-dot.is-on .gi-dot-label, .gi-class .gi-dot:hover .gi-dot-label { color: var(--c-text-title); }

/* ---------- 좌측 섹션 이동 (PC, 고정) ---------- */
.gi-snav { position: fixed; z-index: 40; left: 58px; top: 50%; transform: translateY(-50%); /* 2026-11-18 위 → 좌측 가운데 (요청: 클래스·로테이션 두 페이지 모두) | 이전: top 170px, 2026-11-07 가운데 → 위 */ transition: opacity .3s ease, visibility .3s; }
.gi-snav ul { position: relative; display: flex; flex-direction: column; gap: 16px; }
.gi-snav ul::before { content: ""; position: absolute; left: -16px; top: 13px; bottom: 13px; width: 1px; background: linear-gradient(180deg, transparent, var(--c-text-ref-faint) 20%, var(--c-text-ref-faint) 80%, transparent); }
.gi-snav li a { position: relative; display: block; height: 26px; font-size: var(--fs-lg); line-height: 26px; color: var(--c-text-ref-faint); transition: color .2s ease; }
.gi-snav li a::before { content: ""; position: absolute; left: -19px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-text-ref-faint); transition: opacity .2s; }
.gi-snav li a:hover, .gi-snav li.is-on a { color: var(--c-text-strong); }
.gi-snav li.is-on a { font-weight: var(--fw-medium); }
.gi-snav li.is-on a::before { opacity: 0; }
/* 2026-11-07 시작 섹션이 첫 섹션이 아닐 때(로테이션 페이지) : 스크롤 자리 잡기 전에는 숨김, 표시·아이콘도 움직임 없이 (JS 가 없으면 1.5초 뒤 그냥 보임) */
.gi-page.gi-pre { visibility: hidden; animation: gi-pre-show 0s linear 1.5s forwards; }
.gi-page.gi-pre .gi-snav-ind, .gi-page.gi-pre .gi-snav li a, .gi-page.gi-pre .gi-snav li a::before { transition: none !important; }
@keyframes gi-pre-show { to { visibility: visible; } }
.gi-snav-ind { /* 현재 위치 표시 : 섹션이 바뀌면 0.4초 동안 이동 */
    position: absolute; left: -23px /* 2026-11-07 -25→-23 : 세로선·회색 점과 가운데 맞춤 */; top: 6px; width: 15px; height: 15px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffe08a, var(--c-gold) 55%, var(--c-gold-dark) 100%); /* 2026-11-08 붉은 구슬 → 금색 구슬 (항목 14) */
    box-shadow: 0 0 10px rgba(201, 162, 79, .55);
    transform: translateY(calc(var(--gi-nav, 0) * 42px));
    transition: transform .4s var(--gi-out);
}
/* [intropages] 2026-11-21 항목별 볼 색 (관리자 > 메뉴 > 게임 소개 > 페이지 목록) : 기본 금색이 아닌 항목에서만 .gi-ball-c + --gi-ball (content.skin.php · intro.js) */
.gi-snav-ind.gi-ball-c {
    background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--gi-ball) 45%, #fff), var(--gi-ball) 55%, color-mix(in srgb, var(--gi-ball) 60%, #000) 100%);
    box-shadow: 0 0 10px color-mix(in srgb, var(--gi-ball) 55%, transparent);
}
.gi-page.is-foot .gi-snav { opacity: 0; visibility: hidden; }

/* ---------- 아래로 스크롤 안내 (1.5초 반복) ---------- */
.gi-scroll { position: fixed; z-index: 40; left: 50%; bottom: 26px; width: 30px; height: 30px; margin-left: -15px; pointer-events: none; transition: opacity .3s linear, transform .3s linear; }
.gi-scroll::before { content: ""; position: absolute; left: 7px; top: 2px; width: 14px; height: 14px; border-right: 2px solid var(--c-gold-light); border-bottom: 2px solid var(--c-gold-light); transform: rotate(45deg); }
.gi-scroll::after { content: ""; position: absolute; left: 7px; top: 12px; width: 14px; height: 14px; border-right: 2px solid color-mix(in srgb, var(--c-gold-light) 50%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--c-gold-light) 50%, transparent); transform: rotate(45deg); }
.gi-anim .gi-scroll { animation: gi-scroll 1.5s linear infinite; }
.gi-page.is-last .gi-scroll, .gi-page.is-foot .gi-scroll { opacity: 0; transform: translateY(-10px); animation: none; }
.gi-page:not(.gi-anim) .gi-scroll { display: none; }
@keyframes gi-scroll {
    0%   { opacity: 0; transform: translateY(-10px); }
    40%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(5px); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- 관리자 : 섹션별 문구 수정 ---------- */
.gi-admin { position: absolute; z-index: 6; top: calc(var(--gi-head) + 16px); right: 24px; display: flex; gap: 6px; }
.gi-admin a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius); background: color-mix(in srgb, var(--c-bg-black) 70%, transparent); font-size: var(--fs-sm); color: var(--c-admin) !important; transition: border-color .2s, color .2s; }
.gi-admin a:hover { border-color: var(--c-admin); color: var(--c-text-strong) !important; }

/* 내용이 규칙에 맞지 않을 때 */
.gi-empty { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: calc(var(--gi-head) + 80px) 20px 40px; text-align: center; }
.gi-empty > p { margin: 0 0 16px; color: var(--c-admin); }

/* ---------- 1023px 이하 ---------- */
@media (max-width: 1023px) {
    .gi-page { --gi-head: var(--gh-mo-h, 50px); }
    .gi-sec { height: 100vh; height: 100svh; min-height: 640px; }
    .gi-snav { display: none; }
    .gi-admin { top: calc(var(--gi-head) + 8px); right: 12px; }
    .gi-admin a { height: 26px; padding: 0 8px; font-size: var(--fs-xs); }

    .gi-title { font-size: 24px; }
    .gi-sub { font-size: var(--fs-sm); }
    .gi-desc { margin-top: 10px; font-size: var(--fs-base); line-height: 1.6; }
    .gi-tags { margin-top: 12px; }

    /* 월드 */
    .gi-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--gi-head) + 28px) 16px 104px; }
    .gi-shot { position: relative; left: auto; top: auto; flex: none; width: 100%; max-width: 560px; height: auto; aspect-ratio: 16 / 9; margin: 0; }
    .gi-shot-name { font-size: 26px; }
    .gi-roll { position: relative; left: auto; top: auto; flex: none; width: 100%; max-width: 600px; height: auto; margin: -16px 0 0; padding: 26px 0 24px; }
    .gi-roll-bg { inset: 0 6px; }
    .gi-roll-bg::before, .gi-roll-bg::after { width: 8px; top: -5px; bottom: -5px; }
    .gi-roll-bg::before { left: -4px; }
    .gi-roll-bg::after { right: -4px; }
    .gi-roll-in { padding: 0 26px; }
    .gi-world .gi-util { top: auto; bottom: 44px; }

    /* 클래스 : 세로 배치 — 캐릭터(헤더 아래 남는 높이) → 설명 틀 → 아이콘 줄. 모든 클래스 같은 규칙 (클래스별 숫자 없음)
     * [introresp] 2026-11-22 예전 : 캐릭터 틀 = 화면 폭 × 섹션 높이 58%, 16:9 그림을 폭에 맞춰(contain) 넣어 그림 높이 = 화면 폭 × 0.56 (390 폭 = 219px)
     *   + 설명 틀이 아래 132px 에 따로 고정이라 그림 아래쪽을 30~100% 가리고, 그림 위로 250~350px 빈 띠 → 화면이 좁을수록 인물이 작아지고 숨음
     *   → 슬라이드 = 세로 flex : 위 여백(헤더 + 10) · 캐릭터 칸(남는 높이 전부, 최소 max(20svh, 140px)) · 설명 틀 · 아래 132px(아이콘 줄 자리, 예전과 같음)
     *     그림 = 캐릭터 칸 높이에 맞춰 가로 가운데 · 아래 붙임 (설명 틀 윗선에 인물 아래 끝이 닿음, 가리지 않음).
     *     그림 폭이 화면 폭의 160% 를 넘으면 폭 기준으로 줄임 → 인물 몸통(그림 가로 30~77%)이 화면 밖으로 안 나감. 좌우 흐림 16% → 8%
     *     내용이 화면보다 길면(아주 낮은 화면) 섹션이 그만큼 길어지고 보통 스크롤. 섹션 높이 = 가장 긴 슬라이드 (Swiper 가 슬라이드를 같은 높이로 늘림) */
    .gi-sec.gi-class { height: auto; min-height: 100vh; min-height: 100svh; }
    .gi-class .gi-sw { position: relative; inset: auto; }
    .gi-class .gi-sw .swiper-wrapper { height: auto; }
    .gi-class .gi-sw .gi-slide { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--gi-head) + 10px) 0 132px; }
    .gi-char { position: relative; inset: auto; flex: 1 1 auto; min-height: max(20vh, 140px); min-height: max(20svh, 140px); }
    .gi-char-in {
        inset: 0; width: auto; height: auto; aspect-ratio: auto; margin: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }
    .gi-char-in .gi-char-slot img { position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: 160%; transform: translateX(-50%); }
    .gi-anim .gi-char-in { transform: none; }
    .gi-lchar { display: none; } /* 2026-11-07 좌측 이미지는 PC만 : 좁은 화면은 캐릭터가 가로 가득 뒤에 깔려 두 장이면 겹침 */
    .gi-card { position: relative; left: auto; top: auto; flex: none; width: auto; height: auto; margin: 0 16px; padding: 22px 20px 24px; border-left: 0; border-top: 2px solid var(--c-gold); background: linear-gradient(180deg, var(--gi-panel), color-mix(in srgb, var(--c-bg-black) 82%, transparent)); }
    .gi-card::before, .gi-card::after { display: none; }
    .gi-card .gi-title { font-size: 30px; }
    .gi-card .gi-desc, .gi-card .gi-sub, .gi-card .gi-tags { max-width: none; }
    .gi-class .gi-util { bottom: 36px; height: 80px; }

    .gi-util { gap: 6px; padding: 0 8px; }
    .gi-util::before, .gi-util::after { display: none; }
    .gi-move { width: 28px; }
    .gi-dots { gap: 8px; }
    .gi-world .gi-dot { width: 16px; height: 16px; }
    .gi-world .gi-dot::before, .gi-world .gi-dot::after { top: 2px; left: 2px; width: 12px; height: 12px; }
    /* 클래스가 많으면 아이콘 줄을 옆으로 밀어 보기 (현재 클래스는 intro.js 가 가운데로) */
    .gi-class .gi-dots { position: relative; flex: 0 1 auto; justify-content: flex-start; flex-wrap: nowrap; gap: 8px; max-width: calc(100% - 68px); padding: 2px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .gi-class .gi-dots::-webkit-scrollbar { display: none; }
    .gi-class .gi-dot { flex: none; width: 56px; }
    .gi-class .gi-dot:first-child { margin-left: auto; }
    .gi-class .gi-dot:last-child { margin-right: auto; }
    .gi-ico { width: 50px; height: 50px; }
    .gi-ico em { font-size: 20px; }
    .gi-dot-label { font-size: var(--fs-xs); }
    .gi-scroll { bottom: 6px; transform: scale(.8); }
}
/* [introresp] 2026-11-22 태블릿(600~1023) 클래스 설명 틀 : 화면 가득(최대 991px)이면 한 줄이 너무 길어 최대 720px 가운데 (폰은 좌우 16px 그대로) */
@media (min-width: 600px) and (max-width: 1023px) {
    .gi-class .gi-card { align-self: center; width: calc(100% - 32px); max-width: 720px; margin: 0; }
}
/* [introresp] 2026-11-22 폰(767 이하) 클래스 아이콘 줄 : 사이트 공통 텔레그램 배너(오른쪽 아래 둥근 로고 46px, 오른쪽 14 · 아래 66)가
 *   '다음' 화살표와 오른쪽 아이콘을 22×27px 가리던 것 → 배너가 있을 때 줄 오른쪽 여백을 로고 자리(60) + 4 = 64px 로 비움
 *   줄이 가운데에 있어도 로고에 안 닿는 폭(636 이상)은 예전처럼 8px, 580~636 은 필요한 만큼만 (아이콘 7개 줄 폭 508 기준 : 644 − 화면 폭)
 *   768 이상은 배너가 56px · 오른쪽 30 이라 줄과 안 닿음. 관리자에서 배너 위치를 옮기거나 멘트 상자를 켜면 이 값과 안 맞을 수 있음 */
@media (max-width: 767px) {
    body:has(#tg_banner) .gi-class .gi-util { padding-right: clamp(8px, 644px - 100%, 64px); }
}

/* ---------- 2026-11-07 클래스 페이지 고정 (content.php?co_id=intro_class, .gi-lock) : 1024px 이상만 ----------
 *  공식 클래스 페이지처럼 한 화면 고정 : 페이지 스크롤 없음(휠로 푸터까지 내려가지 않음), 다른 섹션·푸터는 이 페이지에서 숨김
 *  휠·↑↓·세로 스와이프 = 이전/다음 클래스 (intro.js locked()). 섹션 = 화면 높이 그대로 (높이별 축소는 responsive.css 6) 그대로 적용)
 *  1023px 이하는 영향 없음 (보통 스크롤) */
@media (min-width: 1024px) {
    html:has(.gi-page.gi-lock), html:has(.gi-page.gi-lock) body, html.gi-locked, html.gi-locked body { overflow: hidden; overscroll-behavior: none; }
    html:has(.gi-page.gi-lock) #ft, html.gi-locked #ft { display: none; }
    .gi-page.gi-lock .gi-sec:not(.gi-class) { display: none; }
    .gi-page.gi-lock .gi-sec.gi-class { height: 100vh; height: 100dvh; min-height: 0; }
    .gi-page.gi-lock .gi-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gi-page *, .gi-page *::before, .gi-page *::after { transition: none !important; animation: none !important; }
}

/* 2026-11-07 PC(1024px 이상) 게임소개 : 휠을 내려도 마지막 섹션(로테이션)에서 멈춤 — 아래 푸터로 내려가지 않음
 *   (클래스 → 로테이션 순서로 바뀌어 예전 클래스 페이지 고정 대신 페이지 전체에 적용. 모바일·태블릿은 푸터 그대로) */
@media (min-width: 1024px) {
    html:has(.gi-page) #ft { display: none; }
}
