.labygen-wrap {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #fff9f0 0%, #f0f4ff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.labygen-title {
    font-size: 2rem;
    margin: 0 0 1.5rem;
    color: #333;
}

.labygen-section {
    margin-bottom: 1.5rem;
}

.labygen-section h3 {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 0.8rem;
}

.labygen-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.labygen-card {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.5;
    font-family: inherit;
    color: #333;
}

.labygen-card:hover {
    border-color: #90CAF9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.labygen-card.active {
    border-color: #42A5F5;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    box-shadow: 0 4px 16px rgba(66,165,245,0.3);
}

.labygen-card small {
    color: #888;
    font-size: 0.8rem;
}

.labygen-canvas-wrap {
    margin: 1.5rem auto;
    max-width: 600px;
}

#labygen-canvas {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.labygen-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 1rem;
}

.labygen-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 180px;
}

.labygen-btn:hover {
    transform: translateY(-2px);
}

.labygen-btn:active {
    transform: translateY(0);
}

.labygen-btn-primary {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33,150,243,0.4);
}

.labygen-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(33,150,243,0.5);
}

.labygen-btn-secondary {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76,175,80,0.4);
}

.labygen-btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(76,175,80,0.5);
}

.labygen-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
}

@media (max-width: 500px) {
    .labygen-wrap { padding: 1rem; margin: 1rem; }
    .labygen-card { min-width: 80px; padding: 10px 14px; font-size: 0.95rem; }
    .labygen-btn { min-width: 140px; padding: 12px 20px; font-size: 1rem; }
    .labygen-title { font-size: 1.5rem; }
}
