/* Phone-only LampoMath homepage: existing desktop art & all interior pages remain unchanged. */
.mobile-home{display:none}
@media(max-width:700px){
  html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
  body{display:block;place-items:initial;background:#04142c}
  .home-art{display:none!important}
  .mobile-home{display:block;width:100%;min-height:100dvh;color:#092b50;font-family:Arial,sans-serif;background:linear-gradient(180deg,#051b3b 0%,#07234d 22%,#0a2a55 100%)}
  .m-header{background:linear-gradient(140deg,#001a3a,#072958);border-bottom:2px solid #316c9f;padding:10px 13px 11px}
  .m-brand{display:block;width:min(245px,75vw);margin:0 auto 8px}
  .m-brand img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 4px #0005)}
  .m-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 7px;max-width:460px;margin:auto}
  .m-nav a{color:#e3f5ff;text-decoration:none;font-size:13px;font-weight:800;border:1px solid #5a91be66;border-radius:15px;padding:8px 9px;min-height:37px;display:flex;align-items:center}
  .m-nav a[aria-current]{color:#e6ff39;border-color:#b8f32a77}
  .m-content{width:100%;max-width:540px;margin:12px auto 24px;padding:0 11px}
  .m-hero,.m-section{background:linear-gradient(160deg,#eaf7ff,#c8e7ff);border:2px solid #a1d3f9;border-radius:22px;box-shadow:0 8px 24px #0005}
  .m-hero{padding:15px 12px 16px;margin-bottom:12px}
  .m-hero h2{text-align:center;font-size:clamp(23px,6.6vw,35px);letter-spacing:-1.5px;line-height:1.17;color:#061f4b;margin:0 0 14px;font-weight:900}
  .m-green{color:#2c9b14}.m-orange{color:#ed7200}
  .m-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .m-action{display:flex;align-items:center;justify-content:center;gap:3px;padding:10px 6px;min-height:53px;border-radius:16px;text-align:center;text-decoration:none;font-size:clamp(13px,3.8vw,16px);font-weight:900;line-height:1.25;box-shadow:0 4px 8px #153b5960;border:2px solid #ffffffb0}
  .m-action span{font-size:23px;line-height:1}
  .m-games{color:#092d36;background:linear-gradient(#e3ff75,#a5ed11);border-color:#69b906}
  .m-lessons{color:white;background:linear-gradient(#36b9ff,#0065e2);border-color:#0055c4}
  .m-challenges{grid-column:1/-1;color:#17283f;background:linear-gradient(#fff075,#ffaa00);border-color:#ff9400}
  #mobile-search-form{margin-top:13px}
  .m-label{display:block;font-size:12px;font-weight:800;color:#5277a1;margin-bottom:5px}
  .m-search-row{display:flex;gap:6px}
  #mobile-search{min-width:0;flex:1;height:43px;border:1px solid #7ab0dc;border-radius:12px;background:white;padding:0 10px;color:#0e3353;font-size:15px}
  .m-search-row button{flex:0 0 auto;padding:0 12px;min-height:43px;border:0;border-radius:11px;background:#096cba;color:white;font-weight:800}
  .m-section{padding:12px 10px 14px;margin-top:12px}
  .m-section-heading h2{margin:0;font-size:clamp(22px,5.4vw,29px);letter-spacing:-.5px;color:#062b58}
  .m-section-heading p{font-size:13px;color:#587caa;font-weight:700;margin:3px 0 12px}
  .m-game-grid,.m-lesson-grid{display:grid;grid-template-columns:1fr;gap:13px}
  .m-game{display:block;overflow:hidden;border:2px solid #69a7d7;border-radius:19px;background:linear-gradient(#05264d,#044179);color:#13314d;text-decoration:none;box-shadow:0 3px 8px #10477655;text-align:center}
  .m-game img{display:block;width:100%;height:auto;aspect-ratio:1.78;object-fit:cover;object-position:center top}
  .m-play{display:block;margin:0;background:linear-gradient(#e4ff68,#98e20f);padding:10px 8px;color:#0e3045;font-size:16px;font-weight:900;min-height:40px}
  .m-refresher{color:#2e4d70;font-size:13px;margin:12px 3px 0;font-weight:700;line-height:1.5}
  .m-refresher a,.m-see-all a{color:#006cd9}
  .m-lesson{display:block;overflow:hidden;border:2px solid #acd3ec;border-radius:16px;box-shadow:0 3px 7px #09376035}
  .m-lesson img{display:block;width:100%;height:auto}
  .m-see-all{text-align:right;font-size:14px;font-weight:800;margin:12px 3px 0}
  .m-resources{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:18px 0 16px}
  .m-resources a,.m-resources button{display:inline-block;border:1px solid #83c2ef;border-radius:10px;background:linear-gradient(#fff,#d9ebff);color:#113e62;font-size:13px;font-weight:800;padding:10px 12px;text-decoration:none;min-height:40px}
  .m-resources button:last-child{background:linear-gradient(#e5f4da,#b5dbab)}
  .m-footer{text-align:center;color:#cae4fb;font-size:13px;margin:10px 0 20px;line-height:1.7}
  .m-footer a{color:#ffffff;font-weight:bold;text-decoration:underline}
  .mobile-home a:focus-visible,.mobile-home button:focus-visible,.mobile-home input:focus-visible{outline:3px solid #ffad0a;outline-offset:3px}
}
@media (min-width:501px) and (max-width:700px){.m-game-grid,.m-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.m-game img{aspect-ratio:1.58}.m-hero h2{font-size:35px}}
@media(max-width:350px){.m-brand{width:min(210px,70vw)}.m-nav a{font-size:12px;padding:7px 8px;min-height:35px}.m-content{padding:0 9px}.m-hero{padding:12px 10px}.m-section{padding:11px 9px}.m-action{font-size:13px}}

/* Desktop: discreet contact link in the existing bottom resource row. */
@media(min-width:701px){.home-art>.community-row .home-contact-link{font-size:1.15cqw;padding:.5cqw .65cqw;flex:0 0 auto}}

/* Homepage mobile resource colors (no change to inner pages) */
@media(max-width:700px){
  .m-resources .resource-worksheets{
    background:linear-gradient(180deg,#eeffd1,#b9ef78);
    border-color:#91ce55;
    color:#244311;
  }
  .m-resources .resource-walkthroughs{
    background:linear-gradient(180deg,#fff0d3,#ffd098);
    border-color:#eead6b;
    color:#633b16;
  }
}
