/* Ski Math Slalom : page-specific styles (shared: sim3d.css, ski3d.css) */
.sms-opts { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.sms-opt h3 { margin: 0 0 6px; }
.sms-opt div { display: flex; gap: 6px; flex-wrap: wrap; }
.sms-opt button { flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: 800 14px system-ui, sans-serif; }
.sms-opt button small { font-weight: 600; font-size: 11px; opacity: .75; }
.sms-opt button[aria-pressed="true"] { border-color: #7dd3fc; background: rgba(14, 165, 233, .18); }
.sms-opt button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.sms-st { font-size: 28px; margin: 4px 0; }
.sms-fix { text-align: left; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.sms-fix p { margin: 0 0 4px; font-weight: 800; } .sms-fix ul { margin: 0; padding-left: 18px; } .sms-fix li { margin: 2px 0; } .sms-fix small { opacity: .75; }

/* the question card (top centre) + the three answers in gate order */
.sms-q { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); text-align: center; pointer-events: none; background: rgba(10, 24, 44, .84); border: 2px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 6px 18px 8px; min-width: 200px; }
.sms-q b { display: block; font: 900 clamp(26px, 4.4cqw, 40px)/1.15 system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sms-ch { display: flex; justify-content: center; gap: 8px; margin-top: 5px; }
.sms-ch:empty { display: none; }
.sms-ch span { min-width: 54px; padding: 2px 10px; border-radius: 10px; font: 900 20px/1.3 system-ui, sans-serif; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.sms-c0 { background: #dc2626; } .sms-c1 { background: #2563eb; } .sms-c2 { background: #16a34a; }
.sms-q.is-new { animation: sms-new .5s ease-out; }
@keyframes sms-new { 0% { transform: translateX(-50%) scale(.85); } 60% { transform: translateX(-50%) scale(1.06); } 100% { transform: translateX(-50%) scale(1); } }

.sms-play.is-over .sim-tbtns, .sms-play.is-over .sim-toolbar { display: none; }
/* touch: big steer buttons, no jump */
.sms-play .sk-touch .sim-tbtns { grid-template-columns: 84px 84px 1fr 64px 64px; }
.sms-play .sk-touch .sim-tbtn[data-id="left"], .sms-play .sk-touch .sim-tbtn[data-id="right"] { height: 70px; font-size: 28px; }
.sms-play .sk-touch .sim-tbtn[data-id="jump"] { display: none; }
@container (max-width: 560px) {
  .sms-q { top: 6px; left: auto; right: 8px; transform: none; padding: 4px 12px 6px; min-width: 0; } .sms-q b { font-size: 26px; }
  .sms-q.is-new { animation: none; }
  .sms-ch span { min-width: 46px; font-size: 17px; }
  .sk-tl { top: 104px; }
  .sms-play .sk-touch .sim-tbtns { grid-template-columns: 74px 74px 1fr 56px 56px; }
  .sms-play .sk-touch .sim-tbtn[data-id="left"], .sms-play .sk-touch .sim-tbtn[data-id="right"] { height: 64px; font-size: 26px; }
}
