body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    background-color: white !important;
    -webkit-user-select: none;
    /* Prevent text selection on iOS */
    user-select: none;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#canvas-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#toolbar {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    width: 100%;
    height: 60px;
    /* Already defined, just for clarity */
    padding: 2px;
    background: #333;
    color: white;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-sizing: border-box;
}

#whiteboard {
    display: block;
    /* Ensure canvas respects container */
    max-width: 100%;
    max-height: 100%;
}

/* Free main board: logo centered IN the join QR (~half QR size), bottom-right. No chrome. */
#qr-code {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 6px;
    z-index: 10;
}

#logo {
    width: 75px;
    height: 75px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
    border-radius: 6px;
}

#name-prompt {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}

.btn.clicked {
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
}

.color-btn.selected {
    border-color: #fff;
    box-shadow: 0 0 5px #fff;
}

#splash-logo {
    max-width: 80vmin;
    max-height: 80vmin;
    width: auto;
    height: auto;
}

#splash,
#container {
    background-color: white !important;
}