/* Shared component skins live exclusively in ui-primitives.css. */
.site-topbar{position:relative;z-index:20;background:#fff;border-top:3px solid var(--u-gold);border-bottom:1px solid var(--u-line)}
.wiki-header{max-width:1190px;margin:0 auto;padding:11px 24px;min-height:60px;box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap;gap:14px;background:transparent;border:0}
.wiki-brand{display:inline-flex;align-items:center;gap:10px;flex:none;min-width:0;padding:2px 4px 2px 0;border-radius:8px;color:var(--u-ink);text-decoration:none;transition:opacity .14s}
.wiki-brand:hover{opacity:.86;text-decoration:none}
.wiki-brand:focus-visible{outline:2px solid var(--u-focus);outline-offset:3px}
.wiki-brand-copy{display:flex;flex-direction:column;min-width:0;gap:1px}
.wiki-brand-title{font-size:16px;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:#1f2b38;white-space:nowrap}
.wiki-brand-sub{font-size:11px;font-weight:500;line-height:1.25;letter-spacing:.03em;color:#718190;white-space:nowrap}
.wiki-header .header-links,.wiki-header .header-links.ui-tabs{display:inline-flex;align-items:center;flex-wrap:nowrap;flex:none;min-width:0;margin-right:auto;padding:3px;gap:2px;border:1px solid #e2e8ee;border-radius:9px;background:#f3f6f8}
.wiki-header .header-links>a,.wiki-header .header-links.ui-tabs>a{display:inline-flex;align-items:center;justify-content:center;flex:none;height:30px;min-height:30px;padding:0 13px;border:0;border-radius:6px;background:transparent;color:#566878;font-size:13.5px;font-weight:500;line-height:1;white-space:nowrap;transition:background-color .14s,color .14s,box-shadow .14s}
.wiki-header .header-links>a:hover,.wiki-header .header-links.ui-tabs>a:hover{background:rgba(255,255,255,.72);color:#1f2b38;border:0}
.wiki-header .header-links>a.active,.wiki-header .header-links>a[aria-current],.wiki-header .header-links>a.is-selected,.wiki-header .header-links.ui-tabs>a.active,.wiki-header .header-links.ui-tabs>a[aria-current],.wiki-header .header-links.ui-tabs>a.is-selected{background:#fff;border:0;color:#1f2b38;font-weight:600;box-shadow:0 1px 2px rgba(24,39,55,.08),inset 0 -2px 0 var(--u-gold)}
.wiki-header #search-form{position:relative;display:flex;align-items:center;flex:0 1 236px;min-width:156px;max-width:250px;margin:0;gap:0}
.wiki-header #search-form[hidden],body.in-navigation .wiki-header #search-form,body.in-tarot-book .wiki-header #search-form{display:none}
.wiki-header #task-search{width:100%;height:36px;min-height:36px;padding:0 36px 0 12px;border:1px solid #d5dfe7;border-radius:8px;background:#f8fafc;color:var(--u-ink);font-size:13.5px;line-height:20px;transition:background-color .14s,border-color .14s,box-shadow .14s}
.wiki-header #task-search:hover{background:#fff;border-color:#b4c3d0}
.wiki-header #task-search:focus{background:#fff;border-color:#6b88a1;box-shadow:0 0 0 3px rgba(66,109,144,.12);outline:none}
.wiki-header #task-search::placeholder{color:#8796a3}
.wiki-header #search-form button{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#677989;display:inline-flex;align-items:center;justify-content:center;flex:none;gap:0}
.wiki-header #search-form button:hover{background:#eaf0f5;border:0;color:#244b66}
.wiki-header #search-form button:active{background:#dfe8ef;transform:translateY(-50%) scale(.96)}
.wiki-header #search-form button .ui-icon{width:16px;height:16px;flex:none}
.header-utilities{display:flex;align-items:center;gap:6px;flex:none}
.wiki-header .spoiler-toggle,.wiki-header .site-session-actions>a,.wiki-header #mobile-toc{height:36px;min-height:36px;padding:0 11px;border:1px solid #e1e7ed;border-radius:8px;background:#f5f7f9;color:#3d5163;font-size:13px;font-weight:500;line-height:1;gap:6px;white-space:nowrap;flex:none}
.wiki-header .spoiler-toggle:hover,.wiki-header .site-session-actions>a:hover,.wiki-header #mobile-toc:hover{background:#edf2f6;border-color:#c5d1dc;color:#1f2b38}
.wiki-header .spoiler-toggle .ui-icon,.wiki-header .site-session-actions .ui-icon,.wiki-header #mobile-toc .ui-icon{width:15px;height:15px;flex:none}
.wiki-header .spoiler-toggle[aria-pressed=true]{background:#fcf7eb;border-color:#dfc896;color:#6e5321}
.spoiler-toggle-version{display:inline-flex;align-items:center;padding:2px 6px;border-radius:4px;background:rgba(184,155,98,.18);color:#6c4f1c;font-size:11.5px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.prototype-language-control{position:relative;display:inline-flex;align-items:center;height:36px;min-height:36px;margin:0;padding:0;border:1px solid #e1e7ed;border-radius:8px;background:#f5f7f9;color:#3d5163;font-size:13px;font-weight:500;flex:none;transition:background-color .14s,border-color .14s}
.prototype-language-control:hover{background:#edf2f6;border-color:#c5d1dc;color:#1f2b38}
.prototype-language-control .language-globe{position:absolute;left:9px;top:50%;transform:translateY(-50%);width:15px;height:15px;pointer-events:none;color:#607384}
.prototype-language-control .language-chevron{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:12px;height:12px;pointer-events:none;color:#6c7d8d}
.prototype-language-control select{position:relative;z-index:1;appearance:none;-webkit-appearance:none;height:100%;min-height:0;padding:0 24px 0 29px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:500;line-height:1;cursor:pointer}
.prototype-language-control select:focus-visible{outline:2px solid var(--u-focus);outline-offset:2px}
.prototype-language-control .language-badge{display:none}
.site-session-actions{display:flex;align-items:center;gap:6px;margin-left:0;flex:none}
.wiki-header .site-session-actions>a[data-session-state="signed-in"]{background:#eef4f9;border-color:#c9d9e6;color:#244b66}
.wiki-header .site-session-actions>a[data-session-state="signed-in"]:hover{background:#e4eef6;border-color:#b2c7d8}
.section-links-bar{border-top:1px solid #eef1f5;background:#fff}
#section-links.section-links.ui-tabs{max-width:1190px;margin:0 auto;min-height:44px;padding:0 24px;display:flex;align-items:stretch;flex-wrap:nowrap;gap:4px;background:transparent;border:0;overflow-x:auto;scrollbar-width:none}
#section-links.section-links.ui-tabs::-webkit-scrollbar{display:none}
#section-links.section-links.ui-tabs>a{position:relative;display:inline-flex;align-items:center;flex:none;height:44px;min-height:44px;padding:0 14px;border:0;border-radius:0;background:transparent;color:#5b6d7e;font-size:14px;font-weight:500;line-height:1;white-space:nowrap;transition:color .14s}
#section-links.section-links.ui-tabs>a:hover{background:transparent;border:0;color:#1f2b38}
#section-links.section-links.ui-tabs>a.active,#section-links.section-links.ui-tabs>a[aria-current],#section-links.section-links.ui-tabs>a.is-selected{background:transparent;border:0;color:#1f2b38;font-weight:600}
#section-links.section-links.ui-tabs>a.active::after,#section-links.section-links.ui-tabs>a[aria-current]::after,#section-links.section-links.ui-tabs>a.is-selected::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2.5px;border-radius:2px 2px 0 0;background:var(--u-gold)}
@media(max-width:1080px) and (min-width:901px){.wiki-header{gap:10px;padding:10px 16px}.wiki-header .header-links>a,.wiki-header .header-links.ui-tabs>a{padding:0 10px;font-size:13px}.wiki-header #search-form{flex:0 1 172px;min-width:128px}.wiki-header .spoiler-toggle,.wiki-header .site-session-actions>a{padding:0 9px;font-size:12.5px}.prototype-language-control select{padding:0 22px 0 26px;font-size:12.5px}#section-links.section-links.ui-tabs{padding:0 16px}}
.ui-page-actions{display:flex;align-items:center;gap:8px;margin:0 0 10px}
#page-toc{scrollbar-gutter:stable}#page-toc .archive-directory{width:auto;padding:0;position:static;max-height:none;border:0;background:none}#page-toc .archive-directory nav{max-height:none;overflow:visible}#page-toc .ui-directory-empty{margin:12px 0}
.archive-global-directory .archive-layout{display:block;grid-template-columns:none;margin-top:18px}.archive-global-directory .archive-content{min-width:0;padding:0;max-width:none;border:0}.archive-page-heading{display:block}.archive-progress{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.archive-progress>label:first-child{flex:1 1 260px}.archive-progress>details{flex-basis:100%}.archive-progress select{min-width:0}.archive-record{padding:0;margin:0 0 24px;border:0;border-radius:0;background:none}.archive-modules{margin-bottom:18px}
.chapter-archives{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.chapter-archive-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid var(--u-line);border-radius:var(--u-radius);background:var(--u-surface)}.chapter-archive-link img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 1px 2px #26374799)}.chapter-archive-link-text{width:auto;min-width:44px;padding:0 12px;font-family:var(--u-font);font-size:var(--u-control-font);line-height:var(--u-control-line);font-weight:400}.chapter-archive-link-text .chapter-archive-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.catalog-world-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.catalog-world-header>.catalog-world-heading{flex:1 1 auto;margin:0}.catalog-world-header>.chapter-archives{flex:0 0 auto;margin-left:auto}.chapter-archive-link:hover{background:var(--u-hover);border-color:#849aaf}.chapter-archive-link:focus-visible{outline:2px solid var(--u-focus);outline-offset:2px}.chapter-archive-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chapter-page-heading{display:flex;align-items:center;gap:14px}.chapter-page-heading>h1{flex:1;min-width:0}.task-catalog .chapter-actions{display:flex;flex-direction:row;align-items:center}.task-catalog .chapter-actions .chapter-archive-link{background:#334355;border-color:#8b9bac}
@media(max-width:900px){.archive-global-directory .archive-content{padding:0}#page-toc.mobile-open{max-height:min(65vh,480px)}}
@media(max-width:520px){.archive-progress>label{flex:1 1 130px;min-width:0}.archive-progress>label:first-child{flex-basis:100%}.archive-progress select{width:100%}.ui-page-actions{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.wiki-brand,.wiki-header .header-links>a,.wiki-header #task-search,.prototype-language-control,#section-links.section-links.ui-tabs>a{transition:none}}

/* Native feature animations are scoped to chapter headings. */
.chapter-archive-link:not(.chapter-archive-link-text){width:76px;height:82px;flex-direction:column;gap:0;background:transparent;border-color:transparent}.chapter-archive-link:not(.chapter-archive-link-text) img{width:64px;height:64px;filter:none}.chapter-archive-link:not(.chapter-archive-link-text) .chapter-archive-label{position:static;display:block;width:auto;height:auto;max-width:76px;overflow:hidden;clip:auto;white-space:nowrap;font-size:12px;line-height:16px;font-weight:600;color:var(--u-text)}

/* Native EntryTravelBrochure RotateRoot: DecoOutlineDot4px86RFHD, TabCircleLoop15s. */
.chapter-archive-link[data-chapter-archive="travel-brochure"]::before{content:"";position:absolute;left:50%;top:15px;width:38px;height:38px;margin-left:-19px;background:url("/assets/chapter-archives/passport-round.png") center/contain no-repeat;pointer-events:none;animation:passport-native-round 15s linear infinite}.chapter-archive-link[data-chapter-archive="travel-brochure"] img,.chapter-archive-link[data-chapter-archive="travel-brochure"] .chapter-archive-label{position:relative}.chapter-archive-link[data-chapter-archive="travel-brochure"] .chapter-archive-label{position:static}@keyframes passport-native-round{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.chapter-archive-link[data-chapter-archive="travel-brochure"]::before{animation:none}}

/* Native EntryTarotBook Bg/Circle and EntryLimaoNews Bg/BtnState/BgHint. */
.chapter-archive-link[data-chapter-archive="tarot-book"]::before,.chapter-archive-link[data-chapter-archive="limao-news"]::before,.chapter-archive-link[data-chapter-archive="limao-news"]::after{content:"";position:absolute;left:50%;pointer-events:none;background-position:center;background-size:contain;background-repeat:no-repeat}.chapter-archive-link[data-chapter-archive="tarot-book"]::before{top:10.5px;width:43px;height:43px;margin-left:-21.5px;background-image:url("/assets/chapter-archives/book-circle.png");animation:book-native-circle 10.5s linear infinite}.chapter-archive-link[data-chapter-archive="limao-news"]::before,.chapter-archive-link[data-chapter-archive="limao-news"]::after{top:3px;width:58px;height:58px;margin-left:-29px}.chapter-archive-link[data-chapter-archive="limao-news"]::before{background-image:url("/assets/chapter-archives/limao-dots.png");animation:limao-native-dots 16s linear infinite}.chapter-archive-link[data-chapter-archive="limao-news"]::after{background-image:url("/assets/chapter-archives/limao-hint.png");animation:limao-native-hint 16s cubic-bezier(.333333,0,.666667,1) infinite}.chapter-archive-link[data-chapter-archive="tarot-book"] img,.chapter-archive-link[data-chapter-archive="limao-news"] img,.chapter-archive-link[data-chapter-archive="limao-news"] .chapter-archive-label{position:relative}.chapter-archive-link[data-chapter-archive="limao-news"] .chapter-archive-label{position:static}@keyframes book-native-circle{to{transform:rotate(360deg)}}@keyframes limao-native-dots{to{transform:rotate(360deg)}}@keyframes limao-native-hint{0%,18.75%,50%,68.75%,100%{opacity:.196078;transform:scale(1)}9.375%,59.375%{opacity:.501961;transform:scale(1.2246)}}@media(prefers-reduced-motion:reduce){.chapter-archive-link[data-chapter-archive="tarot-book"]::before,.chapter-archive-link[data-chapter-archive="limao-news"]::before,.chapter-archive-link[data-chapter-archive="limao-news"]::after{animation:none}}
