/* 말랑달콤 다이어리 - 전체 디자인 (원래 index.html의 <style> 부분) */
        :root {
            --bg-color: #ffe6f0;
            --cover-bg: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%);
            --page-bg: #fff0f5;
            --border-color: #ffb6c1;
            --primary-accent: #ff6b81;
            --system-font: system-ui, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
            --font-family: var(--system-font);

            --curl-shade-next: linear-gradient(to right, rgba(0,0,0,.08) 0%, rgba(255,255,255,.35) 45%, rgba(0,0,0,.10) 80%, rgba(0,0,0,.34) 100%);
            --curl-shade-prev: linear-gradient(to left,  rgba(0,0,0,.08) 0%, rgba(255,255,255,.35) 45%, rgba(0,0,0,.10) 80%, rgba(0,0,0,.34) 100%);
        }

        html, body {
            width: 100%; height: 100%; overflow: hidden; position: fixed;
            margin: 0; padding: 0; background-color: var(--bg-color);
            font-family: var(--font-family);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            touch-action: manipulation; box-sizing: border-box; user-select: none; -webkit-user-select: none;
        }
        textarea { user-select: text; -webkit-user-select: text; }

        .toolbar {
            display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
            background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px);
            padding: 8px 12px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            margin-bottom: 8px; z-index: 100; max-width: 95vw;
        }
        .btn {
            background: #fff; border: 2px solid var(--border-color); color: #444;
            padding: 5px 10px; border-radius: 12px; font-weight: bold; cursor: pointer;
            transition: all 0.2s ease; font-family: inherit; font-size: 14px;
            display: flex; align-items: center; gap: 3px;
        }
        .btn:hover { background: var(--border-color); color: #fff; }

        .diary-wrapper {
            width: min(92vw, 480px);
            height: min(72dvh, 620px);
            position: relative;
            touch-action: none;
        }

        .diary-book {
            width: 100%; height: 100%; position: relative;
        }

        .page {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            box-sizing: border-box;
            border-radius: 15px 22px 22px 15px;
            box-shadow: 5px 10px 25px rgba(0,0,0,0.12);
            display: flex; flex-direction: column; overflow: hidden;
            border: 4px solid #fff;
        }

        .cover-page {
            background: var(--cover-bg); color: #fff;
            align-items: center; justify-content: center; text-align: center;
            cursor: pointer; z-index: 10;
        }
        .cover-title { font-size: 2.6rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); margin-bottom: 8px; }
        .cover-subtitle { font-size: 1.2rem; opacity: 0.9; }
        .drag-hint { margin-top: 25px; font-size: 0.95rem; animation: bounce 1.5s infinite; }

        @keyframes bounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }

        .inner-page { background-color: var(--page-bg); z-index: 5; }
        .page-header {
            height: 48px; border-bottom: 2px dashed var(--border-color);
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 15px; font-size: 1.3rem; color: var(--primary-accent); font-weight: bold;
            flex-shrink: 0; box-sizing: border-box;
        }

        .canvas-area {
            flex: 1; position: relative; overflow: hidden; touch-action: none;
            background-size: 100% 25px;
            background-image: linear-gradient(to bottom, rgba(255,182,193,0.2) 1px, transparent 1px);
        }

        .element-box {
            position: absolute; cursor: move; display: inline-block;
            padding: 6px; border: 1px dashed transparent;
            transform-origin: center center;
            touch-action: none; user-select: none;
        }
        .element-box.selected { border-color: var(--primary-accent); }
        .element-box img { width: 100%; height: 100%; pointer-events: none; display: block; }
        .element-box textarea {
            background: transparent; border: none; resize: none; outline: none;
            width: 100%; height: 100%;
            font-family: var(--system-font); font-size: 18px; color: #444444;
        }

        .handle {
            position: absolute; width: 20px; height: 20px; background: var(--primary-accent);
            border: 2px solid #fff; border-radius: 50%; display: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 20;
            align-items: center; justify-content: center; color: #fff; font-size: 11px;
        }
        .element-box.selected .handle { display: flex; }

        .handle.rotate-handle {
            top: -28px; left: 50%; transform: translateX(-50%);
            cursor: grab; background: #ff4757;
        }
        .handle.stretch-handle { right: -14px; top: 50%; margin-top: -10px; cursor: ew-resize; background: #ffa502; font-size: 12px; }
        .handle.scale-handle {
            right: -10px; bottom: -10px;
            cursor: nwse-resize; background: #2ed573;
        }

        .text-panel {
            position: fixed; left: 0; top: 0; width: 260px;
            display: none; flex-direction: column; gap: 6px;
            background: rgba(255,255,255,0.97); backdrop-filter: blur(5px);
            border: 2px solid var(--border-color); border-radius: 16px;
            padding: 6px 8px 8px 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 150; box-sizing: border-box; max-width: 96vw;
            font-size: 14px; color: #444;
        }
        .text-panel-handle {
            display: flex; justify-content: space-between; align-items: center;
            background: var(--primary-accent); color: #fff; font-weight: bold; font-size: 13px;
            border-radius: 10px; padding: 5px 8px; cursor: grab;
            touch-action: none; user-select: none; -webkit-user-select: none;
        }
        .text-panel-handle:active { cursor: grabbing; }
        .panel-close {
            background: rgba(255,255,255,0.3); border: none; color: #fff; font-weight: bold;
            border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px; line-height: 1; padding: 0;
        }
        .text-panel-row { display: flex; align-items: center; gap: 6px; }
        .text-panel label { font-weight: bold; color: var(--primary-accent); white-space: nowrap; }
        .text-panel select.btn { width: 100%; min-width: 0; }
        .text-panel input[type="color"] {
            width: 34px; height: 30px; padding: 0; border: 2px solid var(--border-color);
            border-radius: 8px; background: #fff; cursor: pointer;
        }
        .text-panel input[type="number"] { width: 58px; text-align: center; }

        .flap-layer {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 20; overflow: hidden; pointer-events: none;
            border-radius: 15px 22px 22px 15px;
        }
        .flap { position: absolute; top: 0; bottom: 0; display: none; box-sizing: border-box;
            box-shadow: inset 0 4px 0 #fff, inset 0 -4px 0 #fff; }
        .flap.dir-next { border-radius: 22px 0 0 22px; filter: drop-shadow(-6px 0 8px rgba(0,0,0,.28)); }
        .flap.dir-next.page-back  { background: var(--curl-shade-next), var(--page-bg); }
        .flap.dir-next.cover-back { background: var(--curl-shade-next), linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)), var(--cover-bg); }
        .flap.dir-prev { border-radius: 0 15px 15px 0; filter: drop-shadow(6px 0 8px rgba(0,0,0,.28)); }
        .flap.dir-prev.page-back  { background: var(--curl-shade-prev), var(--page-bg); }

        .under-shadow { position: absolute; top: 0; bottom: 0; display: none; pointer-events: none; z-index: 50; }
        .under-shadow.dir-next { background: linear-gradient(to right, rgba(0,0,0,.38), rgba(0,0,0,0)); }
        .under-shadow.dir-prev { background: linear-gradient(to left,  rgba(0,0,0,.38), rgba(0,0,0,0)); }

        .modal {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            /* 뒤 화면을 어둡게 하지 않아요 (스킨 색을 그대로 확인할 수 있게) · 창 밖을 눌러도 뒤의 다이어리는 눌리지 않음 */
            background: transparent; display: none; justify-content: center; align-items: center; z-index: 1000;
        }
        .modal-content {
            background: #fff; padding: 20px; border-radius: 20px; width: 90%; max-width: 420px;
            border: 2px solid var(--border-color);
            box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.12); max-height: 80vh; display: flex; flex-direction: column;
            overflow-y: auto;
        }
        .modal-title { font-size: 1.4rem; color: var(--primary-accent); margin-bottom: 12px; text-align: center; }

        /* 다이어리 중앙 전용 알림 모달 */
        #customAlertModal { z-index: 3000; }
        .alert-card {
            background: #fff; border: 3px solid var(--border-color); border-radius: 20px;
            padding: 20px 18px; width: min(85vw, 340px); text-align: center;
            box-shadow: 0 12px 30px rgba(0,0,0,0.25); animation: popIn 0.2s ease-out;
        }
        @keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
        .alert-msg { font-size: 15px; color: #444; margin-bottom: 18px; line-height: 1.5; word-break: keep-all; }
        .alert-btns { display: flex; gap: 8px; justify-content: center; }

        .sticker-categories {
            display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px;
            border-bottom: 1px solid #eee; scrollbar-width: none;
        }
        .sticker-categories::-webkit-scrollbar { display: none; }
        @media (hover: hover) and (pointer: fine) { .sticker-categories { flex-wrap: wrap; overflow-x: visible; } }
        .cat-btn {
            padding: 4px 8px; font-size: 12px; border-radius: 10px; border: 1px solid var(--border-color);
            background: #fff; cursor: pointer; white-space: nowrap; font-family: inherit;
        }
        .cat-btn.active { background: var(--primary-accent); color: #fff; border-color: var(--primary-accent); }

        .sticker-grid {
            display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
            overflow-y: auto; max-height: 320px; padding: 4px;
        }
        .sticker-item { font-size: 1.8rem; text-align: center; cursor: pointer; padding: 4px; border-radius: 8px; }
        .sticker-item:hover { background: #ffe6f0; transform: scale(1.15); transition: transform 0.1s; }

        .form-group { margin-bottom: 12px; }
        .form-group label { display: block; font-size: 14px; margin-bottom: 4px; color: #555; }
        .color-picker-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .color-picker-row input[type="color"] { cursor: pointer; border: none; background: none; width: 32px; height: 32px; }

        .element-box img.broken { min-width: 60px; min-height: 40px; background: #ffe3e3; border: 1px dashed var(--primary-accent); font-size: 11px; color: #a33; word-break: break-all; }
        /* 📚 이미지 라이브러리 : 페이지 넘기기 + 행·열·크기 설정 */
        .lib-content { max-width: min(95vw, var(--lib-w, 520px)); min-width: min(90vw, 320px); }
        .lib-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
        .lib-pager .btn { padding: 5px 12px; }
        .lib-page-info { flex: 1; text-align: center; font-weight: bold; font-size: 16px; color: var(--primary-accent); font-variant-numeric: tabular-nums; }
        .lib-content .btn:disabled { opacity: .4; cursor: default; }
        .lib-content .btn:disabled:hover { background: #fff; color: #444; }
        .lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
        .lib-status { font-size: 13px; color: #666; min-width: 0; }
        .lib-layout-btn { flex-shrink: 0; font-size: 13px; padding: 3px 10px; }
        .lib-layout-btn.on { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        .lib-layout {
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
            background: #fff0f5; border: 1px dashed var(--border-color); border-radius: 12px;
            padding: 8px 10px; margin-bottom: 8px; font-size: 13px; color: #555;
        }
        .lib-layout label { display: flex; align-items: center; gap: 4px; }
        .lib-layout select.btn { padding: 2px 6px; font-size: 13px; }
        .lib-layout .btn { font-size: 12px; padding: 3px 8px; }
        .layout-sum { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #888; }
        .layout-mini { display: inline-grid; gap: 1px; }
        .layout-mini i { width: 5px; height: 5px; border-radius: 1px; background: var(--primary-accent); opacity: .75; }
        .lib-size-label { flex: 1; min-width: 150px; }
        .lib-size-label input[type="range"] { flex: 1; min-width: 60px; accent-color: var(--primary-accent); }
        .lib-size-val { width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
        .lib-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 88px)); justify-content: center; gap: 8px; overflow-y: auto; max-height: 60vh; padding: 4px; touch-action: pan-y; }
        .lib-item.empty { visibility: hidden; pointer-events: none; }
        .lib-item { aspect-ratio: 1 / 1; border: 2px solid var(--border-color); border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
            background: repeating-conic-gradient(#f4f4f4 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
        .lib-item:hover { border-color: var(--primary-accent); transform: scale(1.04); transition: transform .1s; }
        .lib-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
        .lib-item.bad::after { content: '⚠'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #ffe3e3; }
        .lib-num { position: absolute; left: 4px; top: 2px; font-size: 11px; background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 4px; z-index: 1; }
        .toast { display: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(50,50,50,.92); color: #fff;
            padding: 10px 16px; border-radius: 14px; font-size: 14px; z-index: 2000; max-width: 90vw; text-align: center; }

        /* ☁ 구글 드라이브 연결 화면 / 상태 배지 */
        .drive-gate { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-color);
            display: none; justify-content: center; align-items: center; z-index: 2500; }
        .gate-card { display: flex; flex-direction: column; align-items: center; gap: 14px; }
        .gate-title { font-size: 1.4rem; font-weight: bold; color: var(--primary-accent); }
        .gate-msg { font-size: 14px; color: #555; line-height: 1.7; }
        .gate-btn { justify-content: center; width: 100%; padding: 10px 12px; }
        .gate-guest { background: none; border: none; color: #888; font-size: 12px; text-decoration: underline; cursor: pointer; font-family: inherit; }
        /* 아래 상태 줄 (드라이브 저장 표시 · 배경음악 막대) : PC 는 화면 아래 양쪽 구석에 떠 있어요 */
        .status-dock { position: fixed; left: 10px; right: 12px; bottom: 10px; z-index: 1500; display: flex; align-items: center; gap: 8px; pointer-events: none; }
        .status-dock > * { pointer-events: auto; }
        .drive-badge { display: none; max-width: 70vw; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            padding: 5px 10px; border-radius: 12px; font-size: 12px; background: rgba(255,255,255,.92);
            border: 2px solid var(--border-color); color: #555; cursor: pointer; font-family: var(--font-family); }
        .drive-badge.warn { border-color: #e57373; color: #c62828; }

        /* 💌 건의함 모달 (설정 모달 위에 겹쳐서 표시) */
        #feedbackModal { z-index: 1100; }
        .feedback-notice { font-size: 14px; color: #555; text-align: center; margin: 0 0 12px; line-height: 1.5; word-break: keep-all; }
        .feedback-input {
            display: block; width: 100%; box-sizing: border-box;
            height: clamp(160px, 34vh, 280px); min-height: 120px;
            padding: 12px; border: 2px solid var(--border-color); border-radius: 12px;
            background: #fff0f5; color: #444; font-family: inherit; font-size: 15px; line-height: 1.6;
            resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s;
        }
        .feedback-input::placeholder { color: #b9a0a8; }
        .feedback-input:focus { border-color: var(--primary-accent); box-shadow: 0 0 0 3px rgba(255,107,129,.18); }
        .feedback-count { font-size: 12px; color: #999; text-align: right; margin: 4px 2px 0; }
        .feedback-btns { display: flex; gap: 8px; margin-top: 14px; }
        .feedback-btns .btn { flex: 1; justify-content: center; padding: 8px 10px; }
        .feedback-btns .btn-primary { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        .feedback-btns .btn-primary:hover { filter: brightness(1.08); }
        .feedback-btns .btn:disabled { opacity: .55; cursor: default; }
        /* 💌 전송 중… 창 */
        .sending-overlay { position: fixed; inset: 0; z-index: 2900; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.35); }
        .sending-overlay[hidden] { display: none; }
        .sending-card { background: #fff; border: 3px solid var(--border-color); border-radius: 20px; padding: 22px 20px 18px; width: min(85vw, 300px);
            text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.22); animation: popIn .2s ease-out; }
        .sending-spinner { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; border: 5px solid var(--border-color); border-top-color: var(--primary-accent); animation: sendSpin .9s linear infinite; }
        @keyframes sendSpin { to { transform: rotate(360deg); } }
        .sending-title { font-size: 1.15rem; font-weight: bold; color: var(--primary-accent); }
        .sending-sec { font-size: 13px; color: #999; margin-top: 2px; font-variant-numeric: tabular-nums; }
        .sending-msg { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.55; word-break: keep-all; }
        .sending-card.fail { border-color: #ef9a9a; }
        .sending-card.fail .sending-title { color: #e53935; }
        .sending-close { margin-top: 14px; width: 100%; justify-content: center; padding: 8px 10px; }
        .sending-close[hidden] { display: none; }
        @media (prefers-reduced-motion: reduce) { .sending-spinner { animation-duration: 2.5s; } }
        .feedback-input:disabled { opacity: .7; }

        /* ☕ 카페 모달 */
        .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .service-btn { flex-direction: column; justify-content: center; gap: 4px; padding: 12px 4px; font-size: 13px; }
        .service-icon { font-size: 1.7rem; line-height: 1; }

        /* 📢 겉표지 공지 이미지 (jpg · png · webp · 움직이는 gif 모두 가능) */
        .cover-notice {
            width: 80%; flex: 0 1 auto; min-height: 0; max-height: 42%;
            margin: 14px 0 0; display: flex; align-items: center; justify-content: center;
        }
        .cover-notice img {
            max-width: 100%; max-height: 100%; object-fit: contain; display: block;
            border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            pointer-events: none; user-select: none; -webkit-user-drag: none;
        }
        .cover-notice.empty { display: none; }

        /* 🐷 저금통 선물 : 저금해 준 사람에게만 보여요 (js/settings.js setSaver) */
        body:not(.saver) .saver-only { display: none !important; }

        /* 🎨 전체 배경 패턴 레이어 : 패턴을 쓰면 body 배경을 비우고 이 레이어가 보여요 */
        .bg-pattern-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
        html.bg-pattern-on .bg-pattern-layer { display: block; }
        html.bg-pattern-on body { background-color: transparent; }
        .bg-pattern-inner {
            position: absolute; left: 0; top: 0;
            width: calc(100% / var(--pat-s, 1)); height: calc(100% / var(--pat-s, 1));
            transform: scale(var(--pat-s, 1)); transform-origin: 0 0;
        }

        /* 👗 스킨 하위 창 공통 버튼 줄 (← 스킨 메뉴 / 닫기) */
        .sub-modal-btns { display: flex; gap: 8px; margin-top: 15px; flex-shrink: 0; }
        .sub-modal-btns .btn { flex: 1; justify-content: center; }
        .skin-pattern-note {
            display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
            background: #fff0f5; border: 1px dashed var(--border-color); border-radius: 12px;
            padding: 8px 10px; font-size: 13px; color: #555; line-height: 1.4;
        }
        .skin-pattern-note .btn { flex-shrink: 0; font-size: 12px; padding: 3px 8px; }

        /* ☁️ 말랑 / 🍬 달콤 패턴 목록 */
        .pat-content { max-width: min(95vw, var(--pat-w, 420px)); min-width: min(90vw, 340px); }
        .pat-content .btn:disabled { opacity: .4; cursor: default; }
        .pat-content .btn:disabled:hover { background: #fff; color: #444; }
        .pat-current-box {
            display: grid; gap: 6px; margin-bottom: 8px; padding: 8px 10px;
            border: 2px solid var(--border-color); border-radius: 12px; font-size: 13px; color: #555;
        }
        .pat-current-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .pat-current-row b { color: var(--primary-accent); }
        .pat-current-row input[type="range"] { flex: 1; min-width: 80px; accent-color: var(--primary-accent); }
        .pat-current-row .btn { font-size: 12px; padding: 3px 8px; }
        .pat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 100px)); justify-content: center; gap: 10px; overflow-y: auto; max-height: 55vh; padding: 4px; touch-action: pan-y; }
        .pat-item {
            display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: none;
            cursor: pointer; font-family: inherit; min-width: 0;
        }
        .pat-swatch {
            position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
            border: 2px solid var(--border-color); transition: transform .1s;
        }
        .pat-item:hover .pat-swatch { border-color: var(--primary-accent); transform: scale(1.04); }
        .pat-item.sel .pat-swatch { border: 3px solid var(--primary-accent); box-shadow: 0 0 0 3px rgba(255,107,129,.2); }
        .pat-swatch-inner { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
        .pat-badge { position: absolute; right: 4px; top: 3px; font-size: 13px; }
        .pat-check {
            position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); white-space: nowrap;
            background: var(--primary-accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px;
        }
        .pat-name { font-size: 12px; color: #444; text-align: center; line-height: 1.3; word-break: keep-all; }
        .pat-item.empty { visibility: hidden; pointer-events: none; }

        /* 👗 스킨 메뉴 구역 */
        .skin-basic-btn { width: 100%; justify-content: center; padding: 10px; font-size: 15px; }
        .skin-basic-btn small { font-weight: normal; color: #888; }
        .skin-section-title { font-size: 13px; font-weight: bold; color: var(--primary-accent); margin: 14px 0 6px; }
        .service-btn small { font-size: 10.5px; font-weight: normal; color: #999; line-height: 1.2; }
        .pat-by { font-size: 10.5px; color: #999; text-align: center; margin-top: -3px; }
        .pat-item-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
        .pat-actions { display: flex; gap: 4px; justify-content: center; }
        .pat-actions .btn { padding: 1px 8px; font-size: 13px; }

        /* ✏️ 패턴 만들기 */
        .maker-content { max-width: 520px; }
        .maker-preview {
            position: relative; flex-shrink: 0; height: 150px; border-radius: 14px; margin-bottom: 10px;
            border: 3px solid var(--border-color); box-shadow: inset 0 0 0 3px #fff;
        }
        .maker-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #aaa; }
        .maker-section { font-size: 13px; color: #555; }
        .maker-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; font-size: 13px; color: #555; }
        .maker-row > label { flex-shrink: 0; min-width: 56px; }
        .maker-row input[type="range"] { flex: 1; min-width: 90px; accent-color: var(--primary-accent); }
        .maker-row input[type="color"] { width: 36px; height: 30px; padding: 0; border: 2px solid var(--border-color); border-radius: 8px; background: #fff; cursor: pointer; }
        .maker-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-accent); }
        .maker-row select.btn { padding: 3px 6px; font-size: 13px; }
        .maker-val { width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: #777; }
        .maker-file { font-size: 12px; color: #888; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
        .maker-seg { display: flex; gap: 4px; flex-wrap: wrap; }
        .maker-tip { font-size: 12px; color: #888; margin: 4px 0 8px; line-height: 1.5; }
        .maker-tip-inline { font-size: 11.5px; color: #999; }
        .maker-actions { border-top: 1px dashed var(--border-color); padding-top: 10px; margin-top: 4px; }
        .maker-name { flex: 1; min-width: 0; text-align: left; font-weight: normal; }
        .maker-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
        .maker-btns .btn { justify-content: center; padding: 7px 6px; font-size: 13px; }
        .maker-btns .btn-primary { grid-column: 1 / -1; background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        #weaveKinds { margin-bottom: 10px; }

        /* 🖌 그림판 */
        .draw-wrap { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
        .draw-board-box {
            flex-shrink: 0; width: min(200px, 60vw); aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
            border: 2px dashed var(--primary-accent); position: relative;
        }
        .draw-board { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
        .draw-tools { flex: 1; min-width: 220px; }
        .draw-stamps { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 8px; }
        .draw-stamps .cat-btn { font-size: 16px; padding: 2px 6px; }

        @media (max-width: 480px) { .draw-board-box { margin: 0 auto; } }

        /* 👧 내 인형들 */
        .doll-picker { max-width: 560px; }
        .doll-picker-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
        .doll-picker-top .btn { flex: 1; justify-content: center; padding: 8px 10px; }
        .doll-picker .btn-primary, .dr-foot .btn-primary, .dr-done-btns .btn-primary { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        .doll-draft { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: #fff0f5; border: 1px dashed var(--border-color); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; color: #555; }
        .doll-draft span { flex: 1; min-width: 160px; }
        .doll-draft .btn { font-size: 12px; padding: 3px 9px; }
        .doll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; overflow-y: auto; max-height: 55vh; padding: 2px; }
        .doll-card { border: 2px solid var(--border-color); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
        .doll-card img { width: 100%; aspect-ratio: 300 / 470; object-fit: cover; display: block; }
        .doll-card-name { font-size: 13px; font-weight: bold; text-align: center; padding: 6px 6px 2px; color: #444; word-break: keep-all; }
        .doll-card-acts { display: flex; gap: 4px; justify-content: center; padding: 4px 6px 8px; flex-wrap: wrap; }
        .doll-card-acts .btn { font-size: 12px; padding: 2px 8px; }
        .doll-empty { grid-column: 1 / -1; text-align: center; color: #888; padding: 26px 10px; line-height: 1.7; }

        /* 🧸 인형방 (화면 전체) */
        .doll-room { position: fixed; inset: 0; z-index: 1600; background: #fff7f9; display: flex; flex-direction: column; font-family: var(--font-family); color: #444;
            padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); user-select: none; -webkit-user-select: none; }
        .dr-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 2px solid var(--border-color); background: #fff; flex-wrap: wrap; }
        .dr-title { font-size: 1.15rem; color: var(--primary-accent); }
        .dr-stats { font-size: 12.5px; color: #888; flex: 1; min-width: 160px; font-variant-numeric: tabular-nums; }
        .dr-head-btns { display: flex; gap: 6px; }
        .dr-head-btns .btn { font-size: 13px; padding: 4px 10px; }
        .dr-steps { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #fff; border-bottom: 1px dashed var(--border-color); scrollbar-width: thin; }
        .dr-step { flex-shrink: 0; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--border-color); background: #fff; color: #777; cursor: pointer; }
        .dr-step.passed { color: var(--primary-accent); }
        .dr-step.on { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; font-weight: bold; }
        .dr-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 10px; padding: 10px 12px; }
        @media (max-width: 760px) { .dr-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(240px, 46%) minmax(0, 1fr); } }
        .dr-stage-col { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
        .dr-stage { flex: 1; min-height: 0; overflow: auto; border-radius: 18px; border: 3px solid var(--border-color); background: #fff; display: flex; }
        .dr-stage-inner { position: relative; flex-shrink: 0; aspect-ratio: 300 / 470; margin: auto; }
        #drDoll { position: absolute; inset: 0; }
        #drDoll svg { width: 100%; height: 100%; display: block; }
        #drDoll svg.pick [data-li] { cursor: pointer; }
        #drOverlay { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
        #drOverlay .dr-handle { pointer-events: all; cursor: grab; }
        .dr-zoom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #777; }
        .dr-zoom .btn { padding: 2px 12px; font-size: 15px; }
        .dr-hint { flex: 1; min-width: 160px; font-size: 12px; color: #999; }
        .dr-panel { min-height: 0; overflow-y: auto; background: #fff; border: 2px solid var(--border-color); border-radius: 18px; padding: 12px; }
        .dr-intro { margin: 0 0 10px; font-size: 13.5px; color: #555; line-height: 1.6; }
        .dr-mode { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
        .dr-mode .chip { flex: 1; justify-content: center; }
        .dr-group { margin-bottom: 12px; }
        .dr-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--primary-accent); }
        .dr-note { font-size: 12px; color: #999; margin: 6px 0 0; line-height: 1.5; }
        .doll-room .chips, #dollQuick .chips { display: flex; gap: 5px; flex-wrap: wrap; }
        .doll-room .chip, #dollQuick .chip { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--border-color); background: #fff; color: #555; cursor: pointer; display: inline-flex; align-items: center; }
        .doll-room .chip.on, #dollQuick .chip.on { background: #fff0f5; border-color: var(--primary-accent); color: var(--primary-accent); font-weight: bold; }
        .doll-room .swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
        .doll-room .sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border-color); cursor: pointer; }
        .doll-room .sw.on { box-shadow: 0 0 0 3px var(--primary-accent); }
        .doll-room .swatches input[type=color] { width: 32px; height: 32px; padding: 0; border: 2px dashed var(--border-color); border-radius: 50%; background: none; cursor: pointer; }
        .doll-room .range { display: flex; align-items: center; gap: 8px; }
        .doll-room .range input { flex: 1; min-width: 0; accent-color: var(--primary-accent); }
        .doll-room .range span { width: 44px; text-align: right; font-size: 12px; color: #888; font-variant-numeric: tabular-nums; }
        .dr-layers { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
        .dr-layer { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; text-align: left; padding: 4px 8px; border-radius: 10px; border: 1.5px solid #eee; background: #fff; cursor: pointer; }
        .dr-layer.on { border-color: #3d8bff; background: #eef5ff; }
        .dr-layer i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }
        .dr-layer small { color: #aaa; margin-left: auto; }
        .dr-text { width: 100%; text-align: left; font-weight: normal; }
        .dr-record { margin: 0; font-size: 13px; color: #555; }
        .dr-done-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
        .dr-done-btns .btn { justify-content: center; font-size: 13px; padding: 7px 6px; }
        .dr-done-btns .btn-primary { grid-column: 1 / -1; }
        .dr-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #666; margin-bottom: 10px; }
        .dr-card { width: 100%; max-width: 260px; display: block; margin: 0 auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
        .dr-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; background: #fff; border-top: 2px solid var(--border-color); }
        .dr-foot .btn { padding: 7px 16px; }
        .dr-foot .btn:disabled { opacity: .4; cursor: default; }
        .dq-preview { display: block; width: 120px; margin: 0 auto 10px; border-radius: 12px; border: 2px solid var(--border-color); }
        #dollQuick .dr-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--primary-accent); }
        .doll-where { margin: 0 0 10px; font-size: 12px; color: #999; }

        /* 💾 저장 방법 고르기 */
        .save-chooser { max-width: 400px; }
        .save-choice { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; font-weight: normal; }
        .save-choice:hover { background: #fff0f5; color: #444; border-color: var(--primary-accent); }
        .save-choice-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
        .save-choice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
        .save-choice-text b { font-size: 15px; color: #333; }
        .save-choice-text small { font-size: 12px; color: #777; line-height: 1.45; }
        .save-chooser-note { font-size: 12px; color: #999; text-align: center; margin: 2px 0 10px; }

        /* ===== 👗 스킨 창 : 원래 크기의 2/3 · 제목을 끌어 옮기기 · 👀 꾹 눌러 보기 ===== */
        .modal-content.skin-compact {
            width: 66%; max-width: 280px; max-height: 54vh; padding: 12px 13px; border-radius: 16px; font-size: 12.5px;
            transition: opacity .15s;
        }
        .skin-compact .modal-title { font-size: 1.05rem; margin-bottom: 6px; }
        .skin-compact .modal-title.skin-sub-title { font-size: 0.9rem; margin-bottom: 6px; }
        .skin-compact .drag-title { cursor: move; touch-action: none; user-select: none; -webkit-user-select: none;
            border-bottom: 1px dashed var(--border-color); padding-bottom: 4px; }
        .skin-compact .btn { font-size: 12px; }
        .skin-compact .skin-basic-btn { padding: 6px; font-size: 13px; }
        .skin-compact .skin-section-title { font-size: 12.5px; margin: 10px 0 5px; }
        .skin-compact .service-grid { gap: 5px; }
        .skin-compact .service-btn { padding: 6px 2px; font-size: 11.5px; }
        .skin-compact .service-icon { font-size: 18px; }
        .skin-compact .sub-modal-btns { margin-top: 10px; gap: 6px; }
        .skin-compact .color-picker-row { margin-bottom: 3px; }
        .skin-compact .color-picker-row input[type="color"] { width: 26px; height: 24px; }
        .skin-compact .skin-pattern-note { font-size: 11px; padding: 5px 7px; }
        .skin-compact.peeking { opacity: 0.06; }
        .skin-float-hint { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: #999; margin-bottom: 6px; }
        .skin-peek-btn { flex-shrink: 0; padding: 2px 7px !important; font-size: 11px !important; touch-action: none; user-select: none; -webkit-user-select: none; }
        .skin-label { font-weight: bold; }
        .skin-select-row { display: flex; gap: 5px; margin: 5px 0 8px; }
        .skin-select-row select { flex: 1; min-width: 0; }
        .skin-del-btn { background: #ff4757 !important; color: #fff !important; border: none !important; flex-shrink: 0; }
        .skin-hr { border: 0; border-top: 1px dashed var(--border-color); margin: 8px 0; }
        .skin-name-input { width: 100%; box-sizing: border-box; margin-top: 6px; text-align: left; }
        .skin-compact select.btn, .skin-share-nick input { box-sizing: border-box; }
        .skin-save-btn { width: 100%; margin-top: 6px; justify-content: center; background: var(--primary-accent) !important; color: #fff !important; }
        .skin-share { margin-top: 8px; border: 1px dashed var(--border-color); border-radius: 10px; padding: 5px 7px; }
        .skin-share summary { cursor: pointer; font-weight: bold; font-size: 12px; color: var(--primary-accent); }
        .skin-share-body { display: grid; gap: 5px; margin-top: 6px; }
        .skin-share-target { font-size: 11.5px; }
        .skin-share-nick { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
        .skin-share-nick input { flex: 1; min-width: 0; text-align: left; }
        .skin-share-btns { display: flex; gap: 5px; }
        .skin-share-btns .btn { flex: 1; justify-content: center; padding: 4px 2px; }
        .skin-share-btns .btn:disabled { opacity: .45; cursor: default; }
        .skin-share-note { font-size: 10.5px; color: #888; margin: 0; line-height: 1.45; }

        /* 💾 설정 : 구글 저장공간 게이지 */
        .ls-gauge { height: 14px; border-radius: 8px; background: #f1f1f1; border: 1px solid var(--border-color); overflow: hidden; margin-top: 6px; }
        .ls-gauge-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8fd3a8, #4caf50); transition: width .4s; }
        .ls-gauge-fill.warn { background: linear-gradient(90deg, #ffd27f, #ff9800); }
        .ls-gauge-fill.full { background: linear-gradient(90deg, #ff8a80, #e53935); }
        .ls-warn { font-size: 12px; color: #c62828; background: #fff1f0; border: 1px dashed #ef9a9a; border-radius: 8px; padding: 5px 8px; margin-top: 5px; text-align: left; line-height: 1.5; }

        /* ☕ 카페 : 준비중인 버튼은 살짝 흐리게 */
        .service-btn.soon { opacity: .72; }
        .service-btn.soon small { color: #bbb; }

        /* ⚙ 설정 메뉴 (2×2) */
        .modal-content.settings-menu { max-width: 320px; }
        .settings-grid { grid-template-columns: repeat(2, 1fr); }
        /* 📐 페이지 크기 창 */
        .page-size-row { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
        .page-size-label { width: 44px; flex-shrink: 0; font-weight: bold; }
        .page-size-row input { flex: 1; min-width: 0; text-align: center; box-sizing: border-box; }
        .page-step { flex-shrink: 0; width: 30px; justify-content: center; padding: 3px 0 !important; font-size: 15px !important; }
        .page-size-range { font-size: 10.5px; color: #999; text-align: right; }
        .page-size-info { font-size: 11.5px; color: #777; margin-top: 3px; line-height: 1.4; }

        /* ===== 🎁 랜덤박스 : 캡슐 뽑기 기계 (js/gacha.js · 전체 화면) ===== */
        .gc-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain;
            background: #eaf4fb radial-gradient(#d6e8f5 1.6px, transparent 1.7px) 0 0 / 18px 18px; color: #2b2f3a;
            padding: max(14px, env(safe-area-inset-top)) 16px max(30px, env(safe-area-inset-bottom)); }
        .gc-room.show { display: block; }
        .gc-room [hidden] { display: none !important; }
        .gc-wrap { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; }
        .gc-head { display: flex; align-items: center; gap: 8px; }
        .gc-title { font-size: clamp(1.1rem, 5.2vw, 1.5rem); font-weight: bold; color: #e5483f; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .gc-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 2px solid #d3dde8; border-radius: 999px; padding: 3px 10px 3px 4px; font-weight: bold; font-size: 12px; white-space: nowrap; }
        .gc-coin-ico { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b8, #ffc93c 60%, #d99a0b); display: grid; place-items: center; font-size: 10px; color: #8a5c00; }
        .gc-chip.empty .gc-coin-ico { filter: grayscale(1); opacity: .5; }
        .gc-x { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #d3dde8; background: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }

        .gc-machine { position: relative; width: 100%; max-width: 300px; margin: 4px auto 0; display: grid; justify-items: center; user-select: none; -webkit-user-select: none; }
        .gc-dome { position: relative; width: 250px; height: 230px; max-width: 100%; border-radius: 50% 50% 18px 18px / 58% 58% 18px 18px;
            background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), rgba(255,255,255,.12) 45%, rgba(170,210,240,.18));
            border: 5px solid #c9ced8; border-bottom: 0; overflow: hidden; box-shadow: inset 0 -10px 22px rgba(0,0,0,.08); }
        .gc-dome canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
        .gc-dome::after { content: ''; position: absolute; left: 26px; top: 22px; width: 38px; height: 90px; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); transform: rotate(18deg); pointer-events: none; }
        .gc-dome.mixing { animation: gcShake .12s linear infinite; }
        @keyframes gcShake { 25% { transform: translate(-1.5px, 1px) rotate(-.4deg); } 75% { transform: translate(1.5px, -1px) rotate(.4deg); } }
        .gc-body { position: relative; width: 270px; max-width: 100%; height: 190px; background: linear-gradient(180deg, #e5483f, #b8312b);
            border-radius: 18px 18px 26px 26px; box-shadow: 0 10px 0 #b8312b, 0 18px 24px rgba(0,0,0,.18); }
        .gc-body.flash { animation: gcFlash .5s ease-out; }
        @keyframes gcFlash { 0% { filter: brightness(1.6); } 100% { filter: brightness(1); } }
        .gc-label { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: bold; font-size: 1.1rem; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
        .gc-label small { display: block; font-size: .68rem; letter-spacing: .5px; opacity: .85; font-weight: normal; }
        .gc-slot { position: absolute; left: 30px; top: 70px; width: 62px; height: 76px; border-radius: 12px; background: #c9ced8; box-shadow: inset 0 -4px 0 #8d95a6; display: grid; place-items: center; }
        .gc-slot i { width: 8px; height: 36px; border-radius: 6px; background: #2b2f3a; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
        .gc-slot > span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: #fff; font-weight: bold; }
        .gc-coin { position: absolute; width: 34px; height: 34px; border-radius: 50%; left: 14px; top: -70px; opacity: 0; pointer-events: none;
            background: radial-gradient(circle at 35% 35%, #fff3b8, #ffc93c 60%, #d99a0b); box-shadow: inset 0 -3px 0 #c58a07; display: grid; place-items: center; color: #8a5c00; font-size: 15px; font-weight: bold; }
        .gc-coin.drop { animation: gcCoin .75s cubic-bezier(.5,0,.8,.6) forwards; }
        @keyframes gcCoin { 0% { opacity: 1; transform: translateY(0) rotateY(0); } 60% { opacity: 1; transform: translateY(78px) rotateY(540deg); } 100% { opacity: 0; transform: translateY(98px) rotateY(720deg) scaleX(.15); } }
        .gc-crank { position: absolute; right: 26px; top: 62px; width: 96px; height: 96px; border-radius: 50%; border: 0; padding: 0; cursor: grab; touch-action: none;
            background: radial-gradient(circle, #fff 0 18px, #c9ced8 19px 44px, #8d95a6 45px); box-shadow: 0 4px 0 #8d95a6; }
        .gc-crank:disabled { cursor: not-allowed; filter: saturate(.4) brightness(.92); }
        .gc-bar { position: absolute; left: 50%; top: 50%; width: 82px; height: 22px; margin: -11px 0 0 -41px; border-radius: 12px; background: linear-gradient(#fff, #dfe3ea); box-shadow: 0 2px 0 #8d95a6; transition: transform .18s ease-out; }
        .gc-bar::after { content: ''; position: absolute; right: 4px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #ffc93c; box-shadow: inset 0 -2px 0 #c58a07; }
        .gc-crank.ready { animation: gcGlow 1.1s ease-in-out infinite; }
        @keyframes gcGlow { 50% { box-shadow: 0 4px 0 #8d95a6, 0 0 0 8px rgba(255,201,60,.55); } }
        .gc-crank-hint { position: absolute; right: 18px; top: 162px; width: 112px; text-align: center; color: #fff; font-size: 11px; font-weight: bold; }
        .gc-chute { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 92px; height: 44px; border-radius: 46px 46px 8px 8px; background: #2b2f3a; box-shadow: inset 0 6px 10px rgba(0,0,0,.7); }
        .gc-bulbs { position: absolute; inset: 0; pointer-events: none; }
        .gc-bulb { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--c); opacity: .32; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); transition: opacity .08s, box-shadow .08s; }
        .gc-bulb.on { opacity: 1; box-shadow: 0 0 6px 2px var(--c), 0 0 14px 4px var(--c); background: radial-gradient(circle at 40% 35%, #fff 0 25%, var(--c) 60%); }

        .gc-tray { position: relative; height: 120px; width: 100%; display: grid; place-items: start center; }
        .gc-capsule { --cap: #ff7aa8; position: relative; width: 84px; height: 84px; border: 0; padding: 0; background: none; cursor: pointer; margin-top: 16px; opacity: 0; pointer-events: none; }
        .gc-capsule.show { opacity: 1; pointer-events: auto; }
        .gc-capsule.dropin { animation: gcDrop .9s cubic-bezier(.3,.7,.4,1.2) both; }
        @keyframes gcDrop { 0% { transform: translateY(-90px) scale(.6) rotate(-40deg); } 55% { transform: translateY(0) scale(1.05, .9) rotate(220deg); } 75% { transform: translateY(-14px) rotate(300deg); } 100% { transform: translateY(0) rotate(360deg); } }
        .gc-half { position: absolute; left: 0; width: 84px; height: 42px; overflow: hidden; }
        .gc-top { top: 0; border-radius: 42px 42px 0 0; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.7), transparent 40%), var(--cap); transition: transform .5s cubic-bezier(.2,.8,.3,1.4), opacity .4s; }
        .gc-bot { bottom: 0; border-radius: 0 0 42px 42px; background: linear-gradient(rgba(255,255,255,.55), rgba(220,235,250,.8)); border: 3px solid rgba(255,255,255,.9); border-top: 0; }
        .gc-seam { position: absolute; left: -2px; right: -2px; top: 40px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.18); }
        .gc-leak { position: absolute; left: 4px; right: 4px; top: 38px; height: 8px; border-radius: 8px; background: #fff; opacity: 0; filter: blur(3px); transition: opacity .3s, box-shadow .3s; }
        .gc-capsule.t1 { animation: gcWob1 .45s ease; } .gc-capsule.t2 { animation: gcWob2 .6s ease; } .gc-capsule.t3 { animation: gcWob3 .9s ease; }
        .gc-capsule.t1 .gc-leak { opacity: .35; }
        .gc-capsule.t2 .gc-leak { opacity: .7; box-shadow: 0 0 14px 4px #fff; }
        .gc-capsule.t3 .gc-leak { opacity: 1; box-shadow: 0 0 26px 10px #fff; }
        .gc-capsule.lucky.t3 .gc-leak { background: #ffc93c; box-shadow: 0 0 34px 16px #ffc93c; }
        @keyframes gcWob1 { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
        @keyframes gcWob2 { 20% { transform: rotate(-14deg) scale(1.04); } 50% { transform: rotate(12deg) scale(1.06); } 80% { transform: rotate(-6deg); } }
        @keyframes gcWob3 { 10%,30%,50%,70% { transform: translateX(-4px) rotate(-10deg) scale(1.1); } 20%,40%,60%,80% { transform: translateX(4px) rotate(10deg) scale(1.1); } }
        .gc-capsule.open .gc-top { transform: translate(-46px, -70px) rotate(-120deg); opacity: 0; }
        .gc-capsule.open .gc-bot, .gc-capsule.open .gc-leak, .gc-capsule.open .gc-seam { animation: gcAway .5s .15s forwards; }
        @keyframes gcAway { to { opacity: 0; transform: translateY(10px) scale(.8); } }
        .gc-tap { position: absolute; top: 102px; font-size: 12px; color: #66708a; font-weight: bold; }

        .gc-say { text-align: center; font-size: 1.1rem; font-weight: bold; min-height: 1.6em; white-space: pre-line; word-break: keep-all; font-variant-numeric: tabular-nums; }
        .gc-main { display: block; width: 100%; text-align: center; text-decoration: none; font: inherit; font-weight: bold; font-size: 1.1rem; border-radius: 14px; cursor: pointer;
            background: #ffc93c; border: 2px solid #e0a90f; color: #4a3300; box-shadow: 0 4px 0 #d39b0b; padding: 10px 16px; }
        .gc-main:active { transform: translateY(3px); box-shadow: 0 1px 0 #d39b0b; }
        .gc-main:disabled { opacity: .5; cursor: not-allowed; }
        .gc-room button:focus-visible, .gc-room a:focus-visible { outline: 3px solid #ffc93c; outline-offset: 3px; }
        .gc-result { background: #fff; border: 2px solid #d3dde8; border-radius: 20px; padding: 16px; text-align: center; display: grid; gap: 10px; justify-items: center; }
        .gc-result h3 { margin: 0; font-size: 1.6rem; }
        .gc-result.win { border-color: #ffc93c; box-shadow: 0 0 0 4px rgba(255,201,60,.35); }
        .gc-result.win h3 { color: #ff7a59; }
        .gc-result p { margin: 0; color: #66708a; line-height: 1.5; }
        .gc-prize { width: 200px; max-width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; border: 2px solid #d3dde8; background: #f6f9fc; }
        .gc-prize.video { width: 260px; aspect-ratio: 16 / 10; }
        .gc-small { font-size: 12px; }
        .gc-fortune { background: #eaf4fb; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
        .gc-timer { font-variant-numeric: tabular-nums; font-weight: bold; font-size: 1.15rem; color: #e5483f; }
        .gc-odds { background: #fff; border: 2px solid #d3dde8; border-radius: 16px; padding: 10px 14px; }
        .gc-odds summary { cursor: pointer; font-weight: bold; }
        .gc-odds table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
        .gc-odds td { padding: 6px 4px; border-top: 1px dashed #d3dde8; }
        .gc-odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: bold; }
        .gc-odds p { margin: 8px 0 0; font-size: 12px; color: #66708a; }
        .gc-sound { justify-self: center; border: 2px solid #d3dde8; background: #fff; border-radius: 12px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: bold; cursor: pointer; }
        .gc-burst { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
        @media (prefers-reduced-motion: reduce) {
            .gc-dome.mixing { animation: none; }
            .gc-capsule.dropin, .gc-capsule.t1, .gc-capsule.t2, .gc-capsule.t3, .gc-crank.ready, .gc-coin.drop { animation-duration: .01s !important; }
        }

        /* ===== 🎵 배경음악 (js/bgm.js) ===== */
        .bgm-content { max-width: 440px; }
        .bgm-now { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--page-bg); border: 2px dashed var(--border-color); }
        .bgm-now-t { display: flex; flex-direction: column; min-width: 0; }
        .bgm-now-t b { font-size: 16px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .bgm-now-t small { color: #999; font-size: 12px; }
        .bgm-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; flex-shrink: 0; }
        .bgm-eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--primary-accent); }
        .bgm-eq.on i { animation: bgmEq .9s ease-in-out infinite; }
        .bgm-eq.on i:nth-child(2) { animation-delay: -.3s; }
        .bgm-eq.on i:nth-child(3) { animation-delay: -.6s; }
        @keyframes bgmEq { 0%,100% { height: 4px; } 50% { height: 16px; } }
        .bgm-ctrl { display: flex; justify-content: center; gap: 8px; margin: 12px 0 8px; }
        .bgm-ctrl .btn { width: 44px; height: 44px; justify-content: center; font-size: 18px; padding: 0; border-radius: 50%; }
        .bgm-ctrl .btn.bgm-play { width: 54px; height: 54px; font-size: 22px; background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        .bgm-ctrl .btn.on { background: var(--border-color); color: #fff; }
        .bgm-ctrl #bgmShuffleBtn:not(.on) { opacity: .55; }
        .bgm-opts { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
        .bgm-opts label { display: flex; align-items: center; gap: 6px; flex: 1 1 130px; }
        .bgm-opts input[type="range"] { flex: 1; accent-color: var(--primary-accent); min-width: 0; }
        .bgm-opts select.btn { flex: 1 1 160px; min-width: 0; padding: 6px 8px; }
        .bgm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
        .bgm-tab { border: 2px solid var(--border-color); background: #fff; border-radius: 12px; padding: 7px 4px; font: inherit; font-size: 13px; font-weight: bold; color: #666; cursor: pointer; }
        .bgm-tab.on { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; }
        .bgm-list { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 120px; max-height: 34vh; padding-right: 2px; }
        .bgm-song { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid #f3dce4; background: #fff; border-radius: 12px; padding: 8px 10px; font: inherit; cursor: pointer; }
        .bgm-song:hover { background: var(--page-bg); }
        .bgm-song.on { border-color: var(--primary-accent); background: var(--page-bg); }
        .bgm-song-i { width: 22px; text-align: center; color: var(--primary-accent); flex-shrink: 0; }
        .bgm-song-t { display: flex; flex-direction: column; min-width: 0; }
        .bgm-song-t b { font-size: 14px; color: #444; }
        .bgm-song-t small { font-size: 11px; color: #aaa; }
        .bgm-note { font-size: 12px; color: #999; text-align: center; margin: 10px 0 0; }
        .bgm-mini { margin-left: auto; display: flex; align-items: center; background: #fff; border: 2px solid var(--border-color); border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.15); overflow: hidden; max-width: min(260px, calc(100vw - 24px)); }
        .bgm-mini[hidden] { display: none; }
        .bgm-mini button { border: 0; background: none; font: inherit; cursor: pointer; }
        .bgm-mini-t { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 12px; min-width: 0; font-size: 13px; font-weight: bold; color: #555; }
        .bgm-mini-t span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .bgm-mini-x { padding: 7px 12px 7px 8px; color: var(--primary-accent); font-size: 14px; }
        @media (prefers-reduced-motion: reduce) { .bgm-eq.on i { animation: none; height: 10px; } }
        /* 폰 : 상태 줄을 다이어리 바로 아래 한 줄로 (다이어리를 가리지 않게 · 그만큼 다이어리 높이를 줄여요 → js/page.js refreshLayout) */
        @media (max-width: 600px), (pointer: coarse) and (max-height: 900px) {
            .status-dock { position: static; width: min(92vw, 480px); min-height: 26px; margin-top: 6px; }
            .drive-badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; max-width: 55%; }
            .bgm-mini { max-width: 48%; box-shadow: none; }
            .bgm-mini-t { padding: 3px 4px 3px 9px; font-size: 11px; gap: 6px; }
            .bgm-mini-x { padding: 3px 9px 3px 6px; font-size: 12px; }
            .bgm-mini .bgm-eq { height: 11px; }
        }
        .bgm-seek { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #999; font-variant-numeric: tabular-nums; }
        .bgm-seek input { flex: 1; min-width: 0; accent-color: var(--primary-accent); }
        .bgm-seek input:disabled { opacity: .45; }
        .bgm-song-len { margin-left: auto; padding-left: 6px; font-size: 11px; color: #aaa; font-variant-numeric: tabular-nums; flex-shrink: 0; }
        .bgm-note a { color: var(--primary-accent); }

        /* ===== 🔮 포춘카드 (js/fortune.js) ===== */
        body.fc-lock { overflow: hidden; }
        .fc-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #fff;
            background: linear-gradient(165deg, #2a2160 0%, #4b2f7d 45%, #8a4f9e 78%, #d87fae 100%);
            text-align: center; -webkit-tap-highlight-color: transparent; }
        .fc-room.show { display: block; }
        .fc-room [hidden] { display: none !important; }
        .fc-sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
        .fc-aurora { position: absolute; width: 160vmax; height: 160vmax; left: -30vmax; top: -40vmax; border-radius: 42%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; animation: fcAurora 20s ease-in-out infinite alternate; }
        .fc-aurora.a1 { background: radial-gradient(circle at 30% 35%, rgba(255,160,215,.85), rgba(190,120,255,.45) 35%, transparent 60%); }
        .fc-aurora.a2 { background: radial-gradient(circle at 70% 55%, rgba(140,255,220,.6), rgba(110,190,255,.4) 35%, transparent 60%); animation-duration: 26s; animation-delay: -7s; }
        @keyframes fcAurora { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(14deg) translate(-4%, 6%) scale(1.08); } 100% { transform: rotate(-9deg) translate(4%, -4%) scale(.96); } }
        .fc-stars { position: absolute; inset: 0; opacity: .85; animation: fcTwinkle 4s ease-in-out infinite alternate;
            background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 150px 80px, rgba(255,255,255,.9), transparent),
                radial-gradient(1px 1px at 280px 140px, #fff, transparent), radial-gradient(2.4px 2.4px at 390px 210px, rgba(255,240,250,.85), transparent),
                radial-gradient(1.3px 1.3px at 90px 260px, #fff, transparent); background-size: 440px 320px; }
        .fc-stars.s2 { background-size: 300px 380px; background-position: 120px 60px; animation-delay: -2s; opacity: .55; }
        @keyframes fcTwinkle { from { opacity: .35; } to { opacity: .9; } }
        .fc-x { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
            background: rgba(255,255,255,.15); color: #fff; font-size: 16px; cursor: pointer; backdrop-filter: blur(4px); }
        .fc-wrap { position: relative; z-index: 1; max-width: 560px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center;
            padding: max(60px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .fc-stage { display: flex; flex-direction: column; align-items: center; animation: fcIn .8s ease both; }
        @keyframes fcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
        .fc-orb { font-size: 74px; filter: drop-shadow(0 0 22px rgba(255,190,240,.85)); animation: fcFloat 3.2s ease-in-out infinite; }
        @keyframes fcFloat { 50% { transform: translateY(-10px); } }
        .fc-title { margin: 14px 0 8px; font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -1px; text-shadow: 0 2px 12px rgba(40,10,70,.5); }
        .fc-sub { margin: 0 0 28px; font-size: 14px; color: rgba(255,255,255,.78); word-break: keep-all; }
        .fc-btn { border: 0; border-radius: 999px; padding: 14px 32px; font: inherit; font-size: 17px; font-weight: bold; cursor: pointer;
            background: rgba(255,255,255,.93); color: #5a2f86; box-shadow: 0 6px 20px rgba(30,10,60,.35); transition: transform .15s, background .2s; }
        .fc-btn:hover { background: #fff; transform: translateY(-2px); }
        .fc-btn:active { transform: translateY(1px); }
        .fc-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); box-shadow: none; }
        .fc-say { min-height: 3.4em; margin: 0 0 22px; font-size: clamp(1.2rem, 5.6vw, 1.6rem); line-height: 1.7; white-space: pre-line; word-break: keep-all;
            text-shadow: 0 2px 10px rgba(40,10,70,.5); opacity: 0; transition: opacity .8s ease; cursor: pointer; }
        .fc-say.on { opacity: 1; }
        .fc-hint { font-size: 13px; color: rgba(255,255,255,.7); min-height: 1em; }
        /* 펼친 카드 부채 */
        .fc-fan { position: relative; width: 100%; height: 230px; }
        .fc-mini { --i: 0; position: absolute; left: 50%; bottom: 10px; width: 78px; height: 132px; margin-left: -39px; padding: 0; border-radius: 10px; cursor: pointer;
            border: 2px solid rgba(255,225,160,.85); color: #ffe7a8; font-size: 26px; transform-origin: 50% 160%;
            background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 18%, transparent 19%), repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(255,215,140,.18) 9px 10px), linear-gradient(160deg, #6a3fa3, #c35f9c);
            box-shadow: 0 6px 16px rgba(20,0,40,.4); opacity: 0; transform: translateY(40px) rotate(0);
            transition: transform .6s cubic-bezier(.2,.8,.3,1.2), opacity .5s, box-shadow .2s; transition-delay: calc((var(--i) + 3) * 60ms); }
        .fc-fan.on .fc-mini { opacity: 1; transform: rotate(calc(var(--i) * 11deg)); animation: fcBob 3s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
        .fc-fan.on .fc-mini:hover { box-shadow: 0 0 22px rgba(255,220,250,.9); transform: rotate(calc(var(--i) * 11deg)) translateY(-14px); }
        @keyframes fcBob { 50% { translate: 0 -5px; } }
        .fc-fan.picked .fc-mini { opacity: 0; transition-delay: 0s; pointer-events: none; }
        .fc-fan.picked .fc-mini.chosen { opacity: 1; transform: translateY(-40px) scale(1.25); box-shadow: 0 0 34px rgba(255,220,250,1); animation: none; }
        .fc-mini span { pointer-events: none; }
        /* 뒤집히는 큰 카드 */
        .fc-card-3d { --ratio: .58; position: relative; height: min(52vh, 430px); aspect-ratio: var(--ratio); max-width: 86vw; perspective: 1200px; transform-style: preserve-3d; margin-bottom: 20px; }
        .fc-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
            transition: transform 1.1s cubic-bezier(.3,.7,.2,1); box-shadow: 0 16px 40px rgba(20,0,40,.5); }
        .fc-back { display: grid; place-items: center; font-size: 56px; border: 3px solid rgba(255,225,160,.9); color: #ffe7a8;
            background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.2) 0 16%, transparent 17%), repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(255,215,140,.18) 14px 15px), linear-gradient(160deg, #6a3fa3, #c35f9c); }
        .fc-front { transform: rotateY(180deg); background: #fff; }
        .fc-front img { width: 100%; height: 100%; object-fit: contain; display: block; }
        .fc-card-3d.flip .fc-back { transform: rotateY(-180deg); }
        .fc-card-3d.flip .fc-front { transform: rotateY(0); }
        .fc-card-3d.broken .fc-front { background: linear-gradient(160deg, #6a3fa3, #c35f9c); }
        .fc-card-3d.glow:not(.flip) .fc-back { animation: fcGlow 1.2s ease-in-out infinite; }
        @keyframes fcGlow { 50% { box-shadow: 0 0 46px rgba(255,210,250,.95), 0 16px 40px rgba(20,0,40,.5); } }
        .fc-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: bold; color: #fff; text-shadow: 0 0 22px rgba(255,200,240,.95); pointer-events: none; z-index: 2; }
        .fc-count.pop { animation: fcCount .9s ease; }
        @keyframes fcCount { 0% { opacity: 0; transform: scale(1.3); } 25%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
        .fc-msg { max-width: 30em; margin: 0 0 22px; font-size: clamp(1rem, 4.6vw, 1.2rem); line-height: 1.85; white-space: pre-line; word-break: keep-all;
            text-shadow: 0 1px 6px rgba(40,10,70,.5); opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s ease; }
        .fc-msg.on { opacity: 1; transform: none; }
        .fc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
        .fc-actions.on { opacity: 1; pointer-events: auto; }
        .fc-actions .fc-btn { padding: 12px 22px; font-size: 15px; }
        @media (max-width: 400px) { .fc-mini { width: 64px; height: 110px; margin-left: -32px; font-size: 22px; } .fc-fan { height: 200px; } }
        @media (prefers-reduced-motion: reduce) { .fc-aurora, .fc-stars, .fc-orb, .fc-fan.on .fc-mini { animation: none; } }
        .fc-card-3d.glow .fc-back span { opacity: .25; transition: opacity .4s; }

        /* ===== 🕹️ 말랑 오락실 (js/arcade.js) ===== */
        .ar-room { position: fixed; inset: 0; z-index: 1600; display: none; color: #fff; overflow: hidden;
            background: #160f33 radial-gradient(circle at 50% -10%, #4a2a86 0, transparent 60%);
            font-family: var(--system-font); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
        .ar-room.show { display: block; }
        .ar-room [hidden] { display: none !important; }
        .ar-room::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18;
            background: repeating-linear-gradient(0deg, rgba(255,255,255,.25) 0 1px, transparent 1px 3px); }
        .ar-lobby { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
            padding: max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
        .ar-head { display: flex; align-items: center; gap: 8px; }
        .ar-sign { flex: 1; min-width: 0; display: flex; flex-direction: column; }
        .ar-neon { font-family: "Press Start 2P", monospace; font-size: 10px; color: #7ff3ff; letter-spacing: 2px; text-shadow: 0 0 8px #3fd8ff; }
        .ar-sign b { font-size: clamp(1.3rem, 6vw, 1.7rem); color: #ffd6f0; text-shadow: 0 0 12px #ff5fb0, 0 0 2px #fff; }
        .ar-ibtn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
            color: #fff; font-size: 16px; cursor: pointer; font-family: inherit; }
        .ar-ibtn:active { transform: translateY(1px); }
        .ar-coin { font-family: "Press Start 2P", monospace; font-size: 10px; color: #ffe66b; margin: 14px 0 16px; animation: arBlink 1.1s steps(2) infinite; }
        .ar-coin i { font-style: normal; color: #fff; }
        @keyframes arBlink { 50% { opacity: .35; } }
        .ar-cabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
        .ar-cab { --c: #6c5ce7; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 12px; border-radius: 18px 18px 10px 10px; cursor: pointer;
            border: 2px solid color-mix(in srgb, var(--c) 70%, #fff); color: #fff; text-align: center; font-family: inherit;
            background: linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff) 0, var(--c) 40%, color-mix(in srgb, var(--c) 60%, #000) 100%);
            box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 45%, #000), 0 10px 22px rgba(0,0,0,.4); transition: transform .12s; }
        .ar-cab:hover { transform: translateY(-3px); }
        .ar-cab:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 45%, #000); }
        .ar-cab-scr { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; display: grid; place-items: center; background: #0d0a24; border: 3px solid rgba(0,0,0,.35);
            box-shadow: inset 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
        .ar-cab-ico { font-size: 42px; animation: arBob 2.4s ease-in-out infinite; }
        .ar-cab:nth-child(2n) .ar-cab-ico { animation-delay: -1.2s; }
        @keyframes arBob { 50% { transform: translateY(-5px); } }
        .ar-cab b { font-size: 15px; margin-top: 4px; }
        .ar-cab small { font-size: 11px; line-height: 1.4; opacity: .9; word-break: keep-all; min-height: 2.8em; }
        .ar-cab-best { font-family: "Press Start 2P", monospace; font-size: 8px; color: #ffe66b; background: rgba(0,0,0,.3); border-radius: 6px; padding: 4px 6px; }
        .ar-foot { text-align: center; font-size: 12px; opacity: .6; margin-top: 18px; }
        .ar-play { --c: #6c5ce7; position: relative; height: 100%; display: flex; flex-direction: column; box-sizing: border-box;
            padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
        .ar-bar { display: flex; align-items: center; gap: 6px; max-width: 720px; width: 100%; margin: 0 auto; }
        .ar-bar-t { flex: 1; min-width: 0; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
        .ar-stat { display: flex; flex-direction: column; align-items: flex-end; font-family: "Press Start 2P", monospace; min-width: 48px; }
        .ar-stat small { font-size: 7px; color: #7ff3ff; }
        .ar-stat b { font-size: 11px; color: #ffe66b; margin-top: 3px; font-weight: normal; }
        .ar-lives { color: #ff6b9a; font-size: 14px; letter-spacing: 1px; min-width: 0; }
        .ar-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 0; }
        .ar-screen { position: relative; border-radius: 14px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--c) 70%, #fff);
            box-shadow: 0 0 0 6px #0d0a24, 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); background: #000; }
        .ar-screen canvas { display: block; width: 100%; height: 100%; touch-action: none; }
        .ar-over { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center;
            background: rgba(14,10,36,.72); cursor: pointer; }
        .ar-over.on { display: flex; }
        .ar-ov-ico { font-size: 54px; }
        .ar-ov-t { font-family: "Press Start 2P", monospace; font-size: 18px; color: #ffd6f0; text-shadow: 0 0 10px #ff5fb0; line-height: 1.5; }
        .ar-over p { margin: 0; font-size: 13px; opacity: .9; word-break: keep-all; }
        .ar-ov-score { font-family: "Press Start 2P", monospace; font-size: 28px; color: #ffe66b; }
        .ar-new { font-weight: bold; color: #7ff3ff; animation: arBlink .8s steps(2) infinite; }
        .ar-blink { font-family: "Press Start 2P", monospace; font-size: 11px; color: #ffe66b; animation: arBlink 1s steps(2) infinite; margin-top: 6px; }
        .ar-ov-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
        .ar-btn { border: 0; border-radius: 12px; padding: 11px 16px; font: inherit; font-weight: bold; font-size: 14px; cursor: pointer; background: #ffe66b; color: #3a2a00; box-shadow: 0 4px 0 #b89a1e; }
        .ar-btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.35); }
        .ar-btn:active { transform: translateY(3px); box-shadow: none; }
        .ar-pad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 50px); gap: 6px; justify-content: center; padding-bottom: 4px; }
        .ar-pad button { border-radius: 14px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; touch-action: none; }
        .ar-pad button:active { background: color-mix(in srgb, var(--c) 70%, transparent); }
        .ar-pad [data-d="up"] { grid-column: 2; grid-row: 1; }
        .ar-pad [data-d="left"] { grid-column: 1; grid-row: 2; }
        .ar-pad [data-d="down"] { grid-column: 2; grid-row: 2; }
        .ar-pad [data-d="right"] { grid-column: 3; grid-row: 2; }
        @media (max-width: 380px) { .ar-cabs { grid-template-columns: 1fr 1fr; gap: 10px; } .ar-cab-ico { font-size: 34px; } .ar-stat { min-width: 40px; } }
        @media (prefers-reduced-motion: reduce) { .ar-coin, .ar-cab-ico, .ar-blink, .ar-new { animation: none; } }
        .ar-group { margin: 18px 2px 10px; font-size: 15px; color: #ffd6f0; display: flex; align-items: baseline; gap: 8px; }
        .ar-group small { font-size: 11px; color: #7ff3ff; font-weight: normal; }
        .ar-cab-scr { position: relative; }
        .ar-cab-skill { position: absolute; left: 6px; bottom: 5px; font-size: 10px; background: rgba(255,255,255,.88); color: #4a3a6a; border-radius: 8px; padding: 2px 6px; font-weight: bold; }

        /* ===== 🌙 꿈해몽 (js/dream.js · 포춘카드 밤하늘 화면을 같이 써요) ===== */
        .dm-room { background: linear-gradient(170deg, #141a3d 0%, #2c2560 45%, #5b3d86 80%, #8f5c9e 100%); }
        .dm-wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; box-sizing: border-box;
            padding: max(56px, env(safe-area-inset-top)) 16px max(36px, env(safe-area-inset-bottom)); }
        .dm-stage { display: flex; flex-direction: column; align-items: stretch; gap: 12px; animation: fcIn .6s ease both; }
        .dm-stage .fc-title { margin: 0; text-align: center; }
        .dm-stage .fc-sub { margin: 0 0 4px; text-align: center; }
        .dm-small { font-size: 1.4rem !important; }
        .dm-moon { font-size: 60px; text-align: center; filter: drop-shadow(0 0 20px rgba(255,230,160,.8)); animation: fcFloat 3.4s ease-in-out infinite; }
        .dm-box { position: relative; }
        .dm-box textarea { width: 100%; box-sizing: border-box; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.95);
            color: #3a2f55; padding: 14px 14px 26px; font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; min-height: 130px; text-align: left; }
        .dm-box textarea:focus { outline: 3px solid rgba(255,214,240,.6); }
        .dm-count { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: #9a8ab8; }
        .dm-label { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.85); text-align: center; }
        .dm-moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
        .dm-mood { border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 14px; padding: 8px 2px; font: inherit; font-size: 12px; cursor: pointer;
            display: flex; flex-direction: column; align-items: center; gap: 2px; }
        .dm-mood span { font-size: 22px; }
        .dm-mood.on { background: rgba(255,255,255,.92); color: #5a2f86; border-color: #fff; font-weight: bold; }
        .dm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
        .dm-actions .fc-btn { padding: 12px 22px; font-size: 15px; }
        .dm-note { margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.6); text-align: center; word-break: keep-all; }

        .dm-quote { font-size: 14px; color: rgba(255,255,255,.8); text-align: center; font-style: italic; word-break: keep-all; line-height: 1.6; }

        .dm-cards { display: flex; flex-direction: column; gap: 10px; }
        .dm-card { background: rgba(255,255,255,.95); color: #3a2f55; border-radius: 18px; padding: 14px 16px; text-align: left; box-shadow: 0 8px 22px rgba(20,10,50,.3); }
        .dm-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
        .dm-card-e { font-size: 28px; }
        .dm-card-h b { font-size: 17px; flex: 1; min-width: 0; }
        .dm-tone { font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
        .dm-tone.good { background: #fff1c2; color: #8a5c00; }
        .dm-tone.mix { background: #ece4ff; color: #5a3d9a; }
        .dm-tone.care { background: #dfeaff; color: #2f5a9a; }
        .dm-card p { margin: 0; font-size: 14.5px; line-height: 1.7; word-break: keep-all; }
        .dm-card p + p { margin-top: 6px; }
        .dm-case { color: #7a4a9a; }

        .dm-tip { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); text-align: center; line-height: 1.7; word-break: keep-all; }

        .dm-cat { border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
        .dm-cat.on { background: rgba(255,255,255,.92); color: #5a2f86; font-weight: bold; }
        .dm-search { width: 100%; box-sizing: border-box; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.95); color: #3a2f55; padding: 11px 14px; font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
        .dm-cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
        .dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
        .dm-sym { border: 0; border-radius: 14px; background: rgba(255,255,255,.92); color: #3a2f55; padding: 10px 4px; font: inherit; font-size: 12.5px; font-weight: bold; cursor: pointer;
            display: flex; flex-direction: column; align-items: center; gap: 4px; word-break: keep-all; line-height: 1.3; }
        .dm-sym span { font-size: 26px; }
        .dm-back { align-self: center; }
        @media (prefers-reduced-motion: reduce) { .dm-moon { animation: none; } }
        .dm-letter { background: rgba(255,255,255,.96); color: #3a2f55; border-radius: 22px; padding: 20px 18px; text-align: left; box-shadow: 0 10px 26px rgba(20,10,50,.32); }
        .dm-letter > p { margin: 0 0 12px; font-size: 15px; line-height: 1.8; word-break: keep-all; }
        .dm-letter-h { font-size: 17px; font-weight: bold; color: #6a4a9a; margin-bottom: 10px; }
        .dm-letter .dm-quote { color: #8a7aa8; text-align: left; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid #e6dcff; }
        .dm-part { margin: 0 0 14px; }
        .dm-part b { display: block; font-size: 15px; color: #5a3d8a; margin-bottom: 4px; }
        .dm-part p { margin: 0; font-size: 15px; line-height: 1.8; word-break: keep-all; }
        .dm-sum { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; padding: 12px 14px; margin: 4px 0 14px; background: #f3eeff; }
        .dm-sum.good { background: #fff6dc; }
        .dm-sum.care { background: #e9f1ff; }
        .dm-sum span { font-size: 24px; line-height: 1.2; }
        .dm-sum p { margin: 0; font-size: 15px; line-height: 1.75; font-weight: bold; word-break: keep-all; }
        .dm-letter .dm-luck { margin: 0; font-size: 13px; color: #8a7aa8; }
        .dm-luck b { color: #c0508a; }

        /* ===== 🎍 토정비결 (js/tojeong.js) : 한지 위에 먹과 붉은 도장 ===== */
        .tj-room { --tj-ink: #3b2c22; --tj-red: #b8332a; --tj-paper: #fbf5e9; --tj-line: #e6d6bb;
            position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: var(--tj-ink);
            background: #efe3cc radial-gradient(rgba(150,110,60,.08) 1px, transparent 1.5px) 0 0 / 7px 7px; }
        .tj-room.show { display: block; }
        .tj-room [hidden] { display: none !important; }
        .tj-x { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
            border: 1.5px solid var(--tj-line); background: var(--tj-paper); color: var(--tj-ink); font-size: 16px; cursor: pointer; }
        .tj-wrap { max-width: 560px; margin: 0 auto; box-sizing: border-box; padding: max(56px, env(safe-area-inset-top)) 16px max(36px, env(safe-area-inset-bottom)); }
        .tj-stage { display: flex; flex-direction: column; gap: 12px; animation: fcIn .6s ease both; }
        .tj-seal { align-self: center; width: 64px; height: 64px; border-radius: 12px; background: var(--tj-red); color: #fff3e6; display: grid; place-items: center;
            font-family: 'Nanum Myeongjo', 'Song Myung', serif; font-size: 34px; font-weight: bold; transform: rotate(-4deg); box-shadow: 0 6px 14px rgba(120,30,20,.3); }
        .tj-title { margin: 6px 0 0; text-align: center; font-family: 'Nanum Myeongjo', 'Song Myung', serif; font-size: clamp(1.8rem, 8vw, 2.3rem); letter-spacing: 2px; }
        .tj-sub { margin: 0 0 4px; text-align: center; font-size: 14px; line-height: 1.7; color: #7a6450; }
        .tj-card, .tj-paper { background: var(--tj-paper); border: 1.5px solid var(--tj-line); border-radius: 18px; padding: 18px 16px; box-shadow: 0 8px 22px rgba(90,60,30,.12); }
        .tj-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
        .tj-cal button, .tj-years button { border: 1.5px solid var(--tj-line); background: #fff; color: var(--tj-ink); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; }
        .tj-cal button.on, .tj-years button.on { background: var(--tj-ink); color: var(--tj-paper); border-color: var(--tj-ink); font-weight: bold; }
        .tj-leap { font-size: 14px; display: flex; align-items: center; gap: 4px; }
        .tj-date { margin: 14px 0 4px; gap: 6px; }
        .tj-date label { display: flex; align-items: center; gap: 4px; font-size: 14px; }
        .tj-date select { font: inherit; font-size: 16px; padding: 7px 6px; border-radius: 10px; border: 1.5px solid var(--tj-line); background: #fff; color: var(--tj-ink); }
        .tj-label { margin: 12px 0 6px; text-align: center; font-size: 14px; color: #7a6450; }
        .tj-go { display: block; margin: 16px auto 0; border: 0; border-radius: 999px; padding: 13px 28px; font: inherit; font-size: 16px; font-weight: bold; cursor: pointer;
            background: var(--tj-red); color: #fff; box-shadow: 0 5px 0 #8a2219; }
        .tj-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a2219; }
        .tj-go.ghost { background: #fff; color: var(--tj-ink); box-shadow: 0 5px 0 var(--tj-line); border: 1.5px solid var(--tj-line); }
        .tj-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: #9a8470; word-break: keep-all; }

        .tj-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
        .tj-who b { font-size: 16px; }
        .tj-who small { font-size: 12px; color: #8a7460; }

        .tj-stars { text-align: center; color: #d4a017; font-size: 18px; letter-spacing: 3px; margin-bottom: 10px; }
        .tj-paper > p { margin: 0 0 10px; font-size: 15px; line-height: 1.85; word-break: keep-all; }

        .tj-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .tj-actions .tj-go { margin: 8px 0 0; }
        .dm-pic { display: flex; justify-content: center; margin-bottom: 4px; }
        .dm-pic img { width: min(72vw, 260px); height: auto; border-radius: 20px; box-shadow: 0 14px 34px rgba(10,5,40,.45); animation: dmPic .9s cubic-bezier(.2,.8,.3,1) both; }
        @keyframes dmPic { from { opacity: 0; transform: translateY(16px) rotateY(70deg) scale(.92); } to { opacity: 1; transform: none; } }

        .tj-paper .tj-who { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1.5px dashed var(--tj-line); }
        .tj-key { text-align: center; color: #8a7460; font-size: 14px !important; margin: 4px 0 0 !important; }
        .tj-key b { color: var(--tj-red); font-size: 16px; margin-left: 4px; }

        /* ===== ☕ 카페 카테고리 (1단계 카테고리 → 2단계 놀이) ===== */
        .svc-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .svc-cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px 12px; border-radius: 18px; cursor: pointer; font-family: inherit;
            border: 2px solid var(--border-color); background: linear-gradient(180deg, #fff 0%, var(--page-bg) 100%); color: #444; transition: transform .15s, box-shadow .15s; }
        .svc-cat:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
        .svc-cat:active { transform: translateY(1px); }
        .svc-cat-icon { font-size: 2rem; line-height: 1.1; }
        .svc-cat b { font-size: 15px; }
        .svc-cat small { font-size: 11px; color: #999; }
        .svc-cat i { font-style: normal; font-size: 10.5px; color: var(--primary-accent); line-height: 1.4; margin-top: 4px; word-break: keep-all; opacity: .85; }

        #serviceModal [hidden] { display: none !important; }
        /* 토정비결 할머니가 말해 주는 장면 (그림 + 말풍선) */
        .tj-scene { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 4px; }
        .tj-master { width: 42%; max-width: 190px; flex-shrink: 0; animation: tjPop .7s cubic-bezier(.2,.9,.3,1.2) both; }
        .tj-master img { width: 100%; height: auto; display: block; }
        .tj-bubble { position: relative; flex: 1; min-width: 0; align-self: center; background: #fffaf0; border: 2px solid var(--tj-line); border-radius: 18px; padding: 14px 14px 16px;
            display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: 0 8px 18px rgba(90,60,30,.12); animation: tjPop .7s .25s cubic-bezier(.2,.9,.3,1.2) both; }
        .tj-bubble::before { content: ''; position: absolute; left: -12px; bottom: 26px; border: 10px solid transparent; border-right: 12px solid var(--tj-line); border-left: 0; }
        .tj-bubble::after { content: ''; position: absolute; left: -9px; bottom: 28px; border: 8px solid transparent; border-right: 10px solid #fffaf0; border-left: 0; }
        .tj-bubble small { font-size: 12px; color: #8a7460; word-break: keep-all; }
        .tj-bubble b { font-family: 'Nanum Myeongjo', 'Song Myung', serif; font-size: clamp(.95rem, 4.2vw, 1.15rem); line-height: 1.55; word-break: keep-all; }
        .tj-bubble .tj-stars { margin: 0; font-size: 15px; letter-spacing: 2px; }
        .tj-seal2 { position: absolute; right: -8px; top: -14px; width: 42px; height: 42px; border-radius: 8px; background: var(--tj-red); color: #fff3e6; transform: rotate(6deg);
            display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Nanum Myeongjo', serif; font-weight: bold; font-size: 14px; line-height: 1; }
        .tj-seal2 i { font-style: normal; font-size: 9px; margin-top: 2px; }
        @keyframes tjPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

        /* ===== 창 제목 줄 : ← 제목 ✕ (js/settings.js mtDecorate) ===== */
        .modal-title.mt-bar { display: flex; align-items: center; gap: 8px; }
        .mt-text { flex: 1; min-width: 0; text-align: center; }
        .mt-btn { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border-color); background: #fff; color: #888; padding: 0;
            font: inherit; font-size: 15px; font-weight: bold; line-height: 1; cursor: pointer; display: grid; place-items: center; }
        .mt-btn:hover { background: var(--border-color); color: #fff; }
        .mt-btn.mt-none { visibility: hidden; pointer-events: none; }
        .mt-moved { display: none !important; }
        .svc-extra { padding: 12px 8px; }
        .fc-x.fc-left, .tj-x.tj-back { right: auto; left: 12px; }
        /* 말풍선은 위, 할머니는 아래 (할머니가 말하는 모습) */
        .tj-scene { flex-direction: column; align-items: center; gap: 0; }
        .tj-bubble { width: 100%; box-sizing: border-box; align-self: stretch; padding: 16px 18px 18px; }
        .tj-bubble::before { left: 50%; bottom: -16px; top: auto; margin-left: -12px; border: 12px solid transparent; border-top: 16px solid var(--tj-line); border-bottom: 0; }
        .tj-bubble::after { left: 50%; bottom: -12px; top: auto; margin-left: -10px; border: 10px solid transparent; border-top: 13px solid #fffaf0; border-bottom: 0; }
        .tj-bubble b { font-size: clamp(1.05rem, 4.8vw, 1.25rem); }
        .tj-seal2 { right: auto; left: -8px; top: -14px; transform: rotate(-6deg); }
        .tj-master { width: 46%; max-width: 180px; margin-top: 10px; }
        /* 할머니 아래 말풍선 : 꼬리는 위로 (할머니 쪽) */
        .tj-master { margin: 0 0 14px; }
        .tj-bubble::before { top: -16px; bottom: auto; border: 12px solid transparent; border-bottom: 16px solid var(--tj-line); border-top: 0; }
        .tj-bubble::after { top: -12px; bottom: auto; border: 10px solid transparent; border-bottom: 13px solid #fffaf0; border-top: 0; }

        /* ===== 🌷 화분 키우기 (js/plant.js) ===== */
        .pl-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d2b;
            background: linear-gradient(#fdf1ec, #fbe6dc); }
        .pl-room.show { display: block; }
        .pl-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
            background: rgba(253,241,236,.92); backdrop-filter: blur(6px); }
        .pl-bar b { flex: 1; text-align: center; font-size: 17px; }
        .pl-sp, .pl-x { width: 38px; height: 38px; flex: none; }
        .pl-x { border-radius: 50%; border: 1.5px solid #ecc9b8; background: #fff8f4; color: #5a3d2b; font-size: 16px; cursor: pointer; }
        .pl-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
        .pl-window { position: relative; height: min(62vh, 400px); border-radius: 22px; overflow: hidden; border: 6px solid #fff;
            box-shadow: 0 8px 22px rgba(150,90,60,.18); background: linear-gradient(#bfe6ff, #eaf7ff); transition: background .6s; }
        .pl-room[data-time="eve"] .pl-window { background: linear-gradient(#ffc9a8, #ffe9d6); }
        .pl-room[data-time="night"] .pl-window { background: linear-gradient(#2c3566, #5b5f9a); }
        .pl-sun { position: absolute; top: 18px; left: 20px; width: 46px; height: 46px; border-radius: 50%; background: #ffe066; box-shadow: 0 0 0 10px rgba(255,224,102,.3); }
        .pl-room[data-time="eve"] .pl-sun { background: #ff9f68; box-shadow: 0 0 0 10px rgba(255,159,104,.3); top: 60px; }
        .pl-room[data-time="night"] .pl-sun { background: #fff7d1; box-shadow: -10px 4px 0 0 #2c3566 inset, 0 0 14px rgba(255,247,209,.5); }
        .pl-sill { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #e9c9a5; border-top: 4px solid #d8b083; }
        .pl-pot { position: absolute; left: 50%; bottom: 6%; width: min(92%, 340px); transform: translateX(-50%); }
        .pl-svg { display: block; width: 100%; height: auto; overflow: visible; }
        .pl-grow { transform-origin: 100px 164px; animation: plSway 4s ease-in-out infinite; }
        .pl-dry .pl-grow { animation: none; }
        .pl-grow.pl-pop { animation: plPop .7s ease, plSway 4s ease-in-out .7s infinite; }
        @keyframes plSway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
        @keyframes plPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
        .pl-talk { position: absolute; top: 16px; right: 14px; max-width: 58%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: #fff;
            font-size: 14px; line-height: 1.45; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
        .pl-talk:empty { display: none; }
        .pl-can { position: absolute; right: 18%; top: 22%; font-size: 46px; opacity: 0; transform: rotate(0); pointer-events: none; }
        .pl-pour .pl-can { animation: plCan 1.3s ease both; }
        .pl-pour .pl-window::after { content: ''; position: absolute; left: 48%; top: 34%; width: 40px; height: 30%;
            background: repeating-linear-gradient(transparent 0 8px, rgba(90,170,255,.85) 8px 14px); border-radius: 10px;
            animation: plRain 1.1s linear .25s both; }
        @keyframes plCan { 0% { opacity: 0; transform: translateY(-10px); } 20% { opacity: 1; transform: rotate(-35deg); } 85% { opacity: 1; transform: rotate(-35deg); } 100% { opacity: 0; } }
        @keyframes plRain { 0% { opacity: 0; background-position: 0 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; background-position: 0 60px; } }
        .pl-info { background: #fff8f4; border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 10px rgba(150,90,60,.08); }
        .pl-name { font-size: 15px; }
        .pl-bar2 { height: 10px; margin: 8px 0 6px; border-radius: 6px; background: #f3dcd0; overflow: hidden; }
        .pl-bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #8fd47f, #5bb85a); border-radius: 6px; transition: width .6s; }
        .pl-sub { font-size: 13px; color: #9a7a66; }
        .pl-acts { display: flex; flex-direction: column; gap: 8px; text-align: center; }
        .pl-btn { padding: 14px; border-radius: 14px; border: none; font-size: 16px; font-weight: bold; cursor: pointer; background: #f0e2da; color: #8a6a58; font-family: inherit; }
        .pl-btn.pl-main { background: linear-gradient(#7cc8ff, #4aa8ef); color: #fff; box-shadow: 0 4px 0 #2f86c8; }
        .pl-btn:disabled { cursor: default; box-shadow: none; }
        .pl-msg { margin: 0; font-size: 14px; line-height: 1.6; }
        .pl-msg small { color: #9a7a66; }
        .pl-tip:empty { display: none; }
        .pl-new .pl-how { order: -1; border: 2px solid #b7e0a8; }
        .pl-how, .pl-book { background: #fff8f4; border-radius: 16px; padding: 12px 12px 10px; box-shadow: 0 3px 10px rgba(150,90,60,.08); }
        .pl-how-t, .pl-book-t { font-size: 15px; font-weight: bold; margin-bottom: 8px; }
        .pl-book-t b { margin-left: 4px; padding: 1px 9px; border-radius: 10px; background: #5bb85a; color: #fff; font-size: 13px; }
        .pl-how-steps { display: flex; align-items: flex-start; gap: 2px; }
        .pl-how-steps > div { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
        .pl-how-steps span { font-size: 26px; line-height: 1.2; }
        .pl-how-steps b { font-size: 13px; color: #4f8a45; }
        .pl-how-steps small { font-size: 11px; color: #9a7a66; line-height: 1.35; word-break: keep-all; }
        .pl-how-steps i { font-style: normal; color: #d8b083; font-weight: 900; margin-top: 8px; }
        .pl-how-n, .pl-book-n { margin: 8px 0 0; font-size: 12px; color: #9a7a66; text-align: center; word-break: keep-all; }
        .pl-book-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
        .pl-fr { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 14px; background: #f3e9e3; border: 2px dashed #e4cfc2; }
        .pl-fr span { font-size: 30px; line-height: 1.2; filter: grayscale(1) brightness(1.15); opacity: .35; }
        .pl-fr b { font-size: 12.5px; color: #b8a093; } .pl-fr small { font-size: 11px; color: #b8a093; }
        .pl-fr.on { background: #fff; border: 2px solid #ffd1a8; box-shadow: 0 3px 8px rgba(255,150,100,.15); }
        .pl-fr.on span { filter: none; opacity: 1; } .pl-fr.on b { color: #5a3d2b; } .pl-fr.on small { color: #e2557f; font-weight: bold; }

        /* ===== 📅 출석 도장판 (js/attend.js) ===== */
        .at-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d2b;
            background: #fdf3ec radial-gradient(rgba(230,150,120,.12) 1.5px, transparent 2px) 0 0 / 16px 16px; }
        .at-room.show { display: block; }
        .at-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
            background: rgba(253,243,236,.92); backdrop-filter: blur(6px); }
        .at-bar b { flex: 1; text-align: center; font-size: 17px; }
        .at-sp, .at-x { width: 38px; height: 38px; flex: none; }
        .at-x { border-radius: 50%; border: 1.5px solid #ecc9b8; background: #fff8f4; color: #5a3d2b; font-size: 16px; cursor: pointer; }
        .at-wrap { max-width: 460px; margin: 0 auto; padding: 4px 14px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
        .at-board { background: #fffdf9; border-radius: 20px; padding: 14px 12px 12px; border: 2px dashed #f0c4b0; box-shadow: 0 6px 18px rgba(150,90,60,.12); }
        .at-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
        .at-head b { font-size: 18px; }
        .at-nav { width: 36px; height: 36px; border-radius: 50%; border: none; background: #fbe6dc; color: #8a5a44; font-size: 22px; line-height: 1; cursor: pointer; }
        .at-week, .at-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
        .at-week span { text-align: center; font-size: 12px; color: #a68572; padding-bottom: 2px; }
        .at-week span:first-child { color: #e2667a; } .at-week span:last-child { color: #5c8fd6; }
        .at-cell { position: relative; aspect-ratio: 1; border-radius: 50%; background: #fbeee7; display: grid; place-items: center; }
        .at-cell i { font-style: normal; font-size: 12px; color: #b49482; }
        .at-empty { background: none; }
        .at-fut { background: #fdf6f2; } .at-fut i { opacity: .45; }
        .at-today { box-shadow: 0 0 0 2px #f39a7e inset; } .at-today i { color: #e2667a; font-weight: bold; }
        .at-on i { position: absolute; top: -3px; left: 0; font-size: 9px; opacity: .7; }
        .at-cell em { --c: #e8546e; font-style: normal; width: 88%; height: 88%; border-radius: 50%; display: grid; place-items: center;
            font-size: clamp(15px, 5.2vw, 22px); border: 2.5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #fff);
            box-shadow: 0 0 0 2px #fff inset; transform: rotate(-12deg); }
        .at-pop em { animation: atStamp .55s cubic-bezier(.3,1.6,.5,1) both; }
        @keyframes atStamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(.88) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); } }
        .at-count { margin-top: 10px; text-align: center; font-size: 14px; }
        .at-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .at-stats div { background: #fff8f4; border-radius: 14px; padding: 10px 4px; text-align: center; font-size: 13px; box-shadow: 0 3px 10px rgba(150,90,60,.08); }
        .at-stats small { display: block; color: #a68572; font-size: 12px; margin-bottom: 2px; }
        .at-stats b { font-size: 22px; color: #e2667a; margin-right: 2px; }
        .at-go { padding: 15px; border-radius: 14px; border: none; font-size: 17px; font-weight: bold; cursor: pointer; font-family: inherit;
            background: linear-gradient(#ff9a8b, #f2667a); color: #fff; box-shadow: 0 4px 0 #c94a5c; }
        .at-go:disabled { background: #f0e2da; color: #8a6a58; box-shadow: none; cursor: default; font-size: 15px; }

        /* ===== 📲 앱으로 설치 (js/install.js) ===== */
        .settings-grid .install-btn { grid-column: 1 / -1; background: linear-gradient(#fff0f5, #ffe1ec); border-color: #ff9ab3; }
        .settings-grid .install-btn[hidden] { display: none; }
        .modal-content.ins-content { max-width: 360px; }
        .ins-lead { margin: 4px 0 12px; font-size: 15px; line-height: 1.6; text-align: center; color: #5a3d4a; }
        .ins-steps { margin: 0; padding: 0; list-style: none; counter-reset: ins; display: flex; flex-direction: column; gap: 8px; }
        .ins-steps li { counter-increment: ins; position: relative; padding: 12px 12px 12px 48px; background: #fff7fa; border: 1.5px solid #ffd3e0; border-radius: 14px;
            font-size: 14.5px; line-height: 1.65; text-align: left; word-break: keep-all; }
        .ins-steps li::before { content: counter(ins); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
            background: #ff8fab; color: #fff; font-weight: bold; display: grid; place-items: center; font-size: 14px; }
        .ins-ic { width: 22px; height: 22px; vertical-align: -5px; color: #2f7bf6; background: #eef4ff; border-radius: 6px; padding: 2px; }
        .ins-key { display: inline-block; min-width: 22px; padding: 0 5px; border-radius: 6px; background: #eef0f4; color: #333; text-align: center; font-size: 15px; line-height: 22px; }
        .ins-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: #8a6a78; text-align: left; word-break: keep-all; }
        .ins-go { width: 100%; justify-content: center; font-size: 16px; padding: 12px; background: #ff8fab; color: #fff; border-color: #ff8fab; }

        /* ===== 💡 카페 팁 · 오늘 할 일 표시 ===== */
        .svc-tip { margin: 12px 2px 0; padding: 10px 12px; border-radius: 12px; background: #fff6e8; border: 1px dashed #f3c98b; color: #7a5a3a;
            font-size: 12.5px; line-height: 1.6; text-align: left; word-break: keep-all; }
        .svc-tip b { color: #d9822b; }
        #serviceModal .service-btn, .svc-cat { position: relative; }
        .svc-badge { position: absolute; top: -6px; right: -4px; z-index: 1; font-style: normal; font-size: 10.5px; font-weight: bold; line-height: 1;
            padding: 4px 7px; border-radius: 999px; background: #ff5c7c; color: #fff; box-shadow: 0 2px 6px rgba(255,92,124,.4); white-space: nowrap;
            animation: svcBadge 1.6s ease-in-out infinite; }
        .svc-cat .svc-badge { top: 6px; right: 8px; min-width: 18px; text-align: center; }
        @keyframes svcBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
        .pl-tip, .at-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px dashed #f0bfae;
            font-size: 13px; line-height: 1.6; color: #8a5a44; text-align: left; word-break: keep-all; }

        /* ===== 🎁 출석 스티커 (js/attend.js · js/attend-stickers.js) ===== */
        .at-stk { background: #fffdf9; border-radius: 18px; padding: 12px; border: 2px solid #ffd9e4; box-shadow: 0 4px 14px rgba(150,90,60,.08); }
        .at-stk[hidden] { display: none; }
        .at-stk-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
        .at-stk-head span { font-size: 13px; color: #e2667a; font-weight: bold; }
        .at-stk-next { margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; background: #fff0f5; font-size: 13px; line-height: 1.6; color: #8a4a5e; }
        .at-stk-next b { color: #e2667a; }
        .at-stk-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
        .at-stk-it { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
        .at-stk-it img, .at-sg img { width: 100%; max-width: 76px; aspect-ratio: 1; }
        .at-stk-it, .at-sg { position: relative; }
        .at-stk-it:not(.on)::after, .at-sg:not(.on)::after { content: '🔒'; position: absolute; top: 0; right: 2px; font-size: 13px; line-height: 1;
            background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
        .at-stk-it small, .at-sg small { font-size: 10.5px; line-height: 1.3; color: #8a6a58; word-break: keep-all; }
        .at-stk-it:not(.on) small, .at-sg:not(.on) small { color: #e2667a; font-weight: bold; }
        .at-stk-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #a07888; text-align: center; word-break: keep-all; }
        .at-pop-wrap { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(90,50,60,.45); padding: 20px; }
        .at-pop-wrap[hidden] { display: none; }
        .at-pop-box { width: min(320px, 100%); background: #fffdf9; border-radius: 24px; padding: 20px 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 8px;
            box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: atPopIn .5s cubic-bezier(.3,1.5,.5,1) both; }
        @keyframes atPopIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .at-pop-t { font-size: 18px; font-weight: bold; color: #e2667a; }
        .at-pop-box img { width: 180px; height: 180px; margin: 0 auto; }
        .at-pop-box b { font-size: 16px; }
        .at-pop-later { border: none; background: none; color: #a07888; font-size: 14px; padding: 6px; cursor: pointer; font-family: inherit; }
        /* 스티커 창의 🎁 출석 스티커 칸 */
        .cat-btn.at-cat:not(.active) { background: #fff0f5; border-color: #ff9ab3; }
        .sticker-grid .at-sg-note { grid-column: 1 / -1; font-size: 12.5px; color: #a07888; text-align: center; padding: 4px 0; }
        .sticker-grid .at-sg { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: none; background: none; font-family: inherit; }
        .sticker-grid button.at-sg { cursor: pointer; border-radius: 12px; }
        .sticker-grid button.at-sg:hover { background: #fff0f5; }

        /* ===== 🍀 오늘의 행운 (js/luck.js) ===== */
        .lk-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #3f5a3a;
            background: linear-gradient(#f3fbef, #e3f5dc); }
        .lk-room.show { display: block; }
        .lk-room [hidden] { display: none !important; }
        .lk-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
            background: rgba(243,251,239,.92); backdrop-filter: blur(6px); }
        .lk-bar b { flex: 1; text-align: center; font-size: 17px; }
        .lk-sp, .lk-x { width: 38px; height: 38px; flex: none; }
        .lk-x { border-radius: 50%; border: 1.5px solid #bfe0b6; background: #fbfff9; color: #3f5a3a; font-size: 16px; cursor: pointer; }
        .lk-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .lk-lead { text-align: center; font-size: 15px; line-height: 1.7; margin: 6px 0 12px; }
        .lk-lead b { color: #2f9a3f; }
        .lk-field { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 14px 8px; border-radius: 22px;
            background: #bfe6a8 radial-gradient(rgba(255,255,255,.35) 2px, transparent 2.5px) 0 0 / 18px 18px; box-shadow: inset 0 -6px 0 rgba(80,140,60,.15); }
        .lk-cl { border: none; background: none; padding: 2px; cursor: pointer; display: grid; place-items: center; transform: rotate(var(--r));
            animation: lkSway 3s ease-in-out var(--d) infinite; -webkit-tap-highlight-color: transparent; }
        .lk-cl svg { display: block; }
        @keyframes lkSway { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) + 8deg)); } }
        .lk-cl.no { animation: lkNo .4s ease; }
        @keyframes lkNo { 0%, 100% { transform: rotate(var(--r)) translateX(0); } 25% { transform: rotate(var(--r)) translateX(-5px); } 75% { transform: rotate(var(--r)) translateX(5px); } }
        .lk-cl.seen svg { opacity: .35; transition: opacity .4s .3s; } .lk-cl.seen { cursor: default; }
        .lk-cl.got { animation: lkGot .7s ease forwards; }
        @keyframes lkGot { 0% { transform: scale(1); } 50% { transform: scale(1.8) rotate(20deg); filter: drop-shadow(0 0 12px #ffe14d); } 100% { transform: scale(1.4) rotate(360deg); opacity: 0; } }
        .lk-hint { min-height: 22px; text-align: center; font-size: 13.5px; color: #4f8a45; margin: 10px 0 0; }
        #lkResult { display: flex; flex-direction: column; gap: 12px; }
        #lkResult.lk-in .lk-card { animation: lkIn .6s cubic-bezier(.3,1.4,.5,1) both; }
        @keyframes lkIn { from { transform: scale(.7) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
        .lk-card { background: #fffffb; border-radius: 22px; padding: 16px; border: 2.5px solid #9ed694; box-shadow: 0 8px 22px rgba(80,140,60,.15); display: flex; flex-direction: column; gap: 12px; }
        .lk-top { display: flex; align-items: center; gap: 10px; }
        .lk-four svg { display: block; animation: lkSpin 8s linear infinite; }
        @keyframes lkSpin { to { transform: rotate(360deg); } }
        .lk-top small { display: block; font-size: 12.5px; color: #7a9a72; }
        .lk-top b { font-size: 20px; }
        .lk-score { display: flex; align-items: center; gap: 10px; }
        .lk-gauge { flex: 1; height: 14px; border-radius: 8px; background: #e6f3e1; overflow: hidden; }
        .lk-gauge i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #a6e39a, #4fbf5a); animation: lkFill 1s ease both; }
        @keyframes lkFill { from { width: 0; } }
        .lk-score b { font-size: 26px; color: #2f9a3f; } .lk-score b small { font-size: 13px; }
        .lk-msg { margin: 0; font-size: 15px; line-height: 1.75; word-break: keep-all; }
        .lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .lk-grid div { background: #f3fbef; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
        .lk-grid small, .lk-mission small { font-size: 12px; color: #7a9a72; }
        .lk-grid b { font-size: 15px; display: flex; align-items: center; gap: 6px; word-break: keep-all; }
        .lk-sw { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(0,0,0,.15); flex: none; }
        .lk-mission { background: #fff8e1; border: 1.5px dashed #f2c94c; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
        .lk-mission b { font-size: 15px; color: #8a6a1a; }
        .lk-go { padding: 14px; border-radius: 14px; border: none; font-size: 16px; font-weight: bold; cursor: pointer; font-family: inherit;
            background: linear-gradient(#7fd27a, #4fb65a); color: #fff; box-shadow: 0 4px 0 #3a8f43; }
        .lk-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px dashed #b5dca9; font-size: 13px; line-height: 1.6; color: #4f7a45; word-break: keep-all; }

        /* ===== 🏆 명예의 전당 (js/hof.js) ===== */
        .ar-btn.hof { background: linear-gradient(#ffd86b, #ffb52e); box-shadow: 0 4px 0 #c9861a; margin-top: 4px; }
        .ar-btn.hof:disabled { opacity: .7; }
        .ar-hof-note { font-size: 12.5px; opacity: .85; margin: 4px 0 0; }
        .ar-hof-done { font-size: 14px; line-height: 1.7; text-align: center; color: #ffe66b; }
        .ar-hof-done b { color: #fff; }
        .ar-hof-done .ar-btn { margin-top: 6px; }
        .hof-room { position: fixed; inset: 0; z-index: 1700; display: none; overflow-y: auto; overscroll-behavior: contain; color: #4a3a20;
            background: linear-gradient(#fff9e8, #fff1cc); }
        .hof-room.show { display: block; }
        .hof-room [hidden], .hof-nick-wrap[hidden] { display: none !important; }
        .hof-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
            background: rgba(255,249,232,.94); backdrop-filter: blur(6px); }
        .hof-bar b { flex: 1; text-align: center; font-size: 17px; }
        .hof-sp, .hof-x { width: 38px; height: 38px; flex: none; }
        .hof-x { border-radius: 50%; border: 1.5px solid #f0d58a; background: #fffdf5; color: #4a3a20; font-size: 16px; cursor: pointer; }
        .hof-wrap { max-width: 480px; margin: 0 auto; padding: 4px 14px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
        .hof-games small { display: block; font-size: 12px; color: #a08850; margin: 2px 0 4px; }
        .hof-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
        .hof-chips::-webkit-scrollbar { display: none; }
        .hof-chips button { flex: none; border: 1.5px solid #f0d58a; background: #fffdf5; color: #6a5420; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
        .hof-chips button.on { background: #ffcf4a; border-color: #e8a817; color: #4a3200; font-weight: bold; }
        .hof-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #fff3d1; padding: 4px; border-radius: 14px; }
        .hof-tabs button { border: none; background: none; border-radius: 10px; padding: 9px; font: inherit; font-size: 14px; color: #8a7040; cursor: pointer; }
        .hof-tabs button.on { background: #fff; color: #4a3200; font-weight: bold; box-shadow: 0 2px 6px rgba(160,120,40,.18); }
        .hof-champ { text-align: center; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, #fff0b3, #ffe08a); font-size: 14px; box-shadow: 0 3px 10px rgba(200,150,30,.18); }
        .hof-list { background: #fffdf7; border-radius: 18px; padding: 6px; box-shadow: 0 4px 14px rgba(160,120,40,.12); min-height: 120px; }
        .hof-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 15px; }
        .hof-row + .hof-row { border-top: 1px dashed #f3e3b8; }
        .hof-row.top1 { background: #fff4c4; } .hof-row.top2 { background: #f4f6fa; } .hof-row.top3 { background: #fbeee4; }
        .hof-row.me { outline: 2px solid #ff8fab; background: #fff0f5; }
        .hof-rk { width: 30px; text-align: center; font-weight: bold; color: #a08850; font-size: 15px; }
        .hof-row.top1 .hof-rk, .hof-row.top2 .hof-rk, .hof-row.top3 .hof-rk { font-size: 22px; }
        .hof-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .hof-row b { color: #c9861a; }
        .hof-empty { text-align: center; padding: 30px 10px; font-size: 14px; line-height: 1.7; color: #a08850; }
        .hof-me { text-align: center; font-size: 14px; padding: 10px; border-radius: 14px; background: #fff; border: 1.5px dashed #ffb3c6; color: #7a4a5a; }
        .hof-me b { color: #e2667a; }
        .hof-nick-btn { margin-left: 6px; border: 1px solid #ffb3c6; background: #fff0f5; border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 12px; color: #c0506a; cursor: pointer; }
        .hof-tip { margin: 0; font-size: 12.5px; line-height: 1.6; color: #8a7040; text-align: center; word-break: keep-all; }
        .hof-nick-wrap { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; background: rgba(60,40,10,.45); padding: 20px; }
        .hof-nick { width: min(320px, 100%); background: #fffdf7; border-radius: 22px; padding: 20px 18px 12px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
        .hof-nick b { font-size: 17px; }
        .hof-nick p { margin: 0; font-size: 13px; line-height: 1.6; color: #8a7040; }
        .hof-nick input { font: inherit; font-size: 17px; text-align: center; padding: 11px; border-radius: 12px; border: 2px solid #f0d58a; outline: none; }
        .hof-nick input:focus { border-color: #ffb52e; }
        .hof-nick-err { min-height: 18px; font-size: 13px; color: #e2556f; }
        .hof-go { padding: 13px; border: none; border-radius: 14px; font: inherit; font-size: 16px; font-weight: bold; background: linear-gradient(#ffd86b, #ffb52e); color: #4a3200; box-shadow: 0 4px 0 #c9861a; cursor: pointer; }
        .hof-later { border: none; background: none; color: #a08850; font: inherit; font-size: 14px; padding: 6px; cursor: pointer; }

        /* ===== 💬 오늘의 질문 (js/question.js) ===== */
        .qa-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #4a3a5e;
            background: linear-gradient(#f6f1ff, #fdeff6); }
        .qa-room.show { display: block; }
        .qa-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
            background: rgba(246,241,255,.92); backdrop-filter: blur(6px); }
        .qa-bar b { flex: 1; text-align: center; font-size: 17px; }
        .qa-sp, .qa-x { width: 38px; height: 38px; flex: none; }
        .qa-x { border-radius: 50%; border: 1.5px solid #d9cdf2; background: #fcfaff; color: #4a3a5e; font-size: 16px; cursor: pointer; }
        .qa-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
        .qa-card { position: relative; padding: 22px 20px 24px; border-radius: 24px; background: linear-gradient(135deg, #b9a4ff, #ff9fc6); color: #fff; text-align: center;
            box-shadow: 0 10px 24px rgba(160,120,220,.3); overflow: hidden; }
        .qa-card::before, .qa-card::after { content: '✦'; position: absolute; font-size: 22px; opacity: .55; animation: qaTw 2s ease-in-out infinite; }
        @keyframes qaTw { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: .8; transform: scale(1); } }
        .qa-card::before { top: 12px; left: 16px; } .qa-card::after { bottom: 10px; right: 18px; animation-delay: 1s; }
        .qa-card small { font-size: 13px; opacity: .9; }
        .qa-q { margin-top: 8px; font-size: clamp(1.15rem, 5.4vw, 1.4rem); font-weight: bold; line-height: 1.5; word-break: keep-all; }
        .qa-write { background: #fff; border-radius: 18px; padding: 12px; border: 2px solid #e6dcfb; }
        .qa-write textarea { width: 100%; min-height: 130px; border: none; outline: none; resize: vertical; font: inherit; font-size: 16px; line-height: 1.7; color: #4a3a5e;
            background: repeating-linear-gradient(transparent 0 26px, #f0eafc 26px 27px); box-sizing: border-box; }
        .qa-count { text-align: right; font-size: 12px; color: #a898c0; }
        .qa-go { padding: 14px; border-radius: 14px; border: none; font-size: 16px; font-weight: bold; cursor: pointer; font-family: inherit;
            background: linear-gradient(#b9a4ff, #9b82f0); color: #fff; box-shadow: 0 4px 0 #7a62d0; }
        .qa-past { background: rgba(255,255,255,.75); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
        .qa-past > b { font-size: 15px; }
        .qa-old { background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 4px solid #c8b6ff; }
        .qa-old small { font-size: 12px; color: #9b82f0; font-weight: bold; }
        .qa-old p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; white-space: pre-line; word-break: keep-all; }
        .qa-none { font-size: 13.5px; line-height: 1.7; color: #8a7aa6; text-align: center; padding: 6px 0; }
        .qa-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px dashed #d4c6f2; font-size: 13px; line-height: 1.6; color: #6a5a86; word-break: keep-all; }

        /* ===== 🎀 마스킹테이프 (js/tape.js) ===== */
        .cat-btn.tp-cat:not(.active) { background: #fff7e6; border-color: #ffc46b; }
        .sticker-grid .tp-note { grid-column: 1 / -1; font-size: 12.5px; color: #a07888; text-align: center; padding: 4px 0; }
        .sticker-grid .tp-item { grid-column: span 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: none; background: none;
            border-radius: 12px; cursor: pointer; font-family: inherit; }
        .sticker-grid .tp-item:hover { background: #fff0f5; }
        .sticker-grid .tp-item span { display: block; width: 100%; max-width: 150px; height: 26px; transform: rotate(-4deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
        .sticker-grid .tp-item small { font-size: 11.5px; color: #8a6a58; }

        /* ===== 📝 글상자 모양 (js/paper.js) : .pp-이름 은 다이어리 글상자와 고르기 칩에 함께 쓰여요 ===== */
        .paper-row { align-items: flex-start; }
        .paper-row[hidden] { display: none; }
        .paper-row > label { padding-top: 10px; flex: none; }
        .paper-chips { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px 2px; padding: 4px 0 6px; min-width: 0; }
        .paper-chips button { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1.5px solid transparent; border-radius: 10px;
            background: none; padding: 4px 3px; cursor: pointer; font-family: inherit; }
        .paper-chips button.on { border-color: var(--primary-accent); background: #fff0f5; }
        .paper-chips small { font-size: 9px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
        .pp-chip { position: relative; display: block; width: 34px; height: 24px; border-radius: 4px; background: #fff; border: 1px dashed #ddd; box-sizing: border-box; }
        .pp-chip[class*=" pp-"] { border: none; padding: 0; }
        .element-box[class*="pp-"] textarea { padding: 8px 10px; box-sizing: border-box; line-height: 1.55; }
        .element-box[class*="pp-"] { padding: 0; }

        /* 줄노트 · 모눈 */
        .pp-line { background: linear-gradient(90deg, transparent 16px, #ffb3b3 16px 17px, transparent 17px), repeating-linear-gradient(#fff 0 25px, #cfe0f5 25px 26px); background-color: #fff;
            box-shadow: 0 3px 8px rgba(0,0,0,.12); border-radius: 3px; }
        .element-box.pp-line textarea { padding-left: 24px; line-height: 26px; padding-top: 4px; }
        .pp-grid { background: #fff repeating-linear-gradient(0deg, #e2ecf8 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, #e2ecf8 0 1px, transparent 1px 12px);
            background-color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12); border-radius: 3px; }
        /* 포스트잇 */
        .pp-py, .pp-pp, .pp-pm, .pp-ps { --pc: #fff59a; background: linear-gradient(315deg, rgba(0,0,0,.1) 0 9px, transparent 9px), linear-gradient(var(--pc), var(--pc));
            border-radius: 2px 2px 12px 2px; box-shadow: 0 8px 10px -6px rgba(0,0,0,.35); }
        .pp-pp { --pc: #ffc8dc; } .pp-pm { --pc: #c6f2df; } .pp-ps { --pc: #cfe7ff; }
        .pp-py::before, .pp-pp::before, .pp-pm::before, .pp-ps::before { content: ''; position: absolute; top: -7px; left: 50%; width: 40%; max-width: 60px; height: 14px;
            transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.6); box-shadow: 0 1px 2px rgba(0,0,0,.08); pointer-events: none; }
        .pp-chip.pp-py::before, .pp-chip.pp-pp::before, .pp-chip.pp-pm::before, .pp-chip.pp-ps::before { top: -3px; height: 7px; }
        /* 말풍선 */
        .pp-bw { background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 2px #6b5a66, 0 3px 8px rgba(0,0,0,.08); }
        .pp-bw::before { content: ''; position: absolute; left: 22%; bottom: -15px; border: 9px solid transparent; border-top: 15px solid #6b5a66; border-bottom: 0; pointer-events: none; }
        .pp-bw::after { content: ''; position: absolute; left: calc(22% + 2.5px); bottom: -10px; border: 6.5px solid transparent; border-top: 11px solid #fff; border-bottom: 0; pointer-events: none; }
        .pp-bp { background: #ffd6e5; border-radius: 20px; box-shadow: 0 3px 8px rgba(220,100,140,.18); }
        .pp-bp::after { content: ''; position: absolute; left: 22%; bottom: -13px; border: 9px solid transparent; border-top: 14px solid #ffd6e5; border-bottom: 0; pointer-events: none; }
        .pp-chip.pp-bw::before { bottom: -9px; border-width: 5px; border-top-width: 9px; } .pp-chip.pp-bw::after { bottom: -6px; border-width: 3.5px; border-top-width: 7px; left: calc(22% + 1.5px); }
        .pp-chip.pp-bp::after { bottom: -8px; border-width: 5px; border-top-width: 8px; }
        .pp-think { background: #fff; border-radius: 50% / 45%; box-shadow: inset 0 0 0 2px #8a7a96, 0 3px 8px rgba(0,0,0,.08); }
        .pp-think::before, .pp-think::after { content: ''; position: absolute; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #8a7a96; pointer-events: none; }
        .pp-think::before { width: 16px; height: 13px; left: 16%; bottom: -14px; }
        .pp-think::after { width: 9px; height: 8px; left: calc(16% - 10px); bottom: -24px; }
        .pp-chip.pp-think::before { width: 8px; height: 6px; bottom: -7px; } .pp-chip.pp-think::after { width: 5px; height: 4px; bottom: -12px; left: calc(16% - 5px); }
        .element-box.pp-think textarea { padding: 14px 18px; }
        /* 찢은 종이 */
        .pp-torn { background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 4 L8 1 L15 5 L24 2 L33 6 L41 2 L50 5 L60 1 L69 5 L78 2 L88 6 L97 2 L106 5 L116 1 L125 4 L134 1 L144 5 L153 2 L162 6 L172 2 L181 5 L191 1 L200 4 L200 96 L192 99 L183 95 L174 98 L165 94 L155 99 L146 95 L137 98 L127 94 L118 99 L109 95 L99 98 L90 94 L80 99 L71 95 L62 98 L52 94 L43 99 L34 95 L24 98 L15 94 L6 99 L0 96Z' fill='%23fffaf0'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
        .element-box.pp-torn textarea { padding: 12px 12px; }
        /* 라벨 태그 */
        .pp-tag { background: #fff1d6; border-radius: 6px 22px 22px 6px; box-shadow: inset 0 0 0 2px #e8c27a, 0 3px 6px rgba(0,0,0,.1); }
        .pp-tag::before { content: ''; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #e8c27a; pointer-events: none; }
        .pp-chip.pp-tag::before { width: 6px; height: 6px; margin-top: -3px; right: 5px; }
        .element-box.pp-tag textarea { padding-right: 28px; }
        /* 편지지 */
        .pp-letter { background: repeating-linear-gradient(135deg, #ff8f8f 0 8px, #fff 8px 14px, #8fb8ff 14px 22px, #fff 22px 28px); padding: 5px !important; border-radius: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
        .element-box.pp-letter textarea { background: #fffdf6; }
        .pp-chip.pp-letter { padding: 3px; } .pp-chip.pp-letter::after { content: ''; position: absolute; inset: 3px; background: #fffdf6; }
        /* 점선 액자 */
        .pp-frame { background: rgba(255,255,255,.75); border-radius: 14px; outline: 2px dashed #ff9ab3; outline-offset: -6px; }
        .pp-chip.pp-frame { outline-offset: -4px; outline-width: 1.5px; }
        /* 칠판 */
        .pp-chalk { background: #2f5444; border-radius: 6px; box-shadow: inset 0 0 0 5px #b9855a, inset 0 0 0 6px #8a5c35, 0 4px 8px rgba(0,0,0,.2); }
        .element-box.pp-chalk textarea { padding: 12px 14px; }
        .pp-chip.pp-chalk { box-shadow: inset 0 0 0 3px #b9855a; }

        /* ===== 🖍️ 펜 · 형광펜 (js/draw.js) ===== */
        .draw-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 99999; touch-action: none; cursor: crosshair; }
        body.draw-on .toolbar, body.draw-on .page-header { pointer-events: none; opacity: .45; }
        .draw-bar { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1500; width: min(420px, calc(100vw - 16px));
            background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 8px 26px rgba(0,0,0,.2); border: 2px solid var(--border-color, #ffb6c1);
            display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
        .draw-bar[hidden] { display: none; }
        .draw-row { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
        .draw-row > button { border: 1.5px solid #f0d0da; background: #fff; border-radius: 12px; padding: 7px 10px; font: inherit; font-size: 13.5px; cursor: pointer; color: #5a3d4a; }
        .draw-row > button.on { background: var(--primary-accent, #ff6b81); color: #fff; border-color: var(--primary-accent, #ff6b81); }
        .draw-row > button:disabled { opacity: .35; }
        .draw-opts { min-height: 32px; }
        .draw-row > .draw-col { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px #d8c8ce; cursor: pointer; padding: 0; transition: transform .12s; }
        .draw-row > .draw-col.on { background: var(--c); color: inherit; border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 2.5px var(--primary-accent, #ff6b81); }
        .draw-row > .draw-size { flex: none; width: 34px; height: 32px; border-radius: 10px; border: 1.5px solid #eee; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
        .draw-size i { display: block; background: #5a3d4a; }
        .draw-row > .draw-size.on { border-color: var(--primary-accent, #ff6b81); background: #fff0f5; color: inherit; }
        .draw-layer.erasing { cursor: none; }
        .draw-ring { fill: rgba(255,255,255,.55); stroke: #c98aa0; stroke-width: 1.5; stroke-dasharray: 3 2; pointer-events: none; }
        .draw-sep { width: 1px; height: 22px; background: #eee; margin: 0 2px; }
        .draw-hint { font-size: 13px; color: #8a6a78; }
        .draw-done { background: #4caf7a !important; color: #fff !important; border-color: #4caf7a !important; font-weight: bold; padding: 8px 22px !important; }
        .draw-cancel { color: #a07888 !important; }

        /* ===== 📷 사진 틀 (js/frame.js) : .fr-이름 은 다이어리 사진과 고르기 칩에 함께 쓰여요 ===== */
        .text-panel[data-mode="photo"] .text-only, .text-panel[data-mode="text"] .photo-only { display: none !important; }
        .caption-input { flex: 1; min-width: 0; font-family: 'Nanum Pen Script', cursive; font-size: 18px; padding: 4px 8px; }
        #captionRow[hidden], #frameRow[hidden] { display: none; }
        .fr-chip { position: relative; display: block; width: 30px; height: 26px; box-sizing: border-box; }
        .fr-chip i { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #ffd1dc, #a8d8ff); }
        .element-box[class*="fr-"] img { object-fit: cover; }
        /* 폴라로이드 · 인스탁스 : 아래 넓은 여백 + 손글씨 */
        .fr-polaroid, .fr-instax { background: #fff; padding: 9px 9px 38px !important; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
        .fr-instax { padding: 7px 7px 26px !important; border-radius: 4px; }
        .element-box.fr-polaroid::after, .element-box.fr-instax::after { content: attr(data-caption); position: absolute; left: 8px; right: 8px; bottom: 6px; height: 26px;
            font-family: 'Nanum Pen Script', 'Gaegu', cursive; font-size: 22px; line-height: 26px; color: #4a4a4a; text-align: center; white-space: nowrap; overflow: hidden; pointer-events: none; }
        .element-box.fr-instax::after { bottom: 2px; height: 22px; font-size: 18px; line-height: 22px; }
        .fr-chip.fr-polaroid { padding: 3px 3px 8px !important; } .fr-chip.fr-instax { padding: 2px 2px 6px !important; }
        /* 필름 : 위아래 구멍 */
        .fr-film, .fr-film2 { --fb: #1e1e1e; --fh: rgba(255,255,255,.85); padding: 16px 6px !important; border-radius: 2px;
            background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16'%3E%3Crect x='3' y='5' width='6' height='7' rx='1.5' fill='%23fff' fill-opacity='.85'/%3E%3C/svg%3E") repeat-x 0 0 / 12px 16px,
                url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16'%3E%3Crect x='3' y='4' width='6' height='7' rx='1.5' fill='%23fff' fill-opacity='.85'/%3E%3C/svg%3E") repeat-x 0 100% / 12px 16px, var(--fb);
            box-shadow: 0 4px 10px rgba(0,0,0,.25); }
        .fr-film2 { --fb: #7a4a2a; }
        .fr-chip.fr-film, .fr-chip.fr-film2 { padding: 6px 2px !important; background-size: 6px 6px, 6px 6px, auto; }
        /* 빈티지 스냅 : 톱니 모양 흰 테두리 */
        .fr-snap { padding: 10px !important; filter: drop-shadow(0 3px 5px rgba(0,0,0,.2));
            background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 2 L2 0 L4 2 L6 0 L8 2 L10 0 L12 2 L14 0 L16 2 L18 0 L20 2 L22 0 L24 2 L26 0 L28 2 L30 0 L32 2 L34 0 L36 2 L38 0 L40 2 L42 0 L44 2 L46 0 L48 2 L50 0 L52 2 L54 0 L56 2 L58 0 L60 2 L62 0 L64 2 L66 0 L68 2 L70 0 L72 2 L74 0 L76 2 L78 0 L80 2 L82 0 L84 2 L86 0 L88 2 L90 0 L92 2 L94 0 L96 2 L98 0 L100 2 L100 98 L98 100 L96 98 L94 100 L92 98 L90 100 L88 98 L86 100 L84 98 L82 100 L80 98 L78 100 L76 98 L74 100 L72 98 L70 100 L68 98 L66 100 L64 98 L62 100 L60 98 L58 100 L56 98 L54 100 L52 98 L50 100 L48 98 L46 100 L44 98 L42 100 L40 98 L38 100 L36 98 L34 100 L32 98 L30 100 L28 98 L26 100 L24 98 L22 100 L20 98 L18 100 L16 98 L14 100 L12 98 L10 100 L8 98 L6 100 L4 98 L2 100 L0 98Z' fill='%23fffdf6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
        .element-box.fr-snap img { filter: sepia(.25) saturate(.9); }
        .fr-chip.fr-snap { padding: 3px !important; }
        /* 테이프 붙인 사진 : 흰 테두리 + 모서리 테이프 두 장 */
        .fr-tape { background: #fff; padding: 6px !important; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
        .fr-tape::before, .fr-tape::after { content: ''; position: absolute; width: 46px; height: 16px; background: rgba(255,214,120,.75); pointer-events: none;
            background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px); }
        .fr-tape::before { top: -5px; left: -14px; transform: rotate(-35deg); }
        .fr-tape::after { bottom: -5px; right: -14px; transform: rotate(-35deg); }
        .fr-chip.fr-tape { padding: 3px !important; } .fr-chip.fr-tape::before, .fr-chip.fr-tape::after { width: 14px; height: 6px; left: -4px; top: -1px; }
        .fr-chip.fr-tape::after { left: auto; top: auto; right: -4px; bottom: -1px; }
        /* 동그라미 · 하트 · 구름 : 사진 모양만 바꿔요 (손잡이는 그대로) */
        .element-box.fr-round img, .fr-chip.fr-round i { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0,0,0,.18); aspect-ratio: 1; height: auto; }
        .element-box.fr-heart img, .fr-chip.fr-heart i { -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C10 62 0 40 6 22 C12 4 36 -2 50 18 C64 -2 88 4 94 22 C100 40 90 62 50 90Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C10 62 0 40 6 22 C12 4 36 -2 50 18 C64 -2 88 4 94 22 C100 40 90 62 50 90Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
        .element-box.fr-cloud img, .fr-chip.fr-cloud i { -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70'%3E%3Cpath d='M22 68 C6 68 0 56 4 46 C8 36 18 34 22 36 C22 18 38 8 52 14 C60 2 82 4 86 22 C98 24 102 40 96 52 C92 62 84 68 74 68Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70'%3E%3Cpath d='M22 68 C6 68 0 56 4 46 C8 36 18 34 22 36 C22 18 38 8 52 14 C60 2 82 4 86 22 C98 24 102 40 96 52 C92 62 84 68 74 68Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

        /* ===== 🌸 계절 테마 (js/season.js) ===== */
        .season-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
        html.season-fx body { background-color: transparent; }
        .season-layer i { position: absolute; top: -30px; display: block; background: center / contain no-repeat; opacity: .85; animation: ssFall linear infinite; }
        .season-su i { top: auto; bottom: -30px; animation-name: ssRise; opacity: .7; }
        @keyframes ssFall { 0% { transform: translate(0, -30px) rotate(0); } 100% { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
        @keyframes ssRise { 0% { transform: translate(0, 30px) scale(.6); } 100% { transform: translate(var(--dx), -110vh) scale(1.2); } }
        .season-card { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
        .ss-now { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: left; }
        .ss-now span { font-size: 30px; }
        .ss-now b { display: block; font-size: 15px; } .ss-now small { font-size: 12px; color: #777; }
        .ss-now.ss-sp { background: linear-gradient(90deg, #ffe3ec, #fff5f8); } .ss-now.ss-su { background: linear-gradient(90deg, #d8f1ff, #f3fbff); }
        .ss-now.ss-au { background: linear-gradient(90deg, #ffe4cc, #fff6ec); } .ss-now.ss-wi { background: linear-gradient(90deg, #e3ebfb, #f6f9ff); }
        .ss-go { width: 100%; justify-content: center; font-weight: bold; }
        .ss-go.on { background: var(--primary-accent); color: #fff; border-color: var(--primary-accent); }
        .ss-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
        .ss-list span { text-align: center; font-size: 22px; opacity: .45; } .ss-list span.on { opacity: 1; }
        .ss-list small { display: block; font-size: 10.5px; color: #888; }
        .ss-note { margin: 0; font-size: 12px; line-height: 1.6; color: #888; text-align: center; word-break: keep-all; }
        .cat-btn.ss-cat[hidden] { display: none; }
        .cat-btn.ss-cat:not(.active) { background: #fff4ea; border-color: #ffb27a; }
        .sticker-grid .ss-sg-head { grid-column: 1 / -1; font-size: 13.5px; font-weight: bold; color: #6a4a3a; padding: 8px 2px 0; }
        .sticker-grid .ss-sg-head em { font-style: normal; font-size: 11.5px; color: #fff; background: var(--primary-accent); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
        .sticker-grid .ss-sg-head small { font-weight: normal; font-size: 11.5px; color: #999; margin-left: 4px; }
        .sticker-grid .ss-lock img { opacity: .5; filter: saturate(.6); }
        .season-corner { position: absolute; right: 4px; bottom: 4px; width: 76px; height: 76px; background: center / contain no-repeat; pointer-events: none; z-index: 0; opacity: .9; }

        /* ===== 🔒 다이어리 잠금 (js/lock.js) ===== */
        .lock-screen { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px;
            background: radial-gradient(circle at 30% 20%, #ffe3ec, transparent 60%), radial-gradient(circle at 80% 90%, #e6dcff, transparent 55%), #fff5f8; }
        .lock-screen[hidden] { display: none; }
        body.lock-on { overflow: hidden; }
        .lock-box { width: min(320px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #5a3d4a; }
        .lock-ico { font-size: 44px; animation: lockBob 2.4s ease-in-out infinite; }
        @keyframes lockBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
        .lock-box > b { font-size: 19px; }
        .lock-box > p { margin: 0; font-size: 14px; color: #8a6a78; min-height: 20px; }
        .lock-box > p.err { color: #e2556f; font-weight: bold; }
        .lock-dots { display: flex; gap: 16px; margin: 6px 0 10px; }
        .lock-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ff9ab3; transition: background .15s, transform .15s; }
        .lock-dots i.on { background: #ff8fab; transform: scale(1.1); }
        .lock-dots.shake { animation: lockShake .4s; }
        @keyframes lockShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
        .lock-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; }
        .lock-pad button { width: 72px; height: 72px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 3px 10px rgba(220,120,150,.18);
            font: inherit; font-size: 26px; color: #5a3d4a; cursor: pointer; -webkit-tap-highlight-color: transparent; }
        .lock-pad button:active { background: #ffe3ec; transform: scale(.95); }
        .lock-pad .lock-sub { background: none; box-shadow: none; font-size: 17px; color: #a07888; }
        .lock-pad .lock-sub:empty { visibility: hidden; }
        .lock-forgot { margin-top: 8px; border: none; background: none; color: #a07888; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
        .lock-forgot[hidden] { display: none; }
        .modal-content.lock-content { max-width: 340px; }
        .lock-state { text-align: center; font-size: 16px; font-weight: bold; padding: 12px; border-radius: 14px; background: #f5f0f2; margin-bottom: 10px; }
        .lock-state.on { background: #ffe9f0; color: #d94a76; }
        .lock-label { display: block; font-size: 13px; margin: 6px 0 4px; color: #8a6a78; }
        .lock-btns { display: flex; gap: 6px; margin-top: 10px; } .lock-btns .btn { flex: 1; justify-content: center; font-size: 13px; }
        .lock-on-btn { width: 100%; justify-content: center; background: var(--primary-accent); color: #fff; border-color: var(--primary-accent); font-weight: bold; }
        .lock-note { font-size: 12px; line-height: 1.6; color: #8a7a80; margin: 12px 0 0; text-align: left; word-break: keep-all; }
        body.lock-on #customAlertModal { z-index: 9500; }

        /* ===== 🩷 생리 달력 (js/cycle.js) ===== */
        .cy-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(#fff3f6, #fdeef4); }
        .cy-room.show { display: block; }
        .cy-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(255,243,246,.94); backdrop-filter: blur(6px); }
        .cy-bar b { flex: 1; text-align: center; font-size: 17px; }
        .cy-sp, .cy-x { width: 38px; height: 38px; flex: none; }
        .cy-x { border-radius: 50%; border: 1.5px solid #f3c6d4; background: #fffafc; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .cy-wrap { max-width: 460px; margin: 0 auto; padding: 4px 14px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
        .cy-now { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, #ff9fb8, #ffc2d1); color: #fff; box-shadow: 0 8px 18px rgba(240,110,150,.25); }
        .cy-now > span { font-size: 34px; }
        .cy-now b { display: block; font-size: 19px; } .cy-now small { font-size: 13px; opacity: .95; }
        .cy-cal { background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 4px 14px rgba(200,100,130,.1); }
        .cy-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .cy-head b { font-size: 17px; }
        .cy-head button { width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff0f4; color: #c0506a; font-size: 20px; cursor: pointer; }
        .cy-week, .cy-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
        .cy-week span { text-align: center; font-size: 12px; color: #b08898; }
        .cy-c { position: relative; aspect-ratio: 1; border-radius: 50%; border: none; background: none; font: inherit; font-size: 14px; color: #5a3d4a; cursor: pointer; padding: 0; }
        .cy-e { background: none; }
        .cy-c.cy-p { background: #ff6f91; color: #fff; font-weight: bold; }
        .cy-c.cy-pp { box-shadow: inset 0 0 0 2px #ff9fb8; border: 0; background: repeating-linear-gradient(135deg, #fff0f4 0 4px, #fff 4px 8px); }
        .cy-c.cy-fe { background: #ece3ff; }
        .cy-c.cy-ov { background: #c9b2ff; color: #fff; font-weight: bold; }
        .cy-c.cy-today { outline: 2px solid #5a3d4a; outline-offset: -2px; }
        .cy-c.cy-sel { transform: scale(1.12); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
        .cy-c i { position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ffb02e; }
        .cy-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; font-size: 11.5px; color: #8a6a78; }
        .cy-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: -1px; }
        .l-p { background: #ff6f91; } .l-pp { box-shadow: inset 0 0 0 2px #ff9fb8; } .l-fe { background: #ece3ff; } .l-ov { background: #c9b2ff; }
        .cy-day { background: #fff; border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(200,100,130,.1); }
        .cy-day-h b { font-size: 15px; } .cy-day-h small { margin-left: 6px; font-size: 12px; color: #b08898; }
        .cy-pbtn { padding: 12px; border-radius: 14px; border: 2px solid #ff9fb8; background: #fff; color: #e2556f; font: inherit; font-size: 15px; font-weight: bold; cursor: pointer; }
        .cy-pbtn.on { background: #ff6f91; border-color: #ff6f91; color: #fff; }
        .cy-pbtn:disabled { opacity: .4; }
        .cy-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
        .cy-row small { width: 100%; font-size: 12px; color: #8a6a78; }
        .cy-row button { border: 1.5px solid #f3d2dc; background: #fff; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; color: #6a4a5a; }
        .cy-row button.on { background: #ffe3eb; border-color: #ff8fab; color: #c0405f; font-weight: bold; }
        .cy-row button:disabled { opacity: .4; }
        .cy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .cy-stats div { background: #fff; border-radius: 14px; padding: 10px 4px; text-align: center; box-shadow: 0 3px 10px rgba(200,100,130,.08); }
        .cy-stats small { display: block; font-size: 12px; color: #b08898; } .cy-stats b { font-size: 20px; color: #e2556f; }
        .cy-stats p { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #a08890; text-align: center; }
        .cy-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px dashed #f3c6d4; font-size: 12.5px; line-height: 1.7; color: #8a6a78; word-break: keep-all; }

        /* ===== 📅 한 달 모아보기 (js/month.js) ===== */
        .page-date-btn { cursor: pointer; border-radius: 10px; padding: 0 6px; }
        .page-date-btn::before { content: '📅 '; font-size: .7em; vertical-align: 2px; }
        .page-date-btn:hover { background: rgba(255,255,255,.6); }
        .mo-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: var(--bg-color, #ffe6f0); }
        .mo-room.show { display: block; }
        .mo-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: var(--bg-color, #ffe6f0); }
        .mo-bar b { flex: 1; text-align: center; font-size: 17px; }
        .mo-sp, .mo-x { width: 38px; height: 38px; flex: none; }
        .mo-x { border-radius: 50%; border: 1.5px solid var(--border-color, #ffb6c1); background: #fff; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .mo-wrap { max-width: 520px; margin: 0 auto; padding: 4px 12px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
        .mo-head { display: flex; justify-content: space-between; align-items: center; }
        .mo-head b { font-size: 20px; color: var(--primary-accent, #ff6b81); }
        .mo-head button { width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; color: var(--primary-accent, #ff6b81); font-size: 22px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
        .mo-sum { text-align: center; font-size: 14px; } .mo-sum b { color: var(--primary-accent, #ff6b81); font-size: 17px; }
        .mo-week, .mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
        .mo-week span { text-align: center; font-size: 12px; color: #a08890; }
        .mo-week span:first-child { color: #e2667a; } .mo-week span:last-child { color: #5c8fd6; }
        .mo-grid { background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.06); min-height: 200px; }
        .mo-loading { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: #a08890; }
        .mo-c { position: relative; aspect-ratio: .8; border: none; border-radius: 10px; background: var(--page-bg, #fff8fb); padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; font: inherit; }
        .mo-c.mo-e { background: none; cursor: default; }
        .mo-c i { position: absolute; top: 2px; left: 4px; z-index: 1; font-style: normal; font-size: 11px; color: #8a6a78; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
        .mo-c.mo-has { background: #fff; box-shadow: inset 0 0 0 1.5px var(--border-color, #ffb6c1); }
        .mo-c img { width: 100%; height: 100%; object-fit: cover; }
        .mo-c img[src^="data:image/svg"] { object-fit: contain; padding: 14px 4px 4px; box-sizing: border-box; }
        .mo-c em { font-style: normal; font-size: clamp(18px, 5.5vw, 28px); margin-top: 8px; }
        .mo-c em.mo-wait { font-size: 16px; color: #c0a0b0; }
        .mo-c.mo-today { box-shadow: inset 0 0 0 2.5px var(--primary-accent, #ff6b81); }
        .mo-c.mo-today i { color: var(--primary-accent, #ff6b81); font-weight: bold; }
        .mo-c.mo-fut { opacity: .45; }
        .mo-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #8a7a80; text-align: center; word-break: keep-all; }

        /* ===== 😊 기분 · 날씨 도장 (js/stamp.js) ===== */
        .page-stamps { position: absolute; top: 54px; right: 8px; z-index: 50; display: flex; gap: 6px; pointer-events: none; }
        .ps-st { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: none; padding: 0; cursor: pointer; font-family: inherit;
            display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
            background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 4px #fff, inset 0 0 0 5px var(--c); }
        .ps-st b { font-size: 21px; font-weight: normal; } .ps-st small { font-size: 9px; color: #777; margin-top: 2px; }
        .ps-st:not(.on) { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1.5px #ddd; opacity: .8; }
        .ps-st:not(.on) b.ps-empty { font-size: 18px; color: #bbb; font-weight: bold; }
        .ps-st.on { transform: rotate(-8deg); }
        .ps-st.on + .ps-st.on { transform: rotate(6deg); }
        .ps-st.pop { animation: psPop .45s cubic-bezier(.3,1.6,.5,1); }
        @keyframes psPop { 0% { transform: scale(1.8) rotate(-20deg); opacity: .3; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
        body.draw-on .page-stamps { display: none; }
        .ps-pop { position: fixed; z-index: 1200; width: 248px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); border: 2px solid var(--border-color, #ffb6c1); }
        .ps-pop-t { text-align: center; font-weight: bold; font-size: 14px; color: var(--primary-accent, #ff6b81); margin-bottom: 8px; }
        .ps-pop-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
        .ps-pop-g button { border: none; border-radius: 14px; background: #fafafa; padding: 6px 2px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
        .ps-pop-g button b { font-size: 24px; font-weight: normal; } .ps-pop-g button small { font-size: 10.5px; color: #777; white-space: nowrap; }
        .ps-pop-g button.on { background: #fff; box-shadow: inset 0 0 0 2px var(--c); }
        .ps-clear { width: 100%; margin-top: 8px; border: none; background: none; color: #a07888; font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
        .mo-mood { position: absolute; top: 1px; right: 2px; font-size: 13px; z-index: 1; filter: drop-shadow(0 0 2px #fff); }

        /* ===== 🔍 일기 검색 (js/search.js) ===== */
        .sr-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: var(--bg-color, #ffe6f0); }
        .sr-room.show { display: block; }
        .sr-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: var(--bg-color, #ffe6f0); }
        .sr-bar b { flex: 1; text-align: center; font-size: 17px; }
        .sr-sp, .sr-x { width: 38px; height: 38px; flex: none; }
        .sr-x { border-radius: 50%; border: 1.5px solid var(--border-color, #ffb6c1); background: #fff; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .sr-wrap { max-width: 520px; margin: 0 auto; padding: 4px 14px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
        .sr-box { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 4px 14px; border: 2px solid var(--border-color, #ffb6c1); }
        .sr-box input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 16px; padding: 10px 0; background: none; color: #5a3d4a; }
        .sr-moods { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
        .sr-moods::-webkit-scrollbar { display: none; }
        .sr-moods button { flex: none; border: 1.5px solid #f3d2dc; background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 15px; cursor: pointer; }
        .sr-moods small { font-size: 11px; color: #8a6a78; margin-left: 3px; }
        .sr-status { font-size: 13px; color: #8a6a78; text-align: center; min-height: 18px; }
        .sr-status b { color: var(--primary-accent, #ff6b81); }
        .sr-list { display: flex; flex-direction: column; gap: 8px; }
        .sr-it { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: none; background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: #5a3d4a; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
        .sr-it:hover { box-shadow: 0 0 0 2px var(--border-color, #ffb6c1); }
        .sr-d { flex: none; width: 78px; white-space: nowrap; display: flex; flex-direction: column; }
        .sr-d b { font-size: 15px; color: var(--primary-accent, #ff6b81); } .sr-d small { font-size: 11px; color: #a08890; }
        .sr-t { font-size: 14px; line-height: 1.6; word-break: break-all; }
        .sr-t mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
        .sr-more { text-align: center; font-size: 12.5px; color: #a08890; }

        /* ===== ⏳ D-day (js/dday.js) ===== */
        .page-dday { position: absolute; top: 56px; left: 8px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; max-width: 60%; }
        .page-dday:empty { display: none; }
        .dd-badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1.5px solid var(--border-color, #ffb6c1); color: #6a4a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; box-sizing: border-box; }
        .dd-badge b { color: var(--primary-accent, #ff6b81); }
        .dd-badge.today { background: var(--primary-accent, #ff6b81); color: #fff; border-color: var(--primary-accent, #ff6b81); } .dd-badge.today b { color: #fff; }
        body.draw-on .page-dday { display: none; }
        .dd-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(#fff8ec, #ffeef4); }
        .dd-room.show { display: block; }
        .dd-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(255,248,236,.94); backdrop-filter: blur(6px); }
        .dd-bar b { flex: 1; text-align: center; font-size: 17px; }
        .dd-sp, .dd-x { width: 38px; height: 38px; flex: none; }
        .dd-x { border-radius: 50%; border: 1.5px solid #f3d0b8; background: #fffdf8; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .dd-wrap { max-width: 480px; margin: 0 auto; padding: 4px 14px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
        .dd-list { display: flex; flex-direction: column; gap: 8px; }
        .dd-empty { text-align: center; padding: 30px 10px; color: #a08878; line-height: 1.8; background: rgba(255,255,255,.7); border-radius: 18px; }
        .dd-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 12px rgba(200,140,100,.12); }
        .dd-card.today { background: linear-gradient(135deg, #ffe3ec, #fff3d6); }
        .dd-ico { font-size: 30px; grid-row: span 2; }
        .dd-mid b { display: block; font-size: 15px; } .dd-mid small { font-size: 12px; color: #a08890; }
        .dd-big { font-size: 22px; font-weight: bold; color: var(--primary-accent, #ff6b81); white-space: nowrap; }
        .dd-acts { grid-column: 2 / 4; display: flex; gap: 4px; justify-content: flex-end; }
        .dd-acts button { border: 1px solid #f0e0e6; background: #fff; border-radius: 10px; padding: 3px 8px; font-size: 14px; cursor: pointer; opacity: .55; }
        .dd-acts button.on, .dd-acts button:hover { opacity: 1; border-color: var(--primary-accent, #ff6b81); }
        .dd-add { padding: 13px; border-radius: 14px; border: 2px dashed #f3c0a8; background: rgba(255,255,255,.7); font: inherit; font-size: 15px; font-weight: bold; color: #c07050; cursor: pointer; }
        .dd-add[hidden], .dd-form[hidden] { display: none; }
        .dd-form { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 14px rgba(200,140,100,.15); }
        .dd-form > b { font-size: 16px; }
        .dd-form input#ddName { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid #f3d0b8; outline: none; }
        .dd-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
        .dd-kinds button, .dd-icons button { border: 1.5px solid #f0e0e6; background: #fff; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
        .dd-kinds button.on { background: var(--primary-accent, #ff6b81); color: #fff; border-color: var(--primary-accent, #ff6b81); }
        .dd-dl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
        .dd-dl input { font: inherit; font-size: 15px; padding: 7px 10px; border-radius: 10px; border: 1.5px solid #f3d0b8; }
        .dd-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
        .dd-icons button { font-size: 20px; padding: 6px 0; border-radius: 12px; }
        .dd-icons button.on { border-color: var(--primary-accent, #ff6b81); background: #fff0f5; }
        .dd-pin { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
        .dd-form-btns { display: flex; gap: 8px; } .dd-form-btns button { flex: 1; padding: 11px; border-radius: 12px; font: inherit; font-size: 15px; cursor: pointer; border: none; }
        .dd-cancel { background: #f3eef0; color: #8a6a78; } .dd-save { background: var(--primary-accent, #ff6b81); color: #fff; font-weight: bold; }
        .dd-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: #8a7a70; word-break: keep-all; }

        /* ===== 👀 페이지에 보이는 것 (js/show.js) ===== */
        html.hide-stamp .page-stamps, html.hide-dday .page-dday, html.hide-corner .season-corner { display: none !important; }
        .show-group #showSwitches { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
        .form-group .show-row { display: flex; margin: 0; color: inherit; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff7fa; border: 1px solid #f6dde6; cursor: pointer; }
        .show-row b { display: block; font-size: 14px; } .show-row small { font-size: 11.5px; color: #999; }
        .show-sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #ddd; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
        .show-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
        .show-sw:checked { background: var(--primary-accent, #ff6b81); } .show-sw:checked::after { left: 21px; }
        .page-date-wrap { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
        .page-search-btn { flex: none; border: none; background: none; padding: 2px 4px; border-radius: 10px; font-size: .78em; cursor: pointer; line-height: 1; }
        .page-search-btn:hover { background: rgba(255,255,255,.6); }

        /* ===== 📸 말랑 포토부스 (js/photobooth.js) ===== */
        .pb-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(#fff0f5, #f3ecff); }
        .pb-room.show { display: block; }
        .pb-room [hidden] { display: none !important; }
        .pb-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(255,240,245,.94); backdrop-filter: blur(6px); }
        .pb-bar b { flex: 1; text-align: center; font-size: 17px; }
        .pb-sp, .pb-x { width: 38px; height: 38px; flex: none; }
        .pb-x { border-radius: 50%; border: 1.5px solid #f3c6d4; background: #fffafc; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .pb-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .pb-step { display: flex; flex-direction: column; gap: 12px; }
        .pb-lead { margin: 4px 0 0; font-weight: bold; font-size: 15px; }
        .pb-layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .pb-layouts button, .pb-frames button { border: 2px solid transparent; background: #fff; border-radius: 16px; padding: 10px 6px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
        .pb-layouts button.on, .pb-frames button.on { border-color: var(--primary-accent, #ff6b81); }
        .pb-lay { display: grid; gap: 3px; padding: 4px; background: #ffd6e2; border-radius: 4px; }
        .pb-lay i { display: block; background: #fff; border-radius: 2px; }
        .pb-lay-strip { grid-template-columns: 18px; } .pb-lay-strip i { height: 12px; }
        .pb-lay-grid { grid-template-columns: 18px 18px; } .pb-lay-grid i { height: 20px; }
        .pb-lay-one i { width: 38px; height: 38px; }
        .pb-frames { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
        .pb-frames button { aspect-ratio: 1; padding: 0; border-radius: 50%; background: var(--a); box-shadow: inset 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.12); border: 2px solid #e8e0e4; }
        .pb-frames button.on { border-color: var(--b); transform: scale(1.12); }
        .pb-fr-check { background: repeating-conic-gradient(#ffe0ea 0 25%, #fff 0 50%) 50% / 10px 10px !important; }
        .pb-go { padding: 14px; border-radius: 14px; border: none; font: inherit; font-size: 16px; font-weight: bold; cursor: pointer; background: linear-gradient(#ff9ab3, #ff6b8b); color: #fff; box-shadow: 0 4px 0 #d94a6a; }
        .pb-go.pb-sub { background: #fff; color: #c0506a; box-shadow: 0 3px 0 #f0c8d4; border: 1.5px solid #f6cad6; }
        .pb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .pb-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #8a6a78; text-align: center; word-break: keep-all; }
        .pb-cam { position: relative; border-radius: 20px; overflow: hidden; background: #222; aspect-ratio: 4 / 3; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
        .pb-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
        .pb-cam video.mirror { transform: scaleX(-1); }
        .pb-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: bold; color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,.4); pointer-events: none; }
        .pb-count.tick { animation: pbTick .8s ease-out; }
        @keyframes pbTick { 0% { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(.9); opacity: .2; } }
        .pb-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
        .pb-flash.on { animation: pbFlash .45s ease-out; }
        @keyframes pbFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
        .pb-num { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14px; }
        .pb-num:empty { display: none; }
        .pb-thumbs { display: flex; gap: 6px; justify-content: center; }
        .pb-thumbs span { width: 56px; height: 42px; border-radius: 8px; background: #fff; border: 1.5px dashed #f3c6d4; display: grid; place-items: center; font-size: 13px; color: #c0a0b0; overflow: hidden; }
        .pb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
        .pb-cam-btns { display: flex; align-items: center; justify-content: space-between; }
        .pb-shoot { width: 86px; height: 86px; border-radius: 50%; border: 6px solid #fff; background: #ff6b8b; color: #fff; font: inherit; font-size: 17px; font-weight: bold; cursor: pointer; box-shadow: 0 0 0 3px #ff9ab3, 0 6px 14px rgba(255,107,139,.4); }
        .pb-shoot:disabled { opacity: .5; }
        .pb-flip, .pb-flip-sp { width: 48px; height: 48px; }
        .pb-flip { border-radius: 50%; border: none; background: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.1); }
        .pb-preview { display: flex; justify-content: center; background: rgba(255,255,255,.6); border-radius: 18px; padding: 12px; }
        .pb-preview canvas { max-width: 100%; max-height: 62vh; height: auto; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
        .pb-row { display: flex; flex-direction: column; gap: 6px; }
        .pb-row small { font-size: 12.5px; color: #8a6a78; }
        .pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        .pb-chips button { border: 1.5px solid #f3d2dc; background: #fff; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13.5px; cursor: pointer; }
        .pb-chips button.on { background: var(--primary-accent, #ff6b81); color: #fff; border-color: var(--primary-accent, #ff6b81); }
        .pb-row input { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 2px solid #f3d0dc; outline: none; }
        .pb-deco { font-size: 14px; display: flex; align-items: center; gap: 6px; }

        /* ===== ✂️ 스티커 만들기 (js/stickermaker.js) ===== */
        .smk-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(#f3fbff, #fff0f6); }
        .smk-room.show { display: block; }
        .smk-room [hidden] { display: none !important; }
        .smk-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(243,251,255,.94); backdrop-filter: blur(6px); }
        .smk-bar b { flex: 1; text-align: center; font-size: 17px; }
        .smk-sp, .smk-x { width: 38px; height: 38px; flex: none; }
        .smk-x { border-radius: 50%; border: 1.5px solid #cfe3f0; background: #fff; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .smk-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .smk-step { display: flex; flex-direction: column; gap: 12px; }
        .smk-lead { margin: 4px 0 0; font-weight: bold; font-size: 15px; } .smk-lead small { font-weight: normal; color: #a08890; font-size: 12px; }
        .smk-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .smk-pick button { border: none; background: #fff; border-radius: 18px; padding: 16px 6px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.07); }
        .smk-pick span { font-size: 32px; } .smk-pick b { font-size: 13.5px; color: #5a3d4a; }
        .smk-mine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
        .smk-it { position: relative; }
        .smk-it button { width: 100%; aspect-ratio: 1; border: none; border-radius: 14px; background: repeating-conic-gradient(#f3f3f3 0 25%, #fff 0 50%) 50% / 14px 14px; cursor: pointer; padding: 6px; }
        .smk-it img { width: 100%; height: 100%; object-fit: contain; }
        .smk-it i { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-style: normal; font-size: 11px; display: grid; place-items: center; cursor: pointer; color: #a07888; }
        .smk-empty { grid-column: 1 / -1; text-align: center; padding: 18px 8px; font-size: 13px; line-height: 1.7; color: #a08890; background: rgba(255,255,255,.7); border-radius: 14px; }
        .smk-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #8a7a80; text-align: center; word-break: keep-all; }
        .smk-stage { display: flex; justify-content: center; }
        .smk-stage canvas { width: min(300px, 82vw); height: auto; aspect-ratio: 1; border-radius: 18px; touch-action: none; cursor: grab;
            background: repeating-conic-gradient(#eef3f7 0 25%, #fff 0 50%) 50% / 20px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
        .smk-hint { margin: 0; text-align: center; font-size: 13px; color: #6a8aa0; min-height: 18px; }
        .smk-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
        .smk-chips button { border: 1.5px solid #d8e6f0; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
        .smk-chips button.on { background: #5aa8e0; border-color: #5aa8e0; color: #fff; }
        .smk-zoom { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .smk-zoom input { flex: 1; }
        #smTextOpts { display: flex; flex-direction: column; gap: 8px; }
        #smText { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid #d8e6f0; outline: none; }
        .smk-colors { display: flex; gap: 8px; justify-content: center; }
        .smk-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px #ccc; cursor: pointer; padding: 0; }
        .smk-colors button.on { box-shadow: 0 0 0 3px #5aa8e0; }
        .smk-border { font-size: 14px; display: flex; align-items: center; gap: 6px; justify-content: center; }
        .smk-go { padding: 14px; border-radius: 14px; border: none; font: inherit; font-size: 16px; font-weight: bold; cursor: pointer; background: linear-gradient(#7cc8ff, #4aa8ef); color: #fff; box-shadow: 0 4px 0 #2f86c8; }
        .smk-go.smk-sub { background: #fff; color: #3d8fd6; box-shadow: 0 3px 0 #cfe3f0; border: 1.5px solid #cfe3f0; }
        .cat-btn.sm-cat:not(.active) { background: #eef7ff; border-color: #8cc8f0; }
        .sticker-grid .smk-in-modal { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }


        /* ===== ↕️ 순서 메뉴 ===== */
        .layer-menu { position: fixed; z-index: 1500; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(90,61,74,.18); animation: layerIn .15s ease-out; }
        .layer-menu button { border: 1.5px solid #ffd6e0; background: #fff7fa; color: #5a3d4a; border-radius: 12px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
        .layer-menu button:active { background: #ffe4ec; }
        .layer-menu button:disabled { opacity: .4; cursor: default; }
        @keyframes layerIn { from { opacity: 0; transform: translateY(-4px); } }

        /* ===== 💕 이름 궁합 (nm-) ===== */
        .nm-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; color: #6a3d55; background: linear-gradient(165deg, #fff0f6 0%, #ffe1ec 55%, #ffd3e6 100%); }
        .nm-room.show { display: block; }
        .nm-room [hidden] { display: none !important; }
        .nm-float { position: fixed; font-style: normal; pointer-events: none; opacity: .5; animation: nmFloat 6s ease-in-out infinite; z-index: 0; }
        .nm-float.f1 { left: 6%; top: 22%; font-size: 26px; } .nm-float.f2 { right: 8%; top: 38%; font-size: 22px; animation-delay: -2s; }
        .nm-float.f3 { left: 12%; bottom: 14%; font-size: 20px; animation-delay: -4s; } .nm-float.f4 { right: 14%; bottom: 24%; font-size: 28px; animation-delay: -1s; }
        @keyframes nmFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
        .nm-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(255,240,246,.92); backdrop-filter: blur(6px); }
        .nm-bar b { flex: 1; text-align: center; font-size: 17px; }
        .nm-sp, .nm-x { width: 38px; height: 38px; flex: none; }
        .nm-x { border-radius: 50%; border: 1.5px solid #ffc6d9; background: #fff; color: #6a3d55; font-size: 16px; cursor: pointer; }
        .nm-wrap { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .nm-step { display: flex; flex-direction: column; gap: 14px; animation: nmIn .4s ease both; }
        @keyframes nmIn { from { opacity: 0; transform: translateY(10px); } }
        .nm-hero { text-align: center; font-size: 64px; margin-top: 6px; } .nm-hero span { display: inline-block; animation: nmBeat 1.6s ease-in-out infinite; }
        @keyframes nmBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
        .nm-lead { margin: 0; text-align: center; font-weight: bold; font-size: 16px; }
        .nm-names { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
        .nm-in { display: flex; flex-direction: column; gap: 4px; }
        .nm-in small { font-size: 12px; text-align: center; color: #b0708e; }
        .nm-in input { width: 100%; box-sizing: border-box; border-radius: 16px; border: 2px solid #ffc6d9; background: #fff; padding: 12px 6px; font: inherit; font-size: 19px; font-weight: bold; text-align: center; color: #e2557f; user-select: text; -webkit-user-select: text; }
        .nm-in.you input { color: #5a7be0; border-color: #c8d6ff; }
        .nm-in input:focus { outline: 3px solid rgba(255,143,174,.35); }
        .nm-heart { font-size: 26px; margin-top: 18px; animation: nmBeat 1.6s ease-in-out infinite; }
        .nm-rels { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
        .nm-rels button { border: 1.5px solid #ffc6d9; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; cursor: pointer; color: #6a3d55; }
        .nm-rels button.on { background: #ff8fae; border-color: #ff8fae; color: #fff; font-weight: bold; }
        .nm-go { border: none; border-radius: 999px; padding: 15px; font: inherit; font-size: 17px; font-weight: bold; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ff9fbd, #ff6f9c); box-shadow: 0 6px 16px rgba(255,111,156,.35); }
        .nm-go:active { transform: scale(.97); }
        .nm-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: #a07890; text-align: center; word-break: keep-all; }
        .nm-pyr { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: rgba(255,255,255,.75); border-radius: 22px; box-shadow: 0 6px 18px rgba(255,111,156,.12); }
        .nm-row { display: flex; gap: 4px; justify-content: center; animation: nmDrop .35s ease both; }
        .nm-row span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: bold; font-size: 15px; color: #8a5a72; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
        .nm-pyr { position: relative; min-height: 230px; justify-content: flex-start; transition: box-shadow .4s, background .4s; }
        .nm-rows { display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .nm-msg { margin: 0 0 6px; min-height: 22px; font-weight: bold; font-size: 15px; color: #c2547c; text-align: center; }
        .nm-msg.pop { animation: nmMsg .35s ease both; }
        @keyframes nmMsg { from { opacity: 0; transform: translateY(6px); } }
        .nm-chars { animation: none; }
        .nm-chars span { border-radius: 10px; font-size: 16px; opacity: 0; transform: scale(.3) rotate(-20deg); transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1); }
        .nm-chars span.in { opacity: 1; transform: none; }
        .nm-row span.rolling { color: #ff6f9c; background: #fff4f8; box-shadow: 0 0 0 2px #ffd0df; }
        .nm-row span.done { animation: nmSettle .3s ease; }
        @keyframes nmSettle { 50% { transform: scale(1.25); } }
        .nm-final { margin-top: 8px; gap: 10px; }
        .nm-final span { width: 58px; height: 64px; border-radius: 16px; font-size: 34px; background: #fff; color: #ff4f86; box-shadow: 0 0 0 2.5px #ffb3c8, 0 6px 14px rgba(255,111,156,.25); }
        .nm-final span.rolling { box-shadow: 0 0 0 3px #ff6f9c, 0 0 22px rgba(255,111,156,.55); }
        .nm-final span.done { background: linear-gradient(150deg, #ff9fbd, #ff6f9c); color: #fff; animation: nmBig .5s cubic-bezier(.2,1.6,.4,1); }
        @keyframes nmBig { from { transform: scale(.5); } }
        .nm-beat { position: absolute; left: 50%; top: 50%; font-size: 80px; transform: translate(-50%, -30%); animation: nmBeat2 .75s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 0 18px rgba(255,79,134,.6)); }
        @keyframes nmBeat2 { 0%, 100% { transform: translate(-50%, -30%) scale(.9); } 20% { transform: translate(-50%, -30%) scale(1.25); } 40% { transform: translate(-50%, -30%) scale(1); } 55% { transform: translate(-50%, -30%) scale(1.15); } }
        .nm-room::after { content: ''; position: fixed; inset: 0; background: rgba(60,20,45,.42); opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 1; }
        .nm-room.nm-tense::after { opacity: 1; }
        .nm-room.nm-tense .nm-wrap { z-index: 2; }
        .nm-room .nm-bar { transition: filter .6s; } .nm-room.nm-tense .nm-bar { filter: brightness(.6); }
        .nm-room.nm-tense .nm-pyr { background: #fff; box-shadow: 0 0 0 4px rgba(255,180,205,.6), 0 12px 40px rgba(255,79,134,.45); animation: nmShake .25s linear infinite; }
        @keyframes nmShake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, -1px); } }
        .nm-burst { position: absolute; left: 50%; bottom: 46px; width: 0; height: 0; pointer-events: none; }
        .nm-burst i { position: absolute; font-style: normal; font-size: 22px; transform: translate(-50%, -50%); animation: nmFly 1s ease-out forwards; }
        @keyframes nmFly { to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(calc(var(--a) * -1)) scale(1.2); opacity: 0; } }
        .nm-chars span.me { background: #ffe1ea; color: #e2557f; } .nm-chars span.you { background: #e3eaff; color: #5a7be0; }
        @keyframes nmDrop { from { opacity: 0; transform: translateY(-8px) scale(.9); } }
        .nm-res { display: flex; flex-direction: column; gap: 12px; animation: nmIn .45s ease both; }
        .nm-score { text-align: center; background: #fff; border-radius: 24px; padding: 18px 16px 20px; box-shadow: 0 8px 22px rgba(255,111,156,.18); }
        .nm-pair { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
        .nm-pair .me { color: #e2557f; } .nm-pair .you { color: #5a7be0; }
        .nm-pair span { font-size: 26px; animation: nmBeat 1.4s ease-in-out infinite; }
        .nm-pct { font-size: 64px; font-weight: bold; line-height: 1.1; color: var(--tc); margin-top: 6px; } .nm-pct small { font-size: 28px; }
        .nm-tier { font-size: 19px; font-weight: bold; color: #7a3d5a; }
        .nm-bar2 { height: 12px; border-radius: 999px; background: #ffe7ef; margin: 12px 8px 0; overflow: hidden; }
        .nm-bar2 i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffb3c8, var(--tc)); transition: width .9s cubic-bezier(.2,.8,.3,1); }
        .nm-talk { background: rgba(255,255,255,.96); border-radius: 20px; padding: 14px 16px; }
        .nm-talk p { margin: 0; font-size: 14.5px; line-height: 1.75; word-break: keep-all; }
        .nm-talk p + p { margin-top: 8px; }
        .nm-tg { font-size: 13.5px !important; color: #8a5a72; }
        .nm-rev { font-size: 13px !important; color: #9a7088; }
        .nm-acts { display: flex; gap: 8px; }
        .nm-acts button { flex: 1; border: 1.5px solid #ffc6d9; background: #fff; border-radius: 16px; padding: 12px 8px; font: inherit; font-size: 14.5px; font-weight: bold; cursor: pointer; color: #6a3d55; }
        .nm-acts .nm-main { flex: 1.4; border: none; background: linear-gradient(135deg, #ff9fbd, #ff6f9c); color: #fff; box-shadow: 0 4px 12px rgba(255,111,156,.3); }
        @media (prefers-reduced-motion: reduce) { .nm-float, .nm-hero span, .nm-heart, .nm-pair span, .nm-room.nm-tense .nm-pyr { animation: none; } }

        /* ===== 🧠 심리테스트 (psy-) ===== */
        .psy-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(170deg, #fdf3ff 0%, #fff0f6 55%, #fff6ec 100%); }
        .psy-room.show { display: block; }
        .psy-room [hidden] { display: none !important; }
        .psy-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(253,243,255,.92); backdrop-filter: blur(6px); }
        .psy-bar b { flex: 1; text-align: center; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .psy-sp, .psy-x { width: 38px; height: 38px; flex: none; }
        .psy-x { border-radius: 50%; border: 1.5px solid #ecd3f0; background: #fff; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .psy-wrap { max-width: 460px; margin: 0 auto; padding: 4px 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .psy-step { display: flex; flex-direction: column; gap: 12px; animation: psyIn .35s ease both; }
        @keyframes psyIn { from { opacity: 0; transform: translateY(8px); } }
        .psy-lead { margin: 4px 0 0; font-weight: bold; font-size: 15px; }
        .psy-note { margin: 0; font-size: 12.5px; color: #a08890; text-align: center; line-height: 1.6; word-break: keep-all; }
        .psy-tests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .psy-card { position: relative; border: none; border-radius: 20px; padding: 14px 10px 12px; cursor: pointer; font-family: inherit; color: #5a3d4a; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
            background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 5px 14px rgba(160,100,140,.12); transition: transform .15s; }
        .psy-card:active { transform: scale(.96); }
        .psy-card-e { font-size: 38px; animation: psyBob 3s ease-in-out infinite; } .psy-card:nth-child(2n) .psy-card-e { animation-delay: -1.5s; }
        @keyframes psyBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
        .psy-card b { font-size: 14.5px; word-break: keep-all; }
        .psy-card small { font-size: 11.5px; color: #8a6a78; word-break: keep-all; }
        .psy-card i { margin-top: 4px; font-style: normal; font-size: 11px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 3px 9px; color: #c2547c; font-weight: bold; }
        .psy-card i.new { color: #8a6a78; font-weight: normal; }
        .psy-prog { height: 8px; border-radius: 999px; background: #f3e3ee; overflow: hidden; margin-top: 4px; }
        .psy-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7b2d0, #c79bf2); transition: width .3s; }
        .psy-qn { text-align: center; font-weight: bold; font-size: 22px; color: #c2547c; } .psy-qn small { font-size: 14px; color: #b09aa6; }
        .psy-qcard { border-radius: 22px; padding: 26px 18px; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 6px 16px rgba(160,100,140,.12); }
        .psy-qcard p { margin: 0; text-align: center; font-size: 17px; font-weight: bold; line-height: 1.6; word-break: keep-all; }
        .psy-opts { display: flex; flex-direction: column; gap: 8px; }
        .psy-opts button { border: 2px solid #f0dbe7; background: #fff; border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 15px; text-align: left; color: #5a3d4a; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; word-break: keep-all; }
        .psy-opts button:hover { border-color: #f5b5cf; }
        .psy-opts button.on { background: #ffe3ef; border-color: #ff8fb4; transform: scale(.98); font-weight: bold; }
        .psy-hero { text-align: center; border-radius: 26px; padding: 18px 16px 20px; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 8px 20px rgba(160,100,140,.16); animation: psyPop .5s cubic-bezier(.2,1.4,.4,1) both; }
        @keyframes psyPop { from { opacity: 0; transform: scale(.85); } }
        .psy-hero small { font-size: 12.5px; color: #8a6a78; }
        .psy-big { display: block; font-size: 76px; line-height: 1.2; margin: 6px 0 2px; animation: psyBob 2.6s ease-in-out infinite; }
        .psy-hero h3 { margin: 0; font-size: 23px; }
        .psy-hero p { margin: 6px 0 0; font-size: 14px; color: #7a5a68; word-break: keep-all; }
        .psy-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
        .psy-tags span { background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: bold; color: #c2547c; }
        .psy-talk { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
        .psy-talk p { margin: 0; font-size: 14.5px; line-height: 1.75; word-break: keep-all; }
        .psy-match { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 14px; background: #fdf3ff; }
        .psy-match span { font-size: 30px; } .psy-match small { display: block; font-size: 11.5px; color: #9a7a88; } .psy-match b { font-size: 14.5px; }
        .psy-tip { color: #a0507a; font-weight: bold; font-size: 14px !important; }
        .psy-acts { display: flex; gap: 8px; }
        .psy-acts button, .psy-other { flex: 1; border: 1.5px solid #ecd3f0; background: #fff; border-radius: 16px; padding: 12px 8px; font: inherit; font-size: 14.5px; font-weight: bold; cursor: pointer; color: #5a3d4a; }
        .psy-acts .psy-main { flex: 1.4; border: none; background: linear-gradient(135deg, #f7a8c8, #c79bf2); color: #fff; box-shadow: 0 4px 12px rgba(199,155,242,.35); }
        .psy-other { background: transparent; border-style: dashed; }
        @media (prefers-reduced-motion: reduce) { .psy-card-e, .psy-big { animation: none; } }
        .nm-snd { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #ffd0df; background: #fff; font-size: 15px; cursor: pointer; padding: 0; z-index: 2; }

        /* ===== ✨ 결과 보기 연출 (rit-) : 꿈해몽 · 토정비결 · 심리테스트 ===== */
        .rit { --c1: #fff; --c2: #ffd6f0; --glow: rgba(255,214,240,.75); --ink: #fff; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 54px 0 40px; min-height: 360px; }
        .rit-night { --c1: #fff8e1; --c2: #c9b8ff; --glow: rgba(214,196,255,.8); --ink: #fff; }
        .rit-paper { --c1: #fffaf0; --c2: #f0c48a; --glow: rgba(214,120,60,.45); --ink: #5a3d2a; }
        .rit-pink { --c1: #fff; --c2: #ffc3dc; --glow: rgba(255,143,180,.55); --ink: #a0507a; }
        .rit-orb { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
            background: radial-gradient(circle at 38% 32%, var(--c1), var(--c2) 70%); box-shadow: 0 0 40px var(--glow), 0 0 90px var(--glow), inset 0 -10px 24px rgba(0,0,0,.08);
            animation: ritFloat 3s ease-in-out infinite, ritGlow 2.4s ease-in-out infinite; }
        .rit-ico { font-size: 66px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); animation: ritSpin 6s ease-in-out infinite; }
        .rit-ring { position: absolute; inset: -16px; border-radius: 50%; border: 2px dashed var(--c2); opacity: .7; animation: ritRot 9s linear infinite; }
        .rit-ring.r2 { inset: -30px; border-style: dotted; opacity: .45; animation-duration: 14s; animation-direction: reverse; }
        .rit-dust { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--glow);
            transform: rotate(var(--a)) translateY(-92px); animation: ritDust 2.4s ease-in-out infinite; animation-delay: var(--d); }
        .rit-msg { margin: 0; min-height: 26px; font-size: 16.5px; font-weight: bold; color: var(--ink); text-align: center; opacity: 0; word-break: keep-all; }
        .rit-msg.on { animation: ritMsg .6s ease both; }
        .rit-count { height: 64px; font-size: 56px; font-weight: bold; color: var(--ink); text-shadow: 0 0 20px var(--glow); }
        .rit-count.pop { animation: ritCount .9s ease both; }
        .rit.charge .rit-orb { animation: ritShake .18s linear infinite, ritGlow .6s ease-in-out infinite; }
        .rit.charge .rit-ring { animation-duration: 2s; }
        .rit.burst .rit-orb { animation: ritBurst .45s ease-in forwards; }
        .rit-up { animation: ritUp .6s cubic-bezier(.2,.8,.3,1) both; }
        @keyframes ritFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        @keyframes ritGlow { 0%, 100% { box-shadow: 0 0 30px var(--glow), 0 0 70px var(--glow); } 50% { box-shadow: 0 0 50px var(--glow), 0 0 120px var(--glow); } }
        @keyframes ritSpin { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }
        @keyframes ritRot { to { transform: rotate(360deg); } }
        @keyframes ritDust { 0%, 100% { opacity: .2; transform: rotate(var(--a)) translateY(-86px) scale(.6); } 50% { opacity: 1; transform: rotate(calc(var(--a) + 20deg)) translateY(-104px) scale(1.2); } }
        @keyframes ritMsg { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
        @keyframes ritCount { 0% { opacity: 0; transform: scale(2.2); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.7); } }
        @keyframes ritShake { 0%, 100% { transform: translate(0, 0) scale(1.04); } 25% { transform: translate(-2px, 1px) scale(1.06); } 75% { transform: translate(2px, -1px) scale(1.05); } }
        @keyframes ritBurst { 0% { transform: scale(1.05); opacity: 1; } 60% { transform: scale(1.5); opacity: .9; filter: brightness(1.6); } 100% { transform: scale(2.4); opacity: 0; filter: brightness(2.2); } }
        @keyframes ritUp { from { opacity: 0; transform: translateY(22px) scale(.97); } }
        @media (prefers-reduced-motion: reduce) { .rit-orb, .rit-ico, .rit-ring, .rit-dust, .rit.charge .rit-orb { animation: none; } }

        /* ===== 💌 익명 편지함 (lb-) ===== */
        .lb-room { position: fixed; inset: 0; z-index: 1600; display: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; color: #5a3d4a; background: linear-gradient(170deg, #fff4ea 0%, #fff0f5 60%, #f3efff 100%); }
        .lb-room.show { display: block; }
        .lb-room [hidden] { display: none !important; }
        .lb-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(255,244,234,.93); backdrop-filter: blur(6px); }
        .lb-bar b { flex: 1; text-align: center; font-size: 17px; }
        .lb-sp, .lb-x { width: 38px; height: 38px; flex: none; }
        .lb-x { border-radius: 50%; border: 1.5px solid #f3d6c8; background: #fff; color: #5a3d4a; font-size: 16px; cursor: pointer; }
        .lb-wrap { max-width: 460px; margin: 0 auto; padding: 0 16px max(30px, env(safe-area-inset-bottom)); box-sizing: border-box; }
        .lb-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 12px; }
        .lb-post { font-size: 46px; animation: lbBob 3s ease-in-out infinite; }
        .lb-head p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #8a6a78; } .lb-head b { color: #e2557f; font-size: 15px; }
        @keyframes lbBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
        .lb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
        .lb-tabs button { position: relative; border: 1.5px solid #f3d6c8; background: #fff; border-radius: 14px; padding: 10px 4px; font: inherit; font-size: 13.5px; font-weight: bold; color: #7a5a68; cursor: pointer; }
        .lb-tabs button.on { background: linear-gradient(135deg, #ffb3c8, #ff8fae); border-color: transparent; color: #fff; }
        .lb-tabs i { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #ff4f86; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; animation: lbPing 1.4s ease-in-out infinite; }
        @keyframes lbPing { 50% { transform: scale(1.18); } }
        .lb-sec { display: flex; flex-direction: column; gap: 10px; animation: lbIn .35s ease both; }
        @keyframes lbIn { from { opacity: 0; transform: translateY(8px); } }
        .lb-wait, .lb-empty { text-align: center; padding: 34px 10px; color: #9a7a88; font-size: 14px; line-height: 1.8; }
        .lb-wait span, .lb-empty span { display: block; font-size: 44px; margin-bottom: 6px; animation: lbBob 1.6s ease-in-out infinite; }
        .lb-empty button { margin-top: 12px; border: none; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: bold; color: #fff; background: linear-gradient(135deg, #ffb3c8, #ff8fae); cursor: pointer; }
        .lb-list { display: flex; flex-direction: column; gap: 8px; }
        .lb-env { display: flex; align-items: center; gap: 12px; border: none; text-align: left; font: inherit; color: #5a3d4a; cursor: pointer; padding: 14px; border-radius: 16px;
            background: var(--bg); box-shadow: 0 4px 12px rgba(160,100,120,.12), inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 35%, transparent); animation: lbIn .4s ease both; animation-delay: var(--d); }
        .lb-env:not(.read) { box-shadow: 0 6px 16px rgba(255,111,156,.25), inset 0 0 0 2px var(--ac); }
        .lb-seal { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
        .lb-env:not(.read) .lb-seal { background: radial-gradient(circle at 35% 30%, #ff9fbd, #e2557f); animation: lbPing 1.6s ease-in-out infinite; }
        .lb-env-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .lb-env-t b { font-size: 14.5px; } .lb-env-t small { font-size: 12px; color: #9a7a88; }
        .lb-left { margin: 0; text-align: center; font-size: 13px; color: #8a6a78; } .lb-left b { color: #e2557f; }
        .lb-sent { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 35%, transparent); }
        .lb-sent-s { font-size: 24px; flex: none; } .lb-sent > div { flex: 1; min-width: 0; }
        .lb-sent p { margin: 0; font-size: 13.5px; line-height: 1.5; word-break: break-all; } .lb-sent small { font-size: 11.5px; color: #9a7a88; }
        .lb-sent i { flex: none; font-style: normal; font-size: 11.5px; font-weight: bold; padding: 4px 8px; border-radius: 999px; background: #fff; color: #9a7a88; white-space: nowrap; }
        .lb-sent i.st-arrived { color: #3d9be0; } .lb-sent i.st-replied { color: #fff; background: #ff8fae; }
        .lb-sheet, .lb-letter { position: relative; border-radius: 18px; padding: 22px 20px 16px; background: var(--bg, #fff0f5);
            box-shadow: 0 8px 22px rgba(160,100,120,.15), inset 0 6px 0 color-mix(in srgb, var(--ac, #ff7fa3) 45%, transparent); transition: transform .45s ease, opacity .45s ease; }
        .lb-sheet.fold { transform: scale(.4) rotate(-8deg); opacity: 0; }
        .lb-stk { position: absolute; top: 10px; right: 14px; font-size: 30px; animation: lbBob 3s ease-in-out infinite; }
        .lb-to { margin: 0 0 6px; font-weight: bold; color: var(--ac, #ff7fa3); font-size: 15px; }
        .lb-sheet textarea, .lb-letter .lb-body { background: repeating-linear-gradient(transparent 0 34px, var(--line, #ffd1e1) 34px 35px); background-attachment: local; }
        .lb-sheet textarea { width: 100%; min-height: 210px; box-sizing: border-box; border: none; resize: vertical; font-family: 'Gaegu', cursive; font-size: 21px; line-height: 35px; color: #5a3d4a; outline: none; padding: 0; user-select: text; -webkit-user-select: text; }
        .lb-from { margin: 4px 0 0; text-align: right; font-size: 13px; color: #9a7a88; }
        .lb-count { text-align: right; font-size: 12px; color: #b09aa6; margin-top: -4px; }
        .lb-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
        .lb-ideas button { border: 1.5px dashed #f3c6d6; background: #fff; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; color: #8a6a78; cursor: pointer; }
        .lb-pick { display: flex; align-items: center; gap: 10px; } .lb-pick small { flex: none; width: 40px; font-size: 12px; color: #9a7a88; }
        .lb-pick > div { display: flex; gap: 6px; flex-wrap: wrap; }
        #lbPapers button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff; background: var(--bg); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ac) 45%, transparent); font-size: 16px; cursor: pointer; padding: 0; }
        #lbStks button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #f3d6c8; background: #fff; font-size: 18px; cursor: pointer; padding: 0; }
        #lbPapers button.on, #lbStks button.on { box-shadow: 0 0 0 3px #ff8fae; transform: scale(1.08); }
        .lb-send { border: none; border-radius: 999px; padding: 15px; font: inherit; font-size: 17px; font-weight: bold; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ff9fbd, #ff6f9c); box-shadow: 0 6px 16px rgba(255,111,156,.35); }
        .lb-send:disabled { opacity: .6; }
        .lb-rule { margin: 0; text-align: center; font-size: 12px; line-height: 1.7; color: #a08890; word-break: keep-all; }
        .lb-replyto { font-size: 13px; color: #8a6a78; background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 4px solid #ffb3c8; word-break: break-all; }
        .lb-stage { position: relative; }
        .lb-letter .lb-body { font-family: 'Gaegu', cursive; font-size: 21px; line-height: 35px; min-height: 140px; word-break: break-all; white-space: normal; }
        .lb-orig { margin: 0 0 8px; padding-right: 40px; font-size: 12.5px; color: #9a7a88; word-break: break-all; }
        .lb-envbig { display: none; }
        .lb-stage.anim .lb-envbig { display: block; position: absolute; left: 50%; top: 40px; width: 220px; height: 140px; margin-left: -110px; border-radius: 12px; z-index: 2;
            background: linear-gradient(160deg, #fff, #ffe9f0); box-shadow: 0 10px 26px rgba(160,100,120,.25), inset 0 0 0 2px var(--ac); animation: lbEnvAway .5s ease 1.3s forwards; }
        .lb-flap { position: absolute; left: 0; right: 0; top: 0; height: 80px; transform-origin: top; background: linear-gradient(160deg, #ffe0ea, #ffc9da); clip-path: polygon(0 0, 100% 0, 50% 100%); animation: lbFlap .6s ease .35s forwards; }
        .lb-seal2 { position: absolute; left: 50%; top: 58px; transform: translate(-50%, -50%); font-size: 30px; z-index: 1; animation: lbSealPop .35s ease .15s forwards; }
        .lb-stage.anim .lb-letter { animation: lbRise .8s cubic-bezier(.2,.8,.3,1) .9s both; }
        @keyframes lbFlap { to { transform: rotateX(180deg); } }
        @keyframes lbSealPop { to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
        @keyframes lbEnvAway { to { transform: translateY(60px) scale(.8); opacity: 0; } }
        @keyframes lbRise { from { opacity: 0; transform: translateY(60px) scale(.9); } }
        .lb-acts { display: flex; gap: 8px; }
        .lb-acts button { flex: 1; border: 1.5px solid #f3d6c8; background: #fff; border-radius: 16px; padding: 12px 8px; font: inherit; font-size: 14.5px; font-weight: bold; cursor: pointer; color: #5a3d4a; }
        .lb-acts .lb-main { flex: 1.2; border: none; background: linear-gradient(135deg, #ff9fbd, #ff6f9c); color: #fff; }
        .lb-report { align-self: center; border: none; background: none; font: inherit; font-size: 12.5px; color: #b09aa6; text-decoration: underline; cursor: pointer; }
        .lb-fly { position: fixed; z-index: 1700; width: 0; height: 0; pointer-events: none; }
        .lb-fly-env { position: absolute; font-size: 54px; transform: translate(-50%, -50%); animation: lbFlyAway 1.6s cubic-bezier(.5,0,.7,.4) forwards; }
        .lb-fly i { position: absolute; font-style: normal; font-size: 18px; opacity: 0; animation: lbTrail 1.4s ease-out forwards; animation-delay: calc(var(--i) * .08s + .2s); }
        @keyframes lbFlyAway { 0% { transform: translate(-50%, -50%) scale(.6) rotate(0); } 20% { transform: translate(-50%, -60%) scale(1.15) rotate(-10deg); } 100% { transform: translate(140px, -520px) scale(.4) rotate(25deg); opacity: 0; } }
        @keyframes lbTrail { 0% { opacity: 0; transform: translate(calc(var(--i) * 14px), calc(var(--i) * -50px)); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--i) * 14px - 20px), calc(var(--i) * -50px + 40px)) scale(.5); } }
        @media (prefers-reduced-motion: reduce) { .lb-post, .lb-stk, .lb-env:not(.read) .lb-seal, .lb-tabs i { animation: none; } }

        /* ===== 🔊 소리 설정 (snd-) ===== */
        .snd-fx.off { opacity: .75; }
        #sndSwitches { display: flex; flex-direction: column; gap: 6px; }
        .snd-vol { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff7fa; border: 1px solid #f6dde6; }
        .snd-vol input[type="range"] { flex: 1; width: auto; margin: 0; accent-color: var(--primary-accent, #ff6b81); }
        .snd-vol b { min-width: 28px; text-align: right; font-size: 13px; color: #8a6a78; }
        .snd-note { margin: 2px 0 0; font-size: 11.5px; color: #999; }

        /* ===== 🍀 오늘의 행운 : 기회 5번 ===== */
        .lk-chance { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 10px; }
        .lk-chance i { display: grid; place-items: center; transition: filter .3s, opacity .3s, transform .3s; }
        .lk-chance i.used { filter: grayscale(1); opacity: .3; transform: scale(.8); }
        .lk-chance i.pop { animation: lkLose .6s ease; }
        @keyframes lkLose { 0% { filter: none; opacity: 1; transform: scale(1.4) rotate(-20deg); } 100% { filter: grayscale(1); opacity: .3; transform: scale(.8); } }
        .lk-chance b { margin-left: 8px; font-size: 14px; color: #4f8a45; } .lk-chance b span { font-size: 18px; color: #2f9a3f; }
        .lk-chance.last b span { color: #e2557f; animation: lkBeat .8s ease-in-out infinite; display: inline-block; }
        @keyframes lkBeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } 40% { transform: scale(1); } 55% { transform: scale(1.2); } }
        .lk-hint.pop { animation: lkHintIn .4s ease; }
        @keyframes lkHintIn { from { opacity: 0; transform: translateY(6px); } }
        .lk-field.last { animation: lkTense 1.6s ease-in-out infinite; }
        @keyframes lkTense { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,156,0); } 50% { box-shadow: 0 0 0 4px rgba(255,111,156,.35), 0 0 24px rgba(255,111,156,.3); } }
        .lk-field.over .lk-cl { pointer-events: none; }
        .lk-field.over .lk-cl:not(.four) svg { opacity: .2; transition: opacity .6s; }
        .lk-cl.four.reveal svg { filter: drop-shadow(0 0 6px #fff7a0) drop-shadow(0 0 12px #ffe14d); }
        .lk-cl.four.reveal { animation: lkReveal 1.2s ease-in-out infinite; }
        @keyframes lkReveal { 0%, 100% { transform: rotate(var(--r)) scale(1.1); } 50% { transform: rotate(var(--r)) scale(1.3); } }
        .lk-lose { align-items: center; text-align: center; gap: 10px; background: linear-gradient(170deg, #f4f1ff, #fffdf6); border-color: #cbbcf0; }
        .lk-moon { font-size: 46px; animation: lkFloat 3s ease-in-out infinite; }
        @keyframes lkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
        .lk-lose > b { font-size: 18px; color: #6a55a8; }
        .lk-lose p { margin: 0; font-size: 15px; line-height: 1.8; color: #6a6a7a; }
        .lk-tmr { font-size: 17px; color: #e2557f; }
        .lk-sleep { position: relative; opacity: .8; transform: rotate(-12deg); }
        .lk-sleep span { position: absolute; right: -26px; top: -6px; font-size: 13px; font-weight: bold; color: #9a8ac8; animation: lkFloat 2.4s ease-in-out infinite; }
        @media (prefers-reduced-motion: reduce) { .lk-field.last, .lk-cl.four.reveal, .lk-moon, .lk-chance.last b span { animation: none; } }
        .lk-wait { text-align: center; padding: 60px 0; color: #4f8a45; } .lk-wait span { display: inline-block; font-size: 46px; animation: lkFloat 1.4s ease-in-out infinite; } .lk-wait p { margin: 10px 0 0; }

        /* ===== 🐷 말랑달콤 저금통 (js/piggy.js) ===== */
        .svc-pig { background: linear-gradient(160deg, #fff0f5, #ffe3ec); border-color: #ffb3c8 !important; }
        .svc-pig .svc-cat-icon { animation: pgBeat 1.6s ease-in-out infinite; display: inline-block; }
        .pg-content { max-width: 440px; padding: 16px 16px 18px; background: #fffafc; }
        .pg-wrap { display: flex; flex-direction: column; gap: 14px; color: #5a4650; }
        .pg-hero { position: relative; text-align: center; padding: 6px 0 14px; border-radius: 22px;
            background: radial-gradient(circle at 50% 35%, #fff 0, #ffeaf1 55%, #ffd9e6 100%); overflow: hidden; }
        .pg-hero::before, .pg-hero::after { content: '♥'; position: absolute; color: #ffc2d4; font-size: 18px; animation: pgFloat 3.4s ease-in-out infinite; }
        .pg-hero::before { left: 16px; top: 22px; } .pg-hero::after { right: 20px; bottom: 30px; font-size: 14px; animation-delay: 1.2s; }
        .pg-pig { width: 188px; height: auto; display: block; margin: 0 auto -2px; overflow: visible; }
        .pg-coin { transform-box: fill-box; transform-origin: center; opacity: 0; }
        .pg-body { transform-box: fill-box; transform-origin: 50% 100%; }
        .pg-spark path { transform-box: fill-box; transform-origin: center; animation: pgTwinkle 2s ease-in-out infinite; }
        .pg-spark path:nth-child(2) { animation-delay: .7s; } .pg-spark path:nth-child(3) { animation-delay: 1.3s; }
        .pg-hero.play .pg-coin { animation: pgDrop 3.2s cubic-bezier(.5,0,.75,.4) infinite; }
        .pg-hero.play .pg-body { animation: pgBounce 3.2s ease-in-out infinite; }
        .pg-hero-t { font-size: 25px; font-weight: 900; color: #ff6b93; letter-spacing: -.5px; text-shadow: 0 2px 0 #fff; }
        .pg-hero-s { font-size: 13.5px; color: #b0607e; margin-top: 2px; word-break: keep-all; padding: 0 10px; }
        .pg-thanks { text-align: center; padding: 10px 12px; border-radius: 16px; background: linear-gradient(90deg, #ffe0ec, #fff3c4); color: #c2456f; font-size: 14px; font-weight: bold; }
        .pg-thanks b { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: #ff6b93; color: #fff; }
        .pg-letter { position: relative; padding: 16px 16px 12px; border-radius: 16px; background: #fff;
            background-image: repeating-linear-gradient(transparent 0 25px, #ffe1ea 25px 26px); line-height: 26px;
            border: 1.5px dashed #ffc2d4; font-size: 14px; word-break: keep-all; }
        .pg-letter::before { content: ''; position: absolute; top: -9px; left: 50%; width: 76px; height: 18px; transform: translateX(-50%) rotate(-3deg);
            background: repeating-linear-gradient(45deg, #ffd1df 0 6px, #ffe6ee 6px 12px); opacity: .9; border-radius: 2px; }
        .pg-letter p { margin: 0 0 6px; } .pg-letter b { color: #e2557f; }
        .pg-sign { text-align: right; color: #a77a8c; font-size: 13px; }
        .pg-sec { background: #fff; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 3px 12px rgba(255, 120, 160, .12); }
        .pg-sec-t { font-size: 16.5px; font-weight: 900; color: #ff6b93; margin-bottom: 10px; }
        .pg-sec-t span { font-size: 12px; font-weight: bold; color: #fff; background: #ffa5c0; border-radius: 10px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
        .pg-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
        .pg-tab { flex: 1; padding: 9px 4px; border-radius: 14px; border: 2px solid #ffd1df; background: #fff7fa; color: #b0607e; font: inherit; font-weight: bold; font-size: 14px; cursor: pointer; transition: all .2s; }
        .pg-tab small { display: block; font-size: 11px; font-weight: normal; opacity: .8; }
        .pg-tab.on { background: linear-gradient(160deg, #ff8fb1, #ff6b93); border-color: #ff6b93; color: #fff; box-shadow: 0 4px 10px rgba(255, 107, 147, .3); }
        .pg-gift-d { font-size: 12.5px; color: #a07888; margin: 0 0 10px; text-align: center; word-break: keep-all; }
        .pg-tapes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; max-height: 240px; overflow-y: auto; padding: 4px 4px 2px; }
        .pg-tp { display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .pg-tp span { display: block; width: 100%; height: 24px; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
        .pg-tp small, .pg-pt small { font-size: 11.5px; color: #8a6a58; text-align: center; }
        .pg-pats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
        .pg-pt { display: flex; flex-direction: column; align-items: center; gap: 5px; }
        .pg-pt-sw { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ffd1df, 0 3px 8px rgba(0,0,0,.08); }
        .pg-pt-sw { overflow: hidden; position: relative; }
        .pg-pt-sw i { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
        .pg-promise { list-style: none; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #fff5f8; font-size: 13px; line-height: 1.7; word-break: keep-all; }
        .pg-promise b { color: #e2557f; }
        .pg-steps { list-style: none; counter-reset: pg; margin: 0 0 12px; padding: 0; font-size: 13.5px; word-break: keep-all; }
        .pg-steps li { counter-increment: pg; position: relative; padding: 2px 0 10px 36px; line-height: 1.55; }
        .pg-steps li::before { content: counter(pg); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
            background: linear-gradient(160deg, #ffa5c0, #ff6b93); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
        .pg-steps li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 28px; bottom: 0; border-left: 2px dotted #ffc2d4; }
        .pg-steps li > b { color: #c2456f; } .pg-steps li span { color: #8c6f7c; font-size: 12.5px; } .pg-steps li span b { color: #e2557f; }
        .pg-code-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
        .pg-code { flex: 1; padding: 7px 10px; border-radius: 12px; background: #fff3c4; border: 2px dashed #ffcf4d; font-weight: 900; font-size: 17px; letter-spacing: 1px; color: #8a5a00; text-align: center; user-select: all; }
        .pg-code.none { font-size: 12.5px; font-weight: bold; letter-spacing: 0; color: #a08a60; }
        .pg-mini { padding: 6px 10px; font-size: 13px; flex-shrink: 0; }
        .pg-mini:disabled { opacity: .45; cursor: default; }
        .pg-send { border-radius: 18px; overflow: hidden; border: 2px solid #ffc2d4; background: #fff; }
        .pg-send-top { background: linear-gradient(90deg, #ff8fb1, #ffb3c8); color: #fff; font-weight: 900; padding: 9px 14px; font-size: 15px; }
        .pg-send-top small { font-size: 11.5px; font-weight: bold; background: #fee500; color: #3c1e1e; border-radius: 8px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
        .pg-send-body { padding: 2px 0 0; }
        .pg-send-wait { text-align: center; font-size: 13px; color: #a07888; margin: 12px; line-height: 1.6; }
        .pg-send-note { margin: 0 12px 12px; font-size: 11.5px; color: #a07888; text-align: center; word-break: keep-all; }
        .pg-qr { width: 170px; height: 170px; margin: 14px auto 8px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px #ffd1df, 0 4px 12px rgba(255, 107, 147, .15);
            display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #a07888; }
        .pg-qr svg { width: 100%; height: 100%; display: block; }
        .pg-qr-code { text-align: center; font-size: 13px; color: #8c6f7c; margin: 0 12px 10px; }
        .pg-qr-code b { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 10px; background: #fff3c4; border: 2px dashed #ffcf4d; color: #8a5a00; font-size: 15px; letter-spacing: 1px; user-select: all; }
        .pg-go { font-size: 16px !important; padding: 13px !important; }
        .pg-go:disabled { opacity: .5; }
        .pg-copy { width: calc(100% - 24px); margin: 10px 12px 12px; justify-content: center; padding: 10px; font-size: 15px; border-radius: 14px; background: linear-gradient(160deg, #ff8fb1, #ff6b93); border-color: #ff6b93; color: #fff; }
        .pg-foot { text-align: center; font-size: 14px; color: #c2456f; font-weight: bold; line-height: 1.7; padding: 4px 0 2px; word-break: keep-all; }
        .pg-foot small { font-weight: normal; color: #a07888; font-size: 12px; }
        @keyframes pgDrop { 0%, 8% { transform: translateY(-34px) rotate(-20deg); opacity: 0; } 14% { opacity: 1; } 24% { transform: translateY(14px) rotate(0); opacity: 1; } 27%, 100% { transform: translateY(26px); opacity: 0; } }
        @keyframes pgBounce { 0%, 24% { transform: scale(1, 1); } 29% { transform: scale(1.06, .93); } 35% { transform: scale(.97, 1.04); } 41%, 100% { transform: scale(1, 1); } }
        @keyframes pgTwinkle { 0%, 100% { transform: scale(.5); opacity: .3; } 50% { transform: scale(1.15); opacity: 1; } }
        @keyframes pgFloat { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-8px); opacity: 1; } }
        @keyframes pgBeat { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(.96); } 32% { transform: scale(1.14); } }
        @media (prefers-reduced-motion: reduce) { .pg-hero.play .pg-coin, .pg-hero.play .pg-body, .pg-spark path, .pg-hero::before, .pg-hero::after, .svc-pig .svc-cat-icon { animation: none; } }

        /* ===== 🖼️ 말랑달콤 배경화면 (js/wall.js · 탭 · 단계 · QR 은 저금통 모양을 같이 써요) ===== */
        .wl-hero { text-align: center; padding: 16px 10px; border-radius: 20px; background: linear-gradient(135deg, #ffe3ec, #e9e1ff 55%, #d9f2ff); }
        .wl-hero-t { font-size: 18px; font-weight: 900; color: #c2456f; }
        .wl-hero-s { font-size: 13px; color: #8c6f9c; margin-top: 4px; word-break: keep-all; }
        .wl-guide { margin: 10px auto 0; padding: 6px 14px; border-radius: 14px; font-size: 13px; background: #fff; border-color: #ffb3c8; color: #c2456f; }
        .wl-link { color: #e2557f; font-weight: bold; text-decoration: underline; text-underline-offset: 2px; }
        .wl-empty { text-align: center; color: #a07888; font-size: 14px; line-height: 1.7; padding: 26px 0; margin: 0; }
        .wl-grid { display: grid; gap: 12px; }
        .wl-grid.phone { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
        .wl-grid.pc { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
        .wl-card { background: #fff; border-radius: 16px; padding: 6px 6px 8px; box-shadow: 0 3px 12px rgba(255, 120, 160, .14); display: flex; flex-direction: column; gap: 5px; }
        /* 기기 모양 : 📱 휴대폰(검은 테두리 · 그림을 가리지 않게 카메라 없이) · 💻 PC 탭은 아이패드(가로 · 카메라는 테두리에) */
        .wl-pre { display: block; width: 100%; border: none; cursor: pointer; }
        .wl-dev { position: relative; background: linear-gradient(145deg, #3a3a40, #1c1c1f); box-shadow: inset 0 0 0 1.5px #55555c, 0 6px 14px rgba(0,0,0,.18); }
        .wl-dev.phone { aspect-ratio: 9 / 18.6; padding: 5px; border-radius: 22px; }
        .wl-dev.pc { aspect-ratio: 1.44; padding: 8px; border-radius: 16px; }
        .wl-scr { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #f6eef2; }
        .wl-dev.phone .wl-scr { border-radius: 17px; }
        .wl-dev.pc .wl-scr { border-radius: 7px; }
        .wl-dev.pc::after { content: ''; position: absolute; top: 3px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #6b6b75; }
        .wl-dev.phone::before { content: ''; position: absolute; right: -2px; top: 26%; width: 2.5px; height: 14%; border-radius: 2px; background: #2a2a2f; }
        .wl-scr img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
        .wl-pre:hover .wl-scr img { transform: scale(1.04); }
        .wl-no { position: absolute; left: 6px; bottom: 6px; z-index: 1; font-size: 11px; font-weight: bold; color: #fff; background: rgba(0,0,0,.35); border-radius: 8px; padding: 1px 7px; }
        .wl-name { font-size: 13.5px; font-weight: bold; color: #5a4650; padding: 0 2px; word-break: keep-all; }
        .wl-buy { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 2px; }
        .wl-buy b { color: #e2557f; font-size: 14px; }
        .wl-get { padding: 4px 9px; font-size: 12.5px; border-radius: 10px; background: #fff0f5; border-color: #ffb3c8; color: #c2456f; }
        .wl-note { text-align: center; font-size: 12.5px; color: #a07888; line-height: 1.7; word-break: keep-all; }
        .wl-sheet { position: sticky; bottom: 0; }
        .wl-sheet-box { background: #fff; border: 2px solid #ffb3c8; border-radius: 20px; padding: 14px 14px 12px; box-shadow: 0 -6px 20px rgba(255, 107, 147, .18); }
        .wl-sheet-t { font-size: 16px; font-weight: 900; color: #c2456f; margin-bottom: 10px; text-align: center; }
        .wl-sheet-t b { margin-left: 4px; padding: 1px 9px; border-radius: 10px; background: #ff6b93; color: #fff; font-size: 14px; }
        .wl-pc { text-align: center; font-size: 12.5px; color: #8c6f7c; margin: 0 0 10px; line-height: 1.6; word-break: keep-all; }
        .wl-pc b { color: #e2557f; }
        .wl-close { width: 100%; justify-content: center; margin-top: 4px; font-size: 13px; }
        .wl-view { position: fixed; inset: 0; z-index: 1300; background: rgba(60, 30, 45, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
        .wl-view[hidden] { display: none; }
        .wl-view-box { background: #fff; border-radius: 22px; padding: 12px; width: min(92vw, 360px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
        .wl-view-box.pc { width: min(94vw, 720px); }
        .wl-view-frame { margin: 0 auto; max-height: 70vh; }
        .wl-view-frame.phone { width: min(100%, calc(70vh * 9 / 18.6)); padding: 7px; border-radius: 30px; }
        .wl-view-frame.phone .wl-scr { border-radius: 23px; }
        .wl-view-frame.pc { padding: 12px; border-radius: 22px; }
        .wl-view-frame.pc::after { top: 4.5px; width: 4px; height: 4px; margin-left: -2px; }
        .wl-view-t { text-align: center; font-weight: 900; color: #c2456f; margin: 10px 0 8px; font-size: 15px; }
        .wl-view-t b { margin-left: 4px; padding: 1px 9px; border-radius: 10px; background: #ff6b93; color: #fff; font-size: 13.5px; }
        .wl-view-btns { display: flex; gap: 8px; }
        .wl-view-btns .btn { flex: 1; justify-content: center; padding: 10px; }
        .wl-view-btns .pg-copy { width: auto; margin: 0; }
        .pg-go small { font-size: 12px; font-weight: normal; opacity: .9; margin-left: 2px; }
        .wl-ico { width: 1.5rem; height: 2.2rem; display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 2px 3px rgba(255, 107, 147, .25)); }
        .wl-ico-sky { animation: wlSky 6s ease-in-out infinite alternate; }
        .wl-ico-cloud { animation: wlCloud 4s ease-in-out infinite alternate; }
        .wl-ico-heart { transform-box: fill-box; transform-origin: center; animation: pgBeat 1.6s ease-in-out infinite; }
        @keyframes wlSky { to { transform: translate(-20px, -20px); } }
        @keyframes wlCloud { to { transform: translateX(4px); } }
        @media (prefers-reduced-motion: reduce) { .wl-ico-sky, .wl-ico-cloud, .wl-ico-heart { animation: none; } }
        .wl-wait { text-align: center; padding: 40px 0 34px; color: #a07888; font-size: 14px; }
        .wl-wait p { margin: 12px 0 0; }
        .wl-wait-ico { width: 2.6rem; height: 3.8rem; animation: wlBob 1.2s ease-in-out infinite; }
        @keyframes wlBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
        @media (prefers-reduced-motion: reduce) { .wl-wait-ico { animation: none; } }
