* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

body:not(.hub-page) {
    padding: 0;
}

#game-container {
    position: relative;
    background: #87CEEB;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

#hearts-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.exit-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(100, 100, 100, 0.8);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    font-weight: bold;
    pointer-events: auto;
    z-index: 20;
}

.exit-btn:hover {
    transform: scale(1.05);
    background: rgba(120, 120, 120, 0.9);
}

.exit-btn:active {
    transform: scale(0.95);
}

.exit-btn-menu {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    background: rgba(100, 100, 100, 0.8);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    font-weight: bold;
}

.exit-btn-menu:hover {
    transform: scale(1.05);
    background: rgba(120, 120, 120, 0.9);
}

.exit-btn-menu:active {
    transform: scale(0.95);
}

.difficulty-selector {
    margin: 30px 0;
}

.difficulty-selector h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffd700;
}

.difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 80px;
}

.difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bot-speed-setting {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-speed-setting.hidden {
    display: none;
}

.bot-speed-setting label {
    font-size: 16px;
    color: #ffd700;
}

.bot-speed-setting input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.bot-speed-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bot-speed-setting input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#instructions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    color: white;
}

.screen.hidden {
    display: none;
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.screen p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffd700;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: scale(0.98);
}

#valentine-text {
    font-size: 64px;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    color: #ffd700;
    font-weight: bold;
}

#valentine-buttons {
    display: flex;
    gap: 20px;
}

#valentine-buttons button {
    font-size: 24px;
    padding: 20px 40px;
}

#yes-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

#no-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.particle {
    position: absolute;
    pointer-events: none;
    font-size: 20px;
}

/* Game Hub Styles */
body.hub-page {
    overflow: auto;
}

.hub-container {
    text-align: center;
    color: white;
    padding: 60px 40px 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.hub-header {
    margin-bottom: 50px;
}

.hub-icon {
    font-size: 48px;
    background: rgba(255, 182, 193, 0.3);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hub-title {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.welcome-message {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

.game-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.game-icon {
    font-size: 48px;
    background: rgba(255, 182, 193, 0.3);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-title {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.game-description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.play-btn {
    padding: 16px 50px;
    font-size: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.play-icon {
    font-size: 16px;
    display: inline-block;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.play-btn:active {
    transform: scale(0.98);
}

.coming-soon {
    font-size: 16px;
    opacity: 0.7;
    margin-top: 40px;
    margin-bottom: 20px;
}

.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.8);
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-btn:hover {
    transform: scale(1.1);
    background: rgba(120, 120, 120, 0.9);
}

.help-btn:active {
    transform: scale(0.95);
}

/* Password Screen Styles */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-screen.hidden {
    display: none;
}

.password-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 350px;
}

.password-title {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.password-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.secret-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s;
}

.secret-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.secret-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    width: 100%;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.error-message.hidden {
    display: none;
}

.hub-container.hidden {
    display: none;
}

