/* GLOBAL */
body {
    background: #111;
    color: white;
    text-align: center;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* GAME CONTAINER (bendras visiems žaidimams) */
#game {
    width: 540px;
    height: 540px;
    overflow: hidden;
    margin: 20px auto;
    background: #222;
    position: relative;
}

/* UI */
#timer {
    font-size: 20px;
    margin-top: 10px;
}

#status {
    margin-top: 10px;
    font-size: 18px;
    height: 24px;
}

/* CONTROLS */
#controls {
    width: 540px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center; /* optional */
    gap: 8px;
}

#controls select,
#controls button {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

#controls button:hover,
#controls select:hover {
    background: #444;
}

#controls button.muted {
    background: #880000;
}

/* LEADERBOARD */
#leaderboard {
    width: 400px;
    margin: 20px auto;
    text-align: left;
}

.lb-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 1px solid #333;
}

/* LOGIN */
#userPanel {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#userPanel.hidden {
    display: none;
}
    
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block; 
    flex-shrink: 0;
}

img {
    display: block;
}



.avatar-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* #userAvatar {
    width: 128px !important;
    height: 128px !important;
    border-radius: 50%;
    object-fit: cover;
} */

.hidden {
    display: none;
}

#logoutBtn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
        cursor: pointer;
    border-radius: 5px;
}

.g_id_signin {
    opacity: 0;
    transition: opacity 0.2s;
}

/* ACCESSIBILITY */
#game:focus {
    outline: none;
}


body.fullscreen-mode #leaderboard,
body.fullscreen-mode #leaderboard-title,
body.fullscreen-mode h1,
body.fullscreen-mode h2,
body.fullscreen-mode h3,
body.fullscreen-mode #timer,
body.fullscreen-mode #status {
    display: none;
}


body.fullscreen-mode #game {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}


#game-inner {
    position: relative;
}


/* mygtukas */
#gameMenuBtn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1001;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;

    color: #00ffcc;
    background: #111;
    border: 1px solid rgba(0,255,200,0.5);
    border-radius: 10px;

    text-shadow: 0 0 10px #00ffcc;
    box-shadow: 0 0 12px rgba(0,255,200,0.35);
}

/* pats meniu */
#gameMenu {
    position: fixed;
    top: 0;
    left: -220px; /* paslėptas */
    width: 200px;
    height: 100%;

    background: #111;
    border-right: 2px solid #00ffcc;

    padding-top: 80px;

    transition: left 0.3s ease;
    z-index: 999;
}

/* aktyvus */
#gameMenu.open {
    left: 0;
}

/* linkai */

#loginBox,
#userPanel {
    position: fixed;
    top: 18px;
    right: 18px;
    min-height: 44px;
    z-index: 1000;
}



body {
    overflow-y: scroll;
}


/*
MODAL langas HELP
*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    z-index: 10000;

    background: #111;
    color: #fff;

    padding: 20px;
    margin: 10% auto;
    width: 320px;

    border: 2px solid #00ffcc;
    border-radius: 12px;

    box-shadow: 0 0 25px rgba(0,255,200,0.7);
    text-align: left;
}



/*-----------------------------------------------------------------------------*/


/*
Šoninis meniu
*/

#gameMenu {
    position: fixed;
    top: 0;
    left: -220px;
    width: 200px;
    height: 100%;

    background: linear-gradient(180deg, #080808, #111);
    border-right: 2px solid #00ffcc;

    padding-top: 72px;

    transition: left 0.3s ease;
    z-index: 999;

    box-shadow: 0 0 18px rgba(0,255,200,0.25);
}

.menu-section {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,255,200,0.12);
}

.game-menu-link {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 18px;

    background: transparent;
    border: none;

    color: #00ffcc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: Arial, sans-serif;

    cursor: pointer;
    transition: 0.2s;

    justify-content: flex-start;
}

.game-menu-link:hover {
    background: rgba(0,255,200,0.10);
    color: #fff;
    text-shadow: 0 0 10px #00ffcc;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




.feedback-link {
    flex: 1;
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: inherit;
    text-decoration: none;
}







.icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #00ffcc;
    opacity: 0.75;
    border-radius: 6px;

    transition: 0.2s;
    flex: 0 0 28px;
}

.icon:hover {
    opacity: 1;
    background: rgba(0,255,200,0.14);
    box-shadow: 0 0 10px rgba(0,255,200,0.6);
}

.game-menu-link > .menu-emoji,
.feedback-link > .menu-emoji {
    width: 22px;
    min-width: 22px;
    text-align: center;
}







/* .copied-tooltip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
} */

.copied-tooltip {
  position: absolute;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  font-size: 12px;
}


/* .copied-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
} */





/*
Modal button
*/
.modal-content button {
    margin-top: 18px;

    background: #111;
    color: #00ffcc;

    border: 2px solid #00ffcc;
    border-radius: 10px;

    padding: 10px 18px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;

    box-shadow: 0 0 12px rgba(0,255,200,0.4);
}

.modal-content button:hover {
    background: #00ffcc;
    color: black;

    box-shadow: 0 0 20px rgba(0,255,200,0.9);
}






#gameMenu a.game-menu-link,
#gameMenu button.game-menu-link,
#gameMenu .game-menu-link {
    display: flex;
    align-items: center;
    text-align: left;
}

.menu-emoji {
    width: 22px;
    min-width: 22px;
    display: inline-flex;
    justify-content: center;
}

.feedback-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}




#gameZoomWrapper {
    border: 0px solid #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform-origin: top center;
}


