.jg-home-ui[data-jg-notice-empty] [data-open="notice"] { display: none !important; }
.jg-home-ui .notice-tab[data-open="notice"] { color: var(--plan-check, #6a49a6); font-weight: 700; }
html.jg-store-notice-open { overflow: hidden; }

.jg-store-notice {
    --notice-accent: var(--plan-check, #6a49a6);
    --notice-fill: #fcfaff;
    --notice-tint: #f0e9fd;
    --notice-line: #e5daf4;
    --notice-button: #66459e;
    --notice-button-hover: #543583;
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(640px, calc(100% - 28px));
    max-width: none;
    max-height: min(760px, calc(100vh - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--notice-line);
    border-radius: 22px;
    background: var(--notice-fill);
    color: var(--ink, #231c30);
    box-shadow: 0 28px 90px #23183f45;
    overflow: hidden;
}
:root[data-theme="dark"] .jg-store-notice {
    --notice-accent: var(--plan-check, #d1baf8);
    --notice-fill: #201b29;
    --notice-tint: #342847;
    --notice-line: #443654;
    --notice-button: #bfa0eb;
    --notice-button-hover: #d3b5f7;
    color: var(--ink, #f4edf9);
    box-shadow: 0 28px 90px #0009;
}
.jg-store-notice[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    animation: jg-notice-enter .22s ease-out both;
}
.jg-store-notice::backdrop { background: #17112170; backdrop-filter: blur(6px); }
:root[data-theme="dark"] .jg-store-notice::backdrop { background: #0d0915ab; }
@keyframes jg-notice-enter {
    from { opacity: 0; transform: translateY(9px) scale(.987); }
    to { opacity: 1; transform: none; }
}
.jg-store-notice .jg-notice-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 24px;
    border-bottom: 1px solid var(--notice-line);
    background: linear-gradient(118deg, var(--notice-tint), var(--notice-fill));
}
.jg-store-notice .jg-notice-heading h2 {
    flex: 1;
    margin: 0;
    outline: none;
    font-size: clamp(19px, 3.5vw, 23px);
    font-weight: 750;
    line-height: 1.3;
}
.jg-store-notice .jg-notice-mark {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    background: var(--notice-fill);
    border: 1px solid var(--notice-line);
    border-radius: 11px;
    color: var(--notice-accent);
    font: 700 italic 20px Georgia, serif;
}
.jg-store-notice .jg-notice-close {
    display: grid;
    flex: 0 0 40px;
    height: 40px;
    place-items: center;
    color: var(--notice-accent);
    border: 1px solid var(--notice-line);
    border-radius: 11px;
    background: var(--notice-fill);
    font-size: 25px;
    line-height: 1;
}
.jg-store-notice .jg-notice-close:hover { background: var(--notice-tint); }
.jg-store-notice .jg-notice-content {
    min-height: 0;
    padding: 20px 26px 22px;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.8;
    scrollbar-color: var(--notice-line) transparent;
}
.jg-store-notice .jg-notice-content :is(h1,h2,h3,h4,h5,h6) {
    margin: 1.1em 0 .55em;
    color: inherit;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.65;
}
.jg-store-notice .jg-notice-content :is(p,ul,ol) { margin: .55em 0; }
.jg-store-notice .jg-notice-content .rich-content > :first-child { margin-top: 0; }
.jg-store-notice .jg-notice-content :is(img,video,iframe,table) { max-width: 100%; }
.jg-store-notice .jg-notice-content a { text-decoration: underline; text-underline-offset: 3px; }
.jg-store-notice .jg-notice-content a,
.jg-store-notice .jg-notice-content span[style*="color:"] { color: var(--notice-accent) !important; }
.jg-store-notice .jg-notice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 13px 24px;
    border-top: 1px solid var(--notice-line);
    background: var(--notice-fill);
}
.jg-store-notice .jg-notice-footer p { margin: 0; color: var(--muted, #655a74); font-size: 12px; }
.jg-store-notice .jg-notice-read {
    min-height: 44px;
    margin-inline-start: auto;
    padding: 8px 20px;
    background: var(--notice-button);
    color: #fff;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 650;
}
.jg-store-notice .jg-notice-read:hover { background: var(--notice-button-hover); }
:root[data-theme="dark"] .jg-store-notice .jg-notice-read { color: #221631; }
.jg-store-notice button:focus-visible,
.jg-store-notice a:focus-visible { outline: 2px solid var(--notice-accent); outline-offset: 2px; }
.jg-store-notice .jg-notice-content:focus-visible { outline: 2px solid var(--notice-accent); outline-offset: -3px; }
@media (max-width: 520px) {
    .jg-store-notice { border-radius: 17px; }
    .jg-store-notice .jg-notice-heading,
    .jg-store-notice .jg-notice-footer { padding: 12px 15px; }
    .jg-store-notice .jg-notice-content { padding: 16px; }
    .jg-store-notice .jg-notice-read { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .jg-store-notice[open] { animation: none; }
}
