/* Cloud Caravan — rebuilt game additions (Oct 2026).
   Page chrome (stage, welcome, overlays, tools) comes from salam-arcade.css;
   this file styles the new HUD chips, progress ribbon, canvas and controls. */

#ccCanvas {
  display: block;
  width: 100%;
  border-radius: 14px;
  touch-action: none;
  cursor: pointer;
  background: #bae6fd;
}
#ccCanvas:focus-visible { outline: 3px solid #6d28d9; outline-offset: 2px; }

.cc-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-chip {
  background: rgba(255, 255, 255, .82);
  border: 2px solid rgba(23, 53, 83, .14);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 800;
  color: #173653;
  font-size: .95rem;
  white-space: nowrap;
}
.cc-chip.combo {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: #b45309;
  color: #fff;
  animation: cc-pop .28s ease;
}
@keyframes cc-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }

.cc-progress {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 2px 4px;
}
.cc-progress-track {
  position: relative; flex: 1; height: 12px;
  background: rgba(255, 255, 255, .65);
  border: 2px solid rgba(23, 53, 83, .16);
  border-radius: 999px;
}
#ccProgFill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #38bdf8, #0d9488);
  border-radius: 999px;
  transition: width .25s linear;
}
#ccProgGlider {
  position: absolute; top: -13px; left: 0%;
  font-size: 17px; line-height: 1;
  transform: translateX(-50%);
  transition: left .25s linear;
}
.cc-progress-end { font-size: 19px; line-height: 1; }

.cc-controls {
  display: flex; gap: 10px; margin-top: 10px;
}
.cc-controls button {
  font: inherit; font-weight: 900; color: #173653;
  background: rgba(255, 255, 255, .9);
  border: 2.5px solid rgba(23, 53, 83, .22);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.cc-controls button.cc-on {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #4c1d95; color: #fff;
  transform: translateY(1px) scale(.985);
}
#ccLift { flex: 1.6; font-size: 1.06rem; }
#ccDive { flex: 1; }
#ccPauseBtn { flex: 0 0 auto; }

@media (max-width: 560px) {
  .cc-chip { font-size: .86rem; padding: 2px 9px; }
  .cc-controls button { padding: 13px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-chip.combo { animation: none; }
  #ccProgFill, #ccProgGlider { transition: none; }
}

/* Islamic praise banner on the course-complete dialog */
.cc-phrase {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 2px solid #99f6e4; border-radius: 14px;
  padding: 9px 14px 10px; margin: 4px auto 10px; max-width: 340px;
}
#ccPhraseAr { font-family: Amiri, serif; font-size: 1.72rem; line-height: 1.25; color: #0f766e; }
#ccPhraseTr { font-size: 1.12rem; font-weight: 900; color: #173653; }
#ccPhraseEn { font-size: .86rem; color: #475569; }
