/* The approved “Game on the first screen” layout. No game/static-page overrides. */
.sm-home [hidden] { display: none !important; }
.sm-home a, .sm-home button, .sm-home summary { -webkit-tap-highlight-color: transparent; }
.sm-home a:focus-visible, .sm-home button:focus-visible, .sm-home summary:focus-visible { outline: 3px solid var(--home-gold); outline-offset: 4px; }
.sm-home a { color: inherit; }
.sm-home button { font-family: inherit; }
.sm-home h1, .sm-home h2, .sm-home h3, .sm-home p { margin: 0; }
.sm-home h2 { font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.2px; }
.sm-home main { width: min(100%, 960px); margin: 0 auto 48px; }
.sm-home .sm-hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; column-gap: 40px; padding: 28px 0 34px; }
.sm-home .sm-hero { min-width: 0; }
.sm-home h1 { font: 650 clamp(34px,3.8vw,44px)/1.12 "Sofia Sans", system-ui, sans-serif; letter-spacing: -.7px; text-transform: none; text-wrap: balance; }
.sm-home .sm-intro { margin: 18px 0 22px; color: var(--home-soft); font-size: 17px; line-height: 1.5; }
.sm-home .sm-cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.sm-home .sm-primary, .sm-home .sm-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.sm-home .sm-primary { background: var(--home-red); color: var(--home-white); box-shadow: 0 3px 0 var(--home-shadow); }
.sm-home .sm-secondary { background: transparent; border-color: var(--home-line); font-weight: 500; }
.sm-home .sm-primary:hover { background: #a93d39; }
.sm-home .sm-secondary:hover { background: var(--home-rail); }
.sm-home .sm-play-icon { flex: none; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.sm-home .sm-reassurance { margin-top: 15px; font-size: 14px; color: var(--home-soft); }
.sm-home .sola-demo { min-width: 0; padding: 22px 18px; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-rail); }
.sm-home .sola-demo h2 { margin-bottom: 8px; }
.sm-home .sola-demo p { color: var(--home-soft); font-size: 15px; line-height: 1.4; }
.sm-home .sola-demo__cards { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1.15fr); align-items: stretch; gap: 12px; max-width: 380px; margin: 22px auto 0; }
.sm-home .sola-demo__choices { display: grid; grid-template-rows: repeat(2,minmax(80px,1fr)); gap: 12px; min-width: 0; }
.sm-home .sola-demo__cards button, .sm-home .sola-demo__category { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; margin: 0; padding: 12px; border: 2px solid #cbdfca; border-radius: 11px; background: var(--home-face); color: var(--home-ink); font: 600 21px/1.2 "Sofia Sans", sans-serif; text-align: center; overflow-wrap: anywhere; box-shadow: 0 3px 0 var(--home-shadow); }
.sm-home .sola-demo__cards button::before, .sm-home .sola-demo__cards button::after { content: none; }
.sm-home .sola-demo__cards button:hover { transform: translateY(-2px); }
.sm-home .sola-demo__cards button {height:100%;touch-action:none;user-select:none;cursor:grab;}
.sm-home .sola-demo__cards button[data-result="correct"] {background:#e1f5e6;border-color:#196b3b;outline:2px solid #a7ebbc;outline-offset:2px;}
.sm-home .sola-demo__cards button[data-result="wrong"] {background:#ffe4df;border-color:#ac302b;outline:2px solid #f2a69d;outline-offset:2px;}
.sm-home .sola-demo__cards button:focus-visible {outline:3px solid var(--home-gold);outline-offset:4px;}
.sm-home .sola-demo__result {position:absolute;top:5px;right:5px;display:none;place-items:center;width:21px;height:21px;border-radius:50%;color:#fffefb;}
.sm-home .sola-demo__result .sm-icon {width:14px;height:14px;stroke-width:2.4;}
.sm-home .sola-demo__result .sm-result-check,.sm-home .sola-demo__result .sm-result-x {display:none;}
.sm-home [data-result="correct"]>.sola-demo__result {display:grid;background:#196b3b;}
.sm-home [data-result="wrong"]>.sola-demo__result {display:grid;background:#ac302b;}
.sm-home [data-result="correct"]>.sola-demo__result .sm-result-check,.sm-home [data-result="wrong"]>.sola-demo__result .sm-result-x {display:block;}
.sm-home .sola-demo[data-result="correct"] .sola-demo__category {box-shadow:0 0 0 3px #89dba2,0 5px 12px var(--home-shadow);background:#e1f5e6;}
.sm-home .sola-demo[data-result="wrong"] .sola-demo__category {box-shadow:0 0 0 3px #f2a69d;}
.sm-home .sola-demo[data-result="correct"] .sola-demo__status {color:#d1ffdf;}
.sm-home .sola-demo[data-result="wrong"] .sola-demo__status {color:#ffe0d9;}
.sm-home .sola-demo__cards button.is-dragging {z-index:30;cursor:grabbing;transform:translate(var(--demo-dx),var(--demo-dy)) scale(1.04);box-shadow:0 12px 24px #073b2366;transition:none;}
.sm-home .sola-demo[data-dragging="true"] .sola-demo__category {outline:2px dashed var(--home-gold);outline-offset:5px;}
.sm-home .sola-demo .sola-demo__category[data-over="true"] {outline:3px solid var(--home-white);outline-offset:5px;}
.sm-home .sola-demo__category { container-type: inline-size; min-height: 180px; border: 3px solid var(--home-gold); padding: 38px 10px; }
.sm-home .sola-demo__label { width: 100%; font-size: clamp(20px,19cqi,26px); line-height: 1.15; font-weight: 650; text-wrap: balance; }
.sm-home .sola-demo__top { position: absolute; top: 5px; left: 5px; right: 5px; display: flex; align-items: center; justify-content: space-between; gap: 2px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sm-home .sm-category-badge { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: var(--home-gold); color: #694910; }
.sm-home .sm-category-badge svg { width: 15px; height: 15px; }
.sm-home .sola-demo__arrow { align-self: center; color: var(--home-gold); text-align: center; font: 400 22px/1 sans-serif; }
.sm-home .sola-demo__footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--home-line); }
.sm-home .sola-demo .sola-demo__status { min-height: 2.8em; margin-top: 8px; text-align: left; line-height: 1.4; font-weight: 600; }
.sm-home .sola-demo .sola-demo__hint {font-size:14px;line-height:1.4;}
.sm-home .sm-how {margin:0 0 36px;padding:24px;border:1px solid var(--home-line);border-radius:18px;background:var(--home-rail);}
.sm-home .sm-section-heading {display:flex;align-items:center;gap:12px;}
.sm-home .sm-section-icon {display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--home-gold);color:#4d330d;}
.sm-home .sm-section-icon .sm-icon {width:21px;height:21px;}
.sm-home .sm-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 18px; padding: 0; counter-reset: none; list-style: none; }
.sm-home .sm-steps li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sm-home .sm-step-number { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--home-rail); color: var(--home-gold); font-size: 14px; }
.sm-home .sm-steps h3 { font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 5px; }
.sm-home .sm-steps p { font-size: 15px; color: var(--home-soft); }
.sm-home .sm-faq details {margin:0 0 10px;padding:0 18px;border:1px solid var(--home-line);border-radius:12px;}
.sm-home .sm-faq details[open] {background:var(--home-rail);}
.sm-home .sm-faq > h2 { margin-bottom: 14px; }
.sm-home .sm-faq summary {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;padding:14px 0;list-style:none;cursor:pointer;font-size:17px;font-weight:500;}
.sm-home .sm-faq summary::-webkit-details-marker {display:none;}
.sm-home .sm-faq-toggle {display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--home-rail);color:var(--home-gold);}
.sm-home .sm-faq .sm-faq-minus,.sm-home .sm-faq details[open] .sm-faq-plus {display:none;}
.sm-home .sm-faq details[open] .sm-faq-minus {display:block;}
.sm-home .sm-faq details > p { padding: 0 0 18px; color: var(--home-soft); line-height: 1.55; }
.sm-home .sm-seo { padding: 6px 0 20px; line-height: 1.6; color: var(--home-soft); }
.sm-home .sm-seo h2 { margin-bottom: 12px; color: var(--home-white); }
.sm-home .sm-seo h3 { margin: 20px 0 8px; color: var(--home-white); }
.sm-home .sm-seo p { margin-bottom: 14px; }
.sm-home .sm-seo a { text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.sm-home .sm-seo figure { margin: 20px 0; }
.sm-home .sm-seo figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.sm-home .sm-seo figcaption { margin-top: 10px; font-size: 15px; }
@media (max-width: 760px) {
  .sm-home .sm-hero-grid { grid-template-columns: minmax(0,1fr); gap: 28px; padding-top: 10px; }
  .sm-home .sm-hero { text-align: center; }
  .sm-home h1 {font-size:34px;}
  .sm-home .sm-cta-row { justify-content: center; }
  .sm-home .sola-demo { width: 100%; max-width: 480px; justify-self: center; }
  .sm-home .sm-steps { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .sm-home .sm-how {padding:20px;}
  .sm-home footer { align-items: flex-start; }
}
@media (max-width: 380px) {
  .sm-home { padding-left: 14px; padding-right: 14px; }
  .sm-home .sm-cta-row > a { width: 100%; }
  .sm-home .sola-demo { padding: 18px 12px; }
  .sm-home .sola-demo__cards { gap: 8px; grid-template-columns: minmax(0,1fr) 18px minmax(0,1.2fr); }
  .sm-home .sola-demo__choices { grid-template-rows: repeat(2,minmax(74px,1fr)); gap: 10px; }
  .sm-home .sola-demo__cards button { font-size: 19px; padding: 8px; }
  .sm-home .sola-demo__category { min-height: 166px; padding: 34px 7px; }
  .sm-home .sola-demo__top { left: 3px; right: 3px; }
  .sm-home .sm-category-badge { width: 22px; height: 22px; }
  .sm-home h1 {font-size:32px;}
  .sm-home .sm-how {padding:18px;}
  .sm-home .sm-faq details {padding-left:14px;padding-right:14px;}
  .sm-home .sola-demo__result {width:18px;height:18px;top:3px;right:3px;}
}
@media (prefers-reduced-motion: reduce) {
  .sm-home .sola-demo__cards button:hover { transform: none; }
}
