body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../bg-battleship.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: stretch;
    color: #fff;
    filter: brightness(1.05) contrast(1.05);
}
.overlay {
    width: 100%;
    height: 100%;
    display: flex;
}
.right-side {
    width: 40%;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
}
h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 280px;
}
.menu-button {
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}
.menu-button:hover {
    background: linear-gradient(145deg, #444, #555);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
#version-label {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    opacity: 0.8;
}
@media (max-width: 768px) {
  .overlay { display: flex; }
  .right-side {
    width: 40%;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 40px;
  }
  h1 { font-size: 38px; }
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#preloader img {
    width: 180px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
#login-btn {
    background: rgba(15, 30, 60, 0.6);
    backdrop-filter: blur(6px);
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
  }
  #login-btn:hover {
    background: rgba(20, 40, 80, 0.75);
    cursor: pointer;
  }
  .menu-button-wager {
    font-size: 22px;
    padding: 16px 30px;
    background: linear-gradient(145deg, #1b2a3a, #27394d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 0 12px rgba(100, 150, 200, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    width: 100%;
    transform: scaleX(1.15);
    transform-origin: center;
}
.menu-button-wager:hover {
    background: linear-gradient(145deg, #2e3e50, #3a4e60);
    transform: scaleX(1.15) translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
@keyframes pulse-wager {
    0%   { box-shadow: 0 0 10px rgba(150, 220, 255, 0.2); }
    50%  { box-shadow: 0 0 20px rgba(150, 220, 255, 0.4); }
    100% { box-shadow: 0 0 10px rgba(150, 220, 255, 0.2); }
}
.menu-button-gold {
    font-size: 12px;           
    padding: 4px 10px;  
    background: linear-gradient(145deg, #d4af37, #e6c65c);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26px;            
    width: 100%;
    transform: scaleX(1);
    transform-origin: center;
}
.menu-button-gold:hover {
    background: linear-gradient(145deg, #f1cc5b, #d8b445);
    transform: scaleX(1) translateY(-1px);
    box-shadow: 0 0 6px rgba(255, 255, 200, 0.3);
}
#home-button {
    position: fixed;
    bottom: 20px;
    left: 20px; 
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: rgba(0, 128, 128, 0.8);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 128, 128, 0.6);
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 100;
}
#home-button:hover {
    background: rgba(0, 100, 100, 0.95);
    transform: scale(1.05);
}