:root{font:16px Tahoma,Arial,sans-serif;color:#183b5e;background:#faf6ee}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #da7e2e;outline-offset:4px}header{max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px}.brand{display:flex;align-items:center;gap:12px;font-weight:bold}.brand img{width:52px;height:52px;object-fit:cover;object-position:50% 20%;border-radius:50%}.brand small{display:block;color:#6b859b;margin-top:6px;font-size:.7rem}nav{display:flex;gap:20px;font-size:.85rem}main{max-width:1240px;margin:auto;padding:0 26px 44px}.hero{background:#173e65;color:white;border-radius:30px;padding:42px}.hero>span{color:#ffd18e;font-size:.85rem}.hero h1{font-size:clamp(2rem,5vw,3.5rem);margin:16px 0}.hero p{color:#e2edf4;line-height:1.8}.games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px}.game{display:block;text-align:start;color:#183b5e;background:white;border:1px solid #e9e3d7;border-radius:24px;padding:22px;box-shadow:0 8px 24px #613b1010;transition:transform .2s}.game:hover{transform:translateY(-4px)}.art{display:grid;place-items:center;min-height:130px;font-size:3.5rem;border-radius:17px;background:#eaf1ed;letter-spacing:10px}.jackaroo .art{background:#dcefe3}.coloring .art{background:#fff0cd}.memory .art{background:#e9e5fa}.tic .art{background:#e0eef8}.maze .art{background:#f9e2e8}.badge{display:inline-block;border-radius:20px;background:#f1f4ed;color:#6a7d75;font-size:.72rem;padding:6px 10px;margin-top:18px}.game h2{margin:15px 0 8px}.game p{min-height:52px;color:#6b859b;font-size:.85rem;line-height:1.8}.game b{display:block;color:#173e65;margin-top:20px}footer{text-align:center;padding:24px;color:#6b859b;background:#efe9dd;font-size:.8rem}dialog{width:min(580px,94vw);max-height:94dvh;overflow:auto;border:0;border-radius:24px;background:#faf6ee;padding:24px;color:#183b5e}dialog::backdrop{background:#0b1e36cc}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:0}.dialog-head button{width:44px;height:44px;border:0;border-radius:50%;background:#e7ece9;color:#183b5e;font-size:1.8rem}#game-status{line-height:1.8;min-height:28px}.primary{padding:14px 22px;border:0;border-radius:13px;background:#173e65;color:white;font-weight:bold;margin-top:22px}.memory-board{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.memory-tile{aspect-ratio:1;border:0;border-radius:15px;background:#173e65;color:#fff;font-size:2rem}.memory-tile.open,.memory-tile.matched{background:#fff;border:2px solid #c6d8cb}.memory-tile.matched{background:#e0efdf}.tic-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:360px;margin:auto}.tic-cell{aspect-ratio:1;border:2px solid #dce3df;border-radius:18px;background:#fff;font-size:2.6rem;color:#173e65}.tic-cell.cpu{color:#d58132}button:disabled{cursor:default}@media(max-width:850px){.games{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){header{padding:14px;gap:10px}nav{font-size:.75rem;gap:12px}.brand img{width:40px;height:40px}.brand{font-size:.9rem}main{padding:0 14px 26px}.hero{padding:28px 22px;border-radius:23px}.games{gap:12px}.game{padding:14px;border-radius:18px}.art{min-height:90px;font-size:2.3rem;letter-spacing:0}.game h2{font-size:1.05rem}.game p{font-size:.75rem;min-height:76px}.badge{font-size:.62rem;padding:5px 7px}.game b{font-size:.8rem}.memory-tile{font-size:1.65rem}dialog{padding:18px}}
