.mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:1rem;margin:2rem 0 5rem}.mode-grid a{display:block;text-decoration:none;color:inherit;border:1px solid #484759;border-radius:18px;padding:1.5rem;background:linear-gradient(145deg,#292234,#18191e)}.mode-grid a:nth-child(2){background:linear-gradient(145deg,#16312e,#18191e)}.mode-grid a:nth-child(3){background:linear-gradient(145deg,#352f1e,#18191e)}.mode-grid a:hover,.mode-grid a:focus-visible{border-color:#eed587}.mode-grid i{display:block;font:3rem Georgia;color:#ffe599;margin-bottom:2rem}.mode-grid small{letter-spacing:.12em}.mode-grid p{color:#ccc}
#chess{max-width:650px;margin:auto}#chess select,#chess input,#chess button{font:inherit}#chess select,#chess-code{padding:.55rem}#chess-menu,#chess-match{margin:1rem 0}#chess-menu button{margin:.3rem 0}.chess-board{display:grid;grid-template-columns:repeat(8,1fr);overflow:hidden;border-radius:8px}.chess-board button{border:0;border-radius:0;padding:0;aspect-ratio:1;position:relative;display:grid;place-items:center;color:#171f27;background:#e9dfc6;font:clamp(19px,7vw,48px)/1 Georgia!important}.chess-board .dark{background:#839788}.chess-board .white{color:#fff9e9;text-shadow:0 1px 2px #000,-1px -1px 1px #37332d}.chess-board .selected{box-shadow:inset 0 0 0 4px #eeaf39}.chess-board .legal:after{content:'';position:absolute;width:24%;aspect-ratio:1;border-radius:50%;background:#18674dbb}.chess-board small{position:absolute;left:2px;bottom:1px;font:9px sans-serif;color:#23382f;text-shadow:none}.chess-board .king{width:88%;height:88%;object-fit:contain}.chess-line{display:flex;justify-content:space-between;align-items:center;margin:.5rem 0}.chess-line time{font:bold 1.4rem monospace}.chess-options{display:flex;gap:.4rem;flex-wrap:wrap}#chess-error{color:#f2a69a}
.chess-board button{touch-action:none;user-select:none}
.chess-board .chess-piece{pointer-events:none}
.chess-board .lifted .chess-piece{visibility:hidden}
.chess-drag-piece{position:fixed;z-index:1000;pointer-events:none;aspect-ratio:1;object-fit:contain;transform:translate(-50%,-50%);display:grid;place-items:center}
.default-profile-face{object-fit:contain}#profile-toggle>.default-profile-face{width:100%;height:100%}.friend-avatar.default-profile-face{width:44px;height:44px}.chess-icon{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.pfp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px}.pfp-grid button{background:#212632;color:white;padding:4px;border:1px solid #637058;border-radius:8px}.pfp-grid .rarity-backdrop{aspect-ratio:1;position:relative}.pfp-grid img{width:100%;height:100%;object-fit:contain}

.pfp-grid button[aria-pressed=true]{outline:3px solid #c3e57d}.free-egg-tile .collection-egg{position:relative}.buy-more{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);padding:6px 12px;background:#17181de8;color:white;border-radius:10px;white-space:nowrap}
@media(max-width:600px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.mode-grid a{padding:.85rem}.mode-grid i{margin-bottom:.65rem}.mode-grid small{font-size:.65rem}}

#collection #collection-heading{margin-top:0}#collection #collection-title{margin-top:10px}
