* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: #fff; color: #112b40; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 3px solid #8260ff; outline-offset: 4px; }
.game-card { display: block; min-width: 0; }
.game-art { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #24242b; isolation: isolate; }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.game-card:hover .game-art img { transform: scale(1.035); }
.game-badge { position: absolute; top: 0; left: 0; z-index: 1; font-size: 11px; font-weight: 800; line-height: 19px; padding: 0 8px; }
.game-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-label { position: absolute; right: 0; bottom: 0; left: 0; padding: 30px 8px 10px; background: linear-gradient(transparent, rgb(0 0 0 / 75%)); color: #fff; font-size: 13px; font-weight: 700; text-align: center; opacity: 0; transform: translateY(5px); transition: opacity 180ms ease, transform 180ms ease; }
.game-card:hover .play-label, .game-card:focus-visible .play-label { opacity: 1; transform: none; }

.sem-page--light { color-scheme: light; background: #f6f6f6; color: #102d43; }
.landing-header { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 2.4%; background: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / 15%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 29px; font-weight: 800; line-height: 44px; letter-spacing: -1.1px; }
.brand img { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; }
.menu-link { min-height: 44px; padding: 10px 4px; font-size: 18px; font-weight: 700; line-height: 24px; }
.light-main { padding: 32px 2.4% 0; }
.light-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 18px; }
.sem-page--light .game-card { position: relative; border-radius: 9px; box-shadow: 0 1px 5px rgb(0 0 0 / 23%); }
.sem-page--light .game-art { border-radius: 9px; }
.sem-page--light .game-badge { top: 10px; padding: 3px 11px; border-radius: 0 5px 5px 0; background: #de7930; color: #fff; font-size: 13px; line-height: 21px; }
.sem-page--light .game-badge--new { background: #5f8e48; }
.sem-page--light .game-name { position: absolute; z-index: 2; right: 10px; bottom: 12px; left: 10px; color: #fff; font-size: 13px; font-weight: 700; line-height: 18px; text-shadow: 0 1px 3px #000; opacity: 0; }
.sem-page--light .play-label { padding-bottom: 34px; }
.sem-page--light .game-card:hover .game-name, .sem-page--light .game-card:focus-visible .game-name { opacity: 1; }
.more-games { display: flex; justify-content: center; padding: 42px 0 76px; }
.more-games-link { display: inline-flex; min-width: 290px; min-height: 68px; align-items: center; justify-content: center; padding: 18px 48px; border-radius: 9px; background: #477fb9; box-shadow: 3px 4px 0 #dedede; color: #fff; font-size: 25px; font-weight: 700; line-height: 32px; transition: background 150ms ease; }
.more-games-link:hover { background: #346da8; }
.landing-footer { margin: 0 1.8%; padding: 28px 30px 18px; border: 1px solid #e1e1e1; background: #fff; box-shadow: 0 0 4px rgb(0 0 0 / 10%); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top .brand { font-size: 27px; }
.theme-toggle { min-height: 49px; padding: 10px 23px; border: 2px solid currentColor; border-radius: 30px; background: transparent; color: inherit; font-size: 16px; line-height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; color: #477fb9; font-size: 18px; line-height: 26px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a + a::before { display: inline-block; margin-right: 24px; color: #102d43; content: '·'; }
.copyright { margin: 22px 0 0; color: #7d8691; font-size: 12px; line-height: 18px; }
.sem-page--light[data-theme='dark'], .sem-page--light.dark { color-scheme: dark; background: #11151c; color: #eef4fa; }
.sem-page--light[data-theme='dark'] .landing-header, .sem-page--light[data-theme='dark'] .landing-footer, .sem-page--light.dark .landing-header, .sem-page--light.dark .landing-footer { border-color: #303845; background: #1b222e; }
.sem-page--light[data-theme='dark'] .footer-links a + a::before, .sem-page--light.dark .footer-links a + a::before { color: #c1cbd9; }

.sem-page--dark { color-scheme: dark; background: #101010; color: #f8f8f8; }
.dark-main { width: min(1920px, 100%); margin: 0 auto; padding: 30px 36px 54px; }
.dark-main h1 { margin: 0 0 18px; font-size: clamp(32px, 3.1vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -1.7px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.category-chip { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid #292930; border-radius: 999px; background: #19191f; color: #d8d8de; font-size: 13px; font-weight: 650; line-height: 18px; transition: background 150ms ease, border-color 150ms ease; }
.category-chip:hover { border-color: #7e61b6; background: #25212e; }
.category-chip.is-active, .category-chip[aria-pressed='true'] { border-color: #aa78ff; background: #a575f5; color: #111; }
.dark-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 22px; }
.games-column { min-width: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.compact-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 18px 10px; }
.sem-page--dark .game-art { border-radius: 13px; box-shadow: 0 0 0 1px rgb(255 255 255 / 5%); }
.sem-page--dark .game-card--featured .game-art { border-radius: 19px; }
.sem-page--dark .game-name { margin-top: 7px; color: #a9a9af; font-size: 12px; line-height: 17px; }
.sem-page--dark .game-card--featured .game-name { margin-top: 9px; color: #b8b8be; font-size: 15px; line-height: 21px; }
.sem-page--dark .game-card:hover .game-name, .sem-page--dark .game-card:focus-visible .game-name { color: #fff; }
.sem-page--dark .game-badge { border-radius: 0 0 9px 0; background: #bdff40; color: #182500; }
.sem-page--dark .game-badge--new { background: #a575f5; color: #100b19; }
.empty-state { padding: 50px 12px; color: #bdbdc6; font-size: 16px; line-height: 26px; text-align: center; }
.ad-rail { position: sticky; top: min(20px, calc(100vh - 934px)); top: min(20px, calc(100dvh - 934px)); width: 300px; }
.ad-rail-sticky { display: grid; gap: 14px; }
.ad-slot { position: relative; width: 300px; overflow: hidden; border: 0; border-radius: 15px; outline: 1px dashed #3a3a40; outline-offset: -1px; background: linear-gradient(125deg, #1b1b1e, #141416); }
.ad-slot--square { height: 300px; }
.ad-slot--portrait { height: 600px; }
.ad-label { position: absolute; top: 10px; left: 11px; z-index: 1; color: #85858c; font-size: 9px; font-weight: 700; line-height: 12px; letter-spacing: 1.1px; text-transform: uppercase; pointer-events: none; }
.ad-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #8a8a92; font-size: 13px; font-weight: 600; line-height: 18px; pointer-events: none; }
.ad-placeholder span { color: #606068; font-size: 11px; font-weight: 400; line-height: 16px; }
.ad-content { width: 100%; height: 100%; }
.ad-slot[data-ad-filled='true'] .ad-placeholder { display: none; }

@media (min-width: 1800px) {
  .landing-header { min-height: 96px; padding-top: 18px; padding-bottom: 18px; }
  .brand { font-size: 34px; line-height: 56px; }
  .brand img { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; }
  .light-main { padding-top: 44px; }
  .light-grid { gap: 20px; }
  .sem-page--light .game-badge { font-size: 16px; line-height: 24px; }
  .more-games-link { min-width: 430px; min-height: 91px; font-size: 32px; line-height: 40px; }
  .more-games { padding: 50px 0 100px; }
  .landing-footer { padding: 36px 48px 22px; }
  .dark-main { padding-right: 44px; padding-left: 44px; }
  .dark-layout { gap: 24px; }
  .compact-grid { gap: 21px 12px; }
  .sem-page--dark .game-name { font-size: 14px; line-height: 19px; }
}

@media (max-width: 1279px) {
  .dark-main { padding: 26px 24px 42px; }
  .dark-layout { gap: 18px; }
  .compact-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .category-chip { padding-right: 14px; padding-left: 14px; }
  .light-grid { gap: 12px; }
}

@media (max-width: 1023px) {
  .light-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .dark-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-rail { display: none; }
  .dark-main { padding: 24px 22px 40px; }
  .category-nav { margin-bottom: 23px; }
  .compact-grid { gap: 18px 12px; }
}

@media (max-width: 767px) {
  .landing-header { min-height: 75px; padding: 12px 20px; }
  .brand { gap: 10px; font-size: 25px; line-height: 42px; }
  .brand img { width: 42px; height: 42px; flex-basis: 42px; }
  .menu-link { font-size: 16px; }
  .light-main { padding: 24px 18px 0; }
  .light-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .sem-page--light .game-badge { top: 6px; padding: 0 6px; font-size: 10px; line-height: 18px; }
  .more-games { padding: 32px 0 48px; }
  .more-games-link { min-width: 250px; min-height: 60px; padding: 14px 38px; font-size: 22px; line-height: 30px; }
  .landing-footer { margin: 0 12px; padding: 24px 20px 18px; }
  .footer-top .brand { font-size: 23px; }
  .theme-toggle { min-height: 44px; padding: 8px 16px; font-size: 14px; line-height: 24px; }
  .footer-links { gap: 10px 16px; font-size: 15px; line-height: 24px; }
  .footer-links a + a::before { margin-right: 16px; }
  .dark-main { padding: 22px 18px 36px; }
  .dark-main h1 { margin-bottom: 17px; font-size: 34px; letter-spacing: -1.2px; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; gap: 7px; margin: 0 -18px 22px; padding: 2px 18px 8px; scrollbar-width: thin; }
  .category-chip { flex: 0 0 auto; min-height: 39px; padding: 9px 15px; font-size: 12px; }
  .featured-grid { gap: 10px; margin-bottom: 20px; }
  .compact-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 10px; }
  .sem-page--dark .game-art { border-radius: 11px; }
  .sem-page--dark .game-card--featured .game-art { border-radius: 13px; }
  .sem-page--dark .game-card--featured .game-name { font-size: 12px; line-height: 17px; }
  .sem-page--dark .game-name { font-size: 11px; line-height: 16px; }
}

@media (max-width: 479px) {
  .landing-header { min-height: 70px; padding-right: 16px; padding-left: 16px; }
  .brand { font-size: 24px; }
  .brand img { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .light-main { padding: 20px 14px 0; }
  .light-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .sem-page--light .game-card, .sem-page--light .game-art { border-radius: 7px; }
  .more-games { padding: 30px 0 42px; }
  .more-games-link { width: min(100%, 275px); min-width: 0; min-height: 57px; font-size: 21px; line-height: 29px; }
  .landing-footer { margin: 0 8px; padding: 20px 16px 16px; }
  .footer-top { align-items: flex-start; gap: 14px; }
  .footer-top .brand { gap: 8px; font-size: 21px; line-height: 38px; }
  .footer-top .brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .theme-toggle { padding-right: 11px; padding-left: 11px; font-size: 12px; line-height: 20px; }
  .footer-links { gap: 8px 16px; margin-top: 18px; font-size: 14px; line-height: 23px; }
  .footer-links a + a::before { display: none; }
  .copyright { margin-top: 18px; }
  .dark-main { padding: 20px 14px 32px; }
  .dark-main h1 { font-size: 31px; letter-spacing: -1px; }
  .category-nav { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin-bottom: 22px; }
  .compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 9px; }
  .sem-page--dark .game-card--featured .game-art { border-radius: 15px; }
  .sem-page--dark .game-card--featured .game-name { font-size: 13px; line-height: 18px; }
  .sem-page--dark .game-badge { padding: 0 6px; font-size: 9px; line-height: 16px; }
  .sem-page--dark .game-card--featured .game-badge { padding: 0 8px; font-size: 10px; line-height: 18px; }
  .play-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
