:root {
    color-scheme: dark;
    --bg: #0f172a;
    --panel: #1e293b;
    --panel-raised: #263449;
    --line: #334155;
    --text: #f1f5f9;
    --muted: #9aa8bd;
    --indigo: #818cf8;
    --cyan: #22d3ee;
    --green: #4ade80;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.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; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--cyan); color: #07121e; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: 0 clamp(1rem, 4vw, 4rem); border-bottom: 1px solid #273449; background: #0d1526f2; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-size: 1.04rem; font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.brand > span:last-child > span { color: var(--cyan); }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(140deg, var(--indigo), #4f46e5); color: white; font-size: 1rem; font-weight: 900; }
.brand-mark svg { width: 25px; height: 25px; }
.site-search { position: relative; display: flex; align-items: center; width: min(390px, 40vw); margin-left: auto; border: 1px solid #344258; border-radius: 8px; background: #172235; }
.site-search input { width: 100%; padding: .62rem .85rem; border: 0; outline: 0; background: transparent; color: var(--text); }
.site-search input::placeholder { color: #78889e; }.site-search:focus-within { border-color: var(--indigo); }.site-search button { align-self: stretch; width: 42px; border: 0; background: transparent; color: var(--cyan); font-size: 1.45rem; }
.search-results { position: absolute; z-index: 20; top: calc(100% + .4rem); left: 0; right: 0; overflow: hidden; border: 1px solid #344258; border-radius: 8px; background: #172235; box-shadow: 0 15px 35px #050a14b3; }.search-results ul { list-style: none; padding: .35rem; margin: 0; }.search-results li a,.search-results li { display: block; padding: .55rem .65rem; color: #cbd5e1; text-decoration: none; font-size: .82rem; }.search-results li a:hover { border-radius: 5px; background: #283650; color: var(--cyan); }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }.main-nav a { color: #bdc9d8; text-decoration: none; font-size: .88rem; font-weight: 650; }.main-nav a:hover { color: var(--cyan); }
main { flex: 1; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: 460px; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 8vw, 8rem); overflow: hidden; background: radial-gradient(ellipse at 82% 55%, #312e8170, transparent 38%), radial-gradient(ellipse at 5% 0%, #164e6380, transparent 40%); }
.hero-copy { position: relative; z-index: 2; max-width: 580px; }.eyebrow { margin: 0 0 .65rem; color: var(--cyan); text-transform: uppercase; font-size: .69rem; letter-spacing: .16em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.1; }.hero h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 5.3vw, 5rem); }.hero h1 span { color: var(--indigo); }.hero-copy > p:not(.eyebrow) { max-width: 490px; margin-bottom: 1.7rem; color: #b1bed0; font-size: 1.04rem; }
.button { display: inline-flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border: 1px solid #818cf8; border-radius: 7px; background: #4f46e5; color: white; text-decoration: none; font-weight: 750; box-shadow: 0 7px 25px #4f46e52a; }.button:hover { background: #4338ca; }
.featured-game, .featured-empty { position: relative; min-height: 300px; display: block; overflow: hidden; border: 1px solid #49517d; border-radius: 17px; background: linear-gradient(135deg,#252f57,#163c51 55%,#161e33); box-shadow: 0 20px 70px #080d1c90; }
.featured-game > img { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }.featured-shade { position: absolute; inset: 0; background: linear-gradient(0deg,#070d1c 0%,#070d1caa 38%,transparent 100%); }.featured-label { position: absolute; inset: auto 1.5rem 1.4rem; display: grid; gap: .3rem; }.featured-label strong { font-size: clamp(1.4rem,3vw,2.1rem); }.featured-label > span:last-child { color: var(--cyan); font-weight: 750; }.featured-game .eyebrow { margin: 0; }.featured-empty { display: grid; place-items: center; color: #c1cce0; }.featured-empty p { position: absolute; bottom: 1rem; margin: 0; color: #a9bad0; }.empty-controller { position: relative; z-index: 1; font-size: 8rem; color: #a5b4fc; transform: rotate(-20deg); text-shadow: 0 0 48px #22d3ee80; }.orb { position: absolute; width: 150px; height: 150px; border-radius: 50%; filter: blur(35px); opacity: .5; }.orb-one { top: 10%; left: 10%; background: #6366f1; }.orb-two { right: 12%; bottom: 15%; background: #06b6d4; }
.category-pills { display: flex; gap: .65rem; padding: 0 clamp(1.25rem, 8vw, 8rem) 2rem; overflow-x: auto; }.category-pills a, .tag-list a { padding: .45rem .8rem; border: 1px solid #36445b; border-radius: 30px; background: #172235; color: #c8d4e4; text-decoration: none; white-space: nowrap; font-size: .8rem; }.category-pills a:hover, .tag-list a:hover { border-color: var(--cyan); color: var(--cyan); }
.game-section { padding: 2.5rem clamp(1.25rem, 8vw, 8rem) 3.5rem; }.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }.section-title h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }.section-title > a { color: var(--cyan); text-decoration: none; font-weight: 650; font-size: .85rem; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid #2c394f; border-radius: 9px; background: var(--panel); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }.game-card:hover { transform: translateY(-4px); border-color: #6875d1; box-shadow: 0 12px 30px #080d1c70; }
.game-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg,#283653,#154559); }.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }.game-card:hover .game-thumb img { transform: scale(1.045); }.thumb-placeholder { color: #a5b4fc; font-size: 2.4rem; }.card-play { position: absolute; inset: auto .65rem .6rem auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #4f46e5e8; color: white; font-size: .75rem; }
.game-card-info { display: grid; gap: .3rem; padding: .8rem .85rem; }.game-card-info strong { overflow: hidden; color: #f1f5f9; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }.game-card-info > span { display: flex; justify-content: space-between; gap: .4rem; color: #9aa8bd; font-size: .72rem; }
.empty-state { max-width: 760px; margin: 2rem auto; padding: 3rem 1.5rem; border: 1px dashed #3c4b65; border-radius: 14px; background: #141f32; text-align: center; }.empty-state h2, .empty-state h3 { margin-bottom: .45rem; }.empty-state p { max-width: 570px; margin: 0 auto; color: var(--muted); }.empty-icon { display: block; margin-bottom: .8rem; color: var(--indigo); font-size: 2.5rem; }
.home-bottom { display: flex; justify-content: space-between; align-items: center; margin: 1rem clamp(1.25rem, 8vw, 8rem) 4rem; padding: 1.7rem 2rem; border: 1px solid #384367; border-radius: 12px; background: linear-gradient(110deg,#1d2942,#242247); }.home-bottom h2 { margin-bottom: .35rem; font-size: 1.7rem; }.home-bottom p:not(.eyebrow) { margin-bottom: .6rem; color: #aab8ca; }.text-link { color: var(--cyan); text-decoration: none; font-weight: 700; }.home-bottom-icon { color: #a5b4fc; font-size: 4rem; }
.page-heading { padding: 3.5rem clamp(1.25rem, 8vw, 8rem) 1.5rem; }.page-heading h1 { margin-bottom: .6rem; font-size: clamp(2.3rem,4vw,3.8rem); }.page-heading > p:not(.eyebrow) { color: var(--muted); }.page-heading + .game-grid { padding: 0 clamp(1.25rem, 8vw, 8rem) 4rem; }
.game-page { padding: 1.3rem clamp(1rem, 5vw, 5rem) 3rem; }.game-breadcrumb { display: flex; gap: .55rem; margin-bottom: 1rem; color: #8797ae; font-size: .78rem; }.game-breadcrumb a { color: #bac7d9; text-decoration: none; }.game-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .7fr); gap: 1.3rem; align-items: start; }.game-stage { overflow: hidden; border: 1px solid #36445d; border-radius: 12px; background: #070d18; }.game-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at center,#273968,#101a2d 68%); }.game-cover > img { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: blur(15px) brightness(.42); transform: scale(1.08); }.cover-placeholder { color: #6676d3; font-size: 8rem; }.play-button { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.45rem; border: 1px solid #a5b4fc; border-radius: 40px; background: #4f46e5ed; color: white; font-weight: 850; letter-spacing: .04em; box-shadow: 0 0 30px #4f46e570; animation: pulse 2s infinite; }.play-button:hover { background: #6366f1; }.game-frame { display: none; aspect-ratio: 16 / 9; }.game-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; background: #080d18; }.game-stage.is-playing .game-cover { display: none; }.game-stage.is-playing .game-frame { display: block; }
.game-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }.game-toolbar button { padding: .5rem .75rem; border: 1px solid #35435b; border-radius: 6px; background: #19253a; color: #d3deec; font-size: .8rem; }.game-toolbar button:hover:not(:disabled) { border-color: var(--indigo); color: #fff; }.game-toolbar button:disabled { opacity: .45; cursor: not-allowed; }.play-count { margin-left: auto; color: #92a1b6; font-size: .77rem; }
.game-sidebar { padding: 1.3rem; border: 1px solid #2d3b53; border-radius: 10px; background: #172235; }.game-sidebar h1 { margin-bottom: .4rem; font-size: clamp(1.7rem,3vw,2.5rem); }.game-sidebar h2 { margin: 1.3rem 0 .35rem; font-size: 1.1rem; }.game-sidebar > p { color: #b5c2d4; font-size: .88rem; }.rating-summary { margin: .4rem 0; color: #aebbd0!important; font-size: .78rem!important; }.star-rating { display: flex; margin-bottom: 1rem; }.star-rating button { padding: .1rem .22rem; border: 0; background: none; color: #fbbf24; font-size: 1.45rem; }.star-rating button:hover { color: #fde68a; }.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }.publisher-note { padding-top: .8rem; border-top: 1px solid #344258; color: #8797ae!important; font-size: .74rem!important; }
.similar-section { padding: 2rem 0 0; }.sort-links { display: flex; gap: 1rem; margin: 1rem 0; }.sort-links a { color: var(--cyan); text-decoration: none; font-size: .85rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2rem 1rem; color: var(--muted); font-size: .85rem; }.pagination a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.site-footer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem 3rem; padding: 2rem clamp(1.25rem, 8vw, 8rem); border-top: 1px solid #273449; background: #0b1220; }.footer-brand { margin-bottom: .7rem; }.site-footer p { max-width: 520px; margin-bottom: 0; color: #9aa8bd; font-size: .82rem; }.site-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 1rem; }.site-footer nav a { color: #b5c2d4; text-decoration: none; font-size: .82rem; }.site-footer nav a:hover { color: var(--cyan); }.site-footer small { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid #253248; color: #75859b; font-size: .74rem; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 22px #4f46e560; transform: scale(1); } 50% { box-shadow: 0 0 36px #22d3ee80; transform: scale(1.035); } }
@media (min-width: 1500px) { .game-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 1050px) { .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.hero { gap: 2rem; }.game-layout { grid-template-columns: minmax(0,1.5fr) minmax(250px,.8fr); } }
@media (max-width: 760px) { .site-header { flex-wrap: wrap; gap: .7rem; padding: .75rem 1rem; }.site-search { order: 3; width: 100%; }.main-nav { margin-left: auto; }.hero { grid-template-columns: 1fr; min-height: unset; }.featured-game,.featured-empty { min-height: 250px; }.game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.game-layout { grid-template-columns: 1fr; }.game-sidebar { order: 2; }.page-heading + .game-grid { padding-left: 1rem; padding-right: 1rem; }.site-footer { grid-template-columns: 1fr; }.site-footer nav { justify-content: start; }.site-footer small { grid-column: 1; } }
@media (max-width: 420px) { .game-grid { gap: .6rem; }.game-card-info { padding: .6rem; }.game-card-info strong { font-size: .8rem; }.game-card-info > span { font-size: .65rem; }.game-toolbar { gap: .35rem; }.game-toolbar button { padding: .45rem .55rem; font-size: .73rem; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; } }
