html body.template23 {
    --nav23-page: #f3effa;
    --nav23-panel: #fffaff;
    --nav23-line: #dbd1ec;
    --nav23-ink: #302340;
    --nav23-soft: #615374;
    --nav23-accent: #684294;
    background: radial-gradient(ellipse at 65% 0, #fbf7ff, var(--nav23-page) 55%) !important;
    color: var(--nav23-ink);
}

html body.template23 .universe { display: none; }
html body.template23 .page-shell { max-width: 1180px; width: calc(100% - 32px); padding: 12px 0 90px; }
html body.template23 .site-header,
html body.template23 .announcement,
html body.template23 .bottom-nav {
    background: var(--nav23-panel);
    border: 1px solid var(--nav23-line);
    box-shadow: 0 6px 16px #58347116;
    color: var(--nav23-ink);
}

html body.template23 .site-header {
    border-radius: 16px;
    margin-bottom: 12px;
    background: linear-gradient(120deg,#fffaff,#f5eefb);
}
html body.template23 .brand strong { color: var(--nav23-ink); }
html body.template23 .brand small,
html body.template23 .announcement-open { color: var(--nav23-soft); }
html body.template23 .hero {
    width: 100%;
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
    padding: 0;
    position: relative;
    border-radius: 20px;
    background: var(--nav23-panel);
    border: 1px solid var(--nav23-line);
    box-shadow: none;
}
html body.template23 .hero .banner-link,
html body.template23 .hero .banner-link img { display: block; width: 100%; height: 100%; }
html body.template23 .hero .banner-link { position: absolute; inset: 0; }
html body.template23 .hero .banner-link img { position: absolute; inset: 0; max-height: none; object-fit: cover; }
html body.template23 .theme-hero-art,
html body.template23 .hero-background,
html body.template23 .hero::before,
html body.template23 .hero::after { display: none; }

html body.template23 .announcement { margin-block: 12px 0; min-height: 42px; border-radius: 14px; }
html body.template23 .announcement-label { color: var(--nav23-accent); }
html body.template23 .quick-links {
    background: var(--nav23-panel);
    border: 1px solid var(--nav23-line);
    border-radius: 17px;
    box-shadow: none;
    margin-block: 8px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 9px 13px;
}
html body.template23 .quick-track { display: flex; width: 100%; transform: none; animation: none; }
html body.template23 .quick-group { display: flex; gap: 14px; }
html body.template23 .quick-group[aria-hidden="true"] { display: none; }
html body.template23 .quick-link { flex: 0 0 auto; padding: 0; background: transparent; border: 0; }
html body.template23 .quick-link > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
html body.template23 .quick-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #e4d9ee;
    background: var(--nav23-panel);
}
html body.template23 .quick-avatar img { width: 100%; height: 100%; object-fit: cover; }

html body.template23 .directory { margin: 9px 0 20px; padding: 0; background: transparent; }
.template23 .template23-heading {
    color: var(--nav23-ink);
    text-align: center;
    font-size: clamp(21px, 3vw, 32px);
    margin: 0 0 14px;
}
.template23 .template23-heading::after {
    content: "";
    display: block;
    margin: 8px auto;
    width: 52px;
    height: 3px;
    border-radius: 9px;
    background: linear-gradient(90deg, #6bdcff, #8b7df2);
}
.template23 .template23-heading::before,
html body.template23 .bottom-nav a:not(:has(.nav-custom-icon))::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url("nav23-icons.webp");
    background-repeat: no-repeat;
    background-size: 300% 300%;
}
html body.template23 .bottom-nav a:not(:has(.nav-custom-icon))::before {
    width: clamp(48px, 13vw, 64px);
    height: clamp(48px, 13vw, 64px);
    flex: none;
    margin-top: -22px;
}
.template23 .template23-heading::before { width: 30px; height: 30px; vertical-align: middle; margin-right: 6px; background-position: 100% 81%; }
html body.template23 .bottom-nav a[data-page="lottery"]::before { background-position: 0 16%; }
html body.template23 .bottom-nav a[data-page="trial"]::before { background-position: 50% 16%; }
html body.template23 .bottom-nav a[data-page="home"]::before { background-position: 100% 16%; }
html body.template23 .bottom-nav a[data-page="discover"]::before { background-position: 0 81%; }
html body.template23 .bottom-nav a[data-page="channels"]::before { background-position: 100% 81%; }
html body.template23 .bottom-nav a > :is(.theme-nav-icon,[data-icon]) { display: none; }
html body.template23 .directory-tools { margin-top: 16px; }
html body.template23 .categories { max-width: 100%; overflow-x: auto; }
html body.template23 .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
html body.template23 .card-grid[hidden] { display: none; }
html body.template23 .site-card {
    padding: 14px;
    border: 1px solid var(--nav23-line);
    border-radius: 14px;
    box-shadow: inset 0 1px #fff, 0 3px 9px #55378119;
    color: var(--nav23-ink);
    min-width: 0;
}
html body.template23 #card-grid .site-card {
    background: url("dragon-card.webp") center / 100% 100% no-repeat,
                linear-gradient(155deg, #ffffffed, #efe7fbd9) !important;
}
html body.template23 .site-card :is(h2,h3,h4) { color: var(--nav23-ink); }
html body.template23 .site-card p { color: var(--nav23-soft); }
html body.template23 .site-card .card-rating { display: none; }
html body.template23 .visit-button {
    background: #392779 url("dragon-button.webp") center / 100% 100% no-repeat !important;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    box-shadow: 0 3px 8px #49329642;
    text-shadow: 0 1px 2px #40225d;
    min-height: 32px;
    padding-inline: 12px;
    transition: filter .16s ease, transform .16s ease;
}
html body.template23 .visit-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
html body.template23 .visit-button:active { transform: translateY(1px); }
html body.template23 .visit-button .visit-art { display: none; }
html body.template23 .bottom-nav {
    width: min(1130px, calc(100% - 24px));
    bottom: max(9px, env(safe-area-inset-bottom));
    border-radius: 22px;
    overflow: visible;
}
html body.template23 .bottom-nav a { color: var(--nav23-soft); }
html body.template23 .bottom-nav .nav-custom-icon {
    width: clamp(48px, 13vw, 64px);
    height: clamp(48px, 13vw, 64px);
    margin-top: -22px;
    object-fit: contain;
}
html body.template23 .bottom-nav a.active { color: var(--nav23-accent); }
html body.template23 .announcement-dialog {
    border: 1px solid #c3a6eb;
    background: linear-gradient(145deg,#fff9ff,#e9d6ff);
    color: #392451;
    box-shadow: 0 18px 65px #592e7860;
}
html body.template23 .announcement-dialog::backdrop { background: #2c174387; }
html body.template23 .announcement-dialog :is(h2,p,.dialog-close,.dialog-symbol) { color: #684094; }
.template23 .announcement-image { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; }
html body.template23 .moments-feed {
    color: var(--nav23-ink);
    max-width: 660px;
    margin: 0 auto 28px;
    background: #fff;
    border: 1px solid #e8dff0;
    border-radius: 22px;
    box-shadow: 0 10px 28px #42305512;
    overflow: hidden;
}
html body.template23 .moments-cover {
    min-height: 0;
    padding: 0;
    aspect-ratio: 3 / 1;
    background: #251947;
}
html body.template23 .moments-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body.template23 .moments-posts { display: block; padding: 0 clamp(14px, 3.4vw, 27px); }
html body.template23 .moment {
    display: block;
    padding: 19px 0 17px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
html body.template23 .moment + .moment { border-top: 1px solid #eee8f2; }
html body.template23 .moment-header { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0 0 5px; }
html body.template23 .moment-avatar {
    display: block;
    width: 34px;
    height: 34px;
    flex: none;
    border: 1px solid #e6d9f0;
    border-radius: 10px;
    background: #f1e9fa;
    object-fit: cover;
}
html body.template23 .moment-title { margin: 0; font-size: 16px; color: #302340; overflow-wrap: anywhere; }
html body.template23 .moment-text {
    margin: 0 0 10px;
    color: #4b4155;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
html body.template23 .moment-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 340px);
    gap: 5px;
    margin: 0 0 8px;
}
html body.template23 .moment-gallery.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 270px); }
html body.template23 .moment-gallery.count-1 { grid-template-columns: minmax(0, 1fr); width: min(100%, 185px); }
html body.template23 .moment-gallery button {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 1px solid #e6dfed;
    border-radius: 6px;
    background: #f5f0f9;
    overflow: hidden;
}
html body.template23 .moment-gallery img { width: 100%; height: 100%; object-fit: contain; display: block; }
html:has(#moment-lightbox[open]) { overflow: hidden; }
html body.template23 #moment-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #000;
    overflow: hidden;
}
html body.template23 #moment-lightbox img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
html body.template23 #moment-lightbox button {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff65;
    border-radius: 50%;
    color: #fff;
    background: #171717d9;
    font: 28px/1 system-ui, sans-serif;
    cursor: pointer;
}
html body.template23 #moment-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.template23 .discovery {
    max-width: 650px;
    margin: 26px auto 40px;
    padding: 8px clamp(6px, 4vw, 30px) 36px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #30243b;
}
.template23 .discovery h1 { margin: 0 4px 18px; font-size: clamp(30px, 6vw, 40px); letter-spacing: -.04em; }
.template23 .discovery-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
html body.template23 .discovery-link {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 13px;
    min-height: 103px;
    padding: 15px;
    border: 1px solid #e6dced;
    border-radius: 23px;
    color: #30243b;
    background: linear-gradient(160deg,#fff 60%,#fcf8ff);
    text-decoration: none;
    box-shadow: 0 7px 18px #5536870e;
    transition: box-shadow .18s ease, border-color .18s ease;
}
html body.template23 .discovery-link:is(:hover,:focus-visible) { border-color: #beaad7; box-shadow: 0 9px 20px #55368720; }
.template23 .discovery-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    color: #6a479c;
    background: linear-gradient(130deg,#e0d2fa,#f4eaff);
}
.template23 .discovery-list li:nth-child(even) .discovery-icon { color: #356693; background: linear-gradient(130deg,#dceafd,#eff5ff); }
.template23 .discovery-copy { display: grid; gap: 5px; overflow-wrap: anywhere; text-align: left; }
.template23 .discovery-copy strong { font-size: 17px; line-height: 1.36; }
.template23 .discovery-description { color: #5b5165; line-height: 1.5; font-size: 13px; }
.template23 .discovery-domain { color: #654d7d; font-size: 12px; }
.template23 .discovery-arrow {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e9dff3;
    color: #6f498f;
    background: #f5edfdcf;
    backdrop-filter: blur(9px);
}
@media (prefers-reduced-motion: reduce) {
    .template23 .discovery-link { transition: none; }
}
html body.template23 .header-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--nav23-line);
    background: linear-gradient(145deg, #fff, #f0e7ff);
    color: #52327d;
    box-shadow: 0 8px 30px #4f2f7729;
    padding: 4px 11px 4px 6px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.template23 .header-support::before {
    content: "";
    width: 30px;
    height: 30px;
    flex: none;
    background: url("support-headset.webp") center / contain no-repeat;
}
html body.template23 .header-support:focus-visible,
html body.template23 .bottom-nav a:focus-visible,
html body.template23 button:focus-visible { outline: 2px solid var(--nav23-accent); outline-offset: 3px; }

@media (max-width: 600px) {
    html body.template23 .page-shell { width: calc(100% - 18px); padding: 8px 0 80px; }
    html body.template23 .site-header,
    html body.template23 .hero { border-radius: 13px; }
    html body.template23 .announcement { margin-top: 9px; }
    html body.template23 .quick-avatar { width: 44px; height: 44px; }
    html body.template23 .quick-group { gap: 12px; }
    html body.template23 .card-grid { gap: 7px; }
    html body.template23 .site-card { display: flex; flex-direction: column; align-items: center; padding: 10px 5px; text-align: center; }
    html body.template23 .site-card .site-avatar { width: 47px; height: 47px; }
    html body.template23 .site-card .card-head { flex-direction: column; gap: 7px; min-width: 0; width: 100%; }
    html body.template23 .site-card :is(h2,h3,h4) { font-size: 12px; overflow-wrap: anywhere; }
    html body.template23 .site-card p { display: none; }
    html body.template23 .site-card .card-actions { align-self: stretch; justify-content: center; }
    html body.template23 .site-card .visit-button { font-size: 12px; padding-inline: 6px; min-width: 0; }
    html body.template23 .site-card :is(.card-action,.site-link,.card-button) { max-width: 100%; }
    html body.template23 .bottom-nav { width: calc(100% - 12px); }
}
