:root {
  --color-bg: #222;
}

html {
    background: var(--color-bg);
}

body {
    margin: 0;
    padding: 0;
    background: none;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    min-width: 375px;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubble-wrap-background {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg);
    padding: 0;
    margin: 0;
    z-index: 1;
    overflow: visible;
    margin-top: 64px; /* content starts after navbar */
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: var(--color-bg);
    box-shadow: 0 1.5px 8px #0a0a0d52;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar nav {
    width: 100vw;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    color: #f1f5fb;
}

.navbar-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #f1f7fb;
    letter-spacing: 1.5px;
    user-select: none;
    text-shadow: 0 2px 6px #111;
}

.navbar-counter {
    font-size: 1.12rem;
    font-weight: 400;
    color: #f9fafb;
    background: none;
    border-radius: 0;
    padding: 0 0.55em 0 0.3em;
    min-width: 0;
    text-align: right;
    box-shadow: none;
    user-select: none;
    margin-left: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.7em;
}

#popped-counter,
.navbar-counter-pill {
    font-weight: 700;
    color: #1a252f;
    background: #f7f8fb;
    border-radius: 2em;
    padding: 0.19em 0.86em 0.16em 0.86em;
    font-size: 1.12rem;
    margin-left: 0.1em;
    box-shadow: 0 1.5px 10px -3px #fff7;
    display: inline-block;
}

#game-container {
    width: 100vw;
    height: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.bubble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 50px);
    grid-auto-rows: 50px;
    gap: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    user-select: none;
    width: 100vw;
    min-height: 100%;
    overflow: visible;
}

.bubble {
    width: 50px;
    height: 50px;
    background-image: url("bubble.png");
    background-size: 50px 50px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 2px 8px #6f7b9242,
        0 1.5px 5.5px 0 #b2c2d031;
    cursor: pointer;
    transition: filter 0.1s, box-shadow 0.12s;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.bubble.popped {
    background-image: url("bubble-popped.png");
    background-size: 50px 50px;
    background-position: center;
    background-repeat: no-repeat;
    filter: none;
    box-shadow: 0 1px 2px #757d893b;
}
