
    :root {
      --page-yy777-ph-m-home-primary-color: #ffcc00; /* Golden yellow */
      --page-yy777-ph-m-home-secondary-color: #333333; /* Dark grey */
      --page-yy777-ph-m-home-accent-color: #e60000; /* Red for emphasis */
      --page-yy777-ph-m-home-text-light: #ffffff;
      --page-yy777-ph-m-home-text-dark: #333333;
      --page-yy777-ph-m-home-background-dark: #1a1a1a;
      --page-yy777-ph-m-home-background-light: #f0f0f0;
    }

    .page-yy777-ph-m-home {
      font-family: 'Arial', sans-serif;
      line-height: 1.6;
      color: var(--page-yy777-ph-m-home-text-light);
      background-color: var(--page-yy777-ph-m-home-background-dark);
      padding-top: 10px; /* Small top padding, expecting body padding-top from shared.css */
      padding-bottom: 80px; /* Space for floating buttons */
    }

    .page-yy777-ph-m-home__hero-section {
      position: relative;
      width: 100%;
      height: 60vh;
      min-height: 300px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
      margin-bottom: 20px;
      background-color: var(--page-yy777-ph-m-home-background-dark);
    }

    .page-yy777-ph-m-home__hero-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.6;
      z-index: 1;
    }

    .page-yy777-ph-m-home__hero-content {
      position: relative;
      z-index: 2;
      padding: 20px;
      max-width: 90%;
      color: var(--page-yy777-ph-m-home-text-light);
      background: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
    }

    .page-yy777-ph-m-home__hero-title {
      font-size: 2.2em;
      margin-bottom: 10px;
      color: var(--page-yy777-ph-m-home-primary-color);
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .page-yy777-ph-m-home__hero-description {
      font-size: 1.1em;
      margin-bottom: 20px;
      color: var(--page-yy777-ph-m-home-text-light);
    }

    .page-yy777-ph-m-home__cta-button {
      display: inline-block;
      background-color: var(--page-yy777-ph-m-home-accent-color);
      color: var(--page-yy777-ph-m-home-text-light);
      padding: 12px 25px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.1em;
      transition: background-color 0.3s ease;
      border: none;
      cursor: pointer;
    }

    .page-yy777-ph-m-home__cta-button:hover {
      background-color: #cc0000;
    }

    .page-yy777-ph-m-home__floating-buttons {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-around;
      padding: 10px 0;
      background-color: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    }

    .page-yy777-ph-m-home__floating-button {
      flex: 1;
      margin: 0 5px;
      padding: 12px 0;
      border: none;
      border-radius: 5px;
      font-size: 1.1em;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-align: center;
      color: var(--page-yy777-ph-m-home-text-light);
    }

    .page-yy777-ph-m-home__floating-button--register {
      background-color: var(--page-yy777-ph-m-home-primary-color);
      color: var(--page-yy777-ph-m-home-text-dark);
    }

    .page-yy777-ph-m-home__floating-button--register:hover {
      background-color: #e6b800;
    }

    .page-yy777-ph-m-home__floating-button--login {
      background-color: var(--page-yy777-ph-m-home-secondary-color);
    }

    .page-yy777-ph-m-home__floating-button--login:hover {
      background-color: #4d4d4d;
    }

    .page-yy777-ph-m-home__section {
      padding: 30px 15px;
      margin-bottom: 20px;
      background-color: var(--page-yy777-ph-m-home-background-dark);
      border-radius: 8px;
    }

    .page-yy777-ph-m-home__section-title {
      text-align: center;
      font-size: 2em;
      margin-bottom: 25px;
      color: var(--page-yy777-ph-m-home-primary-color);
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .page-yy777-ph-m-home__section-description {
      text-align: center;
      font-size: 1.1em;
      margin-bottom: 30px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      color: var(--page-yy777-ph-m-home-text-light);
    }

    .page-yy777-ph-m-home__game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      justify-content: center;
    }

    .page-yy777-ph-m-home__game-card {
      background-color: #2a2a2a;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
      text-align: center;
      transition: transform 0.3s ease;
      max-width: 100%;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__game-card:hover {
      transform: translateY(-5px);
    }

    .page-yy777-ph-m-home__game-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      max-width: 100%;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__game-info {
      padding: 15px;
    }

    .page-yy777-ph-m-home__game-title {
      font-size: 1.3em;
      margin-bottom: 10px;
      color: var(--page-yy777-ph-m-home-primary-color);
    }

    .page-yy777-ph-m-home__game-description {
      font-size: 0.95em;
      color: #cccccc;
      margin-bottom: 15px;
    }

    .page-yy777-ph-m-home__promo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      justify-content: center;
    }

    .page-yy777-ph-m-home__promo-card {
      background-color: #2a2a2a;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
      transition: transform 0.3s ease;
      max-width: 100%;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__promo-card:hover {
      transform: translateY(-5px);
    }

    .page-yy777-ph-m-home__promo-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
      max-width: 100%;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__promo-content {
      padding: 15px;
    }

    .page-yy777-ph-m-home__promo-title {
      font-size: 1.4em;
      margin-bottom: 10px;
      color: var(--page-yy777-ph-m-home-primary-color);
    }

    .page-yy777-ph-m-home__promo-description {
      font-size: 0.95em;
      color: #cccccc;
      margin-bottom: 15px;
    }

    .page-yy777-ph-m-home__faq-section {
      background-color: var(--page-yy777-ph-m-home-background-dark);
      padding: 30px 15px;
      border-radius: 8px;
    }

    .page-yy777-ph-m-home__faq-item {
      background-color: #2a2a2a;
      margin-bottom: 10px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
      max-width: 100%;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background-color: #3a3a3a;
      color: var(--page-yy777-ph-m-home-text-light);
      cursor: pointer;
      user-select: none;
      font-size: 1.1em;
      font-weight: bold;
      transition: background-color 0.3s ease;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__faq-question:hover {
      background-color: #4a4a4a;
    }

    .page-yy777-ph-m-home__faq-question h3 {
      margin: 0;
      flex-grow: 1;
      color: var(--page-yy777-ph-m-home-primary-color);
      pointer-events: none; /* Prevents text from blocking click event */
      font-size: 1.1em; /* Ensure consistent font size */
    }

    .page-yy777-ph-m-home__faq-toggle {
      font-size: 1.5em;
      line-height: 1;
      margin-left: 15px;
      color: var(--page-yy777-ph-m-home-primary-color);
      pointer-events: none; /* Prevents icon from blocking click event */
    }

    .page-yy777-ph-m-home__faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 15px; /* Initial padding */
      opacity: 0;
      color: #cccccc;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__faq-item.active .page-yy777-ph-m-home__faq-answer {
      max-height: 2000px !important; /* Sufficiently large to accommodate content */
      padding: 20px 15px !important; /* Expanded padding */
      opacity: 1;
    }

    .page-yy777-ph-m-home__faq-item.active .page-yy777-ph-m-home__faq-toggle {
      content: '−'; /* Change to minus sign */
    }

    .page-yy777-ph-m-home__payment-methods {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      padding: 20px 0;
    }

    .page-yy777-ph-m-home__payment-item {
      background-color: #2a2a2a;
      border-radius: 8px;
      padding: 10px 15px;
      text-align: center;
      color: var(--page-yy777-ph-m-home-text-light);
      font-size: 0.9em;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      flex: 0 0 auto; /* Prevent stretching */
      max-width: 150px; /* Limit width */
      box-sizing: border-box;
      word-wrap: break-word; /* Ensure text wraps */
      overflow-wrap: break-word;
    }

    .page-yy777-ph-m-home__payment-item img {
      max-width: 100px; /* Adjust as needed for payment logos */
      height: auto;
      margin-bottom: 5px;
      max-height: 40px;
      display: block;
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
    }

    /* Responsive Design for Mobile */
    @media (max-width: 768px) {
      .page-yy777-ph-m-home__hero-title {
        font-size: 1.8em;
      }

      .page-yy777-ph-m-home__hero-description {
        font-size: 1em;
      }

      .page-yy777-ph-m-home__section-title {
        font-size: 1.8em;
      }

      .page-yy777-ph-m-home__section-description {
        font-size: 1em;
      }

      .page-yy777-ph-m-home__game-grid,
      .page-yy777-ph-m-home__promo-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
      }

      .page-yy777-ph-m-home__game-card,
      .page-yy777-ph-m-home__promo-card,
      .page-yy777-ph-m-home__faq-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
      }

      .page-yy777-ph-m-home__payment-methods {
        padding: 15px 0;
      }

      .page-yy777-ph-m-home__payment-item {
        flex: 1 1 45%; /* Two items per row */
        max-width: 48%;
        padding: 8px 10px;
        font-size: 0.85em;
      }

      .page-yy777-ph-m-home__floating-buttons {
        padding: 8px 0;
      }

      .page-yy777-ph-m-home__floating-button {
        padding: 10px 0;
        font-size: 1em;
      }

      .page-yy777-ph-m-home__game-image,
      .page-yy777-ph-m-home__promo-image {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
      }
    }
  