:root {
  --bf-bg: #000000;
  --bf-border: #5B289C;
  --bf-primary: #5B289C;
  --bf-text: #ffffff;
}

.bf-game {
  display: flex;
  gap: 3rem;
  background: var(--bf-bg);
  color: var(--bf-text);
  direction: rtl;
  align-items: flex-start;
  padding: 2rem 0;
}

.bf-game-left {
  flex: 0 0 auto;
}

.bf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.5rem;
/*  padding: 1.4rem;
  border: 2px solid var(--bf-border);
  box-shadow: 0 0 25px rgba(91, 40, 156, 0.8);
  border-radius: 12px;*/
}

.bf-cell {
  background: transparent;
  border: 2px solid var(--bf-border);
  /*box-shadow: 0 0 15px rgba(91, 40, 156, 0.9);*/
  border-radius: 10px;
  padding: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bf-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(91, 40, 156, 1);
}

.bf-cell img {
  display: block;
  width: 100%;
  height: auto;
}

.bf-cell.is-selected {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

/* حالت‌های مختلف سلول */
.bf-cell.bf-cell-empty {
  opacity: 0.65;
}

.bf-cell.bf-cell-prize {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

.bf-cell.bf-cell-bomb {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

/* دکمه اصلی */
.bf-main-btn {
  margin-top: 2rem;
  width: 100%;
  background: var(--bf-primary);
  color: #fff;
  border-radius: 10px;
  padding: 1.1rem 0;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
  font-family: 'dana-medium';
}

.bf-main-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.bf-main-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

/* سمت راست */
.bf-game-right {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bf-account-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bf-account-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--bf-border);
  padding: 0.4rem 1.1rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.bf-safe-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--bf-border);
  padding: 0.3rem 0.7rem;
}

.bf-safe-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* مودال‌ها */
.bf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.bf-modal.is-active {
  display: flex;
}

.bf-modal-content {
  background: #000;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  position: relative;
  border: 2px solid var(--bf-border);
  text-align: center;
  max-width: 420px;
  width: 100%;
  color: #fff;
  font-family: 'dana-medium';
}

.bf-modal-image {
  max-width: 220px;
  width: 70%;
  /*margin-bottom: 1.2rem;*/
}

.bf-modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.bf-modal-text {
  margin-top: 0.5rem;
}

.bf-modal-btn {
  margin-top: 1.5rem;
  background: var(--bf-primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
      font-family: 'dana-medium';
}

.bf-modal-close {
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* موبایل */
@media (max-width: 768px) {
  .bf-game {
    flex-direction: column;
    align-items: center;
  }

  .bf-game-right {
    width: 100%;
  }
}
.landing-login-btn {
    /* استایل دکمه ورود */
    color: #fff;
    border-radius: 999px;
    padding: 10px 24px;
        font-family: 'dana-medium';
}

.landing-safe-counter {
    /* استایل باکس شمارنده امن */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}
/* بازی بلک‌فرایدی – وسط‌چین کردن گرید و حذف ستون خالی راست */
#bf-game-root.bf-game {
    display: flex;
    justify-content: center;   /* کل محتوای بازی وسط کانتینر المنتور */
    align-items: flex-start;
}

/* ستون راست که خالی مانده را حذف کن */
#bf-game-root .bf-game-right {
    display: none !important;
}

/* مطمئن شو ستون چپ فقط به اندازه‌ی محتوا جا می‌گیرد */
#bf-game-root .bf-game-left {
    flex: 0 0 auto;
}
/* وقتی بازی قفل شده است */
#bf-game-root.bf-game-locked .bf-cell {
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(1);
}

#bf-game-root.bf-game-locked .bf-main-btn {
    pointer-events: none;
    opacity: 0.6;
}

/* اگر کلاس جدا روی گرید گذاشتی */
#bf-grid.bf-grid-locked .bf-cell {
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(1);
}

.bf-modal-title {
        font-family: 'dana-bold';
}
.bf-modal-text {
font-family: 'dana-regular';
}
.bf-safe-label {
        font-family: 'dana-medium';
}