/* Consistent legibility for every activity card and dialog in dark mode. */
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup):not([hidden]),
html[data-theme="dark"] body > :is(#packGamePanel,#fetchbar,#bathWashPanel):not([hidden]) {
  background:#1c301ff2!important;color:#f8efd7!important;border-color:#9aac77!important;text-shadow:none!important;
}
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup) :is(h1,h2,h3,h4,p,small,strong,label,summary,output,em,.new-note,.new-sound-label,.laundry-message,.laundry-done,#careRoutineStatus,#packStatus,#fetchtext,#buddyHelp,#rainyWindowDescription):not(button),
html[data-theme="dark"] body > :is(#packGamePanel,#fetchbar,#bathWashPanel) :is(h2,h3,p,small,strong,label,span) {
  color:#f8efd7!important;text-shadow:none!important;
}
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup) button:not([hidden]),
html[data-theme="dark"] body > :is(#packGamePanel,#fetchbar,#bathWashPanel) button:not([hidden]) {
  background:#365333!important;color:#fff4dc!important;border-color:#a6ba83!important;text-shadow:none!important;
}
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup) button :is(span,small,strong) {color:#fff4dc!important}
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup) :is(input,textarea,select,.new-choice,.laundry-scene-hint,.new-discoveries span,.six-tools,.six-book-grid article) {background:#30482e!important;color:#fff3d8!important;border-color:#8ea46e!important}
html[data-theme="dark"] :is(.panel,#world) :is(#rainyWindowPanel,#newActivityPanel,#laundryPanel,#careRoutinePanel,#bathWashPanel,#packGamePanel,#syrupPanel,#natureActivityPanel,#storytimePanel,#gearPanel,#decorPanel,#piggyLadyPanel,#fetchbar,#buddyPanel,.nature-activity-panel,.new-panel,.challenge-details,.activity-popup) :is(input,textarea)::placeholder {color:#d9e4c1!important}
/* Rainy Window needs no persistent controls on the cover: tap the scenery to leave. */
body.cover-screen-active #rainyWindowPanel{display:none!important}
body.cover-screen-active #world.rainy-window-active{cursor:pointer}

/* Cover and ordinary alerts retain a dark surface when their text is light. */
html[data-theme="dark"] :is(.potty-alert,.zoomies-alert,#piggyChoices,.piggy-choices-inner,#coverLongChoices,#coverNeedsPanel,.activity-popup){background:#203821!important;color:#fff4dc!important;border-color:#aaba80!important}
html[data-theme="dark"] :is(.potty-alert,.zoomies-alert,#piggyChoices,.piggy-choices-inner,#coverLongChoices,#coverNeedsPanel,.activity-popup) :is(span,p,small,strong,h2,h3,label){color:#fff4dc!important;text-shadow:none!important}
