/* broodev 포털 — AIXOR 템플릿 위에 얹는 보정 + 전체화면 앱 모달
   템플릿 토큰: --primary #fff · --secondary #999 · --tertiary #666 · 배경 #000/#1a1a1a · Arapey(이탤릭 세리프) + Urbanist */

/* ── 워드마크(이미지 로고 대체) ── */
.brand-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}
.brand-mark .serif { font-family: var(--font_arapey); font-style: italic; font-weight: 300; }
.brand-mark .sans  { font-family: var(--font_urbanist); font-weight: 600; }
.brand-mark .dot   { color: var(--secondary); font-family: var(--font_urbanist); font-weight: 600; }
.header-menu-wrap .logo.brand-mark { font-size: 22px; }
.preloader-wrap .brand-mark { font-size: clamp(40px, 7vw, 88px); }
.preloader-wrap .brand-mark .serif { font-weight: 300; }
.footer-area .footer-bottom .brand-mark {
    width: 100%;
    justify-content: center;
    font-size: clamp(64px, 15.5vw, 300px);
    background-image: linear-gradient(180deg, #ffffff 0%, #2a2a2a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-area .footer-bottom .brand-mark .dot { -webkit-text-fill-color: #333; }

/* ── 헤더: 앱 메뉴는 좁은 화면에서도 남긴다(템플릿은 dropdown-menu-item 만 남김) ── */
.header-menu-wrap .navbar .menu li a { cursor: pointer; }
.header-menu-wrap .navbar .menu li.nav-apps a > span { color: var(--primary); }
@media (max-width: 1439px) {
    .header-menu-wrap .navbar > ul > li.nav-apps { display: block; }
}
.header-menu-wrap .header-right-info a i.lab { font-size: 24px; }

/* ── 히어로 한글 줄바꿈 ── */
body { word-break: keep-all; overflow-wrap: anywhere; }
.hero-sec .hero-top { max-width: 460px; }
.hero-sec .hero-bottom h2:nth-child(2) { font-size: 72px; line-height: 80px; }
@media (max-width: 809px) {
    .hero-sec .hero-bottom h2:nth-child(2) { font-size: 40px; line-height: 44px; }
}

/* ── 숫자 카드 호버 배경: 템플릿의 fun-fact*.png 는 회색 플레이스홀더라 CSS 로 대체 ── */
.funfact-box .overlay {
    display: block;
    background:
        radial-gradient(420px 220px at 85% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
        radial-gradient(360px 260px at 10% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, #262626 0%, #0d0d0d 100%);
}
.funfact-box.active, .funfact-box:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset; }
/* 템플릿은 제목을 min-content 로 단어마다 줄바꿈 — 한글은 글자 단위로 쪼개지므로 보정 */
.funfact-box .funfact-header .title { width: auto; max-width: 70%; overflow-wrap: normal; word-break: keep-all; }

/* ── 카테고리 섹션(템플릿 awards 레이아웃 재사용) — award-bg*.png 플레이스홀더 대신 그라디언트 ── */
.awards-list .awards-box .overlay,
.awards-list .awards-box:nth-child(2) .overlay,
.awards-list .awards-box:nth-child(3) .overlay,
.awards-list .awards-box:nth-child(4) .overlay,
.awards-list .awards-box:nth-child(5) .overlay,
.awards-list .awards-box:nth-child(6) .overlay {
    background-image:
        radial-gradient(900px 300px at var(--hl, 20%) 50%, rgba(255, 255, 255, 0.14) 0%, transparent 62%),
        linear-gradient(90deg, #1a1a1a 0%, #0a0a0a 100%);
}
.awards-list .awards-box:nth-child(2) .overlay { --hl: 40%; }
.awards-list .awards-box:nth-child(3) .overlay { --hl: 60%; }
.awards-list .awards-box:nth-child(4) .overlay { --hl: 75%; }
.awards-list .awards-box:nth-child(5) .overlay { --hl: 30%; }
.awards-list .awards-box:nth-child(6) .overlay { --hl: 85%; }
.awards-box .awards-inner { align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
.awards-box .awards-inner .cat-meta { display: flex; align-items: center; gap: 18px; }
.awards-box .awards-inner .cat-count {
    font-size: 14px; color: #808080; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    transition: 0.3s;
}
.awards-box.active .awards-inner .cat-count, .awards-box:hover .awards-inner .cat-count { color: var(--primary); }
.awards-box .awards-inner .cat-open {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 14px; opacity: 0.5; transition: 0.3s;
}
.awards-box:hover .awards-inner .cat-open { opacity: 1; }
.awards-box .awards-inner .cat-open img { width: 10px; height: 10px; display: block; }
@media (max-width: 809px) {
    .awards-box .awards-inner h4 { font-size: 36px; line-height: 40px; }
}

/* ── 대표 앱 썸네일(OG 1200×630) ── */
.feature-project .img-box img { aspect-ratio: 1200 / 630; object-fit: cover; background: #111; }

/* ── 사이트맵 섹션: 전체 앱을 카테고리별로 전부 펼친다(CSS 다단 — 인포패널 12 · 개발자 1 처럼 길이가 다른 카테고리를 자연스럽게 채움) ── */
.sitemap-sec { padding: 90px 72px 60px; }
.sitemap-sec .section-header { margin-bottom: 70px; }
.sitemap-sec .section-subtitle [data-count] { color: var(--primary); }
.sitemap-grid { columns: 3; column-gap: 24px; }
.sitemap-cat {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 24px;
    padding: 24px 24px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.35) 0%, rgba(26, 26, 26, 0.15) 100%);
    transition: border-color 0.3s, background 0.3s;
}
.sitemap-cat:hover, .sitemap-cat:focus-within { border-color: rgba(255, 255, 255, 0.28); background: rgba(26, 26, 26, 0.9); }
.sitemap-cat-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sitemap-cat-head .numeral { font-family: var(--font_arapey); font-style: italic; color: var(--secondary); font-size: 14px; letter-spacing: 0.08em; }
.sitemap-cat-head h4 { margin: 0; color: var(--primary); font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: -0.3px; }
.sitemap-cat-head h4 small { color: var(--secondary); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 8px; }
.sitemap-cat-head .en { width: 100%; color: var(--tertiary); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sitemap-list li:first-child { border-top: 0; }
/* 사이트맵 행(2026-10-13): 1줄 = 이름(말줄임) · 호스트(오른쪽 끝), 2줄 = 태그 묶음 .app-chips(상태 배지 + 요금 칩 · 행 전체 폭 · 태그가 있는 앱만 —
   portal.js marks(a, true) · gen-portal-static 이 배지도 묶음 안에 넣는다). .name 은 상자 없이(display: contents) 이름 · 묶음을 행(a)의 flex 항목으로 넘긴다 —
   예전처럼 칩이 .name 안에서 이름 아래로 내려가면 .name 이 칩보다 좁아질 때(2단 810~850px · iPad 세로 · de/es/it/pt/ru 의 긴 칩) 칩이 .name 밖으로 넘쳐
   옆 호스트 글자를 덮었다(검수 실측). 이름은 0 에서 늘어나되(flex-basis 0 — 줄 나눔 계산에서 호스트를 다음 줄로 밀지 않는다) 글자 폭까지만(max-width: max-content),
   남는 폭은 호스트의 margin-left: auto 가 가져간다(호스트가 숨는 좁은 화면에서도 이름은 왼쪽 그대로 — flex-start). */
.sitemap-list a {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 8px; row-gap: 4px;
    padding: 9px 4px; border-radius: 6px;
    color: var(--secondary); text-decoration: none; font-size: 14px; line-height: 20px; transition: 0.25s;
}
.sitemap-list a:hover, .sitemap-list a:focus-visible { color: var(--primary); background: rgba(255, 255, 255, 0.04); outline: none; }
/* 마우스 · 포커스 때 글자가 6px 들어가는 효과(2026-10-14): 예전 padding-left 4 → 10px 은 줄 폭을 줄여 다시 배치했다 — 올리는 순간 이름이 새로 말줄임되고(말줄임 툴팁 판정이
   흔들림) 칩이 포인터 밑에서 움직였다. 이제 이름 · 칩 묶음만 transform 으로 옮겨 배치는 그대로(호스트는 제자리 — 예전과 같은 모양) */
.sitemap-list a:hover .name-text, .sitemap-list a:hover .app-chips,
.sitemap-list a:focus-visible .name-text, .sitemap-list a:focus-visible .app-chips { transform: translateX(6px); }
.sitemap-list .name { display: contents; color: var(--primary); font-weight: 500; }
.sitemap-list .name-text { flex: 1 1 0; min-width: 0; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform 0.25s; }
.sitemap-list .app-chips { order: 3; flex: 1 1 100%; transition: transform 0.25s; }
.sitemap-list .host { order: 2; flex: none; margin-left: auto; padding-left: 4px; color: var(--tertiary); font-size: 11px; letter-spacing: 0.04em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sitemap-list a:hover .host { color: var(--secondary); }
.sitemap-list .app-badge { white-space: nowrap; font-size: 10px; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 20px; border: 1px solid #444; color: var(--secondary); text-transform: uppercase; }
.sitemap-list .app-badge.soon { border-color: #665; color: #ccb; }
@media (max-width: 1200px) {
    .sitemap-grid { columns: 2; }
}
@media (max-width: 809px) {
    .sitemap-sec { padding: 60px 22px 30px; }
    .sitemap-sec .section-header { margin-bottom: 40px; }
    .sitemap-grid { columns: 1; }
    .sitemap-list .host { display: none; }
    /* 템플릿은 모바일에서 섹션 제목(48px/60px)을 줄이지 않는다 — 한글 장문 제목(소개·사이트맵)이 한 줄에 서너 글자씩 떨어지므로 30px 로.
       body 의 overflow-wrap:anywhere 가 "broodev.com" 을 중간에 끊지 않도록 제목만 normal */
    .section-header .section-title:not(.section-title2) { font-size: 30px; line-height: 40px; letter-spacing: -1px; overflow-wrap: normal; }
}

/* ── 푸터 법적 고지 바(사업자명 · 요금 · 特商法 · 약관 · 개인정보 · 환불) — footer-top 의 3단 .row 아래 전폭 ── */
.footer-legal {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px;
    margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px; line-height: 20px; color: var(--tertiary);
}
.footer-legal a { color: var(--secondary); text-decoration: none; transition: 0.25s; }
.footer-legal a:hover { color: var(--primary); }
.footer-legal a small { font-size: 11px; color: var(--tertiary); letter-spacing: 0.04em; margin-left: 4px; }
.footer-legal .footer-legal-biz { color: var(--secondary); margin-right: auto; }
.footer-legal .footer-legal-biz a { color: var(--secondary); }
@media (max-width: 809px) {
    .footer-legal { gap: 8px 18px; margin-top: 30px; }
    .footer-legal .footer-legal-biz { width: 100%; }
}

/* ── 연락 폼 상태 ── */
.contact-content #result:empty { display: none; }
.contact-content #result.is-ok { color: #7CFC9A; }
.contact-content #result.is-err { color: #ff7b7b; }
.contact-form button[disabled] { opacity: 0.6; pointer-events: none; }

/* ── 전체화면 앱 모달 ── */
.apps-modal {
    position: fixed;
    inset: 0;
    z-index: 1040;               /* 헤더(1024)·사이드바(1026)·햄버거(1026)보다 위 */
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.apps-modal.active { opacity: 1; visibility: visible; }
.apps-modal .apps-modal-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 72px 72px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(16px);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.apps-modal.active .apps-modal-inner { transform: translateY(0); }
.apps-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}
.apps-modal-head .section-subtitle { width: auto; padding: 0; }
.apps-modal-head .apps-modal-title {
    display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.apps-modal-head .apps-modal-title h2 {
    margin: 0;
    font-family: var(--font_arapey);
    font-style: italic;
    font-weight: 300;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary);
}
.apps-modal-head .apps-modal-title h2 b { font-family: var(--font_urbanist); font-style: normal; font-weight: 600; }
.apps-modal-head .apps-modal-title .apps-total { color: var(--secondary); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.apps-modal-close {
    flex: none;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1.6px solid #fff;
    background: #1a1a1a;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
}
.apps-modal-close:hover { background: #fff; color: #000; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.apps-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 28px 28px 22px;
    background: linear-gradient(180deg, rgba(51, 51, 51, 0.35) 0%, rgba(26, 26, 26, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.apps-cat:hover, .apps-cat:focus-within { border-color: rgba(255, 255, 255, 0.28); background: rgba(26, 26, 26, 0.9); }
.apps-cat.is-target { border-color: rgba(255, 255, 255, 0.6); }
.apps-cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.apps-cat-head .numeral { font-family: var(--font_arapey); font-style: italic; color: var(--secondary); font-size: 14px; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.apps-cat-head h3 { margin: 0; color: var(--primary); font-size: 26px; line-height: 30px; letter-spacing: -0.5px; font-weight: 500; }
.apps-cat-head .en { display: block; color: var(--tertiary); font-size: 11px; letter-spacing: 0.14em; margin-top: 6px; text-transform: uppercase; }
.apps-cat-head .count {
    flex: none;
    border: 1px solid #333; border-radius: 30px; padding: 6px 12px;
    color: var(--secondary); font-size: 12px; letter-spacing: 0.06em; white-space: nowrap;
}
.apps-cat-head .count b { color: var(--primary); font-weight: 600; }
.apps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: calc(5 * 62px); }
.apps-list li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.apps-list li:first-child { border-top: 0; }
.apps-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 6px; min-height: 62px;   /* 요금 칩이 이름 아래 줄로 내려가면 그 행만 높아진다(2026-10-13 — 예전 height: 62px 고정) */
    color: var(--secondary); text-decoration: none; transition: 0.25s;
    border-radius: 8px;
}
.apps-list a:hover, .apps-list a:focus-visible { color: var(--primary); background: rgba(255, 255, 255, 0.04); outline: none; }
/* 들어가는 효과(2026-10-14): 예전 padding-left 6 → 12px 은 .app-main 폭을 줄여 다시 배치했다 — 이름 옆 칩 묶음이 아랫줄로 넘어가 행 높이 · 설명 위치가 포인터 밑에서
   바뀌고, 이름 · 설명이 올리는 순간 새로 말줄임됐다(말줄임 툴팁 판정이 흔들림). 이제 .app-main 만 transform 으로 6px — 배치는 그대로 */
.apps-list a:hover .app-main, .apps-list a:focus-visible .app-main { transform: translateX(6px); }
.apps-list .app-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; transition: transform 0.25s; }
.apps-list .app-name { color: var(--primary); font-size: 15px; font-weight: 600; line-height: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.apps-list .app-name-text { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps-list .app-desc { font-size: 12px; line-height: 16px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps-list a:hover .app-desc { color: #bbb; }
.apps-list .app-host { flex: none; font-size: 11px; letter-spacing: 0.04em; color: var(--tertiary); display: inline-flex; align-items: center; gap: 6px; }
.apps-list .app-host img { width: 9px; height: 9px; display: block; opacity: 0.6; }
.apps-list a:hover .app-host { color: var(--secondary); }
.apps-list .app-badge { white-space: nowrap; font-size: 10px; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 20px; border: 1px solid #444; color: var(--secondary); text-transform: uppercase; }
.apps-list .app-badge.soon { border-color: #665; color: #ccb; }
.apps-list li.is-empty { height: 62px; }

/* ── 요금 칩(2026-10-13) — 사이트맵 · 모달 공통. .paid = 부분유료(기본 무료 + 유료 프리미엄) · .lifetime = 買い切り(1회 결제 · 기한 없음) 플랜 있음 ·
   .free = 무료(2026-10-14 — 유료 플랜 없음 · 아래 .app-chip.free)
   데이터 catalog.js paid · lifetime · free · 글자와 title 은 i18n-data.js badge_paid · badge_lifetime · badge_free(+ _title) 13개 언어.
   채운 바탕 + 어두운 글자라 글자 대비가 페이지 바탕(밝은 · 어두운 테마)과 상관없이 칩 안에서 정해진다 — 호박 #F2C14E / #1F1600 = 10.67:1 · 보라 #C4B5FD / #2E1065 = 8.25:1
   (WCAG AA 4.5:1 이상 · 작은 글자 AAA 7:1 도 넘음). 테두리(호박 #8A6A00 · 보라 #6D4BD8)는 흰 바탕 5.07 · 5.76:1 · 검정 4.14 · 3.65:1 · #1a1a1a 3.43 · 3.02:1 —
   어느 바탕에서도 칩 모양이 3:1 이상으로 보인다. 상태 배지(베타 · 준비 중 = 회색 테두리 · 바탕 없음 · 대문자)와는 채움 · 색 · 대소문자로 구분.
   Windows 고대비(forced-colors)에서는 바탕색이 지워지므로 시스템 글자색 테두리로 칩 모양을 남긴다.
   칸이 가장 좁은 곳은 320px 화면의 사이트맵 행(내용 114px)과 810px 모달 2단의 .app-main(약 130px) — 13개 언어 칩 문구는 Windows Chrome 실측 47~110px 로
   그 안에 한 줄로 들어간다(2026-10-13 · 긴 문구는 그 폭에 맞게 골랐다: es · it · de · ru). max-width 100% + 줄바꿈은 마지막 안전장치 — 글꼴이 더 넓은 기기 ·
   더 좁은 화면에서 칩이 칸 밖으로 넘쳐 옆 호스트를 덮거나 잘리는 대신 칩 안에서 두 줄이 된다(평소에는 flex: none = 글자 폭 그대로 한 줄) */
.app-chip {
    --chip-bg: #F2C14E; --chip-fg: #1F1600; --chip-line: #8A6A00;
    flex: none; display: inline-block; max-width: 100%; white-space: normal; text-align: center;
    font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: 0.02em;
    padding: 1px 7px; border-radius: 20px; border: 1px solid var(--chip-line);
    background: var(--chip-bg); color: var(--chip-fg);
}
.app-chip.lifetime { --chip-bg: #C4B5FD; --chip-fg: #2E1065; --chip-line: #6D4BD8; }
/* 「무료」 칩(2026-10-14 — 유료 플랜이 없는 앱 · catalog.js 가 free 를 자동으로 붙임 · 개발자 소개는 없음): 에메랄드 — 「무료 = 초록」 관례 · 호박(부분유료) · 보라(買い切り)와 다른 색상.
   글자 #022C22 / 바탕 #6EE7B7 = 9.94:1(AA · 작은 글자 AAA 7:1 도 넘음) · 테두리 #047857 은 흰 바탕 5.48 · 검정 3.83 · #1a1a1a 3.17 · 모달 #0d0d0d 3.54:1(어느 바탕에서도 3:1 이상).
   후보 5색(초록 · 에메랄드 · 청록 · 하늘 · 민트)을 적록 · 청황 색각 이상 시뮬레이션(Machado 2009)으로 견줘, 두 칩과의 색 차이(ΔE)가 가장 작은 경우에도 가장 큰 것(43)을 골랐다 —
   그래도 색에만 기대지 않는다(칩마다 글자가 다름) */
.app-chip.free { --chip-bg: #6EE7B7; --chip-fg: #022C22; --chip-line: #047857; }
/* 칩 묶음(모달): 이름 옆에 함께 있다가 자리가 모자라면 묶음째 다음 줄로(칩 하나씩 흩어지지 않게) — 그 줄보다도 넓으면(좁은 화면 · 긴 언어) 묶음 안에서 줄바꿈.
   사이트맵은 위 「사이트맵 행」 규칙(.sitemap-list .app-chips)으로 늘 이름 · 호스트 줄 아래 한 줄 전체 */
.app-chips { flex: 0 1 auto; min-width: 0; max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
@media (forced-colors: active) {
    .app-chip { border-color: CanvasText; }
}

/* ── 말줄임 툴팁(2026-10-14) — portal.js 「말줄임 툴팁」: 모달 · 사이트맵 행에서 말줄임(…)으로 잘린 이름 · 설명 전체(사이트맵은 설명도)를 마우스 · 키보드 포커스 때 즉시.
   포털 다크 톤(언어 풀다운 .portal-lang-menu 와 같은 바탕 · 그림자 — 테두리는 밑의 행 글자와 갈라 보이게 조금 밝게 #555) · 글자 #d6d6d6 / #0b0b0b = 13.5:1 · 이름 #fff = 19.7:1.
   위치(left · top)와 최대 폭은 portal.js 가 화면(모달 안이면 모달 상자) 가장자리 8px 안으로 계산 · pointer-events none(밑의 행은 그대로 마우스로 고를 수 있다) */
.portal-tip {
    position: fixed; left: 0; top: 0; z-index: 1300;   /* 모달(1040) · 언어 풀다운(1200) 위 */
    box-sizing: border-box; max-width: min(440px, calc(100vw - 16px));
    padding: 9px 12px; border-radius: 10px; border: 1px solid #555;
    background: #0b0b0b; color: #d6d6d6; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    font-family: var(--font_urbanist); font-size: 13px; line-height: 19px; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left;
    white-space: normal; overflow-wrap: anywhere;
    pointer-events: none;
}
.portal-tip[hidden] { display: none; }
.portal-tip-name, .portal-tip-desc { display: block; }
.portal-tip-name { color: #fff; font-weight: 600; }
.portal-tip-name + .portal-tip-desc { margin-top: 4px; }
@media (forced-colors: active) {
    .portal-tip { border-color: CanvasText; }
}

.apps-pager {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #333;
}
.apps-pager .pager-pages { display: flex; align-items: center; gap: 6px; }
.apps-pager button {
    appearance: none; -webkit-appearance: none;
    border: 1px solid #333; background: transparent; color: var(--secondary);
    width: 34px; height: 34px; border-radius: 50%;
    font: 500 13px/1 var(--font_urbanist); cursor: pointer; transition: 0.25s;
    display: inline-flex; align-items: center; justify-content: center;
}
.apps-pager button:hover:not([disabled]):not(.is-current) { border-color: #fff; color: #fff; }
.apps-pager button.is-current { background: #fff; color: #000; border-color: #fff; cursor: default; }
.apps-pager button[disabled] { opacity: 0.3; cursor: not-allowed; }
.apps-pager .pager-status { font-size: 12px; color: var(--tertiary); letter-spacing: 0.08em; }
.apps-pager.is-single { opacity: 0.45; }
.apps-pager.is-single .pager-status { color: var(--tertiary); }

.apps-modal-foot { margin-top: 36px; color: var(--tertiary); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.apps-modal-foot a { color: var(--secondary); }
.apps-modal-foot a:hover { color: var(--primary); }

body.apps-modal-open { overflow: hidden; }

@media (max-width: 1200px) {
    .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
    .apps-modal .apps-modal-inner { padding: 22px 22px 48px; }
    .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .apps-modal-head .apps-modal-title h2 { font-size: 34px; }
    .apps-modal-close { width: 48px; height: 48px; font-size: 20px; }
    .apps-list { min-height: 0; }
    .apps-list li.is-empty { display: none; }
    .apps-list .app-host { display: none; }
}
/* ── 「모든 앱 보기」 CTA 를 계속 살아 있게(2026-10-28) ──
   히어로 버튼이 첫 화면 맨 아래 · 검정 위 검정이라 있는지도 모른다는 피드백. 4초 주기로 숨 쉬듯 떠오르다가(0–60%)
   종 울리듯 좌우로 삐링삐링 흔들리며(64–84%) 흰 링이 퍼진다(box-shadow — overflow:hidden 인 자기 자신에 안 잘린다).
   hover · focus 중에는 멈춰 템플릿의 흰 채움(:before) 효과만 남긴다. 움직임 줄이기 설정이면 정지 + 옅은 정적 링. */
.theme-btn.apps-cta {
    transform-origin: 50% 60%;
    will-change: transform, box-shadow;
    animation: apps-cta-wiggle 4s ease-in-out infinite, apps-cta-ping 4s ease-out infinite;
}
/* hover 중: 흔들림은 그 자리에서 멈추고(제자리로 튕기면 포인터가 빠져 hover 가 깜빡인다) 링은 거둔다 */
.theme-btn.apps-cta:hover, .theme-btn.apps-cta:focus-visible { animation: apps-cta-wiggle 4s ease-in-out infinite paused; }
.theme-btn.apps-cta img { transition: transform .25s; }
.theme-btn.apps-cta:hover img { transform: translate(2px, -2px); }
/* 헤더 「전체 앱 (N)」 도 같은 4초 박자로 — 글자 링크라 링 대신 밑줄(템플릿 :before)이 쓸려가고 숫자 (N) 이 톡 커진다 */
.header-menu-wrap .navbar .menu li.nav-apps > a {
    transform-origin: 50% 70%;
    animation: apps-cta-wiggle 4s ease-in-out infinite;
}
.header-menu-wrap .navbar .menu li.nav-apps > a:before { animation: apps-cta-underline 4s ease-in-out infinite; }
.header-menu-wrap .navbar .menu li.nav-apps > a > span:not(.nav-label) { display: inline-block; transform-origin: 0 60%; animation: apps-cta-count 4s ease-in-out infinite; }   /* 왼쪽 기준 — 커질 때 라벨을 안 덮게 */
.header-menu-wrap .navbar .menu li.nav-apps > a:hover,
.header-menu-wrap .navbar .menu li.nav-apps > a:focus-visible { animation-play-state: paused; }
.header-menu-wrap .navbar .menu li.nav-apps > a:hover:before,
.header-menu-wrap .navbar .menu li.nav-apps > a:focus-visible:before,
.header-menu-wrap .navbar .menu li.nav-apps > a:hover > span:not(.nav-label),
.header-menu-wrap .navbar .menu li.nav-apps > a:focus-visible > span:not(.nav-label) { animation: none; }
@keyframes apps-cta-underline {
    0%, 60%   { width: 10%;  opacity: 0; }
    64%       { width: 10%;  opacity: 1; }
    80%       { width: 100%; opacity: 1; }
    92%, 100% { width: 100%; opacity: 0; }
}
@keyframes apps-cta-count {
    0%, 60%, 88%, 100% { transform: scale(1); }
    66%                { transform: scale(1.4); }
    74%                { transform: scale(1.1); }
    80%                { transform: scale(1.3); }
}
@keyframes apps-cta-wiggle {
    0%, 30%, 60% { transform: translateY(0) rotate(0); }
    15%, 45%     { transform: translateY(-4px) rotate(0); }
    64%          { transform: translateY(-6px) rotate(-6deg); }
    68%          { transform: translateY(-6px) rotate(6deg); }
    72%          { transform: translateY(-6px) rotate(-5deg); }
    76%          { transform: translateY(-6px) rotate(4deg); }
    80%          { transform: translateY(-5px) rotate(-2deg); }
    84%, 100%    { transform: translateY(0) rotate(0); }
}
@keyframes apps-cta-ping {
    0%, 61%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    62%       { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
    92%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .apps-modal, .apps-modal .apps-modal-inner { transition: none; }
    .apps-list .app-main, .sitemap-list .name-text, .sitemap-list .app-chips { transition: none; }
    .theme-btn.apps-cta { animation: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
    .header-menu-wrap .navbar .menu li.nav-apps > a,
    .header-menu-wrap .navbar .menu li.nav-apps > a:before,
    .header-menu-wrap .navbar .menu li.nav-apps > a > span { animation: none; }
    .header-menu-wrap .navbar .menu li.nav-apps > a:before { width: 100%; opacity: .45; }   /* 정적 밑줄로만 표시 */
}

/* ── 13개 언어 (assets/js/i18n.js) ── */
/* 헤더 메뉴 라벨을 <span class="nav-label"> 로 감쌌다 — 템플릿의 `a > span`(건수 표시, 10px) 규칙을 상속하지 않게 */
.header-menu-wrap .navbar .menu li a > span.nav-label { font-size: inherit; line-height: inherit; color: inherit; }
/* 언어 풀다운(.portal-lang) — 헤더 오른쪽 + 햄버거 사이드바 상단. legal.css 의 .legal-lang 과 같은 룩 */
.portal-lang { position: relative; display: inline-block; }
.portal-lang-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
    border-radius: 999px; border: 1px solid #333; background: transparent; color: var(--primary);
    font: inherit; font-size: 13px; line-height: 1; cursor: pointer; white-space: nowrap;
}
.portal-lang-toggle:hover, .portal-lang.open .portal-lang-toggle { border-color: #777; }
.portal-lang-caret { display: inline-block; font-size: 10px; color: var(--secondary); transition: transform .15s; }
.portal-lang.open .portal-lang-caret { transform: rotate(180deg); }
.portal-lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; max-height: min(70vh, 560px); overflow-y: auto;
    margin: 0; padding: 6px; list-style: none; background: #0b0b0b; border: 1px solid #333; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .6); display: none; z-index: 1200; scrollbar-width: thin;
}
.portal-lang.open .portal-lang-menu { display: block; }
.portal-lang-menu li { margin: 0; }
.portal-lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-radius: 8px;
    color: #d6d6d6; text-decoration: none; font-size: 14px; line-height: 22px; white-space: nowrap; font-weight: 400; text-transform: none;
}
.portal-lang-menu a:hover { background: #1c1c1c; color: #fff; }
.portal-lang-menu a.active { background: #fff; color: #000; }
.header-menu-wrap .header-right-info .portal-lang { margin-left: -30px; }           /* 템플릿 gap 66px 이 넓어서 */
.header-sidebar-wrap .header-sidebar-content .header-sidebar-top .portal-lang { margin-top: 18px; }
.header-sidebar-wrap .header-sidebar-content .header-sidebar-top .portal-lang-menu { right: auto; left: 0; }
/* 사이드바의 `ul li a { color: white }` 가 더 구체적이라 항목 색을 다시 지정(선택 항목은 흰 배경 + 검정 글자) */
.header-sidebar-wrap .header-sidebar-content .header-sidebar-top .portal-lang-menu li a { color: #d6d6d6; }
.header-sidebar-wrap .header-sidebar-content .header-sidebar-top .portal-lang-menu li a:hover { color: #fff; }
.header-sidebar-wrap .header-sidebar-content .header-sidebar-top .portal-lang-menu li a.active { color: #000; }
@media (max-width: 809px) {
    /* 좁은 화면: 긴 언어의 메뉴 라벨(アプリ一覧 · Приложения …)이 줄바꿈되지 않게, 풀다운은 아이콘만 */
    .header-menu-wrap .navbar { margin-right: 14px; }
    .header-menu-wrap .navbar .menu li.nav-apps a { white-space: nowrap; }
    .header-menu-wrap .header-right-info { gap: 18px; }
    .header-menu-wrap .header-right-info .portal-lang { margin-left: 0; }
    .header-menu-wrap .header-right-info .portal-lang-toggle { height: 34px; padding: 0 10px; font-size: 12px; gap: 6px; }
    .header-menu-wrap .header-right-info .portal-lang-toggle [data-lang-current] { display: none; }
    /* responsive.css 가 .header-right-info a:nth-child(1) 을 숨기는데 풀다운 항목(li > a)도 걸린다 */
    .header-menu-wrap .header-right-info .portal-lang .portal-lang-menu a { display: flex; }
}
/* 404 본문: 템플릿의 p 가 flex(별표 + 한 문장용)라 <b>·<br> 이 있는 13개 언어 문장이 조각나므로 보통 문단으로 */
.error-hero-sec .hero-bottom p { display: block; max-width: 640px; }
.error-hero-sec .hero-bottom p .required { margin-right: 6px; }

/* 도메인 미연결 앱(status 'soon') — 링크 없음(portal.js linkAttrs) · 클릭 커서 표시 안 함 */
a.is-soon { cursor: default; }

/* 히어로 제목 = 페이지의 유일한 h1(2026-10-10 SEO L6) — 예전 h2 두 줄(style.css · responsive.css · 위 nth-child(2))과 같은 계산값 */
.hero-sec .hero-bottom h1.hero-title { margin: 0; padding: 0; font: inherit; letter-spacing: normal; display: flex; flex-direction: column; align-items: flex-start; }   /* 예전 h2 두 줄처럼 flex 항목 — 음수 margin 이 겹치지 않게(높이 동일) */
.hero-sec .hero-bottom .hero-title > span { display: block; background-image: linear-gradient(90deg, #ffffff 16%, #4d4d4d 140%); background-clip: text; -webkit-text-fill-color: transparent; font-size: 96px; line-height: 96px; letter-spacing: -0.04em; font-style: italic; font-family: var(--font_arapey); font-weight: 300; padding: 14px; margin: -14px; }
.hero-sec .hero-bottom .hero-title > span + span { font-family: var(--font_urbanist); font-style: normal; font-size: 72px; line-height: 80px; }
@media (max-width: 1440px) {
    .hero-sec .hero-bottom .hero-title > span { font-size: 74px; line-height: 74px; font-weight: 400; font-family: Arapey, serif; }
    .hero-sec .hero-bottom .hero-title > span + span { font-family: var(--font_urbanist); font-size: 72px; line-height: 80px; }
}
@media (max-width: 809px) {
    .hero-sec .hero-bottom .hero-title > span { font-size: 52px; line-height: 52px; padding: 7px; margin: -7px; }
    .hero-sec .hero-bottom .hero-title > span + span { font-size: 40px; line-height: 44px; }
}
