html,body{touch-action:pan-y}.game{max-width:540px;padding-bottom:max(90px,env(safe-area-inset-bottom))}.actbar{gap:6px;justify-content:space-between}.barlogo{position:static;transform:none!important;width:54px;height:auto;flex-shrink:0}.barlinks{gap:4px}.barlinks a{padding:0 8px}.blang{margin-left:0;gap:4px}#sound{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#30302f;color:#fffaf0;font-size:21px}#sound[aria-pressed=false]::after{content:"";position:absolute;width:25px;height:2px;background:#fffaf0;transform:rotate(-45deg)}.title-card{width:min(100%,340px);margin:10px auto 18px;border:3px solid #30302f;background:#e8f7f1;border-radius:28px;padding:8px 12px 20px}.title-card h1{font-size:43px;margin:0}.title-marks{display:flex;justify-content:center;gap:12px;align-items:center;font-size:90px;line-height:1.2;font-weight:600}.title-marks span:nth-child(2){color:#208567}.title-marks span:nth-child(2n+1){color:#bc343e}.start-help{font-size:20px;max-width:370px;margin:12px auto}.how{font-size:18px;line-height:1.45;max-width:370px;margin:12px auto}.example{display:flex;justify-content:center;gap:6px;margin:10px auto 18px}.example i{font:700 30px/44px Fredoka,sans-serif;width:46px;height:46px;background:#61d9b6;border:2px solid #30302f;border-radius:12px;font-style:normal}.intro-actions{display:flex;align-items:center;justify-content:center;gap:12px}.intro-actions .primary.big{min-width:150px;min-height:58px;font-size:24px}.intro-actions .secondary{min-height:52px}#count{text-align:center;font-size:21px;margin:10px auto 2px}#status{text-align:center;font-size:17px;min-height:43px;margin:4px auto;max-width:360px}#words{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:4px auto 12px}#words span{font:500 18px Fredoka,sans-serif;border:2px solid #30302f;border-radius:9px;padding:4px 8px}#words .found{text-decoration:line-through;background:#61d9b6}#board{display:grid;grid-template-columns:repeat(6,1fr);width:calc(100% - 6px);max-width:344px;margin:auto;gap:2px}.cell{aspect-ratio:1;min-width:0;min-height:44px;background:#fff9e9;border:2px solid #30302f;border-radius:8px;font:500 24px Fredoka,sans-serif;padding:0;touch-action:manipulation}.cell.found{background:#61d9b6}.cell.selected{background:#ffbd72;outline:3px solid #a94b23;outline-offset:-5px}.play-actions{display:flex;justify-content:center;gap:8px;margin:14px auto 0;flex-wrap:wrap}.play-actions button{min-height:45px;padding:8px 12px;font-size:16px}.word-search-preview{font-size:70px;line-height:1.2;color:#208567}.title-card h1{font-size:35px}body.ml #status{font-size:15px}body.ml .play-actions button{font-size:14px}body.ml .start-help{font-size:18px}body.ml .how{font-size:17px}@media(max-width:360px){.actbar{padding:0 8px;gap:4px}.barlogo{width:44px}.barlinks a{padding:0 6px}.blang #langswitch{min-width:65px;padding:0 7px;font-size:13px}.start-help{font-size:18px}.how{font-size:16px}body.ml .start-help{font-size:17px}body.ml .how{font-size:16px}.title-card h1{font-size:31px}#board{gap:1px}.cell{font-size:22px}#status{min-height:37px}}

/* Distinct target-word colours only; preserve the green found state. */
#words span{color:#30302f}#words span:nth-child(4n+1){background:#ffb2ba}#words span:nth-child(4n+2){background:#a9def5}#words span:nth-child(4n+3){background:#ffdf56}#words span:nth-child(4n+4){background:#c9b7ed}#words span.found{background:#61d9b6;text-decoration:line-through}

#board-scroll{width:calc(100% - 6px);max-width:500px;max-height:min(47dvh,420px);overflow:auto;margin:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;border-radius:8px}#board{width:max-content;max-width:none;gap:2px;margin:0 auto;grid-auto-rows:44px}.cell{width:44px;height:44px;min-height:44px;font-size:23px;touch-action:pan-x pan-y}#count{font-size:19px}

#pan-help{text-align:center;font-size:14px;margin:6px auto 2px;max-width:330px;color:#30302f}

#board-scroll:has(#board[data-size="6"]){max-height:none}

/* Whole-grid alternative for review. */
#board-scroll{max-height:none;overflow:visible;width:calc(100% - 6px);max-width:430px}#board{width:100%;grid-template-columns:repeat(var(--n,6),1fr)!important;grid-auto-rows:auto;gap:2px}.cell{width:100%;height:auto;min-height:0;aspect-ratio:1;font-size:clamp(14px,4vw,23px)}#pan-help{display:none!important}
