/* 991 reference layout, using the site's own data, brand and navigation. */
:root{--page-width:720px;--color-accent:#b47aca;--theme-soft:#eee4f4;--theme-ink:#553468;--brand-gradient:linear-gradient(90deg,#b980cb,#db9ded 45%,#c48bd9);--active-gradient:linear-gradient(#d5a0e7,#a76dc0)}
body.theme-991.theme-991.theme-991{background:#f1f5fa;color:#111}
.theme-991.theme-991.theme-991 .main{background:#fff;border:0}
.theme-991.theme-991.theme-991 .header{border-bottom:4px solid #b47aca;border-radius:0 0 7px 7px;overflow:visible}
.theme-991.theme-991.theme-991 .header-inner{height:52px;padding:2px 10px;background:var(--brand-gradient)}
.reference-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#ffe471;line-height:1.03}
.reference-brand strong{display:block;font:900 22px/1.1 KaiTi,STKaiti,serif;color:#ffe471;text-shadow:1px 1px #24112b,-1px -1px #24112b;letter-spacing:4px}
.reference-brand b{font:900 25px/1.05 Arial,sans-serif;color:#fff;text-shadow:2px 1px #4a2380}
.reference-abacus{display:block;color:#ffe6a2;font:42px/1 serif;transform:rotate(-8deg);text-shadow:1px 2px #886197}
.theme-991.theme-991.theme-991 .badge{width:45px;height:45px}
.theme-991.theme-991.theme-991 .tabs{gap:4px;padding:0;background:#b47aca}
.theme-991.theme-991.theme-991 .tab{margin:0;border:0;border-radius:0;min-height:30px;padding:3px 4px;background:#bb826c;color:#fff;font-size:18px;line-height:24px;justify-content:center}
.theme-991.theme-991.theme-991 .tab.active{background:#9460ac}
.theme-991.theme-991.theme-991 .tab img{width:17px;height:17px}
.reference-draw{background:#fff;padding:2px 0}
.theme-991.theme-991.theme-991 .reference-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:5px 0 0;padding:6px 0 4px;background:#eee4f4;border:0;border-radius:5px;overflow:visible}
.reference-navigation>a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;color:#111;text-align:center;text-decoration:none;font-size:15px;font-weight:700;line-height:1.3}
.reference-seal{display:flex;align-items:center;justify-content:center;position:relative;width:66px;height:70px;margin-bottom:3px;font:900 46px/1 KaiTi,STKaiti,serif;color:#111}
.reference-seal:before{content:"";position:absolute;inset:4px 2px;border:5px double #b47aca;border-top-color:#c899db;border-radius:45% 55% 48% 52%;transform:rotate(-25deg)}
.reference-navigation>a:hover .reference-seal{color:red}
.reference-notice{display:flex;align-items:center;gap:5px;margin:5px 0;padding:4px 7px;border-radius:5px;background:var(--brand-gradient);font-size:12px;line-height:22px;color:#fff;overflow:hidden}
.reference-notice>span:first-child{font-size:22px;color:#125877;border:1px solid #39758d;border-radius:50%;background:#e0fbff;width:27px;height:27px;text-align:center;flex-shrink:0}
.reference-notice>b{white-space:nowrap;font-weight:400}
.reference-notice>span:last-child{color:#fff463;min-width:0}
.theme-991 .home-calendar{margin:0 0 4px!important;padding:2px 4px!important;background:var(--brand-gradient)!important;border:0!important;border-radius:4px!important;color:#111!important;font-size:clamp(11px,3vw,22px)!important}
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2,.homepage-size,.homepage-parity,.homepage-investment,.expert-zone,.member-posts,.member-recommendations,.period-poster,.homepage-formulas){border-color:#b47aca;border-radius:4px;margin-block:0 5px}
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2,.homepage-size,.homepage-parity,.homepage-investment) th{background:linear-gradient(#b47aca,#eee7f1)!important;color:#111!important;padding:3px!important}
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2) td{border-color:#fff!important;background:#f3f3f3;padding:3px}
.theme-991.theme-991.theme-991 .expert-zone td{background:#70ff37!important;padding:5px 4px;color:#111}
.theme-991.theme-991.theme-991 .expert-zone tr:nth-child(even) td{background:#dbffd0!important}
.theme-991.theme-991.theme-991 .member-post-card{border-color:#dcc5e7;background:#f5eafa}
.theme-991.theme-991.theme-991 .footer{background:#f1e5f7;border-top:2px solid #b47aca}
#homepage-poster{scroll-margin-top:145px}
@media(max-width:480px){.reference-seal{width:47px;height:52px;font-size:34px}.reference-navigation>a{font-size:12px}.reference-seal:before{border-width:4px}.theme-991.theme-991.theme-991 .tab{font-size:15px}.reference-brand strong{font-size:19px}.reference-brand b{font-size:23px}.reference-notice{font-size:11px;line-height:17px}.theme-991 .home-calendar{font-size:11px!important}}
.theme-991.theme-991.theme-991 .tab:not(.active){background:#bb826c;border-color:#bb826c;color:#fff}

.theme-991 .reference-brand .logo{display:block;width:auto;height:46px;max-width:100%;object-fit:contain}

/* Transparent calligraphy image atlas, with one glyph per equal square cell. */
.theme-991 .reference-seal{width:84px;height:84px;font-size:0!important;color:transparent!important;background-image:url('../img/navigation-calligraphy.png');background-repeat:no-repeat;background-size:300% 300%;margin-bottom:1px}
.theme-991 .reference-seal:before{display:none}
.reference-seal[data-seal="澳"]{background-position:0 0}
.reference-seal[data-seal="门"]{background-position:50% 0}
.reference-seal[data-seal="香"]{background-position:100% 0}
.reference-seal[data-seal="港"]{background-position:0 50%}
.reference-seal[data-seal="六"]{background-position:50% 50%}
.reference-seal[data-seal="合"]{background-position:100% 50%}
.reference-seal[data-seal="王"]{background-position:0 100%}
@media(max-width:480px){.theme-991 .reference-seal{width:60px;height:60px}}
/* Larger lottery switch buttons on desktop and touch screens. */
.theme-991.theme-991.theme-991 .tab{min-height:42px;padding:7px 6px;font-size:21px;line-height:28px}
.theme-991.theme-991.theme-991 .tab img{width:22px;height:22px}
@media(max-width:480px){.theme-991.theme-991.theme-991 .tab{min-height:40px;padding:7px 4px;font-size:17px;line-height:24px}.theme-991.theme-991.theme-991 .tab img{width:19px;height:19px}}
/* Pill-shaped lottery selector. */
.theme-991.theme-991.theme-991 .tabs{gap:8px;padding:7px 10px;background:#fff}
.theme-991.theme-991.theme-991 .tab{border-radius:28px;border:1px solid #dedce2;min-height:42px;padding:7px 10px}
.theme-991.theme-991.theme-991 .tab:not(.active){background:#f2f2f2;border-color:#dedce2;color:#65596d}
.theme-991.theme-991.theme-991 .tab.active{background:#9460ac;border-color:#9460ac;color:#fff}
@media(max-width:480px){.theme-991.theme-991.theme-991 .tabs{gap:6px;padding:6px}.theme-991.theme-991.theme-991 .tab{min-height:40px;padding:7px 4px;font-size:16px}}

/* Use the same top-to-bottom gradient on every content heading. */
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2,.homepage-size,.homepage-parity,.homepage-investment) th,
.theme-991.theme-991.theme-991 .site-ad-html:has(table) th,
.theme-991.theme-991.theme-991 :is(.expert-zone,.member-recommendations)>h2,
.theme-991.theme-991.theme-991 :is(.member-detail-heading,.annual-directory-heading,.tuku-title,.formula-heading),
.theme-991.theme-991.theme-991 .cold-statistics>[data-lottery-content]>h1{background:linear-gradient(to bottom,#b47aca,#eee7f1)!important}

/* 991 翡翠绿: presentation only; draw balls and prediction highlights are untouched. */
:root{--color-accent:#258154;--theme-soft:#eef9f2;--theme-ink:#245a3c;--brand-gradient:linear-gradient(90deg,#155f3d,#258154 45%,#8acda7);--active-gradient:linear-gradient(#258154,#155f3d)}
body.theme-991.theme-991.theme-991{background:#eef9f2}
.theme-991.theme-991.theme-991 .header{border-bottom-color:#258154}
.theme-991.theme-991.theme-991 .header-inner{background:var(--brand-gradient)}
.theme-991.theme-991.theme-991 .reference-navigation{background:#eef9f2}
.theme-991.theme-991.theme-991 .tab.active{background:#155f3d;border-color:#155f3d;color:#fff}
.theme-991.theme-991.theme-991 .tab:not(.active){background:#eef9f2;border-color:#b9dfc6;color:#245a3c}
.theme-991.theme-991.theme-991 :is(.nav-menu-item,.nav .back){color:#245a3c;border-color:#b9dfc6}
.theme-991.theme-991.theme-991 .reference-notice{background:var(--active-gradient)}
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2,.homepage-size,.homepage-parity,.homepage-investment,.expert-zone,.member-posts,.member-recommendations,.member-detail,.period-poster,.homepage-poster,.homepage-formulas),
.theme-991.theme-991.theme-991 .site-ad-html:has(table){border-color:#258154!important}
.theme-991.theme-991.theme-991 :is(.homepage-zl1,.homepage-zl2,.homepage-size,.homepage-parity,.homepage-investment) th,
.theme-991.theme-991.theme-991 .site-ad-html:has(table) th,
.theme-991.theme-991.theme-991 :is(.expert-zone,.member-recommendations)>h2,
.theme-991.theme-991.theme-991 :is(.member-detail-heading,.annual-directory-heading,.tuku-title,.formula-heading),
.theme-991.theme-991.theme-991 .cold-statistics>[data-lottery-content]>h1{background:linear-gradient(to bottom,#8acda7,#eef9f2)!important;color:#245a3c!important;border-color:#258154!important}
.theme-991.theme-991.theme-991 .expert-zone td{background:#eef9f2!important}
.theme-991.theme-991.theme-991 .expert-zone tr:nth-child(even) td{background:#fff!important}
.theme-991.theme-991.theme-991 .member-post-card{border-color:#b9dfc6;background:#eef9f2}
.theme-991.theme-991.theme-991 .expert-zone-notice{background:#eef9f2;border-color:#b9dfc6;color:#245a3c}
.theme-991.theme-991.theme-991 .footer{background:#eef9f2;border-color:#258154!important}
.theme-991.theme-991.theme-991 :is(.gallery-detail-navigation a,.annual-post-navigation a,.gallery-search button[type="submit"]){background:var(--active-gradient);color:white}
