
 /*---------------- فونت وزیر ----------------*/
        @font-face {
            font-family: 'Vazir';
            src: url('vazir-font-v16.1.0/Vazir-Medium.woff2') format('woff2'),
                url('vazir-font-v16.1.0/Vazir-Medium.woff') format('woff');
            font-weight: 500;
            font-style: normal;
        }

        @font-face {
            font-family: 'Vazirb';
            src: url('./Vazir-Bold.woff2') format('woff2'),
                url('./Vazir-Bold.woff') format('woff');
            font-weight: 700;
            font-style: normal;
        }
    .game-modes {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .game-mode-card {
        background: linear-gradient(135deg, #00796b, #4db6ac); /* گرادیانت آبی */
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        margin: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s, box-shadow 0.3s;
        width: calc(30% - 20px);
        position: relative;
    }

    .game-mode-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .game-mode-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    h4 {
        color: #ffffff; /* رنگ متن عنوان */
        margin-bottom: 10px;
    }

    p {
        color: #ffffff; /* رنگ متن توضیحات */
        margin-bottom: 20px;
    }

    .play-button {
        background-color: #ffffff;
        color: #00796b;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s, color 0.3s;
        font-size: 16px; /* افزایش اندازه فونت دکمه */
    }

    .play-button:hover {
        background-color: #4db6ac;
        color: #ffffff;
    }

    @media (max-width: 768px) {
        .game-mode-card {
            width: calc(45% - 20px); /* 2 کارت در هر ردیف */
        }
    }
    
    @media (max-width: 480px) {
        .game-mode-card {
            width: 100%; /* 1 کارت در هر ردیف */
        }
    }

* {
  box-sizing: border-box;
  font-family:'Vazirb', sans-serif;
}
/* Reset ساده */


html, body {
  margin: 0;
  padding: 0;
}

/* پس‌زمینه‌ی کلی با گرادیانت */
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #3b82f6 0, #111827 45%, #020617 100%);
  color: #f9fafb;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* کانتینر اصلی با افکت شیشه‌ای */
.container {
  width: 100%;
  max-width:500px;
  margin: 20px;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,64,175,0.8));
  box-shadow:
    0 20px 40px rgba(15,23,42,0.8),
    0 0 0 1px rgba(148,163,184,0.25);
  position: relative;
  overflow: hidden;
}

/* افکت‌های تزئینی داخل کارت */
.container::before,
.container::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.32;
  pointer-events: none;
}

.container::before {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #22c55e, transparent);
  top: -40px;
  left: -40px;
}

.container::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #f97316, transparent);
  bottom: -60px;
  right: -40px;
}

/* خط بالای کارت */
.container::marker-line {
  content: "";
}

/* خوش‌آمدگویی */
.welcome {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: 18px;
  text-align: center;
  color: #e5e7eb;
}

.welcome::before {
  content: "🎮";
  margin-left: 6px;
  filter: drop-shadow(0 0 4px rgba(248, 250, 252, 0.5));
}

/* منوی اصلی */
.menu {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

/* استایل عمومی دکمه‌ها */
.menu button,
.modal button,
#btn-reset {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.2s ease-out,
    opacity 0.2s ease-out;
}

/* دکمه‌های اصلی */
.menu button#btn-bot,
.menu button#btn-online-random {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #f9fafb;
  box-shadow:
    0 10px 20px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(191, 219, 254, 0.3);
}

.menu button#btn-bot:hover,
.menu button#btn-online-random:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.6),
    0 0 0 1px rgba(191, 219, 254, 0.4);
}

/* افکت موجی */
.menu button::after,
.modal button::after,
#btn-reset::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(255,255,255,0.28), transparent);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.menu button:hover::after,
.modal button:hover::after,
#btn-reset:hover::after {
  opacity: 1;
}

/* دکمه بازی آنلاین با دوست */
.disabled {
  background: linear-gradient(135deg, #4b5563, #020617);
  color: #9ca3af;
  cursor: default;
  opacity: 0.8;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.4);
}

/* متن "به‌زودی" */
.soon {
  font-size: 0.78rem;
  color: #facc15;
  background: rgba(24,24,27,0.85);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 8px;
}

/* بلوک بازی آنلاین */
.online-block {
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.25), rgba(15,23,42,0.75));
  border: 1px solid rgba(148,163,184,0.45);
}

.online-block h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: #c7d2fe;
}

/* سکشن بازی */
.game-section {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148,163,184,0.45);
  text-align: center;
}

.status {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* برد بازی: ۳x۳ */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 80px));
  grid-template-rows: repeat(3, minmax(64px, 80px));
  gap: 6px;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(17,24,39,0.9));
  box-shadow:
    inset 0 0 0 1px rgba(75,85,99,0.7),
    0 8px 20px rgba(15,23,42,0.8);
}

/* سلول‌های دوز */
.cell {
  width: 100%;
  height: 100%;
  font-size: 2.3rem;
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.9);
  background: radial-gradient(circle at top, #111827, #020617);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease-out,
    transform 0.08s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
  text-shadow:
    0 0 8px rgba(248,250,252,0.5),
    0 0 14px rgba(129,140,248,0.6);
}

.cell:hover {
  background: radial-gradient(circle at top, #1f2937, #020617);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 12px rgba(15,23,42,0.9);
  border-color: #4f46e5;
}

/* دکمه ریست */
#btn-reset {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fef2f2;
  box-shadow:
    0 10px 20px rgba(239,68,68,0.5),
    0 0 0 1px rgba(248,113,113,0.4);
}

#btn-reset:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(239,68,68,0.7),
    0 0 0 1px rgba(254,202,202,0.6);
}

/* مودال‌ها – پس‌زمینه */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.18), transparent),
              rgba(15,23,42,0.94);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* جعبه‌ی مودال */
.modal {
  background: linear-gradient(145deg, rgba(17,24,39,0.96), rgba(30,64,175,0.9));
  padding: 20px 18px 16px;
  border-radius: 18px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.7),
    0 0 0 1px rgba(148,163,184,0.4);
  position: relative;
  overflow: hidden;
}

/* افکت نور داخل مودال */
.modal::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(59,130,246,0.55), transparent);
  opacity: 0.25;
  top: -40px;
  left: -40px;
}

/* عنوان مودال */
.modal h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: #e5e7eb;
  position: relative;
  z-index: 1;
}
  .level-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: aliceblue;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
  }
  
  .level-button:hover {
    transform: scale(1.05);
  }

  .level-1 { background-color: rgb(0, 255, 0); }
  .level-2 { background-color: rgb(0, 156, 0); }
  .level-3 { background-color: rgb(0, 88, 0); }
  .level-4 { background-color: rgb(0, 38, 255); }
  .level-5 { background-color: rgb(0, 60, 150); }
  .level-6 { background-color: rgb(0, 2, 78); }
  .level-7 { background-color: rgb(255, 0, 0); }
  .level-8 { background-color: rgb(173, 0, 0); }
  .level-9 { background-color: rgb(66, 0, 0); }
  .level-10 { background-color: rgb(64, 64, 64); }
/* اینپوت نام کاربری */
.modal input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 9px 10px;
  margin: 6px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  outline: none;
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.modal input:focus {
  border-color: #38bdf8;
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.6),
    0 0 12px rgba(56,189,248,0.7);
  background: rgba(15,23,42,0.95);
}

/* دکمه‌های مودال سطح ربات / ثبت نام */
.modal button {
  position: relative;
  z-index: 1;
  margin: 4px;
  min-width: 90px;
}

/* دکمه‌های سطح ربات */
#bot-level-modal button[data-level="easy"] {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
}

#bot-level-modal button[data-level="medium"] {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
}

#bot-level-modal button[data-level="hard"] {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fef2f2;
}

/* دکمه بستن مودال سطح ربات */
#bot-level-close {
  background: linear-gradient(135deg, #4b5563, #111827);
  color: #e5e7eb;
}

/* کلاس نمایش/مخفی */
.hidden {
  display: none !important;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 480px) {
  .container {
    margin: 16px;
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .board {
    grid-template-columns: repeat(3, minmax(60px, 72px));
    grid-template-rows: repeat(3, minmax(60px, 72px));
    gap: 5px;
  }

  .cell {
    font-size: 2rem;
    border-radius: 10px;
  }

  .welcome {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .menu button {
    font-size: 0.94rem;
    padding: 9px 14px;
  }
}


