/* Subject postcards: original book illustrations and a large, accessible radio target. */
.blitz-theme-card:has(.blitz-theme-art) {
  --theme-accent: #486d99;
  --theme-tint: #eaf3fb;
  --theme-line: #c6d9ec;
  --theme-glow: #6f9dcc25;
  isolation: isolate;
}
.blitz-theme-card:has([data-palette="amber"]) {--theme-accent:#8a602e;--theme-tint:#fbf1df;--theme-line:#e7d3b3;--theme-glow:#cc9c4725}
.blitz-theme-card:has([data-palette="rose"]) {--theme-accent:#a05f65;--theme-tint:#fbebea;--theme-line:#e8c9c9;--theme-glow:#d18a9225}
.blitz-theme-card:has([data-palette="violet"]) {--theme-accent:#786198;--theme-tint:#f1edf9;--theme-line:#d9cdeb;--theme-glow:#a48acb25}
.blitz-theme-card:has([data-palette="green"]) {--theme-accent:#467b59;--theme-tint:#edf6e9;--theme-line:#c9dec4;--theme-glow:#8ab77b25}
.blitz-theme-card:has([data-palette="teal"]) {--theme-accent:#3e7d7e;--theme-tint:#eaf5f2;--theme-line:#bddbd4;--theme-glow:#70aaa325}

.blitz-theme-card:has(.blitz-theme-art) > .blitz-theme-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--theme-line);
  border-radius: 22px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--theme-line), 0 9px 19px #31493c08;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blitz-theme-art {
  position: relative;
  display: block;
  order: -1;
  width: 100%;
  height: 160px;
  flex: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 44% 25%, #fffdf9e6 0 16%, #ffffff00 70%),
    linear-gradient(145deg, var(--theme-tint), #fffaf3);
  border-bottom: 1px solid var(--theme-line);
  pointer-events: none;
}
.blitz-theme-art::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid #ffffffa6;
  border-radius: 15px;
}
.blitz-theme-art::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  top: -37px;
  right: -25px;
  border: 12px solid #ffffff65;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.blitz-theme-art__image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.08);
  transition: transform .25s ease;
}
.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 17px 18px 19px;
  gap: 8px;
  align-content: start;
}
.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > small {
  color: var(--theme-accent);
  font-size: 9px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .075em;
}
.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > strong {
  color: #263d38;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.27;
  overflow-wrap: break-word;
}
.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > span {
  color: #607268;
  font-size: 12px;
  line-height: 1.55;
}
.blitz-theme-card:has(.blitz-theme-art) > input {
  z-index: 2;
  top: 14px;
  right: 14px;
  left: auto;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--theme-accent);
  filter: drop-shadow(0 1px 3px #31453820);
}
.blitz-theme-card:has(.blitz-theme-art) > input:checked + .blitz-theme-content {
  border-color: var(--theme-accent);
  background: #fffdf8;
  box-shadow: 0 3px 0 var(--theme-accent), 0 0 0 3px var(--theme-glow), 0 11px 23px #31493c0d;
}
.blitz-theme-card:has(.blitz-theme-art) > input:checked + .blitz-theme-content .blitz-theme-art {
  background: radial-gradient(ellipse at 45% 26%, #fffdf9d9 0 8%, #ffffff00 65%), var(--theme-tint);
}
.blitz-theme-card:has(.blitz-theme-art) > input:checked + .blitz-theme-content .blitz-theme-copy {
  background: linear-gradient(180deg, #fffdf8, var(--theme-tint));
}
.blitz-theme-card:has(.blitz-theme-art) > input:focus-visible + .blitz-theme-content {
  outline: 3px solid #334f85;
  outline-offset: 5px;
}
.blitz-theme-card:has(.blitz-theme-art) > input:disabled + .blitz-theme-content {opacity:.58;filter:grayscale(.3)}

@media (hover:hover) and (pointer:fine) {
  .blitz-theme-card:has(.blitz-theme-art):hover > .blitz-theme-content {transform:translateY(-3px);box-shadow:0 5px 0 var(--theme-line),0 14px 28px #31493c10}
  .blitz-theme-card:has(.blitz-theme-art):hover .blitz-theme-art__image {transform:scale(1.13) rotate(-1deg)}
  .blitz-theme-card:has(.blitz-theme-art):has(input:checked):hover > .blitz-theme-content {box-shadow:0 5px 0 var(--theme-accent),0 0 0 3px var(--theme-glow),0 14px 28px #31493c10}
}
@media (min-width:1150px) {.blitz-theme-cards:has(.blitz-theme-art){gap:19px}}
@media (max-width:760px) {
  .blitz-theme-card:has(.blitz-theme-art) > .blitz-theme-content {flex-direction:row;min-height:156px;border-radius:18px}
  .blitz-theme-art {width:133px;height:auto;align-self:stretch;border-bottom:0;border-right:1px solid var(--theme-line)}
  .blitz-theme-art__image {position:absolute;inset:0;object-fit:contain;transform:scale(1.25)}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy {padding:18px 14px 17px;gap:7px}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > strong {font-size:17px}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > small {font-size:8px;padding-right:22px}
  .blitz-theme-card:has(.blitz-theme-art) > input {top:12px;right:11px;width:19px;height:19px}
}
@media (max-width:430px) {
  .blitz-theme-art {width:100px}
  .blitz-theme-art__image {transform:scale(1.4)}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy {padding:16px 12px}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > strong {font-size:16px}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > span {font-size:11px}
}
@media (prefers-reduced-motion:reduce) {
  .blitz-theme-card:has(.blitz-theme-art) > .blitz-theme-content,.blitz-theme-art__image {transition:none!important}
  .blitz-theme-card:has(.blitz-theme-art):hover > .blitz-theme-content {transform:none}
  .blitz-theme-card:has(.blitz-theme-art):hover .blitz-theme-art__image {transform:scale(1.08)}
}
@media (forced-colors:active) {
  .blitz-theme-card:has(.blitz-theme-art) > .blitz-theme-content {border:2px solid ButtonText;box-shadow:none}
  .blitz-theme-card:has(.blitz-theme-art) > input:checked + .blitz-theme-content {border-color:Highlight;outline:2px solid Highlight;box-shadow:none}
  .blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > strong,.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > span,.blitz-theme-card:has(.blitz-theme-art) .blitz-theme-copy > small {color:CanvasText}
}

/* Subject guides belong to the play screen; the SVG subject cards above stay unchanged. */
.blitz-stage:has(.blitz-guide-scene) {grid-template-columns:240px minmax(0,1fr);gap:24px}
.blitz-guide:has(.blitz-guide-scene) {min-width:0;padding-top:9px}
.blitz-guide-scene {display:block;width:100%;height:auto;max-width:100%;aspect-ratio:800/533;object-fit:contain;object-position:center;filter:drop-shadow(0 10px 12px #36543b16);transition:filter .2s ease}
.blitz-guide-scene.is-fallback {height:160px;object-fit:contain}
.blitz-guide:has(.blitz-guide-scene)>p {position:relative;border-radius:19px;padding:15px;font-size:13px;line-height:1.7;margin:0;background:#fffdf5;border-color:#dde6d4}
.blitz-guide.is-ready .blitz-guide-scene {filter:drop-shadow(0 11px 14px #aa8a3530)}
@media(max-width:1100px) and (min-width:761px) {
  .blitz-stage:has(.blitz-guide-scene) {grid-template-columns:190px minmax(0,1fr);gap:18px}
  .blitz-guide:has(.blitz-guide-scene)>p {padding:12px;font-size:12px}
}
@media(max-width:760px) {
  .blitz-stage:has(.blitz-guide-scene) {grid-template-columns:minmax(0,1fr);gap:17px}
  .blitz-guide:has(.blitz-guide-scene) {display:grid;grid-template-columns:140px minmax(0,1fr);column-gap:15px;align-items:center;padding-top:0;text-align:left}
  .blitz-guide .blitz-guide-scene {grid-column:1;width:140px;height:100px;max-width:100%;aspect-ratio:auto}
  .blitz-guide:has(.blitz-guide-scene)>p {grid-column:2;align-self:center;padding:10px 12px;font-size:12px;line-height:1.6;min-width:0}
}
@media(max-width:430px) {
  .blitz-guide:has(.blitz-guide-scene) {grid-template-columns:110px minmax(0,1fr);column-gap:10px}
  .blitz-guide .blitz-guide-scene {width:110px;height:86px}
  .blitz-guide:has(.blitz-guide-scene)>p {padding:9px 10px;font-size:11px}
}
@media(max-width:360px) {
  .blitz-guide:has(.blitz-guide-scene) {grid-template-columns:88px minmax(0,1fr);column-gap:8px}
  .blitz-guide .blitz-guide-scene {width:88px;height:72px}
}
@media(prefers-reduced-motion:reduce) {.blitz-guide-scene{transition:none}}

/* The selected subject reveals its own launch controls. */
.blitz-theme-card:has(.blitz-theme-art) {display:flex;flex-direction:column;cursor:default}
.blitz-theme-card:has(.blitz-theme-art) > .blitz-theme-content {height:auto;flex:1;cursor:pointer}
.blitz-theme-card:has(.blitz-theme-art):has(.blitz-card-launch) > input:checked + .blitz-theme-content {border-bottom:0;border-radius:22px 22px 0 0;box-shadow:none}
.blitz-card-launch {position:relative;padding:4px 18px 20px;border:1px solid var(--theme-accent);border-top:0;border-radius:0 0 22px 22px;background:linear-gradient(155deg,var(--theme-tint),#fff3d7);box-shadow:0 4px 0 var(--theme-accent),0 12px 24px var(--theme-glow);animation:blitz-launch-reveal .22s ease-out}
.blitz-card-launch .blitz-settings {display:block;margin:0;padding-top:14px;border-top:1px solid var(--theme-line)}
.blitz-card-launch .blitz-settings > .field {width:100%;margin:0}
.blitz-card-launch .field__label {font-size:12px;line-height:1.5;color:var(--theme-accent)}
.blitz-card-launch .blitz-set-fixed {padding:0;border:0;background:none;box-shadow:none;gap:10px}
.blitz-card-launch .blitz-set-fixed-icon {width:30px;height:30px;font-size:17px;flex:none}
.blitz-card-launch .blitz-set-fixed-label {font-size:10px}
.blitz-card-launch .blitz-set-fixed-name {font-size:14px;line-height:1.4}
.blitz-card-launch__facts {margin:12px 0 14px;color:#665437;font-size:12px;font-weight:650;line-height:1.5}
.blitz-theme-card .blitz-card-start.button--primary {position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:12px 14px;border:1px solid #e5a72e;border-radius:14px;background:linear-gradient(135deg,#ffe490,#ffc34f 65%,#ffb948);color:#49320d;box-shadow:0 4px 0 #ce8f26,0 8px 18px #d69a3228;font-size:15px;font-weight:800;line-height:1.4;white-space:normal;transition:transform .18s ease,box-shadow .18s ease}
.blitz-card-start::after {content:'→' / '';font-size:22px;line-height:1}
.blitz-theme-card .blitz-card-start:focus-visible {outline:3px solid #314e83;outline-offset:5px}
.blitz-theme-card .blitz-card-start:disabled {cursor:wait;opacity:.7}
@keyframes blitz-launch-reveal {from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover) and (pointer:fine) {
  .blitz-theme-card:has(.blitz-theme-art):has(.blitz-card-launch):hover > input:checked + .blitz-theme-content {transform:none;box-shadow:none}
  .blitz-theme-card .blitz-card-start:not(:disabled):hover {transform:translateY(-2px);background:linear-gradient(135deg,#ffecaa,#ffd26c 65%,#ffc04c);box-shadow:0 6px 0 #ce8f26,0 10px 22px #d69a3233}
}
.blitz-theme-card .blitz-card-start:not(:disabled):active {transform:translateY(3px);box-shadow:0 1px 0 #ce8f26}
@media(max-width:760px) {
  .blitz-theme-card:has(.blitz-card-launch) > .blitz-theme-content {border-radius:18px 18px 0 0}
  .blitz-card-launch {padding:4px 16px 18px;border-radius:0 0 18px 18px}
}
@media(prefers-reduced-motion:reduce) {
  .blitz-card-launch {animation:none}
  .blitz-theme-card .blitz-card-start {transition:none;transform:none!important}
}
@media(forced-colors:active) {
  .blitz-card-launch {background:Canvas;border:2px solid Highlight;border-top:0;box-shadow:none}
  .blitz-theme-card .blitz-card-start.button--primary {background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none}
  .blitz-card-launch__facts {color:CanvasText}
}
