.reward-theme-picker { margin-top: 16px; color: var(--studio-paper); text-align: left; }
.reward-theme-picker summary {
  min-height: 58px; display: flex; gap: 12px; align-items: center;
  padding: 8px 10px; border: 1px solid currentColor; border-radius: 8px;
  cursor: pointer; font-size: 14px; line-height: 1.45;
}
.reward-theme-picker summary small { display: block; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.reward-theme-picker summary:focus-visible { outline: 3px solid var(--studio-yellow); outline-offset: 3px; }
.reward-theme-picker fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.reward-theme-picker legend { font-size: 16px; font-weight: 700; padding: 0; }
.theme-explainer { margin: 8px 0 12px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.theme-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.theme-option { position: relative; min-width: 0; cursor: pointer; }
.theme-option input { position: absolute; top: 8px; left: 8px; z-index: 1; width: 16px; height: 16px; accent-color: var(--studio-blue); }
.theme-option-content {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 122px; padding: 12px 6px 8px; border: 3px solid transparent; border-radius: 8px;
  background: var(--studio-paper); color: var(--studio-ink);
  font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center;
}
.theme-option input:checked + .theme-option-content { border-color: var(--studio-yellow); background: #fffbc9; }
.theme-option input:focus-visible + .theme-option-content { outline: 3px solid var(--studio-yellow); outline-offset: 3px; }
.theme-preview-sprite, .theme-summary-sprite { display: block; flex: none; background-size: 600% 500%; background-position: 0 0; background-repeat: no-repeat; border-radius: 6px; }
.theme-preview-sprite { width: 70px; height: 70px; }
.theme-summary-sprite { width: 42px; height: 42px; }
.theme-art-frame { position: relative; }
.theme-art { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9); background-repeat: no-repeat; }
.theme-preview-minecraft { background-image: url('/assets/minecraft-prizes-atlas.png'); background-size: 400% 400%; }
.theme-preview-dinosaurs { background-image: url('/assets/themes/dinosaurs.png'); }
.theme-preview-space { background-image: url('/assets/themes/space.png'); }
.theme-preview-unicorns { background-image: url('/assets/themes/unicorns.png'); }
.theme-preview-fairies { background-image: url('/assets/themes/fairies.png'); }
.theme-preview-garden { background-image: url('/assets/themes/garden.png'); }
/* The expanded selector needs natural-height space above the existing footer strip. */
.trainer:not(.is-playing) .welcome-demo { min-height: 90dvh; }
.trainer:not(.is-playing) .welcome-scene { position: absolute; inset: 0; height: 100%; }
@media (max-width:720px) {
  .theme-option-content { min-height: 114px; }
  .theme-preview-sprite { width: 64px; height: 64px; }
  .trainer:not(.is-playing) .welcome-demo { min-height: 58dvh; }
  .trainer:not(.is-playing) .welcome-scene { min-height: 58dvh; }
}
