/* استایل جدول لوح */

/* Result Box Default/Desktop Styles */
.loh-result-title {
  font-size: 26px !important;
  color: #b28b00;
  margin-bottom: 14px;
}

.loh-result-text {
  font-size: 18px !important;
  line-height: 1.8;
  color: #6b4e08;
}

.loh-reset-btn {
  margin-top: 18px;
  font-size: 18px !important;
  padding: 3px 22px 2px 22px;
  border-radius: 7px;
  background: #b28b00;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Gulzar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  line-height: 1.3;
}
.loh-reset-btn:hover {
  background: #d4af37;
}

@media (max-width: 600px) {
  #loh-result-box {
    font-size: 1em !important;
  }
  .loh-result-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px;
  }
  .loh-result-text {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .loh-reset-btn {
    font-size: 16px !important;
    padding: 3px 18px 2px 18px !important;
  }
  .loh-instruction-box {
    font-size: 16px !important;
  }

  .loh-table .loh-cell, .loh-table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    height: 32px !important;
    font-size: 1.08rem !important; /* خواناتر و کمی بزرگ‌تر */
  }
}

.loh-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px 0;
  direction: rtl;
  background: #fffbe7;
  box-shadow: 0 2px 12px #e2d6b1a0;
  border-radius: 10px;
  overflow: hidden;
}
.loh-table td {
  font-family: 'Gulzar', 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 3.3em;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #c7b06a;
  padding: 16px 0;
  width: 48px;
  height: 48px;
  text-align: center;
  font-size: 1.3rem;
  background: #fffbe9;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border-radius: 8px;
}
.loh-table td:hover, .loh-table td:focus {
  background: #f7e7a6;
  color: #b28b00;
  box-shadow: 0 2px 8px #e1c86b55;
  outline: none;
}

/* استایل مودال */
.loh-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  direction: rtl;
}
.loh-modal-content {
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 4px 24px #c7b06a66;
  padding: 32px 24px 24px 24px;
  max-width: 90vw;
  min-width: 260px;
  text-align: center;
  position: relative;
}
.loh-modal-number {
  font-size: 2.2rem;
  color: #b28b00;
  font-weight: bold;
  margin-bottom: 12px;
}
.loh-modal-text {
  font-size: 1.2rem;
  color: #4e3d14;
  margin-bottom: 22px;
}
.loh-modal-close {
  background: #b28b00;
  color: #fffbe9;
  border: none;
  border-radius: 8px;
  padding: 8px 32px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
}
.loh-modal-close:hover {
  background: #e1c86b;
  color: #4e3d14;
}
