.games-grid{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;padding:8px}.game-tile{display:flex;flex-direction:column;align-items:center;gap:6px;width:84px;text-decoration:none;color:#000;padding:8px 6px;border:1px solid transparent;text-align:center;font-size:11px;cursor:pointer;user-select:none}.game-tile:hover,.game-tile:focus{outline:none;border:1px dotted #000080;background:#0000801f;color:navy}.game-tile img{width:32px;height:32px;image-rendering:pixelated}.ms-viewport{flex:1;overflow:auto;background:silver}.ms{--ms-cell: 24px;position:relative;width:max-content;background:silver;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-family:Arial,sans-serif}.ms .ms-menu li button{position:relative;display:flex;gap:24px;padding-left:22px}.ms .ms-menu li button[aria-checked=true]:before{content:"✓";position:absolute;left:7px}.ms-key{margin-left:auto}.ms-body{padding:6px;border:3px solid;border-color:#fff #808080 #808080 #fff}.ms-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;padding:4px 5px;border:2px solid;border-color:#808080 #fff #fff #808080}.ms-led{display:flex;padding:1px;background:#000;border:1px solid;border-color:#808080 #fff #fff #808080;line-height:0}.ms-face{width:26px;height:26px;min-width:0;min-height:0;padding:0;background:silver no-repeat center / 20px 20px}.ms-face:focus{outline:none}.ms-face:active{background-position:calc(50% + 1px) calc(50% + 1px)}.ms-face[data-face=smile]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='%23ff0' stroke='%23000'/%3E%3Crect x='6.5' y='6.5' width='2' height='2'/%3E%3Crect x='11.5' y='6.5' width='2' height='2'/%3E%3Cpath d='M6 12q4 4 8 0' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E")}.ms-face[data-face=oh]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='%23ff0' stroke='%23000'/%3E%3Crect x='6.5' y='6' width='2' height='2.5'/%3E%3Crect x='11.5' y='6' width='2' height='2.5'/%3E%3Ccircle cx='10' cy='13.3' r='1.8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E")}.ms-face[data-face=win]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='%23ff0' stroke='%23000'/%3E%3Cpath d='M3 8h14' stroke='%23000'/%3E%3Crect x='4.8' y='7' width='4.6' height='3.2' rx='1'/%3E%3Crect x='10.6' y='7' width='4.6' height='3.2' rx='1'/%3E%3Cpath d='M6 12.5q4 3.5 8 0' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E")}.ms-face[data-face=dead]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='%23ff0' stroke='%23000'/%3E%3Cpath d='M6 6l3 3M9 6l-3 3M11 6l3 3M14 6l-3 3' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M6 15q4-4 8 0' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E")}.ms-board{display:grid;border:3px solid;border-color:#808080 #fff #fff #808080;touch-action:manipulation}.ms-cell{box-sizing:border-box;width:var(--ms-cell);height:var(--ms-cell);display:flex;align-items:center;justify-content:center;background:silver no-repeat center / 16px 16px;border:3px solid;border-color:#fff #808080 #808080 #fff;font:900 16px/1 Arial Black,Arial,sans-serif}.ms-cell.open,.ms-cell.pressed{border-width:1px 0 0 1px;border-color:gray}.ms-cell.n1{color:#00f}.ms-cell.n2{color:green}.ms-cell.n3{color:red}.ms-cell.n4{color:navy}.ms-cell.n5{color:maroon}.ms-cell.n6{color:teal}.ms-cell.n7{color:#000}.ms-cell.n8{color:gray}.ms-cell.flag{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 2v9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M9.6 2L3 5l6.6 3z' fill='%23f00'/%3E%3Cpath d='M6 11h6v1.5H6zM4 12.5h9V14H4z'/%3E%3C/svg%3E")}.ms-cell.mine{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v13M1.5 8h13M3.4 3.4l9.2 9.2M12.6 3.4l-9.2 9.2' stroke='%23000' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='4.6'/%3E%3Crect x='5.8' y='5.8' width='1.8' height='1.8' fill='%23fff'/%3E%3C/svg%3E")}.ms-cell.exploded{background-color:red}.ms-cell.wrong{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v13M1.5 8h13M3.4 3.4l9.2 9.2M12.6 3.4l-9.2 9.2' stroke='%23000' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='4.6'/%3E%3Crect x='5.8' y='5.8' width='1.8' height='1.8' fill='%23fff'/%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23f00' stroke-width='1.6'/%3E%3C/svg%3E")}.ms-dialog{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center}.ms-dialog[hidden]{display:none}.ms-dialog-box{width:min(230px,calc(100% - 12px));padding:3px;background:silver;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #dfdfdf,inset -2px -2px gray,inset 2px 2px #fff;font-size:11px;user-select:text}.ms-dialog-title{padding:3px 4px;background:linear-gradient(90deg,navy,#1084d0);color:#fff;font-weight:700}.ms-dialog-body{padding:8px 8px 2px}.ms-dialog-body p{margin:0 0 8px;line-height:1.35}.ms-dialog-body input{width:100%;margin-bottom:6px}.ms-dialog-buttons{display:flex;justify-content:center;gap:6px;padding:4px 0 6px}.ms-best{margin-bottom:6px;border-collapse:collapse}.ms-best td{padding:1px 8px 1px 0;white-space:nowrap}.snake-score{position:absolute;top:4px;left:4px;background:silver;border:1px solid;border-color:#808080 white white #808080;padding:1px 8px;font-size:12px;font-family:Arial,sans-serif;color:#000;pointer-events:none}.snake-gameover{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:silver;border:2px solid;border-color:white #808080 #808080 white;box-shadow:2px 2px #00000080;min-width:200px;z-index:10}.snake-gameover-titlebar{background:navy;color:#fff;font-size:12px;font-weight:700;padding:3px 8px;user-select:none}.snake-gameover-body{padding:16px 20px 12px;text-align:center;font-size:13px}.snake-gameover-body p{margin:0 0 12px}.tetris-mobile-controls{display:none;flex-direction:column;gap:6px;align-items:center;flex-shrink:0}@media(hover:none)and (pointer:coarse){.tetris-mobile-controls{display:flex}}.tetris-dpad-row{display:flex;gap:6px}.tetris-btn{width:56px;height:56px;font-size:22px;font-family:Arial,sans-serif;background:silver;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none;touch-action:none;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px #dfdfdf}.tetris-btn-wide{width:80px;font-size:16px}.tetris-btn:active{box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px #dfdfdf,inset 2px 2px gray}
