/* =============================================
   FONTS
   ============================================= */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   BASE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  background: #005000;
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
}


.site-logo img {
  height: 30px;
  width: auto;
  transition: opacity 1.5s;
}

.site-logo:hover img {
  opacity: 1;
  transition: opacity 0.3s;
}

.site-logo.is-faded img {
  opacity: 0.35;
}

.sidebar-logo {
  width: 100%;
  padding: 5px 10px 0;
  display: flex;
  justify-content: flex-start;
}

.sidebar-logo img {
  height: auto;
  max-height: 30px;
  max-width: 100%;
  width: auto;
}

.site-nav > ul {
  display: flex;
  gap: 36px;
}

.site-nav a {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  background-image: linear-gradient(to right, #00b050, #00b050);
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: center bottom;
  transition: background-size 0.3s ease;
}

.site-nav > ul > li:hover {
  background-size: 100% 3px;
}

.site-nav > ul > li:has(.submenu) > a::after,
.site-nav > ul > li:has(.submenu) > .nav-label::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  margin-top: -3px;
}

.nav-bookmarks > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-label {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.submenu {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  background: #222222;
  width: max-content;
  z-index: 200;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
  max-height: 600px;
  align-content: flex-end;
}

.site-nav li:hover > .submenu,
.site-nav li:focus-within > .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}

.submenu li {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
  opacity: 1;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  opacity: 1;
}

.submenu a.is-active,
.sidebar-submenu a.is-active {
  color: #00b050;
}

/* =============================================
   GAME SECTION
   ============================================= */

.game-section {
  background: #005000;
  display: flex;
  height: calc(100vh - 40px);
  gap: 5px;
}


.game-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.game-section:has(.game-clip) {
  background: #222;
}

.page-minesweeper .game-section {
  background: #005000;
}

.page-snake .site-header,
.page-snake .game-section {
  background: #004000;
}

.page-puzzle .site-header,
.page-puzzle .game-section {
  background: #003869;
}

.page-labyrinth .site-header,
.page-labyrinth .game-section {
  background: #003054;
}

.page-darts .site-header,
.page-darts .game-section {
  background: #082841;
}

.page-connect-four .site-header,
.page-connect-four .game-section {
  background: #002a4e;
}

.page-tetris .site-header,
.page-tetris .game-section {
  background: #001022;
}

.page-uno .site-header {
  background: #003869;
}

.page-uno .game-section {
  background: #003869;
}

.page-mahjong .site-header,
.page-mahjong .game-section {
  background: #002339;
}

.page-bubble-shooter .site-header,
.page-bubble-shooter .game-section {
  background: #1c71d1;
}

.page-battleship .site-header,
.page-battleship .game-section,
.page-sudoku .site-header,
.page-sudoku .game-section,
.page-pinball .site-header,
.page-pinball .game-section,
.page-word-search .site-header,
.page-word-search .game-section,
.page-sliding-bricks .site-header,
.page-sliding-bricks .game-section,
.page-brick-out .site-header,
.page-brick-out .game-section,
.page-8-ball-pool .site-header,
.page-8-ball-pool .game-section {
  background: #000;
}

.page-solitaire-xp .site-header,
.page-spider-xp .site-header,
.page-freecell-xp .site-header {
  background: #000;
}

.page-solitaire-xp .game-section,
.page-spider-xp .game-section,
.page-freecell-xp .game-section {
  background: #000;
}

@media (min-width: 851px) {
  .page-solitaire-xp .game-col {
    padding-top: 50px;
  }
}

.game-col iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}

.game-clip {
  position: relative;
  overflow: hidden;
  margin: auto;
  width: min(100%, 800px);
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  transition: width 0.3s ease;
  background: #000;
}

.game-clip iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.game-clip--large {
  width: min(100%, 1200px);
}

.game-clip--wide {
  aspect-ratio: 800 / 545;
}

.game-clip:not(:has(iframe)) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.game-clip--large .game-inner {
  zoom: 1.5;
}

.game-sidebar {
  width: clamp(120px, 20vw, 310px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  gap: 5px;
}

.ad-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* =============================================
   GAME CONTROLS
   ============================================= */

.sidebar-nav {
  width: 100%;
  margin-top: auto;
}

.sidebar-nav :first-child {
  border-top: none;
}


.sidebar-nav--top {
  margin-top: 0;
}

.sidebar-nav--top > ul {
  width: 100%;
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-nav-item:first-child {
  border-top: none;
}

.sidebar-nav-item > a > svg {
  flex-shrink: 0;
  margin-left: 5px;
  margin-bottom: 2px;
}

.sidebar-nav-item > a,
.sidebar-nav-item > .sidebar-nav-label {
  display: flex;
  align-items: center;
  min-height: 38px;
  width: 100%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-nav-item > a::before,
.sidebar-nav-item > .sidebar-nav-label::before {
  content: '';
  min-width: unset;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  margin: auto 12px;
  flex-shrink: 0;
}

.sidebar-nav-item > a:hover,
.sidebar-nav-item > .sidebar-nav-label:hover {
  color: #00b050;
}


.sidebar-submenu {
  position: absolute;
  top: 0;
  right: 100%;
  background: #222222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0s 0.2s;
  pointer-events: none;
  min-width: 160px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
}

.sidebar-nav-item--multi > .sidebar-submenu {
  display: grid;
  grid-template-rows: repeat(15, auto);
  grid-auto-flow: column;
  direction: rtl;
  overflow: hidden;
  flex-wrap: nowrap;
}

.sidebar-nav-item--multi .sidebar-submenu li {
  direction: ltr;
}

.sidebar-nav-item:hover > .sidebar-submenu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s;
  pointer-events: auto;
}

.sidebar-submenu li a {
  display: block;
  min-width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
}

.sidebar-submenu li a::before {
  display: none;
}

.sidebar-submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 38px;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: color 0.2s;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  color: #00b050;
}

.sidebar-nav a::before,
.sidebar-nav button::before {
  content: '';
  min-width: 30px;
  flex-shrink: 0;
}

.sidebar-nav .sidebar-has-icon::before {
  display: none;
}

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  flex-shrink: 0;
  font-style: normal;
}

.sidebar-nav a:not(.js-bookmarks)::before,
.sidebar-nav button:not(#btn-fullscreen):not(#btn-play-other)::before {
  min-width: unset;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  margin: auto 12px;
}

/* =============================================
   AD PLACEHOLDERS
   ============================================= */

.ad-placeholder {
  display: none;
}

.ad-placeholder--visible {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.4);
}

.ad-placeholder--light {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.3);
}

.ad-placeholder--skyscraper {
  width: 300px;
  max-width: 100%;
  height: 600px;
}

.ad-placeholder--strip {
  width: 100%;
  max-width: 970px;
  height: 160px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.3);
}

/* =============================================
   AD STRIP (horizontal full-width)
   ============================================= */

.mobile-fullscreen-btn {
  display: none;
}

@media (max-width: 850px) {
  .game-section {
    height: calc(100vh - 250px);
  }

  .game-section:has(.game-clip) {
    height: auto;
    background: #f5f5f5;
  }

  .game-clip {
    box-shadow: none;
    border-radius: 0;
    width: 100%;
  }

  .page-minesweeper .game-section:has(.game-clip) {
    padding: 50px 5px 20px;
  }

  .page-minesweeper .game-clip {
    width: min(100%, 800px);
    border-radius: 10px;
    box-shadow: none;
  }

  .mobile-fullscreen-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 20px;
    background: #00b050;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 0.02em;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.2s;
  }

  .mobile-fullscreen-btn:hover {
    background: #009040;
  }

  .mobile-fullscreen-label {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-fullscreen-note {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 6px;
  }
}

.ad-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0px;
  background: #f5f5f5;
}

/* =============================================
   CONTENT SECTION
   ============================================= */

.content-section {
  display: flex;
  padding: 0 20px 40px;
  gap: 30px;
  background: linear-gradient(to bottom, #f5f5f5 0px, #fff 500px);
}

.content-sidebar {
  width: clamp(120px, 20vw, 300px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
}

.content-main {
  flex: 1;
  min-width: 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
  margin-bottom: 8px;
  font-size: 13px;
  color: #777;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li::after {
  content: '/';
  color: #bbb;
  margin: 0 8px;
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: #005000;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: #00b050;
}

/* =============================================
   GAMES GRID
   ============================================= */

.games-grid {
  margin-bottom: 40px;
}

.grid-section-label {
  display: block;
  width: 100%;
  padding: 10px;
  line-height: normal;
  text-align: center;
  background-color: #fff;
  background-image: linear-gradient(to right, #00b050, #00b050);
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: center bottom;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  color: #005000;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s, background-size 0.3s ease;
}

.grid-section-label:hover {
  color: #00b050;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  background-size: 100% 3px;
}

.grid + .grid-section-label {
  margin-top: 10px;
}


.grid-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 2s ease;
  padding: 0 20px;
  margin: 0 -20px 0;
}

.grid-more .grid {
  padding-top: 0;
  padding-bottom: 0;
}

.grid-more .grid:first-child {
  padding-top: 20px;
}

.grid-more .grid:last-child {
  padding-bottom: 20px;
}


.show-more-btn {
  display: block;
  width: 100%;
  padding: 10px;
  position: relative;
  margin-top: 20px;
  background-color: #fff;
  background-image: linear-gradient(to right, #00b050, #00b050);
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: center bottom;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.10);
  transition: color 0.2s, box-shadow 0.2s, background-size 0.3s ease;
}

.page-home .show-more-btn {
  margin-top: 10px;
}

.games-grid.is-expanded .show-more-btn {
  margin-top: 0;
}

.show-more-btn:hover {
  color: #00b050;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.22);
  background-size: 100% 3px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.grid li {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  max-width: 240px;
  width: 100%;
}

.grid a {
  display: grid;
  grid-template-rows: auto 1fr 3px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  top: 0;
  transition: box-shadow 0.3s ease, top 0.15s;
}

@media (min-width: 769px) {
  .grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 240 / 163;
    box-shadow: inset 0 20px 20px -10px rgba(0, 176, 80, 0), inset 0 -20px 20px -10px rgba(0, 176, 80, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
    z-index: 1;
  }

  .grid a:hover::before {
    box-shadow: inset 0 20px 20px -10px rgba(0, 176, 80, 0.75), inset 0 -20px 20px -10px rgba(0, 176, 80, 0.75);
  }
}

.grid a::after {
  content: '';
  background-color: #fff;
  background-image: linear-gradient(to right, #00b050, #00b050);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-size 0.3s ease;
}

.grid a:hover {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  top: -2px;
}

.grid a:hover::after {
  background-size: 100% 100%;
}

.grid a:hover span {
  color: #00b050;
}

.grid img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  text-align: center;
  color: #1a1a1a;
  transition: color 0.2s;
}

/* =============================================
   VARIANTS GRID
   ============================================= */

.variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 14px;
}

.variants-grid > div {
  padding: 0 40px;
}

.variants-grid > div:first-child {
  padding-left: 0;
}

.variants-grid > div:last-child {
  padding-right: 0;
}

.variants-grid > div:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 20px;
  margin-bottom: 14px;
}

.game-cards-grid > div {
  display: flow-root;
  padding: 40px;
}

.game-cards-grid > div:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid #e0e0e0;
}

.game-cards-grid > div:nth-child(even) {
  padding-right: 0;
}

.game-cards-grid > div:nth-child(-n+2) {
  border-bottom: 1px solid #e0e0e0;
}

.game-cards-grid > div > a {
  float: right;
  margin: 0 0 12px 20px;
}

.game-cards-grid img {
  border-radius: 10px;
}

@media (max-width: 600px) {
  .game-cards-grid > div > a img {
    width: 200px;
  }
}

.game-cards-grid > div > a + h3 {
  margin-top: 0;
}

.game-cards-grid p > a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 8px;
  vertical-align: middle;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .variants-grid,
  .game-cards-grid {
    grid-template-columns: 1fr;
  }

  .variants-grid > div,
  .variants-grid > div:first-child,
  .variants-grid > div:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .variants-grid > div:not(:last-child),
  .game-cards-grid > div:nth-child(odd),
  .game-cards-grid > div:nth-child(-n+2) {
    border: none;
  }

  .game-cards-grid > div:nth-child(odd),
  .game-cards-grid > div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =============================================
   SEO CONTENT
   ============================================= */

.content {
  padding-top: 32px;
}

.content h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #111;
}

.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0 0;
}

.content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 4px;
  color: #111;
}

.content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 4px;
  color: #111;
}

.content h2::before {
  content: '\2660  \2666  \2663  \2665';
  display: block;
  font-size: 16px;
  color: #00b050;
}

.content p {
  margin: 0 0 14px;
  color: #444;
}

.content a {
  color: #888;
  transition: color 0.35s ease;
}

.content a:hover {
  color: #00b050;
}

.content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 14px;
}

.content ul li,
.content ol li {
  color: #444;
  margin-bottom: 6px;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: #222222;
  color: #aaa;
  padding: 40px max(20px, calc(50vw - 800px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}


@media (max-width: 1024px) {
  .site-footer {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-footer a {
  color: #999;
}

.site-footer a:hover {
  color: #00b050;
}

/* =============================================
   LEGAL BAR
   ============================================= */

.sub-footer {
  background: #1a1a1a;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-footer a {
  color: #888;
}

.sub-footer a:hover {
  color: #00b050;
}

.sub-footer p {
  margin: 0;
}

.sub-footer-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.sub-footer-languages svg {
  flex-shrink: 0;
}

.sub-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.sub-footer-right nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}

.sub-footer-right nav a,
.sub-footer-right nav span {
  margin-left: 16px;
}

/* =============================================
   BUTTON
   ============================================= */

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: none;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn:hover {
  color: #00b050;
  border-color: #00b050;
}

/* =============================================
   LEGAL LAYOUT
   ============================================= */

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.modal {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #111;
}

.modal p {
  font-size: 15px;
  color: #444;
  margin: 0 0 12px;
}

.modal-url {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: #555;
  background: #f9f9f9;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.modal-copy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #005000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-copy-btn:hover {
  background: #007a00;
}

.modal-copy-btn.is-copied {
  background: #00b050;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */

#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background-color 0.2s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-top::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}

#scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  background-color: rgba(0, 0, 0, 0.65);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* =============================================
   MOBILE NAV
   ============================================= */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  width: 38px;
  height: 38px;
}

.nav-toggle .icon-menu,
.nav-toggle .icon-close {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-toggle .icon-menu {
  opacity: 1;
  transform: rotate(0deg);
}

.nav-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.nav-toggle.is-open .icon-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.nav-toggle.is-open .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.submenu-toggle {
  display: none;
}


@media (max-width: 1024px) {
  .sub-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .sub-footer-languages {
    justify-content: center;
  }

  .sub-footer-right {
    justify-content: center;
    flex-shrink: 1;
  }
}

@media (max-width: 768px) {
  .sub-footer {
    font-size: 14px;
  }

  .sub-footer-right {
    display: block;
    width: 100%;
  }

  .sub-footer-right p {
    margin-top: 8px;
  }


  .site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    z-index: 150;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path 0.3s ease;
    padding: 0;
  }

  .site-nav.is-open {
    clip-path: inset(0 0 -10px 0);
    pointer-events: auto;
    border-radius: 0 0 10px 10px;
  }

  .site-nav > ul > li:nth-last-child(2) {
    border-bottom: none;
  }

  .site-nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav > ul > li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    background-image: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-nav > ul > li:hover {
    background-size: 0;
  }

  .site-nav > ul > li > a,
  .site-nav > ul > li > .nav-label {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 16px;
  }

  .site-nav > ul > li:has(.submenu) > a::after,
  .site-nav > ul > li:has(.submenu) > .nav-label::after {
    display: none;
  }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 13px 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  .submenu-toggle svg {
    transition: transform 0.2s;
  }

  .site-nav > ul > li.is-open > .submenu-toggle svg {
    transform: rotate(180deg);
  }

  .submenu {
    display: block;
    flex-wrap: nowrap;
    align-content: normal;
    max-height: 0;
    position: static;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.3);
    visibility: visible;
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
  }

  .site-nav > ul > li.is-open > .submenu {
    max-height: 2000px;
  }

  .submenu a {
    padding: 12px 20px 12px 32px;
    font-size: 16px;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1440px) {
  .game-section .game-sidebar:first-child,
  .content-section .content-sidebar:first-child {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-nav > ul > li.nav-bookmarks {
    display: none;
  }

  .game-section:has(.game-clip) .game-sidebar {
    display: none;
  }
}

@media (min-width: 851px) and (max-width: 1024px) {
  body.has-sidebar-nav:has(.game-clip) .site-header {
    display: flex;
  }

  .has-sidebar-nav:has(.game-clip) .game-section {
    height: auto;
    padding: 20px 5px;
  }

  .game-section:has(.game-clip) {
    background: #f5f5f5;
  }
}

@media (min-width: 851px) {
  .has-sidebar-nav .site-header {
    display: none;
  }
  .has-sidebar-nav .game-section {
    height: 100vh;
  }
}

@media (min-width: 851px) and (max-height: 980px) {
  #btn-play-other {
    display: none;
  }
}

@media (min-width: 851px) and (max-height: 940px) {
  .js-bookmarks.sidebar-has-icon {
    display: none;
  }
}

@media (min-width: 851px) and (max-height: 900px) {
  #btn-fullscreen {
    display: none;
  }
}

@media (max-width: 850px) {
  .game-section .game-sidebar:last-child,
  .content-section .content-sidebar:last-child {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }




  .content h1 {
    font-size: 22px;
  }

  .content {
    font-size: 16px;
  }

  .mobile-fullscreen-label {
    font-size: 20px;
  }

  .grid {
    gap: 10px;
  }

  .grid li {
    flex-basis: calc(25% - 7.5px);
  }

  .grid span {
    padding: 5px 0;
  }
}

/* ==============================================
   THIRD-PARTY OVERRIDES
   ============================================= */

.publift-widget-sticky_footer_scrolling-container-background {
  background: rgba(240, 240, 240, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.ad-sticky {
  position: sticky;
  top: 20px;
}