/* Hand-authored standalone styles for phone activities; no legacy bundle changes. */
.cues-phone-activity { display:none; }
.cues-phone-replaced, .cues-phone-activity [hidden] { display:none !important; }
@media screen and (max-width:47.9374em) {
  .home-learning .cues-phone-activity { display:block; box-sizing:border-box; max-width:100%; margin:24px auto; padding:20px 14px; background:#fff; color:#402972; border:3px solid #402972; border-radius:22px; text-align:center; overflow-wrap:anywhere; }
  .home-learning .cues-phone-activity h2 { font-size:26px; line-height:1.2; margin:0 0 18px; color:#402972; }
  .home-learning .cues-phone-activity h3 { font-size:22px; line-height:1.3; color:#402972; }
  .home-learning .cues-phone-activity p,.home-learning .cues-phone-activity h4 { font-size:18px; line-height:1.45; margin:12px auto; color:#402972; max-width:100%; }
  .home-learning .cues-phone-activity img { max-width:100%; height:auto; display:block; margin:0 auto 12px; }
  .cues-phone-art { margin:16px 0; }
  .cues-phone-options { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
  .home-learning .cues-phone-activity button { min-height:48px; padding:12px; border:2px solid #402972; border-radius:12px; background:#402972; color:#fff; font:inherit; font-size:18px; line-height:1.3; cursor:pointer; }
  .home-learning .cues-phone-activity button:focus-visible { outline:3px solid #ed0b6d; outline-offset:3px; }
  .home-learning .cues-phone-activity button[aria-pressed="true"] { background:#e4f5e7; color:#402972; border:3px solid #278340; }
  .home-learning .cues-phone-activity button:disabled { opacity:.55; cursor:default; }
  .home-learning .cues-phone-activity button[aria-pressed="true"]:disabled { opacity:1; }
  .cues-phone-status { min-height:28px; font-weight:bold; }
  .cues-phone-nav { display:flex; gap:12px; justify-content:center; margin-top:24px; }
  .cues-phone-match { width:100%; padding:14px 0; border-bottom:2px solid #ded8eb; }
  .cues-phone-answer { border-top:2px solid #ded8eb; margin-top:20px; padding-top:16px; }
  .cues-phone-foods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .home-learning .cues-phone-foods button { background:#fff; color:#402972; font-size:16px; }
  .home-learning .cues-phone-foods img { height:78px; width:100%; object-fit:contain; }
  .cues-phone-groups { display:grid; gap:16px; margin-top:24px; }
  .cues-phone-groups > div { border:2px solid #ded8eb; padding:10px; border-radius:12px; }
  .cues-phone-packed { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
  .home-learning .cues-phone-packed button { margin-top:8px; max-width:120px; font-size:14px; background:#fff; color:#402972; }
  .home-learning .cues-phone-packed img,.home-learning .cues-phone-routine img { max-height:65px; width:80px; object-fit:contain; }
  .cues-phone-routine { margin-left:24px; }
  .cues-phone-routine li { padding:12px 0; border-bottom:2px solid #ded8eb; }
  .home-learning .cues-phone-routine button { font-size:14px; padding:8px; margin:3px; }
  .cues-phone-hints { word-spacing:8px; }
}

/* Compact lunchbox keeps the original four illustrated compartments and food artwork. */
.cues-lunch-drag { position:fixed; width:48px; height:48px; object-fit:contain; transform:translate(-50%,-50%); pointer-events:none; z-index:100000; filter:drop-shadow(0 3px 3px #0006); }
@media screen and (max-width:47.9374em) {
  .home-learning .cues-phone-lunchbox { margin:16px auto; padding:14px 8px; border:0; border-radius:18px; }
  .home-learning .cues-phone-lunchbox h2 { position:static; transform:none; font-size:22px; margin:0 8px 10px; padding:0; }
  .home-learning .cues-phone-lunchbox p { font-size:15px; line-height:1.35; margin:10px 4px; }
  .cues-lunch-board { padding:10px; border-radius:12px; background:#c99452 url('../img/home-learning/session-2/food-plate/background.png') center top / 100% auto; }
  .cues-lunch-tray { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin:0 0 10px; }
  .cues-lunch-cell { position:relative; min-width:0; aspect-ratio:520/375; }
  .home-learning .cues-phone-lunchbox .cues-lunch-target { display:block; width:100%; height:100%; min-height:0; border:0; border-radius:0; padding:0; background:none; }
  .home-learning .cues-lunch-target img { width:100%; height:100%; margin:0; }
  .cues-lunch-packed { position:absolute; inset:29% 8% 7%; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; pointer-events:none; overflow:auto; }
  .cues-lunch-dairy .cues-lunch-packed,.cues-lunch-veg .cues-lunch-packed { inset:7% 8% 29%; }
  .home-learning .cues-lunch-packed button { pointer-events:auto; flex:0 0 40px; height:40px; min-height:40px; padding:2px; border:0; background:none; border-radius:6px; }
  .home-learning .cues-lunch-packed img { width:100%; height:100%; object-fit:contain; margin:0; }
  .cues-lunch-foods { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; padding:6px; border-radius:10px; background:#fff; }
  .home-learning .cues-lunch-foods button { min-width:0; width:100%; min-height:44px; height:auto; aspect-ratio:1; padding:3px; background:#f7f7f7; border:2px solid transparent; border-radius:6px; touch-action:none; }
  .home-learning .cues-lunch-foods img { width:100%; height:100%; object-fit:contain; margin:0; pointer-events:none; user-select:none; -webkit-user-drag:none; }
  .home-learning .cues-lunch-foods button[aria-pressed="true"] { border:2px solid #ed0b6d; background:#ffe4ef; box-shadow:0 0 0 1px #ed0b6d; }
  .home-learning .cues-lunch-foods button:disabled { opacity:.2; }
  .home-learning .cues-phone-lunchbox > button { margin:6px 0 0; font-size:15px; min-height:44px; padding:8px 16px; }
  .home-learning .cues-phone-lunchbox .cues-phone-status { min-height:40px; font-size:15px; margin:10px 4px 0; }
  .home-learning.session-2.part-3 .cust-border.spacer200 { padding-top:45px; padding-bottom:35px; }
}

/* Phone routines retain the original six-place chart and twelve picture choices. */
@media screen and (max-width:47.9374em) {
 .home-learning .cues-phone-bedtime {padding:14px 8px;border:0;border-radius:18px;}
 .home-learning .cues-phone-bedtime h2 {font-size:22px;margin:0 4px 10px;}
 .home-learning .cues-phone-bedtime p {font-size:15px;line-height:1.35;margin:10px 4px;}
 .cues-routine-board {position:relative;width:100%;}
 .home-learning .cues-routine-board > img {width:100%;margin:0;}
 .home-learning .cues-routine-board .cues-routine-slot {position:absolute;transform:translate(-50%,-50%);width:17%;height:29.7%;min-height:0;padding:2px;border:2px solid transparent;border-radius:50%;background:transparent;}
 .home-learning .cues-routine-slot img {width:100%;height:100%;object-fit:contain;margin:0;}
 .cues-routine-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0;}
 .home-learning .cues-routine-choices button {min-width:0;min-height:44px;height:auto;padding:2px;border:2px solid transparent;background:#f7f7f7;border-radius:6px;}
 .home-learning .cues-routine-choices img {width:100%;height:auto;aspect-ratio:1;object-fit:contain;margin:0;}
 .home-learning .cues-routine-choices .cues-routine-label {display:block;color:#402972;font-size:14px;line-height:1.25;padding:4px 2px 6px;overflow-wrap:normal;}
 .home-learning .cues-routine-choices button[aria-pressed="true"] {border:2px solid #ed0b6d;background:#ffe4ef;box-shadow:0 0 0 1px #ed0b6d;}
 .home-learning .cues-routine-choices button:disabled {opacity:.2;}
 .home-learning .cues-phone-bedtime > button {font-size:15px;min-height:44px;padding:8px 16px;}
 .cues-match-pictures {display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
 .home-learning .cues-match-pictures button {padding:4px;background:white;color:#402972;border:2px dashed #402972;font-size:14px;}
 .home-learning .cues-match-pictures img {width:100%;margin:0;}
 .home-learning .cues-match-pictures button:disabled {opacity:1;border-style:solid;border-color:#278340;}
}

.cues-illusion-phone-help {display:none;}
@media screen and (max-width:47.9374em) {
 .home-learning .cues-illusion-phone-help {display:block;font-size:16px;line-height:1.4;margin:12px auto;}
 .home-learning .cues-illusion-desktop-help {display:none!important;}
 .home-learning .cues-illusion-drag {touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;}
 .home-learning .cues-illusion-drag:active {cursor:grabbing;}
 .home-learning .cues-tap-selected {outline:3px solid #ed0b6d;outline-offset:3px;}
}

@media screen and (max-width:47.9374em) {
 .home-learning .cues-phone-activity {padding:14px 10px;}
 .home-learning .cues-phone-activity h2 {font-size:22px;margin-bottom:10px;}
 .home-learning .cues-phone-activity h3 {font-size:18px;margin:8px 0;}
 .home-learning .cues-phone-activity p,.home-learning .cues-phone-activity h4 {font-size:15px;line-height:1.35;margin:8px auto;}
 .home-learning .cues-phone-activity button {font-size:15px;min-height:44px;padding:8px;}
 .home-learning .cues-match-pictures button {padding:4px;}
 .cues-phone-nav {margin-top:12px;}
 .cues-phone-art:empty {display:none;}
 .cues-match-text-cards {grid-template-columns:1fr;}
 .home-learning .cues-match-text-cards button {display:flex;align-items:center;justify-content:center;gap:8px;}
 .home-learning .cues-match-text-cards img {width:155px;max-width:70%;margin:0;}
 .home-learning .cues-routine-choices button,.home-learning .cues-lunch-foods button {padding:2px;}
 .home-learning .cues-routine-board .cues-routine-slot {min-height:0;padding:2px;}
 .home-learning .cues-phone-lunchbox .cues-lunch-target {min-height:0;padding:0;}
}

/* Remove the desktop answer space from the phone quiz illustrations. */
@media screen and (max-width:47.9374em) {
 .home-learning .cues-phone-art img[src*="/behaviour-quiz/"][src$="/bg.png"] {width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:left center;border-radius:8px;}
 .home-learning .cues-phone-art img[src*="/behaviour-quiz/2/bg.png"][src$="/bg.png"] {aspect-ratio:1;object-position:8% center;}
 .home-learning .cues-phone-art img[src*="/behaviour-quiz/4/bg.png"][src$="/bg.png"] {aspect-ratio:1;object-position:25% center;}
}
