.iframe_fs_back{z-index:1999;}
.iframeoverlay{z-index:2000;}
.contentLoader{z-index:2001;}
.gameStrip_in{z-index:2002;}

:root {
--board-light: #AAD751;
--board-dark: #A2D149;
--snake-color: #4573E8;
--apple-color: #E7471D;
--ui-bg: #4A752C;
--text-color: #FFFFFF;
}

#mothergameholder {
margin: 0;
padding: 0;
background-color: #202124;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: hidden;
touch-action: none; 
}

#game-wrapper {
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
border-radius: 12px;
overflow: hidden;
background-color: var(--board-light);
}

#top-bar {
background-color: var(--ui-bg);
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 24px;
color: var(--text-color);
font-size: 24px;
font-weight: bold;
user-select: none;
}

.score-box {
display: flex;
align-items: center;
gap: 10px;
}

canvas {
display: block;
image-rendering: pixelated;
}

#overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10;
transition: opacity 0.3s ease;
}

#play-btn {
background-color: var(--snake-color);
color: white;
border: none;
border-radius: 50%;
width: 80px;
height: 80px;
font-size: 32px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 6px 0 #2A4DB8;
transition: transform 0.1s, box-shadow 0.1s;
}

#play-btn:active {
transform: translateY(6px);
box-shadow: 0 0px 0 #2A4DB8;
}

#game-over-text {
display: none;
color: white;
font-size: 40px;
font-weight: bold;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hidden {
opacity: 0;
pointer-events: none;
}

#game-wrapper svg {
display: block;
}
/* Mobile Performance Fixes */
#mothergameholder {
touch-action: none !important;
user-select: none !important;
-webkit-user-select: none !important;
overscroll-behavior: none !important;
}
#mothergameholder * {
-webkit-tap-highlight-color: transparent !important;
}
canvas {
transform: translateZ(0);
}