@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&display=swap');
body.tavern-bg {
  background: radial-gradient(circle at top, #2c1a1a, #0d0d0d);
  min-height: 100vh;
}

.fantasy-brand {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card.tavern-card {
  background-color: rgba(23, 16, 9, 0.85);
  border: 1px solid #8b5d33;
  color: #f3e9d2;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.tavern-modal .modal-content {
  background-color: rgba(20, 13, 8, 0.94);
  color: #f3e9d2;
  border: 1px solid rgba(139, 93, 51, 0.6);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
}

.tavern-modal .modal-header,
.tavern-modal .modal-footer {
  background: transparent;
  border-color: rgba(139, 93, 51, 0.35);
}

.tavern-modal .form-control,
.tavern-modal .input-group-text {
  background-color: rgba(32, 23, 16, 0.85);
  border-color: rgba(139, 93, 51, 0.35);
  color: #f7efe1;
}

.tavern-modal .form-control:focus {
  background-color: rgba(32, 23, 16, 0.95);
  border-color: #d1a76b;
  color: #fff6dc;
  box-shadow: 0 0 0 0.2rem rgba(177, 116, 55, 0.35);
}

.tavern-modal .form-text,
.tavern-modal .text-muted {
  color: #cbb89a !important;
}

.tavern-modal .btn-close {
  filter: invert(80%);
}

.card.tavern-card .card-header {
  background-color: rgba(139, 93, 51, 0.35);
  border-bottom: 1px solid #8b5d33;
}

.btn-tavern {
  background: linear-gradient(135deg, #b8860b, #734217);
  color: #f5f1e6;
  border: none;
}

.btn-tavern:hover {
  color: #fff;
  filter: brightness(1.1);
}

.table.tavern-table {
  color: #f5f1e6;
}

.table.tavern-table thead {
  background-color: rgba(139, 93, 51, 0.4);
}

.table.tavern-table tbody tr {
  background-color: rgba(23, 16, 9, 0.65);
}

.mini-game {
  padding: 1rem;
  border: 1px solid rgba(139, 93, 51, 0.4);
  border-radius: 0.5rem;
  background-color: rgba(23, 16, 9, 0.6);
  height: 100%;
}

.navbar.bg-gradient {
  background: linear-gradient(90deg, rgba(85, 35, 10, 0.85), rgba(20, 8, 5, 0.95));
  border-bottom: 1px solid #8b5d33;
}

/* Seer checks table alignment and sizing */
.seer-checks th,
.seer-checks td {
  vertical-align: middle;
}

.seer-checks th {
  width: 38%;
  white-space: nowrap;
  font-weight: 700;
}

.seer-checks td.badge-col {
  width: 18%;
  white-space: nowrap;
}

.seer-checks .badge {
  font-size: 0.75rem; /* slightly smaller badge for compact rows */
  padding: 0.35em 0.6em;
  border-radius: 0.5rem;
}

/* Solid dark rows with subtle separators to match tavern theme */
.seer-checks {
  --bs-table-bg: transparent; /* override Bootstrap table bg to avoid white */
  --bs-table-color: #f7efe1;
  --bs-table-striped-color: #f7efe1;
  --bs-table-hover-color: #f7efe1;
  background-color: transparent;
  color: #f7efe1;
}
.seer-checks th,
.seer-checks td {
  color: #f7efe1; /* ensure cells inherit light color, overriding bootstrap */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.seer-checks td:last-child {
  color: #fff5db; /* slightly lighter for detail text */
}
.seer-checks tbody tr {
  background-color: rgba(23, 16, 9, 0.65);
}
.seer-checks tbody tr + tr td,
.seer-checks tbody tr + tr th {
  border-top: 1px solid rgba(139, 93, 51, 0.25);
}

/* ----------------------- */
/* Universal Loader Styles */
/* ----------------------- */
.tg-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.tg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #f5f1e6;
}

.tg-loader .tg-dice {
  font-size: 2.25rem;
  color: #b8860b; /* golden */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  animation: tg-dice-bob 1.2s ease-in-out infinite;
}

.tg-loader-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes tg-dice-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(10deg); }
}

/* --------------------- */
/* Throws table (history) */
/* --------------------- */
.throws-table {
  --bs-table-bg: transparent;
  --bs-table-color: #fff6dc;
  --bs-table-striped-color: #fff6dc;
  --bs-table-hover-color: #fff6dc;
  background-color: transparent;
  color: #fff6dc;
  font-size: 0.95rem; /* improve legibility vs .small */
}
.throws-table thead th {
  background-color: rgba(139, 93, 51, 0.5);
  color: #fff6dc;
  border-bottom: 1px solid rgba(139, 93, 51, 0.35);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.throws-table tbody tr {
  background-color: rgba(15, 10, 6, 0.88);
}
.throws-table tbody tr + tr td,
.throws-table tbody tr + tr th {
  border-top: 1px solid rgba(139, 93, 51, 0.25);
}
.throws-table th,
.throws-table td {
  color: #fff6dc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.throws-table code {
  color: #fff0bf;
}
.throws-table a {
  color: #ffd992;
}

.text-muted {
  color: #bdac90 !important;
}

.admin-balance-value {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
