/* Reference: the supplied portfolio UI — black/red, Poppins, 1400px container, 8px cards. */
*{box-sizing:border-box}html{scroll-padding-top:104px;scroll-behavior:smooth}body.hub-page{margin:0;background:#000;color:#fff;font:400 16px/1.5 Poppins,Arial,sans-serif}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button,a{transition:color .3s,background .3s,border-color .3s,transform .3s,box-shadow .3s}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.container{width:100%;max-width:1400px;margin:0 auto;padding:0 32px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:2px solid #ef4444;outline-offset:4px}.skip-link{position:fixed;left:16px;top:12px;z-index:100;padding:12px 20px;background:#dc2626;border-radius:6px;transform:translateY(-160%)}.skip-link:focus{transform:none}.topbar{position:fixed;inset:0 0 auto;z-index:30;background:#000e;backdrop-filter:blur(12px)}.nav-inner{height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px}.hub-page .brand{font:650 26px/1 InstructorlyLogo,Arial,sans-serif;letter-spacing:-1px;display:inline-flex;align-items:center;min-height:44px;color:#fff;white-space:nowrap}.nav-inner nav{display:flex;gap:8px;align-items:center}.nav-inner nav>a,.view-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;padding:8px 16px;min-height:44px;font-size:14px;font-weight:600;color:#d1d5db;border-radius:6px}.nav-inner nav>a:hover,.view-link:hover,.view-link.active{background:#dc2626;color:#fff}.favorite-count{font-size:11px;min-width:18px}.hero{min-height:100svh;display:flex;align-items:center;justify-content:center;position:relative;background:#000}.hero-content{text-align:center;padding-top:120px;padding-bottom:120px}.hero h1{font-size:96px;line-height:1;letter-spacing:-.05em;text-transform:uppercase;font-weight:900;margin:0 0 16px}.hero-categories{font-size:24px;line-height:32px;font-weight:600;color:#d1d5db;margin-bottom:24px}.hero-categories>span{color:#ef4444;padding:0 12px}.hero-description{font-size:18px;line-height:28px;color:#9ca3af;max-width:672px;margin:0 auto 40px}.hero-actions{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;padding:10px 32px;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:600;line-height:22px}.button.primary{background:#dc2626;color:#fff;box-shadow:0 10px 15px -3px #ef444433}.button.primary:hover{background:#b91c1c;transform:scale(1.05)}.button.secondary{border-color:#dc2626;color:#ef4444;background:transparent;box-shadow:0 10px 15px -3px #ef444420}.button.secondary:hover{background:#dc2626;color:#fff;transform:scale(1.05)}.button:active{transform:scale(.98)}.library{padding:128px 0;background:#000;scroll-margin-top:0;min-height:700px}.section-heading{text-align:center;margin-bottom:64px}.section-heading h2{font-size:48px;font-weight:900;line-height:1;letter-spacing:-.05em;text-transform:uppercase}.section-heading>p{font-size:18px;line-height:28px;color:#9ca3af;margin-top:12px}.heading-rule{display:block;width:96px;height:4px;background:#ef4444;margin:16px auto 0}.library-tools{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters button{min-height:44px;padding:8px 16px;border:1px solid #374151;border-radius:6px;color:#d1d5db;background:transparent;font-size:13px;font-weight:600}.filters button:hover,.filters button.selected{background:#dc2626;border-color:#dc2626;color:#fff}.search{display:flex;align-items:center;gap:12px;border:1px solid #374151;border-radius:6px;background:#1f2937;width:300px;min-width:180px;padding:0 14px;height:44px;color:#9ca3af}.search:focus-within{border-color:#ef4444;box-shadow:0 0 0 1px #ef4444}.search input{background:transparent;border:0;color:#fff;font-size:14px;min-width:0;width:100%;height:40px;outline:0}.search input:focus-visible{outline:1px solid #ef4444;outline-offset:2px}.search input::placeholder{color:#9ca3af}.result-count{font-size:12px;line-height:18px;color:#9ca3af;margin:0 0 24px}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px}.game-card{display:flex;flex-direction:column;background:rgb(17 24 39 / .5);border:1px solid #1f2937;border-radius:8px;overflow:hidden;transition:transform .3s,border-color .3s,box-shadow .3s}.game-card:hover{border-color:#ef4444;box-shadow:0 25px 50px -12px #ef44441a}.game-art{display:block;overflow:hidden;background:#0a0a0a}.game-art img{width:100%;height:240px;object-fit:cover;object-position:center;display:block;transition:transform .5s}.game-art:hover img{transform:scale(1.05)}.game-info{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:24px}.game-title{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:4px}.game-title h3{font-size:24px;line-height:32px;font-weight:700}.game-title h3 a{display:flex;align-items:center;min-height:44px}.game-title h3 a:hover{color:#ef4444}.favorite{display:grid;place-items:center;border:0;border-radius:6px;width:44px;height:44px;background:transparent;color:#9ca3af;flex-shrink:0}.favorite:hover{color:#ef4444;background:#ef444410}.favorite[aria-pressed=true]{color:#ef4444}.favorite[aria-pressed=true] svg{fill:currentColor}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.tags span{font-size:11px;line-height:18px;padding:2px 8px;background:#1f2937;color:#d1d5db;border-radius:4px}.game-info>p{flex-grow:1;font-size:16px;line-height:1.5;color:#9ca3af;margin-bottom:24px}.card-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:36px;border:1px solid #4b5563;border-radius:6px;font-size:14px;font-weight:600;padding:7px 12px;color:#fff}.card-button:hover{background:#dc2626;border-color:#dc2626}.continue{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #1f2937;background:#11182780;border-radius:8px;padding:16px 24px;margin-bottom:32px;font-size:13px;color:#9ca3af}.continue strong{color:#fff;margin-left:12px;font-weight:600}.continue>span:last-child{color:#ef4444;font-size:24px}.continue:hover{border-color:#ef4444}.empty-state{padding:64px 24px;text-align:center;border:1px solid #1f2937;border-radius:8px;background:#11182780}.empty-state h3{font-size:24px;font-weight:700}.empty-state p{color:#9ca3af;margin:12px 0 28px}.hub-page .site-footer{border-top:1px solid #171717;background:#000}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:32px;padding-bottom:32px}.footer-inner>p,.footer-inner>a:last-child{font-size:13px;color:#737373}.footer-inner>a:last-child{display:flex;align-items:center;min-height:44px}.footer-inner>a:last-child:hover{color:#ef4444}.not-found{padding:20vh 32px;max-width:900px;margin:auto}.not-found h1{font-size:48px;line-height:1.1;font-weight:900}.not-found p{color:#9ca3af;margin:24px 0}
@media(max-width:1100px){.game-grid{gap:32px}.hero h1{font-size:72px}.hero-categories{font-size:20px}.game-art img{height:210px}.game-info{padding:24px 20px}.game-info>p{font-size:14px}.game-title h3{font-size:22px}}
@media(max-width:900px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-tools{flex-wrap:wrap}.search{width:100%;max-width:360px}.nav-inner nav>a,.view-link{padding:8px 12px;font-size:13px}.hero h1{font-size:64px}.hero-categories{font-size:19px}.library{padding:96px 0}.section-heading h2{font-size:42px}}
@media(max-width:640px){.container{padding-left:20px;padding-right:20px}.nav-inner{height:80px;gap:12px;flex-wrap:wrap;align-content:center}.hub-page .brand{font-size:23px;letter-spacing:-1px}.nav-inner nav{position:absolute;top:80px;left:0;right:0;justify-content:center;gap:4px;background:#000;border-top:1px solid #171717;border-bottom:1px solid #171717;min-height:52px}.hero{min-height:100svh}.hero-content{padding-top:180px;padding-bottom:100px}.hero h1{font-size:clamp(32px,10vw,48px);letter-spacing:-.05em}.hero-categories{font-size:14px;line-height:24px;margin-bottom:24px;white-space:nowrap}.hero-categories>span{padding:0 6px}.hero-description{font-size:16px;line-height:26px;max-width:310px;margin-bottom:40px}.hero-actions{gap:16px;flex-direction:column}.hero-actions .button{min-width:220px}.library{padding:80px 0;scroll-margin-top:36px}.section-heading{margin-bottom:40px}.section-heading h2{font-size:36px}.section-heading>p{font-size:16px}.library-tools{gap:20px;margin-bottom:20px}.filters{gap:8px}.filters button{padding:8px 11px;font-size:12px}.search{max-width:none}.game-grid{grid-template-columns:1fr;gap:32px}.game-art img{height:220px}.game-info{padding:24px}.game-title h3{font-size:24px}.game-info>p{font-size:15px}.continue{padding:16px;margin-bottom:24px}.continue strong{display:block;margin-left:0;margin-top:4px}.footer-inner{flex-direction:column;gap:12px;text-align:center;padding-top:32px;padding-bottom:32px}.footer-inner>p{font-size:12px}.not-found h1{font-size:36px}}
@media(max-width:360px){.container{padding-left:16px;padding-right:16px}.hero-categories{font-size:12px}.hero-categories>span{padding:0 4px}.filters button{padding:8px 8px;font-size:11px}.game-art img{height:190px}.game-info{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

@media(max-width:640px){.card-button{min-height:44px}}

.game-online{display:flex;align-items:center;gap:6px;margin:0 0 16px;color:#9ca3af;font-size:12px;line-height:20px}.presence-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#6b7280}.game-online.is-connected .presence-dot{background:#4ade80}

.game-card[data-game="pen-basketball"] .game-art{background:#ccffff}
@media(min-width:1400px){.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}.game-title h3{font-size:22px;line-height:30px}.game-info{padding:24px 20px}}

@media(min-width:1400px){.game-card[data-game="quizclash"] .game-art{background:#fff}.game-card[data-game="pen-football"] .game-art{background:#ccffff}}

.game-card[data-game="quizclash"] .game-art img{object-position:left top}
