/*
Theme Name: 92Fun Games
Theme URI: https://92fun.games/
Author: 92Fun
Author URI: https://92fun.games/
Description: Full-width, responsive WordPress theme for 92Fun.games with editor-friendly layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ninetytwofun
*/

:root {
  --site-bg: #0f3d2d;
  --surface: #1a5a42;
  --text: #e7fff5;
  --muted: #5f6d67;
  --brand: #194c38;
  --brand-contrast: #ffffff;
  --border: #d8e1dc;
  --container: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--site-bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.site-header {
  background: linear-gradient(120deg, #143c2d, #1f5943);
  color: var(--brand-contrast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-logo,
.custom-logo {
  width: auto;
  height: 46px;
  max-width: 220px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.main-navigation a {
  color: var(--brand-contrast);
  font-weight: 600;
  opacity: 0.95;
}

.main-navigation a:hover,
.main-navigation a:focus {
  opacity: 1;
  text-decoration: none;
}

.site-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.home .site-header,
.ninetytwofun-lobby .site-header {
  display: none;
}

.content-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  background: linear-gradient(180deg, #16553d 0%, #124634 100%);
  color: #ddf9ec;
}

.card {
  background: rgba(16, 74, 53, 0.92);
  border: 1px solid rgba(180, 236, 212, 0.18);
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.mobile-lobby {
  background: linear-gradient(180deg, #196244 0%, #14543c 40%, #124732 100%);
  padding: 0.35rem 0.45rem 0.8rem;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.lobby-app-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #f0fff8;
}

.app-bonus-strip {
  border-radius: 8px;
  background: #2d7052;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.app-bonus-strip strong {
  color: #ffdb3f;
  margin-left: auto;
  font-size: 1.3rem;
}

.app-bonus-strip a {
  background: #ffcf26;
  color: #193126;
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  font-weight: 700;
}

.lobby-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
  border-bottom: 1px solid rgba(201, 241, 225, 0.22);
  padding-bottom: 0.3rem;
}

.lobby-brand-logo {
  width: clamp(150px, 20vw, 300px);
  height: auto;
}

.lobby-search-link {
  color: #d4fff1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lobby-search-link::before {
  content: "🔎";
  font-size: 0.9rem;
}

.lobby-banner {
  margin-top: 0.45rem;
  border-radius: 0;
  background: linear-gradient(90deg, #3a0707, #7c2500, #b35500);
  padding: 0.45rem 0.75rem;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 800;
  color: #ffc83b;
}

.lobby-dots {
  display: flex;
  justify-content: center;
  gap: 0.34rem;
  margin-top: 0.2rem;
}

.lobby-dots span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #d6ddd8;
}

.lobby-dots span.active {
  width: 0.9rem;
  background: #ffffff;
}

.lobby-notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #1b5a42;
  border-radius: 10px;
  margin-top: 0.45rem;
  padding: 0.5rem 0.7rem;
  color: #d1f3e5;
  justify-content: space-between;
}

.notice-mail {
  position: relative;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(214, 255, 241, 0.25);
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c6f3e4;
  text-decoration: none;
}

.notice-mail em {
  position: absolute;
  top: -0.36rem;
  right: -0.32rem;
  font-style: normal;
  background: #f5554c;
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  padding: 0.1rem 0.2rem;
}

.lobby-auth-row {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.lobby-btn {
  text-align: center;
  border-radius: 10px;
  padding: 0.5rem;
  font-weight: 700;
}

.lobby-btn-muted {
  background: #154433;
  color: #f0fff8;
  border: 1px solid #fbd545;
}

.lobby-btn-accent {
  background: #ffd93a;
  color: #183124;
  position: relative;
}

.lobby-btn-accent em {
  position: absolute;
  right: -0.2rem;
  top: -0.48rem;
  font-style: normal;
  font-size: 0.72rem;
  border-radius: 999px;
  background: #19d16a;
  color: #fff;
  padding: 0.13rem 0.36rem;
}

.lobby-actions {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}

.lobby-actions a {
  background: transparent;
  border-radius: 10px;
  color: #dcfff2;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.lobby-actions span {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.08rem;
  background: #1d6a4b;
  width: 1.95rem;
  height: 1.55rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lobby-actions em {
  display: inline-block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.64rem;
  line-height: 1;
  background: #18d067;
  color: #eafff2;
  border-radius: 999px;
  padding: 0.13rem 0.32rem;
}

.lobby-tabs {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid rgba(199, 245, 227, 0.35);
}

.lobby-tabs a {
  color: #d6f8ea;
  padding: 0.55rem 0.2rem;
  font-weight: 600;
}

.lobby-tabs a.active {
  color: #ffd73c;
  border-bottom: 2px solid #ffd73c;
}

.lobby-main-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.52rem;
  align-items: stretch;
}

.lobby-side-menu {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  height: 100%;
}

.lobby-side-menu a {
  background: linear-gradient(180deg, #1f6f50, #1a6146);
  color: #ddfff0;
  border-radius: 9px;
  text-align: center;
  padding: 0.53rem 0.3rem;
  font-size: 0.85rem;
  line-height: 1.2;
  display: flex;
  gap: 0.32rem;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 2.3rem;
}

.lobby-side-menu a:first-child {
  background: linear-gradient(180deg, #2a7f5d, #1d6a4d);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 54, 0.2);
}

.lobby-side-menu a span {
  font-size: 0.9rem;
}

.lobby-game-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-content: start;
}

.game-card {
  min-height: 84px;
  border-radius: 13px;
  display: flex;
  align-items: space-between;
  justify-content: center;
  flex-direction: column;
  padding: 0.22rem 0.22rem 0.3rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.4);
  background-image: url("assets/images/games-sprite-prototype.png");
  background-size: 300% 400%;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 1.32 / 1;
}

.game-card small {
  align-self: flex-start;
  font-size: 0.54rem;
  font-weight: 800;
  color: #fff5cd;
  border-radius: 999px;
  background: rgba(255, 162, 0, 0.95);
  padding: 0.14rem 0.36rem;
}

.game-card span {
  font-size: 0.58rem;
  margin-top: auto;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}

.game-card.g1 { background-position: 0% 0%; }
.game-card.g2 { background-position: 50% 0%; }
.game-card.g3 { background-position: 100% 0%; }
.game-card.g4 { background-position: 0% 33.33%; }
.game-card.g5 { background-position: 50% 33.33%; }
.game-card.g6 { background-position: 100% 33.33%; }
.game-card.g7 { background-position: 0% 66.66%; }
.game-card.g8 { background-position: 50% 66.66%; }
.game-card.g9 { background-position: 100% 66.66%; }
.game-card.g10 { background-position: 0% 100%; }
.game-card.g11 { background-position: 50% 100%; }
.game-card.g12 { background-position: 100% 100%; }

.lobby-bottom-nav {
  margin-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #1d694b;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-left: -0.45rem;
  margin-right: -0.45rem;
}

.lobby-bottom-nav a {
  color: #d6f8ea;
  text-align: center;
  padding: 0.44rem 0.15rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.lobby-bottom-nav a span {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 0.1rem;
}

.lobby-bottom-nav a.active {
  color: #ffd73c;
  font-weight: 700;
}

.lobby-fixed-actions {
  position: fixed;
  right: 0.15rem;
  bottom: 5.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 15;
}

.lobby-fixed-actions a {
  min-width: 4.8rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.lobby-fixed-actions .download {
  background: #2fb5ff;
  color: #fff;
}

.lobby-fixed-actions .offer {
  background: #28cc67;
  color: #fff;
}

.home-seo-content h2 {
  color: #d9ffef;
}

.entry-title {
  margin-top: 0;
  line-height: 1.3;
  color: #e9fff6;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content .wp-block-group.alignfull,
.entry-content .wp-block-cover.alignfull,
.entry-content .wp-block-image.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.site-footer {
  background: #103527;
  color: #e8f0ec;
}

.site-footer .content-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo,
  .custom-logo {
    height: 40px;
  }

  .content-wrap {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .lobby-fixed-actions {
    right: 0.3rem;
    bottom: 4.8rem;
  }

  .lobby-fixed-actions a {
    min-width: 4.2rem;
    height: 1.95rem;
    font-size: 0.74rem;
  }

  .lobby-main-grid {
    grid-template-columns: 96px 1fr;
    gap: 0.45rem;
  }

  .lobby-side-menu a {
    min-height: 2.1rem;
    font-size: 0.8rem;
  }

  .lobby-game-cards {
    gap: 0.42rem;
  }

  .game-card {
    min-height: 78px;
  }

  .game-card span {
    font-size: 0.5rem;
  }
}

@media (min-width: 900px) {
  .mobile-lobby {
    padding: 0.65rem 1rem 1rem;
  }

  .lobby-main-grid {
    grid-template-columns: 145px minmax(0, 900px);
    justify-content: center;
    gap: 0.72rem;
  }

  .lobby-side-menu a {
    justify-content: flex-start;
    padding-left: 0.62rem;
    font-size: 0.88rem;
    min-height: 2.5rem;
  }

  .lobby-game-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
  }

  .game-card {
    min-height: 106px;
  }

  .game-card span {
    font-size: 0.7rem;
  }

  .lobby-bottom-nav {
    margin-top: 1rem;
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .lobby-fixed-actions {
    right: 0.6rem;
    bottom: 6rem;
  }
}
