* { box-sizing: border-box; }
html { background: #101214; color: #d8d8d8; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
header { padding: 7vh 20px 2vh; text-align: center; }
.cb { width: min(300px, 62vw); display: block; margin: 0 auto; }
.tag { margin: 14px 0 0; color: #959595; font-size: 1.1rem; letter-spacing: 0.02em; }
main { width: min(1120px, 100%); padding: 28px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.game { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #181b1e; border: 2px solid #2a2e32; border-radius: 14px; overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.game:hover, .game:focus-visible { border-color: #959595; transform: translateY(-3px); outline: none; }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.game img.pixel { image-rendering: pixelated; }
.info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
h2 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.01em; }
.info p { margin: 0; color: #b4b4b4; flex: 1; }
.play { align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #101214; font-weight: 700; font-size: 0.92rem; }
.about { width: min(680px, 100%); padding: 12px 20px 28px; text-align: center; color: #959595; }
footer { margin-top: auto; padding: 22px; color: #5c6064; font-size: 0.85rem; }

/* The logo: a TV switching on. */
.cb-frame, .cb-sofa { transform-box: fill-box; transform-origin: center; }
.cb-frame { animation: cb-on 0.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cb-sofa { animation: cb-pic 0.5s 0.7s steps(5) both; }
.cb-l { animation: cb-type 0.01s calc(1.3s + var(--i) * 0.07s) both; }
.tag, main, .about, footer { animation: cb-type 0.5s 1.9s both; }
@keyframes cb-on { 0% { transform: scale(0, 0.02); stroke: #fff; } 45% { transform: scale(1, 0.02); stroke: #fff; } 100% { transform: none; } }
@keyframes cb-pic { 0% { opacity: 0; transform: scale(1, 0.05); } 60% { opacity: 1; transform: scale(1, 1.1); } 100% { transform: none; } }
@keyframes cb-type { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
