body { 
    margin: 0; 
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: grab;
    user-select: none;
    touch-action: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

canvas { 
    display: block;
    touch-action: none;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

#progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    border-radius: 1px;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.1s ease;
}

#fps-counter {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.error-container {
    padding: 25px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.error-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.error-title {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.error-details {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
}

.error-steps {
    text-align: left;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.8;
}

.error-steps li {
    margin-bottom: 8px;
}

.retry-button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.retry-button:active {
    transform: translateY(0);
}
