/* Word Search — endless kid word-find, KidSafe Play pastel theme. Scoped under
   .gw so the generic class names don't clobber the site nav/buttons. No full-page
   html,body rules — the site owns <body>; .game-* chrome matches the other games. */

.game-page{width:min(96vw,920px);margin:0 auto}
.game-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.game-thumb{border-radius:16px;flex:none;box-shadow:0 6px 14px rgba(255,150,180,.25)}
.game-head h1{margin:0;font-size:26px;color:#5a4a6a;text-shadow:0 2px 0 #fff}
.game-head .sub{margin:2px 0 0;color:#9a86ad;font-size:14px}

.gw{user-select:none}
.gw *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.gw .app{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0;max-width:min(96vw,520px);margin:0 auto}

.gw .toprow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.gw .lbl{font-size:13px;font-weight:800;color:#9a86ad}
.gw .toggle{display:flex;gap:6px;background:#fff;padding:4px;border-radius:999px;box-shadow:0 4px 12px rgba(255,150,180,.18)}
.gw .opt{cursor:pointer;border:none;background:transparent;color:#9a86ad;padding:6px 14px;border-radius:999px;font-size:14px;font-weight:800}
.gw .opt.active{background:linear-gradient(180deg,#ffa9cf,#ff7eb3);color:#fff}
.gw .iconbtn{cursor:pointer;border:none;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:800;color:#fff;background:linear-gradient(180deg,#9bd0ff,#5fb8ff);box-shadow:0 4px 0 #3a93dd}
.gw .iconbtn:active{transform:translateY(2px);box-shadow:0 2px 0 #3a93dd}

/* Word Search keeps the fullscreen button inline in the control row (not floating
   over the grid corner where it would cover a letter). Overrides fullscreen.css. */
.gw .fs-btn{position:static;top:auto;right:auto;width:38px;height:38px;flex:none}

/* board: a square, position-relative stack — SVG highlight layer under the
   letter grid so capsules sit behind the letters (like the classic apps). */
.gw .board-wrap{position:relative;padding:4px}
.gw .ws-board{position:relative;width:min(94vw,460px);background:#fff7fb;border:3px solid #ffe1ee;border-radius:18px;overflow:hidden;touch-action:none}
.gw .ws-svg{position:absolute;inset:0;pointer-events:none;z-index:1}
.gw .ws-hl{opacity:.55}
.gw .ws-sel{opacity:.8}
.gw .ws-cells{position:absolute;inset:0;display:grid;z-index:2}
.gw .ws-cell{display:flex;align-items:center;justify-content:center;font-weight:900;color:#5a4a6a;font-size:clamp(15px,4.4vw,22px);text-transform:uppercase}

.gw .words{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;max-width:460px}
.gw .ws-word{font-size:13.5px;font-weight:800;color:#7a67a0;background:#fff;border-radius:999px;padding:5px 13px;box-shadow:0 3px 8px rgba(150,120,200,.14);transition:opacity .2s}
.gw .ws-word.found{color:#fff;text-decoration:line-through;text-decoration-thickness:2px;box-shadow:none}

.gw .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.9);backdrop-filter:blur(4px);border-radius:18px;text-align:center;padding:18px;z-index:5}
.gw .overlay.hidden{display:none}
.gw .ovcard{display:flex;flex-direction:column;align-items:center;gap:12px}
.gw .ovcard h2{margin:0;font-size:24px;color:#ff8fb1}
.gw .ovcard p{margin:0;font-size:15px;color:#7a67a0}
.gw .ws-btn{cursor:pointer;border:none;display:inline-block;width:auto;padding:12px 26px;border-radius:999px;font-size:16px;font-weight:800;color:#fff;background:linear-gradient(180deg,#ffa9cf,#ff7eb3);box-shadow:0 5px 0 #ef5e98}
.gw .ws-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #ef5e98}

.gw .hint{margin:0;font-size:12.5px;color:#9a86ad;text-align:center;max-width:420px;line-height:1.5}
