body {
    margin: 0;
    padding: 0;
    background-color: #0c0c0e;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 8vh;
    min-height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle Background SVG Noise Overlay */
#bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
}

#phone-container {
    position: relative;
    width: 275px;
    height: 567px;
    transform: scale(1.65);
    transform-origin: top center;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
    user-select: none;
    -webkit-user-select: none;
    z-index: 5;
    opacity: 0;
    animation: smoothContainerEntry 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes smoothContainerEntry {
    from {
        opacity: 0;
        transform: scale(1.63) translateY(4px);
    }
    to {
        opacity: 1;
        transform: scale(1.65) translateY(0);
    }
}

#iphone-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#island-shadow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

#island-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
    touch-action: none; 
}

/* Premium Floating Settings Panel */
#ui-panel {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(18, 18, 22, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px;
    width: 215px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
}

@media (max-width: 900px) {
    #ui-panel {
        top: auto;
        bottom: 24px;
        right: 50%;
        transform: translateX(50%);
        width: calc(100vw - 48px);
        max-width: 340px;
    }
}

/* Smooth Sliding Active Indicator */
.indicator-slider {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumb-btn {
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.thumb-btn:active {
    transform: scale(0.94);
}

/* Minimal Custom Color Pickers */
.color-picker-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: transparent;
    outline: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.color-picker-input::-moz-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
