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

body {
    background-color: #ffffff;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    width: 300px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    opacity: 1;
}

.logo {
    width: 100%;
    height: auto;
    position: relative;
    left: -10000px;
    filter: drop-shadow(10000px 0 0 #FFB01D);
    display: block;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
}

/* UI Bar Styles */
#ui-bar {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 20;
    pointer-events: none;
    font-size: 11px;
    font-weight: 300;
    color: #FFB01D;
    letter-spacing: 0.5px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.ui-item {
    pointer-events: auto;
    cursor: default;
    text-transform: lowercase;
}

#line-toggle,
#hint-btn,
#trace-toggle,
#lang-toggle,
#about-btn {
    cursor: pointer;
}

#line-toggle:hover,
#hint-btn:hover,
#trace-toggle:hover,
#lang-toggle:hover,
#about-btn:hover {
    opacity: 0.7;
}

/* Speed Slider */
.slider-container {
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#speed-slider {
    width: 60px;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 176, 29, 0.3);
    outline: none;
    border-radius: 1px;
    cursor: pointer;
}

#speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    background: #FFB01D;
    border-radius: 50%;
    cursor: pointer;
}

#speed-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    background: #FFB01D;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#speed-slider:hover {
    background: rgba(255, 176, 29, 0.5);
}


/* Hint Popup */
.hint-container {
    position: relative;
}

#hint-popup {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 20px;
    background: rgba(255, 255, 255, 0.024);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 12px;
    padding: 12px 15px;
    width: 250px;
    text-align: left;
    font-size: 7px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #808080;
}

/* About popup now plain bold text over canvas */
#about-popup {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 90%;
    font-size: 11px;
    line-height: 1.7;
    color: #FFB01D;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: justify;
    background: none;
    border: none;
    box-shadow: none;
    z-index: 100;
    pointer-events: none;
}

#about-popup.visible { display: block; }

#hint-popup.visible {
    display: block;
}

/* Removed decorative styling for about popup */

#hint-popup strong {
    color: #FFB01D;
    font-weight: 600;
}

#hint-popup p {
    margin: 3px 0;
    font-size: 7px;
}

#about-popup p {
    margin: 0;
}