/* =========================
   TOP NAVBAR
   ========================= */

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background:
    linear-gradient(180deg, #1a1d22 0%, #121418 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.top-navbar__inner {
  width: min(100% - 24px, 1200px);
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo */
.top-navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-navbar__logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(255, 190, 0, 0.18);
}

.top-navbar__logo-text {
  font-family: var(--font-gaming);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
}

.top-navbar__logo-text span {
  color: var(--accent);
}

/* Buttons */
.top-navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  min-width: 92px;
  min-height: 42px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.25px;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn--login {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(0, 200, 83, 0.72);
}

.nav-btn--login:hover {
  color: #ffffff;
  background: rgba(0, 200, 83, 0.12);
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.08);
}

.nav-btn--register {
  color: #ffffff;
  background: var(--success);
  border: 1px solid var(--success);
}

.nav-btn--register:hover {
  background: #00b94d;
  border-color: #00b94d;
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.22);
}

/* Tablet / Mobile */
@media (max-width: 560px) {
  .top-navbar__inner {
    width: min(100% - 16px, 1200px);
    min-height: 66px;
    gap: 10px;
  }

  .top-navbar__logo {
    gap: 7px;
  }

  .top-navbar__logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .top-navbar__logo-text {
    font-size: 1rem;
  }

  .top-navbar__actions {
    gap: 6px;
  }

  .nav-btn {
    min-width: 72px;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.88rem;
    border-radius: 6px;
  }
}

/* Very Small Screens: 270px+ */
@media (max-width: 340px) {
  .top-navbar__inner {
    width: calc(100% - 12px);
    min-height: 60px;
    gap: 6px;
  }

  .top-navbar__logo-mark {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .top-navbar__logo-text {
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  /* .top-navbar__actions {
    gap: 4px;
  }

  .nav-btn {
    min-width: 58px;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.72rem;
  } */
}

/* =========================
   BOTTOM NAVIGATION
   ========================= */

:root {
  --bottom-nav-height: 72px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, #181b20 0%, #101216 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

.bottom-nav__inner {
  width: min(100%, 760px);
  min-height: var(--bottom-nav-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.bottom-nav__item {
  position: relative;
  min-width: 0;
  min-height: var(--bottom-nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8c929d;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

/* small active indicator */
.bottom-nav__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.bottom-nav__icon {
  display: grid;
  place-items: center;
  min-height: 23px;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    transform var(--transition),
    filter var(--transition);
}

.bottom-nav__text {
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover / keyboard */
.bottom-nav__item:hover,
.bottom-nav__item:focus-visible {
  color: #d7d9de;
  background: rgba(255, 255, 255, 0.035);
}

.bottom-nav__item:hover .bottom-nav__icon,
.bottom-nav__item:focus-visible .bottom-nav__icon {
  transform: translateY(-2px);
}

/* Active */
.bottom-nav__item.active {
  color: var(--accent);
}

.bottom-nav__item.active::before {
  width: 28px;
}

.bottom-nav__item.active .bottom-nav__icon {
  filter: drop-shadow(0 0 7px rgba(255, 212, 0, 0.28));
}

/* Tap effect */
.bottom-nav__item:active {
  transform: scale(0.96);
}

/* Keep page content above fixed bottom bar */
body {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

/* iPhone / devices with safe-area */
.bottom-nav {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --bottom-nav-height: 66px;
  }

  .bottom-nav__item {
    gap: 4px;
  }

  .bottom-nav__icon {
    font-size: 1.08rem;
  }

  .bottom-nav__text {
    font-size: 0.71rem;
  }
}

/* 350px and below */
@media (max-width: 350px) {
  :root {
    --bottom-nav-height: 61px;
  }

  .bottom-nav__icon {
    font-size: 0.98rem;
  }

  .bottom-nav__text {
    font-size: 0.64rem;
  }

  .bottom-nav__item.active::before {
    width: 22px;
  }
}

/* Extra-small: 270px–300px */
@media (max-width: 300px) {
  :root {
    --bottom-nav-height: 58px;
  }

  .bottom-nav__item {
    gap: 3px;
  }

  .bottom-nav__icon {
    font-size: 0.9rem;
  }

  .bottom-nav__text {
    font-size: 0.58rem;
  }
}

/* =========================
   PREMIUM GAMING BANNER
   ========================= */

.gaming-banner {
  position: relative;
  width: min(calc(100% - 20px), 1180px);
  margin: 12px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 14px;
  background: #15181d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.gaming-banner__track {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 5.3;
  min-height: 150px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gaming-banner__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  opacity: 1;
  visibility: visible;
}

.gaming-banner__slide.active {
  opacity: 1;
  visibility: visible;
}

.gaming-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaming-banner__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 12, 0.9) 0%,
    rgba(7, 9, 12, 0.55) 43%,
    rgba(7, 9, 12, 0.08) 78%
  );
}

.gaming-banner__overlay {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 4vw, 44px);
  top: 50%;
  width: min(52%, 500px);
  transform: translateY(-50%);
  color: #fff;
}

.gaming-banner__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 5px;
  color: #111;
  background: var(--accent);
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.7px;
}

.gaming-banner__overlay h2 {
  margin: 0 0 5px;
  font-family: var(--font-gaming);
  font-size: clamp(1.15rem, 4vw, 2.2rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.gaming-banner__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.72rem, 2vw, 1rem);
}

.gaming-banner__dots {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 11px;
  display: flex;
  gap: 6px;
}

.gaming-banner__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.gaming-banner__dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--accent);
}

@media (max-width: 560px) {
  .gaming-banner {
    width: calc(100% - 12px);
    margin-block: 8px;
    border-radius: 10px;
  }

  .gaming-banner__track {
    aspect-ratio: 2 / 1;
    min-height: 135px;
  }

  .gaming-banner__overlay {
    left: 14px;
    width: 63%;
  }

  .gaming-banner__dots {
    right: 10px;
    bottom: 8px;
  }
}

@media (max-width: 300px) {
  .gaming-banner__track {
    min-height: 125px;
  }

  .gaming-banner__overlay {
    width: 68%;
  }

  .gaming-banner__overlay p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gaming-banner__slide {
    transition: none;
  }
}

/* =========================
   QUICK GAMES
   ========================= */

.quick-games {
  width: min(calc(100% - 20px), 1180px);
  margin: 10px auto;
}

.quick-games__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.quick-game {
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #1b1e24, #121419);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.quick-game img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  border-radius: 7px;
}

.quick-game span {
  display: block;
  padding: 6px 3px 3px;
  overflow: hidden;
  color: #dfe3e8;
  font-size: 0.78rem;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quick-game:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 0, 0.55);
  background: #1c2026;
}

/* =========================
   ANNOUNCEMENT BAR
   ========================= */

.announcement-bar {
  width: min(calc(100% - 20px), 1180px);
  min-height: 42px;
  margin: 10px auto 12px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 9px;
  background: linear-gradient(180deg, #191c21, #101216);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.announcement-bar__icon,
.announcement-bar__mail {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.announcement-bar__viewport {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar__text {
  width: max-content;
  padding-left: 100%;
  color: #d9dde3;
  font-size: 0.82rem;
  font-weight: 600;
  animation: announcement-scroll 14s linear infinite;
  will-change: transform;
}

.announcement-bar__mail {
  color: #aeb4bd;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition), background var(--transition);
}

.announcement-bar__mail:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes announcement-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Mobile */
@media (max-width: 560px) {
  .quick-games,
  .announcement-bar {
    width: calc(100% - 12px);
  }

  .quick-games__row {
    gap: 5px;
  }

  .quick-game {
    padding: 3px;
    border-radius: 8px;
  }

  .quick-game img {
    border-radius: 6px;
  }

  .quick-game span {
    padding-top: 4px;
    font-size: 16px;
  }

  .announcement-bar {
    min-height: 38px;
    grid-template-columns: 36px 1fr 36px;
  }

  .announcement-bar__text {
    font-size: 0.75rem;
  }
}

/* Very small screens */
@media (max-width: 350px) {
  .quick-games__row {
    gap: 3px;
  }

  .quick-game {
    padding: 2px;
  }

  .quick-game span {
    font-size: 0.54rem;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__text {
    animation: none;
    padding-left: 8px;
  }
}

/* =========================
   GAME CATEGORY MENU
   ========================= */

.game-categories {
  width: min(calc(100% - 20px), 1180px);
  margin: 14px auto 18px;
}

.game-categories__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  padding: 12px 6px;
  border-radius: 12px;
  background: #dcecf3;
}

.game-category {
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #16191d;
  border-radius: 9px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.game-category img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.game-category span {
  max-width: 100%;
  /* font-size: 0.82rem; */
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.game-category:hover {
  background: rgba(255, 255, 255, 0.5);
}

.game-category:hover img {
  transform: translateY(-2px);
}

.game-category.active span {
  color: #d99200;
}

/* Mobile */
@media (max-width: 560px) {
  .game-categories {
    width: calc(100% - 12px);
    margin-block: 10px 14px;
  }

  .game-categories__row {
    padding: 9px 3px;
    border-radius: 9px;
  }

  .game-category {
    min-height: 67px;
    gap: 7px;
  }

  .game-category img {
    width: 27px;
    height: 27px;
  }

  .game-category span {
    font-size: 0.67rem;
    font-size: 16px;
  }
}

/* Small phones */
@media (max-width: 350px) {
  .game-category {
    min-height: 61px;
    gap: 6px;
  }

  .game-category img {
    width: 24px;
    height: 24px;
  }

  .game-category span {
    font-size: 0.58rem;
    font-size: 14px;
  }
}

/* 270px - 300px */
@media (max-width: 300px) {
  .game-category img {
    width: 22px;
    height: 22px;
  }

  .game-category span {
    font-size: 0.52rem;
  }
}

/* =========================
   ALL GAME SECTIONS
   ========================= */

.games-section {
  width: min(calc(100% - 20px), 1180px);
  margin: 18px auto 26px;
}

.games-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.games-section__header h2 {
  margin: 0;
  color: #171b20;
  font-family: var(--font-gaming);
  /* font-size: clamp(1.05rem, 3vw, 1.45rem); */
  font-size: 20px;
}

.games-section__header > a {
  padding: 6px 11px;
  border-radius: 7px;
  color: #59616a;
  background: #e8eef2;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.games-section__header > a:hover {
  color: #16191d;
  background: #ffe58a;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 28, 36, 0.08);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(20, 28, 36, 0.08);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e7edf1;
}

.game-card span {
  display: block;
  padding: 8px 6px 9px;
  overflow: hidden;
  color: #20252b;
  font-size: 0.75rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 190, 0, 0.45);
  box-shadow: 0 8px 20px rgba(20, 28, 36, 0.12);
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile = exactly 3 per row */
@media (max-width: 560px) {
  .games-section {
    width: calc(100% - 12px);
    margin-block: 15px 22px;
  }

  .games-section__header {
    margin-bottom: 9px;
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .game-card {
    border-radius: 10px;
  }

  .game-card span {
    padding: 7px 4px 8px;
    font-size: 0.64rem;
    font-size: 15px;
  }

  .games-section__header > a {
    padding: 5px 8px;
    font-size: 0.62rem;
  }
}

@media (max-width: 350px) {
  .games-grid {
    gap: 5px;
  }

  .game-card span {
    font-size: 0.57rem;
    font-size: 15px;
  }
}

.nav-balance {
  display: flex;
  align-items: center;
  gap: 5px;

  padding: 8px 12px;

  background: #1a1e23;
  border: 1px solid #2b323a;
  border-radius: 8px;

  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.nav-balance span {
  color: #8d98a5;
  font-size: 11px;
}

.nav-balance strong {
  font-weight: 700;
}
@media (max-width: 380px) {

  .nav-balance {
    padding: 7px 8px;
    font-size: 12px;
  }

  .nav-balance span {
    font-size: 10px;
  }

}