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

:root {
  --bg: #0d1117;
  --bg-secondary: #151b25;
  --bg-card: #1a2030;
  --bg-card-hover: #222a3a;
  --bg-sidebar: #0b0f18;
  --bg-header: rgba(13, 17, 23, .92);
  --text: #e8eaed;
  --text-muted: #8b929a;
  --text-dim: #545d6a;
  --accent: #f5c518;
  --accent-hover: #e6b800;
  --accent-dark: #c8a000;
  --green: #2ecc71;
  --red: #e74c3c;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
  --sidebar-w: 64px;
  --header-h: 56px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right)
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit
}

ul,
ol {
  list-style: none
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  padding-bottom: 0;
  z-index: 1000;
  gap: 12px
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px
}

.header-burger {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background .2s
}

.header-burger:hover {
  background: rgba(255, 255, 255, .06)
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap
}

.header-logo-icon {
  width: 32px;
  height: 32px
}

.header-logo-text {
  color: #fff
}

.header-nav {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 3px 4px;
  gap: 2px;
  margin-left: 4px
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
  white-space: nowrap
}

.header-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff
}

.header-nav a i {
  font-size: .8rem
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px
}

.header-search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: 50%;
  transition: all .2s
}

.header-search:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.search-box {
  position: absolute;
  top: calc(100% + 4px);
  right: 100px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .2s
}

.search-box.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .88rem;
  width: 200px;
  outline: none
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap
}

.btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .3)
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .04)
}

.btn-accent {
  background: var(--accent);
  color: #111;
  border: 1.5px solid var(--accent)
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px)
}

.btn-banner {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 24px;
  font-size: .82rem;
  border: 1.5px solid rgba(255, 255, 255, .5);
  transition: all .2s
}

.btn-banner:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff
}

.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  z-index: 900;
  border-right: 1px solid rgba(255, 255, 255, .04)
}

.sidebar-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 1.05rem;
  transition: all .2s;
  position: relative
}

.sidebar-icon:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04)
}

.sidebar-icon.active {
  color: var(--accent)
}

.sidebar-icon.hot {
  color: #e74c3c
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all .3s
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-sidebar);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 20px;
  overflow-y: auto
}

.mobile-menu.open {
  transform: translateX(0)
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.mobile-menu-head .header-logo {
  font-size: 1rem
}

.close-menu {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.05rem
}

.close-menu:hover {
  background: rgba(255, 255, 255, .06)
}

.mob-nav {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.mob-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .92rem;
  transition: all .2s
}

.mob-nav a i {
  width: 20px;
  text-align: center;
  font-size: .95rem
}

.mob-nav a:hover,
.mob-nav a.active {
  background: rgba(255, 255, 255, .05);
  color: var(--accent)
}

.mob-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin: 8px 0
}

.main {
  margin-top: calc(var(--header-h) + env(safe-area-inset-top));
  margin-left: var(--sidebar-w);
  padding: 20px 24px 32px;
  max-width: 100%;
  box-sizing: border-box
}

.banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  align-items: stretch
}

.banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
  min-height: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform .25s
}

.banner:hover {
  transform: scale(1.01)
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, .8) 0%, rgba(13, 17, 23, .35) 55%, transparent 100%)
}

.banner>* {
  position: relative;
  z-index: 1
}

.banner-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245, 197, 24, .12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  letter-spacing: .5px
}

.banner-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2px;
  color: #fff
}

.banner-sub {
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s
}

.see-all:hover {
  border-color: rgba(255, 255, 255, .35);
  color: #fff
}

.see-all strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .78rem;
  margin-left: 2px
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 48px
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: transform .25s;
  min-width: 0
}

.game-card:hover {
  transform: translateY(-4px)
}

.game-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
  display: block;
  background: rgba(255, 255, 255, .06);
  min-height: 0
}

.game-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s
}

.game-card:hover .game-thumb img {
  transform: scale(1.05)
}

.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  backdrop-filter: blur(4px)
}

.badge-hot {
  background: rgba(231, 76, 60, .85);
  color: #fff
}

.badge-new {
  background: rgba(46, 204, 113, .85);
  color: #fff
}

.game-info {
  padding: 10px 4px 4px;
  min-width: 0
}

.game-name {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

.game-provider {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px
}

.game-placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.header-logo-img {
  height: 28px;
  width: auto
}

.seo-content {
  margin: 0 0 48px;
  padding: 0
}

.seo-content h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.25
}

.seo-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 12px
}

.seo-content h3 {
  font-size: .95rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text-muted)
}

.seo-content p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .88rem
}

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

.seo-content ul li {
  margin-bottom: 5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .86rem
}

.seo-content ol {
  margin: 10px 0 14px 20px;
  list-style: decimal
}

.seo-content ol li {
  margin-bottom: 5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .86rem
}

.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  border-radius: var(--radius-sm);
  overflow: hidden
}

.seo-content thead {
  background: var(--accent)
}

.seo-content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #111;
  font-size: .82rem;
  border-bottom: none
}

.seo-content td {
  padding: 10px 16px;
  font-size: .84rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: var(--bg-card)
}

.seo-content tr:hover td {
  background: var(--bg-card-hover)
}

.seo-content strong {
  color: var(--text);
  font-weight: 600
}

.vip-level {
  font-weight: 700;
  white-space: nowrap
}

.vip-level.bronzo {
  color: #cd7f32
}

.vip-level.argento {
  color: #c0c0c0
}

.vip-level.oro {
  color: #ffd700
}

.vip-level.platino {
  color: #e5e4e2
}


.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid rgba(255, 255, 255, .04);
  padding: 36px 24px 20px;
  margin-left: calc(var(--sidebar-w) * -1 - 24px);
  margin-right: -24px;
  margin-bottom: -32px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box
}

.site-footer::before {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(30, 60, 120, .15) 0%, transparent 70%);
  pointer-events: none
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px
}

.footer-brand {
  flex-shrink: 0
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px
}

.footer-logo img {
  width: 28px;
  height: 28px
}

.footer-logo span {
  color: var(--accent)
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 20px 40px;
  flex: 1;
  justify-content: center
}

.footer-col a {
  display: block;
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 5px;
  transition: color .2s
}

.footer-col a:hover {
  color: var(--accent)
}

.footer-help {
  text-align: right;
  flex-shrink: 0
}

.footer-help-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  font-style: italic
}

.footer-help a {
  color: var(--text);
  font-size: .88rem;
  font-weight: 500
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: 14px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-dim)
}

@media(max-width:1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .banners {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:1024px) {
  .sidebar {
    display: none
  }

  .main {
    margin-left: 0
  }

  .header-nav {
    display: none
  }

  .site-footer {
    margin-left: 0;
    margin-right: 0;
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right))
  }

  .footer-links {
    grid-template-columns: repeat(2, auto);
    gap: 16px 32px
  }
}

@media(max-width:768px) {
  .main {
    padding: 14px 16px 24px;
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right))
  }

  .banners {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .banner {
    height: 180px;
    min-height: 180px;
    padding: 16px 18px
  }

  .banner-headline {
    font-size: 1.35rem
  }

  .banner-sub {
    font-size: .85rem
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px
  }

  .section-head {
    flex-wrap: wrap;
    gap: 12px
  }

  .section-title {
    font-size: 1.25rem
  }

  .see-all {
    padding: 6px 12px;
    font-size: .8rem
  }

  .game-info {
    padding: 8px 2px 4px
  }

  .game-name {
    font-size: .82rem
  }

  .seo-content {
    padding: 20px;
    border-radius: var(--radius);
    font-size: .9rem
  }

  .seo-content h1 {
    font-size: 1.25rem
  }

  .seo-content h2 {
    font-size: 1.1rem
  }

  .seo-content h3 {
    font-size: 1rem
  }

  .seo-content table {
    font-size: .8rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .info-cards {
    grid-template-columns: 1fr
  }

  .vip-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .site-footer {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    margin-bottom: -24px;
    padding: 28px 16px 14px;
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-bottom: calc(14px + env(safe-area-inset-bottom))
  }

  .footer-inner {
    max-width: 100%
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    width: 100%
  }

  .footer-col a {
    font-size: .8rem;
    margin-bottom: 6px
  }

  .footer-help {
    text-align: left;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .06)
  }

  .footer-help-title {
    font-size: .95rem;
    margin-bottom: 4px
  }

  .footer-help a {
    font-size: .86rem
  }

  .footer-bottom {
    padding-top: 12px;
    font-size: .76rem
  }

  .mobile-menu {
    width: min(280px, 100vw - 32px);
    padding-left: env(safe-area-inset-right)
  }
}

@media(max-width:480px) {
  .header {
    padding-left: calc(10px + env(safe-area-inset-left));
    padding-right: calc(10px + env(safe-area-inset-right));
    gap: 8px
  }

  .header-burger,
  .header-search {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px
  }

  .header-logo-img {
    max-height: 28px;
    width: auto
  }

  .btn-accent {
    padding: 10px 16px;
    font-size: .85rem;
    min-height: 44px
  }

  .btn-ghost {
    display: none
  }

  .main {
    padding: 12px 10px 24px;
    padding-left: calc(10px + env(safe-area-inset-left));
    padding-right: calc(10px + env(safe-area-inset-right));
    padding-bottom: calc(24px + env(safe-area-inset-bottom))
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px
  }

  .game-name {
    font-size: .78rem;
    -webkit-line-clamp: 2
  }

  .game-provider {
    font-size: .75rem
  }

  .section-title {
    font-size: 1.15rem
  }

  .see-all {
    padding: 6px 10px;
    font-size: .78rem
  }

  .banner {
    height: 150px;
    min-height: 150px;
    padding: 12px 14px;
    border-radius: var(--radius)
  }

  .banner-tag {
    font-size: .62rem;
    padding: 3px 8px
  }

  .banner-headline {
    font-size: 1.1rem
  }

  .banner-sub {
    font-size: .78rem;
    margin-bottom: 10px
  }

  .btn-banner {
    padding: 8px 14px;
    font-size: .8rem
  }

  .seo-content {
    padding: 16px 12px;
    font-size: .88rem
  }

  .seo-content h1 {
    font-size: 1.15rem
  }

  .seo-content h2 {
    font-size: 1.05rem
  }

  .seo-content table {
    font-size: .75rem
  }

  .seo-content th,
  .seo-content td {
    padding: 8px 10px
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px
  }

  .site-footer {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    margin-bottom: -20px;
    padding: 24px 16px 16px;
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-bottom: calc(16px + env(safe-area-inset-bottom))
  }

  .mobile-menu {
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top))
  }

  .close-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px
  }

  .mob-nav a {
    padding: 14px 12px;
    font-size: 1rem;
    min-height: 48px
  }
}

@media(max-width:360px) {
  .main {
    padding: 10px 8px 20px;
    padding-left: calc(8px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right))
  }

  .games-grid {
    gap: 8px;
    margin-bottom: 24px
  }

  .banner {
    height: 140px;
    min-height: 140px;
    padding: 10px 12px
  }

  .banner-headline {
    font-size: 1rem
  }

  .section-title {
    font-size: 1.05rem
  }

  .game-name {
    font-size: .74rem
  }
}