/* MY WORLD OF BOREDOM v2.5 — non-destructive bonus color/neon toolkit.
   Loaded LAST. All values come from existing D1 layout variables; no static colors
   that defeat individual editing in WORLD STUDIO. */
:root{--mwb-neon-radius:16px;--mwb-neon-strength:72%}
body[data-mwb-theme]{
  --mwb-quick-halo:color-mix(in srgb,var(--mw-glow,#F447EA) var(--mwb-neon-strength),transparent);
  --mwb-quick-halo-soft:color-mix(in srgb,var(--mw-glow,#F447EA) var(--mwb-neon-strength-soft),transparent);
}
/* User-configurable titles and supporting text override the old blue accessibility patch. */
body[data-mwb-theme] :is(.mwb-home-heading h1,.welcome-choice strong,.showcase-copy strong,.mwb-library h1,.section-heading h1,.section-heading h2,.detail-summary h1,.media-copy strong,.mwb-video-copy strong,.mwb-reel-group>h3,.world-banner h1){
  color:var(--mwb-palette-heroTitle,#FFF7FF)!important;
  text-shadow:0 2px 4px var(--mwb-palette-shadow,#251029),0 0 var(--mwb-neon-radius) var(--mwb-quick-halo)!important;
}
body[data-mwb-theme] :is(.welcome-choice small,.showcase-copy small,.mwb-home-heading p,.mwb-landing-bottom,.showcase-subheading,.world-bottom,.mwb-kicker,.mwb-library-intro){
  color:var(--mwb-palette-heroText,#FFB4D9)!important;
  text-shadow:0 2px 4px var(--mwb-palette-shadow,#251029),0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)!important;
}
body[data-mwb-theme] :is(.site-header .header-brand,.site-header .header-hint,.mwb-main-actions button,.mwb-page-tools button,.mwb-page-tools .mwb-quick-edit,.breadcrumbs,.breadcrumbs button){
  color:var(--mwb-palette-menu,#FFF7FF)!important;
  text-shadow:0 1px 4px var(--mwb-palette-shadow,#251029),0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)!important;
}
body[data-mwb-theme] :is(.media-copy p,.media-copy small,.mwb-video-copy small,.mwb-reel-description,.detail-summary p,.studio-help,.studio-disclaimer,.studio-sidebar label,.studio-section summary,.mwb-scoped-preview p,.mwb-empty,.mwb-library p,.mwb-reel-copy p){
  color:var(--mwb-palette-bodyText,#F8E9FF)!important;
  text-shadow:0 1px 3px var(--mwb-palette-shadow,#251029)!important;
}
body[data-mwb-theme] :is(.studio-sidebar,.studio-section,.mwb-scoped-preview,.mwb-reel-card,.mwb-empty,.mwb-release-item){
  border-color:color-mix(in srgb,var(--mwb-palette-buttonBorder,#F447EA) 40%,transparent)!important;
}
body[data-mwb-theme] :is(.studio-actions button,.mwb-studio-nav button,.secondary-button,.primary-button,.mwb-apply-neon,.mwb-main-actions button.is-active,.mwb-page-tools button){
  color:var(--mwb-palette-buttons,#FFF7FF)!important;
  border-color:var(--mwb-palette-buttonBorder,#F447EA)!important;
  background:color-mix(in srgb,var(--mwb-palette-buttonFill,#251029) 90%,transparent)!important;
  text-shadow:0 1px 3px var(--mwb-palette-shadow,#251029),0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)!important;
  box-shadow:0 2px 10px #0007,0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)!important;
}
body[data-mwb-theme] :is(.mwb-page-tools button,.mwb-page-tools .mwb-quick-edit){border-width:2px!important}
body[data-mwb-theme] :is(.showcase-card:hover,.showcase-card:focus-visible,.media-card:hover,.mwb-reel-card:hover){
  box-shadow:0 16px 42px #0009,0 0 calc(var(--mwb-neon-radius) * 1.7) var(--mwb-quick-halo)!important;
}
body[data-mwb-theme] .showcase-copy strong{color:var(--mwb-palette-heroTitle,#FFF7FF)!important}
body[data-mwb-theme] .showcase-copy small{color:var(--mwb-palette-heroText,#FFB4D9)!important}
body[data-mwb-theme] .showcase-edge{background:var(--mw-accent,#F447EA)!important;box-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo)!important}
body[data-mwb-theme] .mwb-scoped-editor .studio-colors .mwb-named-color{background:color-mix(in srgb,var(--mw-surface,#251029) 82%,transparent)!important;border-color:color-mix(in srgb,var(--mw-accent,#F447EA) 35%,transparent)!important}
body[data-mwb-theme] .studio-sidebar input:not([type=color]),body[data-mwb-theme] .studio-sidebar textarea,body[data-mwb-theme] .studio-sidebar select{color:var(--mwb-palette-bodyText,#F8E9FF)!important;border-color:color-mix(in srgb,var(--mw-accent,#F447EA) 55%,transparent)!important}
body[data-mwb-theme] .studio-sidebar input::placeholder{color:var(--mw-muted,#F8E9FF)!important}
/* Bonus screen: user control is local until saved through existing authenticated D1 route. */
.mwb-quick-theme-page{width:min(1440px,100%);margin:0 auto;padding:22px clamp(14px,3vw,38px) 92px;color:var(--mw-text,#FFF7FF);font-family:var(--mw-font-body,system-ui)}
.mwb-quick-top{padding:16px 4px 22px}.mwb-quick-top h1{font-size:clamp(29px,4vw,50px);line-height:1.13;margin:8px 0;color:var(--mw-text,#FFF7FF);text-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo)}
.mwb-quick-top>p{max-width:820px;color:var(--mw-muted,#F8E9FF);line-height:1.6}
.mwb-quick-links{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}
.mwb-quick-links button,.mwb-quick-entry{padding:11px 16px;border:1px solid var(--mw-accent,#F447EA);border-radius:12px;background:var(--mw-surface,#251029);color:var(--mw-text,#FFF7FF);cursor:pointer;font-weight:750}
.mwb-quick-links button:hover,.mwb-quick-entry:hover{box-shadow:0 0 17px var(--mwb-quick-halo-soft)}
.mwb-quick-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:start;gap:20px}
.mwb-quick-panel,.mwb-quick-preview-wrap{border:1px solid color-mix(in srgb,var(--mw-accent,#F447EA) 45%,transparent);background:color-mix(in srgb,var(--mw-surface,#251029) 94%,transparent);border-radius:21px;padding:clamp(15px,2vw,26px);box-shadow:0 12px 50px #0006}
.mwb-quick-panel h2,.mwb-quick-preview-wrap h2{font-size:21px;margin:6px 0 9px;color:var(--mw-text,#FFF7FF)}
.mwb-quick-panel>p{font-size:13px;line-height:1.6;color:var(--mw-muted,#F8E9FF)}
.mwb-quick-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:17px 0 29px}
.mwb-quick-preset{display:flex;gap:12px;align-items:center;min-width:0;border:1px solid color-mix(in srgb,var(--mw-accent,#F447EA) 45%,transparent);border-radius:12px;background:color-mix(in srgb,var(--mw-surface,#251029) 88%,white 12%);padding:11px 10px;cursor:pointer;text-align:left;color:var(--mw-text,#FFF7FF);font:inherit;transition:transform .12s,border-color .12s}
.mwb-quick-preset:hover,.mwb-quick-preset:focus-visible{border-color:var(--mw-accent,#F447EA);outline-color:var(--mw-accent,#F447EA);transform:translateY(-2px)}
.mwb-quick-swatches{display:flex;flex:none;gap:2px}.mwb-quick-swatches span{height:33px;width:11px;border-radius:5px;border:1px solid #ffffff35}.mwb-quick-preset-name{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.mwb-quick-preset-name b{color:var(--mw-secondary,#FFB4D9)}
.mwb-quick-tabs{display:flex;gap:9px;margin:17px 0}.mwb-quick-tabs button{flex:1;border-radius:12px;padding:13px 10px;border:1px solid var(--mw-accent,#F447EA);color:var(--mw-text,#FFF7FF);background:var(--mw-surface,#251029);font-size:14px;font-weight:800;cursor:pointer}
.mwb-quick-tabs button.is-active{background:color-mix(in srgb,var(--mw-accent,#F447EA) 26%,var(--mw-surface,#251029));box-shadow:inset 0 0 0 1px var(--mw-accent,#F447EA)}
.mwb-quick-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mwb-quick-field{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:13px;background:color-mix(in srgb,var(--mw-surface,#251029) 80%,white 20%);border:1px solid color-mix(in srgb,var(--mw-accent,#F447EA) 25%,transparent);min-width:0;font-size:13px;font-weight:650;color:var(--mw-text,#FFF7FF)}
.mwb-quick-picker{display:flex;align-items:center;gap:10px;min-width:0}.mwb-quick-picker input[type=color]{width:51px;height:42px;padding:3px;border:1px solid var(--mw-accent,#F447EA);border-radius:8px;background:transparent;cursor:pointer;flex:none}.mwb-quick-picker input[type=range]{width:100%;min-width:0;accent-color:var(--mw-accent,#F447EA)}
.mwb-quick-picker code,.mwb-quick-picker output{font:12px ui-monospace,Consolas,monospace;color:var(--mw-text,#FFF7FF);white-space:nowrap}.mwb-quick-tab-content>.studio-help{font-size:12px;line-height:1.5;margin:12px 0}
.mwb-quick-actions{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0}.mwb-quick-actions button{padding:13px 18px;border-radius:12px;border:1px solid var(--mw-accent,#F447EA);background:var(--mw-surface,#251029);color:var(--mw-text,#FFF7FF);cursor:pointer;font-weight:800}.mwb-quick-actions button.studio-primary{background:color-mix(in srgb,var(--mw-accent,#F447EA) 20%,var(--mw-surface,#251029))}
.mwb-quick-panel .studio-status{margin-top:8px;line-height:1.5;overflow-wrap:anywhere}
.mwb-quick-preview-sticky{position:sticky;top:28px}
.mwb-quick-live-preview{border-radius:25px;min-height:340px;display:flex;flex-direction:column;justify-content:center;gap:15px;padding:clamp(17px,3vw,32px);background:var(--mw-surface,#251029);border:2px solid var(--mw-accent,#F447EA);box-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft);color:var(--mw-text,#FFF7FF)}
.mwb-quick-demo-overline{color:var(--mw-secondary,#FFB4D9);font-size:13px;letter-spacing:.12em}
.mwb-quick-live-preview strong{font-family:Georgia,serif;font-size:clamp(35px,4vw,62px);line-height:1;color:var(--mw-text,#FFF7FF);text-shadow:0 2px 3px #0008,0 0 var(--mwb-neon-radius) var(--mwb-quick-halo)}
.mwb-quick-live-preview>p{color:var(--mw-secondary,#FFB4D9);font-size:clamp(13px,1.65vw,21px);margin:0;line-height:1.4;text-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)}
.mwb-quick-demo-divider{height:3px;background:var(--mw-accent,#F447EA);margin:7px 0 1px;box-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo)}
.mwb-quick-demo-actions{display:flex;gap:9px;flex-wrap:wrap}.mwb-quick-demo-actions span{padding:10px 12px;border-radius:10px;border:1px solid var(--mw-accent,#F447EA);background:var(--mwb-palette-buttonFill,#251029);color:var(--mw-text,#FFF7FF);font-weight:700;font-size:12px;box-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)}
.mwb-quick-demo-small{color:var(--mw-muted,#F8E9FF);font-size:13px;line-height:1.5}
@media(max-width:900px){.mwb-quick-layout{grid-template-columns:1fr}.mwb-quick-preview-sticky{position:static}}
@media(max-width:580px){.mwb-quick-settings-grid,.mwb-quick-preset-grid{grid-template-columns:1fr}.mwb-quick-live-preview{min-height:250px}}
@media(prefers-reduced-motion:reduce){.mwb-quick-preset{transition:none}.mwb-quick-preset:hover{transform:none}}
/* Keep common panels in the selected theme without touching background images. */
body[data-mwb-theme] :is(.mwb-library .media-card,.content-card,.mwb-reel-card,.studio-section,.mwb-empty,.mwb-release-item,.mwb-search-results,.studio-sidebar,.mwb-scoped-preview,.mwb-filter-bar button){
  background-color:color-mix(in srgb,var(--mw-surface,#251029) 88%,transparent)!important;
  color:var(--mwb-palette-bodyText,#F8E9FF)!important;
}
body[data-mwb-theme] :is(.mwb-quick-preset,.mwb-quick-field,.mwb-quick-panel,.mwb-quick-preview-wrap){
  border-color:color-mix(in srgb,var(--mw-accent,#F447EA) 40%,transparent);
}
body[data-mwb-theme] :is(.mwb-filter-bar button.is-active,.mwb-filter-bar button:hover,.studio-section[open]>summary){
  border-color:var(--mw-accent,#F447EA)!important;
  box-shadow:0 0 var(--mwb-neon-radius) var(--mwb-quick-halo-soft)!important;
}
