:root {
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #0e7490 100%);
    --primary: #06b6d4;
    /* Cyan */
    --water-color: rgba(6, 182, 212, 0.6);
    --water-surface: rgba(165, 243, 252, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ecfeff;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: #3b82f6;
    bottom: -10%;
    right: -10%;
}

.game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 800px;
}

/* HUD */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.objective {
    display: flex;
    flex-direction: column;
}

.objective span:first-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.objective span:last-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.moves-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

.message-area {
    text-align: center;
    height: 30px;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #a5f3fc;
}

/* Jars Area */
.jars-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 2rem;
}

.jar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.jar-wrapper:hover {
    transform: translateY(-5px);
}

.jar-wrapper.selected .jar {
    box-shadow: 0 0 20px var(--primary);
    border-color: var(--primary);
}

.jar {
    width: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
    /* Height set by JS based on capacity */
}

/* Water styling */
.water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--water-color);
    transition: height 0.5s ease-in-out;
    border-top: 2px solid var(--water-surface);
}

.capacity-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.controls-hint {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: auto;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    cursor: pointer;
}

/* Context Menu */
.action-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e293b;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 50;
    width: 200px;
}

.action-menu button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}

.action-menu button:hover {
    background: var(--primary);
    color: black;
}

#btn-cancel {
    background: transparent;
    color: #94a3b8;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #164e63;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.2);
}

.cta-btn {
    background: var(--primary);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
}