/* Base styling — Libyan-themed, RTL-aware. */

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(201, 169, 97, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(139, 38, 53, 0.06), transparent 70%),
    #1A1A2E;
}

/* Subtle Libyan-tile pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(201, 169, 97, 0.02) 0px, rgba(201, 169, 97, 0.02) 2px,
      transparent 2px, transparent 30px),
    repeating-linear-gradient(-45deg,
      rgba(201, 169, 97, 0.02) 0px, rgba(201, 169, 97, 0.02) 2px,
      transparent 2px, transparent 30px);
  pointer-events: none;
  z-index: -1;
}

.card-cta {
  display: block;
  background: rgba(22, 59, 44, 0.55);
  border: 1px solid rgba(201, 169, 97, 0.30);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.card-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 97, 0.7);
  background: rgba(31, 77, 58, 0.7);
  box-shadow: 0 12px 30px -10px rgba(201, 169, 97, 0.4);
}

/* Felt table */
.felt-table {
  background:
    radial-gradient(ellipse at center, #1F4D3A 0%, #163B2C 65%, #0F2A20 100%);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 30%);
}

.opponent-area {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  min-height: 130px;
}
.table-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 200px;
  width: 80%;
}
.hand-area {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  min-height: 140px;
  perspective: 800px;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  pointer-events: none;
}
.toast {
  background: rgba(22, 22, 46, 0.92);
  border: 1px solid rgba(201, 169, 97, 0.5);
  color: #FFF8E7;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Reem Kufi', sans-serif;
  pointer-events: auto;
  animation: toastIn 0.3s ease, toastOut 0.4s ease 2.6s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }
