.preview-theme-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-top: .8rem;
  padding: 4px;
  border: 1px solid #9b7e9e;
  background: #151222ee;
}
@media (max-width: 740px) {
  #intro .preview-theme-switch { margin-inline: auto; }
}
.preview-theme-label {
  grid-column: 1 / -1;
  padding: 3px 5px;
  color: #ead9f0;
  font: 700 .68rem/1 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.preview-theme-switch form { margin: 0; }
.preview-theme-switch button,
#intro .preview-theme-switch button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .4rem .65rem;
  margin: 0;
  border: 1px solid #735e81;
  border-radius: 0;
  background: #30253d;
  color: #fff0db;
  font: 750 .8rem/1.15 system-ui, sans-serif;
  cursor: pointer;
}
.preview-theme-switch button:hover:not(:disabled) { background: #493553; }
.preview-theme-switch button[aria-pressed="true"],
#intro .preview-theme-switch button[aria-pressed="true"] {
  opacity: 1;
  background: #ffcf8c;
  border-color: #ffe8b6;
  box-shadow: inset 0 -3px #bf885d;
  color: #261b2a;
  cursor: default;
}
.preview-theme-switch button[data-choice="classic"][aria-pressed="true"],
#intro .preview-theme-switch button[data-choice="classic"][aria-pressed="true"] {
  background: #cfb7fa; border-color: #eadbff; box-shadow: inset 0 -3px #8a6cbb; color: #231537;
}
.preview-theme-switch button:focus-visible { outline: 2px solid #a4f9df; outline-offset: 1px; }
.classic-finale-lab { position: absolute; z-index: 5; inset: auto .75rem 2.75rem auto; max-width: min(20rem, 92vw);
  padding: .5rem; background: #211830f5; border: 1px solid #a38ab9; font: .76rem system-ui, sans-serif; }
.classic-finale-lab summary { cursor: pointer; }
.classic-finale-lab label { display: flex; align-items: center; gap: .45rem; margin-block: .28rem; }
.classic-finale-lab button { color: #fff2d7; background: #39274b; border: 1px solid #a38ab9; padding: .25rem; margin: .2rem; }
#classic-finale-summary { margin: .75rem 0; color: #e8d2fd; font-size: .88rem; }
#classic-rarest-picks { margin-block: 1rem; color: #e8d2fd; }
#classic-rarest-picks h3 { margin-block: 0 .35rem; font-size: 1rem; }
#classic-rarest-picks ol { margin-block: 0; padding-inline-start: 1.5rem; font-size: .88rem; }
[data-classic-preview-api] .game-shell:has(.stage[data-view="ultimate"]) .game-footer { visibility: hidden; }
[data-classic-preview-api] .finale-controls button {
  border: 1px solid #a38ab9;
  border-radius: 0;
  padding-inline: .65rem;
  background: #20172ef5;
  color: #fff2d7;
}
[data-classic-preview-api] .finale-controls button:hover { background: #39274b; }
[data-classic-preview-api] .finale-controls button:focus-visible { outline: 2px solid #ffcc78; outline-offset: 2px; }
#game :is(.trio-screen, .trio-feedback) { --paper: #fff0d6; --gold: #ffc27d; --readable: system-ui, sans-serif; --pixel: "Pixelify Sans", monospace; }
#game .trio-screen { position: absolute; z-index: 2; inset: 56px 0 0; }
#game .trio-feedback { max-height: 90dvh; overflow: auto; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation-duration: 180ms; }
  ::view-transition-new(root) { animation-duration: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
