/* =====================================================================
   Home — Low-poly skin (게임 화면 city-ui-lowpoly.css와 같은 디자인 언어)
   ---------------------------------------------------------------------
   - 스킨 전용: 색/면 분할/블록 두께/모서리만 바꾸고 레이아웃·크기는 home.html 그대로.
   - 화이트(기본) / 다크(html.lp-dark). 다크 여부는 게임과 같은 localStorage 'hudDarkMode'를
     <head> 인라인 스크립트가 첫 페인트 전에 html 클래스로 반영 → 깜빡임 없음.
   - home.html 본문은 인라인 style 색이 많아(48곳 #0f172a 등) 다크 모드에선 [style*="color:..."]
     속성 셀렉터 + !important로 같은 의미의 밝은 톤에 매핑한다.
   - 비용: 이미지/JS 0. .card/.rankings-panel의 backdrop-filter(blur) 제거 → 뒤에서 계속 렌더되는
     3D iframe 위 매 프레임 블러 합성이 사라짐(GPU 절감). /cache/js immutable → 수정 시 ?v= bump.
   ===================================================================== */

:root {
    --hp-panel-hi: #ffffff;
    --hp-panel-lo: #eef4fa;
    --hp-panel-facet: rgba(29, 66, 105, 0.045);
    --hp-panel-frame: #8ea7c3;
    --hp-panel-edge: #6f88a4;
    --hp-panel-lip: rgba(31, 58, 92, 0.12);
    --hp-panel-shadow: rgba(10, 25, 45, 0.28);
    --hp-title: #13263d;
    --hp-text: #1b2a3d;
    --hp-sub: #4a5b70;
    --hp-tile-hi: #fbfdff;
    --hp-tile-lo: #e6eff8;
    --hp-tile-line: #b6c7da;
    --hp-tile-lip: #a9bdd3;
    --hp-chip-hi: #2b5683;
    --hp-chip-lo: #173556;
    --hp-chip-ink: #0b1a2e;
    --hp-yellow-hi: #ffdd55;
    --hp-yellow-lo: #f6b519;
    --hp-yellow-lip: rgba(150, 82, 0, 0.5);
    --hp-page: #dfe9f3;
    --hp-input-bg: #f6f9fc;
    --hp-input-ph: #7b8ba0;
}

html.lp-dark {
    --hp-panel-hi: #1f3f63;
    --hp-panel-lo: #11263f;
    --hp-panel-facet: rgba(255, 255, 255, 0.05);
    --hp-panel-frame: #0b1a2e;
    --hp-panel-edge: #050d18;
    --hp-panel-lip: rgba(5, 13, 24, 0.45);
    --hp-panel-shadow: rgba(0, 0, 0, 0.45);
    --hp-title: #f1f5f9;
    --hp-text: #e6eef8;
    --hp-sub: #b8c6d8;
    --hp-tile-hi: #2d5079;
    --hp-tile-lo: #213f60;
    --hp-tile-line: #0b1a2e;
    --hp-tile-lip: #0d2036;
    --hp-page: #0a1628;
    --hp-input-bg: #0d1f33;
    --hp-input-ph: #7f93ab;
}

body {
    background: var(--hp-page);
}

/* ---------- 패널(로그인 카드, 랭킹/가이드 섹션): 면 분할 판 + 테두리 + 하단 두께 ---------- */
body .card,
body .rankings-panel {
    background:
        linear-gradient(118deg, var(--hp-panel-facet) 0 22%, transparent 22.2%),
        linear-gradient(252deg, var(--hp-panel-facet) 0 30%, transparent 30.2%),
        linear-gradient(180deg, var(--hp-panel-hi), var(--hp-panel-lo));
    border: 1px solid var(--hp-panel-frame); /* 원래 1px — 레이아웃 불변, 나머지 두께는 바깥 링 */
    border-radius: 10px;
    box-shadow:
        inset 0 -5px 0 var(--hp-panel-lip),
        0 0 0 1px var(--hp-panel-frame),
        0 5px 0 var(--hp-panel-edge),
        0 16px 34px var(--hp-panel-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--hp-text);
}

body .card h2,
body .rankings-panel h2,
body .rankings-panel h3 {
    color: var(--hp-title);
}

body .card p {
    color: var(--hp-sub);
}

/* 섹션 헤더: 노란 밑줄(게임의 선택/주요 버튼 색) */
body .rankings-panel .rankings-header {
    border-bottom-color: var(--hp-yellow-lo); /* 원본 1px 유지 + 아래 2px 그림자로 3px 밑줄(크기 불변) */
    box-shadow: 0 2px 0 var(--hp-yellow-lo);
}

/* ---------- 버튼 ---------- */
body .btn-primary,
body .action-btn-continue {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.34) 0 34%, transparent 34.5%),
        linear-gradient(180deg, var(--hp-yellow-hi), var(--hp-yellow-lo));
    border: none; /* 원래 테두리 없음 → 외곽선은 inset 링(크기 불변) */
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px #9a6a00, inset 0 -4px 0 var(--hp-yellow-lip);
    color: #4a2b00;
    font-weight: 800;
}

body .btn-primary:hover,
body .action-btn-continue:hover {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.4) 0 34%, transparent 34.5%),
        linear-gradient(180deg, #ffe680, #ffc22e);
    box-shadow: inset 0 0 0 2px #9a6a00, inset 0 -4px 0 var(--hp-yellow-lip), 0 6px 18px rgba(246, 181, 25, 0.35);
}

body .btn-primary:active,
body .action-btn-continue:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 2px #9a6a00, inset 0 -2px 0 var(--hp-yellow-lip);
}

body .btn-secondary,
body .action-btn-start {
    background:
        linear-gradient(300deg, rgba(20, 47, 77, 0.07) 0 30%, transparent 30.5%),
        linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border: 1px solid var(--hp-tile-line); /* 원래 1px */
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--hp-tile-line), inset 0 -4px 0 var(--hp-tile-lip);
    color: var(--hp-text);
}

body .btn-secondary:hover,
body .action-btn-start:hover {
    filter: brightness(1.05);
    border-color: var(--hp-panel-frame);
}

/* 상단 내비 링크(지도 편집기/관리자/로그인/가입): 기존 색 유지 + 블록 두께 */
body .nav-link {
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px rgba(11, 26, 46, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 4px 0 rgba(11, 26, 46, 0.45);
}

body .nav-link:active {
    transform: translateY(2px);
    box-shadow: inset 0 0 0 2px rgba(11, 26, 46, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 2px 0 rgba(11, 26, 46, 0.45);
}

body #btnViewAllCities {
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px #1e3a8a, inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* 판 안의 작은 타일(사용자 정보, 랭킹 항목, 가이드 링크 카드): 하단 두께만 추가 */
body .user-info,
body .ranking-item,
body .rankings-panel a[style*="background:#f"],
body .rankings-panel a[style*="background: #f"] {
    box-shadow: inset 0 -3px 0 var(--hp-tile-lip);
}

body .ranking-item:hover {
    border-color: var(--hp-panel-frame);
}

/* 화이트 모드에서 대비가 2.2~2.8로 옅던 글씨 보정 */
html:not(.lp-dark) body .user-status { color: #15803d; }
html:not(.lp-dark) body .card-footer a { color: #64748b; }
html:not(.lp-dark) body .rankings-panel p[style*="rgba(0,0,0,0.4)"],
html:not(.lp-dark) body .rankings-panel p[style*="rgba(0, 0, 0, 0.4)"] { color: #5b6b80 !important; }
html:not(.lp-dark) body .ranking-last-access { color: #64748b; }
body .ranking-position.gold { color: #4a2b00; }

/* ---------- 3D 배경 위 칩(통계 카드, 언어 선택, 버전, 쇼케이스): 남색 블록 (양 모드 공통) ---------- */
body .container > .rankings-section > div > div[style*="rgba(0,0,0,0.4)"],
body .container > .rankings-section > div > div[style*="rgba(0, 0, 0, 0.4)"] {
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0 30%, transparent 30.3%),
        linear-gradient(180deg, rgba(43, 86, 131, 0.92), rgba(23, 53, 86, 0.94)) !important;
    border: 1px solid var(--hp-chip-ink) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 0 1px var(--hp-chip-ink), inset 0 -4px 0 rgba(5, 13, 24, 0.5), 0 4px 0 rgba(5, 13, 24, 0.55);
}

body #i18n-lang-selector,
body .version-badge,
body .showcase-badge {
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0 30%, transparent 30.3%),
        linear-gradient(180deg, var(--hp-chip-hi), var(--hp-chip-lo));
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--hp-chip-ink), inset 0 -3px 0 rgba(5, 13, 24, 0.5), 0 3px 0 rgba(5, 13, 24, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body #i18n-lang-selector button {
    border-radius: 4px;
}

/* ---------- 화이트/다크 전환 버튼 (home.html 하단 고정, 버전 뱃지 위) ---------- */
#homeThemeToggle {
    position: fixed;
    left: 12px;
    bottom: 54px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.12) 0 34%, transparent 34.5%),
        linear-gradient(180deg, var(--hp-chip-hi), var(--hp-chip-lo));
    border: 2px solid var(--hp-chip-ink);
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 rgba(5, 13, 24, 0.5), 0 3px 0 rgba(5, 13, 24, 0.5);
}

#homeThemeToggle:active {
    transform: translateY(2px);
    box-shadow: inset 0 -1px 0 rgba(5, 13, 24, 0.5), 0 1px 0 rgba(5, 13, 24, 0.5);
}

#homeThemeToggle:focus-visible {
    outline: 2px solid var(--hp-yellow-hi);
    outline-offset: 2px;
}

#homeThemeToggle .hp-theme-moon { display: inline; }
#homeThemeToggle .hp-theme-sun { display: none; }
html.lp-dark #homeThemeToggle .hp-theme-moon { display: none; }
html.lp-dark #homeThemeToggle .hp-theme-sun { display: inline; }

/* =====================================================================
   다크 모드 — 판 안 글씨/배경 매핑 (검정 글씨 금지)
   ===================================================================== */
html.lp-dark :is(.card, .rankings-panel) :where(h1, h2, h3, h4, h5, p, li, span, div, label, strong, b, small, dt, dd, summary, td, th, a, time, em) {
    color: var(--hp-text);
}

html.lp-dark :is(.card, .rankings-panel) :is(.card p, p, .ranking-user-line, .ranking-last-access, .ranking-meta, small) {
    color: var(--hp-sub);
}

/* 인라인 글씨색 → 같은 의미의 밝은 톤 */
html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#0f172a"], [style*="color: #0f172a"], [style*="color:#333"], [style*="color: #333"], [style*="color:#1e293b"], [style*="color: #1e293b"]) {
    color: #f1f5f9 !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#64748b"], [style*="color: #64748b"], [style*="color:#6b7280"], [style*="color: #6b7280"], [style*="color:#475569"], [style*="color: #475569"], [style*="color:#334155"], [style*="color: #334155"], [style*="color:rgba(0,0,0,0.4)"], [style*="color: rgba(0,0,0,0.4)"]) {
    color: #b8c6d8 !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#94a3b8"], [style*="color: #94a3b8"], [style*="color:#d1d5db"], [style*="color: #d1d5db"]) {
    color: #8fa3bb !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#dc2626"], [style*="color: #dc2626"], [style*="color:#ef4444"], [style*="color: #ef4444"]) {
    color: #fca5a5 !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#3b82f6"], [style*="color: #3b82f6"], [style*="color:#2563eb"], [style*="color: #2563eb"]) {
    color: #93c5fd !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="color:#16a34a"], [style*="color: #16a34a"]) {
    color: #4ade80 !important;
}

/* 인라인 밝은 배경 → 어두운 타일 */
html.lp-dark :is(.card, .rankings-panel) :is([style*="background:#f8fafc"], [style*="background: #f8fafc"], [style*="background:#fff;"], [style*="background: #fff;"], [style*="background:#ffffff"], [style*="background:#f5fbf7"], [style*="background: #f5fbf7"]) {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo)) !important;
    border-color: var(--hp-tile-line) !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="background:#fef2f2"], [style*="background: #fef2f2"]) {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="background:#f0fdf4"], [style*="background: #f0fdf4"]) {
    background: rgba(34, 197, 94, 0.14) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

html.lp-dark :is(.card, .rankings-panel) :is([style*="background:#f0f9ff"], [style*="background: #f0f9ff"]) {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

/* 클래스 기반 밝은 타일/입력 */
html.lp-dark :is(.card, .rankings-panel) :is(.user-info, .ranking-item, .admin-impersonate) {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border-color: var(--hp-tile-line);
}

html.lp-dark :is(.card, .rankings-panel) :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    background: #0d1f33 !important;
    border-color: #2c4d70 !important;
    color: #e6eef8 !important;
}

html.lp-dark :is(.card, .rankings-panel) :is(input, textarea)::placeholder {
    color: #7f93ab;
}

/* 판 안 구분선/테두리(#e2e8f0 계열) */
html.lp-dark :is(.card, .rankings-panel) :is([style*="border:1px solid #e2e8f0"], [style*="border: 1px solid #e2e8f0"], [style*="border-bottom:1px solid #e2e8f0"], [style*="border-top:1px solid #e2e8f0"]) {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 버튼 글씨는 각 버튼 색 유지(노란 블록=진갈색, 파랑/주황=흰색) */
html.lp-dark :is(.card, .rankings-panel) :is(.btn-primary, .action-btn-continue) {
    color: #4a2b00;
}

html.lp-dark :is(.card, .rankings-panel) :is(.btn-primary, .action-btn-continue) * {
    color: #4a2b00;
}

html.lp-dark :is(.card, .rankings-panel) :is(#btnViewAllCities, .admin-badge, .avatar, .ranking-position, #adminImpersonateButton),
html.lp-dark :is(.card, .rankings-panel) :is(#btnViewAllCities, .admin-badge, .avatar, .ranking-position, #adminImpersonateButton) * {
    color: #ffffff;
}

/* 메인 헤더: 양 모드 모두 원본처럼 흰 BUILD + 시안 CITY, 태그라인 흰색 (사용자 지정 2026-10-20).
   3D 배경·밝은 바탕 위에서도 읽히게 진한 외곽 그림자만 추가. (Codex 후보의 화이트 모드 어두운 헤더 보정은 대체) */
.logo {
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(11, 26, 46, 0.55), 0 0 10px rgba(11, 26, 46, 0.35);
}

.logo span {
    color: #00d4ff;
}

.tagline {
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(11, 26, 46, 0.6), 0 0 8px rgba(11, 26, 46, 0.4);
}

/* =====================================================================
   도시 목록 패널 / 첫 도시 만들기(인라인 폼·맵 선택) / 이름 변경 / 확인·알림 / 패치노트 / 전체 도시
   - 밝은 패널(도시 목록·이름 변경): 화이트=밝은 판, 다크=남색 판 + 밝은 글씨.
   - 확인·알림 모달(인라인 어두운 판): 화이트/다크 판 전환(인라인 글씨색 !important).
   - 패치노트·전체 도시 목록: 내용(JS)이 밝은 글씨 기준 → 양 모드 남색, 테두리만 모드별.
   - 테두리 두께·padding은 원본 유지(추가 외곽선은 box-shadow).
   ===================================================================== */
.cities-panel-overlay,
.rename-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.cities-panel,
.rename-modal {
    background:
        linear-gradient(118deg, var(--hp-panel-facet) 0 22%, transparent 22.2%),
        linear-gradient(252deg, var(--hp-panel-facet) 0 30%, transparent 30.2%),
        linear-gradient(180deg, var(--hp-panel-hi), var(--hp-panel-lo));
    border-radius: 12px;
    box-shadow:
        inset 0 -5px 0 var(--hp-panel-lip),
        0 0 0 2px var(--hp-panel-frame),
        0 5px 0 var(--hp-panel-edge),
        0 18px 40px var(--hp-panel-shadow);
    color: var(--hp-text);
}

.cities-panel-header h2,
.rename-modal h3 { color: var(--hp-title); }
.cities-panel-header .panel-subtitle { color: var(--hp-sub); }

.cities-panel-close {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border-radius: 8px;
    color: var(--hp-text);
    box-shadow: inset 0 0 0 1px var(--hp-tile-line), inset 0 -3px 0 var(--hp-tile-lip);
}

.cities-panel-close:hover {
    background: linear-gradient(180deg, #ef4444, #c81e1e);
    color: #ffffff;
}

/* 도시 카드 */
.cities-panel .city-grid-card:not(.new-city-card) {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border-color: var(--hp-tile-line);
    border-radius: 10px;
    box-shadow: inset 0 -4px 0 var(--hp-tile-lip);
}

.cities-panel .city-grid-card:not(.new-city-card):hover {
    border-color: #b8860b;
    box-shadow: inset 0 -4px 0 var(--hp-tile-lip), 0 0 0 2px rgba(246, 181, 25, 0.45), 0 8px 18px var(--hp-panel-shadow);
}

.cities-panel .city-grid-card .city-thumb { border-radius: 8px; }
.cities-panel .city-grid-card .city-card-name { color: var(--hp-title); }
.cities-panel .city-grid-card .city-card-stats { color: var(--hp-sub); }

.cities-panel .city-grid-card .city-card-actions button {
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(11, 26, 46, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

/* 새 도시 만들기 카드: 점선 → 초록 점선 블록 */
.cities-panel .city-grid-card.new-city-card {
    border-radius: 10px;
    border-color: #4caf50;
    background: rgba(34, 197, 94, 0.06);
}

.cities-panel .city-grid-card.new-city-card:hover {
    border-color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.cities-panel .city-grid-card.new-city-card .city-card-name { color: #15803d; }
/* 새 도시 비용 라벨(JS 인라인: 무료 #4ade80 / 젬 #a855f7) → 화이트 모드는 진한 톤 */
html:not(.lp-dark) .cities-panel .new-city-card .city-card-stats[style*="74, 222, 128"] { color: #15803d !important; }
html:not(.lp-dark) .cities-panel .new-city-card .city-card-stats[style*="168, 85, 247"] { color: #7e22ce !important; }
html.lp-dark .cities-panel .city-grid-card.new-city-card .city-card-name { color: #4ade80; }

/* 인라인 도시 생성 폼 */
.create-form-inline {
    background:
        linear-gradient(118deg, var(--hp-panel-facet) 0 26%, transparent 26.2%),
        linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border-color: var(--hp-tile-line);
    border-radius: 10px;
    box-shadow: inset 0 -4px 0 var(--hp-tile-lip);
    color: var(--hp-text);
}

.create-form-inline :is(input, select),
.rename-modal input {
    background: var(--hp-input-bg, #f6f9fc);
    border-color: var(--hp-tile-line);
    border-radius: 6px;
    color: var(--hp-title);
}

.create-form-inline input::placeholder,
.rename-modal input::placeholder { color: var(--hp-input-ph, #7b8ba0); }

.create-form-inline :is(input, select):focus,
.rename-modal input:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(246, 181, 25, 0.35);
}

/* 만들기 = 노란 블록, 취소 = 타일 */
.create-form-actions .btn-create,
.rename-modal-buttons .rename-confirm {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.34) 0 34%, transparent 34.5%),
        linear-gradient(180deg, var(--hp-yellow-hi), var(--hp-yellow-lo));
    color: #4a2b00;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px #9a6a00, inset 0 -4px 0 var(--hp-yellow-lip);
}

.create-form-actions .btn-create:hover,
.rename-modal-buttons .rename-confirm:hover {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.4) 0 34%, transparent 34.5%),
        linear-gradient(180deg, #ffe680, #ffc22e);
}

.create-form-actions .btn-cancel,
.rename-modal-buttons .rename-cancel {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    color: var(--hp-text);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--hp-tile-line), inset 0 -4px 0 var(--hp-tile-lip);
}

.create-form-actions .btn-cancel:hover,
.rename-modal-buttons .rename-cancel:hover { filter: brightness(1.05); }

/* 맵 선택 카드 / 맵 정보 / 미리보기 */
.map-card {
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 var(--hp-tile-lip), 0 0 0 1px var(--hp-tile-line);
}

.map-card.active {
    border-color: #b8860b;
    box-shadow: inset 0 -3px 0 var(--hp-tile-lip), 0 0 0 3px rgba(246, 181, 25, 0.55), 0 6px 14px var(--hp-panel-shadow);
}

.map-card-name { color: var(--hp-title); }

.map-info-panel,
.map-preview {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo));
    border-color: var(--hp-tile-line);
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 var(--hp-tile-lip);
}

.map-info-title { color: var(--hp-title); }
:is(.map-info-desc, .map-unlock-hint, .map-preview-caption, .map-preview-legend) { color: var(--hp-sub); }
.map-preview-heading { color: var(--hp-text); }
.map-info-badge { border-radius: 4px; }
.map-card-lock { border-radius: 4px; }

/* 다크 모드: 밝은 패널 → 남색 */
html.lp-dark .cities-panel .city-grid-card:not(.new-city-card):hover { background: linear-gradient(180deg, #34587f, #26476b); }
html.lp-dark .map-card { background: #213f60; }
html.lp-dark .map-card-name { background: #213f60; }
html.lp-dark .map-card-upcoming { background: #1d3756; border-color: #2c4d70; }
html.lp-dark .map-card-upcoming .map-card-name { color: #b8c6d8; }
html.lp-dark .map-card-upcoming .map-card-thumb { background: linear-gradient(135deg, #1d4269, #142f4d); color: #7dd3fc; }
html.lp-dark :is(.map-card-thumb, .map-info-thumb) { background-color: #10233c; color: #7f93ab; }
html.lp-dark .map-info-badge:not(.lock):not(.unlocked) { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
html.lp-dark .map-info-badge.unlocked { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
html.lp-dark .map-preview-canvas { border-color: #2c4d70; }
html.lp-dark .empty-state,
html.lp-dark .rankings-empty { color: var(--hp-sub); }

/* ---------- 확인·알림 모달 (인라인 어두운 판): 화이트/다크 전환 ---------- */
:is(#confirmModal, #alertModal, #patchNotesModal, #allCitiesOverlay) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

:is(#confirmModal, #alertModal) > div {
    background:
        linear-gradient(118deg, var(--hp-panel-facet) 0 26%, transparent 26.2%),
        linear-gradient(180deg, var(--hp-panel-hi), var(--hp-panel-lo)) !important;
    border-color: var(--hp-panel-frame) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 -5px 0 var(--hp-panel-lip),
        0 0 0 1px var(--hp-panel-frame),
        0 5px 0 var(--hp-panel-edge),
        0 18px 40px var(--hp-panel-shadow) !important;
}

:is(#confirmModalMsg, #alertModalMsg) { color: var(--hp-text) !important; }

#confirmModalCancel {
    background: linear-gradient(180deg, var(--hp-tile-hi), var(--hp-tile-lo)) !important;
    border-color: var(--hp-tile-line) !important;
    color: var(--hp-text) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 -4px 0 var(--hp-tile-lip);
}

#confirmModalOk {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.22) 0 34%, transparent 34.5%),
        linear-gradient(180deg, #ef4444, #c81e1e) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 2px #7f1414, inset 0 -4px 0 #7f1414;
}

#alertModalOk {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.34) 0 34%, transparent 34.5%),
        linear-gradient(180deg, var(--hp-yellow-hi), var(--hp-yellow-lo)) !important;
    color: #4a2b00 !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 2px #9a6a00, inset 0 -4px 0 var(--hp-yellow-lip);
}

#alertModalAction {
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 2px #3b1d86, inset 0 -4px 0 #4a22a8;
}

/* ---------- 패치노트 / 전체 도시: 남색 판 (양 모드), 테두리만 모드별 ---------- */
:is(#patchNotesModal, #allCitiesOverlay) > div {
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 22%, transparent 22.2%),
        linear-gradient(180deg, #1f3f63, #11263f) !important;
    border-color: #0b1a2e !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 -5px 0 rgba(5, 13, 24, 0.45),
        0 0 0 2px var(--hp-panel-frame),
        0 5px 0 var(--hp-panel-edge),
        0 18px 40px var(--hp-panel-shadow) !important;
}

#allCitiesOverlay #allCitiesList :is([style*="color:#64748b"], [style*="color: #64748b"]) { color: #aebdd0 !important; }

/* ---------- 홈의 아이디 찾기 / 비밀번호 재설정 모달 (로그인 페이지와 동일 처리) ---------- */
:is(#findUsernameModal, #resetPasswordModal) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 푸터 / 접속자 수 알약: 3D 배경·밝은 바탕 어디서든 읽히게 남색 판 (양 모드, padding 원본 유지) */
body .footer {
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 26%, transparent 26.2%),
        linear-gradient(180deg, rgba(43, 86, 131, 0.94), rgba(23, 53, 86, 0.96));
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px var(--hp-chip-ink), inset 0 -4px 0 rgba(5, 13, 24, 0.5);
    color: #cbd5e1;
}

body .footer :is(p, a) { color: #dbe6f2 !important; }
body .footer a:hover { color: #ffdd55 !important; }

body .container > .rankings-section span:has(> #onlineCount) {
    background: linear-gradient(180deg, var(--hp-chip-hi), var(--hp-chip-lo)) !important;
    box-shadow: inset 0 0 0 2px var(--hp-chip-ink);
    color: #dbe6f2 !important;
}

body .container > .rankings-section span:has(> #onlineCount) span { color: #dbe6f2 !important; }

/* 알림(로그아웃 완료 등) */
body .alert-success {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #15803d;
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 rgba(21, 128, 61, 0.15);
}

html.lp-dark body .alert-success {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

/* 모바일: 언어 바가 하단을 차지하므로 테마 버튼은 헤더 위로 (Codex 통합 후보 보정 반영) */
@media (max-width: 600px) {
    #homeThemeToggle {
        top: 12px;
        right: 12px;
        left: auto;
        bottom: auto;
    }
    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* 다크 모드: 도시 목록·이름 변경 패널 안 글씨(클래스·인라인) 밝게 — 홈 카드와 같은 매핑 */
html.lp-dark :is(.cities-panel, .rename-modal) :where(h1, h2, h3, h4, p, li, span, div, label, strong, small, a, time, em, option) {
    color: var(--hp-text);
}

html.lp-dark :is(.cities-panel, .rename-modal) :is([style*="color:#0f172a"], [style*="color: #0f172a"], [style*="color:#334155"], [style*="color: #334155"]) { color: #f1f5f9 !important; }
html.lp-dark :is(.cities-panel, .rename-modal) :is([style*="color:#64748b"], [style*="color: #64748b"], [style*="color:#475569"], [style*="color: #475569"], [style*="color:#94a3b8"]) { color: #b8c6d8 !important; }

@media (prefers-reduced-motion: reduce) {
    body .btn-primary:active,
    body .action-btn-continue:active,
    body .nav-link:active,
    #homeThemeToggle:active {
        transform: none;
    }
}

/* SC-PAGES-BEGIN — 컴팩트 흰 판 양식 (2026-11-28). 색·모서리·그림자만, 크기는 원본. */
:root {
    --hp-panel-hi: #ffffff; --hp-panel-lo: #ffffff; --hp-panel-facet: transparent; --hp-panel-frame: #d5dbe3; --hp-panel-edge: transparent;
    --hp-panel-lip: transparent; --hp-panel-shadow: rgba(24, 38, 54, 0.18); --hp-title: #26313d; --hp-text: #37414d; --hp-sub: #5f6b78;
    --hp-tile-hi: #ffffff; --hp-tile-lo: #f6f8fa; --hp-tile-line: #dde3ea; --hp-tile-lip: transparent; --hp-chip-hi: #1b8fd0;
    --hp-chip-lo: #1b8fd0; --hp-chip-ink: #1478b3; --hp-yellow-hi: #1b8fd0; --hp-yellow-lo: #1b8fd0; --hp-yellow-lip: transparent;
    --hp-page: #eef1f5; --hp-input-bg: #ffffff; --hp-input-ph: #7b8592;
}
html.lp-dark {
    --hp-panel-hi: #242d39; --hp-panel-lo: #242d39; --hp-panel-frame: #3a4656; --hp-panel-edge: transparent; --hp-panel-lip: transparent;
    --hp-panel-shadow: rgba(0, 0, 0, 0.45); --hp-title: #f1f5f9; --hp-text: #edf2f8; --hp-sub: #b1bdcb; --hp-tile-hi: #2b3542;
    --hp-tile-lo: #263040; --hp-tile-line: #3a4656; --hp-tile-lip: transparent; --hp-page: #1a212b; --hp-input-bg: #1c242e;
}
/* 옛 노란 버튼 위 갈색 글씨 → 파란 버튼 위 흰 글씨 */
body .btn-primary,
body .action-btn-continue,
body .ranking-position.gold,
html.lp-dark :is(.card, .rankings-panel) :is(.btn-primary, .action-btn-continue),
html.lp-dark :is(.card, .rankings-panel) :is(.btn-primary, .action-btn-continue) *,
.create-form-actions .btn-create,
.rename-modal-buttons .rename-confirm,
#alertModalOk { color: #ffffff !important; text-shadow: none; }
body .btn-primary *,
body .action-btn-continue *,
body .ranking-position.gold *,
html.lp-dark :is(.card *,
.rankings-panel) :is(.btn-primary *,
.action-btn-continue) *,
html.lp-dark :is(.card *,
.rankings-panel) :is(.btn-primary *,
.action-btn-continue) * *,
.create-form-actions .btn-create *,
.rename-modal-buttons .rename-confirm *,
#alertModalOk * { color: #ffffff !important; }
html.lp-dark :is(.map-release-panel ~ footer, footer.footer) { background: #242d39 !important; }
/* SC-PAGES-END */

/* HR-BEGIN — 홈 리디자인 (2026-11-30). 배치는 docs/home-redesign-20261130 시안. */
:root { --hr-bg: #eaf6fd; --hr-s: #ffffff; --hr-s2: #f3f5f8; --hr-line: #d5dde6; --hr-text: #37414d; --hr-sub: #5f6b78;
    --hr-acc: #29a9eb; --hr-deep: #1478b3; --hr-btn: #1479b4; --hr-neg: #c81e1e; --hr-neg-bg: #fdeaea; --hr-shadow: 0 6px 20px rgba(20, 60, 90, .12); }
html.lp-dark { --hr-bg: #141b24; --hr-s: #242d39; --hr-s2: #1c242e; --hr-line: #3a4656; --hr-text: #edf2f8; --hr-sub: #b1bdcb;
    --hr-deep: #7cd0f7; --hr-neg: #fca5a5; --hr-neg-bg: #442427; --hr-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
html body, html.lp-dark body { position: relative; background: var(--hr-bg) !important; }
html body .container { max-width: 1160px; padding-top: 16px; }
html body .container .header { margin-bottom: 18px; padding-top: 0; }
html body .hr-logo { margin: 0; line-height: 0; }
.hr-logo img { width: min(480px, 86vw); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 30, 60, .45)); }
html body .header .tagline { color: #ffffff !important; text-shadow: 0 0 3px #001e3c, 0 0 6px #001e3c, 0 2px 12px rgba(0, 30, 60, .9); text-transform: none; letter-spacing: 0; font-weight: 700; }
html body .home-entry { display: block; }
html body .home-entry .main-content { max-width: none; width: 100%; }
html body .home-entry .card { max-width: none; width: 100%; }
html body .home-entry .card.hr-mine { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: start; }
.hr-mine > * { grid-column: 2; min-width: 0; }
.hr-mine > .hr-mine-shot { grid-column: 1; grid-row: 1 / span 6; align-self: stretch; position: relative; min-height: 230px; border-radius: 10px; overflow: hidden; background: var(--hr-s2); }
.hr-mine-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hr-mine-shot .hr-pill { position: absolute; inset-inline-start: 10px; bottom: 10px; max-width: calc(100% - 20px); }
.hr-mine-shot .hr-pill b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hr-tiles div { background: var(--hr-s2); border-radius: 10px; padding: 10px 12px; color: var(--hr-text); }
.hr-tiles i { display: block; font-style: normal; font-size: .75rem; color: var(--hr-sub); }
.hr-tiles b { font-size: 1.25rem; overflow-wrap: anywhere; }
.hr-stage { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--hr-sub); }
.hr-bar { height: 10px; margin: 5px 0 14px; border-radius: 9px; overflow: hidden; background: var(--hr-s2); }
.hr-bar u { display: block; height: 100%; background: var(--hr-acc); border-radius: 9px; }
.hr-ladder { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; }
.hr-ladder li { background: var(--hr-s2); border-radius: 10px; padding: 10px 4px; text-align: center; color: var(--hr-text); font-size: .8rem; }
.hr-ladder span { display: block; font-size: 1.7rem; }
.hr-ladder b { display: block; overflow-wrap: anywhere; }
.hr-ladder small { color: var(--hr-sub); }
.hr-section { margin-top: 30px; }
.hr-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hr-head h2 { font-size: 1.1rem; color: var(--hr-deep); }
.hr-head a { font-size: .8rem; font-weight: 700; color: var(--hr-sub); text-decoration: none; }
.hr-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 999px; padding: 6px 13px; font-size: .8rem; font-weight: 700; color: var(--hr-text); box-shadow: var(--hr-shadow); }
.hr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hr-card { display: block; background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 14px; overflow: hidden; box-shadow: var(--hr-shadow); color: var(--hr-text); text-decoration: none; }
.hr-news img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hr-news div { padding: 12px 14px; }
.hr-news b { display: block; }
.hr-news div > span { font-size: .82rem; color: var(--hr-sub); }
.hr-map { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--hr-shadow); }
.hr-map img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hr-map > .hr-pill { position: absolute; inset-inline-start: 8px; bottom: 8px; }
.hr-map em { position: absolute; inset-inline-end: 8px; top: 8px; font-style: normal; font-size: .72rem; font-weight: 700; color: #ffffff; background: var(--hr-btn); border-radius: 999px; padding: 3px 10px; }
.hr-social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hr-post > span { display: block; }
.hr-post > .hr-post-head { display: flex; gap: 9px; align-items: center; padding: 10px 12px; }
.hr-post-head > span:last-child { min-width: 0; }
.hr-post-head b, .hr-post-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-post-head small { font-size: .75rem; color: var(--hr-sub); }
.hr-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hr-btn); color: #ffffff; font-weight: 800; }
.hr-post > .hr-post-photo { position: relative; aspect-ratio: 1; background: var(--hr-s2); }
.hr-post-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hr-post-photo .hr-pill { position: absolute; inset-inline-start: 8px; top: 8px; padding: 2px 9px; }
.hr-post > .hr-post-foot { padding: 10px 12px 12px; font-size: .82rem; }
.hr-counts { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.hr-like { background: var(--hr-neg-bg); color: var(--hr-neg); border-radius: 999px; padding: 4px 11px; }
.hr-post-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; overflow-wrap: anywhere; }
html body .rankings-section { margin-top: 30px !important; }
html body .rankings-section .rankings-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
html body .rankings-section.hr-recent .rankings-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body .hr-guide { margin: 30px 0; }
html body .hr-guide > summary { cursor: pointer; padding: 16px 18px; background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 14px; box-shadow: var(--hr-shadow); color: var(--hr-text); font-weight: 700; }
html body .hr-guide .site-links { margin: 18px 0 0; }
html body .hr-guide .rankings-section .rankings-list { display: block; }
/* 내 도시 카드: 계정 아바타 줄은 도시 요약이 대신한다 */
html body .home-entry .card.hr-mine .user-info { display: none; }
html body .home-entry .card.hr-mine .action-btn { min-height: 64px; padding: 12px; }
html body .home-entry .card.hr-mine .card-footer { margin-top: 10px; }
.hr-mine-shot .hr-noshot { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
html body .hr-section, html body .rankings-section { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
html body .rankings-section .rankings-panel { max-width: none; }
html body .hr-maps .hr-map.map-release-action { display: block; padding: 0; margin: 0; min-height: 0; border: 0; border-radius: 12px; background: none; box-shadow: var(--hr-shadow); }
@media (max-width: 860px) {
    html body .home-entry .card.hr-mine { grid-template-columns: minmax(0, 1fr); }
    .hr-mine > *, .hr-mine > .hr-mine-shot { grid-column: 1; grid-row: auto; }
    .hr-mine > .hr-mine-shot { min-height: 180px; margin-bottom: 12px; }
    .hr-grid3 { grid-template-columns: minmax(0, 1fr); }
    .hr-social { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    html body .rankings-section .rankings-list, html body .rankings-section.hr-recent .rankings-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 600px) {
    html body .container { padding-top: 66px; }
    html body .home-entry .card.hr-mine .action-buttons { flex-direction: column; gap: 8px; }
    .hr-tiles { gap: 6px; }
    .hr-tiles div { padding: 8px; }
    .hr-tiles b { font-size: .95rem; }
    .hr-ladder { gap: 4px; }
    .hr-ladder li { font-size: .66rem; }
    .hr-social { grid-template-columns: minmax(0, 1fr); }
    html body .rankings-section .rankings-list { grid-template-columns: minmax(0, 1fr); }
}
/* 전체 배경 = 1위 도시(기존 고정 iframe). 배경 위에 바로 놓이는 제목·링크는 판 위에 올린다. */
.hr-head h2, .hr-head a { background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 999px; padding: 6px 14px; box-shadow: var(--hr-shadow); }
html body .hr-guide .site-links { background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 14px; padding: 6px 12px; }
/* 총계: 소개 문구 바로 아래의 큰 숫자 줄. 로그인·가입은 위 줄로. */
html body .home-top-actions { align-items: center; flex-wrap: wrap; gap: 8px; }
html body .hr-auth { display: flex; gap: 8px; }
.hr-numbers { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 780px; margin: 0 auto 18px; }
.hr-numbers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 16px; box-shadow: var(--hr-shadow); padding: 10px 6px; text-align: center; }
.hr-numbers-grid div { min-width: 0; padding: 0 4px; }
.hr-numbers-grid div + div { border-inline-start: 1px solid var(--hr-line); }
.hr-numbers-grid b { display: block; font-size: clamp(1.05rem, 4.6vw, 2.2rem); line-height: 1.2; font-weight: 800; color: var(--hr-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-numbers-grid small { display: block; font-size: .78rem; font-weight: 600; color: var(--hr-sub); }
.hr-online { display: inline-flex; align-items: center; gap: 5px; background: var(--hr-s); border: 1px solid var(--hr-line); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 700; color: var(--hr-text); box-shadow: var(--hr-shadow); }
.hr-online i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
@media (max-width: 600px) {
    html body .home-top-actions .nav-link { min-height: 36px; padding: 6px 11px; font-size: .8rem; }
}
/* HR-END */

/* ===== 홈: 로그인|회원가입 반반 버튼 + 제자리 폼 (home-auth-inline.js) ===== */
body .hr-auth-split {
    display: flex;
    gap: 10px;
    flex: 1 1 100%;
    width: 100%;
}

body .hr-auth-split .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    justify-content: center;
}

/* 폼이 열려 있는 동안 제목·설명·단계 목록·반반 버튼은 접고, "로그인 없이 시작" 버튼은 폼 아래에 그대로 둔다.
   배경 3D 도시(iframe)는 그대로 둔다. */
#homeWelcome.auth-open .card > h2,
#homeWelcome.auth-open .card > p,
#homeWelcome.auth-open .card > .hr-ladder,
#homeWelcome.auth-open .hr-auth-split { display: none; }
#homeWelcome.auth-open .card > .btn-group { margin-top: 14px; }

body .hr-auth-panel {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

body .hr-auth-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

body .hr-auth-tabs {
    display: flex;
    flex: 1;
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(20, 47, 77, 0.08);
}

body .hr-auth-tab {
    flex: 1;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hp-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body .hr-auth-tab.is-active {
    background: var(--hp-tile-hi, #fff);
    box-shadow: 0 1px 4px rgba(11, 26, 46, 0.25);
}

body .hr-auth-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--hp-tile-line);
    border-radius: 50%;
    background: transparent;
    color: var(--hp-text);
    font: inherit;
    cursor: pointer;
}

body .hr-auth-body .form-group { margin: 0 0 12px; }
body .hr-auth-body .form-label { display: block; margin-bottom: 4px; font-size: .85rem; font-weight: 600; color: var(--hp-text); }
body .hr-auth-body .form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--hp-tile-line);
    border-radius: 8px;
    background: #fff;
    color: #14202e;
    font: inherit;
}
body .hr-auth-body .btn { width: 100%; box-sizing: border-box; text-align: center; }
body .hr-auth-body .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--hp-text); }
body .hr-auth-body .alert,
body .hr-auth-body .error-message {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: .85rem;
}
body .hr-auth-body .alert-success { background: #ecfdf5; color: #047857; }
body .hr-auth-body .divider { margin: 12px 0; text-align: center; font-size: .75rem; opacity: .7; }
body .hr-auth-body .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hp-tile-line);
    border-radius: 8px;
    background: #fff;
    color: #14202e;
    font-weight: 600;
    text-decoration: none;
}
body .hr-auth-more { margin: 12px 0 0; text-align: center; font-size: .8rem; opacity: .75; }
body .hr-auth-more a { color: inherit; }
body .hr-auth-loading { padding: 24px 0; text-align: center; font-size: 1.4rem; opacity: .6; }
body .hr-auth-body .form-hint { margin: 4px 0 0; font-size: .75rem; line-height: 1.35; opacity: .7; }
