/* Games (loaded after style.css) */
.gm{height:100%;overflow:auto;box-sizing:border-box;background:var(--beige,#ece9d8);font:12px Tahoma,Verdana,sans-serif;color:#000;outline:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px}
.gm-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;justify-content:center}
.gm-btn,.gm-sel,.gm-face{font:12px Tahoma,Verdana,sans-serif;padding:3px 10px;border:1px solid #003c74;border-radius:3px;background:linear-gradient(#fff,#ece9d8 85%,#d6d0c0);cursor:pointer}
.gm-btn:active,.gm-face:active{background:#d6d0c0}
.gm-face{font-size:20px;line-height:1;padding:2px 6px}
.gm-note{color:#333}.gm-lcd{background:#000;color:#f22;font:700 18px 'Courier New',monospace;padding:1px 5px;border:2px inset #999;min-width:3ch;text-align:center}
.gm-scroll{max-width:100%;overflow:auto}
.gm-list{display:grid;gap:4px;width:100%}.gm-item{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid transparent;background:transparent;padding:6px;font:12px Tahoma,sans-serif;cursor:pointer;border-radius:3px}
.gm-item:hover,.gm-item:focus{background:#316ac5;color:#fff}.gm-item small{display:block;opacity:.8}
.ms-grid{display:grid;border:3px inset #888;background:#bdbdbd;width:max-content}
.ms-c{width:22px;height:22px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font:700 14px Tahoma,sans-serif;background:#c8c8c8;border:3px outset #f4f4f4;cursor:pointer;user-select:none}
.ms-c.o{border:1px solid #888;background:#bdbdbd;cursor:default}.ms-c.boom{background:#f33}
.n1{color:#00f}.n2{color:#080}.n3{color:#f00}.n4{color:#008}.n5{color:#800}.n6{color:#088}.n7{color:#000}.n8{color:#666}
.sol{position:relative;width:520px;max-width:100%;min-height:360px;background:#0b7a2e;border:2px inset #064;flex:none}
.pslot{position:absolute;width:64px;height:90px;border:1px dashed #9fd9ae;border-radius:5px;color:#9fd9ae;display:flex;align-items:center;justify-content:center;font-size:22px}
.pcol{position:absolute;top:110px;width:64px;height:240px}.pc{position:absolute;left:0;width:64px;height:90px;box-sizing:border-box;background:#fff;border:1px solid #333;border-radius:5px;font:700 15px Tahoma,sans-serif;padding:4px;cursor:pointer;user-select:none;color:#111}
.pc.red{color:#c00}.pc.back{background:repeating-linear-gradient(45deg,#2a4fb8 0 4px,#1b3a8f 4px 8px);border-color:#fff}.pc.sel{outline:3px solid #ffd400;z-index:2}
.sn-cv{border:3px inset #888;max-width:100%;touch-action:none}.sn-pad{display:flex;flex-direction:column;align-items:center;gap:2px}.sn-pad div{display:flex;gap:2px}.sn-pad button{width:44px;height:34px;border:1px solid #003c74;border-radius:3px;background:linear-gradient(#fff,#d6d0c0);cursor:pointer}
.ty-words{width:100%;height:110px;overflow:hidden;position:relative;background:#fff;border:2px inset #888;padding:8px;box-sizing:border-box;font:18px 'Courier New',monospace;line-height:30px}
.ty-words span{padding:1px 3px;border-radius:3px}.ty-words .cur{background:#cfe0ff;outline:1px solid #316ac5}.ty-words .ok{color:#080}.ty-words .bad{color:#c00;text-decoration:line-through}
.ty-in{width:100%;box-sizing:border-box;font:16px 'Courier New',monospace;padding:6px;border:2px inset #888}.ty-res{text-align:center}
.ttt{display:grid;grid-template-columns:repeat(3,86px);gap:6px}.tt-c{width:86px;height:86px;font:700 44px Tahoma,sans-serif;background:#fff;border:2px outset #ddd;cursor:pointer}.tt-c.X{color:#1b55d8}.tt-c.O{color:#c63a1b}.tt-c:disabled{cursor:default}
.mem{display:grid;grid-template-columns:repeat(4,76px);gap:6px}.mc{height:76px;font:700 13px Tahoma,sans-serif;border:2px outset #ddd;border-radius:6px;background:linear-gradient(#5a8ee8,#1b55d8);color:#fff;cursor:pointer;word-break:break-all}.mc.up{color:#111;cursor:default}
