/* Player v3.10.119 — clean gaming hierarchy over the approved red/gold theme. */
:root {
  --gf-surface: rgba(16, 13, 13, .92);
  --gf-surface-soft: rgba(27, 21, 20, .88);
  --gf-border: rgba(231, 195, 91, .22);
  --gf-gold: #e7c35b;
  --gf-gold-strong: #f4d978;
  --gf-text: #fff6dd;
  --gf-muted: #b9aa83;
  --gf-success: #43c982;
  --gf-danger: #ef6464;
  --gf-warning: #e9ad48;
  --gf-info: #63a9e8;
  --gf-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

/* Restrained depth: preserve the brand colors without neon halos. */
.button,
.icon-button,
.nav-button,
.mobile-bottom-nav-button,
.lobby-category-button,
.featured-game-card,
.compact-game-card,
.panel,
.stat-card,
.notification-panel,
.modal-card,
.ui-dialog-card,
.game-logo,
.type-btn,
.mode-btn,
.ball,
.outline-btn,
.place-btn,
.side-tab,
.wallet-btn,
.menu {
  text-shadow: none !important;
}

.featured-game-card,
.compact-game-card,
.panel,
.stat-card,
.manual-card,
.keyin-card,
.summary-card,
.side-panel,
.modal-card,
.ui-dialog-card,
.notification-panel {
  box-shadow: var(--gf-shadow) !important;
}

.button.button-primary,
.nav-button.active,
.lobby-category-button.active,
.game-logo.active,
.type-btn.active,
.mode-btn.active,
.ball.selected,
.place-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 7px 16px rgba(0, 0, 0, .24) !important;
}

.featured-game-card:hover:not(:disabled),
.compact-game-card:hover:not(:disabled) {
  box-shadow: 0 15px 32px rgba(0, 0, 0, .32) !important;
}

.featured-game-content h3,
.compact-game-copy strong,
.game-brand-logo,
.header-brand-mark img,
.brand-mark img {
  text-shadow: none !important;
  filter: none !important;
}

/* Clear hierarchy and readable numeric information. */
#gamesWalletAmount,
#overviewBalance,
.stat-value,
.countdown,
.wallet-box strong,
.summary-line strong,
.total-chip strong,
.lobby-result-number,
td,
time {
  font-variant-numeric: tabular-nums lining-nums;
}

#gamesWalletAmount {
  font-size: clamp(1.25rem, 2vw, 2rem) !important;
  line-height: 1.05;
}

.game-section-heading h2,
.page-heading h1 {
  color: var(--gf-text) !important;
  letter-spacing: -.02em;
}

.muted,
.muted-text,
.game-section-kicker,
.compact-game-copy span,
.player-footer-main p,
.player-footer-brand span {
  color: var(--gf-muted) !important;
}

.status.success,
.success-text { color: var(--gf-success) !important; }
.status.error,
.error-text { color: var(--gf-danger) !important; }
.status.pending,
.warning-text { color: var(--gf-warning) !important; }
.status.info,
.info-text { color: var(--gf-info) !important; }

button,
.button,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  min-height: 46px;
}

button:focus-visible,
.button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 217, 120, .72) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

button:disabled,
.button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: .58 !important;
  transform: none !important;
  box-shadow: none !important;
}

[aria-busy="true"],
.loading,
.game-lobby-empty {
  cursor: progress;
}

/* Consistent game-card geometry and unmistakable actions. */
#featuredGamesGrid .featured-game-card {
  min-height: clamp(220px, 31vw, 340px) !important;
  border-radius: 16px !important;
}

#featuredGamesGrid .featured-game-content {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  min-height: inherit;
}

#featuredGamesGrid .featured-game-content h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem) !important;
}

#featuredGamesGrid .featured-game-content .button {
  min-width: 112px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid {
  align-items: stretch;
}

#gameLobby .compact-game-card {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(112px, 1fr) auto auto;
  min-height: 218px;
  height: 100%;
  overflow: hidden;
  border-radius: 14px !important;
  text-align: left;
}

#gameLobby .compact-game-media {
  min-height: 112px;
}

#gameLobby .compact-game-copy {
  min-width: 0;
  align-self: end;
}

#gameLobby .compact-game-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem !important;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#gameLobby .compact-game-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gameLobby .compact-game-card::after {
  content: "Play";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 10px 10px;
  color: #241806;
  background: linear-gradient(180deg, var(--gf-gold-strong), #c99728);
  border: 1px solid rgba(255, 240, 184, .4);
  border-radius: 10px;
  font-weight: 800;
}

#gameLobby .compact-game-card:disabled::after {
  content: "Unavailable";
  color: #c5b995;
  background: #302b22;
  border-color: rgba(231, 195, 91, .12);
}

/* Semantic footer: useful information, real portal destinations, no fake links. */
.player-site-footer {
  width: 100%;
  margin-top: auto;
  padding: 24px clamp(16px, 3vw, 34px) 18px;
  color: var(--gf-text);
  background: rgba(8, 7, 7, .94);
  border-top: 1px solid var(--gf-border);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .18);
}

.player-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(150px, .8fr)) minmax(240px, 1.2fr);
  gap: clamp(20px, 3vw, 38px);
  max-width: 1440px;
  margin: 0 auto;
}

.player-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.player-footer-brand img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
}

.player-footer-brand div,
.player-footer-group,
.player-footer-trust {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.player-footer-brand strong,
.player-footer-group > strong,
.player-footer-trust > strong {
  color: var(--gf-gold-strong);
  font-size: .98rem;
  line-height: 1.3;
}

.player-footer-brand span,
.player-footer-trust p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
}

.player-footer-links {
  display: grid;
  gap: 2px;
}

.player-site-footer .player-footer-link.nav-button {
  justify-content: flex-start !important;
  width: max-content !important;
  max-width: 100%;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 0 !important;
  color: #d8cba6 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: .86rem;
  text-align: left;
}

.player-site-footer .player-footer-link:hover,
.player-site-footer .player-footer-link.active {
  color: var(--gf-gold-strong) !important;
  background: transparent !important;
  transform: translateX(3px);
}

.player-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 20px auto 0;
  padding-top: 14px;
  color: #8f8467;
  border-top: 1px solid rgba(231, 195, 91, .12);
  font-size: .76rem;
  line-height: 1.5;
}

.portal.game-active .player-site-footer {
  display: none;
}

@media (max-width: 1050px) {
  .player-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  button,
  .button,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    min-height: 46px;
  }

  #featuredGamesGrid .featured-game-card {
    min-height: 210px !important;
  }

  #gameLobby .compact-game-card {
    grid-template-rows: minmax(96px, 1fr) auto auto;
    min-height: 200px;
  }

  #gameLobby .compact-game-media {
    min-height: 96px;
  }

  .player-site-footer {
    padding: 22px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .player-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: 1 / -1;
  }

  .player-footer-brand img {
    width: 48px;
    height: 48px;
  }

  .player-site-footer .player-footer-link.nav-button {
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 0 !important;
  }

  .player-footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

}

@media (max-width: 390px) {
  .player-footer-main {
    grid-template-columns: 1fr;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-site-footer .player-footer-link {
    transition: none !important;
    transform: none !important;
  }
}
