.theme-picker {
  width: min(90vw, 29rem);
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: clamp(1rem, 3vh, 2rem);
  border: 1px solid #d8d0db;
  border-radius: 1.4rem;
  background: #fcf9f1;
  color: #292443;
  font-family: Nunito,sans-serif;
  text-align: center;
  box-shadow: 0 1.2rem 4rem #37275835;
}
.theme-picker::backdrop { background: #eee9f8; }
.theme-picker h2 { margin: 0 0 1rem; font: 550 clamp(1.6rem, 4vw, 2.3rem)/1.1 Fredoka,sans-serif; }
.theme-card { display: grid; gap: .6rem; width: 100%; padding: .45rem .45rem .7rem; border-radius: 1rem; border: 2px solid #292443; background: #fff; color: #292443; cursor: pointer; font: 600 1.5rem Fredoka,sans-serif; }
.theme-card img { display: block; width: 100%; height: min(25vh, 12rem); object-fit: cover; border-radius: .6rem; }
.theme-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: .45rem auto 0; padding: .4rem .9rem; border: 0; background: none; color: #463568; font: 800 1rem Nunito,sans-serif; text-decoration: underline; cursor: pointer; }
.theme-picker :focus-visible, [data-choose-theme]:focus-visible { outline: 3px solid #754bad; outline-offset: 3px; }
.theme-menu-link { position: absolute; left: var(--nav-inset); bottom: .55rem; z-index: 2; min-height: 44px; padding: .4rem .8rem; color: #292443; background: #fff8ee; border: 2px solid #292443; border-radius: 1rem; font: 700 1rem Fredoka,sans-serif; cursor: pointer; }
.theme-menu-link[hidden] { display: none; }
