/* @import 은 wia-ux/perf-fonts.php 가 비동기 <link> 로 */

/* WIA 삼국지 365 — Reader Style (다크 모드 + 동양화 무드) */

/* ── 랜딩/today/progress 페이지 전용 다크 배경 (WIA 도서 상세 표준) ── */
body.wia-sg365-dark {
    /* 🇰🇷 랜딩 페이지와 동일 — 네온 배경 위에 묵색 + 금광원 오버레이 */
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,97,0.14), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(176,139,214,0.08), transparent 60%),
        linear-gradient(180deg, rgba(10,15,35,0.92) 0%, rgba(26,20,40,0.95) 50%, rgba(15,10,30,0.96) 100%),
        url('https://wiabook.com/wp-content/uploads/2025/12/background.png') center/cover no-repeat !important;
    background-attachment: fixed !important;
    color: #e8d9b5;
}

body.wia-sg365-dark .site-content,
body.wia-sg365-dark .inside-article,
body.wia-sg365-dark .entry-content,
body.wia-sg365-dark #page,
body.wia-sg365-dark .container,
body.wia-sg365-dark .grid-container,
body.wia-sg365-dark .site-main {
    background: transparent !important;
    box-shadow: none !important;
}

body.wia-sg365-dark .entry-title,
body.wia-sg365-dark .entry-meta,
body.wia-sg365-dark .entry-header {
    display: none;
}

.wia-sg365-reader {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 44px 88px;
    /* 먹색 — 배경과 자연스럽게 이어지도록 */
    background: linear-gradient(180deg, #141013 0%, #1a141a 100%);
    color: #eae2cd;
    /* Noto Serif KR — 한/영 공용 명조 느낌 통일 */
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', 'Source Han Serif KR', serif;
    line-height: 1.8;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(201,169,97,0.08);
    user-select: none;
    -webkit-user-select: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.wia-sg365-reader * {
    -webkit-user-drag: none;
}

.wia-sg365-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 14px;
    margin-bottom: 30px;
    font-size: 14px;
    user-select: text;
}

.wia-sg365-day-badge {
    background: #c9a961;
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    margin-right: 12px;
}

.wia-sg365-streak {
    color: #ff9a3c;
    font-weight: 700;
}

.wia-sg365-lang-switch a {
    color: #888;
    text-decoration: none;
    margin: 0 6px;
    padding: 4px 10px;
    border-radius: 4px;
}

.wia-sg365-lang-switch a.active {
    background: #c9a961;
    color: #1a1a1a;
    font-weight: 700;
}

.wia-sg365-book-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    margin: 12px 0 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(201,169,97,0.08), rgba(176,139,214,0.08));
    border-radius: 12px;
    border: 1px solid rgba(201,169,97,0.2);
    user-select: text;
}

.wia-sg365-book-cover {
    width: 140px;
    aspect-ratio: 1414/2000;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.wia-sg365-book-label {
    font-size: 13px;
    color: #c9a961;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.wia-sg365-title {
    font-size: 28px;
    color: #f5e6c8;
    margin: 0 0 6px;
    line-height: 1.3;
    user-select: text;
}

.wia-sg365-chapter {
    color: #888;
    margin: 0;
    font-size: 14px;
    user-select: text;
}

@media (max-width: 600px) {
    .wia-sg365-book-header {
        grid-template-columns: 90px 1fr;
        gap: 14px;
        padding: 14px;
    }
    .wia-sg365-book-cover { width: 90px; }
    .wia-sg365-title { font-size: 20px; }
}

.wia-sg365-body {
    user-select: text;
}

.wia-sg365-body p {
    margin: 0 0 1.2em;
    text-align: left;
    text-indent: 0;
}
.wia-sg365-reader[data-lang="en"] {
    font-family: 'Noto Serif', 'Georgia', 'Iowan Old Style', serif;
    letter-spacing: 0.003em;
    word-break: normal;
}
.wia-sg365-reader[data-lang="en"] .wia-sg365-body p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.wia-sg365-body strong {
    color: #f5e6c8;
}

.wia-sg365-body em {
    color: #cbd5e1;
    font-style: italic;
}

/* 대화체 — 고전 소설 들여쓰기 스타일 (박스 제거) */
.wia-sg365-body p.dialogue {
    color: #f5c663;
    font-weight: 500;
    margin-left: 24px;
    font-style: normal;
    letter-spacing: 0;
}

.wia-sg365-body p.section-break {
    text-align: center;
    color: #8a7560;
    font-size: 20px;
    margin: 42px 0;
    letter-spacing: 4px;
    opacity: 0.7;
}

.wia-sg365-illust {
    margin: 40px -10px;
    padding: 0;
}
.wia-sg365-illust img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: block;
}

.wia-sg365-box {
    margin: 50px 0 30px;
    padding: 24px 28px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.75;
    user-select: text;
}

.wia-sg365-box-alert {
    background: rgba(60, 50, 30, 0.5);
    border-left: 4px solid #c9a961;
}

.wia-sg365-box-alert p:first-child {
    margin-top: 0;
    color: #c9a961;
    font-weight: 700;
}

.wia-sg365-box-translator {
    background: rgba(40, 30, 50, 0.5);
    border-left: 4px solid #b08bd6;
    margin-bottom: 50px;
}

.wia-sg365-box-translator p:first-child {
    color: #b08bd6;
    font-weight: 700;
    margin-top: 0;
}

.wia-sg365-tomorrow {
    background: linear-gradient(135deg, #2a1a3a, #1a2a3a);
    padding: 30px 26px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    color: #b08bd6;
    user-select: text;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wia-sg365-tomorrow p {
    margin: 0;
}

.wia-sg365-cta {
    background: rgba(201, 169, 97, 0.1);
    padding: 24px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 30px;
    user-select: text;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wia-sg365-cta p {
    margin: 0;
}

.wia-sg365-done {
    color: #6dc975;
    font-weight: 700;
}

.wia-sg365-pending {
    color: #c9a961;
}

.wia-sg365-share {
    text-align: center;
    margin-top: 30px;
    user-select: text;
}

.wia-sg365-share a {
    display: inline-block;
    width: 44px; height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #c9a961;
    text-decoration: none;
    font-weight: 700;
    margin: 0 6px;
}

.wia-sg365-msg {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    color: #c9a961;
    border-radius: 12px;
    font-size: 20px;
}

/* 출독 인증 토스트 */
.wia-sg365-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a1a1a;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 99999;
    font-weight: 700;
    animation: wia-sg365-slide-in 0.4s ease-out;
}

@keyframes wia-sg365-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ── 랜딩 페이지 ── */
.wia-sg365-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* v1.3.6 (2026-04-22): .wia-sg365-landing::before 오버레이 제거 - viewport 전체 다크 덮기 범인 #1 */

.wia-sg365-lang-toggle {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}
.wia-sg365-lang-toggle a {
    background: rgba(201, 169, 97, 0.15);
    color: #c9a961;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #c9a961;
    transition: all 0.2s;
}
.wia-sg365-lang-toggle a:hover {
    background: #c9a961;
    color: #1a1a1a;
}

.wia-sg365-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f3a 50%, #1a1a1a 100%);
    border-radius: 16px;
    color: #f5e6c8;
    margin-bottom: 50px;
}

.wia-sg365-hero h1 {
    font-size: 64px;
    margin: 0;
    color: #f5e6c8;
    font-family: 'Nanum Myeongjo', serif;
}

.wia-sg365-hero h1 span {
    color: #c9a961;
    font-size: 0.6em;
    margin-left: 12px;
}

.wia-sg365-hero .tagline {
    font-size: 28px;
    color: #ff9a3c;
    margin: 30px 0 10px;
    letter-spacing: -0.02em;
}
.wia-sg365-hero .tagline strong {
    color: #c9a961;
    font-weight: 900;
    border-bottom: 3px solid #c9a961;
    padding-bottom: 2px;
}

.wia-sg365-hero .subtitle {
    font-size: 22px;
    color: #c9a961;
    margin: 20px 0;
}

.wia-sg365-hero .author {
    color: #888;
    margin: 30px 0;
}

.wia-sg365-cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #0f172a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-top: 20px;
    transition: transform 0.2s;
}
.wia-sg365-cta-btn:hover,
.wia-sg365-cta-btn:focus,
.wia-sg365-cta-btn:active,
.wia-sg365-cta-btn:visited:hover {
    transform: scale(1.05);
    color: #0f172a !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #b8944d, #e67e22) !important;
    box-shadow: 0 6px 22px rgba(234, 126, 34, 0.45);
}

.wia-sg365-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.wia-sg365-features .feat {
    background: #1a1a1a;
    color: #e8d9b5;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.wia-sg365-features .feat span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.wia-sg365-features .feat h3 {
    color: #c9a961;
    margin: 12px 0;
}

.wia-sg365-features .feat p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* ─────────────────────────────────────────────
   前傳 · Prologue · 심야 보라
   "별이 모이기 전, 칼은 어둠에서 깨어났다"
   ─────────────────────────────────────────────*/
.wia-sg365-prologue {
    margin: 80px auto 60px;
    max-width: 1100px;
    background:
        radial-gradient(ellipse at top left, rgba(155,124,207,0.22), transparent 55%),
        radial-gradient(circle at bottom right, rgba(110,86,160,0.18), transparent 55%),
        linear-gradient(135deg, #1a0f2e 0%, #251841 50%, #14091f 100%);
    border: 1px solid rgba(155,124,207,0.35);
    border-radius: 24px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
.wia-sg365-prologue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,97,0.5), transparent);
}
.pro-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
}
.pro-cover-wrap { display: flex; justify-content: center; }
.pro-cover {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1414/2000;
    object-fit: cover;
    border-radius: 8px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(155,124,207,0.4),
        0 0 60px rgba(110,86,160,0.25);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.pro-cover:hover { transform: scale(1.02); }

.pro-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(155,124,207,0.2);
    border: 1px solid rgba(155,124,207,0.55);
    border-radius: 20px;
    color: #c9b6f0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.pro-title {
    color: #f3eaff;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.pro-era {
    color: #b69ce0;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin: 0 0 22px;
    opacity: 0.85;
}
.pro-lead {
    color: #f3eaff;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 18px;
    text-shadow: 0 2px 18px rgba(110,86,160,0.45);
    letter-spacing: 0.005em;
}
.pro-meta {
    color: #c9b6f0;
    font-style: italic;
    font-size: 15px;
    margin: 0 0 22px;
    line-height: 1.6;
}
.pro-desc {
    color: #d8cae8;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 24px;
}
.pro-labels {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(155,124,207,0.2);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 22px 0 18px;
}
.pro-labels h3 {
    color: #c9b6f0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
    text-transform: uppercase;
    opacity: 0.85;
}
.pro-labels ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}
.pro-labels li {
    color: #e8def5;
    font-size: 13.5px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pro-labels .dot { font-size: 12px; line-height: 1.5; flex-shrink: 0; }
.pro-note {
    color: #b69ce0;
    text-align: right;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 14px;
    font-style: italic;
    margin: 14px 0 0;
    opacity: 0.8;
    letter-spacing: 0.02em;
}
@media (max-width: 800px) {
    .wia-sg365-prologue { padding: 36px 22px; margin: 50px 12px 40px; border-radius: 18px; }
    .pro-inner { grid-template-columns: 1fr; gap: 28px; }
    .pro-cover { max-width: 200px; }
    .pro-title { font-size: 24px; }
    .pro-lead { font-size: 18px; }
    .pro-labels ul { grid-template-columns: 1fr; }
}

.wia-sg365-covers h2 {
    text-align: center;
    color: #c9a961;
    font-size: 36px;
    margin: 60px 0 30px;
}

.covers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .covers-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
    .covers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.cover-card {
    text-align: center;
}

/* a-tag wrapping: 도서 새탭 진입 — 시각 영향 0 */
a.cover-card,
a.s2-card,
a.pro-cover-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
a.cover-card:hover,
a.s2-card:hover,
a.pro-cover-link:hover {
    text-decoration: none;
}

.cover-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    aspect-ratio: 1414/2000;
    object-fit: cover;
}

.cover-card p {
    margin: 12px 0 0;
    font-weight: 700;
    color: #c9a961;
}

.cover-card img {
    transition: transform 0.25s ease;
}
.cover-card:hover img {
    transform: scale(1.03);
}

/* ── 라이트박스 ── */
.wia-sg365-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.wia-sg365-lightbox.open {
    display: flex;
    opacity: 1;
}
.wia-sg365-lightbox .lb-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}
.wia-sg365-lightbox .lb-caption {
    color: #c9a961;
    margin-top: 18px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.wia-sg365-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    color: #f5e6c8;
    border: 2px solid #c9a961;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}
.wia-sg365-lightbox .lb-close:hover {
    background: #c9a961;
    color: #1a1a1a;
}

/* ── 진행률 (제철 과일판) ── */
.wia-sg365-progress {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px;
}

.progress-header {
    text-align: center;
    position: relative;
}
.progress-header h3 {
    color: #c9a961;
    margin: 0 0 6px;
}

.wia-sg365-theme-toggle-btn {
    margin-top: 14px;
    background: rgba(201,169,97,0.12);
    color: #f5e6c8;
    border: 1px solid #c9a961;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.wia-sg365-theme-toggle-btn:hover {
    background: #c9a961;
    color: #1a1a1a;
}
.wia-sg365-theme-toggle-btn .tg-caret {
    opacity: 0.6;
    font-size: 12px;
}
.wia-sg365-theme-toggle-btn .tg-icon {
    font-size: 16px; line-height: 1;
}
.wia-sg365-theme-toggle-btn .tg-label {
    font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
}

/* ── 알러지 모달 ── */
.wia-sg365-allergy-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    z-index: 100000; padding: 20px;
}
.wia-sg365-allergy-modal.open { display: flex; }

.am-panel {
    background: linear-gradient(160deg, #1a1a1a, #2a1f3a);
    color: #f5e6c8;
    border-radius: 18px;
    padding: 36px 32px 32px;
    max-width: 440px;
    width: 100%;
    border: 1px solid rgba(201,169,97,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    position: relative;
    text-align: center;
}
.am-emoji { font-size: 48px; margin-bottom: 14px; letter-spacing: 4px; }
.am-panel h3 { color: #c9a961; margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.am-panel p { color: #ccc; margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.am-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.am-buttons-vertical { flex-direction: column; }
.am-btn {
    background: rgba(201,169,97,0.12);
    color: #f5e6c8;
    border: 1px solid rgba(201,169,97,0.6);
    padding: 12px 20px;
    border-radius: 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}
.am-btn:hover {
    background: #c9a961;
    color: #1a1a1a;
    transform: translateY(-1px);
}
.am-btn-recommend {
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a1a1a;
    border-color: transparent;
}
.am-btn-recommend:hover {
    background: linear-gradient(135deg, #ff9a3c, #c9a961);
}
.am-close {
    position: absolute; top: 12px; right: 14px;
    background: transparent; color: #888;
    border: none; cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 300; line-height: 1; padding: 0;
}
.am-close:hover { color: #c9a961; }

.progress-bar {
    width: 100%;
    height: 16px;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a961, #ff9a3c);
    transition: width 0.5s;
}

.fruit-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .fruit-board { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 500px) {
    .fruit-board { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.fruit-cell {
    background: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 16px 8px;
    border-radius: 12px;
    transition: all 0.3s;
}

.fruit-cell.full {
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a1a1a;
}

.fruit-cell.partial {
    background: #2a2a2a;
    color: #c9a961;
}

.fruit-cell .emoji {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    line-height: 1;
}
.fruit-cell .emoji img,
.fruit-cell .emoji .wp-smiley,
.fruit-cell .emoji .emoji {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    vertical-align: middle;
    margin: 0 !important;
}

/* 🔮 Birthstone real photo cells — 영롱한 보석 카드 */
.fruit-cell.has-photo {
    background: radial-gradient(circle at 50% 30%, #2a2a2a 0%, #161616 100%);
    padding: 14px 8px;
}
.fruit-cell.has-photo.full {
    background: radial-gradient(circle at 50% 30%, rgba(255,215,0,0.22), #1a1a1a 70%);
    box-shadow: 0 0 16px rgba(255,180,40,0.35), inset 0 0 12px rgba(255,215,0,0.15);
    color: #fff;
}
.fruit-cell.has-photo .gem-photo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 4px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #ddd 60%, #555 100%);
    box-shadow:
        0 4px 14px rgba(0,0,0,0.55),
        0 0 0 2px rgba(255,255,255,0.08),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        inset 0 4px 10px rgba(255,255,255,0.25);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s;
}
.fruit-cell.has-photo:hover .gem-photo {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.65),
        0 0 18px rgba(255,215,0,0.45),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        inset 0 4px 10px rgba(255,255,255,0.4);
}
.fruit-cell.has-photo .gem-photo::after {
    /* 보석 위쪽 하이라이트 — 영롱함 */
    content: '';
    position: absolute;
    top: 6px; left: 14px;
    width: 22px; height: 14px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.65) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.fruit-cell.has-photo .gem-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}
@media (max-width: 600px) {
    .fruit-cell.has-photo .gem-photo { width: 56px; height: 56px; }
    .fruit-cell.has-photo .gem-photo::after { top: 4px; left: 10px; width: 16px; height: 10px; }
}

.sm-emoji-big img,
.sm-emoji-big .emoji {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
}

.sm-sticker img,
.sm-slot .sm-sticker img,
.sm-sticker .emoji {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}
.fruit-cell.empty .emoji { filter: grayscale(0.3) brightness(0.85) drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.fruit-cell.partial .emoji { filter: drop-shadow(0 0 8px rgba(201,169,97,0.5)); }
.fruit-cell.full .emoji { filter: drop-shadow(0 0 12px rgba(255,154,60,0.8)); }

.fruit-cell .label {
    font-size: 12px;
    display: block;
    font-weight: 700;
}

.fruit-cell .count {
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

.fruit-cell {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.fruit-cell:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}

/* ── 스티커판 모달 ── */
.wia-sg365-sticker-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; padding: 30px 16px; opacity: 0;
    transition: opacity 0.25s ease;
}
.wia-sg365-sticker-modal.open { display: flex; opacity: 1; }

.sm-panel {
    background: linear-gradient(160deg, #0f2922 0%, #1a3d2e 40%, #22543d 100%);
    color: #f0fff4;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 920px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid rgba(134,239,172,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    position: relative;
}
.sm-close {
    position: absolute; top: 14px; right: 16px;
    background: transparent; color: #bbf7d0;
    border: 2px solid #86efac; border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 300; line-height: 1;
    padding: 0;
    cursor: pointer;
}
.sm-close:hover { background: #86efac; color: #0f2922; }

.sm-header { text-align: center; margin-bottom: 24px; }
.sm-title {
    color: #bbf7d0; margin: 0 0 8px; font-size: 28px;
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.sm-title-emoji {
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.sm-title-emoji img { width: 32px !important; height: 32px !important; vertical-align: middle; }
/* 🔮 모달 헤더 보석 사진 — 작은 원형 + 광택 */
.sm-title-emoji .sm-title-photo {
    width: 36px !important; height: 36px !important;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 2px 8px rgba(0,0,0,0.5),
                inset 0 4px 6px rgba(255,255,255,0.25), inset 0 -3px 6px rgba(0,0,0,0.3);
    vertical-align: middle;
}
.sm-summary { color: #a7f3d0; margin: 0; font-size: 16px; opacity: 0.85; }

.sm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}
.sm-slot {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(187,247,208,0.3);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: rgba(220,252,231,0.5);
    position: relative;
    overflow: hidden;
}
.sm-slot.stuck {
    background: transparent;
    border: 2px solid rgba(134,239,172,0.7);
}
/* 애니메이션은 안쪽 스티커에만, opacity만 사용 — compositing 최소화 */
.sm-slot.stuck .sm-sticker {
    animation: sm-fade-in 0.35s ease-out backwards;
}
.sm-slot .sm-num { font-weight: 600; }
.sm-slot .sm-sticker {
    font-size: 72px;
    line-height: 1;
    display: inline-block;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.45);
    /* 이모지 본연의 색상 유지 — 상속/compositing 차단 (형 팁 적용) */
    color: initial !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    filter: none !important;
    -webkit-filter: none !important;
    will-change: auto;
}
.sm-slot .sm-sticker img,
.sm-slot .sm-sticker .emoji {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
}

/* 🔮 출석 스티커가 보석 사진일 때 — 원형 마스크 + 광택 + 살짝 회전 */
.sm-slot .sm-sticker-photo {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #ddd 60%, #555 100%);
    box-shadow:
        0 4px 14px rgba(0,0,0,0.55),
        0 0 0 2px rgba(255,255,255,0.12),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        inset 0 4px 10px rgba(255,255,255,0.3);
    position: relative;
    transform: rotate(-4deg);
    transition: transform 0.3s ease;
}
.sm-slot .sm-sticker-photo::after {
    content: '';
    position: absolute;
    top: 6px; left: 14px;
    width: 18px; height: 12px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sm-slot .sm-sticker-photo img {
    width: 100% !important; height: 100% !important;
    max-width: 100% !important; max-height: 100% !important;
    object-fit: cover; display: block;
}
.sm-slot:hover .sm-sticker-photo { transform: rotate(0) scale(1.05); }
@media (max-width: 700px) {
    .sm-slot .sm-sticker-photo { width: 52px; height: 52px; }
    .sm-slot .sm-sticker-photo::after { top: 4px; left: 10px; width: 14px; height: 9px; }
}
@media (max-width: 460px) {
    .sm-slot .sm-sticker-photo { width: 42px; height: 42px; }
    .sm-slot .sm-sticker-photo::after { top: 3px; left: 8px; width: 12px; height: 7px; }
}

@media (max-width: 700px) {
    .sm-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
    .sm-slot .sm-sticker { font-size: 56px; }
    .sm-slot .sm-sticker img { width: 56px !important; height: 56px !important; }
}
@media (max-width: 460px) {
    .sm-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .sm-slot .sm-sticker { font-size: 44px; }
    .sm-slot .sm-sticker img { width: 44px !important; height: 44px !important; }
}
/* rotate 제거 — GPU compositing으로 인한 색 톤다운 방지 */

@keyframes sm-stick {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes sm-fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.sm-hint {
    text-align: center;
    color: #a7f3d0;
    opacity: 0.65;
    font-size: 12px;
    margin: 18px 0 0;
}

@media (max-width: 600px) {
    .wia-sg365-reader {
        padding: 32px 22px 64px;
        font-size: 18px;
        line-height: 1.78;
    }
    .wia-sg365-title { font-size: 22px; }
    .wia-sg365-hero h1 { font-size: 40px; }
    .wia-sg365-hero .subtitle { font-size: 16px; }
    #wia-sg365-topbar { font-size: 14px !important; gap: 12px !important; padding: 12px 44px 12px 16px !important; }
    #wia-sg365-topbar span:first-of-type { font-size: 15px !important; }
    #wia-sg365-topbar a:first-of-type { padding: 6px 14px !important; font-size: 13px !important; }
}

/* ═══════════════ Season 2 Teaser ═══════════════ */
.wia-sg365-season2 {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 50px 20px 40px;
    background: linear-gradient(160deg, #1a0f1f 0%, #2a1a3a 45%, #1f1410 100%);
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 97, 0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}
.wia-sg365-season2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(201,169,97,0.08), transparent 60%);
    pointer-events: none;
}
.s2-header { text-align: center; position: relative; margin-bottom: 40px; }
.s2-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a0f1f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.s2-title {
    color: #f5e6c8;
    font-size: 48px;
    margin: 10px 0 4px;
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 900;
    letter-spacing: 0.02em;
}
.s2-subtitle {
    color: #c9a961;
    font-size: 17px;
    margin: 0 0 24px;
    opacity: 0.85;
}
.s2-headline {
    color: #ff9a3c;
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 12px;
    font-style: italic;
}
.s2-story {
    color: #d4c4a0;
    font-size: 15px;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.9;
}
.s2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 36px;
    position: relative;
}
.s2-card {
    cursor: zoom-in;
    transition: transform 0.25s ease;
    text-align: center;
}
.s2-card:hover { transform: translateY(-4px); }
.s2-card:hover .s2-cover-wrap img { filter: brightness(1); }
.s2-cover-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.s2-cover-wrap img {
    width: 100%;
    aspect-ratio: 1414/2000;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: filter 0.25s ease;
}
.s2-soon {
    position: absolute;
    top: 10px; left: 10px; right: auto;
    background: rgba(255, 154, 60, 0.95);
    color: #1a0f1f;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.s2-card-title {
    color: #f5e6c8;
    font-size: 15px;
    font-weight: 700;
    margin: 12px 0 2px;
}
.s2-card-era {
    color: #c9a961;
    font-size: 12px;
    margin: 0 0 4px;
    opacity: 0.8;
}
.s2-card-tag {
    color: #a89878;
    font-size: 12px;
    margin: 0;
    font-style: italic;
    opacity: 0.7;
}
.s2-pricing {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    position: relative;
}
.s2-price-main {
    color: #ff9a3c;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}
.s2-price-sub {
    color: #c9a961;
    font-size: 13px;
    margin: 0 0 12px;
    opacity: 0.8;
}
.s2-preorder {
    color: #f5e6c8;
    font-size: 14px;
    margin: 0;
    padding: 10px 16px;
    background: rgba(201,169,97,0.15);
    border-radius: 20px;
    display: inline-block;
    border: 1px dashed rgba(201,169,97,0.5);
}
.s2-notify {
    text-align: center;
    margin-top: 30px;
    position: relative;
}
.s2-notify h3 {
    color: #f5e6c8;
    font-size: 16px;
    margin: 0 0 14px;
}
.s2-notify-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.s2-notify-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid rgba(201,169,97,0.4);
    background: rgba(0,0,0,0.4);
    color: #f5e6c8;
    font-size: 14px;
    font-family: inherit;
}
.s2-notify-form input[type="email"]::placeholder {
    color: #888;
}
.s2-notify-form input[type="email"]:focus {
    outline: none;
    border-color: #c9a961;
    background: rgba(0,0,0,0.6);
}
.s2-notify-form button {
    padding: 12px 22px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a0f1f;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease;
    font-family: inherit;
}
.s2-notify-form button:hover { transform: scale(1.05); }
.s2-notify-ok {
    color: #6dc975;
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 0;
}

@media (max-width: 800px) {
    .s2-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .s2-title { font-size: 36px; }
    .s2-headline { font-size: 18px; }
}
@media (max-width: 500px) {
    .wia-sg365-season2 { padding: 36px 16px 30px; margin-top: 50px; }
    .s2-title { font-size: 28px; }
    .s2-headline { font-size: 16px; }
    .s2-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ═══════════════ 평역가의 서문 (Preface) ═══════════════ */
/* 2026-05-08 가독성 개선: BG 불투명도 35→78%, border 0.2→0.5, gold glow shadow,
   backdrop-filter blur (frosted glass), body color e8d9b5→f0e0b8 */
.wia-sg365-preface {
    max-width: 760px;
    margin: 80px auto 60px;
    padding: 60px 40px 50px;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(201,169,97,0.06), transparent 70%),
        linear-gradient(180deg, rgba(26,15,31,0.78) 0%, rgba(10,15,35,0.85) 100%);
    border-radius: 18px;
    border: 1px solid rgba(201,169,97,0.5);
    box-shadow:
        0 0 0 1px rgba(201,169,97,0.08) inset,
        0 12px 40px rgba(0,0,0,0.45),
        0 0 60px rgba(201,169,97,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f0e0b8;
    font-family: 'Nanum Myeongjo', 'Noto Serif KR', serif;
    line-height: 2.0;
    font-size: 17px;
    position: relative;
}
.wia-sg365-preface[lang="en"], .wia-sg365-preface:has(.pf-title:first-letter) {
    font-family: 'Georgia', 'Iowan Old Style', serif;
}

.pf-ornament {
    text-align: center;
    color: rgba(201,169,97,0.7);
    font-size: 18px;
    letter-spacing: 12px;
    margin: 0 0 30px;
    text-shadow: 0 0 12px rgba(201,169,97,0.25);
}
.pf-ornament:last-child { margin: 40px 0 0; }

.pf-title {
    text-align: center;
    color: #f0c862;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 50px;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(201,169,97,0.35);
}

.pf-body p {
    margin: 0 0 1.6em;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.pf-accent {
    text-align: center !important;
    color: #c9a961;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
    margin: 2em 0 !important;
}

.pf-quote {
    text-align: center !important;
    color: #ffe9a0;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 24px;
    border-left: 3px solid rgba(253, 230, 138, 0.7);
    border-right: 3px solid rgba(253, 230, 138, 0.7);
    background: rgba(253, 230, 138, 0.05);
    border-radius: 4px;
    margin: 2em auto !important;
    max-width: 560px;
    text-shadow: 0 0 18px rgba(253, 230, 138, 0.2);
}

.pf-divider {
    text-align: center;
    color: rgba(201,169,97,0.55);
    font-size: 20px;
    letter-spacing: 18px;
    margin: 40px 0;
    text-shadow: 0 0 10px rgba(201,169,97,0.2);
}

.pf-wish {
    text-align: center !important;
    color: #ff9a3c;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.9;
    padding: 24px 20px;
    background: rgba(255,154,60,0.06);
    border-radius: 10px;
    border-top: 1px solid rgba(255,154,60,0.2);
    border-bottom: 1px solid rgba(255,154,60,0.2);
    margin: 2.5em 0 !important;
}

.pf-final {
    text-align: center !important;
    color: #c9a961;
    font-weight: 600;
    font-style: italic;
    margin: 2em 0 0.5em !important;
}

.pf-signature {
    text-align: center;
    color: #f0c862;
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 10px;
    font-style: italic;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(201,169,97,0.45), 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
    .pf-signature { font-size: 19px; letter-spacing: 0.03em; }
}

@media (max-width: 600px) {
    .wia-sg365-preface {
        padding: 40px 22px 36px;
        font-size: 16px;
        line-height: 1.95;
        margin: 50px 0 40px;
    }
    .pf-title { font-size: 22px; margin-bottom: 36px; }
    .pf-accent, .pf-wish { font-size: 16px; }
    .pf-quote { font-size: 17px; padding: 12px 16px; }
}

/* ═══════════════ 저자 소개 (Author Intro) ═══════════════ */
.wia-sg365-author-intro {
    max-width: 760px;
    margin: 60px auto 80px;
    padding: 50px 40px 40px;
    background: linear-gradient(180deg, rgba(20,12,28,0.85) 0%, rgba(8,12,30,0.90) 100%);
    border-radius: 18px;
    border: 1px solid rgba(201,169,97,0.5);
    box-shadow:
        0 12px 40px rgba(0,0,0,0.45),
        0 0 60px rgba(201,169,97,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f0e0b8;
    font-family: 'Nanum Myeongjo', 'Noto Serif KR', serif;
    position: relative;
}
.ai-title {
    text-align: center;
    color: #f0c862;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 36px;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px rgba(201,169,97,0.35);
}
.ai-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: start;
}
.ai-photo-wrap {
    display: flex;
    justify-content: center;
}
.ai-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(201,169,97,0.5);
    box-shadow: 0 0 30px rgba(201,169,97,0.25);
}
.ai-body {
    min-width: 0;
}
.ai-name {
    color: #f0c862;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: 0.03em;
    text-shadow: 0 0 14px rgba(201,169,97,0.3);
}
.ai-bio {
    color: #f0e0b8;
    font-size: 16px;
    line-height: 1.95;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.ai-bio p {
    margin: 0 0 1.3em;
    text-align: left;
}
.ai-bio p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .wia-sg365-author-intro {
        padding: 36px 22px 30px;
        margin: 40px 0 60px;
    }
    .ai-title { font-size: 22px; margin-bottom: 28px; }
    .ai-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ai-photo { width: 150px; height: 150px; }
    .ai-name { font-size: 19px; text-align: center; }
    .ai-bio { font-size: 15px; line-height: 1.85; }
}

/* ═══════ 리빌드 안내 (도원편 재편집 중) ═══════ */
.wia-sg365-rebuild-notice {
    background: linear-gradient(135deg, #1f1410 0%, #2a1f14 50%, #1a1008 100%);
    border: 2px solid #c9a961;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 0 0 24px;
    color: #f5e6c8;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.wia-sg365-rebuild-notice strong {
    color: #ff9a3c;
    font-weight: 800;
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   🔮 당신의 한 문장 — Inquiry (Phase A)
   편집국장 정화 표준: 답 필드 없음 · 비교 요소 없음 · 비공개 기본
   ═══════════════════════════════════════════════════════════════ */
.wia-sg365-inquiry {
    margin: 48px auto 24px;
    padding: 32px 28px;
    max-width: 760px;
    background: linear-gradient(135deg, rgba(176,139,214,0.08), rgba(201,169,97,0.04));
    border: 1px solid rgba(201,169,97,0.32);
    border-radius: 16px;
    color: #f5e6c8;
    font-family: 'Nanum Myeongjo', 'Noto Serif KR', serif;
}
.wia-sg365-inquiry-title {
    font-size: 20px;
    font-weight: 800;
    color: #c9a961;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}
.wia-sg365-inquiry-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #e8d8b8;
    margin: 0 0 18px;
    opacity: 0.92;
}
.wia-sg365-inquiry-intro em {
    color: #b08bd6;
    font-style: italic;
}
.wia-sg365-inquiry-locked {
    text-align: center;
    padding: 14px 0 4px;
}
.wia-sg365-inquiry-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a1a1a !important;
    padding: 10px 24px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(201,169,97,0.4);
}
.wia-sg365-inquiry-locked small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.7;
}
.wia-sg365-inquiry-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: rgba(10,15,30,0.6);
    border: 1px solid rgba(201,169,97,0.4);
    border-radius: 8px;
    color: #f5e6c8;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
}
.wia-sg365-inquiry-form textarea[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}
.wia-sg365-inquiry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}
.wia-sg365-inquiry-pub {
    font-size: 13px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wia-sg365-inquiry-submit {
    background: linear-gradient(135deg, #b08bd6, #c9a961);
    color: #1a1a1a;
    border: none;
    padding: 9px 20px;
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}
.wia-sg365-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.wia-sg365-inquiry-locked-note {
    font-size: 13px;
    color: #b08bd6;
    opacity: 0.8;
}
.wia-sg365-inquiry-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #c9a961;
    opacity: 0.75;
    font-style: italic;
}
.wia-sg365-inquiry-status {
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   📔 Phase B · 대시보드 (samgukji_journal)
   편집국장 6원칙: 점수·순위 표현 없음. 회상은 "당신에게 머문 단어".
   ═══════════════════════════════════════════════════════════════ */
.wia-sg365-journal {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 80px;
    color: #f5e6c8;
    font-family: 'Nanum Myeongjo','Noto Serif KR',serif;
}
.wia-sg365-journal-gate {
    text-align: center;
    padding: 80px 20px;
    color: #c9a961;
}
.wia-sg365-journal-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 22px 14px 18px;
    background: linear-gradient(135deg, rgba(176,139,214,0.10), rgba(201,169,97,0.06));
    border: 1px solid rgba(201,169,97,0.32);
    border-radius: 16px;
}
.wia-sg365-journal-header h2 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #c9a961;
    letter-spacing: 0.02em;
}
.wia-sg365-journal-summary {
    margin: 0 0 8px;
    font-size: 17px;
    color: #f5e6c8;
}
.wia-sg365-journal-meta {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}
.wia-sg365-journal-meta .sep { margin: 0 8px; opacity: 0.5; }

.wia-sg365-journal-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
.wia-sg365-journal-tabs .jt-btn {
    background: rgba(10,15,30,0.6);
    color: #c9a961;
    border: 1px solid rgba(201,169,97,0.4);
    padding: 9px 18px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
}
.wia-sg365-journal-tabs .jt-btn.active {
    background: linear-gradient(135deg, #c9a961, #ff9a3c);
    color: #1a1a1a;
    border-color: transparent;
}

.jt-pane { animation: jt-fade .3s ease; }
@keyframes jt-fade { from { opacity:0; transform:translateY(4px);} to { opacity:1; transform:none;} }

/* ── List tab ── */
.jt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.jt-card {
    padding: 16px 18px;
    background: rgba(10,15,30,0.55);
    border-left: 3px solid #c9a961;
    border-radius: 10px;
}
.jt-card-h {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #c9a961;
}
.jt-day { font-weight: 800; }
.jt-date { opacity: 0.8; }
.jt-pub { margin-left: auto; font-size: 12px; padding: 2px 9px; border-radius: 10px; }
.jt-pub.is-private { background: rgba(176,139,214,0.18); color: #b08bd6; }
.jt-pub.is-public  { background: rgba(255,154,60,0.18); color: #ff9a3c; }
.jt-q {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #f5e6c8;
}
.jt-empty {
    text-align: center;
    padding: 60px 20px;
    color: #c9a961;
    opacity: 0.7;
    font-style: italic;
}

/* ── Recall tab ── */
.jt-recall-hint {
    text-align: center;
    color: #c9a961;
    font-style: italic;
    margin: 0 0 22px;
    font-size: 13px;
    opacity: 0.85;
}
.jt-recall-bucket { margin-bottom: 22px; }
.jt-recall-bucket-h {
    margin: 0 0 10px;
    font-size: 13px;
    color: #b08bd6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.jt-recall-cloud {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    background: rgba(10,15,30,0.55);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: baseline;
}
.jt-recall-word {
    color: #f5e6c8;
    line-height: 1.4;
}
.jt-recall-word small {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.55;
    color: #c9a961;
}

/* ── Map tab modal ── */
.jt-map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.jt-map-modal.open { display: flex; }
.jtm-panel {
    background: linear-gradient(160deg, #1a1626, #0a0f1e);
    color: #f5e6c8;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid rgba(201,169,97,0.4);
    position: relative;
}
.jtm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #c9a961;
    font-size: 26px;
    cursor: pointer;
}
.jtm-title { margin: 0 0 6px; color: #c9a961; font-size: 20px; }
.jtm-summary { margin: 0 0 16px; font-size: 13px; opacity: 0.7; }
.jtm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.jtm-slot {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(10,15,30,0.4);
    border: 1px solid rgba(201,169,97,0.12);
    font-size: 14px;
    line-height: 1.5;
}
.jtm-slot.has-q {
    background: rgba(176,139,214,0.10);
    border-color: rgba(201,169,97,0.32);
}
.jtm-slot .jtm-num {
    flex: 0 0 60px;
    color: #c9a961;
    font-weight: 700;
    font-size: 13px;
}
.jtm-slot .jtm-q {
    flex: 1;
    color: #f5e6c8;
}
.jtm-slot:not(.has-q) .jtm-num { opacity: 0.4; }

/* ═══════════════════════════════════════════════════════
   Progress Locked (비로그인 UI) — v1.3.8
   히어로 + 잠금 과일판 프리뷰 + 혜택 3개 + CTA
   ═══════════════════════════════════════════════════════ */
.wia-sg365-progress-locked {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 1;
}

/* Hero */
.progress-locked-hero {
    text-align: center;
    padding: 60px 20px 50px;
    margin-bottom: 30px;
}
.progress-locked-hero .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(201, 169, 97, 0.15);
    color: #c9a961;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
    border: 1px solid rgba(201, 169, 97, 0.35);
}
.progress-locked-hero .hero-title {
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    font-size: 44px;
    font-weight: 800;
    color: #f5e6c8;
    margin: 0 0 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.progress-locked-hero .hero-subtitle {
    font-size: 18px;
    color: #c9a961;
    opacity: 0.88;
    margin: 0;
    font-weight: 400;
}
@media (max-width: 640px) {
    .progress-locked-hero { padding: 40px 16px 30px; }
    .progress-locked-hero .hero-title { font-size: 28px; }
    .progress-locked-hero .hero-subtitle { font-size: 15px; }
}

/* 잠금 프리뷰 과일판 */
.progress-locked-preview { margin: 40px 0; }
.fruit-board-locked .fruit-cell.locked {
    position: relative;
    opacity: 0.6;
    filter: grayscale(0.65) brightness(0.75);
    cursor: not-allowed;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
}
.fruit-board-locked .fruit-cell.locked:hover {
    opacity: 0.82;
    filter: grayscale(0.4) brightness(0.92);
    transform: translateY(-2px);
}
.fruit-board-locked .fruit-cell.locked .lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    opacity: 0.85;
    z-index: 2;
    filter: grayscale(0);
}
.fruit-board-locked .fruit-cell.locked .emoji {
    filter: grayscale(0.55) brightness(0.85) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.preview-hint {
    text-align: center;
    color: #c9a961;
    opacity: 0.78;
    margin: 22px 0 0;
    font-size: 14px;
    font-style: italic;
}

/* 혜택 3개 그리드 */
.progress-locked-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px auto 40px;
    max-width: 900px;
}
@media (max-width: 720px) {
    .progress-locked-benefits {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 40px auto 30px;
    }
}
.progress-locked-benefits .benefit {
    text-align: center;
    padding: 30px 20px 26px;
    background: linear-gradient(135deg, rgba(201,169,97,0.08), rgba(176,139,214,0.06));
    border: 1px solid rgba(201, 169, 97, 0.22);
    border-radius: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.progress-locked-benefits .benefit:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 97, 0.55);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.progress-locked-benefits .benefit-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 14px;
    line-height: 1;
}
.progress-locked-benefits .benefit-title {
    display: block;
    font-size: 18px;
    color: #f5e6c8;
    font-weight: 700;
    margin-bottom: 6px;
}
.progress-locked-benefits .benefit-desc {
    display: block;
    color: #c9a961;
    opacity: 0.78;
    font-size: 13px;
    line-height: 1.5;
}

/* CTA */
.progress-locked-cta {
    text-align: center;
    margin: 50px 0 20px;
}
.progress-locked-cta .cta-btn {
    text-decoration: none;
    transition: all 0.25s ease;
}
.progress-locked-cta .cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, #c9a961 0%, #ff9a3c 100%);
    color: #1a0f1f !important;
    padding: 18px 48px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
    letter-spacing: 0.02em;
}
.progress-locked-cta .cta-primary:hover,
.progress-locked-cta .cta-primary:focus,
.progress-locked-cta .cta-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.5);
    color: #1a0f1f !important;
}
.progress-locked-cta .cta-secondary {
    display: block;
    margin-top: 20px;
    color: #c9a961;
    opacity: 0.85;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.progress-locked-cta .cta-secondary:hover {
    opacity: 1;
}
@media (max-width: 640px) {
    .progress-locked-cta .cta-primary {
        padding: 16px 36px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════
   v1.3.9 — 잠금 과일 셀 가시성 개선
   (v1.3.8은 셀 전체에 opacity 0.6 + filter 를 걸어서 배경에 녹음
    → 이번엔 셀 자체는 카드로 떠보이게 하고, 잠금 톤은 이모지에만 적용)
   ═══════════════════════════════════════════════════════ */
.fruit-board-locked .fruit-cell.locked {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(135deg, rgba(201,169,97,0.08) 0%, rgba(45,40,60,0.92) 100%) !important;
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.025);
    cursor: not-allowed;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.fruit-board-locked .fruit-cell.locked:hover {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(135deg, rgba(201,169,97,0.14) 0%, rgba(50,42,65,0.96) 100%) !important;
    border-color: rgba(201, 169, 97, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
/* 잠금 톤은 이모지 자체에만 — 셀 카드는 선명하게 유지 */
.fruit-board-locked .fruit-cell.locked .emoji {
    filter: grayscale(0.55) brightness(0.95) drop-shadow(0 2px 6px rgba(0,0,0,0.5)) !important;
}
.fruit-board-locked .fruit-cell.locked .label {
    color: rgba(245, 230, 200, 0.75);
    font-weight: 500;
}
.fruit-board-locked .fruit-cell.locked .lock-icon {
    color: #c9a961;
    opacity: 0.92;
    font-size: 17px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* ═══════════════════════════════════════════════════════
   v1.4.0 — 크림/아이보리 카드 + 테마 토글 (과일/탄생석)
   "구정물 딸기" 해결 — 밝은 고서 접시 위에 선명한 과일/보석
   + 과일 알러지 대응 탄생석 프리뷰 토글
   ═══════════════════════════════════════════════════════ */

/* 프리뷰 도구바 (라벨 + 토글 버튼) */
.progress-locked-preview .preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 4px;
    gap: 12px;
    flex-wrap: wrap;
}
.progress-locked-preview .preview-label {
    color: #c9a961;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.02em;
}
.progress-locked-preview .theme-preview-toggle {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 20px;
    color: #c9a961;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}
.progress-locked-preview .theme-preview-toggle:hover,
.progress-locked-preview .theme-preview-toggle:focus {
    background: rgba(201, 169, 97, 0.22);
    border-color: #c9a961;
    color: #f5e6c8;
    transform: translateY(-1px);
}

/* ═══ 카드 크림/아이보리 톤 — "구정물" 완전 제거 ═══ */
.fruit-board-locked .fruit-cell.locked {
    opacity: 1 !important;
    filter: none !important;
    /* 크림빛 고서 접시 — 따뜻한 아이보리 그라데이션 */
    background: linear-gradient(135deg,
        rgba(252, 245, 228, 0.96) 0%,
        rgba(245, 233, 208, 0.94) 55%,
        rgba(238, 222, 192, 0.92) 100%) !important;
    border: 1px solid rgba(201, 169, 97, 0.55);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 245, 220, 0.5);
    cursor: not-allowed;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fruit-board-locked .fruit-cell.locked:hover {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(135deg,
        rgba(254, 248, 234, 0.98) 0%,
        rgba(250, 240, 218, 0.96) 55%,
        rgba(242, 228, 200, 0.94) 100%) !important;
    border-color: rgba(201, 169, 97, 0.85);
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 245, 220, 0.6);
}

/* 과일/보석 이모지 — 자연색 그대로 선명하게 (grayscale 제거) */
.fruit-board-locked .fruit-cell.locked .emoji {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) saturate(1.05) !important;
}

/* 라벨 — 고서 잉크 브라운 */
.fruit-board-locked .fruit-cell.locked .label {
    color: #5a4a2a;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* 잠금 아이콘 — 진한 금색 */
.fruit-board-locked .fruit-cell.locked .lock-icon {
    color: #a08040;
    opacity: 0.85;
    font-size: 15px;
    filter: drop-shadow(0 1px 1px rgba(255, 245, 220, 0.6));
}

/* 알러지 안내 */
.allergy-note {
    text-align: center;
    color: #c9a961;
    opacity: 0.7;
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
}

/* 탄생석 테마일 때 — 보석이 더 영롱하게 보이도록 살짝 더 밝은 배경 */
.theme-gem .fruit-board-locked .fruit-cell.locked {
    background: linear-gradient(135deg,
        rgba(248, 244, 255, 0.97) 0%,
        rgba(242, 236, 248, 0.95) 55%,
        rgba(235, 228, 242, 0.93) 100%) !important;
    border-color: rgba(176, 139, 214, 0.5);
}
.theme-gem .fruit-board-locked .fruit-cell.locked:hover {
    border-color: rgba(176, 139, 214, 0.85);
}
.theme-gem .fruit-board-locked .fruit-cell.locked .label {
    color: #4a3a5a;
}
.theme-gem .fruit-board-locked .fruit-cell.locked .lock-icon {
    color: #8060a0;
}

/* ═══════════════════════════════════════════════════════════════
   🌸 자기 성찰 365 — A1-다 통합 카드 (Reflection + Inquiry)
   2026-04-29 추가. Inquiry 코드 0줄 변경 — wrapper로 시각 통합만.
   ═══════════════════════════════════════════════════════════════ */
.wia-sg365-self-365 {
    margin: 32px 0 24px;
    padding: 28px 28px 24px;
    background: linear-gradient(180deg, rgba(201,169,97,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(201,169,97,0.32);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
.wia-sg365-self-365-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(201,169,97,0.35);
}
.wia-sg365-self-365-h {
    margin: 0 0 6px;
    color: #c9a961;
    font-size: 21px;
    font-family: 'Nanum Myeongjo','Noto Serif KR',serif;
    letter-spacing: 0.02em;
}
.wia-sg365-self-365-sub {
    margin: 0;
    font-size: 13px;
    color: rgba(245,230,200,0.7);
}

/* ── Reflection 영역 (위) ── */
.wia-sg365-reflection {
    padding: 18px 4px 16px;
}
.wia-sg365-reflection-title {
    margin: 0 0 12px;
    color: #c9a961;
    font-size: 17px;
    font-family: 'Nanum Myeongjo','Noto Serif KR',serif;
    letter-spacing: 0.02em;
}
.wia-sg365-reflection-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(245,230,200,0.85);
}
.wia-sg365-reflection-icon {
    font-size: 22px;
}
.wia-sg365-reflection-q {
    margin: 0 0 16px;
    padding: 14px 18px;
    background: rgba(201,169,97,0.08);
    border-left: 3px solid #c9a961;
    border-radius: 6px;
    color: #f5e6c8;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
}
.wia-sg365-reflection-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(201,169,97,0.35);
    border-radius: 8px;
    color: #f5e6c8;
    font-size: 15px;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}
.wia-sg365-reflection-form textarea:focus {
    outline: none;
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.wia-sg365-reflection-form textarea::placeholder {
    color: rgba(245,230,200,0.45);
    font-style: italic;
}
.wia-sg365-reflection-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.wia-sg365-reflection-submit {
    padding: 10px 22px;
    background: linear-gradient(135deg, #b8923a, #e07a1e);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(201,169,97,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
    letter-spacing: 0.01em;
}
.wia-sg365-reflection-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,169,97,0.45);
}
.wia-sg365-reflection-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.wia-sg365-reflection-hint {
    font-size: 12px;
    color: rgba(245,230,200,0.6);
}
.wia-sg365-reflection-status {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 1.4em;
}
.wia-sg365-reflection-saved {
    padding: 16px 18px;
    background: rgba(168,230,168,0.08);
    border: 1px solid rgba(168,230,168,0.28);
    border-radius: 10px;
}
.wia-sg365-reflection-saved-h {
    margin: 0 0 8px;
    color: #a8e6a8;
    font-weight: 700;
    font-size: 14px;
}
.wia-sg365-reflection-saved-body {
    margin: 0 0 8px;
    color: #f5e6c8;
    font-size: 14.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.wia-sg365-reflection-saved small {
    color: rgba(245,230,200,0.55);
    font-size: 11.5px;
}
.wia-sg365-reflection-gated {
    padding: 14px 16px;
    background: rgba(255,154,60,0.08);
    border: 1px solid rgba(255,154,60,0.30);
    border-radius: 8px;
    color: #ffd1a3;
    font-size: 13.5px;
}
.wia-sg365-reflection-locked {
    text-align: center;
    padding: 14px 16px;
}
.wia-sg365-reflection-login-btn {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, #b8923a, #e07a1e);
    color: #fff !important;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* ── 분리선 ── */
.wia-sg365-self-365-divider {
    margin: 22px 0 18px;
    text-align: center;
    color: rgba(201,169,97,0.55);
    font-size: 13px;
    letter-spacing: 0.16em;
}

/* ── Inquiry 영역 (아래) — 명시적 라벨 ── */
.wia-sg365-self-365-inquiry-wrap {
    padding-top: 4px;
}
.wia-sg365-self-365-inquiry-lead {
    margin: 0 0 6px;
    font-size: 14.5px;
    color: rgba(245,230,200,0.85);
}
.wia-sg365-self-365-inquiry-lead small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: rgba(245,230,200,0.55);
    letter-spacing: 0.01em;
}

/* ── Reflection 토스트 (출독 토스트와 같은 자리, 다른 색조) ── */
.wia-sg365-toast-reflection {
    background: linear-gradient(135deg, #1a2240 0%, #2a1a3a 100%) !important;
    border: 1px solid rgba(201,169,97,0.45) !important;
    color: #f5e6c8 !important;
}

@media (max-width: 600px) {
    .wia-sg365-self-365 { padding: 20px 16px 18px; margin: 24px 0 18px; }
    .wia-sg365-self-365-h { font-size: 19px; }
    .wia-sg365-reflection-q { font-size: 15px; padding: 12px 14px; }
    .wia-sg365-reflection-form textarea { min-height: 100px; font-size: 14.5px; }
    .wia-sg365-reflection-actions { flex-direction: column; align-items: stretch; }
    .wia-sg365-reflection-submit { width: 100%; }
}

/* === 2026-05-07: 5 언어 버튼 1행 정렬 (UX 강화 PM 패치 v2) === */
.wia-sg365-lang-switch,
.wia-sg365-lang-toggle {
    display: flex !important;
    flex-wrap: nowrap !important;       /* 1행 강제 */
    gap: 8px !important;
    justify-content: flex-end;
    align-items: center;
    margin: 12px 0 !important;
    padding: 4px 6px !important;        /* 활성 버튼 그림자/border 잘림 방지 */
    overflow: visible !important;       /* 좌측 잘림 방지 (1행이라 scroll 불필요) */
    white-space: nowrap;
    box-sizing: border-box;
}

.wia-sg365-lang-switch a,
.wia-sg365-lang-toggle a {
    padding: 10px 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 22px !important;
    min-width: 0 !important;            /* 1행 압축 위해 min-width 제거 */
    flex: 0 0 auto !important;          /* 줄바꿈 방지 */
    white-space: nowrap !important;
    text-align: center;
    border: 1.5px solid #c9a961 !important;
    background: rgba(201, 169, 97, 0.15) !important;
    color: #c9a961 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wia-sg365-lang-switch a:hover,
.wia-sg365-lang-toggle a:hover {
    background: rgba(201, 169, 97, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(201, 169, 97, 0.3);
}

.wia-sg365-lang-switch a.active,
.wia-sg365-lang-toggle a.active {
    background: linear-gradient(135deg, #c9a961, #ff9a3c) !important;
    color: #1a0f1f !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.45) !important;
    border-color: #ff9a3c !important;
}

/* 모바일: 더 압축해서 1행 유지 */
@media (max-width: 768px) {
    .wia-sg365-lang-switch,
    .wia-sg365-lang-toggle {
        gap: 6px !important;
        justify-content: center;
    }
    .wia-sg365-lang-switch a,
    .wia-sg365-lang-toggle a {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 480px) {
    .wia-sg365-lang-switch a,
    .wia-sg365-lang-toggle a {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}
