@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;700;900&family=Noto+Serif:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* 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;
}

/* 🇰🇷 삼국지 테마 배경 오버레이 — 네온 배경을 묵색으로 덮고 금색 광원 추가 */
.wia-sg365-landing::before {
    content: '';
    position: fixed;
    inset: 0;
    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%);
    z-index: -1;
    pointer-events: none;
}

.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;
}

.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;
}

.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-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;
}

.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-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;
}

@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) ═══════════════ */
.wia-sg365-preface {
    max-width: 760px;
    margin: 80px auto 60px;
    padding: 60px 40px 50px;
    background: linear-gradient(180deg, rgba(26,15,31,0.35) 0%, rgba(10,15,35,0.45) 100%);
    border-radius: 16px;
    border: 1px solid rgba(201,169,97,0.2);
    color: #e8d9b5;
    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.5);
    font-size: 16px;
    letter-spacing: 10px;
    margin: 0 0 30px;
}
.pf-ornament:last-child { margin: 40px 0 0; }

.pf-title {
    text-align: center;
    color: #c9a961;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 50px;
    letter-spacing: 0.03em;
}

.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: #fde68a;
    font-style: italic;
    font-size: 19px;
    font-weight: 600;
    padding: 14px 20px;
    border-left: 3px solid rgba(253, 230, 138, 0.5);
    border-right: 3px solid rgba(253, 230, 138, 0.5);
    margin: 2em auto !important;
    max-width: 560px;
}

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

.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: right;
    color: #c9a961;
    font-size: 18px;
    font-weight: 700;
    margin: 30px 20px 0;
    font-style: italic;
}

@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; }
}

/* ═══════ 리빌드 안내 (도원편 재편집 중) ═══════ */
.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;
}
