.bg-container{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 130% 90% at 50% 45%, rgba(0, 242, 255, 0.045) 0%, transparent 52%),
        radial-gradient(ellipse 85% 100% at 0% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
        radial-gradient(ellipse 85% 100% at 100% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
        linear-gradient(165deg, #05070c 0%, #0c1118 42%, #080b10 100%);
}

/* Game Worlds: same play column height as sky-shooter.css #gamebox */
.game-worlds-play-shell .bg-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 0 0 auto;
    /*height: calc(768px * 5 / 7);
    max-height: calc(768px * 5 / 7);*/
}
.game-worlds-play-shell #gamebox {
    margin-left: auto;
    margin-right: auto;
}
/* Keep the maze border off the share bar on game pages. */
.game-play-frame .game-worlds-play-shell .bg-container {
    padding-bottom: 16px;
    height: auto;
}
#gamebox{ 
 /*background: #000;*/
 position: relative;
 --ga-surface: rgba(23, 23, 33, 0.94);
 --ga-border: rgba(255, 255, 255, 0.12);
 --ga-text: #e2e8f0;
}

/* Center the canvas horizontally */
canvas {
  display: block;
  margin: 0 auto;
  border: 0;
  border: 1px solid #555;
}

/* Style the start and end squares */
.green {
  background-color: green;
}

.red {
  background-color: red;
}

/* Style the movable block */
.blue {
  background-color: blue;
}

/* Style the walls */
.black {
  background-color: black;
}

.barcode-join-competitions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: rgba(8, 47, 73, 0.85);
    color: #a5f3fc;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}
.barcode-join-competitions:hover {
    background: rgba(14, 116, 144, 0.7);
    border-color: rgba(103, 232, 249, 0.75);
    color: #ecfeff;
}
#topbar{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}
.topcnt{
    display: flex;
    flex-direction: row;
    gap: 5px;
    text-align: center;
}
#remain{
    color: #fff;
    display: flex;
    align-items: center; 
    height: 100%;
}
#timer {
    color: red;
    display: flex;
    align-items: center; 
    height: 100%;
    text-align: left;
    font-weight: bold;
}
#mainctn{
    width: 100%;
    position: relative;
}
#maze{
    float: left;
    /*background: #000;*/
    /*background: #FFF;*/
}
#gamebox #gameSidebar {
    float: left;
    height: 100%;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    align-items: center; 
}
#gamebox #gameSidebar p{
    color: #aaa;
    text-align: center;
}
#timePauseBtn, #pathBtn {
    display: flex;
    align-items: center;  
    justify-content: center; 
    margin: 0px 0px 12px 0px;
    background-color: #00BB00;
    font-family: Arial;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}
#gameover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    align-items: stretch;
    justify-content: center;
    padding: 10px 12px;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(11, 11, 15, 0.88);
    backdrop-filter: blur(10px);
}

.ga-gameover-card {
    width: 100%;
    max-width: none;
    max-height: 100%;
    padding: 14px 16px 12px;
    border-radius: 14px;
    background: var(--ga-surface);
    border: 1px solid var(--ga-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(147, 51, 234, 0.12);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.ga-gameover-msg {
    margin: 0 0 12px;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--ga-text);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    padding: 9px 18px;
    margin: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

#restartbtn.ga-btn {
    margin-bottom: 4px;
    padding: 10px 28px;
}

.ga-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.ga-btn:active {
    transform: translateY(0);
}

.ga-btn-icon {
    font-size: 12px;
    opacity: 0.85;
}

.ga-btn-primary {
    background: linear-gradient(135deg, #22c55e, #0d9488);
    color: #fff;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}

.ga-btn-accent {
    background: linear-gradient(100deg, #2563eb 0%, #7c3aed 55%, #a855f7 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.ga-btn-accent:hover {
    box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.ga-actions {
    width: 100%;
    margin-top: 8px;
    padding: 10px 4px 0;
    border-top: 1px solid var(--ga-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ga-actions .ga-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.ga-featured {
    width: 100%;
    margin-top: 8px;
    padding: 8px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.ga-featured-title {
    margin: 0 0 6px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    text-align: center;
}

.ga-maze-world-promo {
    display: flex;
}

.ga-maze-world-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
    background: linear-gradient(95deg, rgba(34, 211, 238, 0.14), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(103, 232, 249, 0.35);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.12);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.ga-maze-world-card:hover {
    background: linear-gradient(95deg, rgba(34, 211, 238, 0.22), rgba(245, 158, 11, 0.18));
    border-color: rgba(165, 243, 252, 0.5);
    transform: translateY(-1px);
}

.ga-maze-world-card img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

.ga-maze-world-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.ga-maze-world-copy strong {
    font-size: 13px;
    font-weight: 700;
    color: #ecfeff;
    letter-spacing: -0.01em;
}

.ga-maze-world-copy small {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.25;
}

.penci-container-inside.single-breadcrumb{
   margin: 10px 0px 5px 0px !important;
}
