:root {
  --qg-bg: #0b1130;
  --qg-bg2: #171f4d;
  --qg-gold: #f5c518;
  --qg-team1: #1e88e5;
  --qg-team2: #e53935;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: radial-gradient(circle at top, var(--qg-bg2), var(--qg-bg));
  color: #eef1ff;
  min-height: 100vh;
}

.qg-navbar {
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
}

.qg-footer {
  opacity: .7;
}

.qg-hero {
  text-align: center;
  padding: 50px 20px;
}

.qg-hero h1 {
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--qg-gold);
}

.qg-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 24px;
}

.qg-powerup-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 14px;
  height: 100%;
}

/* لوحة اللعبة */
.qg-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.qg-board-col-title {
  background: linear-gradient(180deg, #2b3a8f, #1a2360);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: .95rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qg-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.2rem;
  border: none;
  color: #1a2360;
  background: linear-gradient(180deg, var(--qg-gold), #d9a900);
  cursor: pointer;
  transition: transform .15s ease;
}

.qg-cell:hover {
  transform: scale(1.05);
}

.qg-cell.answered {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .35);
  cursor: default;
}

.qg-cell.answered.team1 {
  background: rgba(30, 136, 229, .25);
  color: #bcd9f7;
}

.qg-cell.answered.team2 {
  background: rgba(229, 57, 53, .25);
  color: #f7c2c0;
}

.qg-scoreboard {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.qg-team-box {
  flex: 1;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
}

.qg-team-box.team1 {
  background: rgba(30, 136, 229, .18);
  border: 2px solid var(--qg-team1);
}

.qg-team-box.team2 {
  background: rgba(229, 57, 53, .18);
  border: 2px solid var(--qg-team2);
}

.qg-team-box.active {
  box-shadow: 0 0 0 3px var(--qg-gold);
}

.qg-team-box .score {
  font-size: 2rem;
  font-weight: 900;
}

.qg-question-view {
  text-align: center;
  padding: 30px 10px;
}

.qg-question-view .points {
  color: var(--qg-gold);
  font-weight: 900;
  font-size: 1.5rem;
}

.qg-question-text {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 20px 0;
  line-height: 2;
}

.qg-answer-box {
  background: rgba(46, 204, 113, .15);
  border: 1px solid #2ecc71;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 16px 0;
}

.qg-powerup-btn {
  border-radius: 10px;
  font-size: .85rem;
  padding: 8px 10px;
}

.qg-powerup-btn.used {
  opacity: .35;
}

.badge-armed {
  background: var(--qg-gold);
  color: #1a2360;
}

table.qg-admin-table th, table.qg-admin-table td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .qg-board { grid-template-columns: repeat(6, minmax(60px, 1fr)); overflow-x: auto; }
  .qg-question-text { font-size: 1.2rem; }
}
