/* GAME PAGE STYLES FOR ACROBATKIDS */
.main-frame{
  max-width:1200px;
  margin:0 auto;
  padding:40px 0;
}
.game-breadcrumbs {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--muted);
}
.game-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 35px;
}
.game-title-row img {
  height: 60px;
  width: 60px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px;
}
.game-frame {
  background: linear-gradient(135deg, #fff4cf 0%, #ffffff 100%);
  border: 6px solid var(--primary);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.game-frame-title {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 26px;
  border-radius: 24px 24px 0 0;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

#game-container {
    width: 100%;
    height:auto;
    margin: 0 auto;    
}
#game-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 16px;
}

.game-description {
  max-width: 540px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 1.07rem;
  color: var(--muted);
}
.back-category-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 11px 30px;
  border-radius: 22px;
  font-size: 1.02rem;
  box-shadow: 0 12px 20px rgba(247, 108, 94, 0.25);
  text-decoration: none;
  transition: background 0.2s;
}
.letter-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}
.letter-nav button {
    background: #6c4ed4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: background 0.13s;
}
.letter-nav button:hover {
    background: #543bc1;
}
.end-popup {
  position: fixed;
  z-index: 10;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.end-popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 20px 32px;
  box-shadow: 0 6px 36px #6654c633;
  text-align: center;
  min-width: 300px;
}
.end-popup-content button {
  margin: 14px 10px 0 10px;
  padding: 10px 22px;
  border: none;
  background: #6d5bd0;
  color: #fff;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .15s;
}
.end-popup-content button:hover { background: #a6a2e5;}
.close-popup-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.close-popup-btn:hover {
  color: #6654c6;
}
.end-popup-content {
  position: relative; /* Needed for absolute close btn */
}

#custom-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #143829;
}
#loadingText {
    color: #F2EACE;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #f2eace;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#progressBar {
  width: 100%;
  height: 10px;
  margin-top: 10px;
  background-color: #ccc;
}
