/* Shared game-card treatment, adapted from the homepage pathway effects. */
@property --game-frame-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.game-card-fx { --game-gold: #d6c08a; position: relative; isolation: isolate; }
.game-card-fx .game-card-glow {
 position: absolute; inset: -1px; z-index: 1; border: 1px solid var(--game-gold);
 border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0;
 box-shadow: 0 0 14px rgb(214 192 138 / .22), inset 0 0 12px rgb(214 192 138 / .08);
 transition: opacity 160ms ease-out;
}
.game-card-fx:is(:hover, :focus-visible, :focus-within, :active, .selected) .game-card-glow { opacity: 1; }
.game-card-fx .game-card-glow::before {
 content: ''; position: absolute; inset: 0; pointer-events: none;
 background: linear-gradient(115deg, transparent 40%, rgb(244 223 170 / .20) 50%, transparent 60%);
 transform: translateX(-100%);
}
.game-card-fx:is(:hover, :focus-visible, :focus-within, :active) .game-card-glow::before { animation: game-card-shine 800ms ease-out both; }
@keyframes game-card-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes game-card-frame { to { --game-frame-angle: 360deg; } }
@supports (mask-composite: exclude) {
 .game-card-fx .game-card-glow::after {
  content: ''; position: absolute; inset: -1px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--game-frame-angle), transparent 0deg 220deg, rgb(214 192 138 / .5) 270deg, #f4dfaa 310deg, transparent 350deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
 }
 .game-card-fx:is(:hover, :focus-visible, :focus-within, :active) .game-card-glow::after { animation: game-card-frame 2.6s linear infinite; }
}

/* All nine missions remain visible on wide screens. Native touch scrolling
   exposes the next card on phones; cards never advance automatically. */
#mp-root .scenario-picker { min-width: 0; margin-bottom: 32px; }
#mp-root .scenario-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; padding: 6px; margin: -6px; }
#mp-root .scenario-choice { display: flex; align-items: flex-start; gap: 16px; min-width: 0; min-height: 148px; height: 100%; padding: 22px; border: 1px solid var(--line); background: #0d1218; }
#mp-root .scenario-choice > span:last-child { min-width: 0; }
#mp-root .scenario-choice strong { font-size: clamp(21px, 2.1vw, 27px); margin: 0 0 8px; }
#mp-root .scenario-choice small { font-size: 13px; }
#mp-root .scenario-choice.selected { border-color: var(--brass); background: linear-gradient(115deg, rgb(214 192 138 / .10), #0d1218 85%); }
#mp-root .scenario-choice.selected .scenario-number { text-decoration: underline; text-underline-offset: 8px; }
#mp-root .scenario-swipe-hint { display: none; }
.neuroCourse .neuroFreeTrainer { border-block: 0; background: transparent; }
.neuroCourse .neuroFreeCard { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 650px) {
 #mp-root .scenario-picker .section-heading { align-items: flex-start; gap: 12px; }
 #mp-root .scenario-picker .section-heading > span { text-align: right; }
 #mp-root .scenario-swipe-hint { display: block; }
 #mp-root .scenario-list {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--brass) #151b22;
 }
 #mp-root .scenario-choice { min-height: 172px; padding: 20px; scroll-snap-align: start; scroll-margin-inline: 6px; }
 .neuroCourse .neuroFreeCard { padding: 22px 18px; }
}
#mp-root.low-graphics .game-card-glow { transition: none; box-shadow: none; }
#mp-root.low-graphics .game-card-glow::before, #mp-root.low-graphics .game-card-glow::after { content: none; animation: none; }
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
 .game-card-fx .game-card-glow { transition: none; box-shadow: none; }
 .game-card-fx .game-card-glow::before, .game-card-fx .game-card-glow::after { content: none; animation: none; }
 #mp-root .scenario-list { scroll-behavior: auto; }
}
@media (forced-colors: active) {
 .game-card-fx:is(:hover, :focus-visible, :focus-within, :active, .selected) { outline: 2px solid Highlight; outline-offset: 2px; }
}
@media print {
 .game-card-fx .game-card-glow { display: none; }
 #mp-root .scenario-list { overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
 #mp-root .scenario-swipe-hint { display: none; }
}
