.iframe_fs_back{top:auto;bottom:25px;}
.iframe_fs_back{z-index:1999;}
.iframeoverlay{z-index:2000;}
.contentLoader{z-index:2001;}
.gameStrip_in{z-index:2002;}




.thisgmcntnr{position:relative;width:100%;height:100%;
overflow: hidden;
background-color: #1f1f2a;
background-image:
radial-gradient(circle at 50% 10%, rgba(45, 45, 60, 1) 0%, rgba(25, 25, 35, 1) 80%);
color: white;
touch-action: none;
user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
overscroll-behavior: none;
}
.thisgmcntnr * {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
-webkit-tap-highlight-color: transparent !important;
}

/* Star background */
#stars-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
background-image:
radial-gradient(1px 1px at 10% 20%, white 100%, transparent),
radial-gradient(2px 2px at 30% 50%, rgba(255, 255, 255, 0.8) 100%, transparent),
radial-gradient(1.5px 1.5px at 80% 10%, rgba(255, 255, 255, 0.6) 100%, transparent),
radial-gradient(2px 2px at 60% 80%, rgba(255, 255, 255, 0.5) 100%, transparent),
radial-gradient(1px 1px at 90% 90%, white 100%, transparent);
background-size: 200px 200px;
opacity: 0.6;
}

#game-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 75px 10px 110px 10px;
overflow: hidden;
}

.level-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
width: 100%;
/*height: 100%;*/
max-width: 1100px;
/*max-height: 100%;*/
transition: all 0.3s ease;
}

.tube-wrapper {
position: relative;
/*width: clamp(20px, 6.5%, 48px);
height: clamp(80px, 24%, 170px);*/
width:48px;
height:170px;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform-origin: bottom center;
flex-shrink: 1;
}

.tube-wrapper.selected {
transform: translateY(-18px) scale(1.05);
}

.tube-glass {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: calc(100% + 2px);
border: 3px solid #ffffff;
border-top: none;
border-radius: 20px 20px 20px 20px / 10px 10px 20px 20px;
box-shadow:
inset 4px 0 8px rgba(255, 255, 255, 0.5),
inset -4px 0 8px rgba(0, 0, 0, 0.2),
inset 0 -4px 8px rgba(255, 255, 255, 0.4),
0 8px 12px rgba(0, 0, 0, 0.4);
overflow: hidden;
display: flex;
flex-direction: column-reverse;
background-color: rgba(255, 255, 255, 0.15);
padding: 12px 2px 2px 2px;
z-index: 1;
}

.tube-lip-base {
position: absolute;
top: -2px;
left: -4px;
width: calc(100% + 8px);
height: 16px;
border-radius: 50%;
background: transparent;
border: 3px solid #ffffff;
box-sizing: border-box;
box-shadow:
0 3px 5px rgba(0, 0, 0, 0.3),
inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.tube-lip-back {
clip-path: polygon(-10% -10%, 110% -10%, 110% 50%, -10% 50%);
border-top-color: #ffffff;
border-left-color: #ffffff;
border-right-color: #ffffff;
z-index: 2;
}

.tube-lip-front {
clip-path: polygon(-10% 50%, 110% 50%, 110% 120%, -10% 120%);
border-bottom-color: #ffffff;
border-left-color: #ffffff;
border-right-color: #ffffff;
z-index: 4;
}

.water-segment {
width: 100%;
position: relative;
z-index: 1;
transition: height 0.35s ease-in-out;
}

.water-segment:first-child {
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}

.water-segment::before {
content: '';
position: absolute;
top: -4px;
left: 0;
width: 100%;
height: 8px;
border-radius: 50%;
background-color: inherit;
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 6px rgba(255, 255, 255, 0.6);
opacity: 0;
transition: opacity 0.3s;
z-index: 2;
}

.water-segment::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 100%;
height: 8px;
border-radius: 50%;
background-color: inherit;
opacity: 0;
transition: opacity 0.3s;
z-index: 1;
}

.water-segment:first-child::after {
display: none;
}

.water-segment.filled::before,
.water-segment.filled::after {
opacity: 1;
}

.tube-glass::after {
content: '';
position: absolute;
top: 0;
left: 6px;
width: 8px;
height: 90%;
background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
border-radius: 4px;
pointer-events: none;
z-index: 10;
}

/* Pouring stream */
.water-stream {
position: absolute;
width: 12px;
background-color: transparent;
z-index: 3;
transform-origin: top center;
border-radius: 6px;
box-shadow:
inset 3px 0 5px rgba(255, 255, 255, 0.5),
inset -2px 0 4px rgba(0, 0, 0, 0.2),
2px 0 4px rgba(0, 0, 0, 0.15);
mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.water-stream::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
border-radius: 6px;
}

.water-steam-particle {
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
pointer-events: none;
z-index: 5;
opacity: 0.7;
mix-blend-mode: screen;
transition: transform 0.6s ease-out, opacity 0.6s ease-in;
box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* UI Overlay */
#ui-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
pointer-events: none;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px 20px 40px 20px;
}

#ui-layer button,
.level-indicator,
.popup-screen {
pointer-events: auto;
}

#top-ui {
display: flex;
justify-content: space-between;
align-items: flex-start;
width: 100%;
}

#top-left-group {
display: flex;
/*flex-direction: column;*/
align-items: flex-start;
gap:30px;
}

.level-indicator {
color: white;
font-size: 22px;
font-weight: 900;
letter-spacing: 2px;
padding: 8px 16px;
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
background: rgba(255, 255, 255, 0.12);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 14px;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}

.level-indicator:hover {
background: rgba(255, 255, 255, 0.25);
border-color: #3498db;
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.level-indicator:active {
transform: translateY(1px);
}

.icon-btn {
width: 46px;
height: 46px;
background-color: #e74c3c;
border: none;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
color: white;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
}

.icon-btn:hover {
background-color: #ff6b6b;
}

.icon-btn:active {
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
transform: translateY(2px);
}

#win-screen {
position: absolute;
top: 50%;
left: 0;
width: 100%;
transform: translateY(-50%);
background: linear-gradient(to right, rgba(52, 152, 219, 0), rgba(41, 128, 185, 0.95) 20%, rgba(41, 128, 185, 0.95) 80%, rgba(52, 152, 219, 0));
padding: 50px 0;
border: none;
box-shadow: 0 0 50px rgba(52, 152, 219, 0.3);
text-align: center;
color: white;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
z-index: 1001;
}

#win-screen h2 {
font-size: 48px;
font-weight: 900;
color: white;
text-transform: uppercase;
letter-spacing: 5px;
-webkit-text-stroke: 2px #2c3e50;
text-shadow:
0 6px 0 #2c3e50,
0 12px 15px rgba(0, 0, 0, 0.5);
margin: 0;
}

.popup-screen#lose-screen {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #2c3e50;
padding: 35px;
border-radius: 20px;
border: 3px solid #34495e;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
text-align: center;
color: white;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

#btn-next-level,
#btn-retry {
padding: 14px 32px;
font-size: 18px;
background-color: #2ecc71;
color: white;
border: 3px solid #27ae60;
border-radius: 12px;
cursor: pointer;
font-weight: 800;
box-shadow: 0 5px 0 #27ae60, 0 8px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.1s, box-shadow 0.1s;
}

#btn-next-level:hover,
#btn-retry:hover {
background-color: #2fd677;
}

#btn-next-level:active,
#btn-retry:active {
box-shadow: 0 0 0 #27ae60, 0 2px 4px rgba(0, 0, 0, 0.2);
transform: translateY(5px);
}

.hidden {
display: none !important;
}

/* Level Selection Modal */
#level-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 2010;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
backdrop-filter: blur(6px);
}

.modal-card {
background: #2c3e50;
border-radius: 20px;
border: 3px solid #34495e;
width: 100%;
max-width: 500px;
max-height: 80%;
display: flex;
flex-direction: column;
padding: 20px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
padding-bottom: 10px;
}

.modal-header h2 {
font-size: 24px;
font-weight: 900;
color: white;
letter-spacing: 2px;
}

.close-btn {
background: #e74c3c;
border: none;
color: white;
font-size: 20px;
font-weight: bold;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.1s, background-color 0.2s;
}

.close-btn:hover {
background: #ff6b6b;
}

.level-select-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 10px;
overflow-y: auto;
padding: 10px 5px;
max-height: 60%;
}

.level-btn {
height: 55px;
border-radius: 12px;
border: 2px solid #27ae60;
background: #2ecc71;
color: white;
font-weight: 800;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 0 #27ae60;
transition: all 0.15s ease;
}

.level-btn:hover {
background: #2fd677;
transform: translateY(-2px);
}

.level-btn.current {
border-color: #f1c40f;
background: #f39c12;
box-shadow: 0 4px 0 #d35400;
}

.level-btn.locked {
background: #7f8c8d;
border-color: #95a5a6;
box-shadow: none;
opacity: 0.5;
cursor: not-allowed;
}

.tactile-panel {
background-color: #34495e;
border: none;
border-radius: 12px;
box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.15);
color: white;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
}

.coin-container {
display: flex;
align-items: center;
gap: 6px;
padding: 0 14px;
font-size: 20px;
font-weight: 800;
}

.coin-svg {
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.coin-svg-small {
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

#powerups-container {
display: flex;
justify-content: center;
gap: 16px;
width: 100%;
pointer-events: auto;
}

.tactile-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 70px;
height: 70px;
background-color: #ecf0f1;
border: 3px solid #bdc3c7;
border-radius: 14px;
box-shadow: 0 5px 0 #bdc3c7, 0 8px 12px rgba(0, 0, 0, 0.3);
color: #2c3e50;
cursor: pointer;
transition: transform 0.1s, box-shadow 0.1s;
}

.tactile-btn:hover {
background-color: #ffffff;
}

.tactile-btn:active {
box-shadow: 0 0 0 #bdc3c7, 0 4px 6px rgba(0, 0, 0, 0.3);
transform: translateY(5px);
}

.tactile-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
filter: grayscale(100%);
box-shadow: 0 5px 0 #bdc3c7, 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tactile-btn:disabled:active {
transform: none;
box-shadow: 0 5px 0 #bdc3c7, 0 4px 6px rgba(0, 0, 0, 0.1);
}

.powerup-icon {
display: flex;
margin-bottom: 2px;
color: #3498db;
}

.powerup-cost {
font-size: 14px;
font-weight: 800;
display: flex;
align-items: center;
gap: 3px;
}

.coin-particle {
position: absolute;
pointer-events: none;
z-index: 1000;
transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
}

.win-particle {
position: absolute;
pointer-events: none;
z-index: 1002;
width: 10px;
height: 10px;
border-radius: 2px;
animation: celebrate 2s ease-out forwards;
}

@keyframes celebrate {
0% {
transform: translate(0, 0) scale(0) rotate(0);
opacity: 1;
}

100% {
transform: translate(var(--dx), var(--dy)) scale(1.5) rotate(var(--rot));
opacity: 0;
}
}

#combo-popup-layer {
position: absolute;
top: 10px;
left: 0;
width: 100%;
z-index: 999;
pointer-events: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}

.combo-popup {
background: linear-gradient(to right, rgba(52, 152, 219, 0), rgba(41, 128, 185, 0.95) 20%, rgba(41, 128, 185, 0.95) 80%, rgba(52, 152, 219, 0));
padding: 8px 40px;
display: flex;
justify-content: center;
align-items: center;
animation: slideInOut 2s forwards;
width: 100%;
}

.combo-popup-text {
font-size: 30px;
font-weight: 900;
color: white;
text-transform: uppercase;
letter-spacing: 4px;
-webkit-text-stroke: 1.5px #2c3e50;
text-shadow:
0 3px 0 #2c3e50,
0 6px 8px rgba(0, 0, 0, 0.4);
white-space: nowrap;
}

@keyframes slideInOut {
0% {
transform: translateX(100%);
opacity: 0;
}

15% {
transform: translateX(0);
opacity: 1;
}

85% {
transform: translateX(0);
opacity: 1;
}

100% {
transform: translateX(-100%);
opacity: 0;
}
}

.confetti-particle {
position: absolute;
width: 10px;
height: 20px;
z-index: 900;
pointer-events: none;
animation: fall cubic-bezier(0.3, 0.5, 0.8, 1) forwards;
}

@keyframes fall {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
}

100% {
transform: translateY(600px) rotate(720deg);
opacity: 0;
}
}

@media (max-width: 500px) {
#ui-layer {
padding: 12px 12px 30px 12px;
}

#top-ui {
flex-wrap: nowrap;
gap: 8px;
justify-content: space-between;
align-items: flex-start;
}

.level-indicator {
font-size: 15px;
padding: 5px 10px;
}

.coin-container {
font-size: 16px;
padding: 0 10px;
}

.icon-btn {
width: 40px;
height: 40px;
}

.tactile-panel {
height: 40px;
}

.coin-svg {
width: 18px;
height: 18px;
}

#powerups-container {
gap: 10px;
}

.tactile-btn {
width: 60px;
height: 60px;
}

.popup-screen {
width: 90%;
padding: 20px;
}

.popup-screen h2 {
font-size: 26px;
}

.level-grid {
gap: 6px;
}
}

