/* ================================================================
   usgamehub — Styles
   Dark theme, mobile-first phone-width layout, Poppins + Barlow
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

:root {
  --background-body: #02030B;
  --background-content: #0B0D18;
  --text-primary: #9BA4B5;
  --text-secondary: #6B7685;
  --border-color: #1E2235;
  --card-background: #111425;
  --accent-color: #3460ff;
  --heading-color: #ffffff;
  --green: #10B981;
}

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

html,
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background-color: var(--background-body);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231E2235' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------
   Container — phone-width centered
   -------------------------------- */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--background-content);
  position: relative;
  z-index: 1;
  padding: 0 10px 20px 10px;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .container {
    max-width: 398px;
    padding: 0 14px 20px 14px;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
  }
}

/* ================================
   BRAND LOGO HEADER
   Logo icon next to usgamehub text
   ================================ */
.brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 5px 0;
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-style: italic;
  padding-right: 8px;
  /* Prevents the slanted last letter 'B' from getting cut off */

  /* Gradient text styling */
  background: linear-gradient(90deg, #FF4B4B 0%, #3460FF 55%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Drop shadow glow */
  filter: drop-shadow(0 0 6px rgba(52, 96, 255, 0.35));
}

.brand-logo-text span {
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  -webkit-text-fill-color: inherit;
}


/* ================================
   REWARD SECTION
   ================================ */
.reward-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 24px;
  margin: 10px 0;
  border-radius: 22px;
  border: 1px solid var(--border-color);
}

.coin-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  padding: 8px 16px 8px 10px;
  border-radius: 25px;
  width: 131px;
}

.coin-svg {
  flex-shrink: 0;
  animation: coinSpin 3s ease-in-out infinite;
}

@keyframes coinSpin {

  0%,
  100% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }
}

.coin-balance {
  font-weight: 800;
  font-size: 17px;
  color: var(--heading-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Earn Coins Button */
.earn-coins-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 60px;
  width: 324px;
  max-width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.earn-coins-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.earn-coins-btn:hover::before {
  left: 100%;
}

.earn-coins-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 96, 255, 0.4);
}

.earn-coins-btn:active {
  transform: translateY(0);
}

.earn-coins-btn:disabled {
  background: #1C1F37;
  color: #5B637B;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ad-label {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: lowercase;
  pointer-events: none;
}

.ad-icon {
  flex-shrink: 0;
}

.btn-icon {
  font-size: 1rem;
}

.btn-text {
  font-weight: 600;
}

/* ================================
   CATEGORY CARD
   ================================ */
.card1 {
  margin: auto;
  text-align: center;
  margin-top: 20px !important;
  transition: all 0.3s ease;
}

.card-body {
  padding: 10px 0 !important;
}

.card-title {
  color: #8c90aa;
  font-size: 13px !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  margin-block-start: unset !important;
  margin-bottom: 0 !important;
}

.title {
  margin-bottom: 0 !important;
}

.btn-wrapper {
  margin-top: 18px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.btn-wrapper::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.btn-wrapper.is-scrollable {
  justify-content: flex-start;
  padding-left: 45px;
  padding-right: 45px;
}

.btn1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9ccd8;
  padding: 8px 18px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 14px;
  font-weight: 600;
  height: 38px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.btn1 .icon {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  transition: all 0.3s ease;
}

.btn1:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.btn1:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

.btn1.active {
  background: linear-gradient(135deg, #ff9f43 0%, #ff5252 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.35);
}

.btn1.active .icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ================================
   BUTTONS (general)
   ================================ */
.btn {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
}

.btn:hover {
  background-color: #2a50e0;
  border-color: #2a50e0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* ================================
   GAMES GRID
   ================================ */
.all-games-section {
  text-align: center;
  margin-top: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

/* ================================
   GAME CARD
   ================================ */
.game-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-item:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 96, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(52, 96, 255, 0.12);
}

.game-item:active {
  transform: translateY(0);
}

.game-item img {
  width: calc(100% - 16px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 6px;
  border-radius: 10px !important;
  object-fit: cover;
  border: none;
  background-color: #1E2235;
  display: block;
}

.game-item h3 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 13px;
  margin: 0 8px 4px 8px;
  color: var(--heading-color);
  line-height: 1.25;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  max-height: 32px;
  word-break: break-word;
}

/* User Count */
.game-item .user-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green);
  margin: 0 6px 3px 6px;
  font-weight: 500;
  white-space: nowrap;
}

.game-item .user-count::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Coin cost text */
.game-item .coin-cost-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--heading-color);
  font-weight: 500;
  margin-bottom: 6px;
  padding: 0 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.coin-span {
  display: flex;
  align-items: center;
}

.coin1 {
  margin: 0px !important;
}

/* Play Button */
.play-now-btn {
  background-color: var(--accent-color);
  color: white;
  font-weight: 700;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.5px;
  width: calc(100% - 16px);
  max-width: 140px;
  height: 38px;
  min-height: 38px;
  display: flex;
  justify-content: center;
  margin: auto auto 8px auto;
  align-items: center;
  border-radius: 19px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(52, 96, 255, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.play-now-btn:hover {
  background-color: #244ee8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(52, 96, 255, 0.4);
}

.play-now-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ================================
   IN-GRID AD CARD (Every 4 games)
   ================================ */
.ad-card-item {
  background: linear-gradient(160deg, #12162a 0%, #1a1b38 100%);
  border: 1px solid rgba(81, 112, 255, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.ad-card-item:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
}

.ad-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #000;
  background: #FFD700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.ad-card-media {
  width: calc(100% - 16px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 6px;
  border-radius: 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-card-media::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 65%);
  animation: adMediaSpin 9s linear infinite;
  pointer-events: none;
}

@keyframes adMediaSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ad-card-icon {
  font-size: 28px;
  margin-bottom: 4px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-card-item:hover .ad-card-icon {
  transform: scale(1.18) rotate(6deg);
}

.ad-card-tag {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.ad-reward-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: #FFD700;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 1px 7px;
  margin: 0 auto 3px;
  letter-spacing: 0.2px;
}

.ad-card-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3) !important;
  width: calc(100% - 16px);
  max-width: 140px;
  height: 38px;
  min-height: 38px;
  margin: auto auto 8px auto;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ad-card-btn:hover {
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.5) !important;
  transform: translateY(-1px);
}


/* More Games Button */
.more-button-container {
  text-align: center;
  margin-bottom: 30px;
}

.more-btn {
  width: 100%;
}

/* ================================
   COIN MODAL (Not Enough Coins)
   ================================ */
.coin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.coin-modal-content {
  background: linear-gradient(135deg, #18192d 0%, #0e0f1d 100%);
  padding: 24px 20px 20px;
  border-radius: 24px;
  text-align: center;
  max-width: 350px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(81, 112, 255, 0.15);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
}

.modal-coin-illustration {
  margin: 15px auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-coin-svg {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(255, 215, 0, 0.35));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(8deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 20;
}

.modal-close-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px var(--accent-color);
}

.modal-close-btn svg {
  width: 14px;
  height: 14px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.coin-modal-content p {
  margin: 8px 0;
  color: #c9ccd8;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.coin-modal-content b {
  display: block;
  margin: 12px 0 16px;
  font-size: 1rem;
  color: #ffbe3b;
  font-weight: 600;
}

.coin-modal-content .modal-earn-btn {
  margin: 15px 0 12px 0;
  width: 100%;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff9f43 0%, #ff5252 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.coin-modal-content .modal-earn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 82, 82, 0.6);
  background: linear-gradient(135deg, #ffb366 0%, #ff6666 100%);
}

.coin-modal-content .modal-earn-btn:active {
  transform: translateY(1px);
}

.coin-modal-content .modal-earn-btn .ad-label {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.coin-modal-content .modal-earn-btn .btn-icon {
  font-size: 1.1rem;
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: #4e526d;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.modal-divider span {
  padding: 0 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.skip-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: transparent;
  color: #8c90aa;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  margin: 0 auto;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
}

.skip-ad-btn:hover {
  color: #fff;
  transform: scale(1.05);
}

/* ================================
   LEGAL MODAL
   ================================ */
.legal-modal-content {
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

.legal-title {
  font-size: 1.2rem !important;
  color: var(--accent-color) !important;
  text-shadow: none !important;
  transform: none !important;
  top: 0 !important;
  margin-bottom: 10px !important;
  letter-spacing: 0 !important;
}

.legal-body {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.legal-body h4 {
  font-size: 0.95rem;
  color: var(--heading-color);
  margin: 14px 0 6px;
}

.legal-body p {
  margin-bottom: 10px;
  text-align: left !important;
}

/* ================================
   ABOUT SECTION
   ================================ */
.what-is-section {
  text-align: center;
  margin-top: 20px;
}

.what-is-section h2 {
  margin-block-start: unset;
  font-size: 1.3em;
  margin-bottom: 4px;
  color: var(--heading-color);
  display: inline-block;
}

.what-is-section p {
  text-align: left;
  font-size: 0.9em;
  line-height: 1.6;
  color: #797D87;
  margin-bottom: 15px;
}

/* ================================
   FOOTER
   ================================ */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

footer .btn {
  padding: 8px 15px;
  font-size: 0.85em;
}

/* ================================
   NOTIFICATION
   ================================ */
.notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
}

.notification {
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  color: #fff;
}

.notification-success {
  background: #4CAF50;
}

.notification-warning {
  background: #FF9800;
}

.notification-error {
  background: #f44336;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #3D4263;
  border-radius: 2px;
}

/* ================================
   PLAY GAME MODAL & VIEWPORT SYSTEM
   ================================ */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.game-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #000000;
}

/* Compact Mobile Game Header Bar */
.game-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  min-height: 48px;
  background: #0d111e;
  border-bottom: 1px solid #1e2235;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  flex-shrink: 0;
  z-index: 20;
  box-sizing: content-box;
}

.game-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.game-live-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.game-live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #10B981;
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.game-header-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.game-header-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.game-header-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.game-header-btn:active {
  transform: scale(0.95);
}

.game-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

/* Viewport Container */
.game-viewport-container {
  flex: 1;
  width: 100%;
  height: calc(100% - 48px);
  position: relative;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-iframe-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000000;
  max-width: 100%;
  max-height: 100%;
}

/* Game Loading Overlay */
.game-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060814;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.game-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.game-loading-thumb-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
}

.loading-game-thumb {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(52, 96, 255, 0.3);
}

.loading-spinner-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 3px solid transparent;
  border-top-color: var(--accent-color);
  border-right-color: #7c4dff;
  border-radius: 24px;
  animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-game-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.loading-status-text {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.loading-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.loading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3460ff 0%, #7c4dff 50%, #00e5ff 100%);
  border-radius: 4px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 10px rgba(52, 96, 255, 0.5);
}

.loading-percentage {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #3460ff;
  letter-spacing: 0.5px;
}

.loading-slow-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #ffbe3b;
  animation: fadeIn 0.4s ease;
  line-height: 1.4;
}

/* Friendly Error Overlay */
.game-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 20, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.game-error-card {
  background: linear-gradient(135deg, #181b32 0%, #0e1022 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 30px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.15);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.error-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.error-subtext {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.error-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-btn-primary {
  background: linear-gradient(135deg, #3460ff 0%, #7c4dff 100%);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(52, 96, 255, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.error-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 96, 255, 0.6);
}

.error-btn-primary:active {
  transform: translateY(0);
}

.error-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c9ccd8;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.error-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Pseudo Fullscreen for iOS Safari */
.game-modal.pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
}

/* ================================
   BRAND LOGO STYLES
   ================================ */
.brand-logo-container {
  text-align: center;
  padding: 12px 0 8px;
}

.brand-logo-img {
  height: 55px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

/* ================================================================
   PORTAL LAYOUT (more-games.html)
   ================================================================ */
.portal-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--background-content);
  position: relative;
  z-index: 1;
  padding: 0 10px 20px 10px;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .portal-container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (min-width: 768px) {
  .portal-container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

/* Navbar */
.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.portal-nav-left {
  display: flex;
  align-items: center;
}

.portal-logo {
  height: 46px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.portal-logo:hover {
  transform: scale(1.05);
}

.portal-nav-middle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-nav-middle .nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.portal-nav-middle .nav-link:hover {
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.06);
}

.portal-nav-middle .nav-link.active {
  color: #ffffff !important;
  background: var(--accent-color);
  box-shadow: 0 2px 10px rgba(52, 96, 255, 0.35);
  font-weight: 700;
}

.portal-nav-right {
  display: flex;
  align-items: center;
}

/* Search Box */
.search-box {
  position: relative;
  width: 220px;
  max-width: 100%;
}

.search-box input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--heading-color);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(52, 96, 255, 0.2);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

/* Wide Grid — strictly 2 columns on mobile */
.portal-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 40px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .portal-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .portal-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .portal-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
  }
}

/* Footer columns */
.portal-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

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

.footer-col h3 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 0.5px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  width: fit-content;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.portal-footer-bottom {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .portal-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .search-box {
    width: 100%;
  }
}

/* ================================
   SELECTION
   ================================ */
::selection {
  background: rgba(52, 96, 255, 0.2);
  color: var(--heading-color);
}

/* ================================
   AD CONTAINER STYLES
   User-friendly, dark-theme ad zones
   ================================ */

/* Base ad container */
.ad-container {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 16px auto;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-container:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(52, 96, 255, 0.05);
}

/* Ad badge label */
.ad-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

/* Ad placeholder (demo content — remove when real ads added) */
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ad-placeholder-leaderboard {
  height: 90px;
  min-height: 90px;
}

.ad-placeholder-native {
  height: 250px;
  min-height: 250px;
}

.ad-placeholder-sidebar {
  height: 600px;
  min-height: 300px;
}

.ad-demo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  user-select: none;
}

.ad-demo-content svg {
  color: rgba(255, 255, 255, 0.15);
}

.ad-demo-vertical {
  flex-direction: column;
  gap: 6px;
}

/* Leaderboard top banner */
.ad-leaderboard {
  margin: 12px auto 4px;
}

/* Native mid-content ad */
.ad-native {
  margin: 20px auto;
  max-width: 400px;
}

/* Pre-footer banner */
.ad-prefooter {
  margin: 20px auto 12px;
}

/* Sidebar ad container */
.ad-sidebar {
  position: relative;
  min-width: 180px;
  max-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s ease;
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

.ad-sidebar:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Content + sidebar layout */
.content-with-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}

.content-with-sidebar .what-is-section {
  flex: 1;
  margin-top: 0;
}

/* Hide sidebar on small screens */
@media (max-width: 900px) {
  .content-with-sidebar {
    flex-direction: column;
  }

  .ad-sidebar {
    display: none;
  }
}

/* Responsive ad sizing */
@media (max-width: 768px) {
  .ad-container {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px auto;
  }

  .ad-placeholder-leaderboard {
    height: 60px;
    min-height: 60px;
  }

  .ad-placeholder-native {
    height: 200px;
    min-height: 200px;
  }

  .ad-native {
    max-width: 100%;
  }
}

/* Subtle breathing animation for ad containers */
@keyframes adPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.06);
  }

  50% {
    border-color: rgba(52, 96, 255, 0.12);
  }
}

.ad-container,
.ad-sidebar {
  animation: adPulse 6s ease-in-out infinite;
}

/* ================================
   INTERSTITIAL AD OVERLAY
   Pre-game ad with countdown
   ================================ */

.interstitial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(2, 3, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.interstitial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(400px, calc(100vw - 24px));
  width: 90%;
  box-sizing: border-box;
}

.interstitial-ad-area {
  width: min(300px, calc(100vw - 36px));
  max-width: 300px;
  height: 250px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.interstitial-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.interstitial-progress-bar {
  width: min(260px, 100%);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.interstitial-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3460ff, #7c4dff);
  border-radius: 3px;
  transition: width 3s linear;
}

.interstitial-countdown {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

.interstitial-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.interstitial-skip-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ================================
   DEDICATED CONTENT PAGE STYLES
   ================================ */

.content-page-header {
  padding: 40px 0 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.content-page-header h1 {
  font-size: 32px;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--heading-color);
}

.info-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.info-card h2 {
  font-size: 22px;
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.info-card p {
  line-height: 1.7;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.info-card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.info-card li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 14px;
}

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--heading-color);
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(52, 96, 255, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent-color), #7c4dff);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 96, 255, 0.3);
}

/* Trending Game List */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.rank-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  color: var(--heading-color);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 14px;
}

.rank-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-1 .rank-badge {
  background: #FFD700;
  color: #000;
}

.rank-2 .rank-badge {
  background: #C0C0C0;
  color: #000;
}

.rank-3 .rank-badge {
  background: #CD7F32;
  color: #000;
}

/* News / Releases List */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 13px;
  color: var(--accent-color);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  min-width: 90px;
}

.news-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--heading-color);
}

.news-content p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-3px);
}

.partner-card h3 {
  margin-top: 0;
  color: var(--heading-color);
}

/* ================================
   SKYSCRAPER AD SIDEBARS
   Sticky left & right vertical ad containers
   ================================ */

.skyscraper-layout-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.portal-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.skyscraper-layout-wrapper .portal-container,
.skyscraper-layout-wrapper .container {
  flex: 1;
  margin: 0 auto;
}

.ad-skyscraper {
  position: sticky;
  top: 20px;
  width: 180px;
  min-width: 180px;
  height: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
  box-sizing: border-box;
  animation: adPulse 6s ease-in-out infinite;
}

.ad-placeholder-skyscraper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide skyscraper sidebars on viewports smaller than 1200px to prevent layout squeezing */
@media (max-width: 1200px) {

  .ad-skyscraper-left,
  .ad-skyscraper-right,
  .ad-skyscraper {
    display: none !important;
  }
}

/* Category Slider Container */
.category-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.category-slider-container .btn-wrapper {
  flex: 1;
  margin-top: 0;
  padding: 10px 0;
}

/* Slider Arrow Buttons */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  opacity: 0;
  pointer-events: none;
  background: rgba(14, 15, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9ccd8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  z-index: 10;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Show arrows only when has-scroll class is added */
.category-slider-container.has-scroll .slider-arrow-btn {
  display: flex;
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  /* Keep vertical transform centering */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.slider-arrow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow-btn.prev-btn {
  left: 5px;
}

.slider-arrow-btn.next-btn {
  right: 5px;
}

/* Categories Dropdown */
.categories-dropdown-container {
  position: relative;
  margin: 25px auto 10px;
  max-width: 280px;
  width: 100%;
  text-align: center;
  z-index: 99;
}

.categories-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(24, 25, 45, 0.75) 0%, rgba(14, 15, 29, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: inherit;
}

.categories-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.categories-dropdown-btn.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.25);
}

.dropdown-main-icon {
  margin-right: 10px;
  color: #ff9f43;
  flex-shrink: 0;
}

.dropdown-btn-text {
  flex: 1;
  text-align: left;
}

.dropdown-chevron {
  transition: transform 0.3s ease;
  color: #8c90aa;
}

.categories-dropdown-btn.active .dropdown-chevron {
  transform: rotate(180deg);
  color: #fff;
}

/* Dropdown Menu */
.categories-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #18192d 0%, #0e0f1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(81, 112, 255, 0.1);
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 8px;
  box-sizing: border-box;
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.categories-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.categories-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.categories-dropdown-menu.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Dropdown Items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #c9ccd8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 18px;
}

.dropdown-item svg {
  color: #8c90aa;
  transition: color 0.25s ease;
}

.dropdown-item:hover svg {
  color: #ff5e62;
}

/* Category Page Section Title */
.category-page-title {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.category-page-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #ff9f43, #ff5252);
  border-radius: 2px;
}

/* Active Dropdown Item */
.dropdown-item.active {
  background: rgba(255, 82, 82, 0.12) !important;
  color: #ff5252 !important;
}

.dropdown-item.active svg {
  color: #ff5252 !important;
}

/* --------------------------------
   Screen Reader Only (sr-only)
   -------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------
   Reward Zone Section
   -------------------------------- */
.reward-zone-section {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 10px;
}

.reward-zone-card {
  background: linear-gradient(135deg, #111425 0%, #171c35 100%);
  border: 1.5px solid rgba(52, 96, 255, 0.2);
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reward-zone-card:hover {
  border-color: rgba(52, 96, 255, 0.45);
  box-shadow: 0 8px 32px rgba(52, 96, 255, 0.08);
}

.reward-zone-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reward-icon-wrapper {
  background: rgba(255, 215, 0, 0.1);
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 215, 0, 0.3);
  animation: pulseGold 2s infinite ease-in-out;
}

.reward-coin-gold {
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
}

.reward-text-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.reward-text-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.reward-action-wrapper {
  flex-shrink: 0;
}

.reward-zone-card .earn-coins-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.reward-zone-card .earn-coins-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.45) !important;
}

.reward-zone-card .earn-coins-btn:active {
  transform: translateY(0) !important;
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.2);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(255, 215, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .reward-zone-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .reward-zone-content {
    flex-direction: column;
    gap: 12px;
  }

  .reward-action-wrapper {
    width: 100%;
  }

  .reward-zone-card .earn-coins-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------
   Creative About Us Section
   -------------------------------- */
.about-creative-section {
  margin-top: 40px;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
}

.about-header {
  text-align: center;
  margin-bottom: 30px;
}

.about-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.about-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.about-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.about-card.intro-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-card.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), #7c3aed);
}

.about-card.intro-card h3 {
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.about-card.intro-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.about-card.intro-card p:last-child {
  margin-bottom: 0;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
}

.feature-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 96, 255, 0.3);
  box-shadow: 0 4px 20px rgba(52, 96, 255, 0.05);
}

.feature-item-icon {
  background: rgba(52, 96, 255, 0.1);
  color: var(--accent-color);
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item-content h4 {
  font-size: 15px;
  color: var(--heading-color);
  margin-bottom: 6px;
  font-weight: 600;
}

.feature-item-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------
   FAQ Section (AEO)
   -------------------------------- */
.faq-section {
  margin-top: 40px;
  padding: 35px 0 20px;
  border-top: 1px solid var(--border-color);
}

.faq-header {
  text-align: center;
  margin-bottom: 28px;
}

.faq-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.faq-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.faq-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(52, 96, 255, 0.35);
  box-shadow: 0 0 20px rgba(52, 96, 255, 0.08);
}

.faq-item[open] {
  border-color: rgba(52, 96, 255, 0.4);
  box-shadow: 0 4px 24px rgba(52, 96, 255, 0.1);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-item summary:hover {
  background: rgba(52, 96, 255, 0.04);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Left icon */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(52, 96, 255, 0.1);
  border-radius: 10px;
  color: var(--accent-color);
  transition: background 0.3s ease, transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  background: rgba(52, 96, 255, 0.18);
  transform: scale(1.05);
}

.faq-item:hover .faq-icon {
  background: rgba(52, 96, 255, 0.15);
}

/* Question text */
.faq-question-text {
  flex: 1;
  line-height: 1.4;
}

/* Chevron toggle */
.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  background: rgba(52, 96, 255, 0.12);
  color: var(--accent-color);
}

/* Answer area */
.faq-answer {
  padding: 0 22px 20px 74px;
  animation: faqFadeIn 0.3s ease;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid rgba(52, 96, 255, 0.3);
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .faq-header h2 {
    font-size: 20px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    gap: 10px;
  }

  .faq-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
  }

  .faq-icon svg {
    width: 17px;
    height: 17px;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .faq-answer {
    padding: 0 16px 16px 60px;
  }

  .faq-answer p {
    padding-left: 12px;
    font-size: 13px;
  }
}