/* Optional public visual skins. With no data-visual-theme this file is inert.
   Only presentation tokens and decoration change. Authored content colours,
   lottery wave colours, media and chat controls keep their original rules. */
html[data-visual-theme],
html[data-visual-theme] body { background:var(--vt-page); }

html[data-visual-theme] #app .shell,
html[data-visual-theme] #app .info-page,
html[data-visual-theme] #app .auth-shell,
html[data-visual-theme] #app .recharge-page,
html[data-visual-theme] #app .recharge-shell { background:var(--vt-page); }

/* Brand bar and section headers are visual chrome, not editable copy. */
html[data-visual-theme] #app .topbar {
  color:var(--vt-on-accent); background:var(--vt-header);
  border-radius:0 0 var(--vt-radius) var(--vt-radius); box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .topbar h1,
html[data-visual-theme] #app .theme-brand-header .theme-home-brand h1 { color:var(--vt-on-accent); text-shadow:none; }
html[data-visual-theme] #app .theme-home-brand-domain { color:var(--vt-secondary); }
html[data-visual-theme] #app .theme-home-brand-mark { border-radius:var(--vt-radius); }
html[data-visual-theme] #app .guest-actions {
  border-color:var(--vt-secondary); color:var(--vt-button-text); background:var(--vt-button-bg);
  box-shadow:0 2px 6px #00000012;
}
html[data-visual-theme] #app .member-action,
html[data-visual-theme] #app .header-action { color:var(--vt-on-accent); }
html[data-visual-theme] #app .lottery-partner-title,
html[data-visual-theme] #app .group-title {
  color:var(--vt-on-accent); background:var(--vt-header); background-size:200% 100%;
}
html[data-visual-theme] #app .lottery-partner-title::before,
html[data-visual-theme] #app .group-title::before { background:var(--vt-secondary); box-shadow:none; }
html[data-visual-theme] #app .post-group .group-title { border-radius:var(--vt-radius) var(--vt-radius) 0 0; }

/* Draw chrome stays distinct; numbered balls retain red / blue / green. */
html[data-visual-theme] #app .lottery-box {
  border-color:var(--vt-accent-dark); border-radius:var(--vt-radius); background:var(--vt-accent-dark);
  box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .lottery-tabs { border-radius:var(--vt-radius); background:#00000018; }
html[data-visual-theme] #app .lottery-tab { color:#fff; }
html[data-visual-theme] #app .lottery-tab.active { color:var(--vt-button-text); background:var(--vt-button-bg); }
html[data-visual-theme] #app .draw-meta,
html[data-visual-theme] #app .draw-meta .history-link { color:#fff; }
html[data-visual-theme] #app .draw-meta strong { color:var(--vt-secondary); }
html[data-visual-theme] #app .balls { border-radius:var(--vt-radius); }
html[data-visual-theme] #app .live-toggle { border-color:var(--vt-secondary); color:#172b46; background:#fff; }
html[data-visual-theme] #app .live-toggle.is-open { color:var(--vt-button-text); background:var(--vt-button-bg); }

/* Recommendation buttons retain their two-line contents and native links. */
html[data-visual-theme] #app .lottery-partner-ad {
  border-color:var(--vt-border); border-radius:var(--vt-radius);
  background:var(--vt-surface); box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .lottery-partner-links a {
  border-color:var(--vt-secondary); border-radius:var(--vt-radius);
  color:var(--vt-button-text); background:var(--vt-button-bg);
  box-shadow:0 3px 0 var(--vt-accent-dark),0 6px 10px -5px #00000030,inset 0 1px 0 #ffffff30;
}
html[data-visual-theme] #app .lottery-partner-links a strong { color:var(--vt-button-text); }
html[data-visual-theme] #app .lottery-partner-links a small { color:var(--vt-secondary); text-shadow:none; }
html[data-visual-theme] #app .lottery-partner-links a::before { color:var(--vt-secondary); text-shadow:none; }
html[data-visual-theme] #app .lottery-partner-links a:active { box-shadow:inset 0 1px 0 #ffffff30; }

/* Rich text and notices are intentionally excluded: their saved colours win. */
html[data-visual-theme] #app .home-ad-text {
  border-color:var(--vt-border); border-radius:var(--vt-radius); box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .home-ad-text .rich-tabs-bar { border-color:var(--vt-border); background:var(--vt-surface-alt); }
html[data-visual-theme] #app .rich-tab-button {
  border-color:var(--vt-border); border-radius:var(--vt-radius); color:var(--vt-text); background:var(--vt-surface);
}
html[data-visual-theme] #app .rich-tab-button.is-active {
  border-color:var(--vt-accent); color:var(--vt-on-accent); background:var(--vt-header); box-shadow:none;
}
html[data-visual-theme] #app .home-image-ad { border-radius:var(--vt-radius); }
html[data-visual-theme] #app .filters {
  border-color:var(--vt-border); border-radius:var(--vt-radius); background:var(--vt-surface); box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .chip {
  border-color:var(--vt-border); border-radius:var(--vt-radius); color:var(--vt-text); background:var(--vt-surface-alt);
}
html[data-visual-theme] #app .chip.active { border-color:var(--vt-accent); color:var(--vt-on-accent); background:var(--vt-accent); }
html[data-visual-theme] #app .search-control { border-color:var(--vt-border); border-radius:var(--vt-radius); background:var(--vt-surface-alt); }
html[data-visual-theme] #app .search-control select { color:var(--vt-text); background:var(--vt-surface-alt); }
html[data-visual-theme] #app .search-control input { color:var(--vt-text); background:transparent; }
html[data-visual-theme] #app .search-control input::placeholder { color:var(--vt-muted); }

/* Keep all post content on a light reading surface, including the night skin.
   This preserves manually authored title/price colours and semantic statuses. */
html[data-visual-theme] #app .post-groups .post-row,
html[data-visual-theme] #app .post-groups .theme-post-card {
  border-color:var(--vt-border); border-radius:var(--vt-radius);
  background:#fff; box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .post-group { border-radius:var(--vt-radius); box-shadow:none; }
html[data-visual-theme] #app .post-groups .theme-post-card:hover { border-color:var(--vt-accent); }

/* Compact / outline / layered are independent of the colour palette. */
html[data-visual-theme][data-visual-card="outline"] #app .lottery-partner-ad,
html[data-visual-theme][data-visual-card="outline"] #app .home-ad-text,
html[data-visual-theme][data-visual-card="outline"] #app .filters,
html[data-visual-theme][data-visual-card="outline"] #app .post-groups .post-row,
html[data-visual-theme][data-visual-card="outline"] #app .post-groups .theme-post-card,
html[data-visual-theme][data-visual-card="outline"] #app .theme-kline,
html[data-visual-theme][data-visual-card="outline"] #app .theme-calendar { box-shadow:none; }
html[data-visual-theme][data-visual-card="outline"] #app .lottery-partner-links a { box-shadow:inset 0 1px 0 #ffffff20; }
html[data-visual-theme][data-visual-card="layered"] #app .post-groups .post-row,
html[data-visual-theme][data-visual-card="layered"] #app .post-groups .theme-post-card {
  box-shadow:0 3px 0 var(--vt-border),0 6px 0 -1px var(--vt-accent-soft),0 10px 14px -8px #00000035;
}
html[data-visual-theme][data-visual-card="layered"] #app .lottery-partner-links a {
  box-shadow:0 3px 0 var(--vt-accent-dark),0 5px 0 var(--vt-border),0 8px 12px -4px #00000030;
}
html[data-visual-theme][data-visual-density="compact"] #app .post-list { padding-top:8px; }
html[data-visual-theme][data-visual-density="compact"] #app .post-groups .theme-post-card { min-height:72px; margin-bottom:9px; }
html[data-visual-theme][data-visual-density="compact"] #app .post-groups .theme-post-card>.post-link { min-height:72px; padding-top:8px; padding-bottom:9px; }
html[data-visual-theme][data-visual-density="compact"] #app .lottery-partner-title,
html[data-visual-theme][data-visual-density="compact"] #app .group-title { min-height:40px; padding-top:9px; padding-bottom:9px; }
html[data-visual-theme][data-visual-density="compact"] #app .category-row { padding-top:6px; padding-bottom:6px; }
html[data-visual-theme][data-visual-density="compact"] #app .rich-tab-button { min-height:42px; padding-top:7px; padding-bottom:7px; }

/* Navigation and inner-page frames. Do not recolour user HTML or chat. */
html[data-visual-theme] #app .bottom-nav {
  border-color:var(--vt-border); border-radius:var(--vt-radius) var(--vt-radius) 0 0;
  background:var(--vt-header); box-shadow:0 -3px 14px #00000015;
}
html[data-visual-theme] #app .nav-item { color:var(--vt-on-accent); border-radius:var(--vt-radius); }
html[data-visual-theme] #app .nav-item.active { color:var(--vt-on-accent); background:#ffffff1f; }
html[data-visual-theme] #app .nav-item.active::after { background:var(--vt-secondary); }
html[data-visual-theme] #app .paper,
html[data-visual-theme] #app .draw-card,
html[data-visual-theme] #app .auth-card,
html[data-visual-theme] #app .balance-card,
html[data-visual-theme] #app .account-list,
html[data-visual-theme] #app .unlock-card { border-color:var(--vt-border); border-radius:var(--vt-radius); box-shadow:var(--vt-shadow); }
html[data-visual-theme] #app .profile-card,
html[data-visual-theme] #app .auth-logo,
html[data-visual-theme] #app .recharge-hero { border-color:var(--vt-accent); background:var(--vt-header); }
html[data-visual-theme] #app .primary-button { color:var(--vt-on-accent); background:var(--vt-accent); border-radius:var(--vt-radius); }
html[data-visual-theme] #app .history-tabs { background:var(--vt-surface-alt); }
html[data-visual-theme] #app .history-tabs a { color:var(--vt-text); }
html[data-visual-theme] #app .history-tabs a.active,
html[data-visual-theme] #app .year-row a.active { color:var(--vt-on-accent); background:var(--vt-accent); }
html[data-visual-theme] #app .year-row a { color:var(--vt-text); background:var(--vt-surface-alt); }

/* Charts/calendar/gallery retain their content colours on white surfaces. */
html[data-visual-theme] #app .theme-kline,
html[data-visual-theme] #app .theme-calendar {
  border-color:var(--vt-border); border-radius:var(--vt-radius); background:#fff; box-shadow:var(--vt-shadow);
}
html[data-visual-theme] #app .theme-directory,
html[data-visual-theme] #app .theme-zodiac-reference,
html[data-visual-theme] #app .mz-zodiac-reference { border-color:var(--vt-border); border-radius:var(--vt-radius); box-shadow:var(--vt-shadow); }
html[data-visual-theme] #app .theme-zodiac-reference>h2,
html[data-visual-theme] #app .mz-zodiac-reference>h2 { color:var(--vt-on-accent); background:var(--vt-header); }

/* Focus feedback changes only colour, without changing click targets. */
html[data-visual-theme] #app .rich-tab-button:focus-visible,
html[data-visual-theme] #app .chip:focus-visible,
html[data-visual-theme] #app .lottery-partner-links a:focus-visible,
html[data-visual-theme] #app .nav-item:focus-visible { outline:2px solid var(--vt-secondary); outline-offset:3px; }

/* Decorative motion only: no clocks, live video, message state or loaders. */
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-links a::before,
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-links a::after,
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-title,
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-title::after,
html[data-visual-theme][data-visual-motion="off"] #app .theme-special-notice h2::after,
html[data-visual-theme][data-visual-motion="off"] #app .theme-notice-section h3>span::after,
html[data-visual-theme][data-visual-motion="off"] #app .notice-faithful .lead-shine,
html[data-visual-theme][data-visual-motion="off"] #app .theme-notice-banner::before { animation-play-state:paused; }
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-links a { transition:none; }
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-links a::after,
html[data-visual-theme][data-visual-motion="off"] #app .lottery-partner-title::after,
html[data-visual-theme][data-visual-motion="off"] #app .theme-special-notice h2::after,
html[data-visual-theme][data-visual-motion="off"] #app .theme-notice-section h3>span::after,
html[data-visual-theme][data-visual-motion="off"] #app .notice-faithful .lead-shine { opacity:0; }
@media(prefers-reduced-motion:reduce) {
  html[data-visual-theme] #app .lottery-partner-links a::before,
  html[data-visual-theme] #app .lottery-partner-links a::after,
  html[data-visual-theme] #app .lottery-partner-title,
  html[data-visual-theme] #app .lottery-partner-title::after,
  html[data-visual-theme] #app .notice-faithful .lead-shine { animation-play-state:paused; }
  html[data-visual-theme] #app .lottery-partner-links a { transition:none; }
}
