/* v109 — Crystal Glow: paint-only refinements. v103 geometry and v108 account retained. */
body[data-omega-stable="99"] {
 --cg-gold:#ffdb91; --cg-ice:#9cddff; --cg-text:#edf6ff; --cg-muted:#b8d3e9;
 --cg-surface:radial-gradient(ellipse at 8% 0%,#20588c4d,transparent 62%),linear-gradient(145deg,#102c48f2,#071a2ef0 68%,#0b233df2);
 --cg-inset:linear-gradient(125deg,#173c5bb0,#091d32e8);
 --cg-line:#69bfff66;
 --cg-shadow:inset 0 1px 0 #b3e6ff42,inset 0 0 24px #298bff0b,0 8px 22px #000e2455,0 0 14px #319bff19;
}
html body[data-omega-stable="99"] :is(#omega-main#omega-main, .container > aside, .auth-wrapper, nav) {font-family:Inter,'Segoe UI',system-ui,sans-serif;}
/* Shared glass shell; no width, display, positioning or grid changes. */
html body[data-omega-stable="99"] > .container > aside .sidebar-module,
html body[data-omega-stable="99"] #omega-main#omega-main :is(.omega-live-card,.gens83-shell,.news-item,.omega-product-panel,.omega-agenda-card,.omega-agenda-source,.omega-start-callout,.omega-start-steps > li,.omega-client-card,.sd70-category,.sd70-guide,.sr70,.royal71-secondary,.omega-rank-tools,.omega-account-module,.rankings-wrapper,.downloads-wrapper),
html body[data-omega-stable="99"] .auth-wrapper .auth-card {
 background:var(--cg-surface)!important;border:1px solid var(--cg-line)!important;border-radius:16px!important;box-shadow:var(--cg-shadow)!important;color:var(--cg-text)!important;
}
html body[data-omega-stable="99"] > .container > aside .sidebar-module > h3,
html body[data-omega-stable="99"] > .container > aside .module-header h3,
html body[data-omega-stable="99"] #omega-main#omega-main :is(.page-title,.page-title > span,.rank-card__title,.gens83-title h2,.hall79-top h2,.news-item-title a,.sd70-section-head h3,.sd70-guide h3,.sr70-list-head h3,.omega-product-heading h1,.omega-product-panel h2),
html body[data-omega-stable="99"] .auth-wrapper .auth-header h2 {
 color:var(--cg-gold)!important;font-family:Inter,'Segoe UI',system-ui,sans-serif!important;font-weight:750!important;letter-spacing:.015em!important;text-shadow:0 0 13px #ffc56b25!important;
}
html body[data-omega-stable="99"] > .container > aside .sidebar-module > h3 {border-bottom-color:#7bc9ff38!important;}
html body[data-omega-stable="99"] > .container > aside :is(.module-icon,.sidebar-module > h3 > i),
html body[data-omega-stable="99"] #omega-main#omega-main .rank-card__badge {color:var(--cg-gold)!important;box-shadow:inset 0 1px #e6f6ff28,0 0 12px #50baff25!important;border-color:#78bdff55!important;}
/* Compact sidebar rows: preserve existing markup and v108 grid alignment. */
html body[data-omega-stable="99"] > .container > aside :is(.ranking-item,.info-card,.omega-clock-row,.cs-owner-header,.cs-status-item,.cs-countdown) {background:var(--cg-inset)!important;border-color:#72bcf43b!important;box-shadow:inset 0 1px #d9efff12!important;border-radius:11px!important;transition:border-color .2s,box-shadow .2s,background-color .2s;}
html body[data-omega-stable="99"] > .container > aside .ranking-item:first-of-type {border-color:#efc56b77!important;background:linear-gradient(110deg,#ad7b3029,#0c253ef0 70%)!important;}
html body[data-omega-stable="99"] > .container > aside .ranking-item .rank-avatar {border-color:#8cc5f966!important;box-shadow:0 0 12px #69b8ff28!important;}
html body[data-omega-stable="99"] > .container > aside :is(.info-left,.cs-label,.omega-clock-row) {color:var(--cg-muted)!important;}
html body[data-omega-stable="99"] > .container > aside :is(.info-right strong,.cs-value,.cs-timer) {color:var(--cg-text)!important;}
/* Community retains original art, anchor targets and brand colors. */
html body[data-omega-stable="99"] > .container > aside .omega-community-banner {--brand:#77cfff;border-color:color-mix(in srgb,var(--brand) 52%,transparent)!important;box-shadow:inset 0 1px #e6f6ff20,0 3px 12px #000b1d55!important;transition:box-shadow .22s,border-color .22s,filter .22s;}
html body[data-omega-stable="99"] > .container > aside .omega-community-banner.discord {--brand:#9d9bff;}
html body[data-omega-stable="99"] > .container > aside .omega-community-banner.facebook {--brand:#59adff;}
html body[data-omega-stable="99"] > .container > aside .omega-community-banner.whatsapp {--brand:#43e3a1;}
html body[data-omega-stable="99"] > .container > aside .omega-community-banner.tiktok {--brand:#63e5ec;}
html body[data-omega-stable="99"] > .container > aside .omega-community-banner:is(:hover,:focus-visible) {border-color:var(--brand)!important;box-shadow:inset 0 0 20px color-mix(in srgb,var(--brand) 15%,transparent),0 0 14px color-mix(in srgb,var(--brand) 40%,transparent)!important;filter:brightness(1.08);}
/* Castle artwork from v102/v104: never insert a second banner. */
html body[data-omega-stable="99"] > .container > aside .castle-owner-widget :is(.cs-artwork,.cs-hero) {border-radius:12px!important;border-color:#84cbff66!important;box-shadow:0 0 14px #55b9ff25!important;}
html body[data-omega-stable="99"] > .container > aside .castle-owner-widget .cs-artwork img {filter:saturate(1.08) contrast(1.04)!important;}
html body[data-omega-stable="99"] > .container > aside .castle-owner-widget .cs-widget-content:not(:has(.cs-artwork)) .cs-hero {background-image:url('../img/identity/castle-siege.jpg')!important;background-size:cover!important;background-position:center!important;}
html body[data-omega-stable="99"] > .container > aside .castle-owner-widget .cs-widget-content:has(.cs-artwork) .cs-hero {display:none!important;}
/* Home: keep original faction, hall and live-record structures. */
html body[data-omega-stable="99"] #omega-main#omega-main .gens83-panel {background:radial-gradient(ellipse at 0 0,#b78b3420,transparent 70%),#091b30e8!important;border-color:#edc36b66!important;box-shadow:inset 0 1px #f8dd9b28,0 0 12px #d3a33b15!important;border-radius:13px!important;}
html body[data-omega-stable="99"] #omega-main#omega-main .gens83-vanert {background:radial-gradient(ellipse at 0 0,#9471e12c,transparent 70%),#0b1b32e8!important;border-color:#ac8bff66!important;box-shadow:inset 0 1px #b8a4ff38,0 0 12px #9874ff20!important;}
html body[data-omega-stable="99"] #omega-main#omega-main .gens83-bar {box-shadow:0 0 12px #c59fff38,inset 0 1px #fff5!important;}
html body[data-omega-stable="99"] #omega-main#omega-main #omega-hall82 .hall79-card {border-color:#77baff66!important;border-radius:16px!important;box-shadow:var(--cg-shadow)!important;}
html body[data-omega-stable="99"] #omega-main#omega-main #omega-hall82 .hall79-pvp {border-color:#dcb66a80!important;box-shadow:inset 0 1px #ffe2a533,0 0 15px #e9ba4620!important;}
html body[data-omega-stable="99"] #omega-main#omega-main #omega-hall82 .hall79-plaque {border-radius:12px!important;box-shadow:inset 0 1px #b5e2ff22,0 0 14px #5faeff18!important;}
html body[data-omega-stable="99"] #omega-main#omega-main .omega-live-empty {color:var(--cg-muted)!important;}
/* Downloads, rankings, information, events and shop. Keep actual artwork on headers. */
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sd70-hero,.sd70-category-head,.sr70-hero) {border-color:#85c9ff66!important;border-radius:14px!important;box-shadow:inset 0 1px #b9e3ff44,0 0 15px #50baff1f!important;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sd70-empty,.sd70-steps > *, .sr70-toolbar,.sr70-player,.omega-product-card,.omega-product-character,.omega-agenda-card) {background:var(--cg-inset)!important;border-color:#73bfff44!important;border-radius:12px!important;box-shadow:inset 0 1px #d9efff12!important;}
html body[data-omega-stable="99"] #omega-main#omega-main .sr70-player.sr70-top-1 {border-color:#eac16c88!important;background:linear-gradient(115deg,#a77a343b,#0b253df2 65%)!important;box-shadow:inset 0 1px #ffe4aa44,0 0 14px #ecc16d18!important;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sr70-player,.omega-product-card,.sd70-category,.gens83-panel,.hall79-card),html body[data-omega-stable="99"] > .container > aside :is(.ranking-item,.info-card){transition:border-color .22s,box-shadow .22s;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sr70-player,.omega-product-card,.sd70-category,.gens83-panel,.hall79-card):hover,html body[data-omega-stable="99"] > .container > aside :is(.ranking-item,.info-card):hover {border-color:#87d2ffb3!important;box-shadow:inset 0 1px #c7ecff30,0 0 14px #56baff30!important;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.rankings-menu a,.sr70-tabs a,.omega-product-links a),html body[data-omega-stable="99"] > .container > aside .omega-event-tabs button {border-color:#75bdff4f!important;border-radius:9px!important;box-shadow:inset 0 1px #d9f1ff18!important;transition:box-shadow .2s,border-color .2s;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.rankings-menu a.active,.sr70-tabs a.is-active,.sr70-tabs a:hover,.rankings-menu a:hover) {color:#ffdfa0!important;border-color:#efc97799!important;box-shadow:inset 0 1px #ffe4ae30,0 0 12px #edbe5125!important;}
html body[data-omega-stable="99"] #omega-main#omega-main:not([data-omega-account108]) :is(.table,.dataTable) {color:var(--cg-text)!important;}
html body[data-omega-stable="99"] #omega-main#omega-main:not([data-omega-account108]) :is(.table,.dataTable) thead th {background:#123b60!important;color:#a8e0ff!important;border-color:#76baff40!important;}
html body[data-omega-stable="99"] #omega-main#omega-main:not([data-omega-account108]) :is(.table,.dataTable) tbody td {border-color:#6daee32d!important;}
html body[data-omega-stable="99"] #omega-main#omega-main:not([data-omega-account108]) :is(.table,.dataTable) tbody tr:hover td {background-color:#235d8b36!important;}
/* Buttons and focus. Do not move controls or intercept pointer events. */
html body[data-omega-stable="99"] :is(#omega-main#omega-main,.container > aside,.auth-wrapper) :is(a.btn-primary,button.btn-primary,.btn-more,.sd70-primary,.cs-details-btn,.news-readmore) {background:linear-gradient(180deg,#fff0bd,#e6b64f)!important;color:#14253b!important;border:1px solid #ffe9b2!important;border-radius:10px!important;box-shadow:inset 0 1px #fff9,0 3px 0 #916626,0 0 16px #ffc35c23!important;transition:box-shadow .2s,filter .2s;}
html body[data-omega-stable="99"] :is(#omega-main#omega-main,.container > aside,.auth-wrapper) :is(a.btn-primary,button.btn-primary,.btn-more,.sd70-primary,.cs-details-btn,.news-readmore):hover {filter:brightness(1.08);box-shadow:inset 0 1px #fff9,0 3px 0 #916626,0 0 20px #ffc35c55!important;}
html body[data-omega-stable="99"] :is(#omega-main#omega-main,.container > aside,.auth-wrapper) :is(a,button,input,select,textarea):focus-visible {outline:2px solid #9bdfff!important;outline-offset:2px;}
html body[data-omega-stable="99"] :is(#omega-main#omega-main,.container > aside,.auth-wrapper) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {border-color:#78c4ff4d!important;}
@media(prefers-reduced-motion:reduce){html body[data-omega-stable="99"] :is(#omega-main#omega-main,.container > aside,.auth-wrapper) :is(.sr70-player,.omega-product-card,.sd70-category,.gens83-panel,.hall79-card,.ranking-item,.info-card,.omega-community-banner,a,button){transition:none!important;}}
/* Agenda and native tables, including the published schedules. */
html body[data-omega-stable="99"] #omega-main#omega-main [data-omega-agenda-item] {background:var(--cg-inset)!important;border-color:#73bfff44!important;border-radius:12px!important;box-shadow:inset 0 1px #d9efff12,0 0 12px #389eff12!important;}
html body[data-omega-stable="99"] #omega-main#omega-main [data-omega-agenda-item] h2 {color:var(--cg-gold)!important;}
html body[data-omega-stable="99"] > .container > aside .events-module :is(.events-table tbody tr,.omega-invasion-row) {border-color:#73bfff44!important;box-shadow:inset 0 1px #d9efff12!important;}
html body[data-omega-stable="99"] > .container > aside :is(.view-all-link,.omega-community-badge):hover {box-shadow:0 0 14px #70c8ff55,inset 0 1px #d0efff32!important;border-color:#9ddcff!important;}
html body[data-omega-stable="99"] #omega-main#omega-main .sr70-player :is(.sr70-position,.sr70-emblem) {text-shadow:0 0 10px #76c6ff35!important;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sd70-category-head,.sr70-hero) {transition:box-shadow .22s;}
html body[data-omega-stable="99"] #omega-main#omega-main :is(.sd70-category-head,.sr70-hero):hover {box-shadow:inset 0 1px #b9e3ff44,0 0 19px #50baff36!important;}
/* Give the native published agenda a readable, compact rhythm. */
html body[data-omega-stable="99"] #omega-main#omega-main .omega-agenda-source {padding:14px!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] #omega-main#omega-main [data-omega-agenda-item] {padding:12px 14px!important;margin:8px 0!important;box-sizing:border-box!important;}
html body[data-omega-stable="99"] #omega-main#omega-main [data-omega-agenda-item] h2 {font-size:18px!important;margin:0 0 5px!important;line-height:1.3!important;}
html body[data-omega-stable="99"] #omega-main#omega-main [data-omega-agenda-item] p {margin:0!important;line-height:1.5!important;}
