/* The theme chooser, a launcher page: it wears the player's theme like every other, and each card shows its own. */
.themes-page { max-width: 64rem; display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); padding-block: .4rem 2.5rem; }
.themes-head { display: grid; gap: .4rem; }
.themes-head h1 { font: 900 clamp(2.2rem, 6vw, 3.6rem)/1 var(--sw-display); text-transform: uppercase; letter-spacing: -.01em; }
.themes-head .hint { max-width: 40rem; color: var(--sw-muted); font-size: 1.1rem; }
.eyebrow { font: 800 .82rem/1 var(--sw-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sw-accent); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .9rem; }
.theme-card { display: grid; gap: 0; width: 100%; padding: 0; overflow: hidden; text-align: start; cursor: pointer;
  border: 1.5px solid var(--sw-border); border-radius: var(--sw-radius); background: var(--sw-raised); color: var(--sw-on-raised);
  transition: translate var(--sw-quick), border-color var(--sw-quick), box-shadow var(--sw-quick); }
.theme-card:hover { translate: 0 -3px; border-color: var(--sw-accent); box-shadow: 0 10px 26px var(--glow); }
/* The chosen one is ringed and ticked, so it never rests on color alone. */
.theme-card[aria-pressed="true"] { border-color: var(--sw-action); box-shadow: 0 0 0 2px var(--sw-action); }
.theme-words { display: grid; gap: .2rem; padding: .7rem .85rem .85rem; }
.theme-words strong { font: 800 1.05rem/1.2 var(--sw-display); }
.theme-card[aria-pressed="true"] .theme-words strong::after { content: " ✓"; color: var(--sw-action); }
.theme-words small { color: var(--sw-muted); font-size: .85rem; }

/* A small picture of the theme in its own colors: its surface, a raised panel with "Aa" in its type, three bright dots. */
.theme-preview { display: grid; place-items: center; aspect-ratio: 16 / 8; padding: .8rem; background: var(--p-surface, var(--sw-surface));
  border-bottom: 1px solid var(--sw-border); }
.theme-panel { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; padding: .55rem .75rem;
  border: 1px solid var(--p-border, var(--sw-border)); border-radius: var(--p-radius, 8px); background: var(--p-raised, var(--sw-raised)); }
.theme-sample { font: 800 1.5rem/1 var(--p-display, var(--sw-display)); color: var(--p-on-raised, var(--sw-on-raised)); }
.theme-swatches { display: flex; gap: .3rem; }
.theme-swatches span { width: 1.05rem; height: 1.05rem; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--p-raised, var(--sw-raised)), 0 0 0 2.5px var(--p-border, var(--sw-border)); }
.theme-swatches [data-role="action"] { background: var(--p-action, var(--sw-action)); }
.theme-swatches [data-role="accent"] { background: var(--p-accent, var(--sw-accent)); }
.theme-swatches [data-role="positive"] { background: var(--p-positive, var(--sw-positive)); }

#status { min-height: 1.4em; color: var(--sw-muted); }
.game-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--sw-border) 60%, transparent); font-weight: 600; }
.game-choice:first-child { border-top: 0; }
.game-choice select { min-height: 2.75rem; padding: .3rem .6rem; border: 1.5px solid var(--sw-border); border-radius: calc(var(--sw-radius) * .6);
  background: var(--sw-surface); color: var(--sw-on-surface); font: inherit; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--sw-action); }
@media (prefers-reduced-motion: reduce) { .theme-card { transition: none; } .theme-card:hover { translate: none; } }
