/* ============================================================
   DOMAIN GUIDE - 안내 페이지 스타일
   외부 폰트/스크립트를 쓰지 않아 엄격한 CSP 아래에서도 동작합니다.
   ============================================================ */

:root {
    --ink-0: #050508;
    --ink-1: #0a0a10;
    --ink-2: #12121c;

    --gold-100: #f9eec9;
    --gold-200: #f0d89c;
    --gold-300: #d8b463;
    --gold-400: #ab8237;
    --gold-500: #6f5320;

    --line: rgba(216, 180, 99, 0.34);
    --line-soft: rgba(216, 180, 99, 0.16);

    --text: #f3efe6;
    --text-dim: #9d9587;
    --text-mute: #736c60;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px rgba(216, 180, 99, 0.28), 0 16px 40px rgba(0, 0, 0, 0.6);

    --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    /* 제목용. 예전에는 명조(serif)였는데 한글이 궁서체로 떨어져 읽기 불편해서
       고딕으로 바꿨습니다. 굵기와 자간으로 제목다움을 냅니다. */
    --font-display: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
 * 아래에서 버튼에 display:inline-flex 를 주는데, 그대로 두면 브라우저 기본값인
 * [hidden] { display:none } 을 이겨버려서 숨겨야 할 버튼이 보인다.
 */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.site {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--ink-0);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p, ul, dl {
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
}

/* ------------------------------------------------------------
   배경
   ------------------------------------------------------------ */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, #17182a 0%, #0b0b13 45%, #050508 100%),
        linear-gradient(180deg, #06060a 0%, #0a0a12 60%, #030305 100%);
}

.backdrop-glow {
    position: absolute;
    top: -22vh;
    left: 50%;
    width: min(1100px, 120vw);
    height: 70vh;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(224, 186, 104, 0.2), rgba(224, 186, 104, 0) 72%);
    filter: blur(6px);
}

.backdrop-skyline {
    position: absolute;
    right: -6%;
    bottom: 16vh;
    width: min(760px, 70vw);
    height: 52vh;
    background:
        linear-gradient(90deg, rgba(228, 190, 112, 0.09) 1px, transparent 1px) 0 0 / 46px 100%,
        linear-gradient(180deg, rgba(228, 190, 112, 0.07) 1px, transparent 1px) 0 0 / 100% 34px,
        radial-gradient(60% 70% at 70% 60%, rgba(70, 92, 138, 0.28), rgba(6, 6, 12, 0) 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 35%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.6;
}

.backdrop-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34vh;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(90deg, rgba(226, 190, 116, 0.05) 0 1px, transparent 1px 120px);
}

/* ------------------------------------------------------------
   좌측 엠블럼(장식)
   ------------------------------------------------------------ */
.frame {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 32%) 1fr;
    align-items: stretch;
}

.emblem {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 48px 32px;
    border-right: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(18, 16, 14, 0.85), rgba(8, 8, 10, 0.94)),
        radial-gradient(80% 50% at 30% 20%, rgba(214, 178, 100, 0.12), rgba(0, 0, 0, 0) 70%);
    overflow: hidden;
}

.emblem-pillars {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            rgba(232, 198, 124, 0) 0 42px,
            rgba(232, 198, 124, 0.16) 42px 44px,
            rgba(232, 198, 124, 0) 44px 86px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #000 30%, #000 70%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0.5;
}

.emblem-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 46px 40px 40px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(26, 23, 20, 0.7), rgba(8, 8, 11, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 26px 60px rgba(0, 0, 0, 0.55);
}

.emblem-shield {
    width: clamp(110px, 12vw, 160px);
    height: auto;
}

.shield-body {
    fill: url(#shieldGold);
    opacity: 0.16;
}

.shield-edge {
    fill: none;
    stroke: url(#shieldGold);
    stroke-width: 3;
}

.shield-globe {
    fill: none;
    stroke: var(--gold-200);
    stroke-width: 2;
    opacity: 0.9;
}

.emblem-motto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: var(--gold-200);
    opacity: 0.75;
}

.emblem-rule {
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}

/* ------------------------------------------------------------
   본문 영역
   ------------------------------------------------------------ */
.stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 32px 40px;
}

/* 히어로 */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.hero-title-text {
    font-family: var(--font-display);
    /* 관리자가 제목을 길게 넣을 수 있으므로 뷰포트 폭에 비례시키고, 넘치면 줄바꿈합니다. */
    font-size: clamp(18px, 4.1vw, 44px);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    line-height: 1.22;
    background: linear-gradient(180deg, var(--gold-100) 8%, var(--gold-300) 52%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* flex 항목은 기본적으로 내용보다 작아지지 않습니다. 0 을 줘야 줄어들 수 있습니다. */
    min-width: 0;
    /* 한글은 단어 중간에서 끊지 않고, 끊을 데가 없을 만큼 긴 문자열만 강제로 끊습니다. */
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hero-rule {
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400));
}

.hero-rule:last-child {
    background: linear-gradient(90deg, var(--gold-400), transparent);
}

.hero-tagline {
    font-size: clamp(11px, 1.1vw, 13px);
    letter-spacing: 0.44em;
    text-indent: 0.44em;
    color: var(--gold-200);
    opacity: 0.8;
}

.hero-headline {
    margin-top: 14px;
    font-size: clamp(17px, 2.2vw, 27px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    word-break: keep-all;
}

.hero-subheadline {
    font-size: clamp(14px, 1.4vw, 16px);
    color: var(--text-dim);
    word-break: keep-all;
}

/* 도메인 버튼 */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.domain-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(24, 24, 33, 0.92), rgba(9, 9, 14, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-card);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: rise 0.5s ease both;
}

.domain-card:nth-child(1) { animation-delay: 0.02s; }
.domain-card:nth-child(2) { animation-delay: 0.06s; }
.domain-card:nth-child(3) { animation-delay: 0.10s; }
.domain-card:nth-child(4) { animation-delay: 0.14s; }
.domain-card:nth-child(5) { animation-delay: 0.18s; }
.domain-card:nth-child(6) { animation-delay: 0.22s; }

.domain-card:hover,
.domain-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold-300);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.domain-globe {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 1.3;
}

.domain-name {
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f7f3ea;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-chevron {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-left: auto;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.domain-card:hover .domain-chevron {
    transform: translateX(3px);
}

.empty-panel {
    padding: 34px;
    text-align: center;
    color: var(--text-dim);
    border: 1px dashed var(--line-soft);
    border-radius: var(--radius-md);
}

/* 공지 패널 */
.notice-panel {
    padding: 22px 26px 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 15, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-card);
    animation: rise 0.5s 0.26s ease both;
}

.notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f4efe3;
}

.notice-bell {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.16s ease;
}

.notice-more svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-more:hover {
    color: var(--gold-200);
}

.notice-list {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.notice-item > a {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 10px 0;
    transition: color 0.16s ease;
}

.notice-date {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-mute);
}

.notice-subject {
    font-size: 15px;
    color: #ded8cc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-item > a:hover .notice-subject {
    color: var(--gold-100);
}

.notice-pin {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    color: var(--gold-200);
    vertical-align: 1px;
}

.notice-empty {
    padding: 22px 0 6px;
    text-align: center;
    color: var(--text-mute);
    font-size: 14px;
}

/* ------------------------------------------------------------
   하단 특징 바 + 카피라이트
   ------------------------------------------------------------ */
.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.72), rgba(3, 3, 6, 0.94));
}

.features {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 240px;
    min-width: 200px;
    padding: 6px 26px;
    border-left: 1px solid var(--line-soft);
}

.feature:first-child {
    border-left: none;
}

.feature-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
}

.feature-icon-mark {
    stroke-width: 1.9;
}

.feature-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feature-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #ebe5d8;
}

.feature-text span,
.feature-link {
    font-size: 12.5px;
    color: var(--text-mute);
}

.feature-link {
    color: var(--gold-200);
    transition: color 0.16s ease;
}

.feature-link:hover {
    color: var(--gold-100);
    text-decoration: underline;
}

.footer-bottom {
    padding: 14px 24px 22px;
    text-align: center;
    border-top: 1px solid rgba(216, 180, 99, 0.08);
}

.footer-message {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-copy {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    color: var(--text-mute);
    opacity: 0.8;
}

/* ------------------------------------------------------------
   고객상담 버튼
   ------------------------------------------------------------ */
.support-dock {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 22, 18, 0.95), rgba(9, 9, 12, 0.96));
    box-shadow: var(--shadow-card);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-100);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.support-button:hover,
.support-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold-300);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.support-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

/*
 * 카카오톡만 브랜드 색을 그대로 씁니다.
 * 어두운 금색 버튼들 사이에서 단번에 눈에 띄고, 노란 바탕에 짙은 글씨라
 * 아이디가 가장 잘 읽힙니다.
 */
.support-kakao {
    border-color: #f2d900;
    background: #fee500;
    color: #3c1e1e;
}

.support-kakao:hover,
.support-kakao:focus-visible {
    border-color: #3c1e1e;
    background: #ffed4d;
    box-shadow: 0 0 0 1px rgba(60, 30, 30, 0.25), 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* 말풍선을 속이 찬 모양으로 바꿉니다. 선 그림보다 로고에 가깝습니다. */
.support-kakao .support-icon {
    fill: #3c1e1e;
    stroke: none;
}

/* 이 버튼의 주인공은 아이디입니다. 버튼 문구보다 크게 잡습니다. */
.support-kakao .support-id {
    padding: 3px 10px;
    border-color: rgba(60, 30, 30, 0.28);
    background: rgba(255, 255, 255, 0.78);
    color: #3c1e1e;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.support-kakao.is-copied {
    border-color: #3c1e1e;
    background: #ffed4d;
}

/* 텔레그램도 브랜드 색으로. 흰 비행기에 접힌 선만 어둡게 남깁니다. */
.support-telegram {
    border-color: #1b8ec4;
    background: #229ed9;
    color: #ffffff;
}

.support-telegram:hover,
.support-telegram:focus-visible {
    border-color: #ffffff;
    background: #2aabee;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 16px 40px rgba(0, 0, 0, 0.6);
}

.support-telegram .support-icon {
    fill: #ffffff;
    stroke: none;
}

.support-telegram .support-icon .tg-fold {
    fill: none;
    stroke: rgba(4, 62, 92, 0.4);
    stroke-width: 1.4;
    stroke-linejoin: round;
}

/* 아이디 안내형 버튼. 아이디를 함께 보여주고 누르면 복사됩니다. */
button.support-button {
    font-family: inherit;
    cursor: pointer;
}

.support-id {
    padding: 2px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-style: normal;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold-200);
}

.support-button.is-copied {
    border-color: var(--gold-200);
}

/* ------------------------------------------------------------
   바로가기 만들기 (홈 화면 추가 / 즐겨찾기 안내)
   ------------------------------------------------------------ */
/* 왼쪽 엠블럼 칸에 크게 띄우는 안내 패널 (1100px 초과 화면) */
.emblem-actions {
    position: relative;
    width: min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.install-panel,
.alarm-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.install-panel-label {
    font-size: 11.5px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: var(--gold-200);
    opacity: 0.8;
}

.install-panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 18px 22px;
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(216, 180, 99, 0.2), rgba(24, 22, 18, 0.92));
    box-shadow: var(--shadow-card);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-100);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.install-panel-button:hover,
.install-panel-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.install-panel-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--gold-200);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.install-panel-hint {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-mute);
}

/* 알림 받기. 바로가기 버튼과 같은 크기지만 한 단계 낮은 강조로 둡니다. */
.alarm-panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(24, 22, 18, 0.95), rgba(9, 9, 12, 0.96));
    box-shadow: var(--shadow-card);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-100);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.alarm-panel-button:hover,
.alarm-panel-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold-300);
    box-shadow: var(--shadow-glow);
    outline: none;
}

/* 우하단 작은 버튼. 왼쪽 큰 패널이 보이는 화면에서는 중복이라 숨깁니다. */
.support-install {
    font-family: inherit;
    cursor: pointer;
    border-color: var(--gold-300);
    background: linear-gradient(180deg, rgba(216, 180, 99, 0.2), rgba(24, 22, 18, 0.95));
}

/* 왼쪽 큰 패널에 같은 버튼이 있으므로 넓은 화면에서는 우하단 것을 감춥니다. */
@media (min-width: 1101px) {
    .support-install,
    .support-alarm {
        display: none !important;
    }
}

/*
 * 좁은 화면에서는 왼쪽 칸이 사라집니다. 그때는 우하단에 띄우는 대신
 * 본문 안 도메인 목록 바로 아래에 2열로 깔아 손이 닿는 곳에 둡니다.
 * .stage 가 세로 flex 라서 order 로 공지사항보다 앞에 오게 할 수 있습니다.
 */
@media (max-width: 1100px) {
    .support-dock {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        order: 3;
    }

    .stage > .notice-panel {
        order: 4;
    }

    .support-dock .support-button {
        justify-content: center;
    }
}

/* 왼쪽 칸이 사라지는 화면에서는 우하단 버튼이 유일한 통로이므로 크게 키웁니다.
   아래쪽 반응형 블록의 .support-button 규칙보다 뒤에 오지 않으므로
   선택자를 한 단계 더 붙여 우선순위를 높입니다. */
@media (max-width: 1100px) {
    /* 본문 안에 2열로 깔리므로 알약 모양 대신 카드와 같은 각을 씁니다. */
    .support-dock .support-button {
        border-radius: var(--radius-md);
        padding: 12px 16px;
        font-size: 14px;
    }

    .support-dock .support-icon {
        width: 18px;
        height: 18px;
    }
}

.install-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 3, 6, 0.72);
}

.install-card {
    width: min(380px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(26, 23, 20, 0.97), rgba(8, 8, 11, 0.98));
    box-shadow: var(--shadow-glow);
}

.install-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gold-100);
}

.install-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.install-block-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold-300);
}

.install-steps {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dim);
}

.install-steps strong {
    color: var(--text);
    font-weight: 600;
}

.install-key {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-dim);
}

.install-key kbd {
    display: inline-block;
    min-width: 34px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--gold-100);
}

.install-sub {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
}

.install-sub strong {
    color: var(--gold-200);
}

.install-note {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-mute);
}

.install-close {
    align-self: stretch;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-100);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.install-close:hover,
.install-close:focus-visible {
    border-color: var(--gold-300);
    background: rgba(216, 180, 99, 0.1);
    outline: none;
}

/* ------------------------------------------------------------
   공지 목록 / 상세 / 오류
   ------------------------------------------------------------ */
.sub-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.16s ease;
}

.back-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-link:hover {
    color: var(--gold-200);
}

.sub-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, var(--gold-100), var(--gold-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.board {
    padding: 8px 4px 4px;
    border-top: 1px solid var(--line-soft);
}

.board-item {
    border-bottom: 1px solid rgba(216, 180, 99, 0.09);
}

.board-item > a {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 20px;
    gap: 16px;
    align-items: center;
    padding: 16px 6px;
    transition: background-color 0.16s ease;
}

.board-item > a:hover {
    background-color: rgba(216, 180, 99, 0.05);
}

.board-date {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text-mute);
}

.board-subject {
    font-size: 15.5px;
    color: #e6e0d3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 8px;
}

.pager-item {
    min-width: 34px;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dim);
    transition: border-color 0.16s ease, color 0.16s ease;
}

.pager-item:hover {
    border-color: var(--gold-400);
    color: var(--gold-100);
}

.pager-item.is-current {
    border-color: var(--gold-300);
    color: var(--ink-0);
    background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
    font-weight: 700;
}

.article {
    padding: 26px 28px 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 15, 0.74);
    box-shadow: var(--shadow-card);
}

.article-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.article-title {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: #f6f1e6;
    word-break: keep-all;
}

.article-date {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-mute);
}

.article-body {
    padding: 20px 0 24px;
    font-size: 15px;
    line-height: 1.85;
    color: #d8d2c6;
    white-space: pre-wrap;
    word-break: keep-all;
}

.article-foot {
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gold-100);
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ghost-button:hover {
    border-color: var(--gold-300);
    background-color: rgba(216, 180, 99, 0.08);
}

.error-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 96px);
    line-height: 1;
    background: linear-gradient(180deg, var(--gold-100), var(--gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-heading {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
}

.error-desc {
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* ------------------------------------------------------------
   알림 설정 화면
   ------------------------------------------------------------ */
.alarm-card {
    padding: 26px 28px 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 15, 0.74);
    box-shadow: var(--shadow-card);
}

.alarm-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.alarm-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
}

.alarm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-mute);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.alarm-state.is-on {
    color: #8ed6b0;
}

.alarm-state.is-on .alarm-dot {
    background: #58c18a;
    box-shadow: 0 0 0 4px rgba(88, 193, 138, 0.16);
}

.alarm-state.is-off {
    color: var(--text-dim);
}

.alarm-env {
    font-size: 12.5px;
    color: var(--text-mute);
}

.alarm-message {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-dim);
}

.alarm-message.is-ok {
    border-color: rgba(88, 193, 138, 0.4);
    background: rgba(88, 193, 138, 0.09);
    color: #a8e3c4;
}

.alarm-message.is-warn {
    border-color: rgba(224, 180, 83, 0.42);
    background: rgba(224, 180, 83, 0.08);
    color: #f0d49a;
}

.alarm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
    color: #1a1407;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.primary-cta:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.alarm-actions button:disabled {
    opacity: 0.55;
    cursor: default;
}

.alarm-actions .ghost-button {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.alarm-ios,
.alarm-denied {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(216, 180, 99, 0.05);
}

.alarm-ios-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gold-100);
}

.alarm-ios-desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-dim);
}

/* 홈 화면 추가 안내 창(공용 부품 _InstallGuide)을 여는 버튼. 손가락으로 누르기 쉽게 넓고 크게. */
.alarm-install-open {
    display: flex;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    padding: 13px 16px;
    font-size: 17px;
    word-break: keep-all;
}

.alarm-install-done {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #9fe0b5;
}

.alarm-steps {
    margin: 12px 0 0;
    padding-left: 20px;
    list-style: decimal;
    font-size: 13.5px;
    line-height: 1.9;
    color: #ded8cc;
}

.alarm-steps strong {
    color: var(--gold-100);
}

/* 그림 안내 링크. 브라우저별로 한 줄씩 둡니다. */
.alarm-guide-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.alarm-guide-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-sm);
    background: rgba(216, 180, 99, 0.1);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gold-100);
    transition: background 0.16s ease, border-color 0.16s ease;
}

.alarm-guide-link:hover,
.alarm-guide-link:focus-visible {
    background: rgba(216, 180, 99, 0.18);
    border-color: var(--gold-200);
    outline: none;
}

/* 두 줄로 밀리면 버튼이 어그러집니다. 길어지면 줄바꿈 대신 말줄임으로 처리합니다. */
.alarm-guide-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alarm-guide-icon,
.alarm-guide-arrow {
    flex: 0 0 auto;
    fill: none;
    stroke: var(--gold-300);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alarm-guide-icon {
    width: 22px;
    height: 22px;
}

.alarm-guide-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.alarm-ios-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-mute);
}

/* ------------------------------------------------------------
   이메일 등록
   ------------------------------------------------------------ */
.email-panel {
    margin-top: 18px;
    padding: 22px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(24, 24, 33, 0.92), rgba(9, 9, 14, 0.94));
    box-shadow: var(--shadow-card);
}

.email-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-100);
}

.email-desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-mute);
}

.email-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*
 * 입력칸은 여기서 직접 꾸밉니다.
 * 관리자 화면의 .field-input 은 admin.css 에만 있어서 이 페이지에는 오지 않습니다.
 * 그대로 두면 브라우저 기본 모양(흰 배경·높이 21px)이 어두운 화면 위에 그대로 나옵니다.
 */
.email-local,
.email-domain,
.email-select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(8, 8, 12, 0.9);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    -webkit-appearance: none;
    appearance: none;
}

.email-local,
.email-domain {
    flex: 1 1 34%;
    min-width: 0;
}

.email-select {
    flex: 0 1 32%;
    min-width: 0;
    /* 기본 화살표를 지웠으므로 직접 그려 넣습니다. */
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b463' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    cursor: pointer;
}

/* 펼쳤을 때의 목록. 밝은 배경에 흰 글씨가 되지 않도록 색을 지정합니다. */
.email-select option {
    background: #12121a;
    color: var(--text);
}

.email-local::placeholder,
.email-domain::placeholder {
    color: var(--text-mute);
}

.email-local:focus,
.email-domain:focus,
.email-select:focus {
    border-color: var(--gold-300);
    box-shadow: 0 0 0 1px rgba(216, 180, 99, 0.35);
    outline: none;
}

.email-at {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
}

/* 목록에서 고른 값은 잠급니다. 고른 값과 적힌 값이 달라지는 혼란을 막습니다. */
.email-domain[readonly] {
    color: var(--text-dim);
    cursor: default;
}

.email-submit {
    width: 100%;
}

.email-message {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
}

.email-message.is-ok {
    color: var(--gold-200);
}

.email-message.is-warn {
    color: #f0b4a0;
}

@media (max-width: 720px) {
    .email-panel {
        padding: 18px 18px 20px;
    }

    /* 한 줄에 셋을 넣으면 각 칸이 너무 좁습니다. 도메인 선택만 아래로 내립니다. */
    .email-row {
        flex-wrap: wrap;
    }

    .email-local,
    .email-domain {
        flex: 1 1 0;
    }

    .email-select {
        flex: 1 1 100%;
    }
}

/* 질문 제목 없이 바로 내놓는 한 줄. 아래 안내보다 한 단계 강조합니다. */
.alarm-lead {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #ded8cc;
    word-break: keep-all;
}

/* 두 번째 줄부터는 구분선을 다시 긋지 않고 바로 이어 붙입니다. */
.alarm-lead + .alarm-lead {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}


.support-alarm {
    border-color: var(--gold-300);
}

/* ------------------------------------------------------------
   애니메이션 / 반응형
   ------------------------------------------------------------ */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4개가 한 줄에 안 들어가면 3+1 로 어정쩡하게 깨지므로 2×2 로 맞춘다. */
@media (max-width: 1024px) {
    .feature {
        flex: 1 1 calc(50% - 1px);
        min-width: 0;
    }

    .feature:nth-child(odd) {
        border-left: none;
    }
}

@media (max-width: 1100px) {
    .frame {
        grid-template-columns: 1fr;
    }

    .emblem {
        display: none;
    }

    .stage {
        padding-top: 44px;
    }
}

@media (max-width: 720px) {
    .stage {
        padding: 34px 18px 32px;
        gap: 22px;
    }

    .hero-rule {
        flex: 0 1 28px;
    }

    .hero-title {
        gap: 10px;
    }

    .hero-title-text {
        letter-spacing: 0.04em;
        text-indent: 0.04em;
    }

    /* 도메인 이름이 짧아 한 줄을 다 쓰지 못합니다. 2열로 깔아 가로 공간을 씁니다. */
    .domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .domain-card {
        min-height: 58px;
        padding: 0 12px;
        gap: 9px;
    }

    .domain-name {
        font-size: 14px;
    }

    /* 2열에서는 폭이 빠듯합니다. 장식인 화살표를 빼서 이름에 자리를 줍니다. */
    .domain-chevron {
        display: none;
    }

    /* 아이디까지 한 줄에 들어가도록 여백을 깎았습니다. */
    .support-dock .support-button {
        flex-wrap: nowrap;
        border-radius: var(--radius-sm);
        padding: 9px 5px;
        font-size: 12.5px;
        gap: 4px;
    }

    /* 아이디가 길어지면 버튼 문구를 줄여서라도 한 줄을 지킵니다.
       줄바꿈을 허용하면 그 칸만 키가 커져 2열 배치가 어긋납니다. */
    .support-dock .support-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .support-dock .support-id {
        flex: 0 0 auto;
    }

    /* 아이디를 보라고 만든 버튼입니다. 흰 칩 + 굵은 글씨로 대비를 줍니다. */
    .support-dock .support-kakao .support-id {
        padding: 2px 8px;
        font-size: 14px;
    }

    .support-dock .support-icon {
        width: 16px;
        height: 16px;
    }

    .support-id {
        padding: 0 5px;
        font-size: 10.5px;
    }

    .notice-panel {
        padding: 18px 18px 20px;
    }

    .notice-item > a {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 9px 0;
    }

    .notice-subject {
        white-space: normal;
    }

    .feature {
        flex: 1 1 calc(50% - 1px);
        min-width: 0;
        padding: 10px 12px;
        border-left: none;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    .support-dock {
        right: 14px;
        bottom: 14px;
    }

    .support-button {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .board-item > a {
        grid-template-columns: minmax(0, 1fr) 18px;
        row-gap: 4px;
        padding: 14px 4px;
    }

    .board-date {
        grid-column: 1 / -1;
    }

    .board-subject {
        white-space: normal;
    }

    .article {
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
    }
}
