@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800;6..12,900&display=swap');

:root { --ink: #182033; --muted: #687086; --paper: #f7f8fc; --panel: #ffffff; --line: #e4e7ef; --blue: #4866f7; --yellow: #ffe65b; --sidebar: #182035; --sidebar-muted: #aeb8d1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Nunito Sans', Arial, sans-serif; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-shell { display: flex; min-height: 100vh; }

.sidebar { background: var(--sidebar); color: #f7f8ff; display: flex; flex: 0 0 246px; flex-direction: column; height: 100vh; padding: 29px 16px 22px; position: sticky; top: 0; }
.brand { align-items: center; display: inline-flex; font-size: 17px; font-weight: 900; letter-spacing: -.075em; line-height: .83; width: fit-content; }
.brand-glyph { flex: 0 0 auto; height: 30px; margin-right: 8px; width: 30px; }
.side-nav { margin-top: 55px; }
.nav-label { color: #77839f; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .08em; margin: 0 11px 10px; }
.nav-label--genres { margin-top: 31px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 9px; color: var(--sidebar-muted); display: flex; font-size: 14px; font-weight: 700; gap: 12px; margin: 2px 0; padding: 11px; text-align: left; width: 100%; }
.nav-item:hover, .nav-item.is-active { background: #2b3653; color: #fff; }
.nav-icon { color: #d8def0; font-family: Georgia, serif; font-size: 17px; width: 16px; }
.nav-icon--flag { flex: 0 0 18px; height: 18px; width: 18px; }
.nav-icon--joystick { flex: 0 0 18px; height: 18px; width: 18px; }
.nav-item.is-active .nav-icon { color: var(--yellow); }
.sidebar-foot { align-items: center; color: #c0c9dd; display: flex; font-family: 'DM Mono', monospace; font-size: 10px; gap: 8px; margin: auto 11px 0; text-transform: uppercase; }
.live-dot { background: #7bed9f; border-radius: 50%; box-shadow: 0 0 0 4px #7bed9f1f; height: 7px; width: 7px; }

.content { max-width: 1560px; min-width: 0; padding: 44px clamp(28px, 5.2vw, 88px) 0; width: 100%; }
.mobile-header { display: none; }
.page-header { align-items: end; display: flex; gap: 30px; justify-content: space-between; padding-bottom: 45px; }
.kicker { color: var(--blue); font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .08em; margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5vw, 76px); font-weight: 900; letter-spacing: -.075em; line-height: .88; margin: 0; }
h1 span { color: var(--blue); }
.search { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; color: #8790a4; display: flex; flex: 0 1 280px; gap: 10px; height: 48px; padding: 0 15px; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #4866f71a; }
.search span { font-family: Georgia, serif; font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.search input { background: transparent; border: 0; color: var(--ink); font-size: 14px; min-width: 0; outline: 0; width: 100%; }

.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { font-size: 27px; font-weight: 900; letter-spacing: -.055em; line-height: 1; margin: 0; }
.carousel-controls { display: flex; gap: 8px; }
.circle-control { background: var(--panel); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 20px; height: 38px; line-height: 1; width: 38px; }
.circle-control:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.featured-carousel, .featured-card { height: clamp(440px, 32vw, 500px); }
.featured-card { background: var(--cover, #283b8e); border-radius: 18px; color: #fff; display: grid; grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr); overflow: hidden; position: relative; }
.featured-card::after { background: linear-gradient(90deg, rgba(12, 19, 49, .84), rgba(12, 19, 49, .2) 55%, transparent); content: ''; inset: 0; pointer-events: none; position: absolute; }
.featured-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 70px); position: relative; z-index: 1; }
.featured-category, .card-category { color: var(--yellow); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .09em; margin: 0 0 13px; text-transform: uppercase; }
.featured-copy h3 { font-size: clamp(36px, 4.6vw, 66px); font-weight: 900; letter-spacing: -.075em; line-height: .86; margin: 0 0 18px; max-width: 560px; }
.featured-copy p:not(.featured-category) { color: #f2f4ff; font-size: 15px; line-height: 1.45; margin: 0 0 25px; max-width: 460px; }
.play-button { align-items: center; background: var(--yellow); border-radius: 8px; color: #1f2844; display: inline-flex; font-size: 13px; font-weight: 900; gap: 10px; padding: 13px 17px; }
.play-button span { font-size: 18px; line-height: .7; }
.play-button:hover { background: #fff08c; transform: translateY(-1px); }
.featured-art { align-items: center; display: flex; justify-content: center; min-height: 100%; overflow: hidden; position: relative; }
.featured-art img { height: 100%; object-fit: cover; position: absolute; width: 100%; }
.featured-art--battle-karts img, .featured-art--plumb-bob img { object-position: 62% center; }
.game-cover--battle-karts img, .game-cover--plumb-bob img { object-position: 56% center; }
.featured-art--burger { background: linear-gradient(135deg, #ef4d1e, #ffcc37); }
.featured-art--burger img { height: 112%; object-fit: contain; position: relative; transform: translateY(8%); width: 88%; }
.featured-art--plain { background: var(--cover, #4565e8); }
.featured-art--pong, .game-cover--pong { background: #070707; color: #f4f4ec; }
.pong-court { border: 2px solid currentColor; inset: 12%; opacity: .86; position: absolute; }
.pong-court::before { border-left: 2px dashed currentColor; content: ''; height: 100%; left: 50%; position: absolute; top: 0; }
.pong-paddle, .pong-ball { background: currentColor; position: absolute; }
.pong-paddle { height: 25%; top: 37%; width: 2.6%; }
.pong-paddle--left { left: 8%; }.pong-paddle--right { right: 8%; }
.pong-ball { border-radius: 50%; height: 4.5%; left: 42%; top: 36%; width: 4.5%; }
.cover-wordmark { color: rgba(255, 255, 255, .96); font-size: clamp(38px, 5vw, 75px); font-weight: 900; letter-spacing: -.09em; line-height: .8; padding: 24px; position: relative; text-align: center; z-index: 1; }
.featured-art--plain::after, .game-cover--plain::after { border: 1px solid rgba(255,255,255,.45); border-radius: 50%; content: ''; height: 72%; position: absolute; transform: rotate(-24deg); width: 115%; }
.carousel-dots { display: flex; gap: 7px; justify-content: center; margin-top: 15px; }
.carousel-dot { background: #d5d9e5; border: 0; border-radius: 50%; height: 7px; padding: 0; width: 7px; }
.carousel-dot.is-active { background: var(--blue); transform: scale(1.3); }

.library-section { padding-top: 76px; }
.section-heading--library { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.library-tools { align-items: center; display: flex; gap: 12px; }
.library-tools .search { flex-basis: 240px; }
.result-count { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 11px; margin: 0; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.category-chip { background: #edf0f6; border: 1px solid transparent; border-radius: 100px; color: #48526c; font-size: 12px; font-weight: 800; padding: 9px 13px; }
.category-chip:hover, .category-chip.is-active { background: var(--ink); color: #fff; }
.game-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.game-card:hover { box-shadow: 0 15px 35px #202a441a; transform: translateY(-4px); }
.game-cover { align-items: center; background: var(--cover, #526cf6); display: flex; height: 176px; justify-content: center; overflow: hidden; position: relative; }
.game-cover img { height: 100%; object-fit: cover; width: 100%; }
.game-cover--burger { background: linear-gradient(135deg, #ef4d1e, #ffca36); }
.game-cover--burger img { height: 115%; object-fit: contain; position: relative; transform: translateY(11%); width: 90%; }
.game-cover--plain { background: var(--cover); }
.game-cover--plain .cover-wordmark { font-size: clamp(25px, 2.3vw, 37px); }
.game-cover--pong .pong-court { border-width: 1px; inset: 13%; }.game-cover--pong .pong-court::before { border-left-width: 1px; }
.card-category { background: #fff; border-radius: 99px; color: var(--ink); left: 11px; margin: 0; padding: 5px 8px; position: absolute; top: 11px; z-index: 2; }
.card-body { padding: 16px; }
.card-body h3 { color: var(--ink); font-size: 19px; font-weight: 900; letter-spacing: -.05em; line-height: 1; margin: 0 0 9px; }
.card-body p { color: var(--muted); display: -webkit-box; font-size: 12px; line-height: 1.4; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.empty-state { background: var(--panel); border: 1px dashed #c7cddd; border-radius: 12px; color: var(--muted); margin: 0; padding: 32px; text-align: center; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: 'DM Mono', monospace; font-size: 10px; justify-content: space-between; margin-top: 80px; padding: 24px 0 30px; }
.site-footer p { margin: 0; }

@media (max-width: 1120px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .featured-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .sidebar { display: none; } .sidebar.is-open { box-shadow: 16px 0 50px #10182a55; display: flex; inset: 0 auto 0 0; position: fixed; width: min(82vw, 310px); z-index: 10; } .content { padding: 20px 20px 0; } .mobile-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 54px; } .brand--mobile { font-size: 15px; letter-spacing: -.06em; line-height: 1; } .brand--mobile .brand-glyph { height: 23px; width: 23px; } .mobile-menu { background: var(--ink); border: 0; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 800; padding: 10px 13px; } .page-header { padding-bottom: 36px; } .featured-carousel, .featured-card { height: 550px; } .featured-card { grid-template-columns: 1fr; grid-template-rows: 240px minmax(0, 1fr); } .featured-copy { grid-row: 2; justify-content: flex-end; min-height: 0; padding: 28px; } .featured-art { grid-row: 1; min-height: 0; } .featured-card::after { background: linear-gradient(0deg, rgba(12,19,49,.94), rgba(12,19,49,.15) 85%, transparent); } .featured-art--burger img { height: 130%; transform: translateY(10%); } .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mobile-header { margin-bottom: 38px; } .page-header { align-items: stretch; flex-direction: column; gap: 25px; } h1 { font-size: 43px; } .section-heading--library { align-items: stretch; flex-direction: column; gap: 16px; } .library-tools { width: 100%; } .library-tools .search { flex: 1 1 auto; width: auto; } .section-heading h2 { font-size: 24px; } .featured-carousel, .featured-card { height: 510px; } .featured-card { grid-template-rows: 200px minmax(0, 1fr); } .featured-copy h3 { font-size: 42px; } .featured-copy p:not(.featured-category) { font-size: 13px; } .featured-art { min-height: 0; } .library-section { padding-top: 58px; } .game-grid { gap: 12px; } .game-cover { height: 130px; } .card-body { padding: 12px; } .card-body h3 { font-size: 16px; } .card-body p { font-size: 11px; } .site-footer { flex-wrap: wrap; gap: 12px; } }
@media (max-width: 360px) { .game-grid { grid-template-columns: 1fr; } .game-cover { height: 160px; } }
