/*
Theme Name: Duel Casino
Theme URI: https://duelcasinolive.org/
Author: Duel Casino
Description: WordPress theme for Duel Casino multilingual review site.
Version: 1.0.0
Text Domain: duell-casino
Requires at least: 6.0
Requires PHP: 8.0
*/


    :root {
      --bg-dark: #0a0e1e;
      --bg-darker: #070b18;
      --bg-content: #0d1221;
      --sidebar-bg: rgba(10, 14, 30, 0.95);
      --panel-bg: rgba(15, 20, 40, 0.6);
      --submenu-bg: rgba(20, 26, 50, 0.5);
      --border: rgba(255, 255, 255, 0.06);
      --text: #e5e7f0;
      --text-muted: rgba(229, 231, 240, 0.6);
      --text-dim: rgba(229, 231, 240, 0.35);
      --accent: #5b6ff5;
      --accent-hover: #7086ff;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
      color: var(--text);
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    .layout {
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

    /* === HEADER === */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      height: 64px;
      border-bottom: 1px solid var(--border);
      background: rgba(7, 11, 24, 0.95);
      flex-shrink: 0;
    }

    .header__left {
      display: flex;
      align-items: center;
      gap: 32px;
      height: 100%;
    }

    .logo {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: #fff;
      text-decoration: none;
      cursor: pointer;
    }

    .nav {
      display: flex;
      gap: 0;
      height: 100%;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 20px;
      text-decoration: none;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s;
      position: relative;
      height: 100%;
      border-bottom: 2px solid transparent;
    }

    .nav-link:hover {
      color: var(--text);
    }

    .nav-link--active {
      color: #fff;
      border-bottom-color: var(--accent);
    }

    .nav-link svg {
      flex-shrink: 0;
    }

    .header__right {
      display: flex;
      gap: 10px;
    }

    .btn {
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn--secondary {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn--secondary:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    .btn--primary {
      background: linear-gradient(135deg, #5b6ff5 0%, #7086ff 100%);
      color: #fff;
      box-shadow: 0 4px 16px rgba(91, 111, 245, 0.4);
    }

    .btn--primary:hover {
      box-shadow: 0 6px 20px rgba(91, 111, 245, 0.5);
      transform: translateY(-1px);
    }

    /* === LANGUAGE SWITCHER === */
    .lang-switcher {
      position: relative;
    }

    .lang-switcher__btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      line-height: 1;
      font-family: inherit;
    }

    .lang-switcher__btn:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    .lang-switcher__flag {
      font-size: 18px;
      line-height: 1;
      font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    }

    .lang-switcher__code {
      font-size: 13px;
      letter-spacing: 0.5px;
    }

    .lang-switcher__chevron {
      width: 12px;
      height: 12px;
      opacity: 0.6;
      transition: transform 0.2s;
    }

    .lang-switcher.open .lang-switcher__chevron {
      transform: rotate(180deg);
    }

    .lang-switcher__menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 220px;
      background: #0f1426;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 6px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
      display: none;
      z-index: 1000;
    }

    .lang-switcher.open .lang-switcher__menu {
      display: block;
    }

    .lang-switcher__item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 6px;
      font-size: 14px;
      color: var(--text);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;
      white-space: nowrap;
    }

    .lang-switcher__item:hover {
      background: rgba(255, 255, 255, 0.06);
    }

    .lang-switcher__item.active {
      background: rgba(91, 111, 245, 0.15);
      color: #fff;
    }

    .lang-switcher__item .lang-switcher__flag {
      font-size: 20px;
    }

    /* === BODY WRAPPER === */
    .body-wrapper {
      display: grid;
      grid-template-columns: 1fr;
      flex: 1;
      overflow: hidden;
      position: relative;
    }

    /* === SIDEBAR (CHAT) === */
    .sidebar {
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .sidebar__header {
      padding: 20px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .online-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .online-dot {
      width: 8px;
      height: 8px;
      background: #3dd598;
      border-radius: 50%;
      box-shadow: 0 0 0 3px rgba(61, 213, 152, 0.2);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 0 0 3px rgba(61, 213, 152, 0.2);
      }
      50% {
        box-shadow: 0 0 0 5px rgba(61, 213, 152, 0.3);
      }
    }

    .close-chat-btn {
      display: none;
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 8px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .close-chat-btn:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    .sidebar__chat {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
    }

    .chat-message {
      margin-bottom: 14px;
      font-size: 13px;
      line-height: 1.5;
      color: var(--text-muted);
      opacity: 0;
      animation: fadeIn 0.3s ease-in forwards;
      word-wrap: break-word;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .chat-user, .chat-reply {
      color: var(--text);
      font-weight: 600;
    }

    .chat-reply {
      color: var(--accent);
    }

    .sidebar__input {
      padding: 14px 18px;
      border-top: 1px solid var(--border);
    }

    .chat-input {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--panel-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
    }

    .chat-input input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 13px;
    }

    .chat-input input::placeholder {
      color: var(--text-dim);
    }

    .send-btn {
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .send-btn:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    /* === MAIN === */
    .main {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: var(--bg-content);
    }

    /* === CONTENT === */
    .content {
      flex: 1;
      overflow-y: auto;
      padding: 20px 60px;
      background: var(--bg-content);
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
      scroll-behavior: smooth;
    }

    @media (min-width: 1401px) {
      .content {
        max-width: none;
        padding-left: calc((100% - 1400px) / 2 + 60px);
        padding-right: calc((100% - 1400px) / 2 + 60px);
      }
    }

    .text-content h2[id] {
      scroll-margin-top: 20px;
    }

    /* === HERO === */
    .hero {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 20px;
    }

    .hero__card {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      background-color: #161b2e;
      background-size: cover;
      background-position: center right;
      background-repeat: no-repeat;
      isolation: isolate;
      min-height: 420px;
    }

    .hero__main {
      background-image: url('assets/images/banner-bg-scaled-2560.webp');
      background-position: center top;
    }

    .hero__main::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(15, 20, 38, 0.42) 0%, rgba(15, 20, 38, 0.2) 42%, rgba(15, 20, 38, 0.04) 100%),
        linear-gradient(180deg, rgba(7, 11, 24, 0.02) 0%, rgba(7, 11, 24, 0.22) 100%);
      z-index: 1;
    }

    .hero__main-inner {
      position: relative;
      z-index: 2;
      padding: 58px 64px;
      max-width: 500px;
      display: flex;
      flex-direction: column;
      min-height: 420px;
      justify-content: center;
    }

    .hero__badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text);
      width: fit-content;
      margin-bottom: 18px;
    }

    .hero__badge::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px rgba(91, 111, 245, 0.7);
      flex-shrink: 0;
    }

    .hero__title {
      font-size: 52px;
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin-bottom: 14px;
      color: var(--text);
    }

    .hero__title span {
      background: linear-gradient(135deg, #7086ff, #a586ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero__desc {
      font-size: 14px;
      color: rgba(229, 231, 240, 0.88);
      line-height: 1.55;
      margin-bottom: 22px;
      max-width: 560px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .hero__actions {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero__btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 22px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      border: none;
      font-family: inherit;
    }

    .hero__btn--primary {
      background: linear-gradient(135deg, #5b6ff5 0%, #7086ff 100%);
      color: #fff;
      box-shadow: 0 6px 20px rgba(91, 111, 245, 0.35);
    }

    .hero__btn--primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(91, 111, 245, 0.5);
    }

    .hero__btn--ghost {
      background: transparent;
      color: var(--text);
    }

    .hero__btn--ghost:hover {
      color: var(--accent-hover);
    }

    .hero__side {
      background-image: url('assets/images/right.webp');
    }

    .hero__side::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(15, 20, 38, 0.78) 0%, rgba(15, 20, 38, 0.55) 50%, rgba(15, 20, 38, 0.9) 100%),
        linear-gradient(90deg, rgba(15, 20, 38, 0.55) 0%, rgba(15, 20, 38, 0.15) 60%, rgba(15, 20, 38, 0) 100%);
      z-index: 1;
    }

    .hero__side-inner {
      position: relative;
      z-index: 2;
      padding: 26px 28px;
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
    }

    .hero__side-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(229, 231, 240, 0.95);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .hero__side-value {
      font-size: 52px;
      font-weight: 800;
      line-height: 1;
      margin-top: 8px;
      color: var(--text);
      letter-spacing: -0.03em;
    }

    .hero__side-desc {
      font-size: 13px;
      color: rgba(229, 231, 240, 0.92);
      line-height: 1.5;
      margin-top: 10px;
      max-width: 280px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .hero__side-link {
      margin-top: auto;
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      transition: color 0.2s;
    }

    .hero__side-link:hover {
      color: var(--accent-hover);
    }

    /* === SUBMENU === */
    .submenu {
      display: flex;
      align-items: center;
      gap: 16px;
      background: var(--submenu-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px 14px;
      margin-bottom: 24px;
    }

    .submenu__tabs {
      display: flex;
      gap: 6px;
      flex: 1;
    }

    .tab {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 12px;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      text-decoration: none;
    }

    .tab svg {
      opacity: 0.6;
      flex-shrink: 0;
    }

    .tab:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
    }

    .tab:hover svg {
      opacity: 1;
    }

    .tab--active {
      background: rgba(91, 111, 245, 0.15);
      color: var(--accent);
      border: 1px solid rgba(91, 111, 245, 0.3);
    }

    .tab--active svg {
      opacity: 1;
    }

    .submenu__search {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 14px;
      min-width: 280px;
    }

    .submenu__search svg {
      color: var(--text-muted);
      flex-shrink: 0;
    }

    .submenu__search input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 13px;
    }

    .submenu__search input::placeholder {
      color: var(--text-dim);
    }

    /* === GAME SECTION === */
    .game-section {
      margin-bottom: 36px;
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 16px;
      font-weight: 700;
    }

    .section-title svg {
      opacity: 0.8;
    }

    .section-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .view-all {
      font-size: 13px;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
    }

    .view-all:hover {
      color: var(--text);
    }

    .arrow-btn {
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 18px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .arrow-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
    }

    .game-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
    }

    .game-card {
      aspect-ratio: 2.5 / 3.5;
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      text-decoration: none;
      display: block;
    }

    .game-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    /* === TEXT CONTENT SECTION === */
    .text-content {
      margin: 60px 0;
      padding: 40px;
      background: rgba(15, 20, 40, 0.4);
      border: 1px solid var(--border);
      border-radius: 16px;
      backdrop-filter: blur(10px);
    }

    .text-content h1 {
      font-size: 32px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 16px;
      line-height: 1.3;
    }

    .text-content h2 {
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      margin-top: 48px;
      margin-bottom: 24px;
      line-height: 1.3;
    }

    .text-content h3 {
      font-size: 20px;
      font-weight: 600;
      color: var(--text);
      margin-top: 32px;
      margin-bottom: 16px;
      line-height: 1.4;
    }

    .text-content p {
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .text-content ul, .text-content ol {
      margin: 16px 0;
      padding-left: 24px;
    }

    .text-content li {
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .text-content strong {
      color: var(--text);
      font-weight: 600;
    }

    .text-content a {
      color: var(--accent);
      text-decoration: underline;
      transition: color 0.2s;
    }

    .text-content a:hover {
      color: var(--accent-hover);
    }

    .text-content table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0;
      font-size: 14px;
    }

    .text-content table th {
      background: rgba(91, 111, 245, 0.1);
      color: var(--text);
      font-weight: 600;
      padding: 12px 16px;
      text-align: left;
      border: 1px solid var(--border);
    }

    .text-content table td {
      padding: 12px 16px;
      border: 1px solid var(--border);
      color: var(--text-muted);
    }

    .text-content table tr:hover {
      background: rgba(255, 255, 255, 0.02);
    }

    .text-content__cta-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      padding: 10px 16px;
      background: rgba(91, 111, 245, 0.1);
      border: 1px solid rgba(91, 111, 245, 0.3);
      border-radius: 10px;
      color: var(--accent) !important;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none !important;
      transition: all 0.2s;
    }

    .text-content__cta-link:hover {
      background: rgba(91, 111, 245, 0.18);
      color: var(--accent-hover) !important;
      transform: translateX(2px);
    }

    .text-content__profile {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 20px 0;
    }

    .text-content__profile-col {
      padding: 18px 20px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
    }

    .text-content__profile-col h3 {
      margin-top: 0 !important;
      font-size: 16px !important;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .text-content__profile-col--good h3 {
      color: #4ade80;
    }

    .text-content__profile-col--bad h3 {
      color: #f87171;
    }

    .text-content__profile-col ul {
      margin: 8px 0 0 0;
      padding-left: 18px;
    }

    .text-content__profile-col li {
      font-size: 14px;
    }

    @media (max-width: 768px) {
      .text-content__profile {
        grid-template-columns: 1fr;
      }
    }

    body.lang-non-ru .lang-only-ru {
      display: none !important;
    }

    .faq {
      margin: 20px 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .faq-item {
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.02);
      overflow: hidden;
      transition: border-color 0.15s, background 0.15s;
    }

    .faq-item[open] {
      background: rgba(91, 111, 245, 0.04);
      border-color: rgba(91, 111, 245, 0.25);
    }

    .faq-item summary {
      list-style: none;
      cursor: pointer;
      padding: 16px 20px;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      user-select: none;
      transition: color 0.15s;
    }

    .faq-item summary::-webkit-details-marker {
      display: none;
    }

    .faq-item summary::after {
      content: '';
      width: 10px;
      height: 10px;
      border-right: 2px solid var(--text-muted);
      border-bottom: 2px solid var(--text-muted);
      transform: rotate(45deg) translate(-2px, -2px);
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }

    .faq-item[open] summary::after {
      transform: rotate(-135deg) translate(-2px, -2px);
    }

    .faq-item summary:hover {
      color: var(--accent-hover);
    }

    .faq-item summary:hover::after {
      border-color: var(--accent-hover);
    }

    .faq-item[open] summary::after {
      border-color: var(--accent);
    }

    .faq-item__content {
      padding: 0 20px 18px 20px;
      animation: faqOpen 0.2s ease-out;
    }

    .faq-item__content p {
      margin: 0;
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-muted);
    }

    @keyframes faqOpen {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 768px) {
      .faq-item summary {
        padding: 14px 16px;
        font-size: 15px;
      }

      .faq-item__content {
        padding: 0 16px 14px 16px;
      }
    }

    .text-content .info-box {
      background: rgba(91, 111, 245, 0.05);
      border-left: 3px solid var(--accent);
      padding: 16px 20px;
      margin: 24px 0;
      border-radius: 8px;
    }

    .text-content .info-box strong {
      color: var(--accent);
    }

    /* === TEXT CONTENT IMAGES === */
    .text-content .content-image {
      width: min(34%, 320px);
      min-width: 240px;
      height: auto;
      border-radius: 12px;
      border: 1px solid var(--border);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      margin-top: 6px;
      margin-bottom: 18px;
    }

    .text-content .content-image--left {
      float: left;
      margin-right: 24px;
      margin-left: 0;
    }

    .text-content .content-image--right {
      float: right;
      margin-left: 24px;
      margin-right: 0;
    }

    .text-content h2,
    .text-content h3,
    .text-content .info-box {
      clear: both;
    }

    /* === MOBILE BOTTOM NAV === */
    .mobile-bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(7, 11, 24, 0.98);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      padding: 8px 0;
      z-index: 1000;
    }

    .mobile-nav-items {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 600px;
      margin: 0 auto;
    }

    .mobile-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 8px 16px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 11px;
      font-weight: 500;
      transition: all 0.2s;
      cursor: pointer;
      background: transparent;
      border: none;
    }

    .mobile-nav-item svg {
      width: 24px;
      height: 24px;
      opacity: 0.6;
    }

    .mobile-nav-item--active {
      color: var(--accent);
    }

    .mobile-nav-item--active svg {
      opacity: 1;
    }

    /* === MOBILE CHAT OVERLAY === */
    .mobile-chat-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      z-index: 999;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .mobile-chat-overlay.active {
      opacity: 1;
    }

    /* === FOOTER === */
    .footer {
      margin-top: 28px;
      padding: 24px 26px 18px;
      background: linear-gradient(135deg, rgba(15, 20, 40, 0.9) 0%, rgba(10, 14, 30, 0.96) 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px 18px 0 0;
      box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.18);
    }

    .footer__top {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
      gap: 28px;
      align-items: start;
      margin-bottom: 18px;
    }

    .footer-col h3 {
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 10px;
      color: #fff;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .footer-col a {
      display: inline-flex;
      align-items: center;
      margin: 0 14px 8px 0;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      line-height: 1.35;
      transition: color 0.2s, transform 0.2s;
    }

    .footer-col a:hover {
      color: #fff;
      transform: translateY(-1px);
    }

    .social-links {
      display: flex;
      gap: 10px;
      margin-top: 2px;
    }

    .social-icon {
      width: 38px;
      height: 38px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.7);
      transition: all 0.2s;
      text-decoration: none;
      position: relative;
    }

    .social-icon svg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .social-icon:hover {
      background: rgba(91, 111, 245, 0.18);
      color: #fff;
      border-color: rgba(91, 111, 245, 0.45);
      transform: translateY(-2px);
    }

    .footer__bottom {
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-copyright {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      font-size: 12px;
      color: var(--text-dim);
    }

    .help-btn {
      width: 38px;
      height: 38px;
      background: linear-gradient(135deg, #5b6ff5 0%, #7086ff 100%);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(91, 111, 245, 0.28);
      transition: all 0.2s;
    }

    .help-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(91, 111, 245, 0.36);
    }

    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 14px;
      background: rgba(15, 20, 40, 0.88);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
      transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
      z-index: 1001;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    }

    .back-to-top.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .back-to-top:hover {
      background: rgba(91, 111, 245, 0.95);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    /* === SCROLLBAR === */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    /* === RESPONSIVE === */
    @media (max-width: 1400px) {
      .game-grid {
        grid-template-columns: repeat(5, 1fr);
      }
    }

    @media (max-width: 1100px) {
      .body-wrapper {
        grid-template-columns: 1fr;
      }
      
      .sidebar {
        display: none;
      }
      
      .game-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .content {
        padding: 20px 30px;
      }
    }

    @media (max-width: 1024px) {
      .mobile-bottom-nav {
        display: block;
      }

      .content {
        padding-bottom: 100px;
      }

      .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 85%;
        max-width: 400px;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        display: flex;
      }

      .sidebar.active {
        right: 0;
      }

      .close-chat-btn {
        display: flex;
      }

      .game-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
      }

      .game-grid::-webkit-scrollbar {
        display: none;
      }

      .game-card {
        flex: 0 0 150px;
        width: 150px;
        scroll-snap-align: start;
      }

      .text-content {
        margin: 40px 0;
        padding: 24px;
      }

      .text-content h1 {
        font-size: 24px;
      }

      .text-content h2 {
        font-size: 22px;
      }

      .text-content h3 {
        font-size: 18px;
      }

      .submenu {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .submenu::-webkit-scrollbar {
        display: none;
      }

      .submenu__tabs {
        flex-wrap: nowrap;
        min-width: min-content;
      }

      .submenu__search {
        min-width: 200px;
      }

      .hero {
        grid-template-columns: 1fr;
      }

      .hero__card {
        min-height: 340px;
      }

      .hero__main-inner {
        max-width: 500px;
        min-height: 340px;
        padding: 38px 42px;
      }

      .hero__title {
        font-size: 40px;
      }
    }

    @media (max-width: 768px) {
      .text-content .content-image {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        float: none !important;
        margin: 18px 0;
        display: block;
      }

      .header {
        padding: 0 16px;
      }

      .header__left {
        gap: 16px;
      }

      .logo {
        font-size: 20px;
      }

      .nav {
        display: none;
      }

      .btn {
        padding: 8px 14px;
        font-size: 13px;
      }

      .lang-switcher__btn {
        padding: 8px 10px;
        gap: 6px;
      }

      .lang-switcher__code {
        display: none;
      }

      .lang-switcher__menu {
        position: fixed;
        top: 64px;
        right: 12px;
        left: auto;
        min-width: 200px;
        max-width: calc(100vw - 24px);
      }

      .content {
        padding: 16px;
        padding-bottom: 100px;
      }

      .hero {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
      }

      .hero__card {
        min-height: 300px;
      }

      .hero__main::before {
        background: linear-gradient(180deg, rgba(15, 20, 38, 0.18) 0%, rgba(15, 20, 38, 0.62) 78%);
      }

      .hero__main-inner {
        padding: 28px 24px;
        max-width: 100%;
        min-height: 300px;
      }

      .hero__title {
        font-size: 30px;
      }

      .hero__desc {
        font-size: 13px;
        margin-bottom: 18px;
      }

      .hero__btn {
        padding: 10px 18px;
        font-size: 13px;
      }

      .hero__side {
        min-height: 180px;
      }

      .hero__side-inner {
        padding: 20px 22px;
      }

      .hero__side-value {
        font-size: 42px;
      }

      .game-card {
        flex: 0 0 130px;
        width: 130px;
      }

      .text-content {
        margin: 32px 0;
        padding: 20px;
      }

      .text-content h1 {
        font-size: 20px;
      }

      .text-content h2 {
        font-size: 20px;
      }

      .text-content h3 {
        font-size: 16px;
      }

      .footer {
        margin-top: 22px;
        padding: 20px 18px 16px;
        border-radius: 16px 16px 0 0;
      }

      .footer__top {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .footer-col a {
        margin-right: 12px;
        margin-bottom: 7px;
      }

      .footer-copyright {
        align-items: flex-start;
      }

      .back-to-top {
        right: 16px;
        bottom: 86px;
        width: 42px;
        height: 42px;
      }

      .sidebar {
        width: 90%;
      }

      .submenu {
        padding: 8px 10px;
        gap: 10px;
      }

      .submenu__search {
        min-width: 150px;
      }

      .tab {
        padding: 8px 12px;
        font-size: 12px;
      }
    }

    @media (max-width: 480px) {
      .game-card {
        flex: 0 0 110px;
        width: 110px;
      }

      .sidebar {
        width: 95%;
      }

      .text-content {
        padding: 16px;
      }

      .text-content .content-image {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        float: none !important;
        margin: 16px 0;
        display: block;
      }

      .submenu__search {
        display: none;
      }

      .submenu {
        padding: 6px 8px;
      }

      .tab {
        padding: 6px 10px;
        font-size: 11px;
        gap: 6px;
      }

      .tab svg {
        width: 14px;
        height: 14px;
      }
    }
  
    /* === RELATED PAGES BLOCK (internal linking) === */
    .related-pages {
      margin: 40px 0 24px;
      padding: 26px 28px;
      background: rgba(15, 20, 40, 0.5);
      border: 1px solid var(--border);
      border-radius: 14px;
    }
    .related-pages__title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin: 0 0 18px;
    }
    .related-pages__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    .related-pages__card {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 18px 20px;
      background: rgba(20, 26, 50, 0.55);
      border: 1px solid var(--border);
      border-radius: 12px;
      text-decoration: none;
      color: var(--text);
      transition: all 0.2s;
    }
    .related-pages__card:hover {
      background: rgba(30, 38, 70, 0.65);
      border-color: rgba(91, 111, 245, 0.45);
      transform: translateY(-2px);
    }
    .related-pages__card-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 4px;
    }
    .related-pages__card-title {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
    }
    .related-pages__card-desc {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.45;
      margin-top: 4px;
    }
    @media (max-width: 768px) {
      .related-pages__grid { grid-template-columns: 1fr; }
      .related-pages { padding: 22px; }
    }

  
