/* 방문자 알림함(2026-09-27, 1호: 기프티콘) - 헤더 우측 상단 🔔 + 모달.
   style.css에서 분리: index.html(메인)은 style.css를 안 쓰는 독립 디자인이라 알림 스타일만 따로 받는다.
   style.css는 맨 위 @import로, index.html은 <link>로 이 파일을 불러온다. index엔 --text 변수가 없어 기본값 병기. */
.has-notice-bell { position: relative; }
.notice-bell { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.22); color: #fff; font-size: 19px; cursor: pointer; line-height: 40px; padding: 0; }
.notice-bell:hover { background: rgba(255,255,255,.35); }
.notice-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30;
    box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.notice-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9000; display: none;
    align-items: flex-start; justify-content: center; padding: 60px 12px 20px; }
.notice-modal { background: #fff; color: var(--text, #1d1f2e); width: 100%; max-width: 440px; max-height: calc(100vh - 90px);
    overflow-y: auto; border-radius: 14px; padding: 14px 14px 16px; text-align: left; }
.notice-modal-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 10px; }
.notice-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-sub, #6b7080); }
.notice-empty { color: var(--text-sub, #6b7080); font-size: 13.5px; text-align: center; padding: 18px 0; margin: 0; }
.notice-item { border: 1px solid #e4e6ef; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.notice-item.unread { border-color: #ffb3ad; background: #fff7f6; }
.notice-head { width: 100%; display: flex; justify-content: space-between; gap: 8px; align-items: center; border: none;
    background: none; padding: 11px 12px; cursor: pointer; text-align: left; font-size: 14px; color: var(--text, #1d1f2e); }
.notice-title { font-weight: 700; overflow-wrap: anywhere; }
.notice-date { font-size: 11.5px; color: var(--text-sub, #6b7080); white-space: nowrap; }
.notice-body { padding: 0 12px 12px; font-size: 13.5px; }
.notice-text { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-code { display: flex; align-items: center; gap: 8px; background: #f2f4fb; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.notice-code-label { font-size: 11.5px; color: var(--text-sub, #6b7080); }
.notice-code-value { flex: 1; font-size: 15px; letter-spacing: .5px; overflow-wrap: anywhere; }
.notice-copy { border: 1px solid #c9c4ee; background: #fff; color: #5b5bf0; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.notice-img { display: block; max-width: 100%; border-radius: 8px; border: 1px solid #e4e6ef; }
.notice-hint { font-size: 11.5px; color: var(--text-sub, #6b7080); margin: 6px 0 0; }
.notice-receipt { border-top: 1px dashed #e4e6ef; margin-top: 10px; padding-top: 10px; }
.notice-receipt-toggle { border: none; background: none; padding: 4px 0; font-size: 12.5px; color: var(--text-sub, #6b7080);
    text-decoration: underline; cursor: pointer; }
.notice-guide { font-size: 12px; color: var(--text-sub, #6b7080); margin: 0 0 8px; line-height: 1.5; }
.notice-receipt-row { display: flex; gap: 6px; }
.notice-receipt-row input { flex: 1; min-width: 0; border: 1px solid #d5d8e3; border-radius: 8px; padding: 8px 10px; font-size: 14px; text-transform: uppercase; }
.notice-receipt-row button { border: none; background: #5b5bf0; color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* index.html 상단 글래스 내비(.topbar) - 절대위치 대신 내비 줄 안에 배치(모바일 메뉴 top:55px 유지 위해 32px) */
.topbar .notice-bell { position: relative; top: auto; right: auto; flex: 0 0 auto; width: 32px; height: 32px; line-height: 32px;
    font-size: 17px; background: rgba(255,255,255,.12); margin-left: 6px; }
.topbar .notice-bell .notice-dot { top: 3px; right: 3px; }
.topbar .has-inline-bell nav { margin-left: auto; }
@media (max-width: 720px) { .topbar .notice-bell { margin-left: auto; } }

/* 기프티콘 열람 게이트·내 대회 기록(2026-09-28 대표 표준세트) */
.notice-gift { border-top: 1px dashed #e4e6ef; margin-top: 8px; padding-top: 8px; }
.notice-gift-show:empty { display: none; }
.notice-entry { border: 1px solid #e4e6ef; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.notice-entry-top { font-size: 14px; overflow-wrap: anywhere; }
.notice-entry-nick { color: var(--text-sub, #6b7080); font-size: 13px; }
.notice-entry-line { margin: 4px 0 0; font-size: 13.5px; }
.notice-unlink { margin-top: 6px; border: none; background: none; padding: 0; font-size: 12px; color: var(--text-sub, #6b7080);
    text-decoration: underline; cursor: pointer; }
