/* GAME PAGE STYLES FOR ACROBATKIDS */
.game-breadcrumbs {
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.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: 0 4px 16px #0001;
}
.game-frame {
    background: linear-gradient(135deg, #f8d442 0%, #fffbe9 100%);
    border: 6px solid #4f39b8;
    border-radius: 36px;
    box-shadow: 0 8px 24px #0001;
    padding: 32px 16px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px;
    position: relative;
}
.game-frame-title {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f39b8;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 600;
    padding: 5px 26px;
    border-radius: 24px 24px 0 0;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px #0002;
}

#game-container {
    width: 100%;
    max-width: 480px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#game-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: none !important;
}



.game-description {
    max-width: 540px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 1.07rem;
}
.back-category-btn {
    background: #6c4ee6;
    color: #fff;
    font-weight: 600;
    padding: 11px 30px;
    border-radius: 22px;
    font-size: 1.07rem;
    box-shadow: 0 2px 8px #0002;
    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 */
}
